@redneckz/wildless-cms-uni-blocks 0.14.828 → 0.14.829
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.828.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +113 -345
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Blocks.js +0 -10
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -8
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -10
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -8
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +107 -304
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Blocks.js +0 -8
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -8
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -8
- package/package.json +2 -2
- package/src/components/Blocks.mobile.ts +0 -8
- package/src/components/Blocks.ts +0 -10
- package/bundle/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/bundle/components/Placeholder/Placeholder.d.ts +0 -5
- package/bundle/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/bundle/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/bundle/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/bundle/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/bundle/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/bundle/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/bundle/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/bundle/components/SafeDepositRental/utils.d.ts +0 -4
- package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/dist/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/dist/components/GracePeriod/GracePeriod.js +0 -25
- package/dist/components/GracePeriod/GracePeriod.js.map +0 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/dist/components/GracePeriod/GracePeriodContent.js +0 -2
- package/dist/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/dist/components/MortgageFiltration/MortgageFiltration.js +0 -36
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/dist/components/Placeholder/Placeholder.d.ts +0 -5
- package/dist/components/Placeholder/Placeholder.js +0 -10
- package/dist/components/Placeholder/Placeholder.js.map +0 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/dist/components/Placeholder/PlaceholderContent.js +0 -2
- package/dist/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/dist/components/ProductGallery/ProductGallery.js +0 -33
- package/dist/components/ProductGallery/ProductGallery.js.map +0 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/dist/components/ProductGallery/ProductGallery.mobile.js +0 -12
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +0 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/dist/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/dist/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/dist/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/dist/components/SafeDepositRental/RadioButtons.js +0 -13
- package/dist/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +0 -7
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/dist/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/dist/components/SafeDepositRental/RentalPeriod.js +0 -11
- package/dist/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/dist/components/SafeDepositRental/SafeBoxCases.js +0 -7
- package/dist/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/dist/components/SafeDepositRental/SafeDepositRental.js +0 -33
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +0 -18
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +0 -27
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -34
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/dist/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/dist/components/SafeDepositRental/WrapperSelect.js +0 -13
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/dist/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/dist/components/SafeDepositRental/useGetRegions.js +0 -13
- package/dist/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/dist/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/dist/components/SafeDepositRental/useSafeBoxes.js +0 -17
- package/dist/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/dist/components/SafeDepositRental/utils.d.ts +0 -4
- package/dist/components/SafeDepositRental/utils.js +0 -21
- package/dist/components/SafeDepositRental/utils.js.map +0 -1
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/lib/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +0 -7
- package/lib/components/GracePeriod/GracePeriod.js +0 -23
- package/lib/components/GracePeriod/GracePeriod.js.map +0 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/lib/components/GracePeriod/GracePeriodContent.js +0 -2
- package/lib/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/lib/components/MortgageFiltration/MortgageFiltration.fixture.d.ts +0 -6
- package/lib/components/MortgageFiltration/MortgageFiltration.fixture.mobile.d.ts +0 -6
- package/lib/components/MortgageFiltration/MortgageFiltration.js +0 -34
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/lib/components/Placeholder/Placeholder.d.ts +0 -5
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +0 -5
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +0 -3
- package/lib/components/Placeholder/Placeholder.js +0 -8
- package/lib/components/Placeholder/Placeholder.js.map +0 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/lib/components/Placeholder/PlaceholderContent.js +0 -2
- package/lib/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +0 -6
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +0 -6
- package/lib/components/ProductGallery/ProductGallery.js +0 -31
- package/lib/components/ProductGallery/ProductGallery.js.map +0 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/lib/components/ProductGallery/ProductGallery.mobile.js +0 -10
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +0 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/lib/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/lib/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/lib/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/lib/components/SafeDepositRental/RadioButtons.js +0 -11
- package/lib/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +0 -5
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/lib/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/lib/components/SafeDepositRental/RentalPeriod.js +0 -9
- package/lib/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/lib/components/SafeDepositRental/SafeBoxCases.js +0 -5
- package/lib/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +0 -5
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.mobile.d.ts +0 -5
- package/lib/components/SafeDepositRental/SafeDepositRental.js +0 -31
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +0 -16
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +0 -25
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -32
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/lib/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/lib/components/SafeDepositRental/WrapperSelect.js +0 -11
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/lib/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/lib/components/SafeDepositRental/useGetRegions.js +0 -10
- package/lib/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/lib/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/lib/components/SafeDepositRental/useSafeBoxes.js +0 -14
- package/lib/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/lib/components/SafeDepositRental/utils.d.ts +0 -4
- package/lib/components/SafeDepositRental/utils.js +0 -17
- package/lib/components/SafeDepositRental/utils.js.map +0 -1
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +0 -5
- package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/mobile/bundle/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/mobile/bundle/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/mobile/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/mobile/bundle/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/mobile/bundle/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/mobile/bundle/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/mobile/bundle/components/SafeDepositRental/utils.d.ts +0 -4
- package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/mobile/dist/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/mobile/dist/components/GracePeriod/GracePeriod.js +0 -25
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +0 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/mobile/dist/components/GracePeriod/GracePeriodContent.js +0 -2
- package/mobile/dist/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +0 -36
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +0 -5
- package/mobile/dist/components/Placeholder/Placeholder.js +0 -10
- package/mobile/dist/components/Placeholder/Placeholder.js.map +0 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/mobile/dist/components/Placeholder/PlaceholderContent.js +0 -2
- package/mobile/dist/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/mobile/dist/components/ProductGallery/ProductGallery.js +0 -12
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +0 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/mobile/dist/components/SafeDepositRental/RadioButtons.js +0 -13
- package/mobile/dist/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +0 -7
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js +0 -11
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +0 -7
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +0 -33
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +0 -18
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +0 -27
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -34
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js +0 -13
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js +0 -13
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js +0 -17
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/utils.d.ts +0 -4
- package/mobile/dist/components/SafeDepositRental/utils.js +0 -21
- package/mobile/dist/components/SafeDepositRental/utils.js.map +0 -1
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/mobile/lib/components/GracePeriod/GracePeriod.js +0 -23
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +0 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/mobile/lib/components/GracePeriod/GracePeriodContent.js +0 -2
- package/mobile/lib/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +0 -34
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +0 -5
- package/mobile/lib/components/Placeholder/Placeholder.js +0 -8
- package/mobile/lib/components/Placeholder/Placeholder.js.map +0 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/mobile/lib/components/Placeholder/PlaceholderContent.js +0 -2
- package/mobile/lib/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/mobile/lib/components/ProductGallery/ProductGallery.js +0 -10
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +0 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/mobile/lib/components/SafeDepositRental/RadioButtons.js +0 -11
- package/mobile/lib/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +0 -5
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js +0 -9
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +0 -5
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +0 -31
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +0 -16
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +0 -25
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -32
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js +0 -11
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js +0 -10
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js +0 -14
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/utils.d.ts +0 -4
- package/mobile/lib/components/SafeDepositRental/utils.js +0 -17
- package/mobile/lib/components/SafeDepositRental/utils.js.map +0 -1
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +0 -89
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +0 -87
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +0 -20
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +0 -26
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.example.json +0 -115
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +0 -69
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.ui.json +0 -12
- package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +0 -38
- package/mobile/src/components/Placeholder/Placeholder.tsx +0 -25
- package/mobile/src/components/Placeholder/Placeholder.ui.json +0 -1
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +0 -7
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +0 -72
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +0 -29
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +0 -42
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +0 -27
- package/mobile/src/components/SafeDepositRental/RadioButtons.tsx +0 -33
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +0 -48
- package/mobile/src/components/SafeDepositRental/RentalPeriod.tsx +0 -21
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +0 -46
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +0 -75
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +0 -8
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +0 -8
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +0 -74
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +0 -62
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +0 -74
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -9
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +0 -33
- package/mobile/src/components/SafeDepositRental/useGetRegions.ts +0 -19
- package/mobile/src/components/SafeDepositRental/useSafeBoxes.ts +0 -44
- package/mobile/src/components/SafeDepositRental/utils.ts +0 -24
- package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +0 -8
- package/src/components/GracePeriod/GracePeriod.example.json +0 -89
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +0 -109
- package/src/components/GracePeriod/GracePeriod.tsx +0 -87
- package/src/components/GracePeriod/GracePeriod.ui.json +0 -20
- package/src/components/GracePeriod/GracePeriodContent.ts +0 -26
- package/src/components/MortgageFiltration/MortgageFiltration.example.json +0 -115
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +0 -226
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +0 -226
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +0 -69
- package/src/components/MortgageFiltration/MortgageFiltration.ui.json +0 -12
- package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +0 -38
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +0 -9
- package/src/components/Placeholder/Placeholder.fixture.tsx +0 -11
- package/src/components/Placeholder/Placeholder.tsx +0 -25
- package/src/components/Placeholder/Placeholder.ui.json +0 -1
- package/src/components/Placeholder/PlaceholderContent.ts +0 -7
- package/src/components/ProductGallery/ProductGallery.example.json +0 -72
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +0 -146
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +0 -120
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +0 -29
- package/src/components/ProductGallery/ProductGallery.tsx +0 -117
- package/src/components/ProductGallery/ProductGallery.ui.json +0 -42
- package/src/components/ProductGallery/ProductGalleryContent.ts +0 -27
- package/src/components/SafeDepositRental/RadioButtons.tsx +0 -33
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +0 -48
- package/src/components/SafeDepositRental/RentalPeriod.tsx +0 -21
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +0 -46
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.mobile.tsx +0 -15
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +0 -17
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +0 -75
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +0 -8
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +0 -8
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +0 -74
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +0 -62
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +0 -74
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -9
- package/src/components/SafeDepositRental/WrapperSelect.tsx +0 -33
- package/src/components/SafeDepositRental/useGetRegions.ts +0 -19
- package/src/components/SafeDepositRental/useSafeBoxes.ts +0 -44
- package/src/components/SafeDepositRental/utils.ts +0 -24
- package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +0 -8
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"filtrationSchema": {
|
|
4
|
-
"propertyType": {
|
|
5
|
-
"title": "Тип недвижимости",
|
|
6
|
-
"type": "array",
|
|
7
|
-
"items": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["flat", "apartment", "house", "storeRoom", "parkingSpace", "suburban"],
|
|
10
|
-
"enumNames": [
|
|
11
|
-
"Квартира",
|
|
12
|
-
"Апартаменты",
|
|
13
|
-
"Жилой дом",
|
|
14
|
-
"Кладовая",
|
|
15
|
-
"Машино-место",
|
|
16
|
-
"Загородная недвижимость"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"stage": {
|
|
21
|
-
"title": "Этап строительства",
|
|
22
|
-
"type": "array",
|
|
23
|
-
"items": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"enum": ["built", "inProgress"],
|
|
26
|
-
"enumNames": ["Готовое жильё", "Строящиеся"]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"categories": {
|
|
30
|
-
"title": "Категории",
|
|
31
|
-
"type": "array",
|
|
32
|
-
"items": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"enum": ["salaryClient", "IT", "youngFamily", "military", "medicalWorker", "scientist"],
|
|
35
|
-
"enumNames": [
|
|
36
|
-
"Зарплатный клиент",
|
|
37
|
-
"IT-специалист",
|
|
38
|
-
"Молодая семья",
|
|
39
|
-
"Военнослужащий",
|
|
40
|
-
"Медицинский работник",
|
|
41
|
-
"Научный сотрудник"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"extraOptions": {
|
|
46
|
-
"title": "Дополнительно",
|
|
47
|
-
"type": "array",
|
|
48
|
-
"items": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"enum": ["preferentialMortgage", "children", "refinancing"],
|
|
51
|
-
"enumNames": ["Льготная ипотека", "Дети", "Рефинансирование"]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"hotFilters": [
|
|
56
|
-
{
|
|
57
|
-
"text": "Все программы"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"text": "Льготные программы",
|
|
61
|
-
"filter": {
|
|
62
|
-
"categories": [],
|
|
63
|
-
"extraOptions": ["preferentialMortgage"],
|
|
64
|
-
"propertyType": [],
|
|
65
|
-
"stage": []
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"text": "Строящееся жилье",
|
|
70
|
-
"filter": {
|
|
71
|
-
"stage": ["inProgress"],
|
|
72
|
-
"categories": [],
|
|
73
|
-
"extraOptions": [],
|
|
74
|
-
"propertyType": []
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"text": "Готовое жилье",
|
|
79
|
-
"filter": {
|
|
80
|
-
"stage": ["built"],
|
|
81
|
-
"categories": [],
|
|
82
|
-
"extraOptions": [],
|
|
83
|
-
"propertyType": []
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"text": "Загородная недвижимость",
|
|
88
|
-
"filter": {
|
|
89
|
-
"propertyType": ["suburban"],
|
|
90
|
-
"categories": [],
|
|
91
|
-
"extraOptions": [],
|
|
92
|
-
"stage": []
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"text": "Рефинансирование",
|
|
97
|
-
"filter": {
|
|
98
|
-
"categories": [],
|
|
99
|
-
"extraOptions": ["refinancing"],
|
|
100
|
-
"propertyType": [],
|
|
101
|
-
"stage": []
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"resetButton": {
|
|
106
|
-
"text": "Очистить фильтры",
|
|
107
|
-
"version": "secondary"
|
|
108
|
-
},
|
|
109
|
-
"notFound": {
|
|
110
|
-
"title": "Нет подходящей программы",
|
|
111
|
-
"description": "Попробуйте очистить фильтры"
|
|
112
|
-
},
|
|
113
|
-
"blocksSection": { "view": "grid", "label": "Заголовок" }
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
|
-
import { Blocks } from '../Blocks';
|
|
5
|
-
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
6
|
-
import { MortgageFiltration } from './MortgageFiltration';
|
|
7
|
-
import {
|
|
8
|
-
type MortgageFiltrationContent,
|
|
9
|
-
type MortgageFiltrationHotFilter,
|
|
10
|
-
} from './MortgageFiltrationContent';
|
|
11
|
-
|
|
12
|
-
const PROPERTY_APARTMENT = {
|
|
13
|
-
propertyType: ['apartment'],
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const PROPERTY_FLAT = {
|
|
17
|
-
propertyType: ['flat'],
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const PROPERTY_HOUSE = {
|
|
21
|
-
propertyType: ['house'],
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const STAGE_BUILT = {
|
|
25
|
-
stage: ['built'],
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const STAGE_IN_PROGRESS = {
|
|
29
|
-
stage: ['inProgress'],
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const EXTRA_MORTGAGE = {
|
|
33
|
-
extraOptions: ['preferentialMortgage'],
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const EXTRA_CHILDREN = {
|
|
37
|
-
extraOptions: ['children'],
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const CATEGORY_IT = {
|
|
41
|
-
categories: ['IT'],
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const CATEGORY_SALARY = {
|
|
45
|
-
categories: ['salaryClient'],
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const generateBlock = (...presets: any[]) => ({
|
|
49
|
-
type: 'ProductBlock',
|
|
50
|
-
style: ['col-span-6'],
|
|
51
|
-
content: { ...presets.reduce((acc, p) => ({ ...acc, ...p })) },
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const SCHEMA: MortgageFiltrationContent['filtrationSchema'] = {
|
|
55
|
-
propertyType: {
|
|
56
|
-
title: 'Тип недвижимости',
|
|
57
|
-
type: 'array',
|
|
58
|
-
items: {
|
|
59
|
-
type: 'string',
|
|
60
|
-
enum: ['flat', 'apartment', 'house', 'storeRoom', 'parkingSpace', 'suburban'],
|
|
61
|
-
enumNames: [
|
|
62
|
-
'Квартира',
|
|
63
|
-
'Апартаменты',
|
|
64
|
-
'Жилой дом',
|
|
65
|
-
'Кладовая',
|
|
66
|
-
'Машино-место',
|
|
67
|
-
'Загородная недвижимость',
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
stage: {
|
|
72
|
-
title: 'Этап строительства',
|
|
73
|
-
type: 'array',
|
|
74
|
-
items: {
|
|
75
|
-
type: 'string',
|
|
76
|
-
enum: ['built', 'inProgress'],
|
|
77
|
-
enumNames: ['Готовое жильё', 'Строящиеся'],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
categories: {
|
|
81
|
-
title: 'Категории',
|
|
82
|
-
type: 'array',
|
|
83
|
-
items: {
|
|
84
|
-
type: 'string',
|
|
85
|
-
enum: ['salaryClient', 'IT', 'youngFamily', 'military', 'medicalWorker', 'scientist'],
|
|
86
|
-
enumNames: [
|
|
87
|
-
'Зарплатный клиент',
|
|
88
|
-
'IT-специалист',
|
|
89
|
-
'Молодая семья',
|
|
90
|
-
'Военнослужащий',
|
|
91
|
-
'Медицинский работник',
|
|
92
|
-
'Научный сотрудник',
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
extraOptions: {
|
|
97
|
-
title: 'Дополнительно',
|
|
98
|
-
type: 'array',
|
|
99
|
-
items: {
|
|
100
|
-
type: 'string',
|
|
101
|
-
enum: ['preferentialMortgage', 'children', 'refinancing'],
|
|
102
|
-
enumNames: ['Льготная ипотека', 'Дети', 'Рефинансирование'],
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
const HOT_FILTERS: MortgageFiltrationHotFilter[] = [
|
|
108
|
-
{ text: 'Все программы' },
|
|
109
|
-
{
|
|
110
|
-
text: 'Льготные программы',
|
|
111
|
-
filter: {
|
|
112
|
-
categories: [],
|
|
113
|
-
extraOptions: ['preferentialMortgage'],
|
|
114
|
-
propertyType: [],
|
|
115
|
-
stage: [],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
text: 'Строящееся жилье',
|
|
120
|
-
filter: { stage: ['inProgress'], categories: [], extraOptions: [], propertyType: [] },
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
text: 'Готовое жилье',
|
|
124
|
-
filter: { stage: ['built'], categories: [], extraOptions: [], propertyType: [] },
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
text: 'Загородная недвижимость',
|
|
128
|
-
filter: { propertyType: ['suburban'], categories: [], extraOptions: [], stage: [] },
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
text: 'Рефинансирование',
|
|
132
|
-
filter: { categories: [], extraOptions: ['refinancing'], propertyType: [], stage: [] },
|
|
133
|
-
},
|
|
134
|
-
];
|
|
135
|
-
|
|
136
|
-
const options = {
|
|
137
|
-
blocksRegistry: Blocks,
|
|
138
|
-
} as BlockRendererOptions;
|
|
139
|
-
|
|
140
|
-
const BLOCKS = [
|
|
141
|
-
generateBlock(
|
|
142
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
143
|
-
PROPERTY_APARTMENT,
|
|
144
|
-
STAGE_IN_PROGRESS,
|
|
145
|
-
EXTRA_MORTGAGE,
|
|
146
|
-
CATEGORY_IT,
|
|
147
|
-
),
|
|
148
|
-
generateBlock(
|
|
149
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
150
|
-
PROPERTY_APARTMENT,
|
|
151
|
-
STAGE_BUILT,
|
|
152
|
-
EXTRA_CHILDREN,
|
|
153
|
-
CATEGORY_SALARY,
|
|
154
|
-
),
|
|
155
|
-
generateBlock(
|
|
156
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
157
|
-
PROPERTY_FLAT,
|
|
158
|
-
STAGE_IN_PROGRESS,
|
|
159
|
-
EXTRA_MORTGAGE,
|
|
160
|
-
CATEGORY_SALARY,
|
|
161
|
-
),
|
|
162
|
-
generateBlock(
|
|
163
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
164
|
-
PROPERTY_FLAT,
|
|
165
|
-
STAGE_BUILT,
|
|
166
|
-
EXTRA_MORTGAGE,
|
|
167
|
-
CATEGORY_SALARY,
|
|
168
|
-
),
|
|
169
|
-
generateBlock(
|
|
170
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
171
|
-
PROPERTY_APARTMENT,
|
|
172
|
-
STAGE_BUILT,
|
|
173
|
-
EXTRA_CHILDREN,
|
|
174
|
-
CATEGORY_IT,
|
|
175
|
-
),
|
|
176
|
-
generateBlock(
|
|
177
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
178
|
-
PROPERTY_HOUSE,
|
|
179
|
-
STAGE_BUILT,
|
|
180
|
-
EXTRA_MORTGAGE,
|
|
181
|
-
CATEGORY_SALARY,
|
|
182
|
-
),
|
|
183
|
-
];
|
|
184
|
-
|
|
185
|
-
export default {
|
|
186
|
-
default: (
|
|
187
|
-
<div className="container grid grid-cols-12">
|
|
188
|
-
<MortgageFiltration
|
|
189
|
-
className="col-span-12"
|
|
190
|
-
blocksSection={{ view: 'grid', label: 'Другие ипотечные программы', topItemsCount: 2 }}
|
|
191
|
-
filtrationSchema={SCHEMA}
|
|
192
|
-
hotFilters={HOT_FILTERS}
|
|
193
|
-
resetButton={{ text: 'Очистить фильтры', version: 'secondary' }}
|
|
194
|
-
notFound={{
|
|
195
|
-
title: 'Нет подходящей программы',
|
|
196
|
-
description: 'Попробуйте очистить фильтры',
|
|
197
|
-
}}
|
|
198
|
-
block={{
|
|
199
|
-
type: 'MortgageFiltration',
|
|
200
|
-
blocks: BLOCKS,
|
|
201
|
-
}}
|
|
202
|
-
options={options}
|
|
203
|
-
/>
|
|
204
|
-
</div>
|
|
205
|
-
),
|
|
206
|
-
carousel: (
|
|
207
|
-
<div className="container grid grid-cols-12">
|
|
208
|
-
<MortgageFiltration
|
|
209
|
-
className="col-span-12"
|
|
210
|
-
blocksSection={{ view: 'carousel' }}
|
|
211
|
-
filtrationSchema={SCHEMA}
|
|
212
|
-
hotFilters={HOT_FILTERS}
|
|
213
|
-
resetButton={{ text: 'Очистить фильтры', version: 'secondary' }}
|
|
214
|
-
notFound={{
|
|
215
|
-
title: 'Нет подходящей программы',
|
|
216
|
-
description: 'Попробуйте очистить фильтры',
|
|
217
|
-
}}
|
|
218
|
-
block={{
|
|
219
|
-
type: 'MortgageFiltration',
|
|
220
|
-
blocks: BLOCKS,
|
|
221
|
-
}}
|
|
222
|
-
options={options}
|
|
223
|
-
/>
|
|
224
|
-
</div>
|
|
225
|
-
),
|
|
226
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
|
-
import { Blocks } from '../Blocks';
|
|
5
|
-
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
6
|
-
import { MortgageFiltration } from './MortgageFiltration';
|
|
7
|
-
import {
|
|
8
|
-
type MortgageFiltrationContent,
|
|
9
|
-
type MortgageFiltrationHotFilter,
|
|
10
|
-
} from './MortgageFiltrationContent';
|
|
11
|
-
|
|
12
|
-
const PROPERTY_APARTMENT = {
|
|
13
|
-
propertyType: ['apartment'],
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const PROPERTY_FLAT = {
|
|
17
|
-
propertyType: ['flat'],
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const PROPERTY_HOUSE = {
|
|
21
|
-
propertyType: ['house'],
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const STAGE_BUILT = {
|
|
25
|
-
stage: ['built'],
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const STAGE_IN_PROGRESS = {
|
|
29
|
-
stage: ['inProgress'],
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const EXTRA_MORTGAGE = {
|
|
33
|
-
extraOptions: ['preferentialMortgage'],
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const EXTRA_CHILDREN = {
|
|
37
|
-
extraOptions: ['children'],
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const CATEGORY_IT = {
|
|
41
|
-
categories: ['IT'],
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const CATEGORY_SALARY = {
|
|
45
|
-
categories: ['salaryClient'],
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const generateBlock = (...presets: any[]) => ({
|
|
49
|
-
type: 'ProductBlock',
|
|
50
|
-
style: ['col-span-6'],
|
|
51
|
-
content: { ...presets.reduce((acc, p) => ({ ...acc, ...p })) },
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const SCHEMA: MortgageFiltrationContent['filtrationSchema'] = {
|
|
55
|
-
propertyType: {
|
|
56
|
-
title: 'Тип недвижимости',
|
|
57
|
-
type: 'array',
|
|
58
|
-
items: {
|
|
59
|
-
type: 'string',
|
|
60
|
-
enum: ['flat', 'apartment', 'house', 'storeRoom', 'parkingSpace', 'suburban'],
|
|
61
|
-
enumNames: [
|
|
62
|
-
'Квартира',
|
|
63
|
-
'Апартаменты',
|
|
64
|
-
'Жилой дом',
|
|
65
|
-
'Кладовая',
|
|
66
|
-
'Машино-место',
|
|
67
|
-
'Загородная недвижимость',
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
stage: {
|
|
72
|
-
title: 'Этап строительства',
|
|
73
|
-
type: 'array',
|
|
74
|
-
items: {
|
|
75
|
-
type: 'string',
|
|
76
|
-
enum: ['built', 'inProgress'],
|
|
77
|
-
enumNames: ['Готовое жильё', 'Строящиеся'],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
categories: {
|
|
81
|
-
title: 'Категории',
|
|
82
|
-
type: 'array',
|
|
83
|
-
items: {
|
|
84
|
-
type: 'string',
|
|
85
|
-
enum: ['salaryClient', 'IT', 'youngFamily', 'military', 'medicalWorker', 'scientist'],
|
|
86
|
-
enumNames: [
|
|
87
|
-
'Зарплатный клиент',
|
|
88
|
-
'IT-специалист',
|
|
89
|
-
'Молодая семья',
|
|
90
|
-
'Военнослужащий',
|
|
91
|
-
'Медицинский работник',
|
|
92
|
-
'Научный сотрудник',
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
extraOptions: {
|
|
97
|
-
title: 'Дополнительно',
|
|
98
|
-
type: 'array',
|
|
99
|
-
items: {
|
|
100
|
-
type: 'string',
|
|
101
|
-
enum: ['preferentialMortgage', 'children', 'refinancing'],
|
|
102
|
-
enumNames: ['Льготная ипотека', 'Дети', 'Рефинансирование'],
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
const HOT_FILTERS: MortgageFiltrationHotFilter[] = [
|
|
108
|
-
{ text: 'Все программы' },
|
|
109
|
-
{
|
|
110
|
-
text: 'Льготные программы',
|
|
111
|
-
filter: {
|
|
112
|
-
categories: [],
|
|
113
|
-
extraOptions: ['preferentialMortgage'],
|
|
114
|
-
propertyType: [],
|
|
115
|
-
stage: [],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
text: 'Строящееся жилье',
|
|
120
|
-
filter: { stage: ['inProgress'], categories: [], extraOptions: [], propertyType: [] },
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
text: 'Готовое жилье',
|
|
124
|
-
filter: { stage: ['built'], categories: [], extraOptions: [], propertyType: [] },
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
text: 'Загородная недвижимость',
|
|
128
|
-
filter: { propertyType: ['suburban'], categories: [], extraOptions: [], stage: [] },
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
text: 'Рефинансирование',
|
|
132
|
-
filter: { categories: [], extraOptions: ['refinancing'], propertyType: [], stage: [] },
|
|
133
|
-
},
|
|
134
|
-
];
|
|
135
|
-
|
|
136
|
-
const options = {
|
|
137
|
-
blocksRegistry: Blocks,
|
|
138
|
-
} as BlockRendererOptions;
|
|
139
|
-
|
|
140
|
-
const BLOCKS = [
|
|
141
|
-
generateBlock(
|
|
142
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
143
|
-
PROPERTY_APARTMENT,
|
|
144
|
-
STAGE_IN_PROGRESS,
|
|
145
|
-
EXTRA_MORTGAGE,
|
|
146
|
-
CATEGORY_IT,
|
|
147
|
-
),
|
|
148
|
-
generateBlock(
|
|
149
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
150
|
-
PROPERTY_APARTMENT,
|
|
151
|
-
STAGE_BUILT,
|
|
152
|
-
EXTRA_CHILDREN,
|
|
153
|
-
CATEGORY_SALARY,
|
|
154
|
-
),
|
|
155
|
-
generateBlock(
|
|
156
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
157
|
-
PROPERTY_FLAT,
|
|
158
|
-
STAGE_IN_PROGRESS,
|
|
159
|
-
EXTRA_MORTGAGE,
|
|
160
|
-
CATEGORY_SALARY,
|
|
161
|
-
),
|
|
162
|
-
generateBlock(
|
|
163
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
164
|
-
PROPERTY_FLAT,
|
|
165
|
-
STAGE_BUILT,
|
|
166
|
-
EXTRA_MORTGAGE,
|
|
167
|
-
CATEGORY_SALARY,
|
|
168
|
-
),
|
|
169
|
-
generateBlock(
|
|
170
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
171
|
-
PROPERTY_APARTMENT,
|
|
172
|
-
STAGE_BUILT,
|
|
173
|
-
EXTRA_CHILDREN,
|
|
174
|
-
CATEGORY_IT,
|
|
175
|
-
),
|
|
176
|
-
generateBlock(
|
|
177
|
-
PRODUCT_BLOCK_WITH_IMAGE,
|
|
178
|
-
PROPERTY_HOUSE,
|
|
179
|
-
STAGE_BUILT,
|
|
180
|
-
EXTRA_MORTGAGE,
|
|
181
|
-
CATEGORY_SALARY,
|
|
182
|
-
),
|
|
183
|
-
];
|
|
184
|
-
|
|
185
|
-
export default {
|
|
186
|
-
default: (
|
|
187
|
-
<div className="container grid grid-cols-12">
|
|
188
|
-
<MortgageFiltration
|
|
189
|
-
className="col-span-12"
|
|
190
|
-
blocksSection={{ view: 'grid', label: 'Другие ипотечные программы', topItemsCount: 2 }}
|
|
191
|
-
filtrationSchema={SCHEMA}
|
|
192
|
-
hotFilters={HOT_FILTERS}
|
|
193
|
-
resetButton={{ text: 'Очистить фильтры', version: 'secondary' }}
|
|
194
|
-
notFound={{
|
|
195
|
-
title: 'Нет подходящей программы',
|
|
196
|
-
description: 'Попробуйте очистить фильтры',
|
|
197
|
-
}}
|
|
198
|
-
block={{
|
|
199
|
-
type: 'MortgageFiltration',
|
|
200
|
-
blocks: BLOCKS,
|
|
201
|
-
}}
|
|
202
|
-
options={options}
|
|
203
|
-
/>
|
|
204
|
-
</div>
|
|
205
|
-
),
|
|
206
|
-
carousel: (
|
|
207
|
-
<div className="container grid grid-cols-12">
|
|
208
|
-
<MortgageFiltration
|
|
209
|
-
className="col-span-12"
|
|
210
|
-
blocksSection={{ view: 'carousel' }}
|
|
211
|
-
filtrationSchema={SCHEMA}
|
|
212
|
-
hotFilters={HOT_FILTERS}
|
|
213
|
-
resetButton={{ text: 'Очистить фильтры', version: 'secondary' }}
|
|
214
|
-
notFound={{
|
|
215
|
-
title: 'Нет подходящей программы',
|
|
216
|
-
description: 'Попробуйте очистить фильтры',
|
|
217
|
-
}}
|
|
218
|
-
block={{
|
|
219
|
-
type: 'MortgageFiltration',
|
|
220
|
-
blocks: BLOCKS,
|
|
221
|
-
}}
|
|
222
|
-
options={options}
|
|
223
|
-
/>
|
|
224
|
-
</div>
|
|
225
|
-
),
|
|
226
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import { FilteredBlocks } from '../../ui-kit/BaseFiltration/FilteredBlocks';
|
|
3
|
-
import { FiltrationForm } from '../../ui-kit/BaseFiltration/FiltrationForm';
|
|
4
|
-
import { useFiltrationForm } from '../../ui-kit/BaseFiltration/useFiltrationForm';
|
|
5
|
-
import { useHotFilters } from '../../ui-kit/BaseFiltration/useHotFilters';
|
|
6
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
-
import { TabsControl } from '../../ui-kit/TabsControl/TabsControl';
|
|
8
|
-
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
9
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
10
|
-
import { style } from '../../utils/style';
|
|
11
|
-
import {
|
|
12
|
-
type MortgageFiltrationContent,
|
|
13
|
-
type MortgageFiltrationSchema,
|
|
14
|
-
} from './MortgageFiltrationContent';
|
|
15
|
-
|
|
16
|
-
type MortgageFiltrationState = Partial<Record<keyof MortgageFiltrationSchema, string[]>>;
|
|
17
|
-
|
|
18
|
-
const initialFiltrationState: MortgageFiltrationState = {
|
|
19
|
-
categories: [],
|
|
20
|
-
extraOptions: [],
|
|
21
|
-
propertyType: [],
|
|
22
|
-
stage: [],
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
interface MortgageFiltrationProps extends MortgageFiltrationContent, UniBlockProps {}
|
|
26
|
-
|
|
27
|
-
export const MortgageFiltration = UniBlock<MortgageFiltrationProps>(
|
|
28
|
-
({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
29
|
-
const [filtrationState, { blocksToRender }, { field, reset, update: replaceFiltrationState }] =
|
|
30
|
-
useFiltrationForm(initialFiltrationState, {
|
|
31
|
-
block: rest.block,
|
|
32
|
-
page: rest.options?.page,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
const handleFiltrationStateChange = useCallback(
|
|
36
|
-
(_ = initialFiltrationState) => replaceFiltrationState(_),
|
|
37
|
-
[],
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
const tabsControlProps = useHotFilters({
|
|
41
|
-
hotFilters,
|
|
42
|
-
filtrationState,
|
|
43
|
-
blocks: rest.block?.blocks,
|
|
44
|
-
onFiltrationStateChange: handleFiltrationStateChange,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<BlockWrapper
|
|
49
|
-
className={style('space-y-2xs', className)}
|
|
50
|
-
defaultPadding="p-0"
|
|
51
|
-
version="transparent"
|
|
52
|
-
{...rest}
|
|
53
|
-
>
|
|
54
|
-
<TabsControl {...tabsControlProps} />
|
|
55
|
-
<FiltrationForm
|
|
56
|
-
filtrationSchema={filtrationSchema}
|
|
57
|
-
resetButton={resetButton}
|
|
58
|
-
field={field}
|
|
59
|
-
reset={reset}
|
|
60
|
-
/>
|
|
61
|
-
<FilteredBlocks blocksToRender={blocksToRender} {...rest} />
|
|
62
|
-
</BlockWrapper>
|
|
63
|
-
);
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
childrenTypes: ['ProductBlock'],
|
|
67
|
-
childSchema: (content?: MortgageFiltrationContent) => content?.filtrationSchema || {},
|
|
68
|
-
},
|
|
69
|
-
);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { type BaseFiltrationContent } from '../../ui-kit/BaseFiltration/BaseFiltrationContent';
|
|
2
|
-
import { type StringArray } from '../../ui-kit/BaseFiltration/FiltrationSchemaContent';
|
|
3
|
-
import { type HotFilterBase } from '../../ui-kit/BaseFiltration/HotFilterBase';
|
|
4
|
-
|
|
5
|
-
export type MortgageFiltrationSchema = {
|
|
6
|
-
/** @title Тип недвижимости */
|
|
7
|
-
propertyType?: StringArray;
|
|
8
|
-
/** @title Этап строительства */
|
|
9
|
-
stage?: StringArray;
|
|
10
|
-
/** @title Категории */
|
|
11
|
-
categories?: StringArray;
|
|
12
|
-
/** @title Дополнительно */
|
|
13
|
-
extraOptions?: StringArray;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export interface MortgageFiltrationHotFilter extends HotFilterBase {
|
|
17
|
-
/** @title Применяемые фильтры */
|
|
18
|
-
filter?: {
|
|
19
|
-
/** @title Тип недвижимости */
|
|
20
|
-
propertyType?: string[];
|
|
21
|
-
/** @title Этап строительства */
|
|
22
|
-
stage?: string[];
|
|
23
|
-
/** @title Категории */
|
|
24
|
-
categories?: string[];
|
|
25
|
-
/** @title Дополнительно */
|
|
26
|
-
extraOptions?: string[];
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @title Подборщик ипотек
|
|
32
|
-
*/
|
|
33
|
-
export interface MortgageFiltrationContent extends BaseFiltrationContent {
|
|
34
|
-
/** @title Параметры фильтрации */
|
|
35
|
-
filtrationSchema?: MortgageFiltrationSchema;
|
|
36
|
-
/** @title Горячие фильтры */
|
|
37
|
-
hotFilters?: MortgageFiltrationHotFilter[];
|
|
38
|
-
}
|