@redneckz/wildless-cms-uni-blocks 0.14.651 → 0.14.652
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 +1 -1
- package/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +928 -119
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
- package/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
- package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
- package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
- package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
- package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
- package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
- package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
- package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
- package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
- package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
- package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
- package/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
- package/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
- package/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
- package/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
- package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
- package/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
- package/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
- package/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
- package/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
- package/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
- package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
- package/bundle/model/InputSectionsType.d.ts +9 -1
- package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
- package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/api/dadataHints/hintsListsOptions.js +1 -0
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
- package/dist/components/CreditCardForm/CreditCardForm.js +34 -0
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
- package/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
- package/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
- package/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
- package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
- package/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
- package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
- package/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
- package/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
- package/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
- package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
- package/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
- package/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
- package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
- package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
- package/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
- package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
- package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
- package/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
- package/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
- package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
- package/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
- package/dist/components/CreditCardForm/formStateMap.js +93 -0
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -0
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
- package/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
- package/dist/components/CreditCardForm/getFifthStepData.js +13 -0
- package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
- package/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
- package/dist/components/CreditCardForm/getFirstStepData.js +13 -0
- package/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
- package/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
- package/dist/components/CreditCardForm/getFourthStepData.js +19 -0
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
- package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
- package/dist/components/CreditCardForm/getInitialFormState.js +27 -0
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
- package/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
- package/dist/components/CreditCardForm/getSecondStepData.js +35 -0
- package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
- package/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
- package/dist/components/CreditCardForm/getThirdStepData.js +28 -0
- package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
- package/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
- package/dist/components/CreditCardForm/renderInfo.js +12 -0
- package/dist/components/CreditCardForm/renderInfo.js.map +1 -0
- package/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
- package/dist/components/CreditCardForm/renderInputs.js +6 -0
- package/dist/components/CreditCardForm/renderInputs.js.map +1 -0
- package/dist/components/CreditCardForm/renderStep.d.ts +13 -0
- package/dist/components/CreditCardForm/renderStep.js +19 -0
- package/dist/components/CreditCardForm/renderStep.js.map +1 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -2
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
- package/dist/components/CreditForm/FailedStatusContent.js +1 -1
- package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/model/InputSectionsType.d.ts +9 -1
- package/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
- package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
- package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
- package/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
- package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +5 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +6 -1
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
- package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/api/dadataHints/hintsListsOptions.js +1 -0
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
- package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +6 -0
- package/lib/components/CreditCardForm/CreditCardForm.js +32 -0
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
- package/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
- package/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
- package/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
- package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
- package/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
- package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
- package/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
- package/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
- package/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
- package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
- package/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
- package/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
- package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
- package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
- package/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
- package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
- package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
- package/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
- package/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
- package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
- package/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
- package/lib/components/CreditCardForm/formStateMap.js +91 -0
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -0
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
- package/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
- package/lib/components/CreditCardForm/getFifthStepData.js +10 -0
- package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
- package/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
- package/lib/components/CreditCardForm/getFirstStepData.js +10 -0
- package/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
- package/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
- package/lib/components/CreditCardForm/getFourthStepData.js +16 -0
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
- package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
- package/lib/components/CreditCardForm/getInitialFormState.js +24 -0
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
- package/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
- package/lib/components/CreditCardForm/getSecondStepData.js +32 -0
- package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
- package/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
- package/lib/components/CreditCardForm/getThirdStepData.js +25 -0
- package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
- package/lib/components/CreditCardForm/renderInfo.d.ts +2 -0
- package/lib/components/CreditCardForm/renderInfo.js +9 -0
- package/lib/components/CreditCardForm/renderInfo.js.map +1 -0
- package/lib/components/CreditCardForm/renderInputs.d.ts +2 -0
- package/lib/components/CreditCardForm/renderInputs.js +3 -0
- package/lib/components/CreditCardForm/renderInputs.js.map +1 -0
- package/lib/components/CreditCardForm/renderStep.d.ts +12 -0
- package/lib/components/CreditCardForm/renderStep.js +16 -0
- package/lib/components/CreditCardForm/renderStep.js.map +1 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -2
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
- package/lib/components/CreditForm/FailedStatusContent.js +1 -1
- package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/model/InputSectionsType.d.ts +9 -1
- package/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
- package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
- package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
- package/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
- package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +5 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +6 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/mobile/bundle/bundle.umd.js +924 -115
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
- package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
- package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
- package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
- package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
- package/mobile/bundle/model/InputSectionsType.d.ts +9 -1
- package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +34 -0
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
- package/mobile/dist/components/CreditCardForm/formStateMap.js +93 -0
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/getFifthStepData.js +13 -0
- package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/getFirstStepData.js +13 -0
- package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js +19 -0
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js +27 -0
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/getSecondStepData.js +35 -0
- package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js +28 -0
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/renderInfo.js +12 -0
- package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/renderInputs.js +6 -0
- package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +13 -0
- package/mobile/dist/components/CreditCardForm/renderStep.js +19 -0
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -2
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.js +1 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/model/InputSectionsType.d.ts +9 -1
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
- package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
- package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +5 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +32 -0
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
- package/mobile/lib/components/CreditCardForm/formStateMap.js +91 -0
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/getFifthStepData.js +10 -0
- package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/getFirstStepData.js +10 -0
- package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js +16 -0
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js +24 -0
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/getSecondStepData.js +32 -0
- package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js +25 -0
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/renderInfo.js +9 -0
- package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/renderInputs.js +3 -0
- package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +13 -0
- package/mobile/lib/components/CreditCardForm/renderStep.js +16 -0
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -2
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.js +1 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/model/InputSectionsType.d.ts +9 -1
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
- package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
- package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +5 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +6 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +1 -1
- package/mobile/src/api/RetailAPI/updateUserTask.ts +4 -0
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
- package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
- package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
- package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
- package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +165 -0
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
- package/mobile/src/components/CreditCardForm/getFifthStepData.ts +13 -0
- package/mobile/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +27 -0
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
- package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
- package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
- package/mobile/src/components/CreditCardForm/renderInfo.tsx +10 -0
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +5 -0
- package/mobile/src/components/CreditCardForm/renderStep.tsx +43 -0
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
- package/mobile/src/components/CreditForm/CreditForm.tsx +2 -4
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -2
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -1
- package/mobile/src/components/CreditForm/FailedStatusContent.tsx +1 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +1 -1
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
- package/mobile/src/model/InputSectionsType.ts +13 -1
- package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
- package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +3 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +6 -0
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
- package/package.json +2 -2
- package/src/api/RetailAPI/getTaskStatus.ts +1 -1
- package/src/api/RetailAPI/updateUserTask.ts +4 -0
- package/src/api/dadataHints/hintsListsOptions.ts +1 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +14 -0
- package/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
- package/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
- package/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
- package/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
- package/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
- package/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
- package/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
- package/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
- package/src/components/CreditCardForm/formStateMap.tsx +165 -0
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
- package/src/components/CreditCardForm/getFifthStepData.ts +13 -0
- package/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
- package/src/components/CreditCardForm/getFourthStepData.ts +27 -0
- package/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
- package/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
- package/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
- package/src/components/CreditCardForm/renderInfo.tsx +10 -0
- package/src/components/CreditCardForm/renderInputs.tsx +5 -0
- package/src/components/CreditCardForm/renderStep.tsx +43 -0
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
- package/src/components/CreditForm/CreditForm.tsx +2 -4
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -2
- package/src/components/CreditForm/CreditFormStep.tsx +1 -1
- package/src/components/CreditForm/FailedStatusContent.tsx +1 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +1 -1
- package/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
- package/src/model/InputSectionsType.ts +13 -1
- package/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
- package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
- package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
- package/src/ui-kit/FormField/NameFieldDef.ts +3 -0
- package/src/ui-kit/FormField/getField.tsx +6 -0
- package/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
2
|
+
import { PAYMENT_SYSTEM_TYPES } from '../../ui-kit/FormField/Fields/PaymentSystemField';
|
|
3
|
+
import type { Option } from '../../ui-kit/Select/Option';
|
|
4
|
+
import { type Address } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
|
|
6
|
+
export interface FormStateMap {
|
|
7
|
+
0: {
|
|
8
|
+
currency?: string;
|
|
9
|
+
paymentSystem?: string;
|
|
10
|
+
cardCategory?: Option;
|
|
11
|
+
codeWord?: string;
|
|
12
|
+
};
|
|
13
|
+
1: {
|
|
14
|
+
surname?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
middleName?: string;
|
|
17
|
+
sex?: string;
|
|
18
|
+
birthday?: Date;
|
|
19
|
+
birthPlace?: string;
|
|
20
|
+
phone?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
dulSerie?: number;
|
|
23
|
+
dulNumber?: number;
|
|
24
|
+
dulIssueDateField?: Date;
|
|
25
|
+
dulSubdivisionCode?: string;
|
|
26
|
+
dulIssuedBy?: string;
|
|
27
|
+
addressRegistration?: Address;
|
|
28
|
+
participantDateRegistration?: Date;
|
|
29
|
+
addressFact?: Address;
|
|
30
|
+
housing?: string;
|
|
31
|
+
methodObtain?: string;
|
|
32
|
+
addressCourier?: Address;
|
|
33
|
+
};
|
|
34
|
+
2: {
|
|
35
|
+
amountWorkers?: Option;
|
|
36
|
+
beginDate?: Date;
|
|
37
|
+
employerActivities?: Option;
|
|
38
|
+
employerOrganization?: Option;
|
|
39
|
+
employment?: Option;
|
|
40
|
+
experience5Years?: string;
|
|
41
|
+
inn?: number;
|
|
42
|
+
jobsNumber?: string;
|
|
43
|
+
lastJobExperience?: string;
|
|
44
|
+
legalForm?: string;
|
|
45
|
+
organization?: Option;
|
|
46
|
+
organizationAddress?: Address;
|
|
47
|
+
organizationName?: string;
|
|
48
|
+
organizationPhone?: string;
|
|
49
|
+
partInBusiness?: number;
|
|
50
|
+
positionOrganization?: Option;
|
|
51
|
+
};
|
|
52
|
+
3: {
|
|
53
|
+
familyStatus?: Option;
|
|
54
|
+
dependents?: number;
|
|
55
|
+
familyMembers?: number;
|
|
56
|
+
mandatoryIncome?: number;
|
|
57
|
+
otherPayments?: number;
|
|
58
|
+
snils?: string;
|
|
59
|
+
armyIdFlg?: boolean;
|
|
60
|
+
};
|
|
61
|
+
4: {
|
|
62
|
+
disablePeopleFlg?: boolean;
|
|
63
|
+
bankruptcyFlg?: boolean;
|
|
64
|
+
shareholderFlg?: boolean;
|
|
65
|
+
legalEntityName?: string;
|
|
66
|
+
creditInRshbCd?: Option;
|
|
67
|
+
};
|
|
68
|
+
5: {
|
|
69
|
+
regionRetail?: string;
|
|
70
|
+
addressRetail?: Address;
|
|
71
|
+
bankEmployeeCode?: string;
|
|
72
|
+
addressCoutier?: Address;
|
|
73
|
+
methodObtain?: 'office' | 'courier';
|
|
74
|
+
deliveryDate?: Date;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const formStateMap: FormStateMap = {
|
|
79
|
+
0: {
|
|
80
|
+
paymentSystem: PAYMENT_SYSTEM_TYPES[0].id,
|
|
81
|
+
currency: 'rub',
|
|
82
|
+
codeWord: '',
|
|
83
|
+
},
|
|
84
|
+
1: {
|
|
85
|
+
surname: '',
|
|
86
|
+
name: '',
|
|
87
|
+
middleName: '',
|
|
88
|
+
sex: '',
|
|
89
|
+
birthday: undefined,
|
|
90
|
+
birthPlace: '',
|
|
91
|
+
phone: '',
|
|
92
|
+
email: '',
|
|
93
|
+
dulSerie: undefined,
|
|
94
|
+
dulNumber: undefined,
|
|
95
|
+
dulIssueDateField: undefined,
|
|
96
|
+
dulSubdivisionCode: '',
|
|
97
|
+
dulIssuedBy: '',
|
|
98
|
+
addressRegistration: {
|
|
99
|
+
fullAddress: '',
|
|
100
|
+
fiasCode: '',
|
|
101
|
+
},
|
|
102
|
+
participantDateRegistration: undefined,
|
|
103
|
+
addressFact: {
|
|
104
|
+
fullAddress: '',
|
|
105
|
+
fiasCode: '',
|
|
106
|
+
},
|
|
107
|
+
housing: '',
|
|
108
|
+
methodObtain: 'office',
|
|
109
|
+
addressCourier: {
|
|
110
|
+
fullAddress: '',
|
|
111
|
+
fiasCode: '',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
2: {
|
|
115
|
+
amountWorkers: { key: '', text: '' },
|
|
116
|
+
beginDate: undefined,
|
|
117
|
+
employerActivities: { key: '', text: '' },
|
|
118
|
+
employerOrganization: { key: '', text: '' },
|
|
119
|
+
employment: { key: '', text: '' },
|
|
120
|
+
experience5Years: '',
|
|
121
|
+
inn: undefined,
|
|
122
|
+
jobsNumber: '',
|
|
123
|
+
lastJobExperience: '',
|
|
124
|
+
legalForm: '',
|
|
125
|
+
organization: { key: '', text: '' },
|
|
126
|
+
organizationAddress: {
|
|
127
|
+
fullAddress: '',
|
|
128
|
+
fiasCode: '',
|
|
129
|
+
},
|
|
130
|
+
organizationName: '',
|
|
131
|
+
organizationPhone: '',
|
|
132
|
+
partInBusiness: undefined,
|
|
133
|
+
positionOrganization: { key: '', text: '' },
|
|
134
|
+
},
|
|
135
|
+
3: {
|
|
136
|
+
familyStatus: { key: '', text: '' },
|
|
137
|
+
dependents: undefined,
|
|
138
|
+
familyMembers: undefined,
|
|
139
|
+
mandatoryIncome: undefined,
|
|
140
|
+
otherPayments: undefined,
|
|
141
|
+
snils: '',
|
|
142
|
+
armyIdFlg: false,
|
|
143
|
+
},
|
|
144
|
+
4: {
|
|
145
|
+
disablePeopleFlg: false,
|
|
146
|
+
bankruptcyFlg: false,
|
|
147
|
+
shareholderFlg: false,
|
|
148
|
+
legalEntityName: '',
|
|
149
|
+
creditInRshbCd: undefined,
|
|
150
|
+
},
|
|
151
|
+
5: {
|
|
152
|
+
regionRetail: '',
|
|
153
|
+
addressRetail: {
|
|
154
|
+
fullAddress: '',
|
|
155
|
+
fiasCode: '',
|
|
156
|
+
},
|
|
157
|
+
bankEmployeeCode: '',
|
|
158
|
+
addressCoutier: {
|
|
159
|
+
fullAddress: '',
|
|
160
|
+
fiasCode: '',
|
|
161
|
+
},
|
|
162
|
+
methodObtain: 'office',
|
|
163
|
+
deliveryDate: undefined,
|
|
164
|
+
},
|
|
165
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
import { getFifthStepData } from './getFifthStepData';
|
|
4
|
+
import { getFirstStepData } from './getFirstStepData';
|
|
5
|
+
import { getFourthStepData } from './getFourthStepData';
|
|
6
|
+
import { getSecondStepData } from './getSecondStepData';
|
|
7
|
+
import { getThirdStepData } from './getThirdStepData';
|
|
8
|
+
|
|
9
|
+
type getCreditCardFormTaskDataProps = {
|
|
10
|
+
participantId: number;
|
|
11
|
+
taskId: number;
|
|
12
|
+
profileId: number;
|
|
13
|
+
formData: FormState;
|
|
14
|
+
step?: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const getCreditCardFormTaskData = ({
|
|
18
|
+
participantId,
|
|
19
|
+
taskId,
|
|
20
|
+
profileId,
|
|
21
|
+
formData,
|
|
22
|
+
step = 0,
|
|
23
|
+
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
|
|
24
|
+
return {
|
|
25
|
+
sendToBank: true,
|
|
26
|
+
taskKind: 'UNITED',
|
|
27
|
+
task: {
|
|
28
|
+
taskSource: globalThis.location.origin,
|
|
29
|
+
id: taskId,
|
|
30
|
+
//TODO: Добавить id офиса
|
|
31
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
32
|
+
participants: [
|
|
33
|
+
{
|
|
34
|
+
id: participantId,
|
|
35
|
+
profile: {
|
|
36
|
+
id: profileId,
|
|
37
|
+
},
|
|
38
|
+
roleCd: {
|
|
39
|
+
key: 'BORROWER',
|
|
40
|
+
value: 'Заемщик',
|
|
41
|
+
},
|
|
42
|
+
...getCurrentStepData(step, formData),
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const getCurrentStepData = (step: number, formData: FormState): Partial<Participant> => {
|
|
50
|
+
switch (step) {
|
|
51
|
+
case 0:
|
|
52
|
+
return getFirstStepData(formData);
|
|
53
|
+
case 1:
|
|
54
|
+
return getSecondStepData(formData);
|
|
55
|
+
case 2:
|
|
56
|
+
return getThirdStepData(formData);
|
|
57
|
+
case 3:
|
|
58
|
+
return getFourthStepData(formData);
|
|
59
|
+
case 4:
|
|
60
|
+
return getFifthStepData(formData);
|
|
61
|
+
case 5:
|
|
62
|
+
return {
|
|
63
|
+
//TODO: Сделать адаптер данных способа получения карты
|
|
64
|
+
};
|
|
65
|
+
default:
|
|
66
|
+
return {};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
|
|
4
|
+
export const getFifthStepData = (formData: FormState): Partial<Participant> => {
|
|
5
|
+
const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
bankruptcyFlg,
|
|
9
|
+
shareholderFlg,
|
|
10
|
+
nameLegalEntity: legalEntityName,
|
|
11
|
+
creditInRshbCd,
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
|
|
4
|
+
export const getFirstStepData = (formData: FormState): Partial<Participant> => {
|
|
5
|
+
const { currency, paymentSystem, cardCategory, codeWord } = formData;
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
currencyCode: currency,
|
|
9
|
+
paymentSystemTypeCd: paymentSystem,
|
|
10
|
+
classCard: cardCategory,
|
|
11
|
+
codeWord: codeWord,
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
import { getParticipantIncomes } from '../CreditForm/utils';
|
|
4
|
+
|
|
5
|
+
export const getFourthStepData = (formData: FormState): Partial<Participant> => {
|
|
6
|
+
const {
|
|
7
|
+
familyStatus,
|
|
8
|
+
dependents,
|
|
9
|
+
familyMembers,
|
|
10
|
+
mandatoryIncome,
|
|
11
|
+
otherPayments,
|
|
12
|
+
snils,
|
|
13
|
+
armyIdFlg,
|
|
14
|
+
} = formData;
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
maritalStatusCd: familyStatus,
|
|
18
|
+
totalDependents: familyMembers,
|
|
19
|
+
otherDependents: dependents,
|
|
20
|
+
participantIncomes: getParticipantIncomes({
|
|
21
|
+
mandatoryIncome,
|
|
22
|
+
otherPayments,
|
|
23
|
+
}),
|
|
24
|
+
snils: snils?.replaceAll(' ', ''),
|
|
25
|
+
armyIdFlg,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { formStateMap, type FormStateMap } from './formStateMap';
|
|
2
|
+
|
|
3
|
+
export const getInitialFormState = <Step extends keyof FormStateMap>(
|
|
4
|
+
step: Step,
|
|
5
|
+
localStorageData: Record<string, any> | null,
|
|
6
|
+
): FormStateMap[Step] => {
|
|
7
|
+
if (localStorageData) {
|
|
8
|
+
// TODO: Fill in for other fields with type Date
|
|
9
|
+
// TODO: Take it out to the helper
|
|
10
|
+
localStorageData.birthday = localStorageData.birthday
|
|
11
|
+
? new Date(localStorageData.birthday as string)
|
|
12
|
+
: undefined;
|
|
13
|
+
localStorageData.dulIssueDateField = localStorageData.dulIssueDateField
|
|
14
|
+
? new Date(localStorageData.dulIssueDateField as string)
|
|
15
|
+
: undefined;
|
|
16
|
+
localStorageData.participantDateRegistration = localStorageData.participantDateRegistration
|
|
17
|
+
? new Date(localStorageData.participantDateRegistration as string)
|
|
18
|
+
: undefined;
|
|
19
|
+
localStorageData.beginDate = localStorageData?.beginDate
|
|
20
|
+
? new Date(localStorageData.beginDate as string)
|
|
21
|
+
: undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
...formStateMap[step],
|
|
26
|
+
...localStorageData,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { formatDate } from '../../utils/formatDate';
|
|
3
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
4
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
|
|
6
|
+
|
|
7
|
+
export const getSecondStepData = (formData: FormState): Partial<Participant> => {
|
|
8
|
+
const {
|
|
9
|
+
name,
|
|
10
|
+
surname,
|
|
11
|
+
middleName,
|
|
12
|
+
birthday = '',
|
|
13
|
+
phone = '',
|
|
14
|
+
email,
|
|
15
|
+
sex,
|
|
16
|
+
birthPlace,
|
|
17
|
+
dulIssueDateField = '',
|
|
18
|
+
dulIssuedBy,
|
|
19
|
+
dulNumber,
|
|
20
|
+
dulSerie,
|
|
21
|
+
dulSubdivisionCode,
|
|
22
|
+
education,
|
|
23
|
+
participantDateRegistration = '',
|
|
24
|
+
housing,
|
|
25
|
+
addressRegistration,
|
|
26
|
+
addressFact,
|
|
27
|
+
} = formData;
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
birthDate: formatDate(birthday, true),
|
|
31
|
+
midname: middleName,
|
|
32
|
+
name,
|
|
33
|
+
surname,
|
|
34
|
+
birthPlace,
|
|
35
|
+
dulIssueDate: formatDate(dulIssueDateField, true),
|
|
36
|
+
dulIssuedBy,
|
|
37
|
+
dulNumber,
|
|
38
|
+
dulSerie,
|
|
39
|
+
dulSubdivisionCode,
|
|
40
|
+
educationLevelCd: education,
|
|
41
|
+
registrationDate: formatDate(participantDateRegistration, true),
|
|
42
|
+
houseTypeCd: housing,
|
|
43
|
+
participantContacts: getParticipantContacts({
|
|
44
|
+
phone: formatPhone(phone),
|
|
45
|
+
email,
|
|
46
|
+
}),
|
|
47
|
+
participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
|
|
48
|
+
genderCd: sex
|
|
49
|
+
? {
|
|
50
|
+
key: sex === 'male' ? 'MAN' : 'WOMAN',
|
|
51
|
+
}
|
|
52
|
+
: undefined,
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
3
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
|
+
import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
|
|
5
|
+
|
|
6
|
+
export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
7
|
+
const {
|
|
8
|
+
employment,
|
|
9
|
+
organizationName,
|
|
10
|
+
inn,
|
|
11
|
+
legalForm,
|
|
12
|
+
organization,
|
|
13
|
+
amountWorkers,
|
|
14
|
+
employerActivities,
|
|
15
|
+
employerOrganization,
|
|
16
|
+
generalSeniority,
|
|
17
|
+
lastJobExperience,
|
|
18
|
+
experience5Years,
|
|
19
|
+
jobsNumber,
|
|
20
|
+
organizationPhone,
|
|
21
|
+
organizationAddress,
|
|
22
|
+
positionOrganization,
|
|
23
|
+
} = formData;
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
employmentTypeCd: employment,
|
|
27
|
+
organizationName,
|
|
28
|
+
organizationInn: inn,
|
|
29
|
+
organizationActivityTypeCd: employerActivities,
|
|
30
|
+
organizationTypeCd: organization,
|
|
31
|
+
organizationKindCd: employerOrganization,
|
|
32
|
+
employeesNumberCd: amountWorkers,
|
|
33
|
+
opf: legalForm,
|
|
34
|
+
seniority: generalSeniority,
|
|
35
|
+
generalSeniority: experience5Years,
|
|
36
|
+
jobsNumber,
|
|
37
|
+
lastWorkDuration: lastJobExperience,
|
|
38
|
+
positionCd: positionOrganization,
|
|
39
|
+
participantContacts: getParticipantContacts({
|
|
40
|
+
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
41
|
+
}),
|
|
42
|
+
participantAddresses: getParticipantAddresses({ organizationAddress }),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard';
|
|
2
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
|
+
|
|
4
|
+
export const renderInfo = (inputs: FieldDef[] = []) => {
|
|
5
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
6
|
+
|
|
7
|
+
return infoInputs.length
|
|
8
|
+
? infoInputs.map(({ text, name }, i) => <InfoCard key={`${name}_${i}`} __html={text} />)
|
|
9
|
+
: null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
|
|
2
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
3
|
+
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
5
|
+
import { type CreditCardSectionsProps } from './CreditCardFormContent';
|
|
6
|
+
import { type FormStateMap } from './formStateMap';
|
|
7
|
+
import { renderInfo } from './renderInfo';
|
|
8
|
+
import { renderInputs } from './renderInputs';
|
|
9
|
+
|
|
10
|
+
export type CustomSubmit = FormOperatorProps<FormStateMap[keyof FormStateMap]>['onSubmit'];
|
|
11
|
+
|
|
12
|
+
export interface StepProps {
|
|
13
|
+
sections?: CreditCardSectionsProps[];
|
|
14
|
+
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
15
|
+
registerSubmit?: (submit: CustomSubmit) => void;
|
|
16
|
+
isLastStep?: boolean;
|
|
17
|
+
methodObtain?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const renderLastStep = ({ sections, field, methodObtain }: StepProps) =>
|
|
21
|
+
sections
|
|
22
|
+
?.filter(({ type }) => type === methodObtain || !type)
|
|
23
|
+
.map(({ inputs, columns, title }, i) => (
|
|
24
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
25
|
+
{renderInfo(inputs)}
|
|
26
|
+
{renderTitle(title)}
|
|
27
|
+
{renderInputs({ field, inputs })}
|
|
28
|
+
</div>
|
|
29
|
+
));
|
|
30
|
+
|
|
31
|
+
export const renderStep = ({ sections, field, isLastStep, methodObtain }: StepProps) => {
|
|
32
|
+
if (isLastStep) {
|
|
33
|
+
return renderLastStep({ sections, field, methodObtain });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return sections?.map(({ inputs, columns, title }, i) => (
|
|
37
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
38
|
+
{renderInfo(inputs)}
|
|
39
|
+
{renderTitle(title)}
|
|
40
|
+
{renderInputs({ field, inputs })}
|
|
41
|
+
</div>
|
|
42
|
+
));
|
|
43
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { updateUserTask } from '../../api/RetailAPI/updateUserTask';
|
|
3
|
+
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
4
|
+
import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
|
|
5
|
+
import { objectValidator } from '../../validation/objectValidator';
|
|
6
|
+
import { isValidationSuccess } from '../../validation/validator';
|
|
7
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
|
+
import { type FormStateMap } from './formStateMap';
|
|
9
|
+
import { getCreditCardFormTaskData } from './getCreditCardFormTaskData';
|
|
10
|
+
|
|
11
|
+
type CreditCardFormApiProps = {
|
|
12
|
+
step: number;
|
|
13
|
+
inputs: FieldDef[];
|
|
14
|
+
onNextStep: () => void;
|
|
15
|
+
saveStep: (value: Record<string, any>) => void;
|
|
16
|
+
finishForm?: (bool: boolean) => void;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const useCreditCardFormAPI = ({
|
|
20
|
+
step,
|
|
21
|
+
inputs,
|
|
22
|
+
onNextStep,
|
|
23
|
+
saveStep,
|
|
24
|
+
finishForm,
|
|
25
|
+
}: CreditCardFormApiProps) => {
|
|
26
|
+
const [taskId] = useLocalStorage<number>('taskId');
|
|
27
|
+
const [profileId] = useLocalStorage<number>('profileId');
|
|
28
|
+
const [participantId] = useLocalStorage<number>('participantId');
|
|
29
|
+
|
|
30
|
+
const handleSubmit = useCallback(async (formData: FormStateMap[keyof FormStateMap]) => {
|
|
31
|
+
const feedbackValidator = objectValidator(
|
|
32
|
+
getObjectValidator(calculateInputs(formData, inputs, step)),
|
|
33
|
+
);
|
|
34
|
+
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
35
|
+
return console.warn('validation fail');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
saveStep(formData);
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
if (taskId && profileId && participantId) {
|
|
42
|
+
await updateUserTask(
|
|
43
|
+
getCreditCardFormTaskData({
|
|
44
|
+
participantId,
|
|
45
|
+
taskId,
|
|
46
|
+
profileId,
|
|
47
|
+
step,
|
|
48
|
+
formData: formData as any,
|
|
49
|
+
}),
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
} catch (ex) {
|
|
53
|
+
return 'Fail';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
onNextStep();
|
|
57
|
+
|
|
58
|
+
if (step === 5) {
|
|
59
|
+
finishForm?.(true);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return 'OK';
|
|
63
|
+
}, []);
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
handleSubmit,
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const calculateInputs = (
|
|
71
|
+
formData: FormStateMap[keyof FormStateMap],
|
|
72
|
+
inputs: FieldDef[],
|
|
73
|
+
step: number,
|
|
74
|
+
) =>
|
|
75
|
+
step === 2 && 'employment' in formData && formData?.employment?.key === 'RETIREE' ? [] : inputs;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
6
|
import { style } from '../../utils/style';
|
|
6
|
-
import {
|
|
7
|
-
type FieldDef,
|
|
8
|
-
type SectionsProps,
|
|
9
|
-
} from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
10
8
|
import { CalculatorCredit } from '../CalculatorCredit/CalculatorCredit';
|
|
11
9
|
import { type CreditFormContent } from './CreditFormContent';
|
|
12
10
|
import { CreditFormProgress } from './CreditFormProgress';
|
|
@@ -8,7 +8,6 @@ import { PendingStatusContent } from './PendingStatusContent';
|
|
|
8
8
|
import { ReworkStatusContent } from './ReworkStatusContent';
|
|
9
9
|
import { SuccessStatusContent } from './SuccessStatusContent';
|
|
10
10
|
|
|
11
|
-
const TASK_ID = 2816419;
|
|
12
11
|
const SIGNAL_TYPES: SignalType[] = [
|
|
13
12
|
'CREATE_APPLICATION_SHORT_SIGNAL',
|
|
14
13
|
'CREATE_APPLICATION_LOAN_V3_SIGNAL',
|
|
@@ -24,7 +23,7 @@ export const CreditFormStatusTracker = JSX(() => {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
const trackStatus = () =>
|
|
27
|
-
getTaskStatus({ taskId
|
|
26
|
+
getTaskStatus({ taskId }).then((res) => {
|
|
28
27
|
if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
29
28
|
clearInterval(pullingInterval);
|
|
30
29
|
setStatus(res.statusCd);
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
4
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
|
-
import { type SectionsProps } from '
|
|
5
|
+
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
6
6
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
7
|
import { CreditFormStatusTracker } from './CreditFormStatusTracker';
|
|
8
8
|
import { type FormStateMap } from './formStateMap';
|
|
@@ -4,8 +4,7 @@ import { CreditFormStatus } from './CreditFormStatus';
|
|
|
4
4
|
export const FailedStatusContent = JSX(() => (
|
|
5
5
|
<CreditFormStatus
|
|
6
6
|
title="Благодарим Вас за ожидание"
|
|
7
|
-
description="В настоящий момент Банк не может одобрить Вашу заявку на кредит.
|
|
8
|
-
Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
|
|
7
|
+
description="В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
|
|
9
8
|
buttonText="Вернуться на главную"
|
|
10
9
|
/>
|
|
11
10
|
));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
|
|
4
|
-
import { type SectionsProps } from '
|
|
4
|
+
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
5
5
|
|
|
6
6
|
export const stepsSectionsMap: SectionsProps[][] = [
|
|
7
7
|
[
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type FieldDef,
|
|
3
|
+
type FormColumnsCount,
|
|
4
|
+
} from '../components/ApplicationLeadForm/ApplicationLeadFormContent';
|
|
5
|
+
import { type TitleProps } from './HeadlineType';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @title Секция полей ввода
|
|
9
|
+
*/
|
|
10
|
+
export type SectionsProps = TitleProps & {
|
|
11
|
+
columns?: FormColumnsCount;
|
|
12
|
+
inputs?: FieldDef[];
|
|
13
|
+
};
|
|
2
14
|
|
|
3
15
|
export interface InputSectionsType {
|
|
4
16
|
/** @hidden */
|