@redneckz/wildless-cms-uni-blocks 0.14.730 → 0.14.732
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +30 -64
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
- package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
- package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
- package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +2 -2
- package/bundle/components/CreditForm/renderStep.d.ts +3 -4
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/bundle/model/FormTypeFieldDef.d.ts +2 -0
- package/bundle/model/InputSectionsType.d.ts +10 -1
- package/bundle/services/retail/inputs.d.ts +1 -0
- package/bundle/services/retail/model/RetailFormContent.d.ts +3 -33
- package/bundle/services/retail/utils/calculateInputs.d.ts +3 -2
- package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
- package/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
- package/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/bundle/ui-kit/FormField/getPremium.d.ts +2 -2
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
- package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -35
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/renderInputs.js +2 -2
- package/dist/components/ApplicationLeadForm/renderInputs.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
- package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/dist/components/CreditCardForm/renderStep.d.ts +1 -2
- package/dist/components/CreditCardForm/renderStep.js +1 -3
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.d.ts +2 -2
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/renderInputs.d.ts +2 -2
- package/dist/components/CreditForm/renderStep.d.ts +3 -4
- package/dist/components/CreditForm/renderStep.js +1 -2
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/dist/model/FormTypeFieldDef.d.ts +2 -0
- package/dist/model/FormTypeFieldDef.js +2 -0
- package/dist/model/FormTypeFieldDef.js.map +1 -0
- package/dist/model/InputSectionsType.d.ts +10 -1
- package/dist/services/retail/content.js +12 -8
- package/dist/services/retail/content.js.map +1 -1
- package/dist/services/retail/inputs.d.ts +1 -0
- package/dist/services/retail/inputs.js +2 -0
- package/dist/services/retail/inputs.js.map +1 -1
- package/dist/services/retail/model/RetailFormContent.d.ts +3 -33
- package/dist/services/retail/model/RetailFormContent.js +0 -2
- package/dist/services/retail/model/RetailFormContent.js.map +1 -1
- package/dist/services/retail/utils/calculateInputs.d.ts +3 -2
- package/dist/services/retail/utils/calculateInputs.js.map +1 -1
- package/dist/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
- package/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
- package/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/dist/ui-kit/FormField/getPremium.d.ts +2 -2
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
- package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -35
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/renderInputs.js +2 -2
- package/lib/components/ApplicationLeadForm/renderInputs.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
- package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/lib/components/CreditCardForm/renderStep.d.ts +1 -2
- package/lib/components/CreditCardForm/renderStep.js +2 -4
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.d.ts +2 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +2 -2
- package/lib/components/CreditForm/renderStep.d.ts +3 -4
- package/lib/components/CreditForm/renderStep.js +1 -2
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/model/FormTypeFieldDef.d.ts +2 -0
- package/lib/model/FormTypeFieldDef.js +2 -0
- package/lib/model/FormTypeFieldDef.js.map +1 -0
- package/lib/model/InputSectionsType.d.ts +10 -1
- package/lib/services/retail/content.js +12 -8
- package/lib/services/retail/content.js.map +1 -1
- package/lib/services/retail/inputs.d.ts +1 -0
- package/lib/services/retail/inputs.js +2 -0
- package/lib/services/retail/inputs.js.map +1 -1
- package/lib/services/retail/model/RetailFormContent.d.ts +3 -33
- package/lib/services/retail/model/RetailFormContent.js +0 -2
- package/lib/services/retail/model/RetailFormContent.js.map +1 -1
- package/lib/services/retail/utils/calculateInputs.d.ts +3 -2
- package/lib/services/retail/utils/calculateInputs.js.map +1 -1
- package/lib/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
- package/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
- package/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/lib/ui-kit/FormField/getPremium.d.ts +2 -2
- package/mobile/bundle/bundle.umd.js +30 -64
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
- package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
- package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +3 -4
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +2 -0
- package/mobile/bundle/model/InputSectionsType.d.ts +10 -1
- package/mobile/bundle/services/retail/inputs.d.ts +1 -0
- package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +3 -33
- package/mobile/bundle/services/retail/utils/calculateInputs.d.ts +3 -2
- package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
- package/mobile/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getPremium.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -35
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderInputs.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/renderStep.js +1 -3
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/dist/components/CreditForm/renderStep.d.ts +3 -4
- package/mobile/dist/components/CreditForm/renderStep.js +1 -2
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/dist/model/FormTypeFieldDef.d.ts +2 -0
- package/mobile/dist/model/FormTypeFieldDef.js +2 -0
- package/mobile/dist/model/FormTypeFieldDef.js.map +1 -0
- package/mobile/dist/model/InputSectionsType.d.ts +10 -1
- package/mobile/dist/services/retail/content.js +12 -8
- package/mobile/dist/services/retail/content.js.map +1 -1
- package/mobile/dist/services/retail/inputs.d.ts +1 -0
- package/mobile/dist/services/retail/inputs.js +2 -0
- package/mobile/dist/services/retail/inputs.js.map +1 -1
- package/mobile/dist/services/retail/model/RetailFormContent.d.ts +3 -33
- package/mobile/dist/services/retail/model/RetailFormContent.js +0 -2
- package/mobile/dist/services/retail/model/RetailFormContent.js.map +1 -1
- package/mobile/dist/services/retail/utils/calculateInputs.d.ts +3 -2
- package/mobile/dist/services/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getPremium.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -35
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderInputs.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/renderStep.js +2 -4
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/lib/components/CreditForm/renderStep.d.ts +3 -4
- package/mobile/lib/components/CreditForm/renderStep.js +1 -2
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/lib/model/FormTypeFieldDef.d.ts +2 -0
- package/mobile/lib/model/FormTypeFieldDef.js +2 -0
- package/mobile/lib/model/FormTypeFieldDef.js.map +1 -0
- package/mobile/lib/model/InputSectionsType.d.ts +10 -1
- package/mobile/lib/services/retail/content.js +12 -8
- package/mobile/lib/services/retail/content.js.map +1 -1
- package/mobile/lib/services/retail/inputs.d.ts +1 -0
- package/mobile/lib/services/retail/inputs.js +2 -0
- package/mobile/lib/services/retail/inputs.js.map +1 -1
- package/mobile/lib/services/retail/model/RetailFormContent.d.ts +3 -33
- package/mobile/lib/services/retail/model/RetailFormContent.js +0 -2
- package/mobile/lib/services/retail/model/RetailFormContent.js.map +1 -1
- package/mobile/lib/services/retail/utils/calculateInputs.d.ts +3 -2
- package/mobile/lib/services/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getPremium.d.ts +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -33
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -2
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +4 -72
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +48 -54
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -43
- package/mobile/src/components/ApplicationLeadForm/renderInputs.tsx +5 -5
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +2 -2
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +4 -5
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +4 -3
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +2 -2
- package/mobile/src/components/CreditCardForm/renderStep.tsx +2 -11
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -2
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +4 -4
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditForm/renderInputs.tsx +2 -2
- package/mobile/src/components/CreditForm/renderStep.tsx +3 -7
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +2 -2
- package/mobile/src/model/FormTypeFieldDef.ts +20 -0
- package/mobile/src/model/InputSectionsType.ts +12 -1
- package/mobile/src/services/retail/content.tsx +12 -8
- package/mobile/src/services/retail/inputs.tsx +2 -0
- package/mobile/src/services/retail/model/RetailFormContent.ts +4 -61
- package/mobile/src/services/retail/utils/calculateInputs.ts +3 -2
- package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +6 -5
- package/mobile/src/ui-kit/FormField/Fields/AddressBranchField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/EmailField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
- package/mobile/src/ui-kit/FormField/Fields/PartnerCommentsField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
- package/mobile/src/ui-kit/FormField/getConsentDataProcessing.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +3 -5
- package/mobile/src/ui-kit/FormField/getNamesFromInput.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getPremium.tsx +2 -2
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -33
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +4 -72
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +48 -54
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +2 -2
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -43
- package/src/components/ApplicationLeadForm/renderInputs.tsx +5 -5
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +2 -2
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +2 -2
- package/src/components/CreditCardForm/CreditCardFormContent.ts +4 -5
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +4 -3
- package/src/components/CreditCardForm/renderInputs.tsx +2 -2
- package/src/components/CreditCardForm/renderStep.tsx +2 -11
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -2
- package/src/components/CreditForm/CreditFormStep.tsx +4 -4
- package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/src/components/CreditForm/renderInputs.tsx +2 -2
- package/src/components/CreditForm/renderStep.tsx +3 -7
- package/src/components/CreditForm/useCreditFormAPI.tsx +2 -2
- package/src/model/FormTypeFieldDef.ts +20 -0
- package/src/model/InputSectionsType.ts +12 -1
- package/src/services/retail/content.tsx +12 -8
- package/src/services/retail/inputs.tsx +2 -0
- package/src/services/retail/model/RetailFormContent.ts +4 -61
- package/src/services/retail/utils/calculateInputs.ts +3 -2
- package/src/ui-kit/FormField/CustomFieldProps.ts +6 -5
- package/src/ui-kit/FormField/Fields/AddressBranchField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/EmailField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
- package/src/ui-kit/FormField/Fields/PartnerCommentsField.tsx +1 -1
- package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
- package/src/ui-kit/FormField/getConsentDataProcessing.tsx +1 -1
- package/src/ui-kit/FormField/getField.tsx +3 -5
- package/src/ui-kit/FormField/getNamesFromInput.tsx +1 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/src/ui-kit/FormField/getPremium.tsx +2 -2
- package/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/bundle/components/CreditForm/renderInfo.d.ts +0 -2
- package/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/dist/components/CreditCardForm/renderInfo.js +0 -12
- package/dist/components/CreditCardForm/renderInfo.js.map +0 -1
- package/dist/components/CreditForm/renderInfo.d.ts +0 -2
- package/dist/components/CreditForm/renderInfo.js +0 -12
- package/dist/components/CreditForm/renderInfo.js.map +0 -1
- package/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/lib/components/CreditCardForm/renderInfo.js +0 -9
- package/lib/components/CreditCardForm/renderInfo.js.map +0 -1
- package/lib/components/CreditForm/renderInfo.d.ts +0 -2
- package/lib/components/CreditForm/renderInfo.js +0 -9
- package/lib/components/CreditForm/renderInfo.js.map +0 -1
- package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/renderInfo.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/renderInfo.js +0 -12
- package/mobile/dist/components/CreditCardForm/renderInfo.js.map +0 -1
- package/mobile/dist/components/CreditForm/renderInfo.d.ts +0 -2
- package/mobile/dist/components/CreditForm/renderInfo.js +0 -12
- package/mobile/dist/components/CreditForm/renderInfo.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/renderInfo.js +0 -9
- package/mobile/lib/components/CreditCardForm/renderInfo.js.map +0 -1
- package/mobile/lib/components/CreditForm/renderInfo.d.ts +0 -2
- package/mobile/lib/components/CreditForm/renderInfo.js +0 -9
- package/mobile/lib/components/CreditForm/renderInfo.js.map +0 -1
- package/mobile/src/components/CreditCardForm/renderInfo.tsx +0 -10
- package/mobile/src/components/CreditForm/renderInfo.tsx +0 -10
- package/src/components/CreditCardForm/renderInfo.tsx +0 -10
- package/src/components/CreditForm/renderInfo.tsx +0 -10
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @hidden */
|
|
2
|
+
export type FormTypeFieldDef =
|
|
3
|
+
| ''
|
|
4
|
+
| 'ACQR'
|
|
5
|
+
| 'ANALITIC'
|
|
6
|
+
| 'ANTIFRAUD'
|
|
7
|
+
| 'BCRD'
|
|
8
|
+
| 'BROK'
|
|
9
|
+
| 'BROKACCOUNT'
|
|
10
|
+
| 'COLLECTION'
|
|
11
|
+
| 'CORRUPTION'
|
|
12
|
+
| 'CRED'
|
|
13
|
+
| 'DPST'
|
|
14
|
+
| 'PRODUCT'
|
|
15
|
+
| 'SELFCOLLECTION'
|
|
16
|
+
| 'KVED'
|
|
17
|
+
| 'ULTRASERVICE'
|
|
18
|
+
| 'FEEDBACK'
|
|
19
|
+
| 'FEEDBACK_QS'
|
|
20
|
+
| 'OUTSERVICE';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type FieldDef } from '../components/
|
|
1
|
+
import { type FieldDef } from '../components/ApplicationForm/ApplicationFormContent';
|
|
2
|
+
import { type FieldRetailDef } from '../services/retail/model/RetailFormContent';
|
|
2
3
|
import { type ColumnsCount } from './ColumnCount';
|
|
3
4
|
import { type TitleProps } from './HeadlineType';
|
|
4
5
|
|
|
@@ -14,3 +15,13 @@ export interface InputSectionsType {
|
|
|
14
15
|
/** @hidden */
|
|
15
16
|
sections?: SectionsProps[];
|
|
16
17
|
}
|
|
18
|
+
|
|
19
|
+
export type SectionsRetailProps = TitleProps & {
|
|
20
|
+
columns?: ColumnsCount;
|
|
21
|
+
inputs?: FieldRetailDef[];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export interface InputRetailSectionsType {
|
|
25
|
+
/** @hidden */
|
|
26
|
+
sections?: SectionsRetailProps[];
|
|
27
|
+
}
|
|
@@ -95,8 +95,9 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
95
95
|
{
|
|
96
96
|
inputs: [
|
|
97
97
|
{
|
|
98
|
-
fieldType: '
|
|
99
|
-
|
|
98
|
+
fieldType: 'common',
|
|
99
|
+
name: 'infoCard',
|
|
100
|
+
label:
|
|
100
101
|
'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
101
102
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
102
103
|
},
|
|
@@ -188,8 +189,9 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
|
188
189
|
{
|
|
189
190
|
inputs: [
|
|
190
191
|
{
|
|
191
|
-
fieldType: '
|
|
192
|
-
|
|
192
|
+
fieldType: 'common',
|
|
193
|
+
name: 'infoCard',
|
|
194
|
+
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
193
195
|
},
|
|
194
196
|
],
|
|
195
197
|
},
|
|
@@ -266,8 +268,9 @@ export const DELIVERY_CREDIT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
266
268
|
{
|
|
267
269
|
inputs: [
|
|
268
270
|
{
|
|
269
|
-
fieldType: '
|
|
270
|
-
|
|
271
|
+
fieldType: 'common',
|
|
272
|
+
name: 'infoCard',
|
|
273
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
271
274
|
},
|
|
272
275
|
],
|
|
273
276
|
},
|
|
@@ -345,8 +348,9 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
345
348
|
{
|
|
346
349
|
inputs: [
|
|
347
350
|
{
|
|
348
|
-
fieldType: '
|
|
349
|
-
|
|
351
|
+
fieldType: 'common',
|
|
352
|
+
name: 'infoCard',
|
|
353
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
350
354
|
condition: {
|
|
351
355
|
name: 'methodObtain',
|
|
352
356
|
values: ['office'],
|
|
@@ -36,6 +36,7 @@ import { FamilyMembersField } from '../../ui-kit/FormField/Fields/FamilyMembersF
|
|
|
36
36
|
import { FamilyStatusField } from '../../ui-kit/FormField/Fields/FamilyStatusField';
|
|
37
37
|
import { GeneralSeniorityField } from '../../ui-kit/FormField/Fields/GeneralSeniorityField';
|
|
38
38
|
import { HousingField } from '../../ui-kit/FormField/Fields/HousingField';
|
|
39
|
+
import { InfoCardField } from '../../ui-kit/FormField/Fields/InfoCardField';
|
|
39
40
|
import { JobsNumberField } from '../../ui-kit/FormField/Fields/JobsNumberField';
|
|
40
41
|
import { LastJobExperienceField } from '../../ui-kit/FormField/Fields/LastJobExperienceField';
|
|
41
42
|
import { LegalEntityNameField } from '../../ui-kit/FormField/Fields/LegalEntityNameField';
|
|
@@ -125,6 +126,7 @@ export const InputsRetailMap = {
|
|
|
125
126
|
bankEmployeeCode: (props: CustomFieldProps) => <BankEmpoleeCodeField {...props} />,
|
|
126
127
|
partInBusiness: (props: CustomFieldProps) => <PartInBusinessField {...props} />,
|
|
127
128
|
regionRetail: (props: CustomFieldProps) => <RegionRetailField {...props} />,
|
|
129
|
+
infoCard: (props: CustomFieldProps) => <InfoCardField {...props} />,
|
|
128
130
|
calculator: (props: CustomFieldProps) => <CreditCalcField {...props} />,
|
|
129
131
|
};
|
|
130
132
|
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
|
-
/* eslint-disable max-len */
|
|
3
|
-
|
|
4
1
|
import { type LabelProps, type LinkButtonVersion, type TextProps } from '../external/types';
|
|
5
2
|
import { type NameFieldDef } from './LeadFormState';
|
|
6
3
|
|
|
@@ -37,65 +34,11 @@ export type FieldDefaultDef = Required &
|
|
|
37
34
|
};
|
|
38
35
|
|
|
39
36
|
/**
|
|
40
|
-
* @title
|
|
41
|
-
* @default {"fieldType": "common"}
|
|
42
|
-
*/
|
|
43
|
-
export type FieldCommonDef = FieldDefaultDef & {
|
|
44
|
-
/** @default "common" */
|
|
45
|
-
fieldType: 'common';
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @title Значение по умолчанию
|
|
50
|
-
* @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
|
|
51
|
-
*/
|
|
52
|
-
type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @title Поле ввода ВЭД
|
|
56
|
-
* @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
|
|
37
|
+
* @title Поле ввода
|
|
38
|
+
* @default { "fieldType": "common" }
|
|
57
39
|
*/
|
|
58
|
-
export type FieldVedDef = FieldDefaultDef & {
|
|
59
|
-
/** @default "ved" */
|
|
60
|
-
fieldType: 'ved';
|
|
61
|
-
defaultValue?: VedTypes;
|
|
62
|
-
};
|
|
63
40
|
|
|
64
|
-
|
|
65
|
-
* @title Текст для отображения в карточке информации
|
|
66
|
-
* @default {"fieldType": "info"}
|
|
67
|
-
*/
|
|
68
|
-
export type FieldInfoDef = FieldDefaultDef &
|
|
41
|
+
export type FieldRetailDef = FieldDefaultDef &
|
|
69
42
|
TextProps & {
|
|
70
|
-
|
|
71
|
-
fieldType: 'info';
|
|
43
|
+
fieldType: 'common';
|
|
72
44
|
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @title Поле
|
|
76
|
-
* @default { "fieldType": "common" }
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
export type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
80
|
-
|
|
81
|
-
/** @hidden */
|
|
82
|
-
export type TypeFormFieldDef =
|
|
83
|
-
| ''
|
|
84
|
-
| 'ACQR'
|
|
85
|
-
| 'ANALITIC'
|
|
86
|
-
| 'ANTIFRAUD'
|
|
87
|
-
| 'BCRD'
|
|
88
|
-
| 'BROK'
|
|
89
|
-
| 'BROKACCOUNT'
|
|
90
|
-
| 'COLLECTION'
|
|
91
|
-
| 'CORRUPTION'
|
|
92
|
-
| 'CRED'
|
|
93
|
-
| 'DPST'
|
|
94
|
-
| 'PRODUCT'
|
|
95
|
-
| 'SELFCOLLECTION'
|
|
96
|
-
| 'KVED'
|
|
97
|
-
| 'ULTRASERVICE'
|
|
98
|
-
| 'PREMIUMSERVICE'
|
|
99
|
-
| 'FEEDBACK'
|
|
100
|
-
| 'FEEDBACK_QS'
|
|
101
|
-
| 'OUTSERVICE';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type FieldDef } from '../../../components/ApplicationForm/ApplicationFormContent';
|
|
1
2
|
import { type Option } from '../../../ui-kit/Select/Option';
|
|
2
3
|
import { type LeadFormState } from '../model/LeadFormState';
|
|
3
|
-
import { type
|
|
4
|
+
import { type FieldRetailDef } from '../model/RetailFormContent';
|
|
4
5
|
|
|
5
6
|
export type GetValue = <K extends keyof LeadFormState>(name: K) => LeadFormState[K];
|
|
6
7
|
|
|
7
|
-
export const calculateInputs = (getValue: GetValue) => (inputs:
|
|
8
|
+
export const calculateInputs = (getValue: GetValue) => (inputs: FieldRetailDef[], step: number) =>
|
|
8
9
|
inputs
|
|
9
10
|
.filter((_) => _)
|
|
10
11
|
.map((_) => {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
1
2
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
import {
|
|
3
|
-
type FieldDef,
|
|
4
|
-
type TypeFormFieldDef,
|
|
5
|
-
} from '../../services/retail/model/RetailFormContent';
|
|
3
|
+
import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
|
|
6
4
|
|
|
7
5
|
export interface CustomFieldProps {
|
|
8
6
|
field: FormFieldRegisterer<any>;
|
|
9
7
|
input?: FieldDef;
|
|
10
8
|
url?: string;
|
|
11
9
|
params?: Record<string, any>;
|
|
12
|
-
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface CustomFieldPropsWithTypeForm extends CustomFieldProps {
|
|
13
|
+
typeForm?: FormTypeFieldDef;
|
|
13
14
|
}
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useBranches } from '../../../hooks/useBranches';
|
|
4
4
|
import { useBranchesByRegions } from '../../../hooks/useBranchesByRegions';
|
|
5
|
-
import { type
|
|
5
|
+
import { type FormTypeFieldDef } from '../../../model/FormTypeFieldDef';
|
|
6
6
|
import { SelectControl } from '../../Select/SelectControl';
|
|
7
7
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
8
8
|
import { validatorObj } from '../getObjectValidator';
|
|
@@ -14,7 +14,7 @@ interface RegionFieldProps extends CustomFieldProps {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export const AddressBranchField = JSX<RegionFieldProps>(({ field, input, params }) => {
|
|
17
|
-
const isPremium = getPremium(params?.typeForm as
|
|
17
|
+
const isPremium = getPremium(params?.typeForm as FormTypeFieldDef);
|
|
18
18
|
|
|
19
19
|
const fieldRegion = field('region');
|
|
20
20
|
const regionKey = fieldRegion?.value?.key as string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type FieldDef } from '../../../
|
|
2
|
+
import { type FieldDef } from '../../../components/ApplicationForm/ApplicationFormContent';
|
|
3
3
|
import { InputControl } from '../../Input/InputControl';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
5
|
import { validatorObj } from '../getObjectValidator';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InfoCard } from '../../InfoCard/InfoCard';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const InfoCardField = JSX<CustomFieldProps>(({ input }) => (
|
|
6
|
+
<InfoCard __html={input?.label} />
|
|
7
|
+
));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type FieldDef } from '../../../
|
|
2
|
+
import { type FieldDef } from '../../../components/ApplicationForm/ApplicationFormContent';
|
|
3
3
|
import { InputControl } from '../../Input/InputControl';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
5
|
import { validatorObj } from '../getObjectValidator';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
2
2
|
|
|
3
3
|
export const getConsentDataProcessing = (inputs: FieldDef[]) =>
|
|
4
4
|
inputs?.find((_) => _?.name === 'consentDataProcessing');
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//TODO: Убрать обращение к компонентам т.к. ApplicationForm
|
|
2
|
-
import {
|
|
3
|
-
type FieldDef,
|
|
4
|
-
type TypeFormFieldDef,
|
|
5
|
-
} from '../../components/ApplicationForm/ApplicationFormContent';
|
|
2
|
+
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
6
3
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
4
|
+
import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
|
|
7
5
|
import { type VNode } from '../../model/VNode';
|
|
8
6
|
import { InputControl } from '../Input/InputControl';
|
|
9
7
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
@@ -70,7 +68,7 @@ const InputsMap = {
|
|
|
70
68
|
<InputControl label="Дата и время обращения в Банк" {...props} />
|
|
71
69
|
),
|
|
72
70
|
region: (props: CustomFieldProps) =>
|
|
73
|
-
getPremium(props?.params?.typeForm as
|
|
71
|
+
getPremium(props?.params?.typeForm as FormTypeFieldDef) ? (
|
|
74
72
|
<RegionPremiumField {...props} />
|
|
75
73
|
) : (
|
|
76
74
|
<RegionField {...props} />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldDef } from '../../
|
|
1
|
+
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
2
2
|
|
|
3
3
|
export const getNamesFromInput = (inputs: FieldDef[]) =>
|
|
4
4
|
Object.values(inputs.filter((_) => _))?.map((_) => _.name);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldDef } from '../../
|
|
1
|
+
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
2
2
|
import { type Validator } from '../../validation/validator';
|
|
3
3
|
import { getNamesFromInput } from './getNamesFromInput';
|
|
4
4
|
import {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
|
|
2
2
|
|
|
3
|
-
export const getPremium = (typeForm:
|
|
3
|
+
export const getPremium = (typeForm: FormTypeFieldDef = ''): boolean => typeForm === 'ULTRASERVICE';
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { type AspectsProps } from '../../model/AspectsProps';
|
|
5
5
|
import { type ColumnsCount } from '../../model/ColumnCount';
|
|
6
|
+
import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
|
|
6
7
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
7
8
|
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
8
9
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
@@ -66,43 +67,12 @@ export type FieldVedDef = FieldDefaultDef & {
|
|
|
66
67
|
defaultValue?: VedTypes;
|
|
67
68
|
};
|
|
68
69
|
|
|
69
|
-
/**
|
|
70
|
-
* @title Текст для отображения в карточке информации
|
|
71
|
-
* @default {"fieldType": "info"}
|
|
72
|
-
*/
|
|
73
|
-
export type FieldInfoDef = FieldDefaultDef &
|
|
74
|
-
TextProps & {
|
|
75
|
-
/** @default "info" */
|
|
76
|
-
fieldType: 'info';
|
|
77
|
-
};
|
|
78
|
-
|
|
79
70
|
/**
|
|
80
71
|
* @title Поле
|
|
81
72
|
* @default { "fieldType": "common" }
|
|
82
73
|
*/
|
|
83
74
|
|
|
84
|
-
export type FieldDef = FieldCommonDef | FieldVedDef
|
|
85
|
-
|
|
86
|
-
/** @hidden */
|
|
87
|
-
export type TypeFormFieldDef =
|
|
88
|
-
| ''
|
|
89
|
-
| 'ACQR'
|
|
90
|
-
| 'ANALITIC'
|
|
91
|
-
| 'ANTIFRAUD'
|
|
92
|
-
| 'BCRD'
|
|
93
|
-
| 'BROK'
|
|
94
|
-
| 'BROKACCOUNT'
|
|
95
|
-
| 'COLLECTION'
|
|
96
|
-
| 'CORRUPTION'
|
|
97
|
-
| 'CRED'
|
|
98
|
-
| 'DPST'
|
|
99
|
-
| 'PRODUCT'
|
|
100
|
-
| 'SELFCOLLECTION'
|
|
101
|
-
| 'KVED'
|
|
102
|
-
| 'ULTRASERVICE'
|
|
103
|
-
| 'FEEDBACK'
|
|
104
|
-
| 'FEEDBACK_QS'
|
|
105
|
-
| 'OUTSERVICE';
|
|
75
|
+
export type FieldDef = FieldCommonDef | FieldVedDef;
|
|
106
76
|
|
|
107
77
|
/** @hidden */
|
|
108
78
|
export type EndpointType = 'lead' | 'sendcorporatelead';
|
|
@@ -157,7 +127,7 @@ export type ApplicationFormContent = UniBlockContent &
|
|
|
157
127
|
/** @default "" */
|
|
158
128
|
target?: Target;
|
|
159
129
|
};
|
|
160
|
-
typeForm?:
|
|
130
|
+
typeForm?: FormTypeFieldDef;
|
|
161
131
|
endpoint?: EndpointType;
|
|
162
132
|
/** @title Дополнительные параметры формы */
|
|
163
133
|
additionalParams?: additionalParamsType;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
|
+
import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
|
|
4
5
|
import { ApplicationFormLayout } from '../../ui-kit/ApplicationFormLayout/ApplicationFormLayout';
|
|
5
6
|
import { useDialog } from '../../ui-kit/DialogManager/useDialog';
|
|
6
7
|
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
@@ -10,7 +11,7 @@ import { ResponseTypeDialog } from '../../ui-kit/ResponseTypeDialog/ResponseType
|
|
|
10
11
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
11
12
|
import { style } from '../../utils/style';
|
|
12
13
|
import { applicationFormData } from './applicationFormData';
|
|
13
|
-
import { type ApplicationLeadFormContent
|
|
14
|
+
import { type ApplicationLeadFormContent } from './ApplicationLeadFormContent';
|
|
14
15
|
import { renderInputs } from './renderInputs';
|
|
15
16
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
16
17
|
import { useApplicationLeadApi } from './useApplicationLeadApi';
|
|
@@ -21,7 +22,7 @@ interface ApplicationLeadFormProps extends ApplicationLeadFormContent, UniBlockP
|
|
|
21
22
|
export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
22
23
|
({ className, title, programId = '', nextStepLink = '/credit-lead', button, ...rest }) => {
|
|
23
24
|
const inputs = useMemo(
|
|
24
|
-
() => (applicationFormData?.flatMap((_) => _?.inputs) || []) as
|
|
25
|
+
() => (applicationFormData?.flatMap((_) => _?.inputs) || []) as FieldRetailDef[],
|
|
25
26
|
[applicationFormData],
|
|
26
27
|
);
|
|
27
28
|
|
|
@@ -1,87 +1,19 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import { type InputRetailSectionsType } from '../../model/InputSectionsType';
|
|
3
3
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
4
|
-
import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
|
|
5
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
/** @title Обязательно для заполнения */
|
|
9
|
-
required?: boolean;
|
|
10
|
-
}
|
|
5
|
+
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
11
6
|
|
|
12
7
|
export type SubmitButtonProps = TextProps & {
|
|
13
8
|
version?: LinkButtonVersion;
|
|
14
9
|
};
|
|
15
10
|
|
|
16
|
-
export type ConditionFieldProps = {
|
|
17
|
-
/** @title Условия отображения полей формы */
|
|
18
|
-
condition?: {
|
|
19
|
-
name: NameFieldDef;
|
|
20
|
-
/** @title Значения при которых отображаются поля */
|
|
21
|
-
values: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type FilledByEsiaProps = {
|
|
26
|
-
/** @title Заполняется через госуслуги */
|
|
27
|
-
filledByEsia?: boolean;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type FieldDefaultDef = Required &
|
|
31
|
-
TextProps &
|
|
32
|
-
LabelProps &
|
|
33
|
-
ConditionFieldProps &
|
|
34
|
-
FilledByEsiaProps & {
|
|
35
|
-
name?: NameFieldDef;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @title Поля ввода по умолчанию
|
|
40
|
-
* @default {"fieldType": "common"}
|
|
41
|
-
*/
|
|
42
|
-
export type FieldCommonDef = FieldDefaultDef & {
|
|
43
|
-
/** @default "common" */
|
|
44
|
-
fieldType: 'common';
|
|
45
|
-
dadata?: boolean;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @title Значение по умолчанию
|
|
50
|
-
* @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
|
|
51
|
-
*/
|
|
52
|
-
type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @title Поле ввода ВЭД
|
|
56
|
-
* @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
|
|
57
|
-
*/
|
|
58
|
-
export type FieldVedDef = FieldDefaultDef & {
|
|
59
|
-
/** @default "ved" */
|
|
60
|
-
fieldType: 'ved';
|
|
61
|
-
defaultValue?: VedTypes;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @title Текст для отображения в карточке информации
|
|
66
|
-
* @default {"fieldType": "info"}
|
|
67
|
-
*/
|
|
68
|
-
export type FieldInfoDef = FieldDefaultDef & {
|
|
69
|
-
/** @default "info" */
|
|
70
|
-
fieldType: 'info';
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @title Поле
|
|
75
|
-
* @default { "fieldType": "common" }
|
|
76
|
-
*/
|
|
77
|
-
export type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
78
|
-
|
|
79
11
|
/**
|
|
80
12
|
* @title Форма заявки настраиваемая
|
|
81
13
|
*/
|
|
82
14
|
export type ApplicationLeadFormContent = UniBlockContent &
|
|
83
15
|
TitleProps &
|
|
84
|
-
|
|
16
|
+
InputRetailSectionsType & {
|
|
85
17
|
/** @title Кнопка */
|
|
86
18
|
button?: SubmitButtonProps;
|
|
87
19
|
/** @title Номер кредитной программы */
|
|
@@ -3,10 +3,7 @@ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { type FormFieldRegisterer, type VNode } from '../../services/retail/external/types';
|
|
4
4
|
import { InputsConsentsMap } from '../../services/retail/inputs';
|
|
5
5
|
import { type LeadFormState } from '../../services/retail/model/LeadFormState';
|
|
6
|
-
import {
|
|
7
|
-
type FieldDef,
|
|
8
|
-
type TypeFormFieldDef,
|
|
9
|
-
} from '../../services/retail/model/RetailFormContent';
|
|
6
|
+
import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
|
|
10
7
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
11
8
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
12
9
|
import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
@@ -18,66 +15,63 @@ import { renderErrorText } from '../../ui-kit/Input/renderErrorText';
|
|
|
18
15
|
import { withValidator } from '../../validation/withValidator';
|
|
19
16
|
|
|
20
17
|
export interface GroupedConsentsProps {
|
|
21
|
-
inputs?:
|
|
22
|
-
typeForm?: TypeFormFieldDef;
|
|
18
|
+
inputs?: FieldRetailDef[];
|
|
23
19
|
field: FormFieldRegisterer<LeadFormState>;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
|
|
27
23
|
const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
|
|
28
24
|
|
|
29
|
-
export const GroupedConsents = JSX<GroupedConsentsProps>(
|
|
30
|
-
|
|
31
|
-
const isChecked = inputs.every((_) => Boolean(field(_.name as keyof LeadFormState).value));
|
|
25
|
+
export const GroupedConsents = JSX<GroupedConsentsProps>(({ inputs = [], field, key }) => {
|
|
26
|
+
const isChecked = inputs.every((_) => Boolean(field(_.name as keyof LeadFormState).value));
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
const handleGeneralToggle = (value: boolean) => {
|
|
29
|
+
for (const item of inputs) {
|
|
30
|
+
const itemField = field(item.name as keyof LeadFormState);
|
|
31
|
+
itemField?.onChange && itemField.onChange(value);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
39
34
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
),
|
|
35
|
+
const hasValidationErrors = useMemo(
|
|
36
|
+
() =>
|
|
37
|
+
inputs
|
|
38
|
+
?.filter((_) => _.required)
|
|
39
|
+
?.some((_) =>
|
|
40
|
+
Boolean(
|
|
41
|
+
withValidator(
|
|
42
|
+
field(_?.name as keyof LeadFormState),
|
|
43
|
+
validatorObj[_?.name as keyof LeadFormState],
|
|
44
|
+
).error,
|
|
51
45
|
),
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
),
|
|
47
|
+
[inputs],
|
|
48
|
+
);
|
|
54
49
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
);
|
|
50
|
+
return (
|
|
51
|
+
<div className="w-fit">
|
|
52
|
+
<Foldable
|
|
53
|
+
isFoldButtonOnTop
|
|
54
|
+
unfoldedByDefault
|
|
55
|
+
renderFoldableSection={({ isUnfolded }) => (
|
|
56
|
+
<FoldableSection isUnfolded={isUnfolded} className="flex flex-col pl-2xl">
|
|
57
|
+
{inputs.map(getField(field, {}, InputsConsentsMap))}
|
|
58
|
+
</FoldableSection>
|
|
59
|
+
)}
|
|
60
|
+
renderFoldButton={renderGeneralCheckbox(
|
|
61
|
+
<div>
|
|
62
|
+
<Checkbox
|
|
63
|
+
value={isChecked}
|
|
64
|
+
onChange={handleGeneralToggle}
|
|
65
|
+
text={CONSENT_ALL_DOCS_TEXT}
|
|
66
|
+
key={key}
|
|
67
|
+
/>
|
|
68
|
+
{renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')}
|
|
69
|
+
</div>,
|
|
70
|
+
)}
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
);
|
|
74
|
+
});
|
|
81
75
|
|
|
82
76
|
const renderGeneralCheckbox =
|
|
83
77
|
(generalCheckBox: VNode) =>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SectionsRetailProps } from '../../model/InputSectionsType';
|
|
2
2
|
|
|
3
|
-
export const applicationFormData:
|
|
3
|
+
export const applicationFormData: SectionsRetailProps[] = [
|
|
4
4
|
{
|
|
5
5
|
columns: 2,
|
|
6
6
|
inputs: [
|