@djb25/digit-ui-module-wt 1.0.33 → 1.0.35
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 +69 -10
- 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 { TickMark, ArrowDown, MobileNumber, CardLabelError, TextInput, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, HomeIcon, KeyNote, Modal, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, Banner,
|
|
1
|
+
import { TickMark, ArrowDown, MobileNumber, CardLabelError, TextInput, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CitizenHomeCard, CHBIcon, PropertyHouse, HomeIcon, KeyNote, Modal, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, Banner, EmployeeModuleCard, CloseSvg, Label, LinkLabel, ActionBar, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, CustomNameDropdown, MultiSelectDropdown, CollapsibleCardPage as CollapsibleCardPage$1, LabelFieldPair, AddIcon, Menu, CheckSvg, LayoutWrapper, Header, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, MultiLink, Localities, RemoveableTag, FormComposer, PDFSvg, MultiUploadWrapper, Close as Close$g, BreakLine, InfoBannerIcon, ViewsIcon, ButtonSelector, LocationIcon, PTIcon, ApplicantDetails, AddressDetails } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useRef, useEffect, useState, useMemo, useCallback, Fragment, useReducer } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, useParams } from 'react-router-dom';
|
|
@@ -1219,6 +1219,7 @@ const App = () => {
|
|
|
1219
1219
|
t
|
|
1220
1220
|
} = useTranslation();
|
|
1221
1221
|
const location = useLocation();
|
|
1222
|
+
const history = useHistory();
|
|
1222
1223
|
const {
|
|
1223
1224
|
path,
|
|
1224
1225
|
url,
|
|
@@ -1230,8 +1231,6 @@ const App = () => {
|
|
|
1230
1231
|
const TPApplicationDetails = (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$ComponentRegi = _Digit4.ComponentRegistryService) === null || _Digit4$ComponentRegi === void 0 ? void 0 : _Digit4$ComponentRegi.getComponent("TPApplicationDetails");
|
|
1231
1232
|
const WTMyApplications = (_Digit5 = Digit) === null || _Digit5 === void 0 ? void 0 : (_Digit5$ComponentRegi = _Digit5.ComponentRegistryService) === null || _Digit5$ComponentRegi === void 0 ? void 0 : _Digit5$ComponentRegi.getComponent("WTMyApplications");
|
|
1232
1233
|
const Inbox = Digit.ComponentRegistryService.getComponent("WTEmpInbox");
|
|
1233
|
-
const WTCard = Digit.ComponentRegistryService.getComponent("WTCitizenCard");
|
|
1234
|
-
const MTCard = Digit.ComponentRegistryService.getComponent("MTCitizenCard");
|
|
1235
1234
|
const ApplicationDetails = (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$ComponentRegi = _Digit6.ComponentRegistryService) === null || _Digit6$ComponentRegi === void 0 ? void 0 : _Digit6$ComponentRegi.getComponent("ApplicationDetails");
|
|
1236
1235
|
const getDynamicBreadcrumbs = () => {
|
|
1237
1236
|
const pathname = location.pathname;
|
|
@@ -1355,9 +1354,39 @@ const App = () => {
|
|
|
1355
1354
|
})
|
|
1356
1355
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
1357
1356
|
path: `${path}/wt-Vendor`,
|
|
1358
|
-
component: () => Digit.UserService.hasAccess(["WT_VENDOR"]) ? /*#__PURE__*/React.createElement(
|
|
1359
|
-
|
|
1360
|
-
|
|
1357
|
+
component: () => Digit.UserService.hasAccess(["WT_VENDOR"]) ? /*#__PURE__*/React.createElement("div", {
|
|
1358
|
+
style: {
|
|
1359
|
+
display: "flex",
|
|
1360
|
+
gap: "24px",
|
|
1361
|
+
flexWrap: "wrap",
|
|
1362
|
+
width: "100%",
|
|
1363
|
+
padding: "8px 0"
|
|
1364
|
+
}
|
|
1365
|
+
}, /*#__PURE__*/React.createElement(CitizenHomeCard, {
|
|
1366
|
+
header: t("WT_MODULE_NAME"),
|
|
1367
|
+
links: [{
|
|
1368
|
+
i18nKey: t("ES_COMMON_INBOX"),
|
|
1369
|
+
link: `${APPLICATION_PATH}/citizen/wt/inbox`
|
|
1370
|
+
}, {
|
|
1371
|
+
i18nKey: t("ES_COMMON_APPLICATION_SEARCH"),
|
|
1372
|
+
link: `${APPLICATION_PATH}/citizen/wt/my-bookings`
|
|
1373
|
+
}, {
|
|
1374
|
+
i18nKey: t("WT_REQUEST_TANKER"),
|
|
1375
|
+
link: `${APPLICATION_PATH}/citizen/wt/request-service`
|
|
1376
|
+
}],
|
|
1377
|
+
Icon: () => /*#__PURE__*/React.createElement(CHBIcon, {
|
|
1378
|
+
className: "fill-path-primary-main"
|
|
1379
|
+
})
|
|
1380
|
+
}), /*#__PURE__*/React.createElement(CitizenHomeCard, {
|
|
1381
|
+
header: t("TITLE_VENDOR_MANAGEMENT"),
|
|
1382
|
+
links: [{
|
|
1383
|
+
i18nKey: t("SEARCH_VENDOR"),
|
|
1384
|
+
link: `${APPLICATION_PATH}/citizen/vendor/search-vendor`
|
|
1385
|
+
}],
|
|
1386
|
+
Icon: () => /*#__PURE__*/React.createElement(PropertyHouse, {
|
|
1387
|
+
className: "fill-path-primary-main"
|
|
1388
|
+
})
|
|
1389
|
+
})) : /*#__PURE__*/React.createElement(Redirect, {
|
|
1361
1390
|
to: {
|
|
1362
1391
|
pathname: `${APPLICATION_PATH}/citizen/login`,
|
|
1363
1392
|
state: {
|
|
@@ -1368,9 +1397,39 @@ const App = () => {
|
|
|
1368
1397
|
})
|
|
1369
1398
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
1370
1399
|
path: `${path}/mt-Vendor`,
|
|
1371
|
-
component: () => Digit.UserService.hasAccess(["MT_VENDOR"]) ? /*#__PURE__*/React.createElement(
|
|
1372
|
-
|
|
1373
|
-
|
|
1400
|
+
component: () => Digit.UserService.hasAccess(["MT_VENDOR"]) ? /*#__PURE__*/React.createElement("div", {
|
|
1401
|
+
style: {
|
|
1402
|
+
display: "flex",
|
|
1403
|
+
gap: "24px",
|
|
1404
|
+
flexWrap: "wrap",
|
|
1405
|
+
width: "100%",
|
|
1406
|
+
padding: "8px 0"
|
|
1407
|
+
}
|
|
1408
|
+
}, /*#__PURE__*/React.createElement(CitizenHomeCard, {
|
|
1409
|
+
header: t("ACTION_TEST_MT"),
|
|
1410
|
+
links: [{
|
|
1411
|
+
i18nKey: t("ES_COMMON_INBOX"),
|
|
1412
|
+
link: `${APPLICATION_PATH}/citizen/wt/mt/inbox`
|
|
1413
|
+
}, {
|
|
1414
|
+
i18nKey: t("ES_COMMON_APPLICATION_SEARCH"),
|
|
1415
|
+
link: `${APPLICATION_PATH}/citizen/wt/mt/my-bookings`
|
|
1416
|
+
}, {
|
|
1417
|
+
i18nKey: t("MT_REQUEST_TANKER"),
|
|
1418
|
+
link: `${APPLICATION_PATH}/citizen/wt/request-service`
|
|
1419
|
+
}],
|
|
1420
|
+
Icon: () => /*#__PURE__*/React.createElement(CHBIcon, {
|
|
1421
|
+
className: "fill-path-primary-main"
|
|
1422
|
+
})
|
|
1423
|
+
}), /*#__PURE__*/React.createElement(CitizenHomeCard, {
|
|
1424
|
+
header: t("TITLE_VENDOR_MANAGEMENT"),
|
|
1425
|
+
links: [{
|
|
1426
|
+
i18nKey: t("SEARCH_VENDOR"),
|
|
1427
|
+
link: `${APPLICATION_PATH}/citizen/vendor/search-vendor`
|
|
1428
|
+
}],
|
|
1429
|
+
Icon: () => /*#__PURE__*/React.createElement(PropertyHouse, {
|
|
1430
|
+
className: "fill-path-primary-main"
|
|
1431
|
+
})
|
|
1432
|
+
})) : /*#__PURE__*/React.createElement(Redirect, {
|
|
1374
1433
|
to: {
|
|
1375
1434
|
pathname: `${APPLICATION_PATH}/citizen/login`,
|
|
1376
1435
|
state: {
|
|
@@ -23710,7 +23769,7 @@ const WorkflowTimeline = ({
|
|
|
23710
23769
|
return /*#__PURE__*/React.createElement(Card, {
|
|
23711
23770
|
className: "workflow-timeline-card2 digit-form-composer",
|
|
23712
23771
|
style: {
|
|
23713
|
-
background: "#
|
|
23772
|
+
background: "#fff",
|
|
23714
23773
|
padding: "16px",
|
|
23715
23774
|
height: hideTimeline ? "100%" : ""
|
|
23716
23775
|
}
|