@djb25/digit-ui-module-ws 1.0.6 → 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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$2, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useLocation, Switch, Route, useHistory, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown,
|
|
4
|
+
import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient } from 'react-query';
|
|
@@ -19979,24 +19979,10 @@ const WSInbox = ({
|
|
|
19979
19979
|
...formState
|
|
19980
19980
|
}
|
|
19981
19981
|
});
|
|
19982
|
-
let links = [{
|
|
19983
|
-
text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
19984
|
-
link: `/digit-ui/employee/ws/create-application`,
|
|
19985
|
-
roles: ["WS_CEMP", "SW_CEMP"]
|
|
19986
|
-
}];
|
|
19987
|
-
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
19988
19982
|
const PropsForInboxLinks = {
|
|
19989
19983
|
logoIcon: /*#__PURE__*/React.createElement(DropIcon, null),
|
|
19990
19984
|
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW",
|
|
19991
|
-
links: [
|
|
19992
|
-
text: t("WS_SEWERAGE_CONNECTION_SEARCH_LABEL"),
|
|
19993
|
-
link: checkPathName ? `/digit-ui/employee/ws/water/search-connection?from=WS_SEWERAGE_INBOX` : `/digit-ui/employee/ws/sewerage/search-connection?from=WS_SEWERAGE_INBOX`,
|
|
19994
|
-
roles: checkPathName ? ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"] : ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
19995
|
-
}, {
|
|
19996
|
-
text: t("WS_SEWERAGE_APPLICATION_SEARCH"),
|
|
19997
|
-
link: checkPathName ? `/digit-ui/employee/ws/water/search-application?from=WS_SEWERAGE_INBOX` : `/digit-ui/employee/ws/sewerage/search-application?from=WS_SEWERAGE_INBOX`,
|
|
19998
|
-
roles: checkPathName ? ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"] : ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
19999
|
-
}]
|
|
19985
|
+
links: []
|
|
20000
19986
|
};
|
|
20001
19987
|
const SearchFormFields = useCallback(({
|
|
20002
19988
|
registerRef,
|