@djb25/digit-ui-module-ws 1.0.7 → 1.0.9
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 +251 -98
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$2, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useLocation, Switch, Route, useHistory, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
4
|
+
import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, CollapsibleCardPage, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient } from 'react-query';
|
|
@@ -9252,7 +9252,7 @@ const BILLSBreadCrumbs = ({
|
|
|
9252
9252
|
maxWidth: "100% !important"
|
|
9253
9253
|
}
|
|
9254
9254
|
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MultiLink, {
|
|
9255
|
-
className: "
|
|
9255
|
+
className: "",
|
|
9256
9256
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
9257
9257
|
displayOptions: showOptions,
|
|
9258
9258
|
options: dowloadOptions,
|
|
@@ -9414,11 +9414,17 @@ const App$1 = ({
|
|
|
9414
9414
|
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
9415
|
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
9416
|
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: "
|
|
9417
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9418
|
+
className: "app-container"
|
|
9419
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9420
|
+
className: "ground-container employee-app-container form-container"
|
|
9419
9421
|
}, /*#__PURE__*/React.createElement(BILLSBreadCrumbs, {
|
|
9420
9422
|
location: location
|
|
9421
|
-
}), /*#__PURE__*/React.createElement(
|
|
9423
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
9424
|
+
className: "employee-form"
|
|
9425
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9426
|
+
className: "employee-form-content"
|
|
9427
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9422
9428
|
path: `${path}/create-application`,
|
|
9423
9429
|
component: WSDocsRequired
|
|
9424
9430
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
@@ -9571,7 +9577,7 @@ const App$1 = ({
|
|
|
9571
9577
|
component: props => /*#__PURE__*/React.createElement(WSBulkBillGeneration, Object.assign({}, props, {
|
|
9572
9578
|
parentRoute: path
|
|
9573
9579
|
}))
|
|
9574
|
-
}))));
|
|
9580
|
+
}))))));
|
|
9575
9581
|
};
|
|
9576
9582
|
|
|
9577
9583
|
let actions = [];
|
|
@@ -10990,7 +10996,7 @@ const WSConnectionDetails = ({
|
|
|
10990
10996
|
}, commonProps))));
|
|
10991
10997
|
};
|
|
10992
10998
|
const ConnectionDetails = _props => {
|
|
10993
|
-
var _formData$DocumentsRe, _errors$proposedTaps2, _errors$proposedPipeS2, _errors$proposedWater2, _errors$proposedToile2;
|
|
10999
|
+
var _formData$DocumentsRe, _errors$proposedTaps2, _errors$proposedTaps3, _errors$proposedPipeS2, _errors$proposedPipeS3, _errors$proposedWater2, _errors$proposedToile2;
|
|
10994
11000
|
const {
|
|
10995
11001
|
connectionDetail,
|
|
10996
11002
|
focusIndex,
|
|
@@ -11094,11 +11100,12 @@ const ConnectionDetails = _props => {
|
|
|
11094
11100
|
};
|
|
11095
11101
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
11096
11102
|
const isEmployee = window.location.href.includes("/employee");
|
|
11097
|
-
return /*#__PURE__*/React.createElement("div",
|
|
11103
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11098
11104
|
style: {
|
|
11099
11105
|
marginBottom: "16px"
|
|
11100
|
-
}
|
|
11101
|
-
|
|
11106
|
+
},
|
|
11107
|
+
className: "formcomposer-section-grid"
|
|
11108
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11102
11109
|
style: {
|
|
11103
11110
|
fontWeight: "700"
|
|
11104
11111
|
}
|
|
@@ -11166,12 +11173,11 @@ const ConnectionDetails = _props => {
|
|
|
11166
11173
|
onBlur: props.onBlur
|
|
11167
11174
|
});
|
|
11168
11175
|
}
|
|
11169
|
-
})), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.water) && /*#__PURE__*/React.createElement(
|
|
11176
|
+
}))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.water) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11170
11177
|
style: isMobile && isEmployee ? {
|
|
11171
11178
|
fontWeight: "700",
|
|
11172
11179
|
width: "100%"
|
|
11173
11180
|
} : {
|
|
11174
|
-
marginTop: "-5px",
|
|
11175
11181
|
fontWeight: "700"
|
|
11176
11182
|
},
|
|
11177
11183
|
className: "card-label-smaller"
|
|
@@ -11207,15 +11213,14 @@ const ConnectionDetails = _props => {
|
|
|
11207
11213
|
onBlur: props.onBlur
|
|
11208
11214
|
});
|
|
11209
11215
|
}
|
|
11210
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11216
|
+
}))), localFormState.touched.proposedTaps && errors !== null && errors !== void 0 && (_errors$proposedTaps2 = errors.proposedTaps) !== null && _errors$proposedTaps2 !== void 0 && _errors$proposedTaps2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11211
11217
|
style: errorStyle
|
|
11212
|
-
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$
|
|
11218
|
+
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$proposedTaps3 = errors.proposedTaps) === null || _errors$proposedTaps3 === void 0 ? void 0 : _errors$proposedTaps3.message : "") : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11213
11219
|
style: isMobile && isEmployee ? {
|
|
11214
11220
|
fontWeight: "700",
|
|
11215
11221
|
width: "100%",
|
|
11216
11222
|
paddingTop: "10px"
|
|
11217
11223
|
} : {
|
|
11218
|
-
marginTop: "-5px",
|
|
11219
11224
|
fontWeight: "700"
|
|
11220
11225
|
},
|
|
11221
11226
|
className: "card-label-smaller"
|
|
@@ -11243,14 +11248,13 @@ const ConnectionDetails = _props => {
|
|
|
11243
11248
|
t: t
|
|
11244
11249
|
});
|
|
11245
11250
|
}
|
|
11246
|
-
})), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11251
|
+
})), localFormState.touched.proposedPipeSize && errors !== null && errors !== void 0 && (_errors$proposedPipeS2 = errors.proposedPipeSize) !== null && _errors$proposedPipeS2 !== void 0 && _errors$proposedPipeS2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11247
11252
|
style: errorStyle
|
|
11248
|
-
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$
|
|
11253
|
+
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$proposedPipeS3 = errors.proposedPipeSize) === null || _errors$proposedPipeS3 === void 0 ? void 0 : _errors$proposedPipeS3.message : "") : null), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.sewerage) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11249
11254
|
style: isMobile && isEmployee ? {
|
|
11250
11255
|
fontWeight: "700",
|
|
11251
11256
|
width: "100%"
|
|
11252
11257
|
} : {
|
|
11253
|
-
marginTop: "-5px",
|
|
11254
11258
|
fontWeight: "700"
|
|
11255
11259
|
},
|
|
11256
11260
|
className: "card-label-smaller"
|
|
@@ -11293,7 +11297,6 @@ const ConnectionDetails = _props => {
|
|
|
11293
11297
|
fontWeight: "700",
|
|
11294
11298
|
width: "100%"
|
|
11295
11299
|
} : {
|
|
11296
|
-
marginTop: "-5px",
|
|
11297
11300
|
fontWeight: "700"
|
|
11298
11301
|
},
|
|
11299
11302
|
className: "card-label-smaller"
|
|
@@ -11331,7 +11334,7 @@ const ConnectionDetails = _props => {
|
|
|
11331
11334
|
}
|
|
11332
11335
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11333
11336
|
style: errorStyle
|
|
11334
|
-
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : "")))
|
|
11337
|
+
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : "")));
|
|
11335
11338
|
};
|
|
11336
11339
|
|
|
11337
11340
|
const WSDocumentsRequired = () => {
|
|
@@ -15288,7 +15291,6 @@ const WSDocumentsEmployee = ({
|
|
|
15288
15291
|
formState
|
|
15289
15292
|
}) => {
|
|
15290
15293
|
var _formData$DocumentsRe, _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData2;
|
|
15291
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
15292
15294
|
const stateId = Digit.ULBService.getStateId();
|
|
15293
15295
|
const [documents, setDocuments] = useState((formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || []);
|
|
15294
15296
|
const [error, setError] = useState(null);
|
|
@@ -15336,7 +15338,9 @@ const WSDocumentsEmployee = ({
|
|
|
15336
15338
|
});
|
|
15337
15339
|
});
|
|
15338
15340
|
}
|
|
15339
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
15341
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15342
|
+
className: "formcomposer-section-grid ws-doc-upload"
|
|
15343
|
+
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData2 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData2 === void 0 ? void 0 : _wsDocs$wsDocsData2.map((document, index) => {
|
|
15340
15344
|
return /*#__PURE__*/React.createElement(SelectDocument$1, {
|
|
15341
15345
|
key: index,
|
|
15342
15346
|
document: document,
|
|
@@ -15353,7 +15357,7 @@ const WSDocumentsEmployee = ({
|
|
|
15353
15357
|
config: config,
|
|
15354
15358
|
formState: formState
|
|
15355
15359
|
});
|
|
15356
|
-
}), error && /*#__PURE__*/React.createElement(Toast, {
|
|
15360
|
+
})), error && /*#__PURE__*/React.createElement(Toast, {
|
|
15357
15361
|
label: error,
|
|
15358
15362
|
onClose: () => setError(null),
|
|
15359
15363
|
error: true
|
|
@@ -15376,11 +15380,11 @@ function SelectDocument$1({
|
|
|
15376
15380
|
id
|
|
15377
15381
|
}) {
|
|
15378
15382
|
var _doc$dropdownData, _formData$ConnectionD;
|
|
15383
|
+
const fileRef = useRef();
|
|
15379
15384
|
const filteredDocument = documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
15380
15385
|
var _item$documentType;
|
|
15381
15386
|
return item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
15382
15387
|
})[0];
|
|
15383
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
15384
15388
|
const [selectedDocument, setSelectedDocument] = useState(filteredDocument ? {
|
|
15385
15389
|
...filteredDocument,
|
|
15386
15390
|
code: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType
|
|
@@ -15487,11 +15491,7 @@ function SelectDocument$1({
|
|
|
15487
15491
|
useEffect(() => {
|
|
15488
15492
|
if (isHidden) setUploadedFile(null);
|
|
15489
15493
|
}, [isHidden]);
|
|
15490
|
-
return /*#__PURE__*/React.createElement(
|
|
15491
|
-
style: {
|
|
15492
|
-
marginBottom: "24px"
|
|
15493
|
-
}
|
|
15494
|
-
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15494
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15495
15495
|
style: {
|
|
15496
15496
|
fontWeight: "700"
|
|
15497
15497
|
}
|
|
@@ -15510,9 +15510,7 @@ function SelectDocument$1({
|
|
|
15510
15510
|
select: handleSelectDocument,
|
|
15511
15511
|
optionKey: "i18nKey",
|
|
15512
15512
|
t: t
|
|
15513
|
-
})) : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(
|
|
15514
|
-
className: "card-label-smaller"
|
|
15515
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
15513
|
+
})) : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
|
|
15516
15514
|
className: "field"
|
|
15517
15515
|
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
15518
15516
|
onUpload: selectfile,
|
|
@@ -15524,9 +15522,6 @@ function SelectDocument$1({
|
|
|
15524
15522
|
textStyles: {
|
|
15525
15523
|
width: "100%"
|
|
15526
15524
|
},
|
|
15527
|
-
inputStyles: {
|
|
15528
|
-
width: "280px"
|
|
15529
|
-
},
|
|
15530
15525
|
buttonType: "button",
|
|
15531
15526
|
error: !uploadedFile,
|
|
15532
15527
|
accept: "image/*, .pdf, .png, .jpeg, .jpg"
|
|
@@ -15631,7 +15626,7 @@ const WSEditConnectionDetails = ({
|
|
|
15631
15626
|
applicationNumber
|
|
15632
15627
|
};
|
|
15633
15628
|
return /*#__PURE__*/React.createElement(React.Fragment, null, connectionDetails.map((connectionDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$4, Object.assign({
|
|
15634
|
-
key: connectionDetail.key,
|
|
15629
|
+
key: connectionDetail.key || index,
|
|
15635
15630
|
index: index,
|
|
15636
15631
|
connectionDetail: connectionDetail
|
|
15637
15632
|
}, commonProps))));
|
|
@@ -15752,6 +15747,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15752
15747
|
label: `${t(`WS_SERVICE_NAME_LABEL`)}`,
|
|
15753
15748
|
text: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName
|
|
15754
15749
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
15750
|
+
className: "formcomposer-section-grid",
|
|
15755
15751
|
style: {
|
|
15756
15752
|
marginBottom: "16px"
|
|
15757
15753
|
}
|
|
@@ -15829,7 +15825,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15829
15825
|
disable: true
|
|
15830
15826
|
});
|
|
15831
15827
|
}
|
|
15832
|
-
}))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) == "WATER" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15828
|
+
}))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) == "WATER" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15833
15829
|
style: isMobile && isEmployee ? {
|
|
15834
15830
|
fontWeight: "700",
|
|
15835
15831
|
width: "100%"
|
|
@@ -15872,7 +15868,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15872
15868
|
}
|
|
15873
15869
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15874
15870
|
style: errorStyle
|
|
15875
|
-
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$proposedTaps2 = errors.proposedTaps) === null || _errors$proposedTaps2 === void 0 ? void 0 : _errors$proposedTaps2.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15871
|
+
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$proposedTaps2 = errors.proposedTaps) === null || _errors$proposedTaps2 === void 0 ? void 0 : _errors$proposedTaps2.message : "")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15876
15872
|
style: isMobile && isEmployee ? {
|
|
15877
15873
|
fontWeight: "700",
|
|
15878
15874
|
width: "100%"
|
|
@@ -15907,7 +15903,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15907
15903
|
}
|
|
15908
15904
|
})), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15909
15905
|
style: errorStyle
|
|
15910
|
-
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$proposedPipeS2 = errors.proposedPipeSize) === null || _errors$proposedPipeS2 === void 0 ? void 0 : _errors$proposedPipeS2.message : "")), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) !== "WATER" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15906
|
+
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$proposedPipeS2 = errors.proposedPipeSize) === null || _errors$proposedPipeS2 === void 0 ? void 0 : _errors$proposedPipeS2.message : ""))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) !== "WATER" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15911
15907
|
style: isMobile && isEmployee ? {
|
|
15912
15908
|
fontWeight: "700",
|
|
15913
15909
|
width: "100%"
|
|
@@ -15950,7 +15946,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15950
15946
|
}
|
|
15951
15947
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15952
15948
|
style: errorStyle
|
|
15953
|
-
}, localFormState.touched.proposedWaterClosets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedWater2 = errors.proposedWaterClosets) === null || _errors$proposedWater2 === void 0 ? void 0 : _errors$proposedWater2.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15949
|
+
}, localFormState.touched.proposedWaterClosets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedWater2 = errors.proposedWaterClosets) === null || _errors$proposedWater2 === void 0 ? void 0 : _errors$proposedWater2.message : "")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15954
15950
|
style: isMobile && isEmployee ? {
|
|
15955
15951
|
fontWeight: "700",
|
|
15956
15952
|
width: "100%"
|
|
@@ -15993,7 +15989,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15993
15989
|
}
|
|
15994
15990
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15995
15991
|
style: errorStyle
|
|
15996
|
-
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : ""))));
|
|
15992
|
+
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : "")))));
|
|
15997
15993
|
};
|
|
15998
15994
|
|
|
15999
15995
|
const WSDisconnectionDocsRequired = ({
|
|
@@ -19979,10 +19975,15 @@ const WSInbox = ({
|
|
|
19979
19975
|
...formState
|
|
19980
19976
|
}
|
|
19981
19977
|
});
|
|
19978
|
+
let links = [{
|
|
19979
|
+
text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
19980
|
+
link: `/digit-ui/employee/ws/create-application`,
|
|
19981
|
+
roles: ["WS_CEMP", "SW_CEMP"]
|
|
19982
|
+
}];
|
|
19983
|
+
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
19982
19984
|
const PropsForInboxLinks = {
|
|
19983
19985
|
logoIcon: /*#__PURE__*/React.createElement(DropIcon, null),
|
|
19984
|
-
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
|
|
19985
|
-
links: []
|
|
19986
|
+
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
|
|
19986
19987
|
};
|
|
19987
19988
|
const SearchFormFields = useCallback(({
|
|
19988
19989
|
registerRef,
|
|
@@ -20079,7 +20080,9 @@ const WSInbox = ({
|
|
|
20079
20080
|
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
20080
20081
|
onSortFormReset
|
|
20081
20082
|
};
|
|
20082
|
-
return /*#__PURE__*/React.createElement(
|
|
20083
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20084
|
+
className: "app-container"
|
|
20085
|
+
}, /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
20083
20086
|
isInboxLoading,
|
|
20084
20087
|
PropsForInboxLinks
|
|
20085
20088
|
}, propsForSearchForm, propsForFilterForm, propsForMobileSortForm, {
|
|
@@ -20185,7 +20188,8 @@ const SearchFields = ({
|
|
|
20185
20188
|
reset,
|
|
20186
20189
|
tenantId,
|
|
20187
20190
|
t,
|
|
20188
|
-
businessService
|
|
20191
|
+
businessService,
|
|
20192
|
+
hideSubmitButton: _hideSubmitButton = false
|
|
20189
20193
|
}) => {
|
|
20190
20194
|
var _statusData$otherRole, _statusData$userRoleS;
|
|
20191
20195
|
const {
|
|
@@ -20249,12 +20253,12 @@ const SearchFields = ({
|
|
|
20249
20253
|
componentInFront: "+91"
|
|
20250
20254
|
};
|
|
20251
20255
|
let validation = {};
|
|
20252
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
20256
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_ACK_COMMON_APP_NO_LABEL")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
20253
20257
|
name: "applicationNumber",
|
|
20254
20258
|
inputRef: register()
|
|
20255
20259
|
}, validation = {
|
|
20256
20260
|
isRequired: false,
|
|
20257
|
-
pattern: "^[a-zA-Z0-9-_
|
|
20261
|
+
pattern: "^[a-zA-Z0-9-_/]*$",
|
|
20258
20262
|
type: "text",
|
|
20259
20263
|
title: t("ERR_INVALID_APPLICATION_NO")
|
|
20260
20264
|
}))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
@@ -20262,7 +20266,7 @@ const SearchFields = ({
|
|
|
20262
20266
|
inputRef: register()
|
|
20263
20267
|
}, validation = {
|
|
20264
20268
|
isRequired: false,
|
|
20265
|
-
pattern: "^[a-zA-Z0-9
|
|
20269
|
+
pattern: "^[a-zA-Z0-9/-]*$",
|
|
20266
20270
|
type: "text",
|
|
20267
20271
|
title: t("ERR_INVALID_CONSUMER_NO")
|
|
20268
20272
|
}))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("CONSUMER_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(MobileNumber, Object.assign({
|
|
@@ -20305,7 +20309,7 @@ const SearchFields = ({
|
|
|
20305
20309
|
}),
|
|
20306
20310
|
name: "toDate",
|
|
20307
20311
|
control: control
|
|
20308
|
-
})), /*#__PURE__*/React.createElement(SearchField, {
|
|
20312
|
+
})), !_hideSubmitButton && /*#__PURE__*/React.createElement(SearchField, {
|
|
20309
20313
|
className: "submit"
|
|
20310
20314
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20311
20315
|
label: t("ES_COMMON_SEARCH"),
|
|
@@ -20649,17 +20653,80 @@ const SearchApplication = ({
|
|
|
20649
20653
|
disableSortBy: true,
|
|
20650
20654
|
accessor: row => GetCell((row === null || row === void 0 ? void 0 : row.address) || "-")
|
|
20651
20655
|
}], []);
|
|
20652
|
-
return /*#__PURE__*/React.createElement(
|
|
20656
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20657
|
+
className: "employee-wrapper"
|
|
20658
|
+
}, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
20659
|
+
title: t("WS_SEARCH_FILTERS_LABEL") || "Search Filters",
|
|
20660
|
+
defaultOpen: true,
|
|
20661
|
+
tabs: [t("WT_SMART_SEARCH"), t("WT_ADVANCED_SEARCH")],
|
|
20662
|
+
defaultTab: t("WT_SMART_SEARCH")
|
|
20663
|
+
}, activeTab => /*#__PURE__*/React.createElement("form", {
|
|
20664
|
+
className: "ws-search-form",
|
|
20665
|
+
onSubmit: handleSubmit(onSubmit)
|
|
20666
|
+
}, activeTab === t("WT_SMART_SEARCH") && /*#__PURE__*/React.createElement("div", {
|
|
20667
|
+
className: "wt-search-grid",
|
|
20668
|
+
style: {
|
|
20669
|
+
display: "grid",
|
|
20670
|
+
gridTemplateColumns: "1fr 1fr",
|
|
20671
|
+
gap: "24px"
|
|
20672
|
+
}
|
|
20673
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20674
|
+
className: "search-field-wrapper"
|
|
20675
|
+
}, /*#__PURE__*/React.createElement("label", null, t("WT_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(MobileNumber, {
|
|
20676
|
+
name: "mobileNumber",
|
|
20677
|
+
inputRef: register({
|
|
20678
|
+
minLength: {
|
|
20679
|
+
value: 10,
|
|
20680
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
20681
|
+
},
|
|
20682
|
+
maxLength: {
|
|
20683
|
+
value: 10,
|
|
20684
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
20685
|
+
},
|
|
20686
|
+
pattern: {
|
|
20687
|
+
value: /[6789][0-9]{9}/,
|
|
20688
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
20689
|
+
}
|
|
20690
|
+
}),
|
|
20691
|
+
type: "number",
|
|
20692
|
+
maxlength: 10
|
|
20693
|
+
}))), activeTab === t("WT_ADVANCED_SEARCH") && /*#__PURE__*/React.createElement(SearchForm, {
|
|
20694
|
+
className: "ws-search-form-wrapper formcomposer-section-grid",
|
|
20653
20695
|
onSubmit: onSubmit,
|
|
20654
20696
|
handleSubmit: handleSubmit
|
|
20655
|
-
}, /*#__PURE__*/React.createElement(SearchFields, {
|
|
20697
|
+
}, /*#__PURE__*/React.createElement(SearchFields, Object.assign({}, {
|
|
20656
20698
|
register,
|
|
20657
20699
|
control,
|
|
20658
20700
|
reset,
|
|
20659
20701
|
tenantId,
|
|
20660
20702
|
t,
|
|
20661
20703
|
businessService
|
|
20662
|
-
}
|
|
20704
|
+
}, {
|
|
20705
|
+
hideSubmitButton: true
|
|
20706
|
+
}))), /*#__PURE__*/React.createElement(SearchField, {
|
|
20707
|
+
className: "ws-submit"
|
|
20708
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20709
|
+
label: t("ES_COMMON_SEARCH"),
|
|
20710
|
+
className: "submit-bar generic-button",
|
|
20711
|
+
submit: true
|
|
20712
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
20713
|
+
className: "clear-search generic-button",
|
|
20714
|
+
onClick: () => {
|
|
20715
|
+
reset({
|
|
20716
|
+
applicationType: "",
|
|
20717
|
+
fromDate: "",
|
|
20718
|
+
toDate: "",
|
|
20719
|
+
connectionNumber: "",
|
|
20720
|
+
applicationStatus: "",
|
|
20721
|
+
applicationNumber: "",
|
|
20722
|
+
tradeName: "",
|
|
20723
|
+
offset: 0,
|
|
20724
|
+
limit: 10,
|
|
20725
|
+
sortBy: "commencementDate",
|
|
20726
|
+
sortOrder: "DESC"
|
|
20727
|
+
});
|
|
20728
|
+
}
|
|
20729
|
+
}, t(`CS_COMMON_CLEAR_SEARCH`))))), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
20663
20730
|
style: {
|
|
20664
20731
|
marginTop: 20
|
|
20665
20732
|
}
|
|
@@ -20701,7 +20768,8 @@ const SearchFields$1 = ({
|
|
|
20701
20768
|
control,
|
|
20702
20769
|
reset,
|
|
20703
20770
|
tenantId,
|
|
20704
|
-
t
|
|
20771
|
+
t,
|
|
20772
|
+
hideSubmitButton: _hideSubmitButton = false
|
|
20705
20773
|
}) => {
|
|
20706
20774
|
const propsForMobileNumber = {
|
|
20707
20775
|
maxlength: 10,
|
|
@@ -20710,7 +20778,7 @@ const SearchFields$1 = ({
|
|
|
20710
20778
|
componentInFront: "+91"
|
|
20711
20779
|
};
|
|
20712
20780
|
const propsForOldConnectionNumberNpropertyId = {
|
|
20713
|
-
pattern: "[A-Za-z]{2}
|
|
20781
|
+
pattern: "[A-Za-z]{2}-[A-Za-z]{2}-[0-9]{4}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}|[A-Za-z]{2}-[A-Za-z]{2}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}",
|
|
20714
20782
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
20715
20783
|
};
|
|
20716
20784
|
let validation = {};
|
|
@@ -20719,7 +20787,7 @@ const SearchFields$1 = ({
|
|
|
20719
20787
|
inputRef: register({})
|
|
20720
20788
|
}, validation = {
|
|
20721
20789
|
isRequired: false,
|
|
20722
|
-
pattern: "^[a-zA-Z0-9
|
|
20790
|
+
pattern: "^[a-zA-Z0-9/-]*$",
|
|
20723
20791
|
type: "text",
|
|
20724
20792
|
title: t("ERR_INVALID_CONSUMER_NO")
|
|
20725
20793
|
}))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_OLD_CONSUMER_LABEL")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
@@ -20731,7 +20799,7 @@ const SearchFields$1 = ({
|
|
|
20731
20799
|
}, propsForOldConnectionNumberNpropertyId))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_HOME_SEARCH_RESULTS_OWN_MOB_LABEL")), /*#__PURE__*/React.createElement(MobileNumber, Object.assign({
|
|
20732
20800
|
name: "mobileNumber",
|
|
20733
20801
|
inputRef: register({})
|
|
20734
|
-
}, propsForMobileNumber))), /*#__PURE__*/React.createElement(SearchField, {
|
|
20802
|
+
}, propsForMobileNumber))), !_hideSubmitButton && /*#__PURE__*/React.createElement(SearchField, {
|
|
20735
20803
|
className: "submit"
|
|
20736
20804
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20737
20805
|
label: t("WS_SEARCH_CONNECTION_SEARCH_BUTTON"),
|
|
@@ -20927,7 +20995,7 @@ const SearchWaterConnection = ({
|
|
|
20927
20995
|
const [result, setResult] = useState([]);
|
|
20928
20996
|
const [showToast, setShowToast] = useState(null);
|
|
20929
20997
|
const convertEpochToDate = dateEpoch => {
|
|
20930
|
-
if (dateEpoch == null || dateEpoch
|
|
20998
|
+
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
20931
20999
|
return "NA";
|
|
20932
21000
|
}
|
|
20933
21001
|
const dateFromApi = new Date(dateEpoch);
|
|
@@ -20938,14 +21006,16 @@ const SearchWaterConnection = ({
|
|
|
20938
21006
|
day = (day > 9 ? "" : "0") + day;
|
|
20939
21007
|
return `${day}/${month}/${year}`;
|
|
20940
21008
|
};
|
|
20941
|
-
useEffect(
|
|
20942
|
-
|
|
20943
|
-
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
21009
|
+
useEffect(() => {
|
|
21010
|
+
(async () => {
|
|
21011
|
+
const payload = {
|
|
21012
|
+
BulkBillCriteria: {
|
|
21013
|
+
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
21014
|
+
}
|
|
21015
|
+
};
|
|
21016
|
+
let data = await Digit.WSService.WSSewsearchDemand(payload, window.location.href.includes("ws/sewerage/search-demand") ? "sw" : "ws");
|
|
21017
|
+
setResult(data.connection);
|
|
21018
|
+
})();
|
|
20949
21019
|
}, []);
|
|
20950
21020
|
const {
|
|
20951
21021
|
t
|
|
@@ -21093,7 +21163,7 @@ const SearchWaterConnection = ({
|
|
|
21093
21163
|
}) => {
|
|
21094
21164
|
var _row$original14;
|
|
21095
21165
|
const amount = (_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.due;
|
|
21096
|
-
if (amount || amount
|
|
21166
|
+
if (amount || amount === 0) {
|
|
21097
21167
|
var _row$original15;
|
|
21098
21168
|
return GetCell(getActionItem((_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15.status, row));
|
|
21099
21169
|
} else {
|
|
@@ -21185,17 +21255,77 @@ const SearchWaterConnection = ({
|
|
|
21185
21255
|
}, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ")));
|
|
21186
21256
|
}
|
|
21187
21257
|
};
|
|
21188
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
21189
|
-
className: "
|
|
21258
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
21259
|
+
className: "employee-wrapper"
|
|
21260
|
+
}, window.location.href.includes("search-demand") ? "" : /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
21261
|
+
title: t("WS_SEARCH_FILTERS_LABEL") || "Search Filters",
|
|
21262
|
+
defaultOpen: true,
|
|
21263
|
+
tabs: [t("WT_SMART_SEARCH"), t("WT_ADVANCED_SEARCH")],
|
|
21264
|
+
defaultTab: t("WT_SMART_SEARCH")
|
|
21265
|
+
}, activeTab => /*#__PURE__*/React.createElement("form", {
|
|
21266
|
+
className: "ws-search-form",
|
|
21267
|
+
onSubmit: handleSubmit(onSubmit)
|
|
21268
|
+
}, activeTab === t("WT_SMART_SEARCH") && /*#__PURE__*/React.createElement("div", {
|
|
21269
|
+
className: "wt-search-grid",
|
|
21270
|
+
style: {
|
|
21271
|
+
display: "grid",
|
|
21272
|
+
gridTemplateColumns: "1fr 1fr",
|
|
21273
|
+
gap: "24px"
|
|
21274
|
+
}
|
|
21275
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21276
|
+
className: "search-field-wrapper"
|
|
21277
|
+
}, /*#__PURE__*/React.createElement("label", null, t("WS_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(MobileNumber, {
|
|
21278
|
+
name: "mobileNumber",
|
|
21279
|
+
inputRef: register({
|
|
21280
|
+
minLength: {
|
|
21281
|
+
value: 10,
|
|
21282
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
21283
|
+
},
|
|
21284
|
+
maxLength: {
|
|
21285
|
+
value: 10,
|
|
21286
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
21287
|
+
},
|
|
21288
|
+
pattern: {
|
|
21289
|
+
value: /[6789][0-9]{9}/,
|
|
21290
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
21291
|
+
}
|
|
21292
|
+
}),
|
|
21293
|
+
type: "number",
|
|
21294
|
+
maxlength: 10
|
|
21295
|
+
}))), activeTab === t("WT_ADVANCED_SEARCH") && /*#__PURE__*/React.createElement(SearchForm, {
|
|
21296
|
+
className: "ws-search-form-wrapper formcomposer-section-grid",
|
|
21190
21297
|
onSubmit: onSubmit,
|
|
21191
21298
|
handleSubmit: handleSubmit
|
|
21192
|
-
}, /*#__PURE__*/React.createElement(SearchFields$1, {
|
|
21299
|
+
}, /*#__PURE__*/React.createElement(SearchFields$1, Object.assign({}, {
|
|
21193
21300
|
register,
|
|
21194
21301
|
control,
|
|
21195
21302
|
reset,
|
|
21196
21303
|
tenantId,
|
|
21197
21304
|
t
|
|
21198
|
-
}
|
|
21305
|
+
}, {
|
|
21306
|
+
hideSubmitButton: true
|
|
21307
|
+
}))), /*#__PURE__*/React.createElement(SearchField, {
|
|
21308
|
+
className: "ws-submit"
|
|
21309
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
21310
|
+
label: t("WS_SEARCH_CONNECTION_SEARCH_BUTTON"),
|
|
21311
|
+
className: "submit-bar generic-button",
|
|
21312
|
+
submit: true
|
|
21313
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
21314
|
+
className: "clear-search generic-button",
|
|
21315
|
+
onClick: () => {
|
|
21316
|
+
reset({
|
|
21317
|
+
searchType: "CONNECTION",
|
|
21318
|
+
mobileNumber: "",
|
|
21319
|
+
offset: 0,
|
|
21320
|
+
limit: 10,
|
|
21321
|
+
sortBy: "commencementDate",
|
|
21322
|
+
sortOrder: "DESC",
|
|
21323
|
+
propertyId: "",
|
|
21324
|
+
connectionNumber: "",
|
|
21325
|
+
oldConnectionNumber: ""
|
|
21326
|
+
});
|
|
21327
|
+
}
|
|
21328
|
+
}, t("WS_SEARCH_CONNECTION_RESET_BUTTON"))))), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
21199
21329
|
style: {
|
|
21200
21330
|
marginTop: 20
|
|
21201
21331
|
}
|
|
@@ -21267,7 +21397,7 @@ const SearchWaterConnection = ({
|
|
|
21267
21397
|
onClose: w => {
|
|
21268
21398
|
setShowToast(x => null);
|
|
21269
21399
|
}
|
|
21270
|
-
}));
|
|
21400
|
+
})));
|
|
21271
21401
|
};
|
|
21272
21402
|
|
|
21273
21403
|
const BulkBillSearchFields = ({
|
|
@@ -31355,7 +31485,8 @@ const NewApplication = () => {
|
|
|
31355
31485
|
onFormValueChange: onFormValueChange,
|
|
31356
31486
|
label: t("CS_COMMON_SUBMIT"),
|
|
31357
31487
|
onSubmit: onSubmit,
|
|
31358
|
-
defaultValues: sessionFormData
|
|
31488
|
+
defaultValues: sessionFormData,
|
|
31489
|
+
cardFormWrapperClassName: "new-application-card"
|
|
31359
31490
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
31360
31491
|
isDleteBtn: true,
|
|
31361
31492
|
error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
|
|
@@ -33155,7 +33286,11 @@ const ActionModal$5 = ({
|
|
|
33155
33286
|
actionData,
|
|
33156
33287
|
applicationData,
|
|
33157
33288
|
businessService,
|
|
33158
|
-
moduleCode
|
|
33289
|
+
moduleCode,
|
|
33290
|
+
cardClassName,
|
|
33291
|
+
cardFormWrapperClassName,
|
|
33292
|
+
cardFormClassName,
|
|
33293
|
+
formClassName
|
|
33159
33294
|
}) => {
|
|
33160
33295
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
33161
33296
|
const {
|
|
@@ -33403,7 +33538,11 @@ const ActionModal$5 = ({
|
|
|
33403
33538
|
childrenAtTheBottom: true,
|
|
33404
33539
|
onSubmit: submit,
|
|
33405
33540
|
defaultValues: defaultValues,
|
|
33406
|
-
formId: "modal-action"
|
|
33541
|
+
formId: "modal-action",
|
|
33542
|
+
cardFormClassName: cardFormClassName,
|
|
33543
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
33544
|
+
cardClassName: cardClassName,
|
|
33545
|
+
formClassName: formClassName
|
|
33407
33546
|
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
33408
33547
|
};
|
|
33409
33548
|
|
|
@@ -33587,7 +33726,11 @@ const ActionModal$7 = ({
|
|
|
33587
33726
|
actionData,
|
|
33588
33727
|
applicationData,
|
|
33589
33728
|
businessService,
|
|
33590
|
-
moduleCode
|
|
33729
|
+
moduleCode,
|
|
33730
|
+
cardClassName,
|
|
33731
|
+
cardFormWrapperClassName,
|
|
33732
|
+
cardFormClassName,
|
|
33733
|
+
formClassName
|
|
33591
33734
|
}) => {
|
|
33592
33735
|
var _action$roles, _action$roles$, _action$roles$$map;
|
|
33593
33736
|
const {
|
|
@@ -33667,7 +33810,11 @@ const ActionModal$7 = ({
|
|
|
33667
33810
|
childrenAtTheBottom: true,
|
|
33668
33811
|
onSubmit: submit,
|
|
33669
33812
|
defaultValues: defaultValues,
|
|
33670
|
-
formId: "modal-action"
|
|
33813
|
+
formId: "modal-action",
|
|
33814
|
+
cardFormClassName: cardFormClassName,
|
|
33815
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
33816
|
+
cardClassName: cardClassName,
|
|
33817
|
+
formClassName: formClassName
|
|
33671
33818
|
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
33672
33819
|
};
|
|
33673
33820
|
|
|
@@ -34220,7 +34367,11 @@ const ActionModal$b = ({
|
|
|
34220
34367
|
actionData,
|
|
34221
34368
|
applicationData,
|
|
34222
34369
|
businessService,
|
|
34223
|
-
moduleCode
|
|
34370
|
+
moduleCode,
|
|
34371
|
+
cardClassName,
|
|
34372
|
+
cardFormWrapperClassName,
|
|
34373
|
+
cardFormClassName,
|
|
34374
|
+
formClassName
|
|
34224
34375
|
}) => {
|
|
34225
34376
|
var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle;
|
|
34226
34377
|
const {
|
|
@@ -34390,7 +34541,11 @@ const ActionModal$b = ({
|
|
|
34390
34541
|
childrenAtTheBottom: true,
|
|
34391
34542
|
onSubmit: submit,
|
|
34392
34543
|
defaultValues: defaultValues,
|
|
34393
|
-
formId: "modal-action"
|
|
34544
|
+
formId: "modal-action",
|
|
34545
|
+
cardFormClassName: cardFormClassName,
|
|
34546
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
34547
|
+
cardClassName: cardClassName,
|
|
34548
|
+
formClassName: formClassName
|
|
34394
34549
|
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
34395
34550
|
};
|
|
34396
34551
|
|
|
@@ -35939,8 +36094,9 @@ const TLCaption = ({
|
|
|
35939
36094
|
}), /*#__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
36095
|
otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
|
|
35941
36096
|
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"
|
|
36097
|
+
}), 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", {
|
|
36098
|
+
className: "TLComments",
|
|
36099
|
+
key: index
|
|
35944
36100
|
}, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
|
|
35945
36101
|
style: {
|
|
35946
36102
|
overflowX: "scroll"
|
|
@@ -37141,7 +37297,7 @@ function ApplicationDetailsContent({
|
|
|
37141
37297
|
oldValue,
|
|
37142
37298
|
isInfoLabel = false
|
|
37143
37299
|
}) {
|
|
37144
|
-
var _applicationDetails$
|
|
37300
|
+
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
37301
|
const {
|
|
37146
37302
|
t
|
|
37147
37303
|
} = useTranslation();
|
|
@@ -37153,8 +37309,6 @@ function ApplicationDetailsContent({
|
|
|
37153
37309
|
let {
|
|
37154
37310
|
id: applicationNo
|
|
37155
37311
|
} = 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
37312
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
37159
37313
|
var _thumbnailsToShow$ful;
|
|
37160
37314
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
@@ -37363,7 +37517,6 @@ function ApplicationDetailsContent({
|
|
|
37363
37517
|
const openFilePDF = fileId => {
|
|
37364
37518
|
Digit.UploadServices.Filefetch([fileId], Digit.ULBService.getStateId()).then(res => {
|
|
37365
37519
|
var _res$data, _res$data$fileStoreId, _res$data$fileStoreId2;
|
|
37366
|
-
console.log("Response of file:", res);
|
|
37367
37520
|
const concatenatedUrls = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$fileStoreId = _res$data.fileStoreIds) === null || _res$data$fileStoreId === void 0 ? void 0 : (_res$data$fileStoreId2 = _res$data$fileStoreId[0]) === null || _res$data$fileStoreId2 === void 0 ? void 0 : _res$data$fileStoreId2.url;
|
|
37368
37521
|
if (concatenatedUrls) {
|
|
37369
37522
|
const urlArray = concatenatedUrls.split(",");
|
|
@@ -37421,7 +37574,6 @@ function ApplicationDetailsContent({
|
|
|
37421
37574
|
tableLayout: "fixed",
|
|
37422
37575
|
width: "100%",
|
|
37423
37576
|
borderCollapse: "collapse",
|
|
37424
|
-
borderCollapse: "collapse",
|
|
37425
37577
|
border: "1px solid black"
|
|
37426
37578
|
}
|
|
37427
37579
|
}, /*#__PURE__*/React.createElement("tr", {
|
|
@@ -37452,7 +37604,9 @@ function ApplicationDetailsContent({
|
|
|
37452
37604
|
flexWrap: "nowrap",
|
|
37453
37605
|
gap: "5px"
|
|
37454
37606
|
}
|
|
37455
|
-
}, element.map((file, fileIndex) =>
|
|
37607
|
+
}, element.map((file, fileIndex) =>
|
|
37608
|
+
/*#__PURE__*/
|
|
37609
|
+
React.createElement("a", {
|
|
37456
37610
|
key: fileIndex,
|
|
37457
37611
|
onClick: () => openFilePDF(file.fileStoreId),
|
|
37458
37612
|
rel: "noopener noreferrer",
|
|
@@ -37474,7 +37628,7 @@ function ApplicationDetailsContent({
|
|
|
37474
37628
|
border: "1px solid black",
|
|
37475
37629
|
verticalAlign: "middle"
|
|
37476
37630
|
}
|
|
37477
|
-
},
|
|
37631
|
+
}, element && element.editButton === true ? /*#__PURE__*/React.createElement("span", {
|
|
37478
37632
|
style: {
|
|
37479
37633
|
display: "inline-flex",
|
|
37480
37634
|
gap: "10px",
|
|
@@ -37515,7 +37669,7 @@ function ApplicationDetailsContent({
|
|
|
37515
37669
|
})
|
|
37516
37670
|
});
|
|
37517
37671
|
}
|
|
37518
|
-
if ((value === null || value === void 0 ? void 0 : value.isLink)
|
|
37672
|
+
if ((value === null || value === void 0 ? void 0 : value.isLink) === true) {
|
|
37519
37673
|
var _detail$values2;
|
|
37520
37674
|
return /*#__PURE__*/React.createElement(Row, {
|
|
37521
37675
|
key: t(value.title),
|
|
@@ -37670,7 +37824,7 @@ function ApplicationDetailsContent({
|
|
|
37670
37824
|
let timelineStatusPostfix = "";
|
|
37671
37825
|
if (window.location.href.includes("/obps/")) {
|
|
37672
37826
|
var _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17;
|
|
37673
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index
|
|
37827
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index === 0 ? "" : `_DONE`;
|
|
37674
37828
|
}
|
|
37675
37829
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
37676
37830
|
key: index
|
|
@@ -38200,7 +38354,8 @@ const ApplicationDetails = props => {
|
|
|
38200
38354
|
actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
|
|
38201
38355
|
businessService: businessService,
|
|
38202
38356
|
workflowDetails: workflowDetails,
|
|
38203
|
-
moduleCode: moduleCode
|
|
38357
|
+
moduleCode: moduleCode,
|
|
38358
|
+
cardFormWrapperClassName: "modal-form"
|
|
38204
38359
|
}) : null, isWarningPop ? /*#__PURE__*/React.createElement(ApplicationDetailsWarningPopup, {
|
|
38205
38360
|
action: selectedAction,
|
|
38206
38361
|
workflowDetails: workflowDetails,
|
|
@@ -38463,7 +38618,6 @@ const ApplicationDetails$1 = () => {
|
|
|
38463
38618
|
}
|
|
38464
38619
|
});
|
|
38465
38620
|
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
38621
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
38468
38622
|
var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
|
|
38469
38623
|
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 +39758,6 @@ const EditApplication$1 = () => {
|
|
|
39604
39758
|
state
|
|
39605
39759
|
} = useLocation();
|
|
39606
39760
|
state = state ? typeof state === "string" ? JSON.parse(state) : state : {};
|
|
39607
|
-
const history = useHistory();
|
|
39608
39761
|
let filters = getQueryStringParams(location.search);
|
|
39609
39762
|
const [canSubmit, setSubmitValve] = useState(false);
|
|
39610
39763
|
const [showToast, setShowToast] = useState(null);
|
|
@@ -39777,24 +39930,24 @@ const EditApplication$1 = () => {
|
|
|
39777
39930
|
if (enabledLoader || isConfigLoading) {
|
|
39778
39931
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
39779
39932
|
}
|
|
39933
|
+
console.log(config.body);
|
|
39780
39934
|
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, {
|
|
39935
|
+
className: "employee-form-content"
|
|
39936
|
+
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
39785
39937
|
config: config.body,
|
|
39786
39938
|
userType: "employee",
|
|
39787
39939
|
onFormValueChange: onFormValueChange,
|
|
39788
39940
|
label: t("CS_COMMON_SUBMIT"),
|
|
39789
39941
|
onSubmit: onSubmit,
|
|
39790
39942
|
defaultValues: sessionFormData,
|
|
39791
|
-
appData: appData
|
|
39943
|
+
appData: appData,
|
|
39944
|
+
cardFormWrapperClassName: "new-application-card"
|
|
39792
39945
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
39793
39946
|
error: showToast.key,
|
|
39794
39947
|
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
39795
39948
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
|
|
39796
39949
|
onClose: closeToast
|
|
39797
|
-
}));
|
|
39950
|
+
})));
|
|
39798
39951
|
};
|
|
39799
39952
|
|
|
39800
39953
|
const ConsumptionDetails = ({
|