@redneckz/wildless-cms-uni-blocks 0.14.651 → 0.14.653
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/updateRefreshToken.d.ts +1 -0
- package/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +959 -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/hooks/useInterval.d.ts +1 -0
- 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/doRequest.js +1 -0
- package/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
- package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
- package/dist/api/RetailAPI/updateRefreshToken.js +31 -0
- package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
- 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 +2 -0
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +8 -7
- 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/hooks/useInterval.d.ts +1 -0
- package/dist/hooks/useInterval.js +14 -0
- package/dist/hooks/useInterval.js.map +1 -0
- 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/doRequest.js +1 -0
- package/lib/api/RetailAPI/doRequest.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/updateRefreshToken.d.ts +1 -0
- package/lib/api/RetailAPI/updateRefreshToken.js +28 -0
- package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
- 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 +3 -1
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +8 -7
- 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/hooks/useInterval.d.ts +1 -0
- package/lib/hooks/useInterval.js +11 -0
- package/lib/hooks/useInterval.js.map +1 -0
- 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/updateRefreshToken.d.ts +1 -0
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
- package/mobile/bundle/bundle.umd.js +955 -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/hooks/useInterval.d.ts +1 -0
- 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/doRequest.js +1 -0
- package/mobile/dist/api/RetailAPI/doRequest.js.map +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/updateRefreshToken.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js +31 -0
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
- 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 +2 -0
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +8 -7
- 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/hooks/useInterval.d.ts +1 -0
- package/mobile/dist/hooks/useInterval.js +14 -0
- package/mobile/dist/hooks/useInterval.js.map +1 -0
- 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/doRequest.js +1 -0
- package/mobile/lib/api/RetailAPI/doRequest.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/updateRefreshToken.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js +28 -0
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
- 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 +3 -1
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +8 -7
- 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/hooks/useInterval.d.ts +1 -0
- package/mobile/lib/hooks/useInterval.js +11 -0
- package/mobile/lib/hooks/useInterval.js.map +1 -0
- 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/doRequest.ts +1 -0
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +1 -1
- package/mobile/src/api/RetailAPI/updateRefreshToken.ts +42 -0
- 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 +6 -5
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +4 -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/hooks/useInterval.ts +14 -0
- 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/doRequest.ts +1 -0
- package/src/api/RetailAPI/getTaskStatus.ts +1 -1
- package/src/api/RetailAPI/updateRefreshToken.ts +42 -0
- 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.fixture.tsx +7 -0
- package/src/components/CreditForm/CreditForm.tsx +6 -5
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +4 -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/hooks/useInterval.ts +14 -0
- 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,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;
|
|
@@ -3,6 +3,13 @@ import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
|
|
|
3
3
|
import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
|
|
4
4
|
import { CreditForm } from './CreditForm';
|
|
5
5
|
|
|
6
|
+
const MOCK_TOKEN = 'mockKEY';
|
|
7
|
+
const MOCK_TASK_ID = '111111';
|
|
8
|
+
|
|
9
|
+
globalThis.sessionStorage?.setItem('refreshToken', MOCK_TOKEN);
|
|
10
|
+
globalThis.sessionStorage?.setItem('accessToken', MOCK_TOKEN);
|
|
11
|
+
globalThis.localStorage.setItem('taskId', MOCK_TASK_ID);
|
|
12
|
+
|
|
6
13
|
export default {
|
|
7
14
|
default: (
|
|
8
15
|
<div>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
4
|
+
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
3
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
6
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
7
|
import { style } from '../../utils/style';
|
|
6
|
-
import {
|
|
7
|
-
type FieldDef,
|
|
8
|
-
type SectionsProps,
|
|
9
|
-
} from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
10
9
|
import { CalculatorCredit } from '../CalculatorCredit/CalculatorCredit';
|
|
11
10
|
import { type CreditFormContent } from './CreditFormContent';
|
|
12
11
|
import { CreditFormProgress } from './CreditFormProgress';
|
|
@@ -29,6 +28,8 @@ const WIZARD_TITLES = [
|
|
|
29
28
|
export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) => {
|
|
30
29
|
const [step, setStep] = useState(0);
|
|
31
30
|
|
|
31
|
+
useEffect(updateRefreshToken, []);
|
|
32
|
+
|
|
32
33
|
const handleNextStep = useCallback(() => {
|
|
33
34
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
34
35
|
}, []);
|
|
@@ -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,8 @@ export const CreditFormStatusTracker = JSX(() => {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
const trackStatus = () =>
|
|
27
|
-
|
|
26
|
+
taskId &&
|
|
27
|
+
getTaskStatus({ taskId }).then((res) => {
|
|
28
28
|
if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
29
29
|
clearInterval(pullingInterval);
|
|
30
30
|
setStatus(res.statusCd);
|
|
@@ -32,6 +32,8 @@ export const CreditFormStatusTracker = JSX(() => {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
const pullingInterval = setInterval(trackStatus, 30000);
|
|
35
|
+
|
|
36
|
+
return () => clearInterval(pullingInterval);
|
|
35
37
|
}, []);
|
|
36
38
|
|
|
37
39
|
return renderStatus(status);
|
|
@@ -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
|
[
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
|
|
3
|
+
export const useInterval = (handler: (stop: () => void) => void, period: number) => {
|
|
4
|
+
const timer = useRef<any | null>(null);
|
|
5
|
+
const clearTimer = useCallback(() => timer.current && clearInterval(timer.current as number), []);
|
|
6
|
+
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
timer.current = setInterval(() => handler(clearTimer), period);
|
|
9
|
+
|
|
10
|
+
return clearTimer;
|
|
11
|
+
}, [handler, period]);
|
|
12
|
+
|
|
13
|
+
return clearTimer;
|
|
14
|
+
};
|
|
@@ -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 */
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
3
|
+
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
import { getValidation } from '../getValidation';
|
|
5
7
|
|
|
6
8
|
export const CURRENCY_TYPES: RadioButtonItem[] = [{ id: 'rub', text: 'Рубль' }];
|
|
7
9
|
|
|
8
|
-
export const CurrencyField = JSX<CustomFieldProps>(({ field }) => {
|
|
9
|
-
const { value } = field('currency');
|
|
10
|
+
export const CurrencyField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
11
|
+
const { value, onChange } = field('currency');
|
|
10
12
|
|
|
11
13
|
return (
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
14
|
+
<RadioButtonGroupControl
|
|
15
|
+
label="Валюта"
|
|
16
|
+
orientation="horizontal"
|
|
17
|
+
items={CURRENCY_TYPES}
|
|
18
|
+
value={value}
|
|
19
|
+
onChange={(_) => onChange?.(_)}
|
|
20
|
+
{...getValidation(field('currency'), validatorObj.currency, input?.required)}
|
|
21
|
+
/>
|
|
23
22
|
);
|
|
24
23
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { DatePickerControl } from '../../DatePicker/DatePickerControl';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const DeliveryDateFiels = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<DatePickerControl
|
|
9
|
+
label="Дата доставки"
|
|
10
|
+
{...getValidation(field('deliveryDate'), validatorObj.deliveryDate, input?.required)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
3
|
+
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
import { getValidation } from '../getValidation';
|
|
7
|
+
|
|
8
|
+
export const METHODS_OF_OBTAIN: RadioButtonItem[] = [
|
|
9
|
+
{ id: 'office', text: 'В отделении Банка' },
|
|
10
|
+
{ id: 'courier', text: 'Курьерская доставка' },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export const MethodObtainField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
14
|
+
<RadioButtonGroupControl
|
|
15
|
+
orientation="horizontal"
|
|
16
|
+
items={METHODS_OF_OBTAIN}
|
|
17
|
+
{...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required)}
|
|
18
|
+
/>
|
|
19
|
+
));
|
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
3
|
+
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
import { getValidation } from '../getValidation';
|
|
5
7
|
|
|
6
8
|
export const PAYMENT_SYSTEM_TYPES: RadioButtonItem[] = [
|
|
7
9
|
{ id: 'mir', text: 'Карта МИР' },
|
|
8
10
|
{ id: 'union_pay', text: 'UnionPay' },
|
|
9
11
|
{ id: 'payment_system_j', text: 'Платежная система (Дж)' },
|
|
10
|
-
{ id: 'payment_system_b', text: 'Платежная система (B)
|
|
12
|
+
{ id: 'payment_system_b', text: 'Платежная система (B) ' },
|
|
11
13
|
{ id: 'free_card', text: 'Бесплатная карта' },
|
|
12
14
|
];
|
|
13
15
|
|
|
14
|
-
export const PaymentSystemField = JSX<CustomFieldProps>(({ field }) => {
|
|
16
|
+
export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
15
17
|
const { value, onChange } = field('paymentSystem');
|
|
16
18
|
|
|
17
19
|
return (
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
onChange={(_) => onChange && onChange(_)}
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
20
|
+
<RadioButtonGroupControl
|
|
21
|
+
label="Платежная система"
|
|
22
|
+
orientation="horizontal"
|
|
23
|
+
items={PAYMENT_SYSTEM_TYPES}
|
|
24
|
+
value={value}
|
|
25
|
+
onChange={(_) => onChange?.(_)}
|
|
26
|
+
{...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required)}
|
|
27
|
+
/>
|
|
30
28
|
);
|
|
31
29
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
/* eslint-disable max-lines-per-function */
|
|
3
|
+
//TODO: Убрать обращение к компонентам т.к. ApplicationForm
|
|
3
4
|
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
4
5
|
import { getRegionUrl } from '../../components/ApplicationForm/getRegionUrl';
|
|
5
6
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
@@ -29,6 +30,7 @@ import { ConscriptionField } from './Fields/ConscriptionField';
|
|
|
29
30
|
import { ConsentField } from './Fields/ConsentField';
|
|
30
31
|
import { CreditInRshbCdField } from './Fields/CreditInRshbCdField';
|
|
31
32
|
import { CurrencyField } from './Fields/CurrencyField';
|
|
33
|
+
import { DeliveryDateFiels } from './Fields/DeliveryDateFiels';
|
|
32
34
|
import { DependentsField } from './Fields/DependentsField';
|
|
33
35
|
import { DesiredMeetingDateField } from './Fields/DesiredMeetingDateField';
|
|
34
36
|
import { DisablePeopleFlgField } from './Fields/DisablePeopleFlgField';
|
|
@@ -58,6 +60,7 @@ import { LegalEntityNameField } from './Fields/LegalEntityNameField';
|
|
|
58
60
|
import { LegalFormField } from './Fields/LegalFormField';
|
|
59
61
|
import { LocalitiesField } from './Fields/LocalitiesField';
|
|
60
62
|
import { MandatoryIncomeField } from './Fields/MandatoryIncome';
|
|
63
|
+
import { MethodObtainField } from './Fields/MethodObtainField';
|
|
61
64
|
import { MiddleNameField } from './Fields/MiddleNameField';
|
|
62
65
|
import { NameField } from './Fields/NameField';
|
|
63
66
|
import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
|
|
@@ -177,6 +180,7 @@ export const getField =
|
|
|
177
180
|
dulSubdivisionCode: <DulSubdivisionCodeField field={field} input={input} />,
|
|
178
181
|
dulIssuedBy: <DulIssuedByField field={field} input={input} />,
|
|
179
182
|
addressRegistration: <AddressField field={field} input={input} />,
|
|
183
|
+
addressCourier: <AddressField field={field} input={input} />,
|
|
180
184
|
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
181
185
|
retirementIncome: <RetirementIncomeField field={field} input={input} />,
|
|
182
186
|
otherIncome: <OtherIncomeField field={field} input={input} />,
|
|
@@ -197,6 +201,8 @@ export const getField =
|
|
|
197
201
|
cardCategory: <CardCategoryField field={field} input={input} />,
|
|
198
202
|
codeWord: <CodeWordField field={field} input={input} />,
|
|
199
203
|
confirmationIncome: <ConfirmationIncomeField field={field} input={input} />,
|
|
204
|
+
methodObtain: <MethodObtainField field={field} input={input} />,
|
|
205
|
+
deliveryDate: <DeliveryDateFiels field={field} input={input} />,
|
|
200
206
|
};
|
|
201
207
|
|
|
202
208
|
return isRenderField({ input, field }) ? (
|
|
@@ -84,6 +84,8 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
84
84
|
sex: defaultValidator('Укажите свой пол'),
|
|
85
85
|
addressRegistration: addressDaDataValidator(),
|
|
86
86
|
organizationAddress: addressDaDataValidator(),
|
|
87
|
+
deliveryDate: defaultValidator('Укажите дату доставки'),
|
|
88
|
+
addressCourier: addressDaDataValidator(),
|
|
87
89
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
88
90
|
retirementIncome: defaultValidator(),
|
|
89
91
|
otherIncome: defaultValidator(),
|
|
@@ -98,7 +100,10 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
98
100
|
regionRetail: defaultSelectValidator('Выберите филиал банка'),
|
|
99
101
|
addressRetail: defaultSelectValidator('Выберите адрес банка'),
|
|
100
102
|
addressMatch: defaultValidator(),
|
|
101
|
-
codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
|
|
103
|
+
codeWord: codeWordValidator('Необходимо ввести кодовое слово латиницей'),
|
|
104
|
+
currency: defaultValidator(),
|
|
105
|
+
paymentSystem: defaultValidator(),
|
|
106
|
+
cardCategory: defaultSelectValidator(),
|
|
102
107
|
confirmationIncome: defaultValidator(),
|
|
103
108
|
};
|
|
104
109
|
|