@djb25/digit-ui-module-wt 1.0.5 → 1.0.7

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.
@@ -198,31 +198,31 @@ const WTCreate = () => {
198
198
  if (pathname.includes("mt")) {
199
199
  console.log("MT Create");
200
200
  setParams({
201
- "serviceType": {
202
- "serviceType": {
203
- "code": "MobileToilet",
204
- "i18nKey": "Mobile Toilet",
205
- "value": "Mobile Toilet"
201
+ serviceType: {
202
+ serviceType: {
203
+ code: "MobileToilet",
204
+ i18nKey: "Mobile Toilet",
205
+ value: "Mobile Toilet"
206
206
  }
207
207
  }
208
208
  });
209
209
  } else if (pathname.includes("tp")) {
210
210
  setParams({
211
- "serviceType": {
212
- "serviceType": {
213
- "code": "TREE_PRUNING",
214
- "i18nKey": "Tree Pruning",
215
- "value": "Tree Pruning"
211
+ serviceType: {
212
+ serviceType: {
213
+ code: "TREE_PRUNING",
214
+ i18nKey: "Tree Pruning",
215
+ value: "Tree Pruning"
216
216
  }
217
217
  }
218
218
  });
219
219
  } else {
220
220
  setParams({
221
- "serviceType": {
222
- "serviceType": {
223
- "code": "WT",
224
- "i18nKey": "Water Tanker",
225
- "value": "Water Tanker"
221
+ serviceType: {
222
+ serviceType: {
223
+ code: "WT",
224
+ i18nKey: "Water Tanker",
225
+ value: "Water Tanker"
226
226
  }
227
227
  }
228
228
  });
@@ -1886,11 +1886,7 @@ const WTCheckPage = ({
1886
1886
  }))), /*#__PURE__*/React.createElement(CheckBox, {
1887
1887
  label: t("FINAL_DECLARATION_MESSAGE"),
1888
1888
  onChange: setdeclarationhandler,
1889
- styles: {
1890
- height: "auto",
1891
- marginBottom: "30px",
1892
- marginTop: "10px"
1893
- }
1889
+ checked: agree
1894
1890
  })), /*#__PURE__*/React.createElement(SubmitBar, {
1895
1891
  label: t("COMMON_BUTTON_SUBMIT"),
1896
1892
  onSubmit: onSubmit,
@@ -3046,14 +3042,18 @@ const EmployeeApp = ({
3046
3042
  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");
3047
3043
  const WTCreate = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WTCreate");
3048
3044
  return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
3049
- className: "form-container"
3045
+ className: "ground-container employee-app-container form-container"
3050
3046
  }, /*#__PURE__*/React.createElement(ModuleHeader, {
3051
3047
  leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
3052
3048
  className: "icon"
3053
3049
  }), "Back"),
3054
3050
  onLeftClick: () => window.history.back(),
3055
3051
  breadcrumbs: getDynamicBreadcrumbs()
3056
- }), /*#__PURE__*/React.createElement(PrivateRoute, {
3052
+ }), /*#__PURE__*/React.createElement("div", {
3053
+ className: "employee-form"
3054
+ }, /*#__PURE__*/React.createElement("div", {
3055
+ className: "employee-form-content"
3056
+ }, /*#__PURE__*/React.createElement(PrivateRoute, {
3057
3057
  path: `${path}/inbox`,
3058
3058
  component: () => /*#__PURE__*/React.createElement(Inbox, {
3059
3059
  useNewInboxAPI: true,
@@ -3123,7 +3123,7 @@ const EmployeeApp = ({
3123
3123
  parentRoute: path,
3124
3124
  moduleCode: "TP"
3125
3125
  }))
3126
- }))));
3126
+ }))))));
3127
3127
  };
3128
3128
 
