@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
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.652",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"path": "lib/common.css"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"limit": "
|
|
213
|
+
"limit": "89 kB",
|
|
214
214
|
"path": "bundle/bundle.umd.min.js"
|
|
215
215
|
}
|
|
216
216
|
],
|
|
@@ -12,5 +12,5 @@ interface GetTaskStatusResponse {
|
|
|
12
12
|
taskId: number;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const getTaskStatus = (body: { taskId: number }) =>
|
|
15
|
+
export const getTaskStatus = (body: { taskId: number | null }) =>
|
|
16
16
|
doRequest<GetTaskStatusResponse>('/user-data/getTaskStatus', 'POST', body);
|
|
@@ -64,6 +64,7 @@ export const hintsListsOptions: HintsListOptions = {
|
|
|
64
64
|
addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
|
|
65
65
|
addressFact: ADDRESS_HINTS_LIST_OPTIONS,
|
|
66
66
|
organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
67
|
+
addressCourier: ADDRESS_HINTS_LIST_OPTIONS,
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
export type HintOption = {
|
|
@@ -104,17 +104,6 @@ export type TypeFormFieldDef =
|
|
|
104
104
|
*/
|
|
105
105
|
export type FormColumnsCount = 1 | 2;
|
|
106
106
|
|
|
107
|
-
/** @hidden */
|
|
108
|
-
export type EndpointType = 'lead' | 'sendcorporatelead';
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @title Секция полей ввода
|
|
112
|
-
*/
|
|
113
|
-
export type SectionsProps = TitleProps & {
|
|
114
|
-
columns?: FormColumnsCount;
|
|
115
|
-
inputs?: FieldDef[];
|
|
116
|
-
};
|
|
117
|
-
|
|
118
107
|
/**
|
|
119
108
|
* @title Форма заявки настраиваемая
|
|
120
109
|
*/
|
|
@@ -125,6 +125,10 @@ export interface FormState extends FormConsents {
|
|
|
125
125
|
partInBusiness?: number;
|
|
126
126
|
addressMatch?: boolean;
|
|
127
127
|
confirmationIncome?: Option;
|
|
128
|
+
currency?: string;
|
|
129
|
+
paymentSystem?: string;
|
|
130
|
+
cardCategory?: { key: ''; text: '' };
|
|
131
|
+
codeWord?: string;
|
|
128
132
|
esiaAccountTypeCd?: Option;
|
|
129
133
|
}
|
|
130
134
|
|
|
@@ -160,6 +164,10 @@ const initialFormState = {
|
|
|
160
164
|
consentInformFlg: false,
|
|
161
165
|
addressRegistration: '',
|
|
162
166
|
participantDateRegistration: undefined,
|
|
167
|
+
currency: '',
|
|
168
|
+
paymentSystem: '',
|
|
169
|
+
cardCategory: { key: '', text: '' },
|
|
170
|
+
codeWord: '',
|
|
163
171
|
};
|
|
164
172
|
|
|
165
173
|
export const getInitialFormState = (
|
|
@@ -19,6 +19,7 @@ import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
|
19
19
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
20
20
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
21
21
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
22
|
+
import { CreditCardForm } from './CreditCardForm/CreditCardForm';
|
|
22
23
|
import { CreditForm } from './CreditForm/CreditForm';
|
|
23
24
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
24
25
|
import { Depository } from './Depository/Depository';
|
|
@@ -69,6 +70,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
69
70
|
CarouselLinks,
|
|
70
71
|
CarouselRecommendationCard,
|
|
71
72
|
CarouselTariffsCard,
|
|
73
|
+
CreditCardForm,
|
|
72
74
|
CreditForm,
|
|
73
75
|
DepositFiltration,
|
|
74
76
|
Depository,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
|
21
21
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
22
22
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
23
23
|
import { ContactsBlock } from './ContactsBlock/ContactsBlock';
|
|
24
|
+
import { CreditCardForm } from './CreditCardForm/CreditCardForm';
|
|
24
25
|
import { CreditForm } from './CreditForm/CreditForm';
|
|
25
26
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
26
27
|
import { Depository } from './Depository/Depository';
|
|
@@ -77,6 +78,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
77
78
|
CarouselRecommendationCard,
|
|
78
79
|
CarouselTariffsCard,
|
|
79
80
|
ContactsBlock,
|
|
81
|
+
CreditCardForm,
|
|
80
82
|
CreditForm,
|
|
81
83
|
DepositFiltration,
|
|
82
84
|
Depository,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
|
|
3
|
+
import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
|
|
4
|
+
import { CreditCardForm } from './CreditCardForm';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
default: (
|
|
8
|
+
<div>
|
|
9
|
+
<CreditCardForm className="col-span-12" />
|
|
10
|
+
<PopupManager />
|
|
11
|
+
<DialogManager />
|
|
12
|
+
</div>
|
|
13
|
+
),
|
|
14
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
4
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
7
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
|
+
import { type CreditCardFormContent } from './CreditCardFormContent';
|
|
9
|
+
import { CreditCardFormProgress } from './CreditCardFormProgress';
|
|
10
|
+
import { CreditCardFormStep } from './CreditCardFormStep';
|
|
11
|
+
import { stepsSectionsMap } from './creditCardFormStepsData';
|
|
12
|
+
|
|
13
|
+
interface CreditCardFormWizardProps extends CreditCardFormContent, UniBlockProps {}
|
|
14
|
+
|
|
15
|
+
const WIZARD_STEPS = 6;
|
|
16
|
+
|
|
17
|
+
const WIZARD_TITLES = [
|
|
18
|
+
'Параметры карты',
|
|
19
|
+
'Персональные данные',
|
|
20
|
+
'Данные о трудоустройстве',
|
|
21
|
+
'Данные о доходах и расходах',
|
|
22
|
+
'Дополнительные сведения',
|
|
23
|
+
'Выбор способа получения',
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...rest }) => {
|
|
27
|
+
const [step, setStep] = useState(0);
|
|
28
|
+
|
|
29
|
+
const handleNextStep = useCallback(() => {
|
|
30
|
+
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
31
|
+
}, []);
|
|
32
|
+
|
|
33
|
+
const handlePrevStep = useCallback(() => {
|
|
34
|
+
//TODO search hook - 1,
|
|
35
|
+
setStep((_) => Math.max(_ - 1, 0));
|
|
36
|
+
}, []);
|
|
37
|
+
|
|
38
|
+
const sections = useMemo(() => stepsSectionsMap[step], [step]);
|
|
39
|
+
|
|
40
|
+
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
41
|
+
|
|
42
|
+
const [isFormFinished, setIsFormFinished] = useState(false);
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<BlockWrapper className={style('bg-transparent', className)} defaultPadding="p-0" {...rest}>
|
|
46
|
+
<div className="container grid grid-cols-12">
|
|
47
|
+
{isFormFinished ? null : (
|
|
48
|
+
<CreditCardFormProgress
|
|
49
|
+
stepsTitles={WIZARD_TITLES}
|
|
50
|
+
step={step}
|
|
51
|
+
totalSteps={WIZARD_STEPS}
|
|
52
|
+
/>
|
|
53
|
+
)}
|
|
54
|
+
<div className="py-lg px-5xl mt-2xs bg-white col-span-12">
|
|
55
|
+
<CreditCardFormStep
|
|
56
|
+
key={String(step)}
|
|
57
|
+
step={step}
|
|
58
|
+
inputs={inputs}
|
|
59
|
+
sections={sections}
|
|
60
|
+
onNextStep={handleNextStep}
|
|
61
|
+
onPrevStep={handlePrevStep}
|
|
62
|
+
isFormFinished={isFormFinished}
|
|
63
|
+
finishForm={setIsFormFinished}
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</BlockWrapper>
|
|
68
|
+
);
|
|
69
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
|
+
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
4
|
+
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
6
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
|
+
import { type FormStateMap } from './formStateMap';
|
|
8
|
+
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export interface RenderInputsProps {
|
|
11
|
+
inputs?: FieldDef[];
|
|
12
|
+
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type CreditCardSectionsProps = SectionsProps & {
|
|
16
|
+
type?: 'courier' | 'office';
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @title Форма заявки на потребительский кредит настраиваемая
|
|
21
|
+
*/
|
|
22
|
+
export type CreditCardFormContent = UniBlockContent &
|
|
23
|
+
TitleProps &
|
|
24
|
+
InputSectionsType & {
|
|
25
|
+
/** @title Номер кредитной программы */
|
|
26
|
+
programId?: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { ProgressBar } from '../../ui-kit/ProgressBar/ProgressBar';
|
|
4
|
+
|
|
5
|
+
export interface CreditCardFormProgressProps {
|
|
6
|
+
step: number;
|
|
7
|
+
totalSteps?: number;
|
|
8
|
+
stepsTitles?: string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const CreditCardFormProgress = JSX<CreditCardFormProgressProps>(
|
|
12
|
+
({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
|
|
13
|
+
const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div className="py-lg px-5xl bg-white col-span-12">
|
|
17
|
+
<div>
|
|
18
|
+
<span className="font-bold mr-s">
|
|
19
|
+
Шаг {step + 1} из {totalSteps}.
|
|
20
|
+
</span>
|
|
21
|
+
{stepsTitles[step] || null}
|
|
22
|
+
<ProgressBar step={progress} showPercentage={false} />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useMobileMode } from '../../hooks/useMobileMode';
|
|
3
|
+
import { type DescriptionProps, type LabelProps } from '../../model/HeadlineType';
|
|
4
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
6
|
+
import { InfoCard, type InfoCardProps } from '../../ui-kit/InfoCard/InfoCard';
|
|
7
|
+
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
8
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
9
|
+
import { TimerCircle } from '../../ui-kit/TimerCircle/TimerCircle';
|
|
10
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
11
|
+
import { style } from '../../utils/style';
|
|
12
|
+
import { Headline } from '../Headline/Headline';
|
|
13
|
+
|
|
14
|
+
type CreditCardFormStatusProps = UniBlockProps & {
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
interval?: number;
|
|
18
|
+
sectionInfoTitle?: string;
|
|
19
|
+
sectionInfo?: (LabelProps & DescriptionProps)[];
|
|
20
|
+
sectionAdditionalTitle?: string;
|
|
21
|
+
sectionInfoAdditional?: (LabelProps & DescriptionProps)[];
|
|
22
|
+
buttonText?: string;
|
|
23
|
+
infoCard?: InfoCardProps;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const CreditCardFormStatus = JSX<CreditCardFormStatusProps>(
|
|
27
|
+
({
|
|
28
|
+
title,
|
|
29
|
+
description: dsc,
|
|
30
|
+
infoCard,
|
|
31
|
+
sectionInfoTitle,
|
|
32
|
+
sectionInfo,
|
|
33
|
+
sectionAdditionalTitle,
|
|
34
|
+
sectionInfoAdditional,
|
|
35
|
+
buttonText,
|
|
36
|
+
interval,
|
|
37
|
+
...props
|
|
38
|
+
}) => (
|
|
39
|
+
<BlockWrapper {...props}>
|
|
40
|
+
<div className="flex flex-col md:flex-row items-center">
|
|
41
|
+
<Headline
|
|
42
|
+
headlineVersion="M"
|
|
43
|
+
title={title}
|
|
44
|
+
description={dsc}
|
|
45
|
+
align="text-left"
|
|
46
|
+
padding="p-xl"
|
|
47
|
+
className="w-full"
|
|
48
|
+
/>
|
|
49
|
+
{interval ? <TimerCircle interval={interval} /> : null}
|
|
50
|
+
</div>
|
|
51
|
+
<SectionInfo title={sectionInfoTitle} items={sectionInfo} />
|
|
52
|
+
<SectionInfo title={sectionAdditionalTitle} items={sectionInfoAdditional} countColumns />
|
|
53
|
+
{infoCard?.__html ? (
|
|
54
|
+
<InfoCard
|
|
55
|
+
__html={infoCard?.__html}
|
|
56
|
+
icon={infoCard?.icon}
|
|
57
|
+
link={{
|
|
58
|
+
text: infoCard?.link?.text,
|
|
59
|
+
}}
|
|
60
|
+
/>
|
|
61
|
+
) : null}
|
|
62
|
+
{buttonText ? (
|
|
63
|
+
<LinkButton href="/natural" text={buttonText} version="primary" className="w-full mt-lg" />
|
|
64
|
+
) : null}
|
|
65
|
+
</BlockWrapper>
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
const SectionInfo = ({
|
|
70
|
+
title,
|
|
71
|
+
items,
|
|
72
|
+
countColumns = false,
|
|
73
|
+
}: {
|
|
74
|
+
title?: string;
|
|
75
|
+
items?: (LabelProps & DescriptionProps)[];
|
|
76
|
+
countColumns?: boolean;
|
|
77
|
+
}) => {
|
|
78
|
+
const isMobile = useMobileMode();
|
|
79
|
+
|
|
80
|
+
if (!items) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<div>
|
|
86
|
+
<hr className="w-full h-px bg-main-gray border-0" />
|
|
87
|
+
<div className="p-xl">
|
|
88
|
+
{title ? (
|
|
89
|
+
<Text color="text-primary-text" size="text-h5">
|
|
90
|
+
<div className={style({ 'mb-m': Boolean(title) })}>{title}</div>
|
|
91
|
+
</Text>
|
|
92
|
+
) : null}
|
|
93
|
+
{items ? (
|
|
94
|
+
<div
|
|
95
|
+
className={style(
|
|
96
|
+
'grid grid-cols-1 gap-m',
|
|
97
|
+
inputColumnStyles(countColumns || isMobile ? 1 : 2),
|
|
98
|
+
)}
|
|
99
|
+
>
|
|
100
|
+
{items.map((item, index) => (
|
|
101
|
+
<div key={index}>{renderItem(item)}</div>
|
|
102
|
+
))}
|
|
103
|
+
</div>
|
|
104
|
+
) : null}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const renderItem = ({ label, description }: LabelProps & DescriptionProps) => (
|
|
111
|
+
<div className="flex flex-col">
|
|
112
|
+
<Text color="text-secondary-text" size="text-l">
|
|
113
|
+
{label}
|
|
114
|
+
</Text>
|
|
115
|
+
<Text color="text-primary-text" size="text-xl">
|
|
116
|
+
{description}
|
|
117
|
+
</Text>
|
|
118
|
+
</div>
|
|
119
|
+
);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { getTaskStatus, STATUS_TYPE } from '../../api/RetailAPI/getTaskStatus';
|
|
4
|
+
import { sendSignalToProcess, type SignalType } from '../../api/RetailAPI/sendSignalToProcess';
|
|
5
|
+
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
6
|
+
import { FailedStatusContent } from './FailedStatusContent';
|
|
7
|
+
import { PendingStatusContent } from './PendingStatusContent';
|
|
8
|
+
import { ReworkStatusContent } from './ReworkStatusContent';
|
|
9
|
+
import { SuccessStatusContent } from './SuccessStatusContent';
|
|
10
|
+
|
|
11
|
+
const SIGNAL_TYPES: SignalType[] = [
|
|
12
|
+
'CREATE_APPLICATION_SHORT_SIGNAL',
|
|
13
|
+
'CREATE_APPLICATION_LOAN_V3_SIGNAL',
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export const CreditCardFormStatusTracker = JSX(() => {
|
|
17
|
+
const [status, setStatus] = useState(STATUS_TYPE.process);
|
|
18
|
+
const [taskId] = useLocalStorage<number>('taskId');
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
for (const signalType of SIGNAL_TYPES) {
|
|
22
|
+
sendSignalToProcess({ signalType, taskId });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const trackStatus = () =>
|
|
26
|
+
getTaskStatus({ taskId }).then((res) => {
|
|
27
|
+
if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
28
|
+
clearInterval(pullingInterval);
|
|
29
|
+
setStatus(res.statusCd);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const pullingInterval = setInterval(trackStatus, 30000);
|
|
34
|
+
}, []);
|
|
35
|
+
|
|
36
|
+
return renderStatus(status);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const renderStatus = (status: STATUS_TYPE) => {
|
|
40
|
+
const statusesMap: Record<STATUS_TYPE, JSX.Element> = {
|
|
41
|
+
IN_PROCESS: <PendingStatusContent />,
|
|
42
|
+
FAILED: <FailedStatusContent />,
|
|
43
|
+
OK: <SuccessStatusContent />,
|
|
44
|
+
REWORK: <ReworkStatusContent />,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
return statusesMap[status] || null;
|
|
48
|
+
};
|