@redneckz/wildless-cms-uni-blocks 0.14.637 → 0.14.639
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/bundle/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +215 -43
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/bundle/components/CreditForm/CreditForm.d.ts +2 -2
- package/bundle/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/bundle/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/bundle/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/bundle/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/bundle/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/formStateMap.d.ts +72 -0
- package/bundle/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/bundle/components/CreditForm/renderInfo.d.ts +3 -0
- package/bundle/components/CreditForm/renderStep.d.ts +11 -0
- package/{lib/components/CreditForm/useCreditFormApi.d.ts → bundle/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/bundle/hooks/useForm.d.ts +1 -1
- package/bundle/model/InputSectionsType.d.ts +5 -0
- package/dist/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/dist/api/RetailAPI/getTaskStatus.js +13 -0
- package/dist/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/dist/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/dist/api/RetailAPI/sendSignalToProcess.js +6 -0
- package/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/dist/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.d.ts +2 -2
- package/dist/components/CreditForm/CreditForm.js +17 -6
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/dist/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/dist/components/CreditForm/CreditFormProgress.js +3 -3
- package/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/dist/components/CreditForm/CreditFormStatus.js +25 -0
- package/dist/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/dist/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/dist/components/CreditForm/CreditFormStatusTracker.js +42 -0
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/dist/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/dist/components/CreditForm/CreditFormStep.js +19 -19
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/FailedStatusContent.js +7 -0
- package/dist/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/dist/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/PendingStatusContent.js +32 -0
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/dist/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/ReworkStatusContent.js +25 -0
- package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/dist/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/SuccessStatusContent.js +32 -0
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.js +3 -0
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.d.ts +72 -0
- package/dist/components/CreditForm/formStateMap.js +81 -0
- package/dist/components/CreditForm/formStateMap.js.map +1 -0
- package/dist/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/dist/components/CreditForm/getInitialFormState.js +14 -74
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/renderInfo.d.ts +3 -0
- package/dist/components/CreditForm/renderInfo.js +12 -0
- package/dist/components/CreditForm/renderInfo.js.map +1 -0
- package/dist/components/CreditForm/renderInputs.js +1 -3
- package/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/dist/components/CreditForm/renderStep.d.ts +11 -0
- package/dist/components/CreditForm/renderStep.js +11 -0
- package/dist/components/CreditForm/renderStep.js.map +1 -0
- package/{bundle/components/CreditForm/useCreditFormApi.d.ts → dist/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/dist/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +7 -4
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/dist/hooks/useForm.d.ts +1 -1
- package/dist/hooks/useForm.js +1 -0
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/model/InputSectionsType.d.ts +5 -0
- package/dist/model/InputSectionsType.js +2 -0
- package/dist/model/InputSectionsType.js.map +1 -0
- package/lib/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/lib/api/RetailAPI/getTaskStatus.js +10 -0
- package/lib/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/lib/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/lib/api/RetailAPI/sendSignalToProcess.js +3 -0
- package/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/lib/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.d.ts +2 -2
- package/lib/components/CreditForm/CreditForm.js +17 -6
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/lib/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/lib/components/CreditForm/CreditFormProgress.js +3 -3
- package/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/lib/components/CreditForm/CreditFormStatus.js +23 -0
- package/lib/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/lib/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/lib/components/CreditForm/CreditFormStatusTracker.js +40 -0
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/lib/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/lib/components/CreditForm/CreditFormStep.js +19 -19
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/FailedStatusContent.js +5 -0
- package/lib/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/lib/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/PendingStatusContent.js +30 -0
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/lib/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/ReworkStatusContent.js +23 -0
- package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/lib/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/SuccessStatusContent.js +30 -0
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.js +3 -0
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.d.ts +72 -0
- package/lib/components/CreditForm/formStateMap.js +79 -0
- package/lib/components/CreditForm/formStateMap.js.map +1 -0
- package/lib/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/lib/components/CreditForm/getInitialFormState.js +13 -73
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/renderInfo.d.ts +2 -0
- package/lib/components/CreditForm/renderInfo.js +9 -0
- package/lib/components/CreditForm/renderInfo.js.map +1 -0
- package/lib/components/CreditForm/renderInputs.js +1 -3
- package/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +10 -0
- package/lib/components/CreditForm/renderStep.js +8 -0
- package/lib/components/CreditForm/renderStep.js.map +1 -0
- package/{mobile/bundle/components/CreditForm/useCreditFormApi.d.ts → lib/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/lib/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +5 -2
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/lib/hooks/useForm.d.ts +1 -1
- package/lib/hooks/useForm.js +1 -0
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/model/InputSectionsType.d.ts +5 -0
- package/lib/model/InputSectionsType.js +2 -0
- package/lib/model/InputSectionsType.js.map +1 -0
- package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/mobile/bundle/bundle.umd.js +219 -39
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/mobile/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/mobile/bundle/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +72 -0
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/mobile/bundle/components/CreditForm/renderInfo.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +11 -0
- package/{dist/components/CreditForm/useCreditFormApi.d.ts → mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/mobile/bundle/hooks/useForm.d.ts +1 -1
- package/mobile/bundle/model/InputSectionsType.d.ts +5 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.js +13 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js +6 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +2 -2
- package/mobile/dist/components/CreditForm/CreditForm.js +17 -6
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/mobile/dist/components/CreditForm/CreditFormProgress.js +3 -3
- package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/mobile/dist/components/CreditForm/CreditFormStatus.js +25 -0
- package/mobile/dist/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +42 -0
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/mobile/dist/components/CreditForm/CreditFormStep.js +19 -19
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/FailedStatusContent.js +7 -0
- package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +32 -0
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js +25 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +32 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +3 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.d.ts +72 -0
- package/mobile/dist/components/CreditForm/formStateMap.js +81 -0
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -0
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/mobile/dist/components/CreditForm/getInitialFormState.js +14 -74
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInfo.d.ts +3 -0
- package/mobile/dist/components/CreditForm/renderInfo.js +12 -0
- package/mobile/dist/components/CreditForm/renderInfo.js.map +1 -0
- package/mobile/dist/components/CreditForm/renderInputs.js +1 -3
- package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +11 -0
- package/mobile/dist/components/CreditForm/renderStep.js +11 -0
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -0
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +13 -0
- package/mobile/dist/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +7 -4
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/mobile/dist/hooks/useForm.d.ts +1 -1
- package/mobile/dist/hooks/useForm.js +1 -0
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/model/InputSectionsType.d.ts +5 -0
- package/mobile/dist/model/InputSectionsType.js +2 -0
- package/mobile/dist/model/InputSectionsType.js.map +1 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.js +10 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js +3 -0
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +2 -2
- package/mobile/lib/components/CreditForm/CreditForm.js +17 -6
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/mobile/lib/components/CreditForm/CreditFormProgress.js +3 -3
- package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/mobile/lib/components/CreditForm/CreditFormStatus.js +23 -0
- package/mobile/lib/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +40 -0
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/mobile/lib/components/CreditForm/CreditFormStep.js +19 -19
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/FailedStatusContent.js +5 -0
- package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +30 -0
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js +23 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +30 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +3 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.d.ts +72 -0
- package/mobile/lib/components/CreditForm/formStateMap.js +79 -0
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -0
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/mobile/lib/components/CreditForm/getInitialFormState.js +13 -73
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInfo.d.ts +3 -0
- package/mobile/lib/components/CreditForm/renderInfo.js +9 -0
- package/mobile/lib/components/CreditForm/renderInfo.js.map +1 -0
- package/mobile/lib/components/CreditForm/renderInputs.js +1 -3
- package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +11 -0
- package/mobile/lib/components/CreditForm/renderStep.js +8 -0
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -0
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +13 -0
- package/mobile/lib/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +5 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/mobile/lib/hooks/useForm.d.ts +1 -1
- package/mobile/lib/hooks/useForm.js +1 -0
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/model/InputSectionsType.d.ts +5 -0
- package/mobile/lib/model/InputSectionsType.js +2 -0
- package/mobile/lib/model/InputSectionsType.js.map +1 -0
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +16 -0
- package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +19 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -3
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -3
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +3 -16
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +8 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +38 -11
- package/mobile/src/components/CreditForm/CreditFormContent.ts +6 -30
- package/mobile/src/components/CreditForm/CreditFormProgress.tsx +5 -5
- package/mobile/src/components/CreditForm/CreditFormStatus.tsx +119 -0
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +47 -0
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +39 -36
- package/mobile/src/components/CreditForm/FailedStatusContent.tsx +11 -0
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +38 -0
- package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +32 -0
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +37 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +3 -0
- package/mobile/src/components/CreditForm/formStateMap.tsx +151 -0
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +13 -143
- package/mobile/src/components/CreditForm/renderInfo.tsx +10 -0
- package/mobile/src/components/CreditForm/renderInputs.tsx +2 -3
- package/mobile/src/components/CreditForm/renderStep.tsx +25 -0
- package/mobile/src/components/CreditForm/{useCreditFormApi.tsx → useCreditFormAPI.tsx} +14 -3
- package/mobile/src/hooks/useForm.ts +3 -1
- package/mobile/src/model/InputSectionsType.ts +6 -0
- package/package.json +2 -2
- package/src/api/RetailAPI/getTaskStatus.ts +16 -0
- package/src/api/RetailAPI/sendSignalToProcess.ts +19 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -3
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +0 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +0 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -3
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +3 -16
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +8 -1
- package/src/components/CreditForm/CreditForm.tsx +38 -11
- package/src/components/CreditForm/CreditFormContent.ts +6 -30
- package/src/components/CreditForm/CreditFormProgress.tsx +5 -5
- package/src/components/CreditForm/CreditFormStatus.tsx +119 -0
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +47 -0
- package/src/components/CreditForm/CreditFormStep.tsx +39 -36
- package/src/components/CreditForm/FailedStatusContent.tsx +11 -0
- package/src/components/CreditForm/PendingStatusContent.tsx +38 -0
- package/src/components/CreditForm/ReworkStatusContent.tsx +32 -0
- package/src/components/CreditForm/SuccessStatusContent.tsx +37 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +3 -0
- package/src/components/CreditForm/formStateMap.tsx +151 -0
- package/src/components/CreditForm/getInitialFormState.tsx +13 -143
- package/src/components/CreditForm/renderInfo.tsx +10 -0
- package/src/components/CreditForm/renderInputs.tsx +2 -3
- package/src/components/CreditForm/renderStep.tsx +25 -0
- package/src/components/CreditForm/{useCreditFormApi.tsx → useCreditFormAPI.tsx} +14 -3
- package/src/hooks/useForm.ts +3 -1
- package/src/model/InputSectionsType.ts +6 -0
- package/bundle/api/FileStorage.d.ts +0 -18
- package/dist/api/FileStorage.d.ts +0 -18
- package/dist/api/FileStorage.js +0 -60
- package/dist/api/FileStorage.js.map +0 -1
- package/dist/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/lib/api/FileStorage.d.ts +0 -18
- package/lib/api/FileStorage.js +0 -58
- package/lib/api/FileStorage.js.map +0 -1
- package/lib/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/mobile/bundle/api/FileStorage.d.ts +0 -18
- package/mobile/dist/api/FileStorage.d.ts +0 -18
- package/mobile/dist/api/FileStorage.js +0 -60
- package/mobile/dist/api/FileStorage.js.map +0 -1
- package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +0 -12
- package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/mobile/lib/api/FileStorage.d.ts +0 -18
- package/mobile/lib/api/FileStorage.js +0 -58
- package/mobile/lib/api/FileStorage.js.map +0 -1
- package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +0 -12
- package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/mobile/src/api/FileStorage.ts +0 -99
- package/src/api/FileStorage.ts +0 -99
|
@@ -1,80 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
0: {
|
|
3
|
-
surname: '',
|
|
4
|
-
name: '',
|
|
5
|
-
middleName: '',
|
|
6
|
-
sex: '',
|
|
7
|
-
birthday: undefined,
|
|
8
|
-
birthPlace: '',
|
|
9
|
-
phone: '',
|
|
10
|
-
email: '',
|
|
11
|
-
dulSerie: undefined,
|
|
12
|
-
dulNumber: undefined,
|
|
13
|
-
dulIssueDateField: undefined,
|
|
14
|
-
dulSubdivisionCode: '',
|
|
15
|
-
dulIssuedBy: '',
|
|
16
|
-
addressRegistration: {
|
|
17
|
-
fullAddress: '',
|
|
18
|
-
fiasCode: '',
|
|
19
|
-
},
|
|
20
|
-
addressMatch: false,
|
|
21
|
-
participantDateRegistration: undefined,
|
|
22
|
-
addressFact: {
|
|
23
|
-
fullAddress: '',
|
|
24
|
-
fiasCode: '',
|
|
25
|
-
},
|
|
26
|
-
housing: '',
|
|
27
|
-
},
|
|
28
|
-
1: {
|
|
29
|
-
amountWorkers: { key: '', text: '' },
|
|
30
|
-
beginDate: undefined,
|
|
31
|
-
employerActivities: { key: '', text: '' },
|
|
32
|
-
employerOrganization: { key: '', text: '' },
|
|
33
|
-
employment: { key: '', text: '' },
|
|
34
|
-
experience5Years: '',
|
|
35
|
-
inn: undefined,
|
|
36
|
-
jobsNumber: '',
|
|
37
|
-
lastJobExperience: '',
|
|
38
|
-
legalForm: '',
|
|
39
|
-
organization: { key: '', text: '' },
|
|
40
|
-
organizationAddress: {
|
|
41
|
-
fullAddress: '',
|
|
42
|
-
fiasCode: '',
|
|
43
|
-
},
|
|
44
|
-
organizationName: '',
|
|
45
|
-
organizationPhone: '',
|
|
46
|
-
partInBusiness: undefined,
|
|
47
|
-
positionOrganization: { key: '', text: '' },
|
|
48
|
-
},
|
|
49
|
-
2: {
|
|
50
|
-
familyStatus: { key: '', text: '' },
|
|
51
|
-
dependents: undefined,
|
|
52
|
-
familyMembers: undefined,
|
|
53
|
-
mandatoryIncome: undefined,
|
|
54
|
-
otherPayments: undefined,
|
|
55
|
-
snils: '',
|
|
56
|
-
armyIdFlg: false,
|
|
57
|
-
},
|
|
58
|
-
3: {
|
|
59
|
-
disablePeopleFlg: false,
|
|
60
|
-
bankruptcyFlg: false,
|
|
61
|
-
shareholderFlg: false,
|
|
62
|
-
legalEntityName: '',
|
|
63
|
-
creditInRshbCd: undefined,
|
|
64
|
-
},
|
|
65
|
-
4: {
|
|
66
|
-
regionRetail: '',
|
|
67
|
-
addressRetail: '',
|
|
68
|
-
bankEmployeeCode: '',
|
|
69
|
-
},
|
|
70
|
-
};
|
|
1
|
+
import { formStateMap } from './formStateMap.js';
|
|
71
2
|
export const getInitialFormState = (step, localStorageData) => {
|
|
72
3
|
if (localStorageData) {
|
|
73
4
|
// TODO: Fill in for other fields with type Date
|
|
74
5
|
// TODO: Take it out to the helper
|
|
75
|
-
localStorageData.birthday = localStorageData.
|
|
76
|
-
|
|
77
|
-
|
|
6
|
+
localStorageData.birthday = localStorageData.birthday
|
|
7
|
+
? new Date(localStorageData.birthday)
|
|
8
|
+
: undefined;
|
|
9
|
+
localStorageData.dulIssueDateField = localStorageData.dulIssueDateField
|
|
10
|
+
? new Date(localStorageData.dulIssueDateField)
|
|
11
|
+
: undefined;
|
|
12
|
+
localStorageData.participantDateRegistration = localStorageData.participantDateRegistration
|
|
13
|
+
? new Date(localStorageData.participantDateRegistration)
|
|
14
|
+
: undefined;
|
|
15
|
+
localStorageData.beginDate = localStorageData?.beginDate
|
|
16
|
+
? new Date(localStorageData.beginDate)
|
|
17
|
+
: undefined;
|
|
78
18
|
}
|
|
79
19
|
return {
|
|
80
20
|
...formStateMap[step],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/CreditForm/getInitialFormState.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/CreditForm/getInitialFormState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AAEjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAAU,EACV,gBAA4C,EACxB,EAAE;IACtB,IAAI,gBAAgB,EAAE;QACpB,gDAAgD;QAChD,kCAAkC;QAClC,gBAAgB,CAAC,QAAQ,GAAG,gBAAgB,CAAC,QAAQ;YACnD,CAAC,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAkB,CAAC;YAC/C,CAAC,CAAC,SAAS,CAAC;QACd,gBAAgB,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,iBAAiB;YACrE,CAAC,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,iBAA2B,CAAC;YACxD,CAAC,CAAC,SAAS,CAAC;QACd,gBAAgB,CAAC,2BAA2B,GAAG,gBAAgB,CAAC,2BAA2B;YACzF,CAAC,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,2BAAqC,CAAC;YAClE,CAAC,CAAC,SAAS,CAAC;QACd,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,EAAE,SAAS;YACtD,CAAC,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,SAAmB,CAAC;YAChD,CAAC,CAAC,SAAS,CAAC;KACf;IAED,OAAO;QACL,GAAG,YAAY,CAAC,IAAI,CAAC;QACrB,GAAG,gBAAgB;KACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard.js';
|
|
3
|
+
export const renderInfo = (inputs = []) => {
|
|
4
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
5
|
+
return infoInputs.length
|
|
6
|
+
? infoInputs.map(({ text, name }, i) => _jsx(InfoCard, { __html: text }, `${name}_${i}`))
|
|
7
|
+
: null;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=renderInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderInfo.js","sourceRoot":"","sources":["../../../src/components/CreditForm/renderInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG1D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,SAAqB,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC;IAEhE,OAAO,UAAU,CAAC,MAAM;QACtB,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,KAAC,QAAQ,IAAsB,MAAM,EAAE,IAAI,IAA5B,GAAG,IAAI,IAAI,CAAC,EAAE,CAAkB,CAAC;QACxF,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { getField } from '../../ui-kit/FormField/getField.js';
|
|
2
|
-
export const renderInputs = ({ field, inputs }) =>
|
|
3
|
-
return (inputs || [])?.map(getField(field, ''));
|
|
4
|
-
};
|
|
2
|
+
export const renderInputs = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
|
|
5
3
|
//# sourceMappingURL=renderInputs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInputs.js","sourceRoot":"","sources":["../../../src/components/CreditForm/renderInputs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAqB,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"renderInputs.js","sourceRoot":"","sources":["../../../src/components/CreditForm/renderInputs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAqB,EAAE,EAAE,CACnE,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
|
|
2
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
3
|
+
import { type FormStateMap } from './formStateMap';
|
|
4
|
+
export declare type CustomSubmit = FormOperatorProps<FormStateMap[keyof FormStateMap]>['onSubmit'];
|
|
5
|
+
export interface StepProps {
|
|
6
|
+
sections?: SectionsProps[];
|
|
7
|
+
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
8
|
+
registerSubmit?: (submit: CustomSubmit) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const renderStep: ({ sections, field }: StepProps) => JSX.Element[] | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle.js';
|
|
3
|
+
import { renderTitle } from '../../ui-kit/FormField/renderTitle.js';
|
|
4
|
+
import { style } from '../../utils/style.js';
|
|
5
|
+
import { renderInfo } from './renderInfo.js';
|
|
6
|
+
import { renderInputs } from './renderInputs.js';
|
|
7
|
+
export const renderStep = ({ sections, field }) => sections?.map(({ inputs, columns, title }, i) => (_jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderInfo(inputs), renderTitle(title), renderInputs({ field, inputs })] }, `section-${i}`)));
|
|
8
|
+
//# sourceMappingURL=renderStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderStep.js","sourceRoot":"","sources":["../../../src/components/CreditForm/renderStep.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAU9C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAa,EAAE,EAAE,CAC3D,QAAQ,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/C,eAA0B,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACnF,UAAU,CAAC,MAAM,CAAC,EAClB,WAAW,CAAC,KAAK,CAAC,EAClB,YAAY,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,KAHxB,WAAW,CAAC,EAAE,CAIlB,CACP,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
2
|
-
import { type FormStateMap } from './
|
|
2
|
+
import { type FormStateMap } from './formStateMap';
|
|
3
3
|
declare type CreditFormApiProps = {
|
|
4
|
-
inputs: FieldDef[];
|
|
5
4
|
step: number;
|
|
5
|
+
inputs: FieldDef[];
|
|
6
6
|
onNextStep: () => void;
|
|
7
7
|
saveStep: (value: Record<string, any>) => void;
|
|
8
|
+
finishForm?: (bool: boolean) => void;
|
|
8
9
|
};
|
|
9
|
-
export declare const
|
|
10
|
+
export declare const useCreditFormAPI: ({ step, inputs, onNextStep, saveStep, finishForm, }: CreditFormApiProps) => {
|
|
10
11
|
handleSubmit: (formData: FormStateMap[keyof FormStateMap]) => Promise<void | "OK" | "Fail">;
|
|
11
12
|
};
|
|
12
13
|
export {};
|
|
@@ -5,7 +5,7 @@ import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator.js
|
|
|
5
5
|
import { objectValidator } from '../../validation/objectValidator.js';
|
|
6
6
|
import { isValidationSuccess } from '../../validation/validator.js';
|
|
7
7
|
import { getCreditFormTaskData } from './getCreditFormTaskData.js';
|
|
8
|
-
export const
|
|
8
|
+
export const useCreditFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
|
|
9
9
|
const [taskId] = useLocalStorage('taskId');
|
|
10
10
|
const [profileId] = useLocalStorage('profileId');
|
|
11
11
|
const [participantId] = useLocalStorage('participantId');
|
|
@@ -30,10 +30,13 @@ export const useCreditFormApi = ({ inputs, step, onNextStep, saveStep }) => {
|
|
|
30
30
|
return 'Fail';
|
|
31
31
|
}
|
|
32
32
|
onNextStep();
|
|
33
|
+
if (step === 5) {
|
|
34
|
+
finishForm?.(true);
|
|
35
|
+
}
|
|
33
36
|
return 'OK';
|
|
34
37
|
}, []);
|
|
35
38
|
return {
|
|
36
39
|
handleSubmit,
|
|
37
40
|
};
|
|
38
41
|
};
|
|
39
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=useCreditFormAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreditFormAPI.js","sourceRoot":"","sources":["../../../src/components/CreditForm/useCreditFormAPI.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAUhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,GACS,EAAE,EAAE;IACvB,MAAM,CAAC,MAAM,CAAC,GAAG,eAAe,CAAS,QAAQ,CAAC,CAAC;IACnD,MAAM,CAAC,SAAS,CAAC,GAAG,eAAe,CAAS,WAAW,CAAC,CAAC;IACzD,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAS,eAAe,CAAC,CAAC;IAEjE,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,EAAE,QAA0C,EAAE,EAAE;QACpF,MAAM,iBAAiB,GAAG,eAAe,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;QACtE,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,EAAE;YACrD,OAAO,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;SACxC;QAED,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEnB,IAAI;YACF,IAAI,MAAM,IAAI,SAAS,IAAI,aAAa,EAAE;gBACxC,MAAM,cAAc,CAClB,qBAAqB,CAAC;oBACpB,aAAa;oBACb,MAAM;oBACN,SAAS;oBACT,IAAI;oBACJ,QAAQ,EAAE,QAAe;iBAC1B,CAAC,CACH,CAAC;aACH;SACF;QAAC,OAAO,EAAE,EAAE;YACX,OAAO,MAAM,CAAC;SACf;QAED,UAAU,EAAE,CAAC;QAEb,IAAI,IAAI,KAAK,CAAC,EAAE;YACd,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC;SACpB;QAED,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,YAAY;KACb,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/hooks/useForm.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface FormOperatorProps<FormState extends Record<string, any>> {
|
|
|
13
13
|
field: FormFieldRegisterer<FormState>;
|
|
14
14
|
update: (_: FormState) => void;
|
|
15
15
|
reset: () => void;
|
|
16
|
-
onSubmit?: (ev: PreventableEvent) =>
|
|
16
|
+
onSubmit?: (ev: PreventableEvent) => FormState;
|
|
17
17
|
}
|
|
18
18
|
export declare const useForm: <FormState extends Record<string, any>>(initialState: FormState, { resetOnSubmit, onSubmit, normalize, }?: {
|
|
19
19
|
resetOnSubmit?: boolean | undefined;
|
package/lib/hooks/useForm.js
CHANGED
|
@@ -42,6 +42,7 @@ export const useForm = (initialState, { resetOnSubmit, onSubmit, normalize, } =
|
|
|
42
42
|
ev.preventDefault();
|
|
43
43
|
resetOnSubmit ? reset() : setDirtyForm(true);
|
|
44
44
|
onSubmit && onSubmit(formState, ev);
|
|
45
|
+
return formState;
|
|
45
46
|
}, [onSubmit, formState]);
|
|
46
47
|
return [
|
|
47
48
|
formState,
|
package/lib/hooks/useForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/hooks/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAwBhD,kDAAkD;AAClD,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,YAAuB,EACvB,EACE,aAAa,EACb,QAAQ,EACR,SAAS,MAKP,EAAE,EACqC,EAAE;IAC7C,MAAM,CAAC,SAAS,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAY,YAAY,CAAC,CAAC;IAC1E,MAAM,YAAY,GAAG,WAAW,CAC9B,SAAS;QACP,CAAC,CAAC,CAAC,CAA+C,EAAE,EAAE,CAClD,kBAAkB,CAChB,CAAC,YAAY,QAAQ;YACnB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE;gBACP,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAEtC,OAAO,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;YAC9D,CAAC;YACH,CAAC,CAAC,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
+
{"version":3,"file":"InputSectionsType.js","sourceRoot":"","sources":["../../src/model/InputSectionsType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum STATUS_TYPE {
|
|
2
|
+
process = "IN_PROCESS",
|
|
3
|
+
ok = "OK",
|
|
4
|
+
fail = "FAILED",
|
|
5
|
+
rework = "REWORK"
|
|
6
|
+
}
|
|
7
|
+
interface GetTaskStatusResponse {
|
|
8
|
+
statusCd: STATUS_TYPE;
|
|
9
|
+
taskId: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const getTaskStatus: (body: {
|
|
12
|
+
taskId: number;
|
|
13
|
+
}) => Promise<GetTaskStatusResponse>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type SignalType = 'CREATE_APPLICATION_SHORT_SIGNAL' | 'CREATE_APPLICATION_LOAN_V3_SIGNAL' | 'KILL_DRAFT_PROCESS_SIGNAL';
|
|
2
|
+
interface SendSignalToProcess {
|
|
3
|
+
signalType: SignalType;
|
|
4
|
+
taskId: number;
|
|
5
|
+
}
|
|
6
|
+
interface SendSignalToProcessResponse {
|
|
7
|
+
statusCd: string;
|
|
8
|
+
taskId: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const sendSignalToProcess: (body: SendSignalToProcess) => Promise<SendSignalToProcessResponse>;
|
|
11
|
+
export {};
|