@djb25/digit-ui-module-ws 1.0.74 → 1.0.75

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.
@@ -8402,7 +8402,7 @@ const getDocumentDetails = (application, t) => {
8402
8402
  };
8403
8403
  const getWSAcknowledgementData = function (application, property, tenantInfo, t) {
8404
8404
  try {
8405
- var _application$tradeLic21, _application$tradeLic22;
8405
+ var _application$tradeLic17, _application$tradeLic18;
8406
8406
  function _temp2() {
8407
8407
  return Promise.resolve(getHeaderDetails(application, t, tenantInfo)).then(function (header) {
8408
8408
  return {
@@ -8417,7 +8417,7 @@ const getWSAcknowledgementData = function (application, property, tenantInfo, t)
8417
8417
  };
8418
8418
  });
8419
8419
  }
8420
- const filesArray = application === null || application === void 0 ? void 0 : (_application$tradeLic21 = application.tradeLicenseDetail) === null || _application$tradeLic21 === void 0 ? void 0 : (_application$tradeLic22 = _application$tradeLic21.applicationDocuments) === null || _application$tradeLic22 === void 0 ? void 0 : _application$tradeLic22.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId);
8420
+ const filesArray = application === null || application === void 0 ? void 0 : (_application$tradeLic17 = application.tradeLicenseDetail) === null || _application$tradeLic17 === void 0 ? void 0 : (_application$tradeLic18 = _application$tradeLic17.applicationDocuments) === null || _application$tradeLic18 === void 0 ? void 0 : _application$tradeLic18.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId);
8421
8421
  let res;
8422
8422
  const _temp = function () {
8423
8423
  if (filesArray) {
@@ -8984,7 +8984,7 @@ const App = _ref => {
8984
8984
  }, {
8985
8985
  path: "/digit-ui/citizen/ws/my-connections",
8986
8986
  label: t("WS_MYCONNECTIONS_HEADER"),
8987
- show: location.pathname.includes("/my-connections")
8987
+ show: location.pathname.includes("/my-connections") || location.pathname.includes("/connection/details")
8988
8988
  }, {
8989
8989
  path: "/digit-ui/citizen/ws/my-bills",
8990
8990
  label: t("CS_WS_MY_BILLS"),
@@ -9001,6 +9001,10 @@ const App = _ref => {
9001
9001
  path: location.pathname,
9002
9002
  label: t("WS_APPLICATION_DETAILS_HEADER"),
9003
9003
  show: location.pathname.includes("/connection/application")
9004
+ }, {
9005
+ path: location.pathname,
9006
+ label: t("WS_COMMON_CONNECTION_DETAIL"),
9007
+ show: location.pathname.includes("/connection/details")
9004
9008
  }, {
9005
9009
  path: location.pathname,
9006
9010
  label: t("WS_APPLICATION_DETAILS_HEADER"),
@@ -33364,7 +33368,7 @@ const ConnectionDetails$5 = () => {
33364
33368
  const applicationDownloadObject = {
33365
33369
  order: 2,
33366
33370
  label: t("WS_APPLICATION"),
33367
- onClick: () => handleDownloadPdf
33371
+ onClick: () => handleDownloadPdf()
33368
33372
  };
33369
33373
  const receiptApplicationFeeDownloadObject = {
33370
33374
  order: 3,
@@ -33485,27 +33489,27 @@ const ConnectionDetails$5 = () => {
33485
33489
  }
33486
33490
  sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
33487
33491
  let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
33488
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
33489
- className: "cardHeaderWithOptions",
33492
+ return /*#__PURE__*/React.createElement(React.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
33493
+ t: t
33494
+ }), /*#__PURE__*/React.createElement("div", {
33495
+ className: "hide-seperator"
33496
+ }, /*#__PURE__*/React.createElement(Card, null, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
33490
33497
  style: {
33491
- marginRight: "auto",
33492
- maxWidth: "960px"
33498
+ position: "absolute",
33499
+ right: "24px",
33500
+ zIndex: 11
33493
33501
  }
33494
- }, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
33502
+ }, /*#__PURE__*/React.createElement("div", {
33495
33503
  ref: menuRef
33496
33504
  }, /*#__PURE__*/React.createElement(MultiLink, {
33497
- className: "multilinkWrapper",
33505
+ label: t("CS_COMMON_DOWNLOAD"),
33506
+ className: "multilinkWrapper employee-mulitlink-main-divNew",
33498
33507
  onHeadClick: () => setShowOptions(!showOptions),
33499
33508
  displayOptions: showOptions,
33500
33509
  options: downloadOptions,
33501
- optionsStyle: {
33502
- margin: "0px"
33503
- }
33504
- }))), checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
33505
- t: t
33506
- }), /*#__PURE__*/React.createElement("div", {
33507
- className: "hide-seperator"
33508
- }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
33510
+ downloadBtnClassName: "employee-download-btn-className",
33511
+ optionsClassName: "employee-options-btn-className"
33512
+ }))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
33509
33513
  className: "border-none",
33510
33514
  label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
33511
33515
  text: (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.connectionNo
@@ -33902,47 +33906,27 @@ const ConnectionDetails$5 = () => {
33902
33906
  marginBottom: "20px"
33903
33907
  }
33904
33908
  }) : null)));
