@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.
- package/dist/index.js +28 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +28 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1516,12 +1516,12 @@ const VendorInbox = props => {
|
|
|
1516
1516
|
});
|
|
1517
1517
|
};
|
|
1518
1518
|
const onSurveyorSupervisorSelect = (row, selectedSupervisor) => {
|
|
1519
|
-
var _selectedSupervisor$o,
|
|
1519
|
+
var _selectedSupervisor$o, _formDetails$owner9, _formDetails$owner0, _formDetails$owner1, _formDetails$owner10;
|
|
1520
1520
|
let formDetails = row.original;
|
|
1521
1521
|
const formData = {
|
|
1522
1522
|
surveyor: _extends({}, formDetails, {
|
|
1523
|
-
supervisorId: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.
|
|
1524
|
-
supervisorName: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.name) || (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : (_selectedSupervisor$
|
|
1523
|
+
supervisorId: (selectedSupervisor === null || selectedSupervisor === void 0 ? void 0 : selectedSupervisor.id) || null,
|
|
1524
|
+
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,
|
|
1525
1525
|
owner: _extends({}, formDetails === null || formDetails === void 0 ? void 0 : formDetails.owner, {
|
|
1526
1526
|
gender: (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$owner9 = formDetails.owner) === null || _formDetails$owner9 === void 0 ? void 0 : _formDetails$owner9.gender) || "OTHERS",
|
|
1527
1527
|
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(),
|
|
@@ -2156,9 +2156,9 @@ const VendorInbox = props => {
|
|
|
2156
2156
|
}, {
|
|
2157
2157
|
Header: t("SUPERVISOR_NAME"),
|
|
2158
2158
|
exportAccessor: row => {
|
|
2159
|
-
var _selectedSupervisor$
|
|
2159
|
+
var _selectedSupervisor$o2, _row$reportingManager2;
|
|
2160
2160
|
const selectedSupervisor = getSelectedSupervisorOption(row, supervisors);
|
|
2161
|
-
return selectedSupervisor ? selectedSupervisor.name || ((_selectedSupervisor$
|
|
2161
|
+
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";
|
|
2162
2162
|
}
|
|
2163
2163
|
}, {
|
|
2164
2164
|
Header: t("CREATION_DATE"),
|
|
@@ -2944,6 +2944,9 @@ const SupervisorDetails = props => {
|
|
|
2944
2944
|
}, {
|
|
2945
2945
|
title: "ES_VENDOR_SUPERVISOR_EMAIL_ID",
|
|
2946
2946
|
value: data === null || data === void 0 ? void 0 : (_data$owner2 = data.owner) === null || _data$owner2 === void 0 ? void 0 : _data$owner2.emailId
|
|
2947
|
+
}, {
|
|
2948
|
+
title: "ES_VENDOR_SUPERVISOR_ZONE",
|
|
2949
|
+
value: data === null || data === void 0 ? void 0 : data.assignedZoneId
|
|
2947
2950
|
}, {
|
|
2948
2951
|
title: "ES_VENDOR_SUPERVISOR_GENDER",
|
|
2949
2952
|
value: data === null || data === void 0 ? void 0 : (_data$owner3 = data.owner) === null || _data$owner3 === void 0 ? void 0 : _data$owner3.gender
|
|
@@ -3330,10 +3333,17 @@ const SupervisorConfig = function (t, agencies, reportingManagers, disabled) {
|
|
|
3330
3333
|
className: "payment-form-text-input-correction"
|
|
3331
3334
|
}
|
|
3332
3335
|
}, {
|
|
3333
|
-
label: "ES_VENDOR_ZONE",
|
|
3336
|
+
label: t("ES_VENDOR_ZONE"),
|
|
3334
3337
|
isMandatory: true,
|
|
3335
3338
|
type: "component",
|
|
3336
3339
|
key: "zoneIds",
|
|
3340
|
+
populators: {
|
|
3341
|
+
name: "zoneIds",
|
|
3342
|
+
validation: {
|
|
3343
|
+
required: true
|
|
3344
|
+
},
|
|
3345
|
+
className: "mb-16"
|
|
3346
|
+
},
|
|
3337
3347
|
props: {
|
|
3338
3348
|
isMultiSelect: false
|
|
3339
3349
|
},
|
|
@@ -6604,7 +6614,9 @@ const VendorSelectAddress = _ref => {
|
|
|
6604
6614
|
});
|
|
6605
6615
|
}
|
|
6606
6616
|
if (userType === "employee") {
|
|
6607
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("MYCITY_CODE_LABEL"), config.isMandatory ?
|
|
6617
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("MYCITY_CODE_LABEL"), config.isMandatory ? /*#__PURE__*/React__default.createElement("span", {
|
|
6618
|
+
className: "check-page-link-button"
|
|
6619
|
+
}, " * ") : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
6608
6620
|
className: "",
|
|
6609
6621
|
isMandatory: true,
|
|
6610
6622
|
selected: (cities === null || cities === void 0 ? void 0 : cities.length) === 1 ? cities[0] : selectedCity,
|
|
@@ -6613,7 +6625,9 @@ const VendorSelectAddress = _ref => {
|
|
|
6613
6625
|
select: selectCity,
|
|
6614
6626
|
optionKey: "code",
|
|
6615
6627
|
t: t
|
|
6616
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_WARD"), config.isMandatory ?
|
|
6628
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_WARD"), config.isMandatory ? /*#__PURE__*/React__default.createElement("span", {
|
|
6629
|
+
className: "check-page-link-button"
|
|
6630
|
+
}, " * ") : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
6617
6631
|
className: "",
|
|
6618
6632
|
isMandatory: true,
|
|
6619
6633
|
selected: selectedWard,
|
|
@@ -6621,7 +6635,9 @@ const VendorSelectAddress = _ref => {
|
|
|
6621
6635
|
select: selectWard,
|
|
6622
6636
|
optionKey: "name",
|
|
6623
6637
|
t: t
|
|
6624
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_MOHALLA"), config.isMandatory ?
|
|
6638
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("ES_NEW_APPLICATION_LOCATION_MOHALLA"), config.isMandatory ? /*#__PURE__*/React__default.createElement("span", {
|
|
6639
|
+
className: "check-page-link-button"
|
|
6640
|
+
}, " * ") : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
6625
6641
|
className: "",
|
|
6626
6642
|
isMandatory: true,
|
|
6627
6643
|
selected: selectedLocality,
|
|
@@ -9401,7 +9417,9 @@ const SelectEkycZones = _ref => {
|
|
|
9401
9417
|
}
|
|
9402
9418
|
};
|
|
9403
9419
|
if (isLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
9404
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t(config.label), config.isMandatory ?
|
|
9420
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t(config.label), config.isMandatory ? /*#__PURE__*/React__default.createElement("span", {
|
|
9421
|
+
className: "check-page-link-button"
|
|
9422
|
+
}, " * ") : ""), /*#__PURE__*/React__default.createElement("div", {
|
|
9405
9423
|
className: "field",
|
|
9406
9424
|
style: {
|
|
9407
9425
|
position: "relative",
|