@redneckz/wildless-cms-uni-blocks 0.14.862 → 0.14.863
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/bin/migration-scripts/0.14.471.js +1 -1
- package/bin/migration-scripts/0.14.478.js +1 -1
- package/bin/migration-scripts/0.14.850.js +7 -11
- package/bundle/UniBlock/UniBlock.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +17 -24
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/bundle/components/Footer/TextInformationLink.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/bundle/model/OnClickProps.d.ts +4 -0
- package/bundle/retail/api/updateUserTask.d.ts +2 -1
- package/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
- package/bundle/ui-kit/Button/Button.d.ts +2 -3
- package/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/bundle/ui-kit/Link/Link.d.ts +2 -3
- package/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/dist/UniBlock/UniBlock.d.ts +1 -1
- package/dist/api/LeadServiceAPI.js +1 -2
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.d.ts +2 -2
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/dist/hooks/useForm/useForm.js.map +1 -1
- package/dist/hooks/useJSONRef/fetchRefs.js +4 -4
- package/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/dist/model/OnClickProps.d.ts +4 -0
- package/dist/retail/api/createCaptcha.js +1 -1
- package/dist/retail/api/createCaptcha.js.map +1 -1
- package/dist/retail/api/dadataHints/dadataHints.js +1 -2
- package/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/dist/retail/api/feedbackById.js +1 -1
- package/dist/retail/api/feedbackById.js.map +1 -1
- package/dist/retail/api/updateRefreshToken.js +1 -1
- package/dist/retail/api/updateRefreshToken.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +2 -1
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/uploadFile.js +1 -2
- package/dist/retail/api/uploadFile.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/dist/retail/utils/getOrganizationParams.d.ts +6 -16
- package/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +2 -3
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/dist/ui-kit/Link/Link.d.ts +2 -3
- package/dist/ui-kit/Link/Link.js.map +1 -1
- package/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/lib/UniBlock/UniBlock.d.ts +1 -1
- package/lib/api/LeadServiceAPI.js +1 -2
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.d.ts +2 -2
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/lib/hooks/useForm/useForm.js.map +1 -1
- package/lib/hooks/useJSONRef/fetchRefs.js +4 -4
- package/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/lib/model/OnClickProps.d.ts +4 -0
- package/lib/retail/api/createCaptcha.js +1 -1
- package/lib/retail/api/createCaptcha.js.map +1 -1
- package/lib/retail/api/dadataHints/dadataHints.js +1 -2
- package/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/lib/retail/api/feedbackById.js +1 -1
- package/lib/retail/api/feedbackById.js.map +1 -1
- package/lib/retail/api/updateRefreshToken.js +1 -1
- package/lib/retail/api/updateRefreshToken.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +2 -1
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/uploadFile.js +1 -2
- package/lib/retail/api/uploadFile.js.map +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/lib/retail/utils/getOrganizationParams.d.ts +6 -16
- package/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +2 -3
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/lib/ui-kit/Link/Link.d.ts +2 -3
- package/lib/ui-kit/Link/Link.js.map +1 -1
- package/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/bundle/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +17 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/bundle/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/bundle/model/OnClickProps.d.ts +4 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/bundle/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/dist/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/dist/api/LeadServiceAPI.js +1 -2
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/dist/hooks/useForm/useForm.js.map +1 -1
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js +4 -4
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/mobile/dist/model/OnClickProps.d.ts +4 -0
- package/mobile/dist/retail/api/createCaptcha.js +1 -1
- package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
- package/mobile/dist/retail/api/dadataHints/dadataHints.js +1 -2
- package/mobile/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/dist/retail/api/feedbackById.js +1 -1
- package/mobile/dist/retail/api/feedbackById.js.map +1 -1
- package/mobile/dist/retail/api/updateRefreshToken.js +1 -1
- package/mobile/dist/retail/api/updateRefreshToken.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/uploadFile.js +1 -2
- package/mobile/dist/retail/api/uploadFile.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/dist/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/dist/ui-kit/Link/Link.js.map +1 -1
- package/mobile/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/lib/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +1 -2
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/lib/hooks/useForm/useForm.js.map +1 -1
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js +4 -4
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/mobile/lib/model/OnClickProps.d.ts +4 -0
- package/mobile/lib/retail/api/createCaptcha.js +1 -1
- package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
- package/mobile/lib/retail/api/dadataHints/dadataHints.js +1 -2
- package/mobile/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/lib/retail/api/feedbackById.js +1 -1
- package/mobile/lib/retail/api/feedbackById.js.map +1 -1
- package/mobile/lib/retail/api/updateRefreshToken.js +1 -1
- package/mobile/lib/retail/api/updateRefreshToken.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/uploadFile.js +1 -2
- package/mobile/lib/retail/api/uploadFile.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/lib/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/lib/ui-kit/Link/Link.js.map +1 -1
- package/mobile/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/src/UniBlock/UniBlock.tsx +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +1 -3
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
- package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
- package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
- package/mobile/src/components/Footer/TextInformationLink.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
- package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
- package/mobile/src/hooks/useForm/useForm.ts +1 -1
- package/mobile/src/hooks/useJSONRef/fetchRefs.ts +5 -6
- package/mobile/src/model/OnClickProps.ts +6 -0
- package/mobile/src/retail/api/createCaptcha.ts +1 -1
- package/mobile/src/retail/api/dadataHints/dadataHints.ts +1 -3
- package/mobile/src/retail/api/feedbackById.ts +1 -1
- package/mobile/src/retail/api/updateRefreshToken.ts +1 -1
- package/mobile/src/retail/api/updateUserTask.ts +11 -9
- package/mobile/src/retail/api/uploadFile.ts +1 -3
- package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
- package/mobile/src/retail/utils/getOrganizationParams.ts +7 -8
- package/mobile/src/ui-kit/Button/Button.tsx +6 -3
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -3
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/Link/Link.tsx +2 -3
- package/mobile/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
- package/mobile/src/ui-kit/Radio/RadioProps.ts +2 -2
- package/mobile/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
- package/package.json +1 -1
- package/src/UniBlock/UniBlock.tsx +1 -1
- package/src/api/LeadServiceAPI.ts +1 -3
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
- package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +1 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +1 -1
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +1 -1
- package/src/components/CreditForm/CreditForm.fixture.tsx +1 -1
- package/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
- package/src/components/Footer/TextInformationLink.tsx +2 -2
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
- package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
- package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
- package/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
- package/src/hooks/useForm/useForm.ts +1 -1
- package/src/hooks/useJSONRef/fetchRefs.ts +5 -6
- package/src/model/OnClickProps.ts +6 -0
- package/src/retail/api/createCaptcha.ts +1 -1
- package/src/retail/api/dadataHints/dadataHints.ts +1 -3
- package/src/retail/api/feedbackById.ts +1 -1
- package/src/retail/api/updateRefreshToken.ts +1 -1
- package/src/retail/api/updateUserTask.ts +11 -9
- package/src/retail/api/uploadFile.ts +1 -3
- package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
- package/src/retail/utils/getOrganizationParams.ts +7 -8
- package/src/ui-kit/Button/Button.tsx +6 -3
- package/src/ui-kit/DialogManager/Dialog.tsx +2 -3
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/Link/Link.tsx +2 -3
- package/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
- package/src/ui-kit/Radio/RadioProps.ts +2 -2
- package/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
- package/bundle/model/onClick.d.ts +0 -3
- package/dist/model/onClick.d.ts +0 -3
- package/dist/model/onClick.js +0 -2
- package/dist/model/onClick.js.map +0 -1
- package/lib/model/onClick.d.ts +0 -3
- package/lib/model/onClick.js +0 -2
- package/lib/model/onClick.js.map +0 -1
- package/mobile/bundle/model/onClick.d.ts +0 -3
- package/mobile/dist/model/onClick.d.ts +0 -3
- package/mobile/dist/model/onClick.js +0 -2
- package/mobile/dist/model/onClick.js.map +0 -1
- package/mobile/lib/model/onClick.d.ts +0 -3
- package/mobile/lib/model/onClick.js +0 -2
- package/mobile/lib/model/onClick.js.map +0 -1
- package/mobile/src/model/onClick.ts +0 -3
- package/src/model/onClick.ts +0 -3
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type DisabledProps } from '../../../model/DisabledProps';
|
|
3
|
+
import { type TextProps } from '../../../model/HeadlineType';
|
|
4
|
+
import { type OnClickProps } from '../../../model/OnClickProps';
|
|
3
5
|
import { Button } from '../../../ui-kit/Button/Button';
|
|
4
6
|
import { Text } from '../../../ui-kit/Text/Text';
|
|
5
7
|
|
|
6
|
-
interface SubmitButtonProps extends DisabledProps {
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
text?: string;
|
|
9
|
-
}
|
|
8
|
+
interface SubmitButtonProps extends DisabledProps, TextProps, OnClickProps {}
|
|
10
9
|
|
|
11
10
|
export const SubmitButton = JSX<SubmitButtonProps>(({ disabled = false, onClick, text }) => (
|
|
12
11
|
<Button type="button" onClick={onClick} disabled={disabled}>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* eslint-disable complexity */
|
|
2
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
3
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
4
|
import { EOrganizationActivityTypes } from '../model/EOrganizationActivityTypes';
|
|
3
5
|
import { type DictionaryItem } from '../model/LeadFormData';
|
|
4
6
|
|
|
5
7
|
export const getOrganizationActivityType = (
|
|
6
8
|
options: DictionaryItem[],
|
|
7
9
|
okved: string,
|
|
8
|
-
):
|
|
10
|
+
): Nullable<Option> => {
|
|
9
11
|
if (!okved) {
|
|
10
12
|
return null;
|
|
11
13
|
}
|
|
@@ -78,7 +80,7 @@ export const getOrganizationActivityType = (
|
|
|
78
80
|
export const getEmployeesNumberOption = (
|
|
79
81
|
options: DictionaryItem[] | null,
|
|
80
82
|
count?: number,
|
|
81
|
-
):
|
|
83
|
+
): Nullable<Option> => {
|
|
82
84
|
if (!count) {
|
|
83
85
|
return null;
|
|
84
86
|
}
|
|
@@ -91,10 +93,7 @@ export const getEmployeesNumberOption = (
|
|
|
91
93
|
return option;
|
|
92
94
|
};
|
|
93
95
|
|
|
94
|
-
export const getOrganizationKind = (
|
|
95
|
-
options: DictionaryItem[],
|
|
96
|
-
okopf: number,
|
|
97
|
-
): { key: string; text: string } | null => {
|
|
96
|
+
export const getOrganizationKind = (options: DictionaryItem[], okopf: number): Nullable<Option> => {
|
|
98
97
|
const getOptionByKey = getOptionOp(options);
|
|
99
98
|
|
|
100
99
|
if ([40001, 40002, 71610].includes(okopf)) {
|
|
@@ -108,7 +107,7 @@ export const getOrganizationType = (
|
|
|
108
107
|
options: DictionaryItem[],
|
|
109
108
|
okopf: number,
|
|
110
109
|
inn: string,
|
|
111
|
-
):
|
|
110
|
+
): Nullable<Option> => {
|
|
112
111
|
const getOptionByKey = getOptionOp(options);
|
|
113
112
|
|
|
114
113
|
if (inn === '7725114488') {
|
|
@@ -128,5 +127,5 @@ export const getOrganizationType = (
|
|
|
128
127
|
|
|
129
128
|
const getOptionOp = (options: DictionaryItem[]) => (key: string) =>
|
|
130
129
|
options
|
|
131
|
-
.map((_) => ({ key: _.key as string, text: _.value as string }))
|
|
130
|
+
.map((_): Option => ({ key: _.key as string, text: _.value as string }))
|
|
132
131
|
.find((_) => _.key === key) ?? null;
|
|
@@ -6,11 +6,11 @@ import { type ButtonVersion } from '../../model/ButtonVersion';
|
|
|
6
6
|
import { type ComponentType } from '../../model/ComponentType';
|
|
7
7
|
import { type ColorPalette } from '../../model/ContentPageBase';
|
|
8
8
|
import { type DisabledProps } from '../../model/DisabledProps';
|
|
9
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
9
10
|
import { getAspectsAttributes } from '../../utils/dataAttributes';
|
|
10
11
|
import { noop } from '../../utils/noop';
|
|
11
12
|
import { style } from '../../utils/style';
|
|
12
13
|
import { type ARIAProps } from '../ARIAProps';
|
|
13
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
14
14
|
|
|
15
15
|
export const themeStyle: Record<ButtonVersion, string> = {
|
|
16
16
|
primary: style(
|
|
@@ -34,7 +34,11 @@ const embeddedStyle = style(
|
|
|
34
34
|
|
|
35
35
|
const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
|
|
36
36
|
|
|
37
|
-
export interface ButtonProps
|
|
37
|
+
export interface ButtonProps
|
|
38
|
+
extends DisabledProps,
|
|
39
|
+
ARIAProps,
|
|
40
|
+
ComponentType,
|
|
41
|
+
OnClickPreventableProps {
|
|
38
42
|
type?: 'button' | 'submit' | 'reset';
|
|
39
43
|
version?: ButtonVersion;
|
|
40
44
|
shape?: 'default' | 'round' | 'square';
|
|
@@ -43,7 +47,6 @@ export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType {
|
|
|
43
47
|
ariaLabel?: string;
|
|
44
48
|
data?: AspectsDef[];
|
|
45
49
|
dataTheme?: ColorPalette;
|
|
46
|
-
onClick?: (ev: PreventableEvent) => void;
|
|
47
50
|
wcmsIgnore?: boolean;
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
3
4
|
import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
4
5
|
import { type VNode } from '../../model/VNode';
|
|
5
6
|
import { style } from '../../utils/style';
|
|
6
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
7
7
|
import { CloseButton } from './CloseButton';
|
|
8
8
|
|
|
9
|
-
export interface DialogProps extends ComponentType, OnCloseProps {
|
|
9
|
+
export interface DialogProps extends ComponentType, OnCloseProps, OnClickPreventableProps {
|
|
10
10
|
head?: VNode;
|
|
11
|
-
onClick?: (e: PreventableEvent) => void;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const Dialog = JSX<DialogProps>(({ className, head, children, onClose, onClick }) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
|
-
import { type OnClickProps } from '../../model/
|
|
3
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
4
|
import { DefaultFoldButton } from '../Foldable/DefaultFoldButton';
|
|
5
5
|
import { type TariffsTableInnerContent } from './InnerTableProps';
|
|
6
6
|
|
|
@@ -3,10 +3,10 @@ import { useLink } from '../../hooks/useLink';
|
|
|
3
3
|
import { type ComponentType } from '../../model/ComponentType';
|
|
4
4
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
5
5
|
import { type LinkProps as BaseLinkProps } from '../../model/LinkProps';
|
|
6
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
6
7
|
import { getAspectsAttributes } from '../../utils/dataAttributes';
|
|
7
8
|
import { style } from '../../utils/style';
|
|
8
9
|
import { themeStyle as buttonThemeStyle } from '../Button/Button';
|
|
9
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
10
10
|
|
|
11
11
|
const themeStyle: Record<LinkButtonVersion, string> = {
|
|
12
12
|
primary: buttonThemeStyle.primary,
|
|
@@ -19,12 +19,11 @@ const themeStyle: Record<LinkButtonVersion, string> = {
|
|
|
19
19
|
'': '',
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export interface LinkProps extends BaseLinkProps, ComponentType {
|
|
22
|
+
export interface LinkProps extends BaseLinkProps, ComponentType, OnClickPreventableProps {
|
|
23
23
|
version?: LinkButtonVersion;
|
|
24
24
|
aboveText?: string;
|
|
25
25
|
rel?: string;
|
|
26
26
|
ariaLabel?: string;
|
|
27
|
-
onClick?: (ev?: PreventableEvent) => void;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export const Link = JSX<LinkProps>((props) => {
|
|
@@ -6,7 +6,7 @@ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
|
6
6
|
import { Input } from '../Input/Input';
|
|
7
7
|
import { type InputProps } from '../Input/InputProps';
|
|
8
8
|
|
|
9
|
-
export interface NumberInputProps extends InputProps
|
|
9
|
+
export interface NumberInputProps extends InputProps {
|
|
10
10
|
min?: number;
|
|
11
11
|
max?: number;
|
|
12
12
|
defaultValue?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
2
|
import { type ControlProps } from '../../model/ControlProps';
|
|
3
|
+
import { type TextProps } from '../../model/HeadlineType';
|
|
3
4
|
|
|
4
|
-
export interface RadioProps extends ComponentType, ControlProps<string> {
|
|
5
|
+
export interface RadioProps extends TextProps, ComponentType, ControlProps<string> {
|
|
5
6
|
name: string;
|
|
6
|
-
text?: string;
|
|
7
7
|
checked: boolean;
|
|
8
8
|
}
|
|
@@ -29,10 +29,8 @@ export function useCountDownTimer({ seconds, period = 1000, onTick, onEnd }: Cou
|
|
|
29
29
|
|
|
30
30
|
const { start } = useInterval(handleTick, period);
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
return useCallback((_: number) => {
|
|
33
33
|
counter.current = _;
|
|
34
34
|
start();
|
|
35
35
|
}, []);
|
|
36
|
-
|
|
37
|
-
return restart;
|
|
38
36
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export interface UniBlockMeta<Props extends UniBlockProps = UniBlockProps> {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type UniBlockComponent<Props extends UniBlockProps = UniBlockProps> = UniBlockMeta<Props> &
|
|
21
|
-
UNIComponent<Props,
|
|
21
|
+
UNIComponent<Props, VNode | VNode[]>;
|
|
22
22
|
|
|
23
23
|
export function UniBlock<Props extends UniBlockProps = UniBlockProps>(
|
|
24
24
|
InputComponent: UniBlockComponent<Props>,
|
|
@@ -12,7 +12,7 @@ export interface UserData {
|
|
|
12
12
|
export const useSaveUserData = () => {
|
|
13
13
|
const leadFormStore = useLeadFormStore();
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
return useCallback(
|
|
16
16
|
({ participantId, taskId, profileId, programId: programNumber, formData }: UserData) => {
|
|
17
17
|
leadFormStore.participantId = participantId;
|
|
18
18
|
leadFormStore.taskId = taskId;
|
|
@@ -22,6 +22,4 @@ export const useSaveUserData = () => {
|
|
|
22
22
|
},
|
|
23
23
|
[],
|
|
24
24
|
);
|
|
25
|
-
|
|
26
|
-
return saveUserData;
|
|
27
25
|
};
|
|
@@ -8,7 +8,7 @@ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
|
8
8
|
export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
9
9
|
const aspects = useAspects();
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
return useCallback(
|
|
12
12
|
(ProfileId: number, TaskId: number) => {
|
|
13
13
|
const snowplowParams = JSON.stringify({
|
|
14
14
|
ProfileId,
|
|
@@ -23,6 +23,4 @@ export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
|
23
23
|
},
|
|
24
24
|
[data],
|
|
25
25
|
);
|
|
26
|
-
|
|
27
|
-
return sendAspects;
|
|
28
26
|
};
|
|
@@ -63,11 +63,11 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
|
|
|
63
63
|
const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
|
|
64
64
|
const handleChange = useCallback(
|
|
65
65
|
(params: CreditCalculatorUserInputParams) => {
|
|
66
|
-
const
|
|
66
|
+
const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
|
|
67
67
|
|
|
68
68
|
onChange?.({
|
|
69
69
|
...params,
|
|
70
|
-
monthlyPayment:
|
|
70
|
+
monthlyPayment: _calcParams.monthlyPayment,
|
|
71
71
|
rate: defaultParamsCals?.rate ?? 0,
|
|
72
72
|
});
|
|
73
73
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
interface HorizontalNavigationLinkProps extends LinkProps {
|
|
7
|
+
interface HorizontalNavigationLinkProps extends LinkProps, OnClickProps {
|
|
7
8
|
className: string;
|
|
8
9
|
index: number;
|
|
9
|
-
onClick: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const HorizontalNavigationLink = JSX<Partial<HorizontalNavigationLinkProps>>(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
interface TextInformationLinkProps extends LinkProps {
|
|
7
|
+
interface TextInformationLinkProps extends LinkProps, OnClickProps {
|
|
7
8
|
className: string;
|
|
8
9
|
index: number;
|
|
9
|
-
onClick: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TextInformationLink = JSX<Partial<TextInformationLinkProps>>(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TextProps } from '../../model/HeadlineType';
|
|
1
2
|
import { type Picture } from '../../model/Picture';
|
|
2
3
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
4
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
@@ -5,9 +6,7 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
5
6
|
/**
|
|
6
7
|
* @title Пункт
|
|
7
8
|
*/
|
|
8
|
-
export type ItemList = {
|
|
9
|
-
/** @title Название */
|
|
10
|
-
text?: string;
|
|
9
|
+
export type ItemList = TextProps & {
|
|
11
10
|
image?: Picture;
|
|
12
11
|
};
|
|
13
12
|
|
|
@@ -38,7 +38,7 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
|
38
38
|
.map((_) => _.short?.toLowerCase())
|
|
39
39
|
.join(', ');
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
return [
|
|
42
42
|
buildScheduleText({
|
|
43
43
|
workTime: workingWeekday?.workTime,
|
|
44
44
|
lunchHour: workingWeekday?.lunchHour,
|
|
@@ -49,6 +49,4 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
|
49
49
|
true,
|
|
50
50
|
),
|
|
51
51
|
].filter(Boolean);
|
|
52
|
-
|
|
53
|
-
return rows;
|
|
54
52
|
};
|
|
@@ -41,7 +41,7 @@ export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
|
|
|
41
41
|
}, [location]);
|
|
42
42
|
|
|
43
43
|
useEffect(() => {
|
|
44
|
-
const onMessage = (e: MessageEvent
|
|
44
|
+
const onMessage = (e: MessageEvent) => {
|
|
45
45
|
if (e.data.type === 'location') {
|
|
46
46
|
locationDialog.open({});
|
|
47
47
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
3
4
|
import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
4
5
|
import { type VNode } from '../../model/VNode';
|
|
5
6
|
import { CloseButton } from '../../ui-kit/DialogManager/CloseButton';
|
|
6
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
7
7
|
import { style } from '../../utils/style';
|
|
8
8
|
|
|
9
|
-
export interface StickyBottomMenuDialogProps
|
|
9
|
+
export interface StickyBottomMenuDialogProps
|
|
10
|
+
extends ComponentType,
|
|
11
|
+
OnCloseProps,
|
|
12
|
+
OnClickPreventableProps {
|
|
10
13
|
head?: VNode;
|
|
11
|
-
onClick?: (e: PreventableEvent) => void;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const StickyBottomMenuDialog = JSX<StickyBottomMenuDialogProps>(
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type StickyMenuItem } from '../../data/StickyMobileData';
|
|
3
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
3
4
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
6
6
|
|
|
7
|
-
interface StickyBottomMenuItemProps {
|
|
7
|
+
interface StickyBottomMenuItemProps extends OnClickPreventableProps {
|
|
8
8
|
isActive?: boolean;
|
|
9
9
|
item?: StickyMenuItem;
|
|
10
|
-
onClick?: (e: PreventableEvent) => void;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export const StickyBottomMenuItem = JSX<StickyBottomMenuItemProps>(
|
|
@@ -51,7 +51,7 @@ export function useForm<FormState extends Record<string, any>>(
|
|
|
51
51
|
const fieldErrors: ValidationInfo = isDirty && fieldValidator ? fieldValidator(value) : [];
|
|
52
52
|
|
|
53
53
|
return {
|
|
54
|
-
value: format ? (format(value) as any) : value,
|
|
54
|
+
value: format ? (format(value) as FormState[any]) : value,
|
|
55
55
|
isDirty,
|
|
56
56
|
errors: fieldValidator && fieldErrors, // TODO Костыль
|
|
57
57
|
error: fieldErrors[0],
|
|
@@ -14,12 +14,11 @@ export const fetchRefs = async (refs: string[]): Promise<Record<string, JSONNode
|
|
|
14
14
|
await Promise.allSettled(
|
|
15
15
|
unique(refs)
|
|
16
16
|
.filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
|
|
17
|
-
.map(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
),
|
|
17
|
+
.map(async ($ref): Promise<RefEntry> => {
|
|
18
|
+
refsCache[$ref] ||= await fetchJSONUnsafe($ref);
|
|
19
|
+
|
|
20
|
+
return [$ref, refsCache[$ref]];
|
|
21
|
+
}),
|
|
23
22
|
)
|
|
24
23
|
)
|
|
25
24
|
.filter((res): res is PromiseFulfilledResult<RefEntry> => res.status === 'fulfilled')
|
|
@@ -2,5 +2,5 @@ import { doRequest } from './doRequest';
|
|
|
2
2
|
|
|
3
3
|
export const createCaptcha = (phoneNumber: string) =>
|
|
4
4
|
doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(
|
|
5
|
-
async (res) => (res ?
|
|
5
|
+
async (res) => (res ? res.blob() : new Blob()),
|
|
6
6
|
);
|
|
@@ -31,7 +31,7 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
|
|
|
31
31
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
32
32
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
return globalThis
|
|
35
35
|
?.fetch?.(`/api/v1/suggestions/${url}`, {
|
|
36
36
|
method: 'POST',
|
|
37
37
|
mode: 'cors',
|
|
@@ -46,6 +46,4 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
|
|
|
46
46
|
})
|
|
47
47
|
.then((response) => response.json())
|
|
48
48
|
.then(responseHandler);
|
|
49
|
-
|
|
50
|
-
return result;
|
|
51
49
|
};
|
|
@@ -24,17 +24,19 @@ type ParticipantAddress = {
|
|
|
24
24
|
street: string;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
type IncomeTypeCdType =
|
|
28
|
+
| 'INCOME_AVERAGE'
|
|
29
|
+
| 'ADDITIONAL_INCOME'
|
|
30
|
+
| 'MANDATORY_PAYMENTS'
|
|
31
|
+
| 'OTHER_INCOME'
|
|
32
|
+
| 'OTHER_PAYMENTS'
|
|
33
|
+
| 'RENTAL_INCOME'
|
|
34
|
+
| 'WAGES'
|
|
35
|
+
| 'RETIREMENT_INCOME';
|
|
36
|
+
|
|
27
37
|
type ParticipantIncome = {
|
|
28
38
|
incomeTypeCd: {
|
|
29
|
-
key:
|
|
30
|
-
| 'INCOME_AVERAGE'
|
|
31
|
-
| 'ADDITIONAL_INCOME'
|
|
32
|
-
| 'MANDATORY_PAYMENTS'
|
|
33
|
-
| 'OTHER_INCOME'
|
|
34
|
-
| 'OTHER_PAYMENTS'
|
|
35
|
-
| 'RENTAL_INCOME'
|
|
36
|
-
| 'WAGES'
|
|
37
|
-
| 'RETIREMENT_INCOME';
|
|
39
|
+
key: IncomeTypeCdType;
|
|
38
40
|
};
|
|
39
41
|
value: string;
|
|
40
42
|
};
|
|
@@ -12,7 +12,7 @@ export const uploadFile = async (
|
|
|
12
12
|
fd.append('documentCategory', documentCategory);
|
|
13
13
|
fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
return await globalThis
|
|
16
16
|
?.fetch?.(`/light-api-cash/v1/file`, {
|
|
17
17
|
method: 'POST',
|
|
18
18
|
headers: {
|
|
@@ -22,6 +22,4 @@ export const uploadFile = async (
|
|
|
22
22
|
body: fd,
|
|
23
23
|
})
|
|
24
24
|
.then((response) => response.json());
|
|
25
|
-
|
|
26
|
-
return res;
|
|
27
25
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type DisabledProps } from '../../../model/DisabledProps';
|
|
3
|
+
import { type TextProps } from '../../../model/HeadlineType';
|
|
4
|
+
import { type OnClickProps } from '../../../model/OnClickProps';
|
|
3
5
|
import { Button } from '../../../ui-kit/Button/Button';
|
|
4
6
|
import { Text } from '../../../ui-kit/Text/Text';
|
|
5
7
|
|
|
6
|
-
interface SubmitButtonProps extends DisabledProps {
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
text?: string;
|
|
9
|
-
}
|
|
8
|
+
interface SubmitButtonProps extends DisabledProps, TextProps, OnClickProps {}
|
|
10
9
|
|
|
11
10
|
export const SubmitButton = JSX<SubmitButtonProps>(({ disabled = false, onClick, text }) => (
|
|
12
11
|
<Button type="button" onClick={onClick} disabled={disabled}>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* eslint-disable complexity */
|
|
2
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
3
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
4
|
import { EOrganizationActivityTypes } from '../model/EOrganizationActivityTypes';
|
|
3
5
|
import { type DictionaryItem } from '../model/LeadFormData';
|
|
4
6
|
|
|
5
7
|
export const getOrganizationActivityType = (
|
|
6
8
|
options: DictionaryItem[],
|
|
7
9
|
okved: string,
|
|
8
|
-
):
|
|
10
|
+
): Nullable<Option> => {
|
|
9
11
|
if (!okved) {
|
|
10
12
|
return null;
|
|
11
13
|
}
|
|
@@ -78,7 +80,7 @@ export const getOrganizationActivityType = (
|
|
|
78
80
|
export const getEmployeesNumberOption = (
|
|
79
81
|
options: DictionaryItem[] | null,
|
|
80
82
|
count?: number,
|
|
81
|
-
):
|
|
83
|
+
): Nullable<Option> => {
|
|
82
84
|
if (!count) {
|
|
83
85
|
return null;
|
|
84
86
|
}
|
|
@@ -91,10 +93,7 @@ export const getEmployeesNumberOption = (
|
|
|
91
93
|
return option;
|
|
92
94
|
};
|
|
93
95
|
|
|
94
|
-
export const getOrganizationKind = (
|
|
95
|
-
options: DictionaryItem[],
|
|
96
|
-
okopf: number,
|
|
97
|
-
): { key: string; text: string } | null => {
|
|
96
|
+
export const getOrganizationKind = (options: DictionaryItem[], okopf: number): Nullable<Option> => {
|
|
98
97
|
const getOptionByKey = getOptionOp(options);
|
|
99
98
|
|
|
100
99
|
if ([40001, 40002, 71610].includes(okopf)) {
|
|
@@ -108,7 +107,7 @@ export const getOrganizationType = (
|
|
|
108
107
|
options: DictionaryItem[],
|
|
109
108
|
okopf: number,
|
|
110
109
|
inn: string,
|
|
111
|
-
):
|
|
110
|
+
): Nullable<Option> => {
|
|
112
111
|
const getOptionByKey = getOptionOp(options);
|
|
113
112
|
|
|
114
113
|
if (inn === '7725114488') {
|
|
@@ -128,5 +127,5 @@ export const getOrganizationType = (
|
|
|
128
127
|
|
|
129
128
|
const getOptionOp = (options: DictionaryItem[]) => (key: string) =>
|
|
130
129
|
options
|
|
131
|
-
.map((_) => ({ key: _.key as string, text: _.value as string }))
|
|
130
|
+
.map((_): Option => ({ key: _.key as string, text: _.value as string }))
|
|
132
131
|
.find((_) => _.key === key) ?? null;
|