@djb25/digit-ui-module-ws 1.0.6 → 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.
@@ -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, DropIcon, InboxComposer, 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, 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';
@@ -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: "abcd",
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(Switch, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
9418
- className: "form-container"
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(PrivateRoute, {
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))));
@@ -19987,16 +19994,7 @@ const WSInbox = ({
19987
19994
  links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
19988
19995
  const PropsForInboxLinks = {
19989
19996
  logoIcon: /*#__PURE__*/React.createElement(DropIcon, null),
19990
- headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW",
19991
- links: [...links, {
19992
- text: t("WS_SEWERAGE_CONNECTION_SEARCH_LABEL"),
19993
- link: checkPathName ? `/digit-ui/employee/ws/water/search-connection?from=WS_SEWERAGE_INBOX` : `/digit-ui/employee/ws/sewerage/search-connection?from=WS_SEWERAGE_INBOX`,
19994
- roles: checkPathName ? ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"] : ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
19995
- }, {
19996
- text: t("WS_SEWERAGE_APPLICATION_SEARCH"),
19997
- link: checkPathName ? `/digit-ui/employee/ws/water/search-application?from=WS_SEWERAGE_INBOX` : `/digit-ui/employee/ws/sewerage/search-application?from=WS_SEWERAGE_INBOX`,
19998
- roles: checkPathName ? ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"] : ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
19999
- }]
19997
+ headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
20000
19998
  };
20001
19999
  const SearchFormFields = useCallback(({
20002
20000
  registerRef,
@@ -20093,7 +20091,9 @@ const WSInbox = ({
20093
20091
  sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
20094
20092
  onSortFormReset
20095
20093
  };
20096
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InboxComposer, _extends({
20094
+ return /*#__PURE__*/React.createElement("div", {
20095
+ className: "app-container"
20096
+ }, /*#__PURE__*/React.createElement(InboxComposer, _extends({
20097
20097
  isInboxLoading,
20098
20098
  PropsForInboxLinks
20099
20099
  }, propsForSearchForm, propsForFilterForm, propsForMobileSortForm, {
@@ -35953,8 +35953,9 @@ const TLCaption = ({
35953
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, {
35954
35954
  otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
35955
35955
  headComment: data === null || data === void 0 ? void 0 : data.comment
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 => /*#__PURE__*/React.createElement("div", {
35957
- 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
35958
35959
  }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
35959
35960
  style: {
35960
35961
  overflowX: "scroll"
@@ -37155,7 +37156,7 @@ function ApplicationDetailsContent({
37155
37156
  oldValue,
37156
37157
  isInfoLabel = false
37157
37158
  }) {
37158
- var _applicationDetails$a, _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;
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;
37159
37160
  const {
37160
37161
  t
37161
37162
  } = useTranslation();
@@ -37167,8 +37168,6 @@ function ApplicationDetailsContent({
37167
37168
  let {
37168
37169
  id: applicationNo
37169
37170
  } = useParams();
37170
- const ownersSequences = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.owners;
37171
- console.log("ownersSequences:- ", ownersSequences);
37172
37171
  function OpenImage(imageSource, index, thumbnailsToShow) {
37173
37172
  var _thumbnailsToShow$ful;
37174
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");
@@ -37398,6 +37397,7 @@ function ApplicationDetailsContent({
37398
37397
  setSelectedData(data);
37399
37398
  setShowPopup(true);
37400
37399
  };
37400
+ console.log("===========================");
37401
37401
  return /*#__PURE__*/React.createElement(Card, {
37402
37402
  style: {
37403
37403
  position: "relative"
@@ -38477,7 +38477,6 @@ const ApplicationDetails$1 = () => {
38477
38477
  }
38478
38478
  });
38479
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 => {
38480
- console.log("workflowDetails", workflowDetails);
38481
38480
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
38482
38481
  var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
38483
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") {
@@ -39618,7 +39617,6 @@ const EditApplication$1 = () => {
39618
39617
  state
39619
39618
  } = useLocation();
39620
39619
  state = state ? typeof state === "string" ? JSON.parse(state) : state : {};
39621
- const history = useHistory();
39622
39620
  let filters = getQueryStringParams(location.search);
39623
39621
  const [canSubmit, setSubmitValve] = useState(false);
39624
39622
  const [showToast, setShowToast] = useState(null);
@@ -39791,11 +39789,10 @@ const EditApplication$1 = () => {
39791
39789
  if (enabledLoader || isConfigLoading) {
39792
39790
  return /*#__PURE__*/React.createElement(Loader$1, null);
39793
39791
  }
39792
+ console.log(config.body);
39794
39793
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
39795
- style: {
39796
- marginLeft: "15px"
39797
- }
39798
- }, /*#__PURE__*/React.createElement(Header, null, t(config.head))), /*#__PURE__*/React.createElement(FormComposer, {
39794
+ className: "employee-form-content"
39795
+ }, /*#__PURE__*/React.createElement(FormComposer, {
39799
39796
  config: config.body,
39800
39797
  userType: "employee",
39801
39798
  onFormValueChange: onFormValueChange,
@@ -39808,7 +39805,7 @@ const EditApplication$1 = () => {
39808
39805
  label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
39809
39806
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
39810
39807
  onClose: closeToast
39811
- }));
39808
+ })));
39812
39809
  };
39813
39810
 
39814
39811
  const ConsumptionDetails = ({