@djb25/digit-ui-module-ws 1.0.7 → 1.0.8
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -21
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7602,6 +7602,7 @@ const WSInfoLabel = ({
|
|
|
7602
7602
|
userType = userType || Digit.SessionStorage.get("userType");
|
|
7603
7603
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
7604
7604
|
let isPrivacyEnabled = sessionStorage.getItem("isPrivacyEnabled");
|
|
7605
|
+
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", isPrivacyEnabled);
|
|
7605
7606
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isPrivacyEnabled === "true" && /*#__PURE__*/React.createElement("div", {
|
|
7606
7607
|
style: userType === "citizen" ? {
|
|
7607
7608
|
maxWidth: "970px"
|
|
@@ -9252,7 +9253,7 @@ const BILLSBreadCrumbs = ({
|
|
|
9252
9253
|
maxWidth: "100% !important"
|
|
9253
9254
|
}
|
|
9254
9255
|
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MultiLink, {
|
|
9255
|
-
className: "
|
|
9256
|
+
className: "",
|
|
9256
9257
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
9257
9258
|
displayOptions: showOptions,
|
|
9258
9259
|
options: dowloadOptions,
|
|
@@ -9414,11 +9415,17 @@ const App$1 = ({
|
|
|
9414
9415
|
const WSBulkBillGeneration = (_Digit25 = Digit) === null || _Digit25 === void 0 ? void 0 : (_Digit25$ComponentReg = _Digit25.ComponentRegistryService) === null || _Digit25$ComponentReg === void 0 ? void 0 : _Digit25$ComponentReg.getComponent("WSBulkBillGeneration");
|
|
9415
9416
|
const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/water/bulk-bill");
|
|
9416
9417
|
const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
|
|
9417
|
-
return /*#__PURE__*/React.createElement(
|
|
9418
|
-
className: "
|
|
9418
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9419
|
+
className: "app-container"
|
|
9420
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9421
|
+
className: "ground-container employee-app-container form-container"
|
|
9419
9422
|
}, /*#__PURE__*/React.createElement(BILLSBreadCrumbs, {
|
|
9420
9423
|
location: location
|
|
9421
|
-
}), /*#__PURE__*/React.createElement(
|
|
9424
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
9425
|
+
className: "employee-form"
|
|
9426
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9427
|
+
className: "employee-form-content"
|
|
9428
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9422
9429
|
path: `${path}/create-application`,
|
|
9423
9430
|
component: WSDocsRequired
|
|
9424
9431
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
@@ -9571,7 +9578,7 @@ const App$1 = ({
|
|
|
9571
9578
|
component: props => /*#__PURE__*/React.createElement(WSBulkBillGeneration, Object.assign({}, props, {
|
|
9572
9579
|
parentRoute: path
|
|
9573
9580
|
}))
|
|
9574
|
-
}))));
|
|
9581
|
+
}))))));
|
|
9575
9582
|
};
|
|
9576
9583
|
|
|
9577
9584
|
let actions = [];
|
|
@@ -15631,7 +15638,7 @@ const WSEditConnectionDetails = ({
|
|
|
15631
15638
|
applicationNumber
|
|
15632
15639
|
};
|
|
15633
15640
|
return /*#__PURE__*/React.createElement(React.Fragment, null, connectionDetails.map((connectionDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$4, Object.assign({
|
|
15634
|
-
key: connectionDetail.key,
|
|
15641
|
+
key: connectionDetail.key || index,
|
|
15635
15642
|
index: index,
|
|
15636
15643
|
connectionDetail: connectionDetail
|
|
15637
15644
|
}, commonProps))));
|
|
@@ -19979,10 +19986,15 @@ const WSInbox = ({
|
|
|
19979
19986
|
...formState
|
|
19980
19987
|
}
|
|
19981
19988
|
});
|
|
19989
|
+
let links = [{
|
|
19990
|
+
text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
19991
|
+
link: `/digit-ui/employee/ws/create-application`,
|
|
19992
|
+
roles: ["WS_CEMP", "SW_CEMP"]
|
|
19993
|
+
}];
|
|
19994
|
+
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
19982
19995
|
const PropsForInboxLinks = {
|
|
19983
19996
|
logoIcon: /*#__PURE__*/React.createElement(DropIcon, null),
|
|
19984
|
-
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
|
|
19985
|
-
links: []
|
|
19997
|
+
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
|
|
19986
19998
|
};
|
|
19987
19999
|
const SearchFormFields = useCallback(({
|
|
19988
20000
|
registerRef,
|
|
@@ -20079,7 +20091,9 @@ const WSInbox = ({
|
|
|
20079
20091
|
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
20080
20092
|
onSortFormReset
|
|
20081
20093
|
};
|
|
20082
|
-
return /*#__PURE__*/React.createElement(
|
|
20094
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20095
|
+
className: "app-container"
|
|
20096
|
+
}, /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
20083
20097
|
isInboxLoading,
|
|
20084
20098
|
PropsForInboxLinks
|
|
20085
20099
|
}, propsForSearchForm, propsForFilterForm, propsForMobileSortForm, {
|
|
@@ -35939,8 +35953,9 @@ const TLCaption = ({
|
|
|
35939
35953
|
}), /*#__PURE__*/React.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason$1, {
|
|
35940
35954
|
otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
|
|
35941
35955
|
headComment: data === null || data === void 0 ? void 0 : data.comment
|
|
35942
|
-
}), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map(e => /*#__PURE__*/React.createElement("div", {
|
|
35943
|
-
className: "TLComments"
|
|
35956
|
+
}), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map((e, index) => /*#__PURE__*/React.createElement("div", {
|
|
35957
|
+
className: "TLComments",
|
|
35958
|
+
key: index
|
|
35944
35959
|
}, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
|
|
35945
35960
|
style: {
|
|
35946
35961
|
overflowX: "scroll"
|
|
@@ -37141,7 +37156,7 @@ function ApplicationDetailsContent({
|
|
|
37141
37156
|
oldValue,
|
|
37142
37157
|
isInfoLabel = false
|
|
37143
37158
|
}) {
|
|
37144
|
-
var _applicationDetails$
|
|
37159
|
+
var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
37145
37160
|
const {
|
|
37146
37161
|
t
|
|
37147
37162
|
} = useTranslation();
|
|
@@ -37153,8 +37168,6 @@ function ApplicationDetailsContent({
|
|
|
37153
37168
|
let {
|
|
37154
37169
|
id: applicationNo
|
|
37155
37170
|
} = useParams();
|
|
37156
|
-
const ownersSequences = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.owners;
|
|
37157
|
-
console.log("ownersSequences:- ", ownersSequences);
|
|
37158
37171
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
37159
37172
|
var _thumbnailsToShow$ful;
|
|
37160
37173
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
@@ -37384,6 +37397,7 @@ function ApplicationDetailsContent({
|
|
|
37384
37397
|
setSelectedData(data);
|
|
37385
37398
|
setShowPopup(true);
|
|
37386
37399
|
};
|
|
37400
|
+
console.log("===========================");
|
|
37387
37401
|
return /*#__PURE__*/React.createElement(Card, {
|
|
37388
37402
|
style: {
|
|
37389
37403
|
position: "relative"
|
|
@@ -38463,7 +38477,6 @@ const ApplicationDetails$1 = () => {
|
|
|
38463
38477
|
}
|
|
38464
38478
|
});
|
|
38465
38479
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data37 = workflowDetails.data) === null || _workflowDetails$data37 === void 0 ? void 0 : (_workflowDetails$data38 = _workflowDetails$data37.actionState) === null || _workflowDetails$data38 === void 0 ? void 0 : (_workflowDetails$data39 = _workflowDetails$data38.nextActions) === null || _workflowDetails$data39 === void 0 ? void 0 : _workflowDetails$data39.forEach(action => {
|
|
38466
|
-
console.log("workflowDetails", workflowDetails);
|
|
38467
38480
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
38468
38481
|
var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
|
|
38469
38482
|
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.processInstances) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41[0]) === null || _workflowDetails$data42 === void 0 ? void 0 : _workflowDetails$data42.businessService) == "WSReconnection") {
|
|
@@ -39604,7 +39617,6 @@ const EditApplication$1 = () => {
|
|
|
39604
39617
|
state
|
|
39605
39618
|
} = useLocation();
|
|
39606
39619
|
state = state ? typeof state === "string" ? JSON.parse(state) : state : {};
|
|
39607
|
-
const history = useHistory();
|
|
39608
39620
|
let filters = getQueryStringParams(location.search);
|
|
39609
39621
|
const [canSubmit, setSubmitValve] = useState(false);
|
|
39610
39622
|
const [showToast, setShowToast] = useState(null);
|
|
@@ -39777,11 +39789,10 @@ const EditApplication$1 = () => {
|
|
|
39777
39789
|
if (enabledLoader || isConfigLoading) {
|
|
39778
39790
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
39779
39791
|
}
|
|
39792
|
+
console.log(config.body);
|
|
39780
39793
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
39781
|
-
|
|
39782
|
-
|
|
39783
|
-
}
|
|
39784
|
-
}, /*#__PURE__*/React.createElement(Header, null, t(config.head))), /*#__PURE__*/React.createElement(FormComposer, {
|
|
39794
|
+
className: "employee-form-content"
|
|
39795
|
+
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
39785
39796
|
config: config.body,
|
|
39786
39797
|
userType: "employee",
|
|
39787
39798
|
onFormValueChange: onFormValueChange,
|
|
@@ -39794,7 +39805,7 @@ const EditApplication$1 = () => {
|
|
|
39794
39805
|
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
39795
39806
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
|
|
39796
39807
|
onClose: closeToast
|
|
39797
|
-
}));
|
|
39808
|
+
})));
|
|
39798
39809
|
};
|
|
39799
39810
|
|
|
39800
39811
|
const ConsumptionDetails = ({
|