@mseva/digit-ui-module-core 1.0.23 → 1.0.25

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.
@@ -3,7 +3,7 @@ import { useQueryClient, QueryClient, QueryClientProvider } from 'react-query';
3
3
  import { Provider } from 'react-redux';
4
4
  import { Link, useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, BrowserRouter } from 'react-router-dom';
5
5
  import { useTranslation, getI18n } from 'react-i18next';
6
- import { PTIcon, BillsIcon, WSICon, TLIcon, PGRIcon, OBPSIcon, MCollectIcon, FSMIcon, Loader, BackButton, CitizenHomeCard, CitizenInfoLabel, PTRIcon, FormStep, CheckBox, CitizenConsentForm, OTPInput, CardText as CardText$1, CardLabelError as CardLabelError$1, AppContainer, Toast, Dropdown, FormComposer as FormComposer$1, CardSubHeader as CardSubHeader$1, Card as Card$1, CustomButton, SubmitBar as SubmitBar$1, TopBar as TopBar$1, Hamburger, Modal, CloseSvg, PropertyHouse, CaseIcon, CollectionIcon, BirthIcon, DeathIcon, FirenocIcon, HomeIcon, EditPencilIcon, LogoutIcon, Phone, LoginIcon, NavBar, ArrowVectorDown, ArrowForward, ComplaintIcon, BPAHomeIcon, ReceiptIcon, PersonIcon, DocumentIconSolid, DropIcon, CollectionsBookmarIcons, FinanceChartIcon, SearchIcon, GalleryIcon, RemoveIcon, BreadCrumb, CameraIcon, LabelFieldPair as LabelFieldPair$1, CardLabel as CardLabel$1, TextInput as TextInput$1, DatePicker, MobileNumber as MobileNumber$1, PrivateRoute, Calender, DocumentIcon, CardBasedOptions, WhatsNewCard, PageBasedInput, CardHeader, RadioButtons, SearchOnRadioButtons, Header as Header$1, PDFSvg, DownloadImgIcon, HelpLineIcon, ServiceCenterIcon, ValidityTimeIcon, TimerIcon, RupeeSymbol, Banner, Rating, TextArea as TextArea$1, SearchField, SearchAction, PopUp, DetailsCard, DownloadBtnCommon, SearchForm, Table, StatusTable, Row, LinkButton as LinkButton$1, Body } from '@mseva/digit-ui-react-components';
6
+ import { PTIcon, BillsIcon, WSICon, TLIcon, PGRIcon, OBPSIcon, MCollectIcon, FSMIcon, Loader, BackButton, CitizenHomeCard, CitizenInfoLabel, PTRIcon, FormStep, CheckBox, CitizenConsentForm, OTPInput, CardText as CardText$1, CardLabelError as CardLabelError$1, AppContainer, Toast, Dropdown, FormComposer as FormComposer$1, CardSubHeader as CardSubHeader$1, Card as Card$1, CustomButton, SubmitBar as SubmitBar$1, TopBar as TopBar$1, Hamburger, Modal, CloseSvg, PropertyHouse, CaseIcon, CollectionIcon, BirthIcon, DeathIcon, FirenocIcon, HomeIcon, EditPencilIcon, LogoutIcon, Phone, LoginIcon, NavBar, ArrowVectorDown, ArrowForward, ComplaintIcon, BPAHomeIcon, ReceiptIcon, PersonIcon, DocumentIconSolid, DropIcon, CollectionsBookmarIcons, FinanceChartIcon, SearchIcon, GalleryIcon, RemoveIcon, BreadCrumb, CameraIcon, LabelFieldPair as LabelFieldPair$1, CardLabel as CardLabel$1, TextInput as TextInput$1, DatePicker, MobileNumber as MobileNumber$1, PrivateRoute, Calender, DocumentIcon, CardBasedOptions, WhatsNewCard, PageBasedInput, CardHeader, RadioButtons, Header as Header$1, PDFSvg, DownloadImgIcon, HelpLineIcon, ServiceCenterIcon, ValidityTimeIcon, TimerIcon, RupeeSymbol, Banner, Rating, TextArea as TextArea$1, SearchField, SearchAction, PopUp, DetailsCard, DownloadBtnCommon, SearchForm, Table, StatusTable, Row, LinkButton as LinkButton$1, Body } from '@mseva/digit-ui-react-components';
7
7
  import ReactTooltip from 'react-tooltip';
8
8
  import { compose, applyMiddleware, createStore, combineReducers } from 'redux';
9
9
  import thunk from 'redux-thunk';
