@djb25/digit-ui-module-fsm 1.0.5 → 1.0.6

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.
@@ -1,4 +1,4 @@
1
- import { AddNewIcon, ShippingTruck, EmployeeModuleCard, TickMark, FormStep as FormStep$1, RadioOrSelect, LabelFieldPair, CardLabel as CardLabel$1, Dropdown as Dropdown$2, TextInput as TextInput$1, RadioButtons, Loader, LocationSearchCard, TextArea as TextArea$1, CardLabelError as CardLabelError$1, CitizenInfoLabel, CardText as CardText$1, WrapUnMaskComponent, PitDimension, ImageUploadHandler, KeyNote, BackButton, PrivateRoute, TelePhone, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton as LinkButton$1, ActionLinks, Rating, SubmitBar as SubmitBar$1, Header, Card as Card$1, CardHeader as CardHeader$1, CardSubHeader, StatusTable, Row, Banner, RatingCard, ULBHomeCard, ViewReportIcon, InboxIcon, Table, CheckBox, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, Label, LinkLabel, DatePicker as DatePicker$3, DetailsCard, SearchAction, FilterAction, PopUp, BreadCrumb, ModuleHeader, ArrowLeft, HomeIcon, Modal, FormComposer, UploadPitPhoto, ImageViewer, BreakLine, Toast, Menu, MultiUploadWrapper, AddIcon, ToggleSwitch, InfoIcon, EditIcon, DeleteIcon, CitizenHomeCard, CitizenTruck } from '@djb25/digit-ui-react-components';
1
+ import { AddNewIcon, ShippingTruck, EmployeeModuleCard, TickMark, FormStep as FormStep$1, RadioOrSelect, LabelFieldPair, CardLabel as CardLabel$1, Dropdown as Dropdown$2, TextInput as TextInput$1, RadioButtons, Loader, LocationSearchCard, TextArea as TextArea$1, CardLabelError as CardLabelError$1, CitizenInfoLabel, CardText as CardText$1, WrapUnMaskComponent, PitDimension, ImageUploadHandler, KeyNote, BackButton, PrivateRoute, TelePhone, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton as LinkButton$1, ActionLinks, Rating, SubmitBar as SubmitBar$1, Header, Card as Card$1, CardHeader as CardHeader$1, CardSubHeader, StatusTable, Row, Banner, RatingCard, ULBHomeCard, ViewReportIcon, InboxIcon, Table, CheckBox, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, Label, LinkLabel, DatePicker as DatePicker$3, DetailsCard, SearchAction, FilterAction, PopUp, BreadCrumb, ModuleHeader, ArrowLeft, HomeIcon, Modal, FormComposer, UploadPitPhoto, ImageViewer, BreakLine, Toast, Menu, MultiUploadWrapper, AddIcon, ToggleSwitch, InfoIcon, EditIcon, DeleteIcon, VerticalTimeline, CitizenHomeCard, CitizenTruck } from '@djb25/digit-ui-react-components';
2
2
  import React, { useState, useEffect, Fragment as Fragment$1, forwardRef, useCallback, useMemo, useRef } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useLocation, useParams, Switch, Redirect, Link, useHistory, useRouteMatch, Route } from 'react-router-dom';
@@ -19119,40 +19119,6 @@ const AddVendor = ({
19119
19119
  })));
19120
19120
  };
19121
19121
 
19122
- const Timeline$1 = ({
19123
- steps: _steps = [],
19124
- currentStep: _currentStep = 1
19125
- }) => {
19126
- const {
19127
- t
19128
- } = useTranslation();
19129
- return /*#__PURE__*/React.createElement("div", {
19130
- className: "custom-stepper-card"
19131
- }, _steps.map((label, index) => {
19132
- const stepNumber = index + 1;
19133
- const isActive = stepNumber === _currentStep;
19134
- const isCompleted = stepNumber < _currentStep;
19135
- return /*#__PURE__*/React.createElement("div", {
19136
- className: "stepper-row-vendor",
19137
- key: index
19138
- }, /*#__PURE__*/React.createElement("div", {
19139
- className: "stepper-left"
19140
- }, /*#__PURE__*/React.createElement("div", {
19141
- className: `step-circle
19142
- ${isActive ? "active" : ""}
19143
- ${isCompleted ? "completed" : ""}`
19144
- }, isCompleted ? /*#__PURE__*/React.createElement(TickMark, {
19145
- fillColor: "#fff"
19146
- }) : stepNumber), index !== _steps.length - 1 && /*#__PURE__*/React.createElement("div", {
19147
- className: `step-line ${isCompleted ? "completed-line" : ""}`
19148
- })), /*#__PURE__*/React.createElement("div", {
19149
- className: `step-label
19150
- ${isActive ? "active-text" : ""}
19151
- ${isCompleted ? "completed-text" : ""}`
19152
- }, t(label)));
19153
- }));
19154
- };
19155
-
19156
19122
  const EditVendor = ({
19157
19123
  parentUrl,
19158
19124
  heading
@@ -19329,20 +19295,18 @@ const EditVendor = ({
19329
19295
  }
19330
19296
  });
19331
19297
  };
19332
- const isMobile = window.Digit.Utils.browser.isMobile();
19333
- if (daoDataLoading || Object.keys(defaultValues).length == 0) {
19298
+ if (daoDataLoading || Object.keys(defaultValues).length === 0) {
19334
19299
  return /*#__PURE__*/React.createElement(Loader, null);
19335
19300
  }
19336
- const steps = [t("ES_FSM_REGISTRY_TITLE_EDIT_VENDOR")];
19337
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19338
- style: {
19339
- display: "flex",
19340
- width: "100%",
19341
- gap: "24px"
19342
- }
19343
- }, /*#__PURE__*/React.createElement(Timeline$1, {
19344
- steps: steps,
19345
- currentStep: currentStep
19301
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(VerticalTimeline, {
19302
+ config: [{
19303
+ timeLine: [{
19304
+ actions: t("ES_FSM_REGISTRY_TITLE_EDIT_VENDOR"),
19305
+ currentStep: 1
19306
+ }]
19307
+ }],
19308
+ currentActiveIndex: currentStep - 1,
19309
+ showFinalStep: false
19346
19310
  }), /*#__PURE__*/React.createElement("div", {
19347
19311
  style: {
19348
19312
  flex: "1",
@@ -19368,7 +19332,7 @@ const EditVendor = ({
19368
19332
  error: showToast.key === "error" ? true : false,
19369
19333
  label: t(showToast.key === "success" ? `ES_FSM_REGISTRY_${showToast.action}_SUCCESS` : showToast.action),
19370
19334
  onClose: closeToast
19371
- }))));
19335
+ })));
19372
19336
  };
19373
19337
 
19374
19338
  const Heading$2 = props => {