@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.js
CHANGED
|
@@ -18079,7 +18079,9 @@ const App = () => {
|
|
|
18079
18079
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
18080
18080
|
className: "chb-citizen",
|
|
18081
18081
|
style: {
|
|
18082
|
-
width: "100%"
|
|
18082
|
+
width: "100%",
|
|
18083
|
+
paddingRight: "25px",
|
|
18084
|
+
paddingLeft: "25px"
|
|
18083
18085
|
}
|
|
18084
18086
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AppContainer, null, !shouldHideBackButton(hideBackButtonConfig) ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.BackButton, null, "Back") : "", /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
18085
18087
|
path: path + "/bookHall",
|
|
@@ -18735,14 +18737,6 @@ const CHBMyApplications = () => {
|
|
|
18735
18737
|
} = Digit.Hooks.chb.useChbSearch({
|
|
18736
18738
|
filters
|
|
18737
18739
|
});
|
|
18738
|
-
const handleSearch = () => {
|
|
18739
|
-
const trimmedSearchTerm = searchTerm.trim();
|
|
18740
|
-
const searchFilters = _extends({}, initialFilters, {
|
|
18741
|
-
bookingNo: trimmedSearchTerm || undefined,
|
|
18742
|
-
status: (status === null || status === void 0 ? void 0 : status.code) || undefined
|
|
18743
|
-
});
|
|
18744
|
-
setFilters(searchFilters);
|
|
18745
|
-
};
|
|
18746
18740
|
if (isLoading) {
|
|
18747
18741
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
18748
18742
|
}
|
|
@@ -18760,81 +18754,7 @@ const CHBMyApplications = () => {
|
|
|
18760
18754
|
value: t("CANCELLED")
|
|
18761
18755
|
}];
|
|
18762
18756
|
const filteredApplications = (data === null || data === void 0 ? void 0 : data.hallsBookingApplication) || [];
|
|
18763
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("CHB_MY_APPLICATION_HEADER") + " (" + filteredApplications.length + ")"), /*#__PURE__*/React__default.createElement(
|
|
18764
|
-
style: {
|
|
18765
|
-
marginLeft: "16px"
|
|
18766
|
-
}
|
|
18767
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
18768
|
-
style: {
|
|
18769
|
-
display: "flex",
|
|
18770
|
-
flexDirection: "row",
|
|
18771
|
-
alignItems: "center",
|
|
18772
|
-
gap: "16px"
|
|
18773
|
-
}
|
|
18774
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
18775
|
-
style: {
|
|
18776
|
-
flex: 1
|
|
18777
|
-
}
|
|
18778
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
18779
|
-
style: {
|
|
18780
|
-
display: "flex",
|
|
18781
|
-
flexDirection: "column"
|
|
18782
|
-
}
|
|
18783
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("CHB_BOOKING_NO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
18784
|
-
placeholder: t("Enter Booking No."),
|
|
18785
|
-
value: searchTerm,
|
|
18786
|
-
onChange: e => setSearchTerm(e.target.value),
|
|
18787
|
-
style: {
|
|
18788
|
-
width: "100%",
|
|
18789
|
-
padding: "8px",
|
|
18790
|
-
height: '150%'
|
|
18791
|
-
}
|
|
18792
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
18793
|
-
style: {
|
|
18794
|
-
flex: 1
|
|
18795
|
-
}
|
|
18796
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
18797
|
-
style: {
|
|
18798
|
-
display: "flex",
|
|
18799
|
-
flexDirection: "column"
|
|
18800
|
-
}
|
|
18801
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_COMMON_TABLE_COL_STATUS_LABEL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
18802
|
-
className: "form-field",
|
|
18803
|
-
selected: status,
|
|
18804
|
-
select: setStatus,
|
|
18805
|
-
option: statusOptions,
|
|
18806
|
-
placeholder: t("Select Status"),
|
|
18807
|
-
optionKey: "value",
|
|
18808
|
-
style: {
|
|
18809
|
-
width: "100%"
|
|
18810
|
-
},
|
|
18811
|
-
t: t
|
|
18812
|
-
}))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
18813
|
-
style: {
|
|
18814
|
-
marginTop: "17%"
|
|
18815
|
-
}
|
|
18816
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
18817
|
-
label: t("ES_COMMON_SEARCH"),
|
|
18818
|
-
onSubmit: handleSearch
|
|
18819
|
-
}), /*#__PURE__*/React__default.createElement("p", {
|
|
18820
|
-
className: "link",
|
|
18821
|
-
style: {
|
|
18822
|
-
marginLeft: "30%",
|
|
18823
|
-
marginTop: "10px",
|
|
18824
|
-
display: "block"
|
|
18825
|
-
},
|
|
18826
|
-
onClick: () => {
|
|
18827
|
-
setSearchTerm(""), setStatus("");
|
|
18828
|
-
}
|
|
18829
|
-
}, t("ES_COMMON_CLEAR_ALL"))))), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
18830
|
-
to: "/digit-ui/citizen/chb/bookHall/searchhall"
|
|
18831
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
18832
|
-
style: {
|
|
18833
|
-
borderRadius: "30px",
|
|
18834
|
-
width: "20%"
|
|
18835
|
-
},
|
|
18836
|
-
label: t("CHB_NEW_BOOKING") + " +"
|
|
18837
|
-
})))), /*#__PURE__*/React__default.createElement("div", null, filteredApplications.length > 0 && filteredApplications.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
18757
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("CHB_MY_APPLICATION_HEADER") + " (" + filteredApplications.length + ")"), /*#__PURE__*/React__default.createElement("div", null, filteredApplications.length > 0 && filteredApplications.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
18838
18758
|
key: index
|
|
18839
18759
|
}, /*#__PURE__*/React__default.createElement(ChbApplication, {
|
|
18840
18760
|
application: application,
|
|
@@ -42164,8 +42084,8 @@ const CHBApplicationDetails = () => {
|
|
|
42164
42084
|
}];
|
|
42165
42085
|
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 => ({
|
|
42166
42086
|
communityHallCode: "" + t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode),
|
|
42167
|
-
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
42168
|
-
bookingDate: slot.bookingDate
|
|
42087
|
+
hallCode: t(slot.hallCode) + " - " + slot.capacity,
|
|
42088
|
+
bookingDate: slot.bookingDate,
|
|
42169
42089
|
bookingStatus: t("WF_NEWTL_" + (slot === null || slot === void 0 ? void 0 : slot.status))
|
|
42170
42090
|
}))) || [];
|
|
42171
42091
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -43341,6 +43261,7 @@ const EmployeeApp = _ref => {
|
|
|
43341
43261
|
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");
|
|
43342
43262
|
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");
|
|
43343
43263
|
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");
|
|
43264
|
+
const CHBResponseCitizen = Digit.ComponentRegistryService.getComponent("CHBResponseCitizen");
|
|
43344
43265
|
const isRes = window.location.href.includes("chb/response");
|
|
43345
43266
|
const isNewRegistration = window.location.href.includes("searchhall") || window.location.href.includes("modify-application") || window.location.href.includes("chb/application-details");
|
|
43346
43267
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AppContainer, null, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -43382,17 +43303,15 @@ const EmployeeApp = _ref => {
|
|
|
43382
43303
|
component: () => /*#__PURE__*/React__default.createElement(ApplicationDetails, {
|
|
43383
43304
|
parentRoute: path
|
|
43384
43305
|
})
|
|
43385
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
43386
|
-
path: path + "/response",
|
|
43387
|
-
component: props => /*#__PURE__*/React__default.createElement(Response, _extends({}, props, {
|
|
43388
|
-
parentRoute: path
|
|
43389
|
-
}))
|
|
43390
43306
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
43391
43307
|
path: path + "/search",
|
|
43392
43308
|
component: props => /*#__PURE__*/React__default.createElement(Search, _extends({}, props, {
|
|
43393
43309
|
t: t,
|
|
43394
43310
|
parentRoute: path
|
|
43395
43311
|
}))
|
|
43312
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
43313
|
+
path: path + "/response/:id",
|
|
43314
|
+
component: CHBResponseCitizen
|
|
43396
43315
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
43397
43316
|
path: path + "/searchold",
|
|
43398
43317
|
component: () => /*#__PURE__*/React__default.createElement(Inbox, {
|
|
@@ -44481,9 +44400,9 @@ const CHBApplicationDetails$1 = () => {
|
|
|
44481
44400
|
}];
|
|
44482
44401
|
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 => ({
|
|
44483
44402
|
communityHallCode: "" + t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode),
|
|
44484
|
-
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
44485
|
-
bookingDate: slot.bookingDate
|
|
44486
|
-
bookingStatus: t("
|
|
44403
|
+
hallCode: t(slot.hallCode) + " - " + slot.capacity,
|
|
44404
|
+
bookingDate: slot.bookingDate,
|
|
44405
|
+
bookingStatus: t("WF_NEWTL_" + (slot === null || slot === void 0 ? void 0 : slot.status))
|
|
44487
44406
|
}))) || [];
|
|
44488
44407
|
const submitAction = function (modalData) {
|
|
44489
44408
|
try {
|
|
@@ -46695,7 +46614,7 @@ function CHBSummary(_ref) {
|
|
|
46695
46614
|
return {
|
|
46696
46615
|
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),
|
|
46697
46616
|
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
46698
|
-
bookingDate: slot.bookingDate
|
|
46617
|
+
bookingDate: slot.bookingDate,
|
|
46699
46618
|
bookingStatus: "" + t(slot.status)
|
|
46700
46619
|
};
|
|
46701
46620
|
})) || [];
|
|
@@ -46782,6 +46701,7 @@ const NewADSStepFormFour = _ref => {
|
|
|
46782
46701
|
const history = reactRouterDom.useHistory();
|
|
46783
46702
|
const [showToast, setShowToast] = React.useState(false);
|
|
46784
46703
|
const [error, setError] = React.useState("");
|
|
46704
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
46785
46705
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
46786
46706
|
const currentStepData = reactRedux.useSelector(function (state) {
|
|
46787
46707
|
return state.chb.CHBApplicationFormReducer.formData || {};
|
|
@@ -46798,7 +46718,11 @@ const NewADSStepFormFour = _ref => {
|
|
|
46798
46718
|
console.log("res", res);
|
|
46799
46719
|
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;
|
|
46800
46720
|
if (res !== null && res !== void 0 && res.isSuccess) {
|
|
46801
|
-
|
|
46721
|
+
if (isCitizen) {
|
|
46722
|
+
history.push("/digit-ui/citizen/chb/response/" + id);
|
|
46723
|
+
} else {
|
|
46724
|
+
history.push("/digit-ui/employee/chb/response/" + id);
|
|
46725
|
+
}
|
|
46802
46726
|
} else {
|
|
46803
46727
|
console.error("Submission failed, not moving to next step.", res === null || res === void 0 ? void 0 : res.response);
|
|
46804
46728
|
}
|
|
@@ -47091,7 +47015,11 @@ function PTRSelectDocument(_ref2) {
|
|
|
47091
47015
|
style: {
|
|
47092
47016
|
marginBottom: "24px"
|
|
47093
47017
|
}
|
|
47094
|
-
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair,
|
|
47018
|
+
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, {
|
|
47019
|
+
style: {
|
|
47020
|
+
display: "inline"
|
|
47021
|
+
}
|
|
47022
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
47095
47023
|
className: "card-label-smaller"
|
|
47096
47024
|
}, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
47097
47025
|
className: "form-field",
|
|
@@ -47110,10 +47038,17 @@ function PTRSelectDocument(_ref2) {
|
|
|
47110
47038
|
t: t
|
|
47111
47039
|
})) : null, !(doc !== null && doc !== void 0 && doc.hasDropdown) ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
47112
47040
|
className: "card-label-smaller"
|
|
47113
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.code.replaceAll(".", "_")) + " *")) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair,
|
|
47041
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.code.replaceAll(".", "_")) + " *")) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, {
|
|
47042
|
+
style: {
|
|
47043
|
+
display: "inline"
|
|
47044
|
+
}
|
|
47045
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
47114
47046
|
className: "card-label-smaller"
|
|
47115
47047
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
47116
|
-
className: "field"
|
|
47048
|
+
className: "field",
|
|
47049
|
+
style: {
|
|
47050
|
+
width: "100%"
|
|
47051
|
+
}
|
|
47117
47052
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
47118
47053
|
onUpload: selectfile,
|
|
47119
47054
|
onDelete: () => {
|
|
@@ -47176,14 +47111,15 @@ const CHBResponseCitizen = props => {
|
|
|
47176
47111
|
} = reactI18next.useTranslation();
|
|
47177
47112
|
const history = reactRouterDom.useHistory();
|
|
47178
47113
|
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];
|
|
47114
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
47179
47115
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
47180
47116
|
const pathname = (history === null || history === void 0 ? void 0 : (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.pathname) || "";
|
|
47181
47117
|
const ndcCode = pathname.split("/").pop();
|
|
47182
47118
|
const onSubmit = () => {
|
|
47183
|
-
history.push("/digit-ui/citizen");
|
|
47119
|
+
if (isCitizen) history.push("/digit-ui/citizen");else history.push("/digit-ui/employee");
|
|
47184
47120
|
};
|
|
47185
47121
|
const onGoToCHB = () => {
|
|
47186
|
-
history.push("/digit-ui/citizen/chb-home");
|
|
47122
|
+
if (isCitizen) history.push("/digit-ui/citizen/chb-home");else history.push("/digit-ui/employee/chb/inbox");
|
|
47187
47123
|
};
|
|
47188
47124
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
|
|
47189
47125
|
message: t("CHB_APPLICATION_CREATED"),
|