@redneckz/wildless-cms-uni-blocks 0.14.875 → 0.14.877
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/LeadServiceAPI.d.ts +4 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +264 -136
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/bundle/components/Header/DropdownButton.d.ts +2 -0
- package/bundle/components/Header/DropdownMenu.d.ts +5 -2
- package/bundle/components/Header/HeaderMoreMenuItem.d.ts +9 -0
- package/bundle/components/Header/HeaderSubMenuItem.d.ts +3 -0
- package/bundle/components/Header/useDropdownSubMenu.d.ts +11 -0
- package/bundle/data/NavigationData.d.ts +1 -0
- package/bundle/hooks/useInn.d.ts +7 -0
- package/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/bundle/retail/components/Fields/SelectField.d.ts +1 -0
- package/bundle/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/bundle/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/bundle/ui-kit/FormField/validators.d.ts +8 -1
- package/bundle/ui-kit/Select/Option.d.ts +6 -0
- package/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/bundle/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/bundle/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/dist/api/LeadServiceAPI.d.ts +4 -0
- package/dist/api/LeadServiceAPI.js +13 -6
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/dist/components/Header/DropdownButton.d.ts +2 -0
- package/dist/components/Header/DropdownButton.js +11 -0
- package/dist/components/Header/DropdownButton.js.map +1 -0
- package/dist/components/Header/DropdownMenu.d.ts +5 -2
- package/dist/components/Header/DropdownMenu.js +2 -36
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/HeaderMoreMenuItem.d.ts +9 -0
- package/dist/components/Header/HeaderMoreMenuItem.js +27 -0
- package/dist/components/Header/HeaderMoreMenuItem.js.map +1 -0
- package/dist/components/Header/HeaderSubMenu.js +2 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.d.ts +3 -0
- package/dist/components/Header/HeaderSubMenuItem.js +19 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/Header/HeaderTopMenu.js +2 -2
- package/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/dist/components/Header/useDropdownSubMenu.d.ts +11 -0
- package/dist/components/Header/useDropdownSubMenu.js +37 -0
- package/dist/components/Header/useDropdownSubMenu.js.map +1 -0
- package/dist/data/NavigationData.d.ts +1 -0
- package/dist/hooks/useInn.d.ts +7 -0
- package/dist/hooks/useInn.js +11 -0
- package/dist/hooks/useInn.js.map +1 -0
- package/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/retail/components/Fields/SelectField.d.ts +1 -0
- package/dist/retail/components/Fields/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js +17 -0
- package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/{mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js → dist/ui-kit/FormField/Fields/FullRegionField.js} +5 -4
- package/dist/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InnDadataField.js +29 -0
- package/dist/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +19 -0
- package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +12 -2
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +3 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +8 -1
- package/dist/ui-kit/FormField/validators.js +5 -2
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/Select/Option.d.ts +6 -0
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +27 -5
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/dist/ui-kit/Select/SelectPopup.js +4 -2
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/dist/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/dist/ui-kit/Select/useSelectPopup.js +3 -2
- package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +4 -0
- package/lib/api/LeadServiceAPI.js +13 -6
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/lib/components/Header/DropdownButton.d.ts +2 -0
- package/lib/components/Header/DropdownButton.js +9 -0
- package/lib/components/Header/DropdownButton.js.map +1 -0
- package/lib/components/Header/DropdownMenu.d.ts +5 -2
- package/lib/components/Header/DropdownMenu.js +2 -37
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/HeaderMoreMenuItem.d.ts +9 -0
- package/lib/components/Header/HeaderMoreMenuItem.js +25 -0
- package/lib/components/Header/HeaderMoreMenuItem.js.map +1 -0
- package/lib/components/Header/HeaderSubMenu.js +2 -2
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.d.ts +3 -0
- package/lib/components/Header/HeaderSubMenuItem.js +20 -3
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/Header/HeaderTopMenu.js +2 -2
- package/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/lib/components/Header/useDropdownSubMenu.d.ts +11 -0
- package/lib/components/Header/useDropdownSubMenu.js +34 -0
- package/lib/components/Header/useDropdownSubMenu.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/data/NavigationData.d.ts +1 -0
- package/lib/hooks/useInn.d.ts +7 -0
- package/lib/hooks/useInn.js +8 -0
- package/lib/hooks/useInn.js.map +1 -0
- package/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/lib/retail/components/Fields/SelectField.d.ts +1 -0
- package/lib/retail/components/Fields/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js +15 -0
- package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/lib/ui-kit/FormField/Fields/{RegionPremiumField.js → FullRegionField.js} +4 -3
- package/lib/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InnDadataField.js +27 -0
- package/lib/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +17 -0
- package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +12 -2
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +8 -1
- package/lib/ui-kit/FormField/validators.js +3 -1
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/Select/Option.d.ts +6 -0
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +28 -6
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/lib/ui-kit/Select/SelectPopup.js +4 -2
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/lib/ui-kit/Select/useSelectPopup.js +3 -2
- package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +4 -0
- package/mobile/bundle/bundle.umd.js +187 -91
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/mobile/bundle/components/Header/DropdownButton.d.ts +2 -0
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +5 -2
- package/mobile/bundle/components/Header/HeaderMoreMenuItem.d.ts +9 -0
- package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +3 -0
- package/mobile/bundle/components/Header/useDropdownSubMenu.d.ts +11 -0
- package/mobile/bundle/data/NavigationData.d.ts +1 -0
- package/mobile/bundle/hooks/useInn.d.ts +7 -0
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/components/Fields/SelectField.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/mobile/bundle/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +8 -1
- package/mobile/bundle/ui-kit/Select/Option.d.ts +6 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +4 -0
- package/mobile/dist/api/LeadServiceAPI.js +13 -6
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/mobile/dist/components/Header/DropdownButton.d.ts +2 -0
- package/mobile/dist/components/Header/DropdownButton.js +11 -0
- package/mobile/dist/components/Header/DropdownButton.js.map +1 -0
- package/mobile/dist/components/Header/DropdownMenu.d.ts +5 -2
- package/mobile/dist/components/Header/DropdownMenu.js +2 -36
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderMoreMenuItem.d.ts +9 -0
- package/mobile/dist/components/Header/HeaderMoreMenuItem.js +27 -0
- package/mobile/dist/components/Header/HeaderMoreMenuItem.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +3 -0
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +19 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js +2 -2
- package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/dist/components/Header/useDropdownSubMenu.d.ts +11 -0
- package/mobile/dist/components/Header/useDropdownSubMenu.js +37 -0
- package/mobile/dist/components/Header/useDropdownSubMenu.js.map +1 -0
- package/mobile/dist/data/NavigationData.d.ts +1 -0
- package/mobile/dist/hooks/useInn.d.ts +7 -0
- package/mobile/dist/hooks/useInn.js +11 -0
- package/mobile/dist/hooks/useInn.js.map +1 -0
- package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/retail/components/Fields/SelectField.d.ts +1 -0
- package/mobile/dist/retail/components/Fields/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js +17 -0
- package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/{dist/ui-kit/FormField/Fields/RegionPremiumField.js → mobile/dist/ui-kit/FormField/Fields/FullRegionField.js} +5 -4
- package/mobile/dist/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.js +29 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +19 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +12 -2
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +8 -1
- package/mobile/dist/ui-kit/FormField/validators.js +5 -2
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Option.d.ts +6 -0
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +27 -5
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/mobile/dist/ui-kit/Select/SelectPopup.js +4 -2
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/mobile/dist/ui-kit/Select/useSelectPopup.js +3 -2
- package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +4 -0
- package/mobile/lib/api/LeadServiceAPI.js +13 -6
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/mobile/lib/components/Header/DropdownButton.d.ts +2 -0
- package/mobile/lib/components/Header/DropdownButton.js +9 -0
- package/mobile/lib/components/Header/DropdownButton.js.map +1 -0
- package/mobile/lib/components/Header/DropdownMenu.d.ts +5 -2
- package/mobile/lib/components/Header/DropdownMenu.js +2 -37
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderMoreMenuItem.d.ts +9 -0
- package/mobile/lib/components/Header/HeaderMoreMenuItem.js +25 -0
- package/mobile/lib/components/Header/HeaderMoreMenuItem.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +3 -0
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +20 -3
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js +2 -2
- package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/lib/components/Header/useDropdownSubMenu.d.ts +11 -0
- package/mobile/lib/components/Header/useDropdownSubMenu.js +34 -0
- package/mobile/lib/components/Header/useDropdownSubMenu.js.map +1 -0
- package/mobile/lib/data/NavigationData.d.ts +1 -0
- package/mobile/lib/hooks/useInn.d.ts +7 -0
- package/mobile/lib/hooks/useInn.js +8 -0
- package/mobile/lib/hooks/useInn.js.map +1 -0
- package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/lib/retail/components/Fields/SelectField.d.ts +1 -0
- package/mobile/lib/retail/components/Fields/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js +15 -0
- package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/{RegionPremiumField.js → FullRegionField.js} +4 -3
- package/mobile/lib/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.js +27 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +17 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +12 -2
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +8 -1
- package/mobile/lib/ui-kit/FormField/validators.js +3 -1
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Option.d.ts +6 -0
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +28 -6
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/mobile/lib/ui-kit/Select/SelectPopup.js +4 -2
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/mobile/lib/ui-kit/Select/useSelectPopup.js +3 -2
- package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +28 -3
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +84 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +29 -14
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +6 -4
- package/mobile/src/components/Header/DropdownButton.tsx +26 -0
- package/mobile/src/components/Header/DropdownMenu.tsx +15 -85
- package/mobile/src/components/Header/HeaderMoreMenuItem.tsx +60 -0
- package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -2
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +31 -5
- package/mobile/src/components/Header/HeaderTopMenu.tsx +3 -3
- package/mobile/src/components/Header/useDropdownSubMenu.tsx +48 -0
- package/mobile/src/data/NavigationData.ts +1 -0
- package/mobile/src/hooks/useInn.ts +16 -0
- package/mobile/src/model/FormTypeFieldDef.ts +2 -1
- package/mobile/src/retail/components/Fields/SelectField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/CompanyNameByInnField.tsx +24 -0
- package/mobile/src/ui-kit/FormField/Fields/{RegionPremiumField.tsx → FullRegionField.tsx} +7 -2
- package/mobile/src/ui-kit/FormField/Fields/InnDadataField.tsx +47 -0
- package/mobile/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +47 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +15 -2
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
- package/mobile/src/ui-kit/FormField/inputColumnStyle.tsx +1 -1
- package/mobile/src/ui-kit/FormField/validators.ts +13 -1
- package/mobile/src/ui-kit/Select/Option.ts +6 -0
- package/mobile/src/ui-kit/Select/Select.tsx +71 -17
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +20 -2
- package/mobile/src/ui-kit/Select/useSelectPopup.tsx +4 -0
- package/package.json +2 -2
- package/src/api/LeadServiceAPI.ts +28 -3
- package/src/components/ApplicationForm/ApplicationForm.example.json +84 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +47 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +47 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +29 -14
- package/src/components/ApplicationForm/ApplicationFormContent.ts +6 -4
- package/src/components/Header/DropdownButton.tsx +26 -0
- package/src/components/Header/DropdownMenu.tsx +15 -85
- package/src/components/Header/Header.fixture.tsx +4 -0
- package/src/components/Header/HeaderMoreMenuItem.tsx +60 -0
- package/src/components/Header/HeaderSubMenu.tsx +3 -2
- package/src/components/Header/HeaderSubMenuItem.tsx +31 -5
- package/src/components/Header/HeaderTopMenu.tsx +3 -3
- package/src/components/Header/useDropdownSubMenu.tsx +48 -0
- package/src/data/NavigationData.ts +1 -0
- package/src/hooks/useInn.ts +16 -0
- package/src/icons/IconName.ts +4 -4
- package/src/model/FormTypeFieldDef.ts +2 -1
- package/src/retail/components/Fields/SelectField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/CompanyNameByInnField.tsx +24 -0
- package/src/ui-kit/FormField/Fields/{RegionPremiumField.tsx → FullRegionField.tsx} +7 -2
- package/src/ui-kit/FormField/Fields/InnDadataField.tsx +47 -0
- package/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +47 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/src/ui-kit/FormField/getField.tsx +15 -2
- package/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
- package/src/ui-kit/FormField/inputColumnStyle.tsx +1 -1
- package/src/ui-kit/FormField/validators.ts +13 -1
- package/src/ui-kit/Select/Option.ts +6 -0
- package/src/ui-kit/Select/Select.tsx +71 -17
- package/src/ui-kit/Select/SelectPopup.tsx +20 -2
- package/src/ui-kit/Select/useSelectPopup.tsx +4 -0
- package/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/mobile/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
2
|
import { type ApplicationFormContent } from './ApplicationFormContent';
|
|
3
|
-
interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
3
|
+
export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const ApplicationForm: import("
|
|
6
|
-
export {};
|
|
5
|
+
export declare const ApplicationForm: import("../../UniBlock/UniBlock").UniBlockComponent<ApplicationFormProps>;
|
|
@@ -54,11 +54,15 @@ declare type productType = {
|
|
|
54
54
|
/** @title Продукт */
|
|
55
55
|
product?: string;
|
|
56
56
|
};
|
|
57
|
+
declare type premiumForm = {
|
|
58
|
+
/** @title Форма для премиума */
|
|
59
|
+
isPremium?: boolean;
|
|
60
|
+
};
|
|
57
61
|
/**
|
|
58
62
|
* @title Отображать выбор продукта
|
|
59
63
|
* @default { "showProduct": "" }
|
|
60
64
|
*/
|
|
61
|
-
declare type additionalParamsType = hideProductDef | showProductDef;
|
|
65
|
+
export declare type additionalParamsType = premiumForm | hideProductDef | showProductDef;
|
|
62
66
|
/**
|
|
63
67
|
* @title Форма заявки настраиваемая
|
|
64
68
|
*/
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
2
|
import { type LinkProps } from '../../model/LinkProps';
|
|
3
3
|
interface DropdownMenuProps extends ComponentType {
|
|
4
|
-
|
|
4
|
+
dropdownRef?: {
|
|
5
|
+
current: HTMLDivElement | null;
|
|
6
|
+
};
|
|
7
|
+
items?: LinkProps[];
|
|
5
8
|
activeItem?: LinkProps;
|
|
6
9
|
ariaLabel?: string;
|
|
7
10
|
}
|
|
8
|
-
export declare const DropdownMenu:
|
|
11
|
+
export declare const DropdownMenu: ({ dropdownRef, items, activeItem, ariaLabel, }: DropdownMenuProps) => any;
|
|
9
12
|
export declare const DropdownMenuItem: import("@redneckz/uni-jsx").UNIComponent<LinkProps & {
|
|
10
13
|
isActive?: boolean | undefined;
|
|
11
14
|
}, any, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComponentType } from '../../model/ComponentType';
|
|
2
|
+
import { type LinkProps } from '../../model/LinkProps';
|
|
3
|
+
interface HeaderMoreMenuItemProps extends ComponentType {
|
|
4
|
+
items: LinkProps[];
|
|
5
|
+
activeItem?: LinkProps;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const HeaderMoreMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderMoreMenuItemProps, any, any>;
|
|
9
|
+
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { type NavigationLinkProps } from '../../data/NavigationData';
|
|
1
2
|
import { type IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
|
|
2
3
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
4
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
5
|
export interface HeaderSubMenuItemProps extends LinkProps, ComponentType {
|
|
5
6
|
active?: boolean;
|
|
7
|
+
activeItem?: LinkProps;
|
|
6
8
|
observerOptions?: IntersectionObserverOptions;
|
|
7
9
|
onVisibilityChange?: (isIntersecting: boolean) => void;
|
|
10
|
+
items?: NavigationLinkProps[];
|
|
8
11
|
}
|
|
9
12
|
export declare const HeaderSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderSubMenuItemProps, any, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
3
|
+
interface DropdownSubMenuOptions extends OnCloseProps {
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
activeItem?: LinkProps;
|
|
6
|
+
items?: LinkProps[];
|
|
7
|
+
}
|
|
8
|
+
export declare function useDropdownSubMenu({ items, activeItem, onClose, isOpen }: DropdownSubMenuOptions): {
|
|
9
|
+
current: HTMLDivElement | null;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @hidden */
|
|
2
|
-
export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN';
|
|
2
|
+
export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN' | 'PF';
|
|
@@ -8,5 +8,6 @@ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps, Label
|
|
|
8
8
|
source?: DictionaryItem[];
|
|
9
9
|
fieldName: string;
|
|
10
10
|
isSearch?: boolean;
|
|
11
|
+
isManualInput?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const SelectField: import("../../../UniBlock/UniBlock").UniBlockComponent<SelectFieldProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JSONRefObject } from '../../../data/JSONRefObject';
|
|
2
|
+
import type { UniBlockProps } from '../../../UniBlock/UniBlockProps';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
export interface PartnerSymbolCodeFieldProps extends CustomFieldProps, UniBlockProps {
|
|
5
|
+
source?: JSONRefObject & {
|
|
6
|
+
agentsList?: AgentType[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare type AgentType = {
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
symbolCode?: string;
|
|
12
|
+
ID?: string;
|
|
13
|
+
agentName?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const PartnerSymbolCodeField: import("../../../UniBlock/UniBlock").UniBlockComponent<PartnerSymbolCodeFieldProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing';
|
|
1
|
+
declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'fullRegion' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing' | 'partnerSymbolCode' | 'innDadata' | 'companyNameByInn';
|
|
2
2
|
export declare type NameFieldDef = NameFieldApplicationDef;
|
|
3
3
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ColumnsCount } from '../../model/ColumnCount';
|
|
2
|
-
export declare const inputColumnStyles: (column: ColumnsCount | undefined) => "" | "@xl:grid-cols-
|
|
2
|
+
export declare const inputColumnStyles: (column: ColumnsCount | undefined) => "@xl:grid-cols-2" | "@xl:grid-cols-1 gap-x-0";
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
interface DadataItem {
|
|
2
|
+
text?: string;
|
|
3
|
+
key?: string;
|
|
4
|
+
innDaData?: any;
|
|
5
|
+
}
|
|
1
6
|
export declare const defaultValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
2
7
|
export declare const defaultSelectValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
3
8
|
export declare const nameValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
4
|
-
export declare const innValidator: (errorMsg: string) => import("../../validation/validator").Validator<
|
|
9
|
+
export declare const innValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
10
|
+
export declare const innDadataValidator: (errorMsg: string) => import("../../validation/validator").Validator<DadataItem>;
|
|
5
11
|
export declare const phoneValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
6
12
|
export declare const phoneOptionalValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
7
13
|
export declare const agreementValidator: import("../../validation/validator").Validator<any>;
|
|
8
14
|
export declare const emailValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
15
|
+
export {};
|
|
@@ -7,6 +7,8 @@ export interface SelectProps extends DefaultControlType, ControlProps<Option> {
|
|
|
7
7
|
valid?: boolean;
|
|
8
8
|
isBorder?: boolean;
|
|
9
9
|
isSearch?: boolean;
|
|
10
|
+
isManualInput?: boolean;
|
|
10
11
|
iconVersion?: IconVersion;
|
|
12
|
+
onSearchQuery?: (value: string) => void;
|
|
11
13
|
}
|
|
12
14
|
export declare const Select: import("@redneckz/uni-jsx").UNIComponent<SelectProps, any, any>;
|
|
@@ -8,5 +8,6 @@ export interface SelectPopupProps extends ControlProps<Option> {
|
|
|
8
8
|
current: HTMLDivElement | null;
|
|
9
9
|
};
|
|
10
10
|
query?: string;
|
|
11
|
+
onChangeQuery?: (value: string) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const SelectPopup: import("@redneckz/uni-jsx").UNIComponent<SelectPopupProps, any, any>;
|
|
@@ -2,8 +2,9 @@ import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
|
2
2
|
import { type SelectPopupProps } from './SelectPopup';
|
|
3
3
|
interface SelectPopupOptions extends SelectPopupProps, OnCloseProps {
|
|
4
4
|
isOpen?: boolean;
|
|
5
|
+
onChangeQuery?: (value: string) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }: SelectPopupOptions): {
|
|
7
|
+
export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, onChangeQuery, }: SelectPopupOptions): {
|
|
7
8
|
current: HTMLDivElement | null;
|
|
8
9
|
};
|
|
9
10
|
export {};
|
|
@@ -5,7 +5,11 @@ export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null>
|
|
|
5
5
|
phone?: string;
|
|
6
6
|
email?: string;
|
|
7
7
|
inn?: string;
|
|
8
|
+
innDadata?: string;
|
|
9
|
+
fullRegion?: string;
|
|
8
10
|
secondaryPhoneNumber?: string;
|
|
11
|
+
partnerSymbolCode?: string;
|
|
12
|
+
companyNameByInn?: string;
|
|
9
13
|
};
|
|
10
14
|
export declare function LeadServiceAPI(): {
|
|
11
15
|
send: (body: LeadRequest, isIndividualType?: boolean) => Promise<any>;
|
|
@@ -5,7 +5,7 @@ const formatPhone_1 = require("../utils/formatPhone");
|
|
|
5
5
|
const apiBaseUrl_1 = require("./apiBaseUrl");
|
|
6
6
|
function LeadServiceAPI() {
|
|
7
7
|
async function send(body, isIndividualType = false) {
|
|
8
|
-
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
8
|
+
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, innDadata, fullRegion, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, partnerSymbolCode, companyNameByInn, ...staticBody } = body;
|
|
9
9
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
10
10
|
const url = `${apiBaseUrl_1.API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
|
|
11
11
|
const submitBody = {
|
|
@@ -23,6 +23,7 @@ function LeadServiceAPI() {
|
|
|
23
23
|
applicationDate,
|
|
24
24
|
...getSecondaryPhone(secondaryPhone),
|
|
25
25
|
}),
|
|
26
|
+
...formatPFForm(typeForm, { innDadata, fullRegion, partnerSymbolCode, companyNameByInn }),
|
|
26
27
|
...staticBody,
|
|
27
28
|
};
|
|
28
29
|
try {
|
|
@@ -54,9 +55,15 @@ const getRegion = (region, isNaturalPerson = true) => ({
|
|
|
54
55
|
const getEmail = (email, isNaturalPerson = true) => ({
|
|
55
56
|
[isNaturalPerson ? 'email' : 'mail']: email,
|
|
56
57
|
});
|
|
57
|
-
const getSecondaryPhone = (secondaryPhone = '') =>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
const getSecondaryPhone = (secondaryPhone = '') => !secondaryPhone || secondaryPhone === '+7 ('
|
|
59
|
+
? {}
|
|
60
|
+
: { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
|
|
61
|
+
const formatPFForm = (typeForm, data) => typeForm === 'PF'
|
|
62
|
+
? {
|
|
63
|
+
inn: data?.innDadata,
|
|
64
|
+
region: data?.fullRegion,
|
|
65
|
+
partnerComments: data?.partnerSymbolCode,
|
|
66
|
+
fullname: data?.companyNameByInn,
|
|
67
|
+
}
|
|
68
|
+
: {};
|
|
62
69
|
//# sourceMappingURL=LeadServiceAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,sDAAmD;AACnD,6CAA4C;
|
|
1
|
+
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,sDAAmD;AACnD,6CAA4C;AAsB5C,SAAgB,cAAc;IAC5B,KAAK,UAAU,IAAI,CAAC,IAAiB,EAAE,gBAAgB,GAAG,KAAK;QAC7D,MAAM,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,GAAG,EAAE,EACV,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,GAAG,EACH,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,GAAG,EAAE,EACnB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,GAAG,UAAU,EACd,GAAG,IAAI,CAAC;QACT,MAAM,eAAe,GAAG,gBAAgB,IAAI,gBAAgB,KAAK,uBAAuB,CAAC;QACzF,MAAM,GAAG,GAAG,GAAG,yBAAY,GAAG,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC;QACjF,MAAM,UAAU,GAAG;YACjB,QAAQ;YACR,GAAG,SAAS,CAAC,MAAM,EAAE,eAAe,CAAC;YACrC,GAAG,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;YACnC,GAAG,QAAQ,CAAC,KAAK,CAAC;YAClB,GAAG,aAAa,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AG,CAAC,EAAE,IAAA,uBAAU,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAE1C,MAAM,SAAS,GAAG,CAAC,MAAsC,EAAE,eAAe,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM;CACtD,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,eAAe,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK;CAC5C,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,CAChD,CAAC,cAAc,IAAI,cAAc,KAAK,MAAM;IAC1C,CAAC,CAAC,EAAE;IACJ,CAAC,CAAC,EAAE,oBAAoB,EAAE,IAAA,yBAAW,EAAC,cAAc,CAAC,EAAE,CAAC;AAE5D,MAAM,YAAY,GAAG,CAAC,QAAiB,EAAE,IAAiB,EAAE,EAAE,CAC5D,QAAQ,KAAK,IAAI;IACf,CAAC,CAAC;QACE,GAAG,EAAE,IAAI,EAAE,SAAS;QACpB,MAAM,EAAE,IAAI,EAAE,UAAU;QACxB,eAAe,EAAE,IAAI,EAAE,iBAAiB;QACxC,QAAQ,EAAE,IAAI,EAAE,gBAAgB;KACjC;IACH,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
2
|
import { type ApplicationFormContent } from './ApplicationFormContent';
|
|
3
|
-
interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
3
|
+
export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const ApplicationForm: import("
|
|
6
|
-
export {};
|
|
5
|
+
export declare const ApplicationForm: import("../../UniBlock/UniBlock").UniBlockComponent<ApplicationFormProps>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.ApplicationForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
4
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
5
|
const LeadServiceAPI_1 = require("../../api/LeadServiceAPI");
|
|
7
6
|
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
@@ -15,13 +14,14 @@ const getObjectValidator_1 = require("../../ui-kit/FormField/getObjectValidator"
|
|
|
15
14
|
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
16
15
|
const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
|
|
17
16
|
const ResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/ResponseTypeDialog");
|
|
17
|
+
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
18
18
|
const style_1 = require("../../utils/style");
|
|
19
19
|
const getFormatData_1 = require("./getFormatData");
|
|
20
20
|
const getInitialFormState_1 = require("./getInitialFormState");
|
|
21
21
|
const renderAgreementSubmit_1 = require("./renderAgreementSubmit");
|
|
22
22
|
const renderContacts_1 = require("./renderContacts");
|
|
23
23
|
const API = (0, LeadServiceAPI_1.LeadServiceAPI)();
|
|
24
|
-
exports.ApplicationForm = (0,
|
|
24
|
+
exports.ApplicationForm = (0, UniBlock_1.UniBlock)(({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
|
|
25
25
|
const inputs = (0, hooks_1.useMemo)(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
26
26
|
const initialFormState = (0, hooks_1.useMemo)(() => (0, getInitialFormState_1.getInitialFormState)(inputs, typeForm), [inputs, typeForm]);
|
|
27
27
|
const formValidator = (0, hooks_1.useMemo)(() => (0, getObjectValidator_1.getFormValidator)(inputs), [inputs]);
|
|
@@ -41,6 +41,7 @@ exports.ApplicationForm = (0, uni_jsx_1.JSX)(({ className, title, typeForm = '',
|
|
|
41
41
|
onSubmit: handleSubmit,
|
|
42
42
|
});
|
|
43
43
|
const fieldName = (0, getConsentDataProcessing_1.getConsentDataProcessing)(inputs)?.name;
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [sections
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), (0, renderAgreementSubmit_1.renderAgreementSubmit)(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? (0, renderContacts_1.renderContacts)() : null] }));
|
|
45
45
|
});
|
|
46
|
+
const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (_?.inputs || [])?.map((0, getField_1.getField)(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
|
|
46
47
|
//# sourceMappingURL=ApplicationForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationForm.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/Ap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ACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CACrB,QAAyB,EACzB,KAA+C,EAC/C,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAClD,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACrF,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC,KAF7E,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
|
|
@@ -54,11 +54,15 @@ declare type productType = {
|
|
|
54
54
|
/** @title Продукт */
|
|
55
55
|
product?: string;
|
|
56
56
|
};
|
|
57
|
+
declare type premiumForm = {
|
|
58
|
+
/** @title Форма для премиума */
|
|
59
|
+
isPremium?: boolean;
|
|
60
|
+
};
|
|
57
61
|
/**
|
|
58
62
|
* @title Отображать выбор продукта
|
|
59
63
|
* @default { "showProduct": "" }
|
|
60
64
|
*/
|
|
61
|
-
declare type additionalParamsType = hideProductDef | showProductDef;
|
|
65
|
+
export declare type additionalParamsType = premiumForm | hideProductDef | showProductDef;
|
|
62
66
|
/**
|
|
63
67
|
* @title Форма заявки настраиваемая
|
|
64
68
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApplicationFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.DropdownButton = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.DropdownButton = (0, uni_jsx_1.JSX)(({ onClick, children, ariaLabel }) => {
|
|
6
|
+
if (children) {
|
|
7
|
+
return children;
|
|
8
|
+
}
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "flex justify-between items-center group/btn h-6 gap-2xs", "aria-label": ariaLabel, onClick: onClick, role: "button", "aria-labelledby": "labeldiv", children: Array.from({ length: 3 }, (_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, i))) }));
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=DropdownButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../src/components/Header/DropdownButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IAClF,IAAI,QAAQ,EAAE;QACZ,OAAO,QAAQ,CAAC;KACjB;IAED,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,yDAAyD,gBACvD,SAAS,EACrB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,QAAQ,qBACG,UAAU,YAEzB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnC,gCAEE,SAAS,EAAC,0GAA0G,IAD/G,CAAC,CAEN,CACH,CAAC,GACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
2
|
import { type LinkProps } from '../../model/LinkProps';
|
|
3
3
|
interface DropdownMenuProps extends ComponentType {
|
|
4
|
-
|
|
4
|
+
dropdownRef?: {
|
|
5
|
+
current: HTMLDivElement | null;
|
|
6
|
+
};
|
|
7
|
+
items?: LinkProps[];
|
|
5
8
|
activeItem?: LinkProps;
|
|
6
9
|
ariaLabel?: string;
|
|
7
10
|
}
|
|
8
|
-
export declare const DropdownMenu:
|
|
11
|
+
export declare const DropdownMenu: ({ dropdownRef, items, activeItem, ariaLabel, }: DropdownMenuProps) => any;
|
|
9
12
|
export declare const DropdownMenuItem: import("@redneckz/uni-jsx").UNIComponent<LinkProps & {
|
|
10
13
|
isActive?: boolean | undefined;
|
|
11
14
|
}, any, any>;
|
|
@@ -2,45 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.DropdownMenuItem = exports.DropdownMenu = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
|
|
7
|
-
const useEventListener_1 = require("@redneckz/uni-jsx/lib/hooks/useEventListener");
|
|
8
|
-
const useOutsideClick_1 = require("@redneckz/uni-jsx/lib/hooks/useOutsideClick");
|
|
9
5
|
const useLink_1 = require("../../hooks/useLink");
|
|
10
6
|
const dataAttributes_1 = require("../../utils/dataAttributes");
|
|
11
7
|
const style_1 = require("../../utils/style");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const ref = (0, useOutsideClick_1.useOutsideClick)(setFalse);
|
|
15
|
-
const dropdownRef = (0, hooks_1.useRef)(null);
|
|
16
|
-
const changeDropdownPosition = (0, hooks_1.useCallback)(({ isOpened, buttonRef, menuRef }) => {
|
|
17
|
-
if (isOpened && buttonRef.current && menuRef.current) {
|
|
18
|
-
const dropdownRect = menuRef.current.getBoundingClientRect();
|
|
19
|
-
const dropdownButtonRect = buttonRef.current.getBoundingClientRect();
|
|
20
|
-
const newDropdownPosition = globalThis.innerWidth - dropdownRect.width;
|
|
21
|
-
if (dropdownRect.right >= globalThis.innerWidth) {
|
|
22
|
-
menuRef.current.style.left = `${newDropdownPosition}px`;
|
|
23
|
-
}
|
|
24
|
-
else if (dropdownButtonRect.left > dropdownRect.left) {
|
|
25
|
-
if (newDropdownPosition > dropdownButtonRect.left) {
|
|
26
|
-
menuRef.current.style.left = '';
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
menuRef.current.style.left = `${newDropdownPosition}px`;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}, [isVisible]);
|
|
34
|
-
(0, useEventListener_1.useEventListener)(globalThis, 'resize', () => changeDropdownPosition({ isOpened: isVisible, buttonRef: ref, menuRef: dropdownRef }));
|
|
35
|
-
(0, hooks_1.useEffect)(() => {
|
|
36
|
-
changeDropdownPosition({ isOpened: isVisible, buttonRef: ref, menuRef: dropdownRef });
|
|
37
|
-
}, [isVisible]);
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(isVisible ? 'rounded-md shadow-blue-gray' : '', className), ref: ref, role: "navigation", children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "group/btn flex justify-between items-center h-6", "aria-label": ariaLabel, onClick: toggle, role: "button", "aria-labelledby": "labeldiv", children: Array(3)
|
|
39
|
-
.fill(null)
|
|
40
|
-
.map((_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), (0, jsx_runtime_1.jsx)("div", { ref: dropdownRef, className: (0, style_1.style)('absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40', {
|
|
41
|
-
hidden: !isVisible,
|
|
42
|
-
}), "aria-hidden": !isVisible, children: renderDropdownItems(items, activeItem) })] }));
|
|
43
|
-
});
|
|
8
|
+
const DropdownMenu = ({ dropdownRef, items = [], activeItem, ariaLabel, }) => ((0, jsx_runtime_1.jsx)("div", { ref: dropdownRef, className: "absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40", "aria-label": ariaLabel, children: renderDropdownItems(items, activeItem) }));
|
|
9
|
+
exports.DropdownMenu = DropdownMenu;
|
|
44
10
|
exports.DropdownMenuItem = (0, uni_jsx_1.JSX)(({ isActive, ...rest }) => {
|
|
45
11
|
const link = (0, useLink_1.useLink)();
|
|
46
12
|
const { text, href, target, onClick } = link(rest);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/Header/DropdownMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/Header/DropdownMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,+DAAkE;AAClE,6CAA0C;AASnC,MAAM,YAAY,GAAG,CAAC,EAC3B,WAAW,EACX,KAAK,GAAG,EAAE,EACV,UAAU,EACV,SAAS,GACS,EAAE,EAAE,CAAC,CACvB,gCACE,GAAG,EAAE,WAAW,EAChB,SAAS,EAAC,iEAAiE,gBAC/D,SAAS,YAEpB,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,GACnC,CACP,CAAC;AAbW,QAAA,YAAY,gBAavB;AAEW,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAqC,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,8BACE,SAAS,EAAE,IAAA,aAAK,EAAC,gDAAgD,EAAE;YACjE,mBAAmB,EAAE,QAAQ;SAC9B,CAAC,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,MAAM,KAEP,IAAA,qCAAoB,EAAC,IAAI,EAAE,IAAI,CAAC,YAEnC,IAAI,GACH,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,CAAC,KAAkB,EAAE,UAAsB,EAAE,EAAE,CACzE,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,wBAAgB,IAA+B,QAAQ,EAAE,IAAI,KAAK,UAAU,KAAM,IAAI,IAAhE,IAAI,EAAE,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,CAA6C,CAC5F,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComponentType } from '../../model/ComponentType';
|
|
2
|
+
import { type LinkProps } from '../../model/LinkProps';
|
|
3
|
+
interface HeaderMoreMenuItemProps extends ComponentType {
|
|
4
|
+
items: LinkProps[];
|
|
5
|
+
activeItem?: LinkProps;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const HeaderMoreMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderMoreMenuItemProps, any, any>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.HeaderMoreMenuItem = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
|
|
7
|
+
const style_1 = require("../../utils/style");
|
|
8
|
+
const useDropdownSubMenu_1 = require("./useDropdownSubMenu");
|
|
9
|
+
exports.HeaderMoreMenuItem = (0, uni_jsx_1.JSX)(({ className = '', items, activeItem, ariaLabel = 'Меню' }) => {
|
|
10
|
+
const [isOpenDropdown, { setFalse, toggle }] = (0, useBool_1.useBool)(false);
|
|
11
|
+
const dropdownMenu = (0, useDropdownSubMenu_1.useDropdownSubMenu)({
|
|
12
|
+
items,
|
|
13
|
+
onClose: setFalse,
|
|
14
|
+
isOpen: isOpenDropdown,
|
|
15
|
+
activeItem,
|
|
16
|
+
});
|
|
17
|
+
(0, hooks_1.useEffect)(() => {
|
|
18
|
+
dropdownMenu.current?.addEventListener('mouseleave', setFalse);
|
|
19
|
+
return () => {
|
|
20
|
+
dropdownMenu.current?.removeEventListener('mouseleave', setFalse);
|
|
21
|
+
};
|
|
22
|
+
}, []);
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(isOpenDropdown ? 'rounded-md shadow-blue-gray' : '', className), ref: dropdownMenu, role: "navigation", children: (0, jsx_runtime_1.jsx)("button", { type: "button", className: "group/btn flex justify-between items-center h-6", "aria-label": ariaLabel, onClick: toggle, role: "button", "aria-labelledby": "labeldiv", children: Array(3)
|
|
24
|
+
.fill(null)
|
|
25
|
+
.map((_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }) }));
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=HeaderMoreMenuItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderMoreMenuItem.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderMore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,CAAC,CAAC,CAAC,CAEd,CACH,CAAC,GACG,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,8 +5,8 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const useActiveRoute_1 = require("../../hooks/useActiveRoute");
|
|
7
7
|
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
8
|
-
const DropdownMenu_1 = require("./DropdownMenu");
|
|
9
8
|
const HeaderChatBotButton_1 = require("./HeaderChatBotButton");
|
|
9
|
+
const HeaderMoreMenuItem_1 = require("./HeaderMoreMenuItem");
|
|
10
10
|
const HeaderSubMenuItem_1 = require("./HeaderSubMenuItem");
|
|
11
11
|
const InternetBankButton_1 = require("./InternetBankButton");
|
|
12
12
|
exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ subItems = [], version, internetBankButton, dropdownMenuAriaLabel, chatBotAriaLabel }) => {
|
|
@@ -21,7 +21,7 @@ exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ subItems = [], version, internetBa
|
|
|
21
21
|
? handleIntersectionActivation(index)
|
|
22
22
|
: handleIntersectionDeactivation(index));
|
|
23
23
|
}), [subItems]);
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)("nav", { className: "mt-s flex gap-s items-center justify-between", children: [(0, jsx_runtime_1.jsx)("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-lg", role: "menu", children: subItems.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderSubMenuItem_1.HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? ((0, jsx_runtime_1.jsx)(
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("nav", { className: "mt-s flex gap-s items-center justify-between", children: [(0, jsx_runtime_1.jsx)("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-lg", role: "menu", children: subItems.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderSubMenuItem_1.HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, activeItem: activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? ((0, jsx_runtime_1.jsx)(HeaderMoreMenuItem_1.HeaderMoreMenuItem, { items: dropDownMenuItems, activeItem: activeSubItem, ariaLabel: dropdownMenuAriaLabel })) : null, ProjectSettings_1.projectSettings.CHAT_BOT ? ((0, jsx_runtime_1.jsx)(HeaderChatBotButton_1.HeaderChatBotButton, { version: version, iconVersion: iconVersion, ariaLabel: chatBotAriaLabel })) : null, (0, jsx_runtime_1.jsx)(InternetBankButton_1.InternetBankButton, { version: version, ...internetBankButton })] }));
|
|
25
25
|
});
|
|
26
26
|
const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
|
|
27
27
|
const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwE;AAExE,+DAA4D;AAI5D,2DAAwD;AACxD
|
|
1
|
+
{"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwE;AAExE,+DAA4D;AAI5D,2DAAwD;AACxD,+DAA4D;AAC5D,6DAA0D;AAE1D,2DAAwD;AACxD,6DAA0D;AAU7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,QAAQ,GAAG,EAA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AAE,CAAC,KAAK,aAAa,EAC3B,UAAU,EAAE,aAAa,EACzB,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,0BAA0B,CAAC,CAAC,CAAC,EACjD,IAAI,EAAE,CAAC,CAAC,UAAU,KACd,CAAC,IAPA,MAAM,CAAC,CAAC,CAAC,CAQd,CACH,CAAC,GACE,EACL,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAC1B,uBAAC,uCAAkB,IACjB,KAAK,EAAE,iBAAiB,EACxB,UAAU,EAAE,aAAa,EACzB,SAAS,EAAE,qBAAqB,GAChC,CACH,CAAC,CAAC,CAAC,IAAI,EACP,iCAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC1B,uBAAC,yCAAmB,IAClB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,gBAAgB,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,uCAAkB,IAAC,OAAO,EAAE,OAAO,KAAM,kBAAkB,GAAI,IAC5D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,4BAA4B,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACpG,MAAM,8BAA8B,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { type NavigationLinkProps } from '../../data/NavigationData';
|
|
1
2
|
import { type IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
|
|
2
3
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
4
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
5
|
export interface HeaderSubMenuItemProps extends LinkProps, ComponentType {
|
|
5
6
|
active?: boolean;
|
|
7
|
+
activeItem?: LinkProps;
|
|
6
8
|
observerOptions?: IntersectionObserverOptions;
|
|
7
9
|
onVisibilityChange?: (isIntersecting: boolean) => void;
|
|
10
|
+
items?: NavigationLinkProps[];
|
|
8
11
|
}
|
|
9
12
|
export declare const HeaderSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderSubMenuItemProps, any, any>;
|