@mseva/upyog-ui-module-chb 1.0.71 → 1.0.72
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 +37 -101
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +37 -102
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -18023,7 +18023,9 @@ const App = () => {
|
|
|
18023
18023
|
return /*#__PURE__*/React.createElement("span", {
|
|
18024
18024
|
className: "chb-citizen",
|
|
18025
18025
|
style: {
|
|
18026
|
-
width: "100%"
|
|
18026
|
+
width: "100%",
|
|
18027
|
+
paddingRight: "25px",
|
|
18028
|
+
paddingLeft: "25px"
|
|
18027
18029
|
}
|
|
18028
18030
|
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, !shouldHideBackButton(hideBackButtonConfig) ? /*#__PURE__*/React.createElement(BackButton, null, "Back") : "", /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
18029
18031
|
path: `${path}/bookHall`,
|
|
@@ -18664,15 +18666,6 @@ const CHBMyApplications = () => {
|
|
|
18664
18666
|
} = Digit.Hooks.chb.useChbSearch({
|
|
18665
18667
|
filters
|
|
18666
18668
|
});
|
|
18667
|
-
const handleSearch = () => {
|
|
18668
|
-
const trimmedSearchTerm = searchTerm.trim();
|
|
18669
|
-
const searchFilters = {
|
|
18670
|
-
...initialFilters,
|
|
18671
|
-
bookingNo: trimmedSearchTerm || undefined,
|
|
18672
|
-
status: (status === null || status === void 0 ? void 0 : status.code) || undefined
|
|
18673
|
-
};
|
|
18674
|
-
setFilters(searchFilters);
|
|
18675
|
-
};
|
|
18676
18669
|
if (isLoading) {
|
|
18677
18670
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
18678
18671
|
}
|
|
@@ -18690,81 +18683,7 @@ const CHBMyApplications = () => {
|
|
|
18690
18683
|
value: t("CANCELLED")
|
|
18691
18684
|
}];
|
|
18692
18685
|
const filteredApplications = (data === null || data === void 0 ? void 0 : data.hallsBookingApplication) || [];
|
|
18693
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("CHB_MY_APPLICATION_HEADER")} (${filteredApplications.length})`), /*#__PURE__*/React.createElement(
|
|
18694
|
-
style: {
|
|
18695
|
-
marginLeft: "16px"
|
|
18696
|
-
}
|
|
18697
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18698
|
-
style: {
|
|
18699
|
-
display: "flex",
|
|
18700
|
-
flexDirection: "row",
|
|
18701
|
-
alignItems: "center",
|
|
18702
|
-
gap: "16px"
|
|
18703
|
-
}
|
|
18704
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18705
|
-
style: {
|
|
18706
|
-
flex: 1
|
|
18707
|
-
}
|
|
18708
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18709
|
-
style: {
|
|
18710
|
-
display: "flex",
|
|
18711
|
-
flexDirection: "column"
|
|
18712
|
-
}
|
|
18713
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_BOOKING_NO")), /*#__PURE__*/React.createElement(TextInput, {
|
|
18714
|
-
placeholder: t("Enter Booking No."),
|
|
18715
|
-
value: searchTerm,
|
|
18716
|
-
onChange: e => setSearchTerm(e.target.value),
|
|
18717
|
-
style: {
|
|
18718
|
-
width: "100%",
|
|
18719
|
-
padding: "8px",
|
|
18720
|
-
height: '150%'
|
|
18721
|
-
}
|
|
18722
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
18723
|
-
style: {
|
|
18724
|
-
flex: 1
|
|
18725
|
-
}
|
|
18726
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18727
|
-
style: {
|
|
18728
|
-
display: "flex",
|
|
18729
|
-
flexDirection: "column"
|
|
18730
|
-
}
|
|
18731
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_COMMON_TABLE_COL_STATUS_LABEL")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
18732
|
-
className: "form-field",
|
|
18733
|
-
selected: status,
|
|
18734
|
-
select: setStatus,
|
|
18735
|
-
option: statusOptions,
|
|
18736
|
-
placeholder: t("Select Status"),
|
|
18737
|
-
optionKey: "value",
|
|
18738
|
-
style: {
|
|
18739
|
-
width: "100%"
|
|
18740
|
-
},
|
|
18741
|
-
t: t
|
|
18742
|
-
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
18743
|
-
style: {
|
|
18744
|
-
marginTop: "17%"
|
|
18745
|
-
}
|
|
18746
|
-
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
18747
|
-
label: t("ES_COMMON_SEARCH"),
|
|
18748
|
-
onSubmit: handleSearch
|
|
18749
|
-
}), /*#__PURE__*/React.createElement("p", {
|
|
18750
|
-
className: "link",
|
|
18751
|
-
style: {
|
|
18752
|
-
marginLeft: "30%",
|
|
18753
|
-
marginTop: "10px",
|
|
18754
|
-
display: "block"
|
|
18755
|
-
},
|
|
18756
|
-
onClick: () => {
|
|
18757
|
-
setSearchTerm(""), setStatus("");
|
|
18758
|
-
}
|
|
18759
|
-
}, t(`ES_COMMON_CLEAR_ALL`))))), /*#__PURE__*/React.createElement(Link, {
|
|
18760
|
-
to: "/digit-ui/citizen/chb/bookHall/searchhall"
|
|
18761
|
-
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
18762
|
-
style: {
|
|
18763
|
-
borderRadius: "30px",
|
|
18764
|
-
width: "20%"
|
|
18765
|
-
},
|
|
18766
|
-
label: t("CHB_NEW_BOOKING") + " +"
|
|
18767
|
-
})))), /*#__PURE__*/React.createElement("div", null, filteredApplications.length > 0 && filteredApplications.map((application, index) => /*#__PURE__*/React.createElement("div", {
|
|
18686
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("CHB_MY_APPLICATION_HEADER")} (${filteredApplications.length})`), /*#__PURE__*/React.createElement("div", null, filteredApplications.length > 0 && filteredApplications.map((application, index) => /*#__PURE__*/React.createElement("div", {
|
|
18768
18687
|
key: index
|
|
18769
18688
|
}, /*#__PURE__*/React.createElement(ChbApplication, {
|
|
18770
18689
|
application: application,
|
|
@@ -41889,8 +41808,8 @@ const CHBApplicationDetails = () => {
|
|
|
41889
41808
|
}];
|
|
41890
41809
|
const slotlistRows = (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$bookingS = chb_details.bookingSlotDetails) === null || _chb_details$bookingS === void 0 ? void 0 : _chb_details$bookingS.map(slot => ({
|
|
41891
41810
|
communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
|
|
41892
|
-
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
41893
|
-
bookingDate: slot.bookingDate
|
|
41811
|
+
hallCode: t(slot.hallCode) + " - " + slot.capacity,
|
|
41812
|
+
bookingDate: slot.bookingDate,
|
|
41894
41813
|
bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
|
|
41895
41814
|
}))) || [];
|
|
41896
41815
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -43068,6 +42987,7 @@ const EmployeeApp = ({
|
|
|
43068
42987
|
const ApplicationDetails = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("ApplicationDetails");
|
|
43069
42988
|
const Response = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("CHBResponse");
|
|
43070
42989
|
const CHBCreate = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("CHBStepperForm");
|
|
42990
|
+
const CHBResponseCitizen = Digit.ComponentRegistryService.getComponent("CHBResponseCitizen");
|
|
43071
42991
|
const isRes = window.location.href.includes("chb/response");
|
|
43072
42992
|
const isNewRegistration = window.location.href.includes("searchhall") || window.location.href.includes("modify-application") || window.location.href.includes("chb/application-details");
|
|
43073
42993
|
return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -43109,17 +43029,15 @@ const EmployeeApp = ({
|
|
|
43109
43029
|
component: () => /*#__PURE__*/React.createElement(ApplicationDetails, {
|
|
43110
43030
|
parentRoute: path
|
|
43111
43031
|
})
|
|
43112
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
43113
|
-
path: `${path}/response`,
|
|
43114
|
-
component: props => /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
43115
|
-
parentRoute: path
|
|
43116
|
-
}))
|
|
43117
43032
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
43118
43033
|
path: `${path}/search`,
|
|
43119
43034
|
component: props => /*#__PURE__*/React.createElement(Search, Object.assign({}, props, {
|
|
43120
43035
|
t: t,
|
|
43121
43036
|
parentRoute: path
|
|
43122
43037
|
}))
|
|
43038
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
43039
|
+
path: `${path}/response/:id`,
|
|
43040
|
+
component: CHBResponseCitizen
|
|
43123
43041
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
43124
43042
|
path: `${path}/searchold`,
|
|
43125
43043
|
component: () => /*#__PURE__*/React.createElement(Inbox, {
|
|
@@ -44175,9 +44093,9 @@ const CHBApplicationDetails$1 = () => {
|
|
|
44175
44093
|
}];
|
|
44176
44094
|
const slotlistRows = (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$bookingS = chb_details.bookingSlotDetails) === null || _chb_details$bookingS === void 0 ? void 0 : _chb_details$bookingS.map(slot => ({
|
|
44177
44095
|
communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
|
|
44178
|
-
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
44179
|
-
bookingDate: slot.bookingDate
|
|
44180
|
-
bookingStatus: t(`
|
|
44096
|
+
hallCode: t(slot.hallCode) + " - " + slot.capacity,
|
|
44097
|
+
bookingDate: slot.bookingDate,
|
|
44098
|
+
bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
|
|
44181
44099
|
}))) || [];
|
|
44182
44100
|
const submitAction = async modalData => {
|
|
44183
44101
|
var _modalData$Licenses;
|
|
@@ -46352,7 +46270,7 @@ function CHBSummary({
|
|
|
46352
46270
|
return {
|
|
46353
46271
|
communityHallCode: `${t(formData === null || formData === void 0 ? void 0 : (_formData$venueDetail6 = formData.venueDetails) === null || _formData$venueDetail6 === void 0 ? void 0 : (_formData$venueDetail7 = _formData$venueDetail6[0]) === null || _formData$venueDetail7 === void 0 ? void 0 : _formData$venueDetail7.communityHallCode)}`,
|
|
46354
46272
|
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
46355
|
-
bookingDate: slot.bookingDate
|
|
46273
|
+
bookingDate: slot.bookingDate,
|
|
46356
46274
|
bookingStatus: `${t(slot.status)}`
|
|
46357
46275
|
};
|
|
46358
46276
|
})) || [];
|
|
@@ -46438,6 +46356,7 @@ const NewADSStepFormFour = ({
|
|
|
46438
46356
|
const history = useHistory();
|
|
46439
46357
|
const [showToast, setShowToast] = useState(false);
|
|
46440
46358
|
const [error, setError] = useState("");
|
|
46359
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
46441
46360
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
46442
46361
|
const currentStepData = useSelector(function (state) {
|
|
46443
46362
|
return state.chb.CHBApplicationFormReducer.formData || {};
|
|
@@ -46453,7 +46372,11 @@ const NewADSStepFormFour = ({
|
|
|
46453
46372
|
console.log("res", res);
|
|
46454
46373
|
const id = res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$hallsBo = _res$response.hallsBookingApplication) === null || _res$response$hallsBo === void 0 ? void 0 : (_res$response$hallsBo2 = _res$response$hallsBo[0]) === null || _res$response$hallsBo2 === void 0 ? void 0 : _res$response$hallsBo2.bookingNo;
|
|
46455
46374
|
if (res !== null && res !== void 0 && res.isSuccess) {
|
|
46456
|
-
|
|
46375
|
+
if (isCitizen) {
|
|
46376
|
+
history.push("/digit-ui/citizen/chb/response/" + id);
|
|
46377
|
+
} else {
|
|
46378
|
+
history.push("/digit-ui/employee/chb/response/" + id);
|
|
46379
|
+
}
|
|
46457
46380
|
} else {
|
|
46458
46381
|
console.error("Submission failed, not moving to next step.", res === null || res === void 0 ? void 0 : res.response);
|
|
46459
46382
|
}
|
|
@@ -46729,7 +46652,11 @@ function PTRSelectDocument({
|
|
|
46729
46652
|
style: {
|
|
46730
46653
|
marginBottom: "24px"
|
|
46731
46654
|
}
|
|
46732
|
-
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(LabelFieldPair,
|
|
46655
|
+
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
46656
|
+
style: {
|
|
46657
|
+
display: "inline"
|
|
46658
|
+
}
|
|
46659
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
46733
46660
|
className: "card-label-smaller"
|
|
46734
46661
|
}, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *"), /*#__PURE__*/React.createElement(Dropdown, {
|
|
46735
46662
|
className: "form-field",
|
|
@@ -46749,10 +46676,17 @@ function PTRSelectDocument({
|
|
|
46749
46676
|
t: t
|
|
46750
46677
|
})) : null, !(doc !== null && doc !== void 0 && doc.hasDropdown) ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
46751
46678
|
className: "card-label-smaller"
|
|
46752
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.code.replaceAll(".", "_")) + " *")) : null, /*#__PURE__*/React.createElement(LabelFieldPair,
|
|
46679
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.code.replaceAll(".", "_")) + " *")) : null, /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
46680
|
+
style: {
|
|
46681
|
+
display: "inline"
|
|
46682
|
+
}
|
|
46683
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
46753
46684
|
className: "card-label-smaller"
|
|
46754
46685
|
}), /*#__PURE__*/React.createElement("div", {
|
|
46755
|
-
className: "field"
|
|
46686
|
+
className: "field",
|
|
46687
|
+
style: {
|
|
46688
|
+
width: "100%"
|
|
46689
|
+
}
|
|
46756
46690
|
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
46757
46691
|
onUpload: selectfile,
|
|
46758
46692
|
onDelete: () => {
|
|
@@ -46815,14 +46749,15 @@ const CHBResponseCitizen = props => {
|
|
|
46815
46749
|
} = useTranslation();
|
|
46816
46750
|
const history = useHistory();
|
|
46817
46751
|
const nocData = state === null || state === void 0 ? void 0 : (_state$data = state.data) === null || _state$data === void 0 ? void 0 : (_state$data$Noc = _state$data.Noc) === null || _state$data$Noc === void 0 ? void 0 : _state$data$Noc[0];
|
|
46752
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
46818
46753
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
46819
46754
|
const pathname = (history === null || history === void 0 ? void 0 : (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.pathname) || "";
|
|
46820
46755
|
const ndcCode = pathname.split("/").pop();
|
|
46821
46756
|
const onSubmit = () => {
|
|
46822
|
-
history.push(`/digit-ui/citizen`);
|
|
46757
|
+
if (isCitizen) history.push(`/digit-ui/citizen`);else history.push(`/digit-ui/employee`);
|
|
46823
46758
|
};
|
|
46824
46759
|
const onGoToCHB = () => {
|
|
46825
|
-
history.push(`/digit-ui/citizen/chb-home`);
|
|
46760
|
+
if (isCitizen) history.push(`/digit-ui/citizen/chb-home`);else history.push(`/digit-ui/employee/chb/inbox`);
|
|
46826
46761
|
};
|
|
46827
46762
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
46828
46763
|
message: t("CHB_APPLICATION_CREATED"),
|