33905
- })), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement(ActionBar, {
33909
+ })), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement("div", {
33906
33910
  style: {
33907
- position: "relative",
33908
- boxShadow: "none",
33909
- minWidth: "240px",
33910
- maxWidth: "620px",
33911
- padding: "0px",
33912
- marginTop: "15px",
33913
33911
  display: "flex",
33914
- gap: "10px"
33915
- }
33916
- }, /*#__PURE__*/React.createElement("div", {
33917
- style: {
33912
+ justifyContent: "flex-end",
33913
+ marginTop: "15px",
33918
33914
  width: "100%"
33919
33915
  }
33920
33916
  }, /*#__PURE__*/React.createElement(SubmitBar, {
33921
- style: {
33922
- width: "100%"
33923
- },
33924
33917
  label: t("WS_DISCONNECTION_BUTTON"),
33925
33918
  onSubmit: onActionSelect
33926
- }))) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React.createElement(ActionBar, {
33927
- style: {
33928
- position: "relative",
33929
- boxShadow: "none",
33930
- minWidth: "240px",
33931
- maxWidth: "310px",
33932
- padding: "0px",
33933
- marginTop: "15px"
33934
- }
33935
- }, /*#__PURE__*/React.createElement("div", {
33919
+ })) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React.createElement("div", {
33936
33920
  style: {
33921
+ display: "flex",
33922
+ justifyContent: "flex-end",
33923
+ marginTop: "15px",
33937
33924
  width: "100%"
33938
33925
  }
33939
33926
  }, /*#__PURE__*/React.createElement(SubmitBar, {
33940
- style: {
33941
- width: "100%"
33942
- },
33943
33927
  label: t("WS_RECONNECTION_BUTTON"),
33944
33928
  onSubmit: onActionSelectRestoration
33945
- }))), showModal ? /*#__PURE__*/React.createElement(Modal, {
33929
+ })), showModal ? /*#__PURE__*/React.createElement(Modal, {
33946
33930
  open: showModal,
33947
33931
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
33948
33932
  label: t("WS_PENDING_DUES_LABEL")
@@ -38379,7 +38363,7 @@ const FileUploadField = _ref6 => {
38379
38363
  })))));
38380
38364
  };
38381
38365
  const NewApplication = () => {
38382
- var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3;
38366
+ var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
38383
38367
  const _useTranslation2 = useTranslation(),
38384
38368
  t = _useTranslation2.t;
38385
38369
  const history = useHistory();
@@ -40412,9 +40396,6 @@ const NewApplication = () => {
40412
40396
  })), /*#__PURE__*/React.createElement(Controller, {
40413
40397
  control: control,
40414
40398
  name: "declaration.signatureFile",
40415
- rules: {
40416
- validate: value => !!value || "Signature upload is required."
40417
- },
40418
40399
  render: props => /*#__PURE__*/React.createElement(FileUploadField, {
40419
40400
  error: getFieldError("declaration.signatureFile"),
40420
40401
  id: "signature-file",
@@ -40422,7 +40403,6 @@ const NewApplication = () => {
40422
40403
  label: "Upload Signature",
40423
40404
  onDelete: () => clearUploadedFile("declaration.signatureFile", props.onChange),
40424
40405
  onUpload: event => uploadFile(event, "declaration.signatureFile", props.onChange),
40425
- required: true,
40426
40406
  value: props.value
40427
40407
  })
40428
40408
  })))), previewMode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionCard, {
@@ -40734,7 +40714,7 @@ const NewApplication = () => {
40734
40714
  onSubmit: onReset,
40735
40715
  style: secondaryButtonStyle
40736
40716
  }), /*#__PURE__*/React.createElement(SubmitBar, {
40737
- disabled: hasPendingUpload,
40717
+ disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati4 = formValues.declaration) !== null && _formValues$declarati4 !== void 0 && _formValues$declarati4.agree),
40738
40718
  label: hasPendingUpload ? "Uploading..." : "Preview",
40739
40719
  onSubmit: handleSubmit(onPreview)
40740
40720
  })) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubmitBar, {
@@ -40742,7 +40722,7 @@ const NewApplication = () => {
40742
40722
  onSubmit: onEdit,
40743
40723
  style: secondaryButtonStyle
40744
40724
  }), /*#__PURE__*/React.createElement(SubmitBar, {
40745
- disabled: hasPendingUpload,
40725
+ disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati5 = formValues.declaration) !== null && _formValues$declarati5 !== void 0 && _formValues$declarati5.agree),
40746
40726
  label: hasPendingUpload ? "Uploading..." : "Submit",
40747
40727
  onSubmit: handleSubmit(onSubmit)
40748
40728
  }))), showToast ? /*#__PURE__*/React.createElement(Toast, {
@@ -55256,6 +55236,7 @@ const CheckPage$4 = _ref2 => {
55256
55236
  };
55257
55237
 
55258
55238
  const OLDApplication = () => {
55239
+ var _sessionFormData$decl;
55259
55240
  const _useTranslation = useTranslation(),
55260
55241
  t = _useTranslation.t;
55261
55242
  const history = useHistory();
@@ -55467,7 +55448,7 @@ const OLDApplication = () => {
55467
55448
  }).length > 0)) {
55468
55449
  console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
55469
55450
  setShowToast({
55470
- warning: true,
55451
+ key: "error",
55471
55452
  message: "PLEASE_FILL_MANDATORY_DETAILS"
55472
55453
  });
55473
55454
  return;
@@ -55850,7 +55831,8 @@ const OLDApplication = () => {
55850
55831
  defaultValues: sessionFormData,
55851
55832
  noCard: true,
55852
55833
  noBreakLine: true,
55853
- cardFormWrapperClassName: "new-application-card"
55834
+ cardFormWrapperClassName: "new-application-card",
55835
+ isDisabled: !(sessionFormData !== null && sessionFormData !== void 0 && (_sessionFormData$decl = sessionFormData.declarationData) !== null && _sessionFormData$decl !== void 0 && _sessionFormData$decl.agree)
55854
55836
  }), showToast && /*#__PURE__*/React.createElement(Toast, {
55855
55837
  isDleteBtn: true,
55856
55838
  duration: 5000,