@djb25/digit-ui-module-vendor 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.
@@ -321,7 +321,6 @@ const EmployeeApp = ({
321
321
  } = useTranslation();
322
322
  const location = useLocation();
323
323
  sessionStorage.removeItem("revalidateddone");
324
- const isMobile = window.Digit.Utils.browser.isMobile();
325
324
  const AddVendor = Digit.ComponentRegistryService.getComponent("AddVendor");
326
325
  const SearchVendor = Digit.ComponentRegistryService.getComponent("SearchVendor");
327
326
  const AddDriver = Digit.ComponentRegistryService.getComponent("AddDriver");
@@ -708,7 +707,7 @@ const AddVendor = ({
708
707
  const {
709
708
  t
710
709
  } = useTranslation();
711
- const [currentStep, setCurrentStep] = useState(2);
710
+ const [currentStep, setCurrentStep] = useState(1);
712
711
  const [showToast, setShowToast] = useState(null);
713
712
  const [canSubmit, setCanSubmit] = useState(false);
714
713
  const step1DataRef = useRef({});
@@ -8981,7 +8980,9 @@ const SearchVendor = () => {
8981
8980
  refetch();
8982
8981
  refetchVendor();
8983
8982
  }, []);
8984
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(VendorInbox, {
8983
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
8984
+ className: "employee-form-content"
8985
+ }, /*#__PURE__*/React.createElement(VendorInbox, {
8985
8986
  data: {
8986
8987
  table: tableData
8987
8988
  },
@@ -9003,7 +9004,7 @@ const SearchVendor = () => {
9003
9004
  selectedTab: tab,
9004
9005
  refetchData: refetchData,
9005
9006
  refetchVendor: refetchVendorData
9006
- }));
9007
+ })));
9007
9008
  };
9008
9009
 
9009
9010
  const SelectServiceType = ({
@@ -9565,7 +9566,7 @@ const EditVendorDetails = props => {
9565
9566
  });
9566
9567
  }
9567
9568
  if (selectedAction === "ADD_VEHICLE") {
9568
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VEHICLE`)), /*#__PURE__*/React.createElement(Dropdown$2, {
9569
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VEHICLE`)), /*#__PURE__*/React.createElement(Dropdown$2, {
9569
9570
  t: t,
9570
9571
  option: vehicles,
9571
9572
  value: selectedOption,
@@ -9575,7 +9576,7 @@ const EditVendorDetails = props => {
9575
9576
  }));
9576
9577
  }
9577
9578
  if (selectedAction === "ADD_DRIVER") {
9578
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_DRIVER`)), /*#__PURE__*/React.createElement(Dropdown$2, {
9579
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_DRIVER`)), /*#__PURE__*/React.createElement(Dropdown$2, {
9579
9580
  t: t,
9580
9581
  option: drivers,
9581
9582
  value: selectedOption,
@@ -9590,15 +9591,9 @@ const EditVendorDetails = props => {
9590
9591
  return /*#__PURE__*/React.createElement(Loader, null);
9591
9592
  }
9592
9593
  const excludedKeys = ["vendorAdditionalDetailsId", "vendorId", "tenantId", "code", "lastModifiedTime", "createdTime", "lastModifiedBy", "createdBy", "active", "status", "vendorType", "vendorGroup", "narration", "documents"];
9593
- return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
9594
- style: {
9595
- marginBottom: "16px"
9596
- }
9597
- }, t("ES_FSM_REGISTRY_VENDOR_DETAILS")), /*#__PURE__*/React.createElement("div", {
9598
- style: !isMobile ? {
9599
- marginLeft: "-15px"
9600
- } : {}
9601
- }, /*#__PURE__*/React.createElement(Card, {
9594
+ return /*#__PURE__*/React.createElement("div", {
9595
+ className: "employee-form-content"
9596
+ }, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, {
9602
9597
  style: {
9603
9598
  position: "relative"
9604
9599
  }
@@ -10265,8 +10260,6 @@ const VENDORCreate = ({
10265
10260
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
10266
10261
  });
10267
10262
  config.indexRoute = "info";
10268
- console.log(commonFields, "commanFields");
10269
- console.log(config, "config");
10270
10263
  const CheckPage = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("VENDORCheckPage");
10271
10264
  const NewResponse = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("NewResponse");
10272
10265
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -11371,7 +11364,7 @@ const SelectVehicleType = ({
11371
11364
  const {
11372
11365
  data: vehicleData,
11373
11366
  isLoading: vehicleLoading
11374
- } = Digit.Hooks.wt.useMDMS(stateId, "Vehicle", "VehicleMakeModel");
11367
+ } = Digit.Hooks.wt.useWTMDMS(stateId, "Vehicle", "VehicleMakeModel");
11375
11368
  console.log("vehicleData", vehicleData);
11376
11369
  const {
11377
11370
  data: serviceTypeData,