@redneckz/wildless-cms-uni-blocks 0.14.683 → 0.14.685
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/getCardTypes.d.ts +1 -1
- package/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -2
- package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -4
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +740 -681
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
- package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
- package/bundle/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
- package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
- package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
- package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -1
- package/bundle/components/CreditCardForm/renderStep.d.ts +2 -2
- package/bundle/components/CreditForm/CreditForm.d.ts +5 -2
- package/bundle/components/CreditForm/CreditFormContent.d.ts +4 -5
- package/bundle/components/CreditForm/CreditFormStep.d.ts +2 -3
- package/bundle/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
- package/bundle/components/CreditForm/getCalcData.d.ts +3 -0
- package/bundle/components/CreditForm/getZeroStepData.d.ts +1 -1
- package/bundle/components/CreditForm/renderInputs.d.ts +2 -1
- package/bundle/components/CreditForm/renderStep.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
- package/bundle/components/OfficesAtmsMap/filterItems.d.ts +2 -0
- package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/getField.d.ts +1 -1
- package/dist/api/RetailAPI/getCardTypes.d.ts +1 -1
- package/dist/api/RetailAPI/getCardTypes.js +4 -5
- package/dist/api/RetailAPI/getCardTypes.js.map +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.js +3 -4
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -2
- package/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +5 -4
- package/dist/api/RetailAPI/updateUserTask.js +1 -1
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/renderInputs.js +1 -1
- package/dist/components/ApplicationForm/renderInputs.js.map +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
- package/dist/components/CalculatorCredit/CalculatorCredit.js +5 -3
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
- package/dist/components/CalculatorCredit/defaultValueAdapter.js +18 -0
- package/dist/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardForm.js +4 -4
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
- package/dist/components/CreditCardForm/CreditCardFormStatus.js +3 -1
- package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStep.js +2 -14
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
- package/dist/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +2 -1
- package/dist/components/CreditCardForm/renderInputs.js +1 -1
- package/dist/components/CreditCardForm/renderInputs.js.map +1 -1
- package/dist/components/CreditCardForm/renderStep.d.ts +2 -2
- package/dist/components/CreditCardForm/renderStep.js +2 -2
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.d.ts +5 -2
- package/dist/components/CreditForm/CreditForm.js +6 -20
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +4 -5
- package/dist/components/CreditForm/CreditFormStatusTracker.js +10 -10
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +2 -3
- package/dist/components/CreditForm/CreditFormStep.js +5 -10
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
- package/dist/components/CreditForm/ProgramsSourceProps.js +2 -0
- package/dist/components/CreditForm/ProgramsSourceProps.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.js +9 -1
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +9 -7
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getCalcData.d.ts +3 -0
- package/dist/components/CreditForm/getCalcData.js +16 -0
- package/dist/components/CreditForm/getCalcData.js.map +1 -0
- package/dist/components/CreditForm/getCreditFormTaskData.js +3 -2
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.js +0 -1
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/getZeroStepData.d.ts +1 -1
- package/dist/components/CreditForm/getZeroStepData.js +3 -8
- package/dist/components/CreditForm/getZeroStepData.js.map +1 -1
- package/dist/components/CreditForm/renderInputs.d.ts +2 -1
- package/dist/components/CreditForm/renderInputs.js +1 -1
- package/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/dist/components/CreditForm/renderStep.d.ts +2 -2
- package/dist/components/CreditForm/renderStep.js +2 -2
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -6
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/components/OfficesAtmsMap/filterItems.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/filterItems.js +9 -0
- package/dist/components/OfficesAtmsMap/filterItems.js.map +1 -0
- package/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js +3 -3
- package/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
- package/dist/hooks/useJSONRef/useJSONRef.js +13 -3
- package/dist/hooks/useJSONRef/useJSONRef.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/CreditCalcField.js +15 -0
- package/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/RegionField.js +3 -1
- package/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/SelectField.js +4 -6
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +5 -4
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +2 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/getCardTypes.d.ts +1 -1
- package/lib/api/RetailAPI/getCardTypes.js +5 -6
- package/lib/api/RetailAPI/getCardTypes.js.map +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.js +4 -5
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -2
- package/lib/api/RetailAPI/updateUserProfile.js +2 -2
- package/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +5 -4
- package/lib/api/RetailAPI/updateUserTask.js +2 -2
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputs.js +1 -1
- package/lib/components/ApplicationForm/renderInputs.js.map +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
- package/lib/components/CalculatorCredit/CalculatorCredit.js +5 -3
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
- package/lib/components/CalculatorCredit/defaultValueAdapter.js +15 -0
- package/lib/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardForm.js +4 -4
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
- package/lib/components/CreditCardForm/CreditCardFormStatus.js +3 -1
- package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStep.js +2 -14
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
- package/lib/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +2 -1
- package/lib/components/CreditCardForm/renderInputs.js +1 -1
- package/lib/components/CreditCardForm/renderInputs.js.map +1 -1
- package/lib/components/CreditCardForm/renderStep.d.ts +2 -2
- package/lib/components/CreditCardForm/renderStep.js +2 -2
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.d.ts +5 -2
- package/lib/components/CreditForm/CreditForm.js +6 -20
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +4 -5
- package/lib/components/CreditForm/CreditFormStatusTracker.js +11 -11
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +2 -3
- package/lib/components/CreditForm/CreditFormStep.js +6 -11
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
- package/lib/components/CreditForm/ProgramsSourceProps.js +2 -0
- package/lib/components/CreditForm/ProgramsSourceProps.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.js +9 -1
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +9 -7
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getCalcData.d.ts +3 -0
- package/lib/components/CreditForm/getCalcData.js +13 -0
- package/lib/components/CreditForm/getCalcData.js.map +1 -0
- package/lib/components/CreditForm/getCreditFormTaskData.js +3 -2
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.js +0 -1
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/getZeroStepData.d.ts +1 -1
- package/lib/components/CreditForm/getZeroStepData.js +3 -8
- package/lib/components/CreditForm/getZeroStepData.js.map +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +2 -1
- package/lib/components/CreditForm/renderInputs.js +1 -1
- package/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +2 -2
- package/lib/components/CreditForm/renderStep.js +2 -2
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +0 -4
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/components/OfficesAtmsMap/filterItems.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/filterItems.js +6 -0
- package/lib/components/OfficesAtmsMap/filterItems.js.map +1 -0
- package/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js +1 -1
- package/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
- package/lib/hooks/useJSONRef/useJSONRef.js +13 -3
- package/lib/hooks/useJSONRef/useJSONRef.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/CreditCalcField.js +13 -0
- package/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/RegionField.js +3 -1
- package/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/SelectField.js +4 -6
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +5 -4
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +2 -0
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getCardTypes.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -2
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -4
- package/mobile/bundle/bundle.umd.js +742 -683
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
- package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
- package/mobile/bundle/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
- package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -1
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +5 -2
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +4 -5
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +2 -3
- package/mobile/bundle/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
- package/mobile/bundle/components/CreditForm/getCalcData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getZeroStepData.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -1
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
- package/mobile/bundle/components/OfficesAtmsMap/filterItems.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getField.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getCardTypes.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getCardTypes.js +4 -5
- package/mobile/dist/api/RetailAPI/getCardTypes.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +3 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -2
- package/mobile/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -4
- package/mobile/dist/api/RetailAPI/updateUserTask.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputs.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +5 -3
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
- package/mobile/dist/components/CalculatorCredit/defaultValueAdapter.js +18 -0
- package/mobile/dist/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +4 -4
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +3 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +2 -14
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.js +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/renderStep.js +2 -2
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +5 -2
- package/mobile/dist/components/CreditForm/CreditForm.js +6 -20
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +4 -5
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +10 -10
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +2 -3
- package/mobile/dist/components/CreditForm/CreditFormStep.js +5 -10
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
- package/mobile/dist/components/CreditForm/ProgramsSourceProps.js +2 -0
- package/mobile/dist/components/CreditForm/ProgramsSourceProps.js.map +1 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +9 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +9 -7
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCalcData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getCalcData.js +16 -0
- package/mobile/dist/components/CreditForm/getCalcData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +3 -2
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js +0 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getZeroStepData.d.ts +1 -1
- package/mobile/dist/components/CreditForm/getZeroStepData.js +3 -8
- package/mobile/dist/components/CreditForm/getZeroStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -1
- package/mobile/dist/components/CreditForm/renderInputs.js +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +2 -2
- package/mobile/dist/components/CreditForm/renderStep.js +2 -2
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -6
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/filterItems.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/filterItems.js +9 -0
- package/mobile/dist/components/OfficesAtmsMap/filterItems.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js +3 -3
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
- package/mobile/dist/hooks/useJSONRef/useJSONRef.js +13 -3
- package/mobile/dist/hooks/useJSONRef/useJSONRef.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js +15 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/RegionField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.js +4 -6
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +5 -4
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +2 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getCardTypes.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getCardTypes.js +5 -6
- package/mobile/lib/api/RetailAPI/getCardTypes.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +4 -5
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -2
- package/mobile/lib/api/RetailAPI/updateUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -4
- package/mobile/lib/api/RetailAPI/updateUserTask.js +2 -2
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputs.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +5 -3
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
- package/mobile/lib/components/CalculatorCredit/defaultValueAdapter.js +15 -0
- package/mobile/lib/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +4 -4
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +3 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +2 -14
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.js +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/renderStep.js +2 -2
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +5 -2
- package/mobile/lib/components/CreditForm/CreditForm.js +6 -20
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +4 -5
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +11 -11
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +2 -3
- package/mobile/lib/components/CreditForm/CreditFormStep.js +6 -11
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
- package/mobile/lib/components/CreditForm/ProgramsSourceProps.js +2 -0
- package/mobile/lib/components/CreditForm/ProgramsSourceProps.js.map +1 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +9 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +9 -7
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCalcData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getCalcData.js +13 -0
- package/mobile/lib/components/CreditForm/getCalcData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +3 -2
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js +0 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getZeroStepData.d.ts +1 -1
- package/mobile/lib/components/CreditForm/getZeroStepData.js +3 -8
- package/mobile/lib/components/CreditForm/getZeroStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -1
- package/mobile/lib/components/CreditForm/renderInputs.js +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +2 -2
- package/mobile/lib/components/CreditForm/renderStep.js +2 -2
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +0 -4
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/filterItems.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/filterItems.js +6 -0
- package/mobile/lib/components/OfficesAtmsMap/filterItems.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
- package/mobile/lib/hooks/useJSONRef/useJSONRef.js +13 -3
- package/mobile/lib/hooks/useJSONRef/useJSONRef.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js +13 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionField.js +3 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.js +4 -6
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +5 -4
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -0
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/getCardTypes.ts +5 -7
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +9 -7
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +2 -3
- package/mobile/src/api/RetailAPI/updateUserTask.ts +6 -5
- package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderInputs.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +13 -7
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +32 -16
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +7 -5
- package/mobile/src/components/CalculatorCredit/defaultValueAdapter.ts +26 -0
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +4 -8
- package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +7 -1
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +14 -8
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +3 -18
- package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +24 -21
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +3 -2
- package/mobile/src/components/CreditCardForm/renderStep.tsx +3 -4
- package/mobile/src/components/CreditForm/CreditForm.tsx +12 -30
- package/mobile/src/components/CreditForm/CreditFormContent.ts +5 -8
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +14 -13
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +10 -24
- package/mobile/src/components/CreditForm/ProgramsSourceProps.tsx +20 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +9 -1
- package/mobile/src/components/CreditForm/formStateMap.tsx +9 -7
- package/mobile/src/components/CreditForm/getCalcData.ts +19 -0
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -2
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +0 -1
- package/mobile/src/components/CreditForm/getZeroStepData.ts +7 -11
- package/mobile/src/components/CreditForm/renderInputs.tsx +3 -2
- package/mobile/src/components/CreditForm/renderStep.tsx +3 -3
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +0 -9
- package/mobile/src/components/OfficesAtmsMap/filterItems.tsx +11 -0
- package/mobile/src/components/OfficesAtmsMap/useOfficesAtmsMapData.tsx +1 -1
- package/mobile/src/hooks/useJSONRef/useJSONRef.ts +21 -4
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +14 -10
- package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +17 -4
- package/mobile/src/ui-kit/FormField/Fields/CreditCalcField.tsx +24 -0
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +8 -4
- package/mobile/src/ui-kit/FormField/Fields/RegionField.tsx +4 -1
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -0
- package/mobile/src/ui-kit/FormField/SelectField.tsx +4 -6
- package/mobile/src/ui-kit/FormField/getField.tsx +5 -4
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -0
- package/package.json +3 -2
- package/src/api/RetailAPI/getCardTypes.ts +5 -7
- package/src/api/RetailAPI/getPaymentSystems.ts +9 -7
- package/src/api/RetailAPI/updateUserProfile.ts +2 -3
- package/src/api/RetailAPI/updateUserTask.ts +6 -5
- package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/ApplicationForm/renderInputs.tsx +2 -2
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +13 -7
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +32 -16
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +7 -5
- package/src/components/CalculatorCredit/defaultValueAdapter.ts +26 -0
- package/src/components/CreditCardForm/CreditCardForm.tsx +4 -8
- package/src/components/CreditCardForm/CreditCardFormStatus.tsx +7 -1
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +14 -8
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +3 -18
- package/src/components/CreditCardForm/PendingStatusContent.tsx +24 -21
- package/src/components/CreditCardForm/renderInputs.tsx +3 -2
- package/src/components/CreditCardForm/renderStep.tsx +3 -4
- package/src/components/CreditForm/CreditForm.fixture.tsx +6 -1
- package/src/components/CreditForm/CreditForm.tsx +12 -30
- package/src/components/CreditForm/CreditFormContent.ts +5 -8
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +14 -13
- package/src/components/CreditForm/CreditFormStep.tsx +10 -24
- package/src/components/CreditForm/ProgramsSourceProps.tsx +20 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +9 -1
- package/src/components/CreditForm/formStateMap.tsx +9 -7
- package/src/components/CreditForm/getCalcData.ts +19 -0
- package/src/components/CreditForm/getCreditFormTaskData.ts +3 -2
- package/src/components/CreditForm/getSecondStepData.tsx +0 -1
- package/src/components/CreditForm/getZeroStepData.ts +7 -11
- package/src/components/CreditForm/renderInputs.tsx +3 -2
- package/src/components/CreditForm/renderStep.tsx +3 -3
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +0 -9
- package/src/components/OfficesAtmsMap/filterItems.tsx +11 -0
- package/src/components/OfficesAtmsMap/useOfficesAtmsMapData.tsx +1 -1
- package/src/hooks/useJSONRef/useJSONRef.ts +21 -4
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +14 -10
- package/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +17 -4
- package/src/ui-kit/FormField/Fields/CreditCalcField.tsx +24 -0
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +8 -4
- package/src/ui-kit/FormField/Fields/RegionField.tsx +4 -1
- package/src/ui-kit/FormField/NameFieldDef.ts +1 -0
- package/src/ui-kit/FormField/SelectField.tsx +4 -6
- package/src/ui-kit/FormField/getField.tsx +5 -4
- package/src/ui-kit/FormField/getObjectValidator.tsx +2 -0
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { getTaskStatus, STATUS_TYPE } from '../../api/RetailAPI/getTaskStatus';
|
|
4
4
|
import { sendSignalToProcess, type SignalType } from '../../api/RetailAPI/sendSignalToProcess';
|
|
5
|
+
import { useInterval } from '../../hooks/useInterval';
|
|
5
6
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
6
7
|
import { type VNode } from '../../model/VNode';
|
|
7
8
|
import { FailedStatusContent } from './FailedStatusContent';
|
|
@@ -24,25 +25,30 @@ export const CreditCardFormStatusTracker = JSX(() => {
|
|
|
24
25
|
await sendSignalToProcess({ signalType, taskId });
|
|
25
26
|
}
|
|
26
27
|
})();
|
|
28
|
+
}, [taskId]);
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
const trackStatus = useCallback(
|
|
31
|
+
async (stopInterval: () => void) => {
|
|
29
32
|
const res = await getTaskStatus({ taskId });
|
|
30
33
|
|
|
31
34
|
if (res && res?.statusCd !== STATUS_TYPE.process) {
|
|
32
|
-
|
|
35
|
+
stopInterval();
|
|
33
36
|
setStatus(res.statusCd);
|
|
34
37
|
}
|
|
35
|
-
},
|
|
38
|
+
},
|
|
39
|
+
[taskId],
|
|
40
|
+
);
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
}, []);
|
|
42
|
+
useInterval(trackStatus, 30000);
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
const handleExpire = () => setStatus(STATUS_TYPE.rework);
|
|
45
|
+
|
|
46
|
+
return renderStatus(status, handleExpire);
|
|
41
47
|
});
|
|
42
48
|
|
|
43
|
-
const renderStatus = (status: STATUS_TYPE) => {
|
|
49
|
+
const renderStatus = (status: STATUS_TYPE, handleExpire: () => void) => {
|
|
44
50
|
const statusesMap: Record<STATUS_TYPE, VNode> = {
|
|
45
|
-
IN_PROCESS: <PendingStatusContent />,
|
|
51
|
+
IN_PROCESS: <PendingStatusContent handleExpireTimer={handleExpire} />,
|
|
46
52
|
CANCELLED: <FailedStatusContent />,
|
|
47
53
|
APPROVED: <SuccessStatusContent />,
|
|
48
54
|
REVISION: <ReworkStatusContent />,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { useForm } from '../../hooks/useForm';
|
|
4
3
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
4
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
6
5
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
|
-
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
8
6
|
import { CreditCardFormStatusTracker } from './CreditCardFormStatusTracker';
|
|
9
7
|
import { getInitialFormState } from './getInitialFormState';
|
|
10
|
-
import { renderStep
|
|
8
|
+
import { renderStep } from './renderStep';
|
|
11
9
|
import { StepsNavigationButtons } from './StepsNavigationButtons';
|
|
12
10
|
import { useCreditCardFormAPI } from './useCreditCardFormAPI';
|
|
13
11
|
|
|
@@ -25,14 +23,8 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
|
25
23
|
const [localStorageData, saveStep] = useLocalStorage<Record<string, any>>('leadForm');
|
|
26
24
|
const initialState = getInitialFormState(step, localStorageData);
|
|
27
25
|
|
|
28
|
-
const customSubmit = useRef<CustomSubmit | undefined>(undefined);
|
|
29
|
-
|
|
30
26
|
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
31
27
|
|
|
32
|
-
const registerSubmit = useCallback((submit?: CustomSubmit) => {
|
|
33
|
-
customSubmit.current = submit;
|
|
34
|
-
}, []);
|
|
35
|
-
|
|
36
28
|
const { handleSubmit } = useCreditCardFormAPI({
|
|
37
29
|
step,
|
|
38
30
|
inputs,
|
|
@@ -42,21 +34,14 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
|
42
34
|
});
|
|
43
35
|
|
|
44
36
|
const [, { field, onSubmit }] = useForm(initialState, {
|
|
45
|
-
onSubmit:
|
|
46
|
-
handleSubmit({ ...formData, ...customSubmit.current?.(ev) } as FormState);
|
|
47
|
-
},
|
|
37
|
+
onSubmit: handleSubmit,
|
|
48
38
|
});
|
|
49
39
|
|
|
50
40
|
return isFormFinished ? (
|
|
51
41
|
<CreditCardFormStatusTracker />
|
|
52
42
|
) : (
|
|
53
43
|
<form onSubmit={onSubmit} className="space-y-m">
|
|
54
|
-
{renderStep({
|
|
55
|
-
sections,
|
|
56
|
-
field,
|
|
57
|
-
step,
|
|
58
|
-
registerSubmit,
|
|
59
|
-
})}
|
|
44
|
+
{renderStep({ sections, field, step })}
|
|
60
45
|
<StepsNavigationButtons step={step} onPrevStep={onPrevStep} />
|
|
61
46
|
</form>
|
|
62
47
|
);
|
|
@@ -2,25 +2,28 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
3
3
|
import { CreditCardFormStatus } from './CreditCardFormStatus';
|
|
4
4
|
|
|
5
|
-
export const PendingStatusContent = JSX(
|
|
6
|
-
|
|
5
|
+
export const PendingStatusContent = JSX(
|
|
6
|
+
({ handleExpireTimer }: { handleExpireTimer: () => void }) => {
|
|
7
|
+
const [leadForm] = useLocalStorage<Record<string, any>>('leadForm');
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
return (
|
|
10
|
+
<CreditCardFormStatus
|
|
11
|
+
interval={300}
|
|
12
|
+
intervalExpireAction={handleExpireTimer}
|
|
13
|
+
title="Заявка успешно отправлена"
|
|
14
|
+
description="Не закрывайте окно, скоро сообщим результат"
|
|
15
|
+
sectionInfoTitle="Заявленные условия по кредиту"
|
|
16
|
+
sectionInfo={[
|
|
17
|
+
{
|
|
18
|
+
label: 'Название продукта',
|
|
19
|
+
description: 'Кредитная карта',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'Категория',
|
|
23
|
+
description: leadForm?.cardCategory?.text,
|
|
24
|
+
},
|
|
25
|
+
]}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
);
|
|
@@ -6,7 +6,8 @@ import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
|
6
6
|
export interface RenderInputsProps {
|
|
7
7
|
inputs: FieldDef[];
|
|
8
8
|
field: FormFieldRegisterer<FormState>;
|
|
9
|
+
params?: Record<string, any>;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export const renderInputs = ({ field, inputs }: RenderInputsProps) =>
|
|
12
|
-
inputs.map(getField(field,
|
|
12
|
+
export const renderInputs = ({ field, inputs, params }: RenderInputsProps) =>
|
|
13
|
+
inputs.map(getField(field, params));
|
|
@@ -9,15 +9,14 @@ import { renderInfo } from './renderInfo';
|
|
|
9
9
|
import { renderInputs } from './renderInputs';
|
|
10
10
|
|
|
11
11
|
export type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
|
|
12
|
-
|
|
13
12
|
export interface StepProps {
|
|
14
13
|
sections?: CreditCardSectionsProps[];
|
|
15
14
|
field: FormFieldRegisterer<FormState>;
|
|
16
|
-
registerSubmit?: (submit: CustomSubmit) => void;
|
|
17
15
|
step: number;
|
|
16
|
+
params?: Record<string, any>;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
export const renderStep = ({ sections, field, step }: StepProps) =>
|
|
19
|
+
export const renderStep = ({ sections, field, step, params }: StepProps) =>
|
|
21
20
|
sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
22
21
|
const inputs = calculateInputs(getValue(field))(origInputs, step);
|
|
23
22
|
|
|
@@ -27,7 +26,7 @@ export const renderStep = ({ sections, field, step }: StepProps) =>
|
|
|
27
26
|
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
28
27
|
{renderInfo(filteredInputs)}
|
|
29
28
|
{renderTitle(title)}
|
|
30
|
-
{renderInputs({ field, inputs })}
|
|
29
|
+
{renderInputs({ field, inputs, params })}
|
|
31
30
|
</div>
|
|
32
31
|
);
|
|
33
32
|
});
|
|
@@ -17,7 +17,12 @@ const taskId = globalThis.localStorage.getItem('taskId');
|
|
|
17
17
|
export default {
|
|
18
18
|
default: (
|
|
19
19
|
<div>
|
|
20
|
-
<CreditForm
|
|
20
|
+
<CreditForm
|
|
21
|
+
className="col-span-12"
|
|
22
|
+
programsSource={{
|
|
23
|
+
$ref: '/wcms-resources/products-credit-calc-data.json',
|
|
24
|
+
}}
|
|
25
|
+
/>
|
|
21
26
|
<PopupManager />
|
|
22
27
|
<DialogManager />
|
|
23
28
|
</div>
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
3
|
+
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
+
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
5
6
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
7
|
import { style } from '../../utils/style';
|
|
7
|
-
import { CalculatorCredit } from '../CalculatorCredit/CalculatorCredit';
|
|
8
8
|
import { type CreditFormContent } from './CreditFormContent';
|
|
9
9
|
import { CreditFormProgress } from './CreditFormProgress';
|
|
10
10
|
import { CreditFormStep } from './CreditFormStep';
|
|
11
11
|
import { stepsSectionsMap } from './creditFormStepsData';
|
|
12
|
+
import { type ProgramsSourceProps } from './ProgramsSourceProps';
|
|
12
13
|
|
|
13
|
-
interface
|
|
14
|
+
interface CreditFormProps extends CreditFormContent, UniBlockProps {
|
|
15
|
+
programsSource?: ProgramsSourceProps | JSONRefObject;
|
|
16
|
+
}
|
|
14
17
|
|
|
15
|
-
const
|
|
18
|
+
const STEPS = 5;
|
|
16
19
|
|
|
17
|
-
const
|
|
20
|
+
const STEP_TITLES = [
|
|
18
21
|
'',
|
|
19
22
|
'Персональные данные',
|
|
20
23
|
'Данные о трудоустройстве',
|
|
@@ -23,7 +26,7 @@ const WIZARD_TITLES = [
|
|
|
23
26
|
'Отделение Банка',
|
|
24
27
|
];
|
|
25
28
|
|
|
26
|
-
export const CreditForm =
|
|
29
|
+
export const CreditForm = UniBlock<CreditFormProps>(({ className, programsSource, ...rest }) => {
|
|
27
30
|
const [step, setStep] = useState(0);
|
|
28
31
|
|
|
29
32
|
const formContainerRef = useRef<HTMLDivElement | null>(null);
|
|
@@ -35,7 +38,7 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
35
38
|
useEffect(updateRefreshToken, []);
|
|
36
39
|
|
|
37
40
|
const handleNextStep = useCallback(() => {
|
|
38
|
-
setStep((_) => Math.min(_ + 1,
|
|
41
|
+
setStep((_) => Math.min(_ + 1, STEPS));
|
|
39
42
|
scrollToTop();
|
|
40
43
|
}, []);
|
|
41
44
|
|
|
@@ -54,7 +57,7 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
54
57
|
<BlockWrapper className={style('bg-transparent', className)} defaultPadding="p-0" {...rest}>
|
|
55
58
|
<div ref={formContainerRef} className="container grid grid-cols-12">
|
|
56
59
|
{isStartStep || isFormFinished ? null : (
|
|
57
|
-
<CreditFormProgress stepsTitles={
|
|
60
|
+
<CreditFormProgress stepsTitles={STEP_TITLES} step={step} totalSteps={STEPS} />
|
|
58
61
|
)}
|
|
59
62
|
<div className="py-lg px-5xl mt-2xs bg-white col-span-12">
|
|
60
63
|
<CreditFormStep
|
|
@@ -65,28 +68,7 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
65
68
|
onPrevStep={handlePrevStep}
|
|
66
69
|
isFormFinished={isFormFinished}
|
|
67
70
|
finishForm={setIsFormFinished}
|
|
68
|
-
|
|
69
|
-
isStartStep
|
|
70
|
-
? ({ registerSubmit, field }) => (
|
|
71
|
-
<CalculatorCredit
|
|
72
|
-
{...{
|
|
73
|
-
defaultParams: {
|
|
74
|
-
sum: field('moneyValue').value,
|
|
75
|
-
period: field('monthsValue').value,
|
|
76
|
-
isAnnuity: field('isAnnuity').value,
|
|
77
|
-
},
|
|
78
|
-
title: 'Калькулятор кредита',
|
|
79
|
-
footnote:
|
|
80
|
-
'Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.',
|
|
81
|
-
calcSource: {
|
|
82
|
-
$ref: '/wcms-resources/credit-calculator-data.json',
|
|
83
|
-
},
|
|
84
|
-
}}
|
|
85
|
-
registerSubmit={registerSubmit}
|
|
86
|
-
/>
|
|
87
|
-
)
|
|
88
|
-
: undefined
|
|
89
|
-
}
|
|
71
|
+
programsSource={programsSource as ProgramsSourceProps}
|
|
90
72
|
/>
|
|
91
73
|
</div>
|
|
92
74
|
</div>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
1
|
+
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
3
2
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @title Форма заявки на потребительский кредит настраиваемая
|
|
7
6
|
*/
|
|
8
|
-
export type CreditFormContent = UniBlockContent &
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
programId?: string;
|
|
13
|
-
};
|
|
7
|
+
export type CreditFormContent = UniBlockContent & {
|
|
8
|
+
/** @title Данные по кредитным программам */
|
|
9
|
+
programsSource?: JSONRefObject;
|
|
10
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { getTaskStatus, STATUS_TYPE } from '../../api/RetailAPI/getTaskStatus';
|
|
4
4
|
import { sendSignalToProcess, type SignalType } from '../../api/RetailAPI/sendSignalToProcess';
|
|
5
|
+
import { useInterval } from '../../hooks/useInterval';
|
|
5
6
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
6
7
|
import { type VNode } from '../../model/VNode';
|
|
7
8
|
import { FailedStatusContent } from './FailedStatusContent';
|
|
8
9
|
import { PendingStatusContent } from './PendingStatusContent';
|
|
9
10
|
import { ReworkStatusContent } from './ReworkStatusContent';
|
|
10
11
|
import { SuccessStatusContent } from './SuccessStatusContent';
|
|
11
|
-
|
|
12
12
|
const SIGNAL_TYPES: SignalType[] = [
|
|
13
13
|
'CREATE_APPLICATION_SHORT_SIGNAL',
|
|
14
14
|
'CREATE_APPLICATION_LOAN_V3_SIGNAL',
|
|
@@ -24,20 +24,21 @@ export const CreditFormStatusTracker = JSX(() => {
|
|
|
24
24
|
await sendSignalToProcess({ signalType, taskId });
|
|
25
25
|
}
|
|
26
26
|
})();
|
|
27
|
+
}, [taskId]);
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
getTaskStatus({ taskId })
|
|
31
|
-
if (res?.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
32
|
-
clearInterval(pullingInterval);
|
|
33
|
-
setStatus(res.statusCd);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
29
|
+
const trackStatus = useCallback(
|
|
30
|
+
async (stopInterval: () => void) => {
|
|
31
|
+
const res = await getTaskStatus({ taskId });
|
|
36
32
|
|
|
37
|
-
|
|
33
|
+
if (res && res?.statusCd !== STATUS_TYPE.process) {
|
|
34
|
+
stopInterval();
|
|
35
|
+
setStatus(res.statusCd);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
[taskId],
|
|
39
|
+
);
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
}, []);
|
|
41
|
+
useInterval(trackStatus, 30000);
|
|
41
42
|
|
|
42
43
|
const handleExpire = () => setStatus(STATUS_TYPE.rework);
|
|
43
44
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { useForm } from '../../hooks/useForm';
|
|
4
3
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
4
|
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
6
|
-
import { type VNode } from '../../model/VNode';
|
|
7
5
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
|
-
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
9
6
|
import { CreditFormStatusTracker } from './CreditFormStatusTracker';
|
|
10
7
|
import { getInitialFormState } from './getInitialFormState';
|
|
11
|
-
import {
|
|
8
|
+
import { type ProgramsSourceProps } from './ProgramsSourceProps';
|
|
9
|
+
import { renderStep } from './renderStep';
|
|
12
10
|
import { StepsNavigationButtons } from './StepsNavigationButtons';
|
|
13
11
|
import { useCreditFormAPI } from './useCreditFormAPI';
|
|
14
12
|
|
|
@@ -17,31 +15,21 @@ export interface CreditFormStepProps {
|
|
|
17
15
|
sections: SectionsProps[];
|
|
18
16
|
onNextStep: () => void;
|
|
19
17
|
onPrevStep: () => void;
|
|
20
|
-
renderStep?: (props: StepProps) => VNode | VNode[] | undefined;
|
|
21
18
|
isFormFinished: boolean;
|
|
22
19
|
finishForm?: (bool: boolean) => void;
|
|
20
|
+
programsSource?: ProgramsSourceProps;
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
export const CreditFormStep = JSX<CreditFormStepProps>(
|
|
26
|
-
({
|
|
27
|
-
step,
|
|
28
|
-
sections,
|
|
29
|
-
onPrevStep,
|
|
30
|
-
onNextStep,
|
|
31
|
-
renderStep = defaultRenderStep,
|
|
32
|
-
isFormFinished,
|
|
33
|
-
finishForm,
|
|
34
|
-
}) => {
|
|
24
|
+
({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm, programsSource }) => {
|
|
35
25
|
const [localStorageData, saveStep] = useLocalStorage<Record<string, any>>('leadForm');
|
|
36
|
-
const
|
|
26
|
+
const [programId] = useLocalStorage<string>('programId');
|
|
37
27
|
|
|
38
|
-
const
|
|
28
|
+
const calcData = programsSource?.[programId ?? '']; // Need normalizator useForm, to be save defaultParams
|
|
39
29
|
|
|
40
|
-
const
|
|
30
|
+
const initialState = getInitialFormState(step, localStorageData);
|
|
41
31
|
|
|
42
|
-
const
|
|
43
|
-
customSubmit.current = submit;
|
|
44
|
-
}, []);
|
|
32
|
+
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
45
33
|
|
|
46
34
|
const { handleSubmit } = useCreditFormAPI({
|
|
47
35
|
step,
|
|
@@ -52,16 +40,14 @@ export const CreditFormStep = JSX<CreditFormStepProps>(
|
|
|
52
40
|
});
|
|
53
41
|
|
|
54
42
|
const [, { field, onSubmit }] = useForm(initialState, {
|
|
55
|
-
onSubmit:
|
|
56
|
-
handleSubmit({ ...formData, ...customSubmit.current?.(ev) } as FormState);
|
|
57
|
-
},
|
|
43
|
+
onSubmit: handleSubmit,
|
|
58
44
|
});
|
|
59
45
|
|
|
60
46
|
return isFormFinished ? (
|
|
61
47
|
<CreditFormStatusTracker />
|
|
62
48
|
) : (
|
|
63
49
|
<form onSubmit={onSubmit} className="space-y-m">
|
|
64
|
-
{renderStep({ sections, field, step,
|
|
50
|
+
{renderStep({ sections, field, step, params: { calcData } })}
|
|
65
51
|
<StepsNavigationButtons step={step} onPrevStep={onPrevStep} />
|
|
66
52
|
</form>
|
|
67
53
|
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
+
import {
|
|
3
|
+
type CreditCalculatorData,
|
|
4
|
+
type CreditCalculatorUserInputParams,
|
|
5
|
+
} from '../CalculatorCredit/CalculatorCreditContent';
|
|
6
|
+
|
|
7
|
+
export type ProgramsSourceProps = {
|
|
8
|
+
[programId: string]: {
|
|
9
|
+
title?: string;
|
|
10
|
+
footnote?: string;
|
|
11
|
+
paramsViewSettings: {
|
|
12
|
+
isShowSalaryClient?: boolean;
|
|
13
|
+
isShowInsurance?: boolean;
|
|
14
|
+
isShowStateEmployee?: boolean;
|
|
15
|
+
isShowPensionClient?: boolean;
|
|
16
|
+
};
|
|
17
|
+
defaultParams?: CreditCalculatorUserInputParams;
|
|
18
|
+
calcSource?: CreditCalculatorData & JSONRefObject;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -5,7 +5,15 @@ import { type SectionsProps } from '../../model/InputSectionsType';
|
|
|
5
5
|
|
|
6
6
|
export const stepsSectionsMap: SectionsProps[][] = [
|
|
7
7
|
[
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
columns: 1,
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
fieldType: 'common',
|
|
13
|
+
name: 'calculator',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
},
|
|
9
17
|
],
|
|
10
18
|
[
|
|
11
19
|
{
|
|
@@ -2,13 +2,15 @@ import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
|
2
2
|
|
|
3
3
|
export const formStateMap: Partial<FormState>[] = [
|
|
4
4
|
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
calculator: {
|
|
6
|
+
moneyValue: 0,
|
|
7
|
+
monthsValue: 0,
|
|
8
|
+
isAnnuity: false,
|
|
9
|
+
isInsurance: false,
|
|
10
|
+
isSalaryClient: false,
|
|
11
|
+
isPensionClient: false,
|
|
12
|
+
isStateEmployee: false,
|
|
13
|
+
},
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
surname: '',
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type PaymentType, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
|
|
4
|
+
const PAYMENT_TYPE_DATA: Record<string, PaymentType> = {
|
|
5
|
+
annuity: { key: 'ANNUITY', value: 'Аннуитетный' },
|
|
6
|
+
differential: { key: 'DIFFERENTIAL', value: 'Дифференцированный ' },
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const getCalcData = (
|
|
10
|
+
formData: FormState,
|
|
11
|
+
): Pick<UpdateUserTaskBody['task'], 'loanAmount' | 'creditPeriod' | 'paymentTypeCd'> => {
|
|
12
|
+
const { moneyValue, monthsValue, isAnnuity } = formData?.calculator ?? {};
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
loanAmount: moneyValue,
|
|
16
|
+
creditPeriod: monthsValue,
|
|
17
|
+
paymentTypeCd: PAYMENT_TYPE_DATA[isAnnuity ? 'annuity' : 'differential'],
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
3
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
|
+
import { getCalcData } from './getCalcData';
|
|
4
5
|
import { getFifthStepData } from './getFifthStepData';
|
|
5
6
|
import { getFirstStepData } from './getFirstStepData';
|
|
6
7
|
import { getFourthStepData } from './getFourthStepData';
|
|
@@ -45,7 +46,7 @@ export const getCreditFormTaskData = ({
|
|
|
45
46
|
...getCurrentStepData(step, formData),
|
|
46
47
|
},
|
|
47
48
|
],
|
|
48
|
-
...
|
|
49
|
+
...getCalcData(formData),
|
|
49
50
|
...getFifthStepData(formData),
|
|
50
51
|
esiaAccountTypeCd: {
|
|
51
52
|
key: formData?.esiaAccountTypeCd?.key,
|
|
@@ -57,7 +58,7 @@ export const getCreditFormTaskData = ({
|
|
|
57
58
|
const getCurrentStepData = (step: number, formData: FormState): Partial<Participant> => {
|
|
58
59
|
switch (step) {
|
|
59
60
|
case 0:
|
|
60
|
-
return
|
|
61
|
+
return getZeroStepData(formData);
|
|
61
62
|
case 1:
|
|
62
63
|
return getFirstStepData(formData);
|
|
63
64
|
case 2:
|
|
@@ -38,7 +38,6 @@ export const getSecondStepData = (formData: FormState): Partial<Participant> =>
|
|
|
38
38
|
generalSeniority: experience5Years,
|
|
39
39
|
jobsNumber,
|
|
40
40
|
lastWorkDuration: lastJobExperience,
|
|
41
|
-
payrollCardRshbFlg: true, // TODO: Remove hardcode
|
|
42
41
|
positionCd: positionOrganization,
|
|
43
42
|
participantContacts: getParticipantContacts({
|
|
44
43
|
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { type Participant
|
|
1
|
+
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const getZeroStepData = (formData: FormState): Partial<Participant> => {
|
|
10
|
-
const { moneyValue, monthsValue, isAnnuity } = formData;
|
|
4
|
+
export const getZeroStepData = (
|
|
5
|
+
formData: FormState,
|
|
6
|
+
): Pick<Participant, 'payrollCardRshbFlg' | 'consentInsuranceFlg'> => {
|
|
7
|
+
const { isInsurance, isSalaryClient } = formData?.calculator ?? {};
|
|
11
8
|
|
|
12
9
|
return {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
paymentTypeCd: PAYMENT_TYPE_DATA[isAnnuity ? 'annuity' : 'differential'],
|
|
10
|
+
payrollCardRshbFlg: isInsurance,
|
|
11
|
+
consentInsuranceFlg: isSalaryClient,
|
|
16
12
|
};
|
|
17
13
|
};
|
|
@@ -6,7 +6,8 @@ import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
|
6
6
|
export interface RenderInputsProps {
|
|
7
7
|
inputs: FieldDef[];
|
|
8
8
|
field: FormFieldRegisterer<FormState>;
|
|
9
|
+
params?: Record<string, any>;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export const renderInputs = ({ field, inputs }: RenderInputsProps) =>
|
|
12
|
-
inputs.map(getField(field,
|
|
12
|
+
export const renderInputs = ({ field, inputs, params }: RenderInputsProps) =>
|
|
13
|
+
inputs.map(getField(field, params));
|
|
@@ -13,11 +13,11 @@ export type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
|
|
|
13
13
|
export interface StepProps {
|
|
14
14
|
sections?: SectionsProps[];
|
|
15
15
|
field: FormFieldRegisterer<FormState>;
|
|
16
|
-
registerSubmit?: (submit: CustomSubmit) => void;
|
|
17
16
|
step: number;
|
|
17
|
+
params?: Record<string, any>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const renderStep = ({ sections, field, step }: StepProps) =>
|
|
20
|
+
export const renderStep = ({ sections, field, step, params }: StepProps) =>
|
|
21
21
|
sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
22
22
|
const inputs = calculateInputs(getValue(field))(origInputs, step);
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ export const renderStep = ({ sections, field, step }: StepProps) =>
|
|
|
25
25
|
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
26
26
|
{renderInfo(inputs)}
|
|
27
27
|
{renderTitle(title)}
|
|
28
|
-
{renderInputs({ field, inputs })}
|
|
28
|
+
{renderInputs({ field, inputs, params })}
|
|
29
29
|
</div>
|
|
30
30
|
);
|
|
31
31
|
});
|
|
@@ -96,15 +96,6 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm |
|
|
|
96
96
|
},
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
-
export const filterItems = (
|
|
100
|
-
data: (Branch | RemoteWorkplace)[],
|
|
101
|
-
filtrationState: Record<string, boolean>,
|
|
102
|
-
) => {
|
|
103
|
-
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
104
|
-
|
|
105
|
-
return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
|
|
106
|
-
};
|
|
107
|
-
|
|
108
99
|
export const getFiltersWithNonEmptyData = (data: (Branch | Atm | RemoteWorkplace)[]) =>
|
|
109
100
|
Object.keys(INITIAL_FILTRATION_STATE).filter(
|
|
110
101
|
(_) => data.filter((item) => FILTRATION_PREDICATES[_](item)).length,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FILTRATION_PREDICATES } from './filters';
|
|
2
|
+
import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
3
|
+
|
|
4
|
+
export const filterItems = (
|
|
5
|
+
data: (Branch | RemoteWorkplace)[],
|
|
6
|
+
filtrationState: Record<string, boolean>,
|
|
7
|
+
) => {
|
|
8
|
+
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
9
|
+
|
|
10
|
+
return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
|
|
11
|
+
};
|