@djb25/digit-ui-module-vendor 1.0.61 → 1.0.62

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.
@@ -1513,12 +1513,12 @@ const VendorInbox = props => {
1513
1513
  });
1514
1514
  };
1515
1515
  const onSurveyorSupervisorSelect = (row, selectedSupervisor) => {
1516
- var _selectedSupervisor$o, _selectedSupervisor$o2, _formDetails$owner9, _formDetails$owner0, _formDetails$owner1, _formDetails$owner10;
1516
+ var _selectedSupervisor$o, _formDetails$owner9, _formDetails$owner0, _formDetails$owner1, _formDetails$owner10;
1517
1517
  let formDetails = row.original;
1518
1518
  const formData = {
1519
1519
  surveyor: _extends({}, formDetails, {
1520
- supervisorId: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.name) || (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : (_selectedSupervisor$o = selectedSupervisor.owner) === null || _selectedSupervisor$o === void 0 ? void 0 : _selectedSupervisor$o.name) || null,
1521
- supervisorName: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.name) || (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : (_selectedSupervisor$o2 = selectedSupervisor.owner) === null || _selectedSupervisor$o2 === void 0 ? void 0 : _selectedSupervisor$o2.name) || null,
1520
+ supervisorId: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.id) || null,
1521
+ supervisorName: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.name) || (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : (_selectedSupervisor$o = selectedSupervisor.owner) === null || _selectedSupervisor$o === void 0 ? void 0 : _selectedSupervisor$o.name) || null,
1522
1522
  owner: _extends({}, formDetails === null || formDetails === void 0 ? void 0 : formDetails.owner, {
1523
1523
  gender: (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$owner9 = formDetails.owner) === null || _formDetails$owner9 === void 0 ? void 0 : _formDetails$owner9.gender) || "OTHERS",
1524
1524
  dob: (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$owner0 = formDetails.owner) === null || _formDetails$owner0 === void 0 ? void 0 : _formDetails$owner0.dob) || new Date("1/1/1970").getTime(),
@@ -2153,9 +2153,9 @@ const VendorInbox = props => {
2153
2153
  }, {
2154
2154
  Header: t("SUPERVISOR_NAME"),
2155
2155
  exportAccessor: row => {
2156
- var _selectedSupervisor$o3, _row$reportingManager2;
2156
+ var _selectedSupervisor$o2, _row$reportingManager2;
2157
2157
  const selectedSupervisor = getSelectedSupervisorOption(row, supervisors);
2158
- return selectedSupervisor ? selectedSupervisor.name || ((_selectedSupervisor$o3 = selectedSupervisor.owner) === null || _selectedSupervisor$o3 === void 0 ? void 0 : _selectedSupervisor$o3.name) || "NA" : (row === null || row === void 0 ? void 0 : row.supervisorName) || (row === null || row === void 0 ? void 0 : (_row$reportingManager2 = row.reportingManager) === null || _row$reportingManager2 === void 0 ? void 0 : _row$reportingManager2.name) || "NA";
2158
+ return selectedSupervisor ? selectedSupervisor.name || ((_selectedSupervisor$o2 = selectedSupervisor.owner) === null || _selectedSupervisor$o2 === void 0 ? void 0 : _selectedSupervisor$o2.name) || "NA" : (row === null || row === void 0 ? void 0 : row.supervisorName) || (row === null || row === void 0 ? void 0 : (_row$reportingManager2 = row.reportingManager) === null || _row$reportingManager2 === void 0 ? void 0 : _row$reportingManager2.name) || "NA";
2159
2159
  }
2160
2160
  }, {
2161
2161
  Header: t("CREATION_DATE"),
@@ -2941,6 +2941,9 @@ const SupervisorDetails = props => {
2941
2941
  }, {
2942
2942
  title: "ES_VENDOR_SUPERVISOR_EMAIL_ID",
2943
2943
  value: data === null || data === void 0 ? void 0 : (_data$owner2 = data.owner) === null || _data$owner2 === void 0 ? void 0 : _data$owner2.emailId
2944
+ }, {
2945
+ title: "ES_VENDOR_SUPERVISOR_ZONE",
2946
+ value: data === null || data === void 0 ? void 0 : data.assignedZoneId
2944
2947
  }, {
2945
2948
  title: "ES_VENDOR_SUPERVISOR_GENDER",
2946
2949
  value: data === null || data === void 0 ? void 0 : (_data$owner3 = data.owner) === null || _data$owner3 === void 0 ? void 0 : _data$owner3.gender
@@ -3327,10 +3330,17 @@ const SupervisorConfig = function (t, agencies, reportingManagers, disabled) {
3327
3330
  className: "payment-form-text-input-correction"
3328
3331
  }
3329
3332
  }, {
3330
- label: "ES_VENDOR_ZONE",
3333
+ label: t("ES_VENDOR_ZONE"),
3331
3334
  isMandatory: true,
3332
3335
  type: "component",
3333
3336
  key: "zoneIds",
3337
+ populators: {
3338
+ name: "zoneIds",
3339
+ validation: {
3340
+ required: true
3341
+ },
3342
+ className: "mb-16"
3343
+ },
3334
3344
  props: {
3335
3345
  isMultiSelect: false
3336
3346
  },
@@ -6601,7 +6611,9 @@ const VendorSelectAddress = _ref => {
6601
6611
  });
6602
6612
  }