@@ -121,11 +121,11 @@ const quickServiceModules = {
121
121
  subHeading: ""
122
122
  }, {
123
123
  moduleCode: "PTR",
124
- moduleName: "Grivance",
124
+ moduleName: "PET",
125
125
  bgColor: "#00cccd",
126
126
  labelKey: "",
127
127
  icon: "",
128
- routes: "/digit-ui/employee/engagement/surveys/inbox",
128
+ routes: "/digit-ui/employee/ptr/petservice/inbox",
129
129
  isCitizen: false,
130
130
  description: "",
131
131
  subHeading: ""
@@ -159,6 +159,16 @@ const quickServiceModules = {
159
159
  isCitizen: false,
160
160
  description: "",
161
161
  subHeading: ""
162
+ }, {
163
+ moduleCode: "CHB",
164
+ moduleName: "Community Hall Booking",
165
+ bgColor: "#3e4b5b",
166
+ labelKey: "",
167
+ icon: "",
168
+ routes: "/digit-ui/employee/chb/inbox",
169
+ isCitizen: false,
170
+ description: "",
171
+ subHeading: ""
162
172
  }]
163
173
  };
164
174
 
@@ -6036,6 +6046,8 @@ const EmployeeQuickServicesCard = ({
6036
6046
  return true;
6037
6047
  case "ADS":
6038
6048
  return true;
6049
+ case "CHB":
6050
+ return true;
6039
6051
  default:
6040
6052
  return null;
6041
6053
  }
@@ -6073,6 +6085,8 @@ const EmployeeQuickServicesCard = ({
6073
6085
  return /*#__PURE__*/React.createElement(BillsIcon, null);
6074
6086
  case "ADS":
6075
6087
  return /*#__PURE__*/React.createElement(BillsIcon, null);
6088
+ case "CHB":
6089
+ return /*#__PURE__*/React.createElement(BillsIcon, null);
6076
6090
  default:
6077
6091
  return /*#__PURE__*/React.createElement(PTIcon, null);
6078
6092
  }
@@ -6203,6 +6217,10 @@ const iconSelector = code => {
6203
6217
  return /*#__PURE__*/React.createElement(PTRIcon, {
6204
6218
  className: "fill-path-primary-main"
6205
6219
  });
6220
+ case "CHB":
6221
+ return /*#__PURE__*/React.createElement(PTRIcon, {
6222
+ className: "fill-path-primary-main"
6223
+ });
6206
6224
  default:
6207
6225
  return /*#__PURE__*/React.createElement(PTIcon, {
6208
6226
  className: "fill-path-primary-main"
@@ -15907,15 +15925,24 @@ const LocationSelection = () => {
15907
15925
  setShowError(true);
15908
15926
  }
15909
15927
  }
15928
+ const cityOptions = cities === null || cities === void 0 ? void 0 : cities.map(city => ({
15929
+ ...city,
15930
+ displayName: t(city.i18nKey)
15931
+ }));
15910
15932
  return isLoading ? /*#__PURE__*/React.createElement("loader", null) : /*#__PURE__*/React.createElement("div", {
15911
15933
  className: "selection-card-wrapper"
15912
15934
  }, /*#__PURE__*/React.createElement(BackButton, null), /*#__PURE__*/React.createElement(PageBasedInput, {
15913
15935
  texts: texts,
15914
15936
  onSubmit: onSubmit,
15915
15937
  className: "location-selection-container"
15916
- }, /*#__PURE__*/React.createElement(CardHeader, null, t("CS_COMMON_CHOOSE_LOCATION")), /*#__PURE__*/React.createElement(SearchOnRadioButtons, Object.assign({}, RadioButtonProps, {
15938
+ }, /*#__PURE__*/React.createElement(CardHeader, null, t("CS_COMMON_CHOOSE_LOCATION")), /*#__PURE__*/React.createElement(Dropdown, {
15939
+ option: cityOptions,
15940
+ optionKey: "displayName",
15941
+ id: "city",
15942
+ selected: selectedCity,
15943
+ select: selectCity,
15917
15944
  placeholder: t("COMMON_TABLE_SEARCH")
15918
- })), showError ? /*#__PURE__*/React.createElement(CardLabelError$1, null, t("CS_COMMON_LOCATION_SELECTION_ERROR")) : null));
15945
+ }), showError ? /*#__PURE__*/React.createElement(CardLabelError$1, null, t("CS_COMMON_LOCATION_SELECTION_ERROR")) : null));
15919
15946
  };
15920
15947
 
15921
15948
  const FaqComponent = props => {