@mseva/digit-ui-module-ndc 1.0.17 → 1.0.18

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 CHANGED
@@ -1157,6 +1157,7 @@ const NDCModal = _ref => {
1157
1157
  Licenses: [applicationData]
1158
1158
  });
1159
1159
  }
1160
+ console.log("config.label.submit", config);
1160
1161
  React.useEffect(() => {
1161
1162
  if (action) {
1162
1163
  setConfig(ModalConfig({
@@ -1463,11 +1464,7 @@ const ApplicationOverview = () => {
1463
1464
  }
1464
1465
  return /*#__PURE__*/React__default.createElement("div", {
1465
1466
  className: "employee-main-application-details"
1466
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
1467
- styles: {
1468
- fontSize: "32px"
1469
- }
1470
- }, t("NDC_APP_OVER_VIEW_HEADER"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(_ref => {
1467
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(_ref => {
1471
1468
  let [key, value] = _ref;
1472
1469
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
1473
1470
  key: key,
@@ -1515,7 +1512,7 @@ const ApplicationOverview = () => {
1515
1512
  label: t(checkpoint.status),
1516
1513
  customChild: getTimelineCaptions(checkpoint, index, arr, t)
1517
1514
  })))), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.applicationStatus) !== "INITIATED" && actions && /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.actionState) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.nextActions) ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Menu, {
1518
- localeKeyPrefix: "WF_EMPLOYEE_" + "NDC",
1515
+ localeKeyPrefix: "WF_EDITRENEWAL",
1519
1516
  options: actions,
1520
1517
  optionKey: "action",
1521
1518
  t: t,
@@ -9041,12 +9038,12 @@ const CitizenApplicationOverview = () => {
9041
9038
  var _applicationDetails$A;
9042
9039
  const ndcObject = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A = applicationDetails.Applications) === null || _applicationDetails$A === void 0 ? void 0 : _applicationDetails$A[0];
9043
9040
  if (ndcObject) {
9044
- var _ndcObject$NdcDetails, _ndcObject$NdcDetails2, _ndcObject$NdcDetails3, _ndcObject$owners, _ndcObject$owners$, _ndcObject$owners2, _ndcObject$owners2$, _ndcObject$owners3, _ndcObject$owners3$, _removeDuplicatesByUU;
9041
+ var _ndcObject$owners, _ndcObject$owners$, _ndcObject$owners2, _ndcObject$owners2$, _ndcObject$owners3, _ndcObject$owners3$, _ndcObject$NdcDetails, _ndcObject$NdcDetails2, _ndcObject$NdcDetails3, _removeDuplicatesByUU;
9045
9042
  const applicantData = {
9046
- address: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$NdcDetails = ndcObject.NdcDetails) === null || _ndcObject$NdcDetails === void 0 ? void 0 : (_ndcObject$NdcDetails2 = _ndcObject$NdcDetails[0]) === null || _ndcObject$NdcDetails2 === void 0 ? void 0 : (_ndcObject$NdcDetails3 = _ndcObject$NdcDetails2.additionalDetails) === null || _ndcObject$NdcDetails3 === void 0 ? void 0 : _ndcObject$NdcDetails3.propertyAddress,
9047
- email: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners = ndcObject.owners) === null || _ndcObject$owners === void 0 ? void 0 : (_ndcObject$owners$ = _ndcObject$owners[0]) === null || _ndcObject$owners$ === void 0 ? void 0 : _ndcObject$owners$.emailId,
9043
+ name: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners = ndcObject.owners) === null || _ndcObject$owners === void 0 ? void 0 : (_ndcObject$owners$ = _ndcObject$owners[0]) === null || _ndcObject$owners$ === void 0 ? void 0 : _ndcObject$owners$.name,
9048
9044
  mobile: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners2 = ndcObject.owners) === null || _ndcObject$owners2 === void 0 ? void 0 : (_ndcObject$owners2$ = _ndcObject$owners2[0]) === null || _ndcObject$owners2$ === void 0 ? void 0 : _ndcObject$owners2$.mobileNumber,
9049
- name: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners3 = ndcObject.owners) === null || _ndcObject$owners3 === void 0 ? void 0 : (_ndcObject$owners3$ = _ndcObject$owners3[0]) === null || _ndcObject$owners3$ === void 0 ? void 0 : _ndcObject$owners3$.name,
9045
+ email: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners3 = ndcObject.owners) === null || _ndcObject$owners3 === void 0 ? void 0 : (_ndcObject$owners3$ = _ndcObject$owners3[0]) === null || _ndcObject$owners3$ === void 0 ? void 0 : _ndcObject$owners3$.emailId,
9046
+ address: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$NdcDetails = ndcObject.NdcDetails) === null || _ndcObject$NdcDetails === void 0 ? void 0 : (_ndcObject$NdcDetails2 = _ndcObject$NdcDetails[0]) === null || _ndcObject$NdcDetails2 === void 0 ? void 0 : (_ndcObject$NdcDetails3 = _ndcObject$NdcDetails2.additionalDetails) === null || _ndcObject$NdcDetails3 === void 0 ? void 0 : _ndcObject$NdcDetails3.propertyAddress,
9050
9047
  applicationNo: ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.uuid
9051
9048
  };
9052
9049
  const Documents = removeDuplicatesByUUID((ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.Documents) || []);