6603
6613
  if (userType === "employee") {
6604
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("MYCITY_CODE_LABEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown, {
6614
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("MYCITY_CODE_LABEL"), config.isMandatory ? /*#__PURE__*/React.createElement("span", {
6615
+ className: "check-page-link-button"
6616
+ }, " * ") : null), /*#__PURE__*/React.createElement(Dropdown, {
6605
6617
  className: "",
6606
6618
  isMandatory: true,
6607
6619
  selected: (cities === null || cities === void 0 ? void 0 : cities.length) === 1 ? cities[0] : selectedCity,
@@ -6610,7 +6622,9 @@ const VendorSelectAddress = _ref => {
6610
6622
  select: selectCity,
6611
6623
  optionKey: "code",
6612
6624
  t: t
6613
- })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_WARD"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown, {
6625
+ })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_WARD"), config.isMandatory ? /*#__PURE__*/React.createElement("span", {
6626
+ className: "check-page-link-button"
6627
+ }, " * ") : null), /*#__PURE__*/React.createElement(Dropdown, {
6614
6628
  className: "",
6615
6629
  isMandatory: true,
6616
6630
  selected: selectedWard,
@@ -6618,7 +6632,9 @@ const VendorSelectAddress = _ref => {
6618
6632
  select: selectWard,
6619
6633
  optionKey: "name",
6620
6634
  t: t
6621
- })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_MOHALLA"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown, {
6635
+ })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_MOHALLA"), config.isMandatory ? /*#__PURE__*/React.createElement("span", {
6636
+ className: "check-page-link-button"
6637
+ }, " * ") : null), /*#__PURE__*/React.createElement(Dropdown, {
6622
6638
  className: "",
6623
6639
  isMandatory: true,
6624
6640
  selected: selectedLocality,
@@ -9398,7 +9414,9 @@ const SelectEkycZones = _ref => {
9398
9414
  }
9399
9415
  };
9400
9416
  if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
9401
- return /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t(config.label), config.isMandatory ? " *" : ""), /*#__PURE__*/React.createElement("div", {
9417
+ return /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t(config.label), config.isMandatory ? /*#__PURE__*/React.createElement("span", {
9418
+ className: "check-page-link-button"
9419
+ }, " * ") : ""), /*#__PURE__*/React.createElement("div", {
9402
9420
  className: "field",
9403
9421
  style: {
9404
9422
  position: "relative",