3129
3129
  const WTApplication = ({
@@ -14070,13 +14070,15 @@ const ActionModal$b = ({
14070
14070
  }
14071
14071
  });
14072
14072
  let vendorDescription = [];
14073
- dsoData === null || dsoData === void 0 ? void 0 : (_dsoData$vendor = dsoData.vendor) === null || _dsoData$vendor === void 0 ? void 0 : _dsoData$vendor.map(item => {
14073
+ dsoData === null || dsoData === void 0 ? void 0 : (_dsoData$vendor = dsoData.vendor) === null || _dsoData$vendor === void 0 ? void 0 : _dsoData$vendor.forEach(item => {
14074
14074
  var _item$additionalDetai, _item$additionalDetai2;
14075
14075
  if ((item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.description) === "WT" || (item === null || item === void 0 ? void 0 : (_item$additionalDetai2 = item.additionalDetails) === null || _item$additionalDetai2 === void 0 ? void 0 : _item$additionalDetai2.serviceType) === "WT") {
14076
+ var _item$owner;
14077
+ const displayLabel = `${item === null || item === void 0 ? void 0 : item.name} (${item === null || item === void 0 ? void 0 : (_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber})`;
14076
14078
  vendorDescription.push({
14077
14079
  code: item === null || item === void 0 ? void 0 : item.name,
14078
- name: item === null || item === void 0 ? void 0 : item.name,
14079
- i18nKey: item === null || item === void 0 ? void 0 : item.name,
14080
+ name: displayLabel,
14081
+ i18nKey: displayLabel,
14080
14082
  vendorId: item === null || item === void 0 ? void 0 : item.id
14081
14083
  });
14082
14084
  }
@@ -15760,8 +15762,9 @@ const TLCaption = ({
15760
15762
  }), /*#__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, {
15761
15763
  otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
15762
15764
  headComment: data === null || data === void 0 ? void 0 : data.comment
15763
- }), 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", {
15764
- className: "TLComments"
15765
+ }), 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", {
15766
+ className: "TLComments",
15767
+ key: index
15765
15768
  }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
15766
15769
  style: {
15767
15770
  overflowX: "scroll"
@@ -16970,7 +16973,7 @@ function ApplicationDetailsContent({
16970
16973
  oldValue,
16971
16974
  isInfoLabel = false
16972
16975
  }) {
16973
- 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;
16976
+ 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;
16974
16977
  const {
16975
16978
  t
16976
16979
  } = useTranslation();
@@ -16982,8 +16985,6 @@ function ApplicationDetailsContent({
16982
16985
  let {
16983
16986
  id: applicationNo
16984
16987
  } = useParams();
16985
- const ownersSequences = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.owners;
16986
- console.log("ownersSequences:- ", ownersSequences);
16987
16988
  function OpenImage(imageSource, index, thumbnailsToShow) {
16988
16989
  var _thumbnailsToShow$ful;
16989
16990
  window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
@@ -17213,6 +17214,7 @@ function ApplicationDetailsContent({
17213
17214
  setSelectedData(data);
17214
17215
  setShowPopup(true);
17215
17216
  };
17217
+ console.log("===========================");
17216
17218
  return /*#__PURE__*/React.createElement(Card, {
17217
17219
  style: {
17218
17220
  position: "relative"
@@ -18215,38 +18217,11 @@ const ApplicationDetails$1 = () => {
18215
18217
  }
18216
18218
  }, [workflowDetails.data]);
18217
18219
  const [showTimeline, setShowTimeline] = useState(true);
18218
- let dowloadOptions = [];
18219
18220
  return /*#__PURE__*/React.createElement("div", {
18220
18221
  style: {
18221
18222
  padding: (user === null || user === void 0 ? void 0 : user.type) === "CITIZEN" ? "0 15px" : ""
18222
18223
  }
18223
18224
  }, /*#__PURE__*/React.createElement("div", {
18224
- className: "employee-application-details",
18225
- style: {
18226
- marginBottom: "15px"
18227
- }
18228
- }, /*#__PURE__*/React.createElement(Header, {
18229
- styles: {
18230
- marginLeft: "0px",
18231
- paddingTop: "10px",
18232
- fontSize: "32px"
18233
- }
18234
- }, t("BOOKING_DETAILS")), /*#__PURE__*/React.createElement("div", {
18235
- style: {
18236
- zIndex: "10",
18237
- display: "flex",
18238
- flexDirection: "row-reverse",
18239
- alignItems: "center",
18240
- marginTop: "-25px"
18241
- }
18242
- }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
18243
- className: "multilinkWrapper employee-mulitlink-main-div",
18244
- onHeadClick: () => setShowOptions(!showOptions),
18245
- displayOptions: showOptions,
18246
- options: dowloadOptions,
18247
- downloadBtnClassName: "employee-download-btn-className",
18248
- optionsClassName: "employee-options-btn-className"
18249
- }))), /*#__PURE__*/React.createElement("div", {
18250
18225
  style: {
18251
18226
  display: "flex",
18252
18227
  flexDirection: "row",