@djb25/digit-ui-module-ws 1.0.40 → 1.0.41

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 CHANGED
@@ -20727,16 +20727,6 @@ const SearchFormFieldsComponents = _ref => {
20727
20727
  title: t("ERR_INVALID_APPLICATION_NO")
20728
20728
  }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, {
20729
20729
  className: "wns-search-field"
20730
- }, /*#__PURE__*/React__default.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
20731
- name: "consumerNo",
20732
- inputRef: registerRef({})
20733
- }, validation = {
20734
- isRequired: false,
20735
- pattern: "^[a-zA-Z0-9/-]*$",
20736
- type: "text",
20737
- title: t("ERR_INVALID_CONSUMER_NO")
20738
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, {
20739
- className: "wns-search-field"
20740
20730
  }, /*#__PURE__*/React__default.createElement("label", null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, _extends({
20741
20731
  name: "mobileNumber",
20742
20732
  type: "number",
@@ -20952,10 +20942,6 @@ const useInboxTableConfig = _ref => {
20952
20942
  className: "link"
20953
20943
  }, row.original["applicationNo"])));
20954
20944
  }
20955
- }, {
20956
- Header: t("WS_COMMON_TABLE_COL_CONSUMER_NO_LABEL"),
20957
- accessor: "connectionNo",
20958
- disableSortBy: true
20959
20945
  }, {
20960
20946
  Header: t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL"),
20961
20947
  accessor: "owner",
@@ -21140,7 +21126,7 @@ const WSInbox = _ref => {
21140
21126
  sortOrder: "DESC"
21141
21127
  };
21142
21128
  sessionStorage.removeItem("Digit.BILL.INBOX");
21143
- sessionStorage.removeItem("Digit.SW.INBOX");
21129
+ sessionStorage.removeItem("Digit.BILL.SW.INBOX");
21144
21130
  function formReducer(state, payload) {
21145
21131
  if (checkPathName) {
21146
21132
  switch (payload.action) {
@@ -21192,7 +21178,7 @@ const WSInbox = _ref => {
21192
21178
  }
21193
21179
  }
21194
21180
  }
21195
- const InboxObjectInSessionStorage = Digit.SessionStorage.get("BILL.INBOX");
21181
+ const InboxObjectInSessionStorage = checkPathName ? Digit.SessionStorage.get("BILL.INBOX") : Digit.SessionStorage.get("BILL.SW.INBOX");
21196
21182
  const onSearchFormReset = setSearchFormValue => {
21197
21183
  setSearchFormValue("mobileNumber", null);
21198
21184
  setSearchFormValue("applicationNumber", null);
@@ -23402,9 +23388,14 @@ const WSCard = () => {
23402
23388
  }],
23403
23389
  links: [{
23404
23390
  count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
23405
- label: t("WS_INBOX_HEADER"),
23391
+ label: t("WATER_INBOX"),
23406
23392
  link: "/digit-ui/employee/ws/water/inbox",
23407
23393
  roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"]
23394
+ }, {
23395
+ count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
23396
+ label: t("SEWERAGE_INBOX"),
23397
+ link: "/digit-ui/employee/ws/sewerage/inbox",
23398
+ roles: ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
23408
23399
  }, ...links, {
23409
23400
  label: t("WS_WATER_CONNECTION_SEARCH_LABEL"),
23410
23401
  link: "/digit-ui/employee/ws/water/search-connection",
@@ -32462,7 +32453,7 @@ const WSInfoPage = () => {
32462
32453
  }) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
32463
32454
  label: t("CS_COMMON_NEXT"),
32464
32455
  onSubmit: handleNext,
32465
- disabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && isEmployee
32456
+ disabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO"
32466
32457
  })));
32467
32458
  };
32468
32459