@djb25/digit-ui-module-common 1.0.5 → 1.0.6
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 +62 -111
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +63 -112
- 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 { Loader, Card, RadioButtons, MobileNumber, TextInput, CheckBox, CitizenConsentForm, SubmitBar, KeyNote, Header, Toast, CardSubHeader, CardLabel, CardSectionHeader, InfoBanner, Banner, CardText, StatusTable, Row, DownloadPrefixIcon, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, DatePicker, SearchIconSvg, CardLabelError, Dropdown, FormComposer, ActionBar, Menu } from '@djb25/digit-ui-react-components';
|
|
1
|
+
import { Loader, Card, RadioButtons, MobileNumber, TextInput, CheckBox, CitizenConsentForm, SubmitBar, KeyNote, Header, Toast, CardSubHeader, CardLabel, CardSectionHeader, InfoBanner, Banner, CardText, StatusTable, Row, DownloadPrefixIcon, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, DatePicker, LabelFieldPair, SearchIconSvg, CardLabelError, Dropdown, VerticalTimeline, FormComposer, ActionBar, Menu, LayoutWrapper } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useMemo, Fragment } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useHistory, useLocation, useParams, Link, useRouteMatch, Switch, Route } from 'react-router-dom';
|
|
@@ -3028,6 +3028,7 @@ const useCashPaymentDetails = (props, t) => {
|
|
|
3028
3028
|
body: [{
|
|
3029
3029
|
withoutLabel: true,
|
|
3030
3030
|
type: "custom",
|
|
3031
|
+
colSpan: "span 2",
|
|
3031
3032
|
populators: {
|
|
3032
3033
|
name: "ManualRecieptDetails",
|
|
3033
3034
|
customProps: {},
|
|
@@ -3089,6 +3090,7 @@ const useCardPaymentDetails = (props, t) => {
|
|
|
3089
3090
|
body: [{
|
|
3090
3091
|
withoutLabel: true,
|
|
3091
3092
|
type: "custom",
|
|
3093
|
+
colSpan: "span 2",
|
|
3092
3094
|
populators: {
|
|
3093
3095
|
name: "paymentModeDetails",
|
|
3094
3096
|
customProps: {},
|
|
@@ -3132,54 +3134,26 @@ const CardDetailsComponent = _ref => {
|
|
|
3132
3134
|
});
|
|
3133
3135
|
}
|
|
3134
3136
|
}, [last4Digits, transactionNumber, reTransanctionNumber]);
|
|
3135
|
-
return /*#__PURE__*/React.createElement(
|
|
3136
|
-
className: "
|
|
3137
|
-
}, /*#__PURE__*/React.createElement("
|
|
3138
|
-
className: "card-label"
|
|
3139
|
-
}, t("NOC_PAYMENT_CARD_LAST_DIGITS_LABEL") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
3140
|
-
className: "field"
|
|
3141
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3142
|
-
className: "field-container"
|
|
3143
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3144
|
-
className: "employee-card-input",
|
|
3137
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3138
|
+
className: "formcomposer-section-grid"
|
|
3139
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("NOC_PAYMENT_CARD_LAST_DIGITS_LABEL") + " *"), /*#__PURE__*/React.createElement(TextInput, {
|
|
3145
3140
|
value: last4Digits,
|
|
3146
|
-
type: "text",
|
|
3147
3141
|
name: "instrumentNumber",
|
|
3148
3142
|
maxLength: "4",
|
|
3149
3143
|
minLength: "4",
|
|
3150
3144
|
required: true,
|
|
3151
3145
|
onChange: e => setLast4Digits(e.target.value)
|
|
3152
|
-
}))
|
|
3153
|
-
className: "label-field-pair"
|
|
3154
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
3155
|
-
className: "card-label"
|
|
3156
|
-
}, t("NOC_PAYMENT_TRANS_NO_LABEL") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
3157
|
-
className: "field"
|
|
3158
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3159
|
-
className: "field-container"
|
|
3160
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3161
|
-
className: "employee-card-input",
|
|
3146
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("NOC_PAYMENT_TRANS_NO_LABEL") + " *"), /*#__PURE__*/React.createElement(TextInput, {
|
|
3162
3147
|
value: transactionNumber,
|
|
3163
|
-
type: "text",
|
|
3164
3148
|
name: "instrumentNumber",
|
|
3165
3149
|
required: true,
|
|
3166
3150
|
onChange: e => setTransactionNumber(e.target.value)
|
|
3167
|
-
}))
|
|
3168
|
-
className: "label-field-pair"
|
|
3169
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
3170
|
-
className: "card-label"
|
|
3171
|
-
}, t("NOC_PAYMENT_RENTR_TRANS_LABEL") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
3172
|
-
className: "field"
|
|
3173
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3174
|
-
className: "field-container"
|
|
3175
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3176
|
-
className: "employee-card-input",
|
|
3151
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("NOC_PAYMENT_RENTR_TRANS_LABEL") + " *"), /*#__PURE__*/React.createElement(TextInput, {
|
|
3177
3152
|
value: reTransanctionNumber,
|
|
3178
|
-
type: "text",
|
|
3179
3153
|
name: "instrumentNumber",
|
|
3180
3154
|
required: true,
|
|
3181
3155
|
onChange: e => setReTransanctionNumber(e.target.value)
|
|
3182
|
-
})))
|
|
3156
|
+
})));
|
|
3183
3157
|
};
|
|
3184
3158
|
|
|
3185
3159
|
const useChequeDetails = (props, t) => {
|
|
@@ -3189,6 +3163,7 @@ const useChequeDetails = (props, t) => {
|
|
|
3189
3163
|
body: [{
|
|
3190
3164
|
withoutLabel: true,
|
|
3191
3165
|
type: "custom",
|
|
3166
|
+
colSpan: "span 2",
|
|
3192
3167
|
populators: {
|
|
3193
3168
|
name: "paymentModeDetails",
|
|
3194
3169
|
customProps: {},
|
|
@@ -3278,92 +3253,46 @@ const ChequeDetailsComponent = props => {
|
|
|
3278
3253
|
setIfscCodeError("");
|
|
3279
3254
|
};
|
|
3280
3255
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
3281
|
-
className: "
|
|
3282
|
-
}, /*#__PURE__*/React.createElement("
|
|
3283
|
-
className: "card-label"
|
|
3284
|
-
}, t("PAYMENT_CHQ_NO_LABEL"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
3285
|
-
className: "field"
|
|
3286
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3287
|
-
className: "field-container"
|
|
3288
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3289
|
-
className: "employee-card-input",
|
|
3256
|
+
className: "formcomposer-section-grid"
|
|
3257
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PAYMENT_CHQ_NO_LABEL") + " *"), /*#__PURE__*/React.createElement(TextInput, {
|
|
3290
3258
|
value: instrumentNumber,
|
|
3291
|
-
type: "text",
|
|
3292
|
-
name: "instrumentNumber",
|
|
3293
3259
|
onChange: e => setChequeNo(e.target.value),
|
|
3260
|
+
name: "instrumentNumber",
|
|
3294
3261
|
required: true
|
|
3295
|
-
}))
|
|
3296
|
-
className: "label-field-pair"
|
|
3297
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
3298
|
-
className: "card-label"
|
|
3299
|
-
}, t("PAYMENT_CHEQUE_DATE_LABEL"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
3300
|
-
className: "field"
|
|
3301
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3302
|
-
className: "field-container"
|
|
3303
|
-
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
3262
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PAYMENT_CHEQUE_DATE_LABEL") + " *"), /*#__PURE__*/React.createElement(DatePicker, {
|
|
3304
3263
|
isRequired: true,
|
|
3305
3264
|
date: instrumentDate,
|
|
3306
3265
|
onChange: d => {
|
|
3307
3266
|
setChequeDate(d);
|
|
3308
3267
|
}
|
|
3309
|
-
})))),
|
|
3310
|
-
/*#__PURE__*/
|
|
3311
|
-
React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
3312
|
-
className: "label-field-pair"
|
|
3313
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
3314
|
-
className: "card-label"
|
|
3315
|
-
}, t("PAYMENT_IFSC_CODE_LABEL"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
3268
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PAYMENT_IFSC_CODE_LABEL") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
3316
3269
|
className: "field"
|
|
3317
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
3270
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3318
3271
|
className: "cheque-date"
|
|
3319
3272
|
}, /*#__PURE__*/React.createElement("input", {
|
|
3320
3273
|
value: ifscCode,
|
|
3321
3274
|
type: "text",
|
|
3322
3275
|
onChange: handleIFSCChange,
|
|
3323
|
-
|
|
3324
|
-
|
|
3276
|
+
minLength: "11",
|
|
3277
|
+
maxLength: "11",
|
|
3325
3278
|
required: true
|
|
3326
3279
|
}), /*#__PURE__*/React.createElement("button", {
|
|
3327
3280
|
type: "button",
|
|
3328
3281
|
onClick: setBankDetailsFromIFSC
|
|
3329
|
-
}, /*#__PURE__*/React.createElement(SearchIconSvg, null)))
|
|
3282
|
+
}, /*#__PURE__*/React.createElement(SearchIconSvg, null))), ifscCodeError && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
3330
3283
|
style: {
|
|
3331
|
-
width: "70%",
|
|
3332
|
-
marginLeft: "30%",
|
|
3333
3284
|
fontSize: "12px",
|
|
3334
3285
|
marginTop: "-21px"
|
|
3335
3286
|
}
|
|
3336
|
-
}, ifscCodeError), /*#__PURE__*/React.createElement("
|
|
3337
|
-
className: "label-field-pair"
|
|
3338
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
3339
|
-
className: "card-label"
|
|
3340
|
-
}, t("PAYMENT_BANK_NAME_LABEL")), /*#__PURE__*/React.createElement("div", {
|
|
3341
|
-
className: "field"
|
|
3342
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3343
|
-
className: "field-container"
|
|
3344
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3345
|
-
className: "employee-card-input",
|
|
3287
|
+
}, ifscCodeError))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PAYMENT_BANK_NAME_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
3346
3288
|
value: bankName,
|
|
3347
|
-
type: "text",
|
|
3348
|
-
className: "employee-card-input",
|
|
3349
3289
|
readOnly: true,
|
|
3350
3290
|
disabled: true
|
|
3351
|
-
}))
|
|
3352
|
-
className: "label-field-pair"
|
|
3353
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
3354
|
-
className: "card-label"
|
|
3355
|
-
}, t("PAYMENT_BANK_BRANCH_LABEL")), /*#__PURE__*/React.createElement("div", {
|
|
3356
|
-
className: "field"
|
|
3357
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3358
|
-
className: "field-container"
|
|
3359
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3360
|
-
className: "employee-card-input",
|
|
3291
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PAYMENT_BANK_BRANCH_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
3361
3292
|
value: bankBranch,
|
|
3362
|
-
type: "text",
|
|
3363
|
-
className: "employee-card-input",
|
|
3364
3293
|
readOnly: true,
|
|
3365
3294
|
disabled: true
|
|
3366
|
-
}))))
|
|
3295
|
+
}))));
|
|
3367
3296
|
};
|
|
3368
3297
|
|
|
3369
3298
|
function listCacheClear() {
|
|
@@ -4905,7 +4834,6 @@ const BillDetails$1 = _ref => {
|
|
|
4905
4834
|
};
|
|
4906
4835
|
const config = BillDetailsKeyNoteConfig()[ModuleWorkflow ? ModuleWorkflow : businessService];
|
|
4907
4836
|
const getAdvanceAmountPaid = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "DSO_INPROGRESS";
|
|
4908
|
-
console.log(bill, "bill");
|
|
4909
4837
|
const renderArrearDetailsForWNS = () => {
|
|
4910
4838
|
var _yearWiseBills$filter, _yearWiseBills$filter2, _yearWiseBills$filter3, _yearWiseBills$filter4, _yearWiseBills$filter5;
|
|
4911
4839
|
return /*#__PURE__*/React.createElement("table", {
|
|
@@ -5515,10 +5443,17 @@ const CollectPayment = props => {
|
|
|
5515
5443
|
timerValues: state === null || state === void 0 ? void 0 : state.timerValue,
|
|
5516
5444
|
t: t,
|
|
5517
5445
|
SlotSearchData: state === null || state === void 0 ? void 0 : state.SlotSearchData
|
|
5518
|
-
}))), /*#__PURE__*/React.createElement(
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5446
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
5447
|
+
className: "employee-form-section-wrapper"
|
|
5448
|
+
}, /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
5449
|
+
config: [{
|
|
5450
|
+
timeLine: [{
|
|
5451
|
+
actions: t("PAYMENT_COLLECT_LABEL"),
|
|
5452
|
+
currentStep: 1
|
|
5453
|
+
}]
|
|
5454
|
+
}],
|
|
5455
|
+
showFinalStep: false
|
|
5456
|
+
}), /*#__PURE__*/React.createElement(FormComposer, {
|
|
5522
5457
|
label: t("PAYMENT_COLLECT_LABEL"),
|
|
5523
5458
|
config: getFormConfig(),
|
|
5524
5459
|
onSubmit: onSubmit,
|
|
@@ -5538,7 +5473,7 @@ const CollectPayment = props => {
|
|
|
5538
5473
|
style: {
|
|
5539
5474
|
maxWidth: "670px"
|
|
5540
5475
|
}
|
|
5541
|
-
}));
|
|
5476
|
+
})));
|
|
5542
5477
|
};
|
|
5543
5478
|
|
|
5544
5479
|
const convertEpochToDate$1 = dateEpoch => {
|
|
@@ -6953,24 +6888,38 @@ const EmployeePayment = _ref => {
|
|
|
6953
6888
|
let crumbs = [{
|
|
6954
6889
|
icon: HomeIcon,
|
|
6955
6890
|
path: "/digit-ui/employee"
|
|
6956
|
-
}, {
|
|
6957
|
-
label: t("ES_COMMON_HOME"),
|
|
6958
|
-
path: "/digit-ui/employee"
|
|
6959
6891
|
}];
|
|
6960
|
-
if (pathname.includes("/
|
|
6892
|
+
if (pathname.includes("/payment/collect")) {
|
|
6961
6893
|
crumbs.push({
|
|
6962
|
-
label: t("
|
|
6963
|
-
path: "
|
|
6894
|
+
label: t("PAYMENT_COLLECT_LABEL"),
|
|
6895
|
+
path: ""
|
|
6964
6896
|
});
|
|
6965
|
-
} else if (pathname.includes("/
|
|
6897
|
+
} else if (pathname.includes("/payment/success")) {
|
|
6966
6898
|
crumbs.push({
|
|
6967
|
-
label: t("
|
|
6968
|
-
path: "
|
|
6899
|
+
label: t("CS_PAYMENT_SUCCESSFUL"),
|
|
6900
|
+
path: ""
|
|
6969
6901
|
});
|
|
6902
|
+
} else if (pathname.includes("/payment/failure")) {
|
|
6903
|
+
crumbs.push({
|
|
6904
|
+
label: t("CS_PAYMENT_FAILED"),
|
|
6905
|
+
path: ""
|
|
6906
|
+
});
|
|
6907
|
+
} else {
|
|
6908
|
+
if (pathname.includes("/fsm/home")) {
|
|
6909
|
+
crumbs.push({
|
|
6910
|
+
label: t("ES_TITLE_FSM"),
|
|
6911
|
+
path: "/digit-ui/employee/fsm/home"
|
|
6912
|
+
});
|
|
6913
|
+
} else if (pathname.includes("/fsm/inbox")) {
|
|
6914
|
+
crumbs.push({
|
|
6915
|
+
label: t("ES_TITLE_INBOX"),
|
|
6916
|
+
path: "/digit-ui/employee/fsm/inbox"
|
|
6917
|
+
});
|
|
6918
|
+
}
|
|
6970
6919
|
}
|
|
6971
6920
|
return crumbs;
|
|
6972
6921
|
};
|
|
6973
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
6922
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
6974
6923
|
className: "ground-container employee-app-container form-container"
|
|
6975
6924
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
6976
6925
|
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
@@ -6982,17 +6931,19 @@ const EmployeePayment = _ref => {
|
|
|
6982
6931
|
className: "employee-form"
|
|
6983
6932
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6984
6933
|
className: "employee-form-content"
|
|
6985
|
-
}, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
6934
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
6986
6935
|
path: currentPath + "/collect/:businessService/:consumerCode"
|
|
6936
|
+
}, /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
6937
|
+
layoutClass: "action"
|
|
6987
6938
|
}, /*#__PURE__*/React.createElement(CollectPayment, _extends({}, commonProps, {
|
|
6988
6939
|
basePath: currentPath
|
|
6989
|
-
}))), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
6940
|
+
})))), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
6990
6941
|
path: currentPath + "/success/:businessService/:receiptNumber/:consumerCode"
|
|
6991
6942
|
}, /*#__PURE__*/React.createElement(SuccessfulPayment$1, commonProps)), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
6992
6943
|
path: currentPath + "/integration/:moduleName/:pageName"
|
|
6993
6944
|
}, /*#__PURE__*/React.createElement(IFrameInterface, commonProps)), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
6994
6945
|
path: currentPath + "/failure"
|
|
6995
|
-
}, /*#__PURE__*/React.createElement(FailedPayment$1, commonProps)))))))
|
|
6946
|
+
}, /*#__PURE__*/React.createElement(FailedPayment$1, commonProps)))))));
|
|
6996
6947
|
};
|
|
6997
6948
|
|
|
6998
6949
|
const PaymentModule = _ref => {
|