@@ -9084,7 +9081,7 @@ const CitizenApplicationOverview = () => {
9084
9081
  const Property = applicationDetails;
9085
9082
  console.log("applicationDetails in StakeholderAck", applicationDetails);
9086
9083
  console.log("tenants", tenants);
9087
- const tenantInfo = tenants.find(tenant => tenant.code === Property.tenantId);
9084
+ const tenantInfo = tenants === null || tenants === void 0 ? void 0 : tenants.find(tenant => (tenant === null || tenant === void 0 ? void 0 : tenant.code) === (Property === null || Property === void 0 ? void 0 : Property.tenantId));
9088
9085
  return Promise.resolve(getAcknowledgementData(Property, tenantInfo, t)).then(function (acknowledgementData) {
9089
9086
  console.log("acknowledgementData", acknowledgementData);
9090
9087
  Digit.Utils.pdf.generate(acknowledgementData);
@@ -9101,28 +9098,30 @@ const CitizenApplicationOverview = () => {
9101
9098
  }, /*#__PURE__*/React__default.createElement("div", {
9102
9099
  style: {
9103
9100
  display: "flex",
9104
- justifyContent: "space-between",
9101
+ justifyContent: "end",
9105
9102
  alignItems: "center",
9106
9103
  padding: "16px"
9107
9104
  }
9108
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
9109
- styles: {
9110
- fontSize: "32px"
9111
- }
9112
- }, t("NDC_APP_OVER_VIEW_HEADER")), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.applicationStatus) === "APPROVED" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
9105
+ }, (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.applicationStatus) === "APPROVED" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
9106
+ className: "downLoadButton",
9113
9107
  label: t("DOWNLOAD_CERTIFICATE"),
9114
- style: {
9115
- color: "#A52A2A"
9116
- },
9117
9108
  onClick: handleDownloadPdf
9118
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, console.log("displayData?.applicantData", displayData === null || displayData === void 0 ? void 0 : displayData.applicantData), (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(_ref => {
9109
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
9110
+ className: "ndc_card_main"
9111
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
9112
+ className: "ndc_label"
9113
+ }, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, console.log("displayData?.applicantData", displayData === null || displayData === void 0 ? void 0 : displayData.applicantData), (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(_ref => {
9119
9114
  let [key, value] = _ref;
9120
9115
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
9121
9116
  key: key,
9122
9117
  label: t("" + (key === null || key === void 0 ? void 0 : key.toUpperCase())),
9123
9118
  text: Array.isArray(value) ? value.map(item => typeof item === "object" ? t((item === null || item === void 0 ? void 0 : item.code) || "N/A") : t(item || "N/A")).join(", ") : typeof value === "object" ? t((value === null || value === void 0 ? void 0 : value.code) || "N/A") : t(value || "N/A")
9124
9119
  });
9125
- })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("NDC_APPLICATION_NDC_DETAILS_OVERVIEW")), displayData === null || displayData === void 0 ? void 0 : (_displayData$NdcDetai = displayData.NdcDetails) === null || _displayData$NdcDetai === void 0 ? void 0 : _displayData$NdcDetai.map((detail, index) => {
9120
+ })))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
9121
+ className: "ndc_card_main"
9122
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
9123
+ className: "ndc_label"
9124
+ }, t("NDC_APPLICATION_NDC_DETAILS_OVERVIEW")), displayData === null || displayData === void 0 ? void 0 : (_displayData$NdcDetai = displayData.NdcDetails) === null || _displayData$NdcDetai === void 0 ? void 0 : _displayData$NdcDetai.map((detail, index) => {
9126
9125
  var _detail$dueAmount;
9127
9126
  return /*#__PURE__*/React__default.createElement("div", {
9128
9127
  key: index,
@@ -9145,7 +9144,11 @@ const CitizenApplicationOverview = () => {
9145
9144
  label: t("NDC_PROPERTY_TYPE"),
9146
9145
  text: t(detail.propertyType) || detail.propertyType
9147
9146
  })));
9148
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("NDC_APPLICATION_DOCUMENTS_OVERVIEW")), /*#__PURE__*/React__default.createElement("div", {
9147
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
9148
+ className: "ndc_card_main"
9149
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
9150
+ className: "ndc_label"
9151
+ }, t("NDC_APPLICATION_DOCUMENTS_OVERVIEW")), /*#__PURE__*/React__default.createElement("div", {
9149
9152
  style: {
9150
9153
  display: "flex",
9151
9154
  gap: "16px"
@@ -9154,13 +9157,17 @@ const CitizenApplicationOverview = () => {
9154
9157
  value: {
9155
9158
  workflowDocs: displayData === null || displayData === void 0 ? void 0 : displayData.Documents
9156
9159
  }
9157
- }) : /*#__PURE__*/React__default.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE")), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.timeline.length) === 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
9160
+ }) : /*#__PURE__*/React__default.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
9161
+ className: "ndc_card_main"
9162
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
9163
+ className: "ndc_label"
9164
+ }, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE")), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.timeline.length) === 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
9158
9165
  isCompleted: true,
9159
- label: t("NDC_STATUS_" + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline[0]) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.status))
9166
+ label: t(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline[0]) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.status)
9160
9167
  }) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.timeline.map((checkpoint, index, arr) => /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
9161
9168
  keyValue: index,
9162
9169
  isCompleted: index === 0,
9163
- label: t("NDC_STATUS_" + checkpoint.status),
9170
+ label: t(checkpoint.status),
9164
9171
  customChild: getTimelineCaptions$1(checkpoint, index, arr, t)
9165
9172
  })))));
9166
9173
  };