@djb25/digit-ui-module-vendor 1.0.16 → 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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -28
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useMemo, useCallback, useState, Fragment
|
|
1
|
+
import React, { useEffect, useMemo, useCallback, useState, Fragment } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { useParams, useLocation, Switch, Link, useHistory, useRouteMatch, Route, Redirect } from 'react-router-dom';
|
|
4
4
|
import { Header, SearchForm, SearchField, Dropdown as Dropdown$2, MobileNumber, CardLabelError, DatePicker as DatePicker$3, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PropertyHouse, EmployeeModuleCard, VerticalTimeline, FormComposer, FormStep, CardLabel, Tooltip, TextInput, LabelFieldPair, UploadFile, CardSubHeader, CardText, RadioOrSelect, ShippingTruck, CheckBox, RadioButtons, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, AddIcon, Menu, Label, LinkLabel, ToggleSwitch, CardSectionHeader, Row, EditIcon, DeleteIcon, Modal, InfoIcon, CardHeader, StatusTable, LinkButton, Banner } from '@djb25/digit-ui-react-components';
|
|
@@ -404,18 +404,18 @@ const EmployeeApp = ({
|
|
|
404
404
|
})))
|
|
405
405
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
406
406
|
path: `${path}/registry/additionaldetails`,
|
|
407
|
-
component:
|
|
407
|
+
component: props => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
408
408
|
layoutClass: "normal"
|
|
409
409
|
}, /*#__PURE__*/React.createElement(VendorCreate, Object.assign({}, props, {
|
|
410
410
|
parentRoute: path
|
|
411
|
-
})))
|
|
411
|
+
})))
|
|
412
412
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
413
413
|
path: `${path}/registry/driver-details/:id`,
|
|
414
|
-
component:
|
|
414
|
+
component: props => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
415
415
|
layoutClass: "action"
|
|
416
416
|
}, /*#__PURE__*/React.createElement(DriverDetails, Object.assign({}, props, {
|
|
417
417
|
parentRoute: path
|
|
418
|
-
})))
|
|
418
|
+
})))
|
|
419
419
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
420
420
|
path: `${path}/common-search/:id`,
|
|
421
421
|
component: props => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
@@ -446,13 +446,6 @@ const EmployeeApp = ({
|
|
|
446
446
|
})))
|
|
447
447
|
})))));
|
|
448
448
|
};
|
|
449
|
-
const renderWithLayout = (Component, layoutClass) => routeProps => /*#__PURE__*/React.createElement("div", {
|
|
450
|
-
className: layoutClass
|
|
451
|
-
}, /*#__PURE__*/React.createElement(Component, routeProps));
|
|
452
|
-
const layouts = {
|
|
453
|
-
normal: "employee-form",
|
|
454
|
-
action: "employee-form employee-form-content-with-action-bar"
|
|
455
|
-
};
|
|
456
449
|
|
|
457
450
|
const VENDORCard = () => {
|
|
458
451
|
const {
|
|
@@ -8149,16 +8142,14 @@ const SearchApplication = ({
|
|
|
8149
8142
|
key: index,
|
|
8150
8143
|
className: index === 0 ? "complaint-input" : "mobile-input"
|
|
8151
8144
|
}, /*#__PURE__*/React.createElement(Label, null, input.label), getFields(input), " ")), /*#__PURE__*/React.createElement("div", {
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
alignItems: "end",
|
|
8155
|
-
gap: "16px"
|
|
8156
|
-
}
|
|
8157
|
-
}, type === "desktop" && !mobileView && /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8145
|
+
className: "finance-mainlayout-col1"
|
|
8146
|
+
}, /*#__PURE__*/React.createElement(Label, null, "\xA0"), type === "desktop" && !mobileView && /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8158
8147
|
className: "submit-bar-search",
|
|
8159
8148
|
label: t("ES_COMMON_SEARCH"),
|
|
8160
8149
|
submit: true
|
|
8161
|
-
}),
|
|
8150
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8151
|
+
className: "finance-mainlayout-col1"
|
|
8152
|
+
}, /*#__PURE__*/React.createElement(Label, null, "\xA0"), type === "desktop" && !mobileView && /*#__PURE__*/React.createElement("span", {
|
|
8162
8153
|
className: "clear-search generic-button"
|
|
8163
8154
|
}, clearAll()))), error ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
8164
8155
|
className: "search-error-label"
|
|
@@ -9946,9 +9937,7 @@ const EditVendorDetails = props => {
|
|
|
9946
9937
|
marginBottom: "16px",
|
|
9947
9938
|
marginTop: "32px"
|
|
9948
9939
|
}
|
|
9949
|
-
}, t(detail.title)), /*#__PURE__*/React.createElement("div", null,
|
|
9950
|
-
className: "formcomposer-section-grid"
|
|
9951
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$values = detail.values) === null || _detail$values === void 0 ? void 0 : _detail$values.map((value, index) => {
|
|
9940
|
+
}, t(detail.title)), /*#__PURE__*/React.createElement("div", null, detail === null || detail === void 0 ? void 0 : (_detail$values = detail.values) === null || _detail$values === void 0 ? void 0 : _detail$values.map((value, index) => {
|
|
9952
9941
|
var _detail$values2;
|
|
9953
9942
|
if (value.title === "ES_FSM_REGISTRY_DETAILS_ADDITIONAL_DETAILS") {
|
|
9954
9943
|
var _vendorAdditionalData, _vendorAdditionalData2;
|
|
@@ -10058,7 +10047,7 @@ const EditVendorDetails = props => {
|
|
|
10058
10047
|
marginLeft: "16px"
|
|
10059
10048
|
},
|
|
10060
10049
|
onClick: () => onActionSelect(detail.type === "ES_FSM_REGISTRY_DETAILS_TYPE_DRIVER" ? "ADD_DRIVER" : "ADD_VEHICLE")
|
|
10061
|
-
}, t(`${detail.type}_ADD`))))
|
|
10050
|
+
}, t(`${detail.type}_ADD`))));
|
|
10062
10051
|
})), showModal && /*#__PURE__*/React.createElement(Modal, {
|
|
10063
10052
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
10064
10053
|
label: t(selectedAction === "DELETE" ? "ES_FSM_REGISTRY_DELETE_POPUP_HEADER" : selectedAction === "ADD_VEHICLE" ? "ES_FSM_REGISTRY_ADD_VEHICLE_POPUP_HEADER" : "ES_FSM_REGISTRY_ADD_DRIVER_POPUP_HEADER")
|
|
@@ -11213,7 +11202,7 @@ const DriverDetails = props => {
|
|
|
11213
11202
|
});
|
|
11214
11203
|
}
|
|
11215
11204
|
if (selectedAction === "ADD_VENDOR") {
|
|
11216
|
-
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
11205
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
11217
11206
|
t: t,
|
|
11218
11207
|
option: vendors,
|
|
11219
11208
|
value: selectedOption,
|
|
@@ -11223,7 +11212,7 @@ const DriverDetails = props => {
|
|
|
11223
11212
|
}));
|
|
11224
11213
|
}
|
|
11225
11214
|
if (selectedAction === "EDIT_VENDOR") {
|
|
11226
|
-
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
11215
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
11227
11216
|
t: t,
|
|
11228
11217
|
option: vendors,
|
|
11229
11218
|
value: selectedOption,
|
|
@@ -11613,7 +11602,7 @@ const VehicleDetails = props => {
|
|
|
11613
11602
|
});
|
|
11614
11603
|
}
|
|
11615
11604
|
if (selectedAction === "ADD_VENDOR") {
|
|
11616
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
11605
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
11617
11606
|
t: t,
|
|
11618
11607
|
option: vendors,
|
|
11619
11608
|
value: selectedOption,
|
|
@@ -11623,7 +11612,7 @@ const VehicleDetails = props => {
|
|
|
11623
11612
|
}));
|
|
11624
11613
|
}
|
|
11625
11614
|
if (selectedAction === "EDIT_VENDOR") {
|
|
11626
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
11615
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
11627
11616
|
t: t,
|
|
11628
11617
|
option: vendors,
|
|
11629
11618
|
value: selectedOption,
|
|
@@ -11665,7 +11654,7 @@ const VehicleDetails = props => {
|
|
|
11665
11654
|
}
|
|
11666
11655
|
}, t(detail.title)), /*#__PURE__*/React.createElement(StatusTable, null, detail === null || detail === void 0 ? void 0 : (_detail$values = detail.values) === null || _detail$values === void 0 ? void 0 : _detail$values.map((value, index) => {
|
|
11667
11656
|
var _detail$values2, _detail$values3;
|
|
11668
|
-
return (value === null || value === void 0 ? void 0 : value.type) === "custom" ? /*#__PURE__*/React.createElement(Fragment
|
|
11657
|
+
return (value === null || value === void 0 ? void 0 : value.type) === "custom" ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
11669
11658
|
className: `${index === (detail === null || detail === void 0 ? void 0 : (_detail$values2 = detail.values) === null || _detail$values2 === void 0 ? void 0 : _detail$values2.length) - 1 ? "row last" : "row"} border-none`
|
|
11670
11659
|
}, /*#__PURE__*/React.createElement("h2", null, t(value.title)), /*#__PURE__*/React.createElement("div", {
|
|
11671
11660
|
className: "value",
|