finance-shared 0.0.14 → 0.0.16
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/finance-shared-library.es.js +279 -2653
- package/dist/finance-shared-library.es.js.map +1 -1
- package/dist/finance-shared-library.umd.js +25 -25
- package/dist/finance-shared-library.umd.js.map +1 -1
- package/dist/finance-shared.css +1 -1
- package/dist/index.d.ts +15 -3
- package/package.json +1 -1
package/dist/finance-shared.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.\!pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.\!visible,.visible{visibility:visible!important}.invisible{visibility:hidden!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.bottom-0{bottom:0!important}.right-0{right:0!important}.top-1{top:.25rem!important}.m-0{margin:0!important}.m-10{margin:2.5rem!important}.mx-20{margin-left:5rem!important;margin-right:5rem!important}.mx-8{margin-left:2rem!important;margin-right:2rem!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.mb-10{margin-bottom:2.5rem!important}.mb-5{margin-bottom:1.25rem!important}.mb-8{margin-bottom:2rem!important}.ml-10{margin-left:2.5rem!important}.ml-2{margin-left:.5rem!important}.ml-32{margin-left:8rem!important}.ml-40{margin-left:10rem!important}.ml-auto{margin-left:auto!important}.mr-4{margin-right:1rem!important}.mr-8{margin-right:2rem!important}.mt-10{margin-top:2.5rem!important}.mt-20{margin-top:5rem!important}.mt-4{margin-top:1rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.table-cell{display:table-cell!important}.table-footer-group{display:table-footer-group!important}.table-header-group{display:table-header-group!important}.table-row-group{display:table-row-group!important}.table-row{display:table-row!important}.grid{display:grid!important}.contents{display:contents!important}.\!hidden,.hidden{display:none!important}.size-\[100px\]{width:100px!important;height:100px!important}.size-full{width:100%!important;height:100%!important}.h-auto{height:auto!important}.h-full{height:100%!important}.max-h-\[100px\]{max-height:100px!important}.min-h-\[100px\]{min-height:100px!important}.w-full{width:100%!important}.min-w-\[100px\]{min-width:100px!important}.min-w-\[230px\]{min-width:230px!important}.max-w-\[100px\]{max-width:100px!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.grow{flex-grow:1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-10{gap:2.5rem!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.\!pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.\!visible,.visible{visibility:visible!important}.invisible{visibility:hidden!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.bottom-0{bottom:0!important}.right-0{right:0!important}.top-1{top:.25rem!important}.m-0{margin:0!important}.m-10{margin:2.5rem!important}.mx-20{margin-left:5rem!important;margin-right:5rem!important}.mx-8{margin-left:2rem!important;margin-right:2rem!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.mb-10{margin-bottom:2.5rem!important}.mb-12{margin-bottom:3rem!important}.mb-5{margin-bottom:1.25rem!important}.mb-8{margin-bottom:2rem!important}.ml-10{margin-left:2.5rem!important}.ml-2{margin-left:.5rem!important}.ml-32{margin-left:8rem!important}.ml-40{margin-left:10rem!important}.ml-auto{margin-left:auto!important}.mr-4{margin-right:1rem!important}.mr-8{margin-right:2rem!important}.mt-10{margin-top:2.5rem!important}.mt-20{margin-top:5rem!important}.mt-4{margin-top:1rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.table-cell{display:table-cell!important}.table-footer-group{display:table-footer-group!important}.table-header-group{display:table-header-group!important}.table-row-group{display:table-row-group!important}.table-row{display:table-row!important}.grid{display:grid!important}.contents{display:contents!important}.\!hidden,.hidden{display:none!important}.size-\[100px\]{width:100px!important;height:100px!important}.size-full{width:100%!important;height:100%!important}.h-auto{height:auto!important}.h-full{height:100%!important}.max-h-\[100px\]{max-height:100px!important}.min-h-\[100px\]{min-height:100px!important}.w-full{width:100%!important}.min-w-\[100px\]{min-width:100px!important}.min-w-\[230px\]{min-width:230px!important}.max-w-\[100px\]{max-width:100px!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.grow{flex-grow:1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-10{gap:2.5rem!important}.gap-8{gap:2rem!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.object-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-16{padding:4rem!important}.p-20{padding:5rem!important}.p-3{padding:.75rem!important}.px-16{padding-left:4rem!important;padding-right:4rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-10{padding-top:2.5rem!important;padding-bottom:2.5rem!important}.py-12{padding-top:3rem!important;padding-bottom:3rem!important}.pb-16{padding-bottom:4rem!important}.pr-4{padding-right:1rem!important}.pt-12{padding-top:3rem!important}.pt-8{padding-top:2rem!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.lowercase{text-transform:lowercase!important}.capitalize{text-transform:capitalize!important}.italic{font-style:italic!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.blur{--tw-blur: blur(8px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.grayscale{--tw-grayscale: grayscale(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.invert{--tw-invert: invert(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.\!transition,.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.hover\:bg-transparent:hover{background-color:transparent!important}@media(min-width:640px){.sm\:m-20{margin:5rem!important}.sm\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Breakpoint } from '@mui/material';
|
|
|
4
4
|
import { CheckboxProps } from '@mui/material';
|
|
5
5
|
import { Context } from 'react';
|
|
6
6
|
import { default as default_2 } from 'react';
|
|
7
|
+
import { DialogProps } from '@mui/material';
|
|
7
8
|
import { default as i18n } from 'i18next';
|
|
8
9
|
import { JSX } from 'react/jsx-runtime';
|
|
9
10
|
import { Locale as Locale_2 } from 'date-fns';
|
|
@@ -190,6 +191,7 @@ export declare const dialogsSlice: Slice<DialogsState, {
|
|
|
190
191
|
}>) => void;
|
|
191
192
|
setRemarkList: (state: WritableDraft<DialogsState>, action: PayloadAction<RemarkType_2[]>) => void;
|
|
192
193
|
setDocumentSignJPDF: (state: WritableDraft<DialogsState>, action: PayloadAction<string>) => void;
|
|
194
|
+
setSignedDocumentJPDF: (state: WritableDraft<DialogsState>, action: PayloadAction<string>) => void;
|
|
193
195
|
setActiveFinanceDetail: (state: WritableDraft<DialogsState>, action: PayloadAction<any>) => void;
|
|
194
196
|
setImagePath: (state: WritableDraft<DialogsState>, action: PayloadAction<string>) => void;
|
|
195
197
|
setSelectedMediaFilePath: (state: WritableDraft<DialogsState>, action: PayloadAction<string>) => void;
|
|
@@ -213,6 +215,7 @@ declare interface DialogsState {
|
|
|
213
215
|
};
|
|
214
216
|
remarksList: RemarkType_2[];
|
|
215
217
|
documentSignJPDF: string;
|
|
218
|
+
signedDocumentJPDF: string;
|
|
216
219
|
activeFinanceDetail: any;
|
|
217
220
|
imagePath: string;
|
|
218
221
|
selectedMediaFilePath: string;
|
|
@@ -220,7 +223,7 @@ declare interface DialogsState {
|
|
|
220
223
|
|
|
221
224
|
export declare const DigitalProcessSignature: (request_data: any) => (dispatch: any) => Promise<void>;
|
|
222
225
|
|
|
223
|
-
export declare function DocumentSigningDialog({ financeDetail, loginUserDetail, digitalSignatureRole, ColoredSubmitButton, financeCalculation }: DocumentSigningDialogProps): JSX.Element;
|
|
226
|
+
export declare function DocumentSigningDialog({ financeDetail, loginUserDetail, digitalSignatureRole, ColoredSubmitButton, financeCalculation, showConfirmCheckbox, }: DocumentSigningDialogProps): JSX.Element;
|
|
224
227
|
|
|
225
228
|
declare interface DocumentSigningDialogProps {
|
|
226
229
|
financeDetail: any;
|
|
@@ -238,6 +241,8 @@ declare interface DocumentSigningDialogProps {
|
|
|
238
241
|
repaymentAmount?: number;
|
|
239
242
|
cashInHand?: number;
|
|
240
243
|
};
|
|
244
|
+
showConfirmCheckbox?: boolean;
|
|
245
|
+
dialogTitle?: string;
|
|
241
246
|
}
|
|
242
247
|
|
|
243
248
|
export declare interface FieldError {
|
|
@@ -467,7 +472,7 @@ export declare const PdfDialog: default_2.FC<MediaDialogProps>;
|
|
|
467
472
|
|
|
468
473
|
export declare const PDFPreviewForTheSignature: default_2.FC<PDFPreviewForTheSignatureProps>;
|
|
469
474
|
|
|
470
|
-
declare interface PDFPreviewForTheSignatureProps {
|
|
475
|
+
declare interface PDFPreviewForTheSignatureProps extends Omit<DialogProps, "onClose"> {
|
|
471
476
|
filePath: string;
|
|
472
477
|
open: boolean;
|
|
473
478
|
onClose: () => void;
|
|
@@ -482,14 +487,21 @@ declare interface PDFPreviewForTheSignatureProps {
|
|
|
482
487
|
User?: string;
|
|
483
488
|
};
|
|
484
489
|
ColoredSubmitButton: default_2.ComponentType<any>;
|
|
490
|
+
dialogTitle?: string;
|
|
485
491
|
financeCalculation?: {
|
|
486
492
|
loanAmount?: number;
|
|
487
|
-
|
|
493
|
+
totalInterestRate?: number;
|
|
488
494
|
feesDeduction?: number;
|
|
489
495
|
repaymentAmount?: number;
|
|
490
496
|
cashInHand?: number;
|
|
497
|
+
interestFees?: number;
|
|
498
|
+
durationMonths?: number;
|
|
499
|
+
stampDuty?: number;
|
|
500
|
+
legalFee?: number;
|
|
491
501
|
};
|
|
492
502
|
t?: (key: string) => string;
|
|
503
|
+
showConfirmCheckbox?: boolean;
|
|
504
|
+
pdfOnly?: boolean;
|
|
493
505
|
}
|
|
494
506
|
|
|
495
507
|
export declare const PreviewMedia: default_2.FC<PreviewMediaProps>;
|