@redneckz/wildless-cms-uni-blocks 0.14.14 → 0.14.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +114 -82
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Depository/DepositoryItem.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/{dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts → bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts} +1 -8
- package/bundle/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/bundle/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/model/AlignJustifyStyle.d.ts +2 -0
- package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/cosmos-static/icons/MagnifierIcon.svg +1 -0
- package/dist/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +2 -6
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Depository/DepositoryItem.d.ts +1 -1
- package/dist/components/Depository/DepositoryItem.js +1 -1
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/dist/components/OfficesAtmsMap/AtmsMap.js +39 -0
- package/dist/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -60
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +26 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/{bundle/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts → dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts} +1 -8
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.js +27 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +17 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/useAtms.js +15 -0
- package/dist/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/dist/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/useOffices.js +15 -0
- package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/AlignJustifyStyle.d.ts +2 -0
- package/dist/model/AlignJustifyStyle.js +8 -0
- package/dist/model/AlignJustifyStyle.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +6 -6
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +5 -1
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +2 -6
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Depository/DepositoryItem.d.ts +1 -1
- package/lib/components/Depository/DepositoryItem.js +1 -1
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/AtmsMap.js +37 -0
- package/lib/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +5 -61
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +24 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/lib/components/OfficesAtmsMap/{useOfficesAtmsMap.d.ts → OfficesAtmsMapProps.d.ts} +1 -8
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.js +25 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +14 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/useAtms.js +12 -0
- package/lib/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/lib/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/useOffices.js +12 -0
- package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/AlignJustifyStyle.d.ts +2 -0
- package/lib/model/AlignJustifyStyle.js +6 -0
- package/lib/model/AlignJustifyStyle.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +6 -6
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +5 -1
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +26 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/mobile/bundle/components/OfficesAtmsMap/{useOfficesAtmsMap.d.ts → OfficesAtmsMapProps.d.ts} +1 -8
- package/mobile/bundle/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/model/AlignJustifyStyle.d.ts +2 -0
- package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.js +39 -0
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -60
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +26 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +83 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +27 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +17 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/useAtms.js +15 -0
- package/mobile/dist/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js +15 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +2 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/AlignJustifyStyle.d.ts +2 -0
- package/mobile/dist/model/AlignJustifyStyle.js +8 -0
- package/mobile/dist/model/AlignJustifyStyle.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +6 -6
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +5 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.js +37 -0
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +5 -61
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +24 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +83 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +25 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +14 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/useAtms.js +12 -0
- package/mobile/lib/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js +12 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +2 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/AlignJustifyStyle.d.ts +2 -0
- package/mobile/lib/model/AlignJustifyStyle.js +6 -0
- package/mobile/lib/model/AlignJustifyStyle.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +6 -6
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +5 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +2 -8
- package/mobile/src/components/Depository/DepositoryItem.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
- package/mobile/src/components/OfficesAtmsMap/AtmsMap.tsx +61 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +5 -145
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +97 -0
- package/mobile/src/components/OfficesAtmsMap/{useOfficesAtmsMap.ts → OfficesAtmsMapProps.tsx} +1 -26
- package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +45 -0
- package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +35 -0
- package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/useAtms.ts +20 -0
- package/mobile/src/components/OfficesAtmsMap/useOffices.ts +20 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +3 -1
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MagnifierIcon.svg +39 -0
- package/mobile/src/model/AlignJustifyStyle.ts +7 -0
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +19 -12
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +11 -6
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +6 -1
- package/package.json +2 -2
- package/src/components/ButtonsBlock/ButtonsBlock.tsx +2 -8
- package/src/components/Calculator/Calculator.tsx +2 -7
- package/src/components/Depository/DepositoryItem.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
- package/src/components/OfficesAtmsMap/AtmsMap.tsx +61 -0
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +5 -145
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +97 -0
- package/src/components/OfficesAtmsMap/{useOfficesAtmsMap.ts → OfficesAtmsMapProps.tsx} +1 -26
- package/src/components/OfficesAtmsMap/OfficesMap.tsx +45 -0
- package/src/components/OfficesAtmsMap/renderAtmCard.tsx +1 -1
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +35 -0
- package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +1 -1
- package/src/components/OfficesAtmsMap/useAtms.ts +20 -0
- package/src/components/OfficesAtmsMap/useOffices.ts +20 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +3 -1
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MagnifierIcon.svg +39 -0
- package/src/model/AlignJustifyStyle.ts +7 -0
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +19 -12
- package/src/ui-kit/BaseTile/BaseTile.tsx +11 -6
- package/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/src/ui-kit/Select/SelectPopup.tsx +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +6 -1
- package/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/dist/components/MobileAppTile/renderDescription.js +0 -7
- package/dist/components/MobileAppTile/renderDescription.js.map +0 -1
- package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -19
- package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/lib/components/MobileAppTile/renderDescription.d.ts +0 -1
- package/lib/components/MobileAppTile/renderDescription.js +0 -4
- package/lib/components/MobileAppTile/renderDescription.js.map +0 -1
- package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -16
- package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/mobile/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/mobile/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/mobile/dist/components/MobileAppTile/renderDescription.js +0 -7
- package/mobile/dist/components/MobileAppTile/renderDescription.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +0 -90
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -19
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/mobile/lib/components/MobileAppTile/renderDescription.js +0 -4
- package/mobile/lib/components/MobileAppTile/renderDescription.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +0 -90
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -16
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +0 -10
- package/src/components/MobileAppTile/renderDescription.tsx +0 -10
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
+
import type { Atm, Branch } from './OfficesAtmsMapProps';
|
|
4
|
+
export declare type InitFilterState = Record<string, boolean>;
|
|
5
|
+
export interface OfficesAtmsMapLayoutProps<T> {
|
|
6
|
+
className?: string;
|
|
7
|
+
data?: T[];
|
|
8
|
+
renderCard?: (item: T, index: number) => VNode;
|
|
9
|
+
filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
|
|
10
|
+
initFilterState?: InitFilterState;
|
|
11
|
+
descriptionData?: AtmsDef;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | Atm>, any, any>;
|
package/mobile/bundle/components/OfficesAtmsMap/{useOfficesAtmsMap.d.ts → OfficesAtmsMapProps.d.ts}
RENAMED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { IconName } from '../../icons/IconName';
|
|
2
|
-
declare const MAP_URL: {
|
|
3
|
-
offices: string;
|
|
4
|
-
atms: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type DataType = keyof typeof MAP_URL;
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
7
2
|
export interface Currency {
|
|
8
3
|
buyExchangeRate?: number;
|
|
9
4
|
saleExchangeRate?: number;
|
|
@@ -86,5 +81,3 @@ export interface Atm {
|
|
|
86
81
|
gpsLatitude?: number;
|
|
87
82
|
gpsLongitude?: number;
|
|
88
83
|
}
|
|
89
|
-
export declare function useOfficesAtmsMap(regionCode?: string, type?: DataType): Branch[] | Atm[];
|
|
90
|
-
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Atm } from './
|
|
2
|
+
import type { Atm } from './OfficesAtmsMapProps';
|
|
3
3
|
export declare const renderAtmCard: ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode, atmAccess, workTime, }: Atm, index: number) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Branch, Currency, WorkScheduleWeek } from './
|
|
2
|
+
import type { Branch, Currency, WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
3
3
|
export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element;
|
|
4
4
|
export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
|
|
5
5
|
export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek) => JSX.Element | null;
|
|
@@ -70,6 +70,7 @@ export declare enum IconMap {
|
|
|
70
70
|
JCBIcon = "JCBIcon",
|
|
71
71
|
LogoIcon = "LogoIcon",
|
|
72
72
|
LoupeIcon = "LoupeIcon",
|
|
73
|
+
MagnifierIcon = "MagnifierIcon",
|
|
73
74
|
MailIcon = "MailIcon",
|
|
74
75
|
MapMarkerClusterIcon = "MapMarkerClusterIcon",
|
|
75
76
|
MapMarkerSingleIcon = "MapMarkerSingleIcon",
|
|
@@ -196,6 +197,7 @@ export declare enum IconTitleMap {
|
|
|
196
197
|
JCBIcon = "JCB",
|
|
197
198
|
LogoIcon = "Logo",
|
|
198
199
|
LoupeIcon = "\u041B\u0443\u043F\u0430",
|
|
200
|
+
MagnifierIcon = "MagnifierIcon",
|
|
199
201
|
MailIcon = "E-mail",
|
|
200
202
|
MapMarkerClusterIcon = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B",
|
|
201
203
|
MapMarkerSingleIcon = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B \u0420\u0421\u0425\u0411",
|
|
@@ -256,7 +258,7 @@ export declare enum IconTitleMap {
|
|
|
256
258
|
* @title Иконка
|
|
257
259
|
* @enumNames [
|
|
258
260
|
* "",
|
|
259
|
-
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Портфель', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Отправление карты', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Инвестиции', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Монеты', 'Кресло', 'Здание суда', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Сердцебеение', 'Ипотека', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'Иконка Развёрнутая карта', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Нотификация', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Лого «Rutube»', 'Сейф', 'Безопасность', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»', 'Конвертирование'
|
|
261
|
+
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Портфель', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Отправление карты', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Инвестиции', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Монеты', 'Кресло', 'Здание суда', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Сердцебеение', 'Ипотека', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'MagnifierIcon', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'Иконка Развёрнутая карта', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Нотификация', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Лого «Rutube»', 'Сейф', 'Безопасность', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»', 'Конвертирование'
|
|
260
262
|
* ]
|
|
261
263
|
*/
|
|
262
|
-
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BelarusianFlag' | 'BriefcaseIcon' | 'BriefcaseIcon2' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardSendIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartIcon' | 'ChartSquareIcon' | 'ChevronLeftIcon' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'CoinIcon' | 'ComfortableCompIcon' | 'CourtHouseIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HeartTickIcon' | 'HouseIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MapOpenedIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'NotificationBingIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponseFailIcon' | 'ResponseOKIcon' | 'RoundRubleIcon' | 'RutubeIcon' | 'SafeIcon' | 'SecurityCardIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon' | 'СonvertСardIcon';
|
|
264
|
+
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BelarusianFlag' | 'BriefcaseIcon' | 'BriefcaseIcon2' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardSendIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartIcon' | 'ChartSquareIcon' | 'ChevronLeftIcon' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'CoinIcon' | 'ComfortableCompIcon' | 'CourtHouseIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HeartTickIcon' | 'HouseIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MagnifierIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MapOpenedIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'NotificationBingIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponseFailIcon' | 'ResponseOKIcon' | 'RoundRubleIcon' | 'RutubeIcon' | 'SafeIcon' | 'SecurityCardIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon' | 'СonvertСardIcon';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseFiltrationInnerContent } from './BaseFiltrationContent';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
1
|
import type { BlockDef } from '../../model/ContentPageDef';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { BaseFiltrationInnerContent } from './BaseFiltrationContent';
|
|
4
4
|
interface BaseFiltrationInnerProps extends BaseFiltrationInnerContent, UniBlockProps {
|
|
5
5
|
blocksToRender?: BlockDef[];
|
|
6
6
|
}
|
|
@@ -2,16 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ButtonsBlock = 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 AlignJustifyStyle_1 = require("../../model/AlignJustifyStyle");
|
|
5
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
7
8
|
const style_1 = require("../../utils/style");
|
|
8
|
-
const alignStyleMap = {
|
|
9
|
-
start: 'justify-start',
|
|
10
|
-
center: 'justify-center',
|
|
11
|
-
end: 'justify-end',
|
|
12
|
-
};
|
|
13
9
|
exports.ButtonsBlock = (0, uni_jsx_1.JSX)(({ buttons, className = '', align, ...rest }) => {
|
|
14
|
-
const alignStyle = align ? (0, style_1.style)('flex',
|
|
10
|
+
const alignStyle = align ? (0, style_1.style)('flex', AlignJustifyStyle_1.AlignJustifyStyle[align]) : '';
|
|
15
11
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: (0, renderButtonsSection_1.renderButtonsSection)(buttons) }));
|
|
16
12
|
});
|
|
17
13
|
//# sourceMappingURL=ButtonsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonsBlock.js","sourceRoot":"","sources":["../../../src/components/ButtonsBlock/ButtonsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ButtonsBlock.js","sourceRoot":"","sources":["../../../src/components/ButtonsBlock/ButtonsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAElE,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAK7B,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9C,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,aAAK,EAAC,MAAM,EAAE,qCAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAExE,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,iBAAiB,EAAE,UAAU,EAAE,SAAS,CAAC,EAC1D,cAAc,EAAC,KAAK,KAChB,IAAI,YAEP,IAAA,2CAAoB,EAAC,OAAO,CAAC,GACjB,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const useLink_1 = require("../../hooks/useLink");
|
|
5
5
|
const formatDate_1 = require("../../utils/formatDate");
|
|
6
6
|
const DepositoryItem = ({ title, timestamp = '', publicId }) => {
|
|
7
|
-
const link = (0, useLink_1.useLink)();
|
|
7
|
+
const link = (0, useLink_1.useLink)({ basePath: '/' });
|
|
8
8
|
const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
|
|
9
9
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-2 text-m", children: (0, jsx_runtime_1.jsx)("span", { children: (0, formatDate_1.formatDate)(timestamp) }) }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: (0, jsx_runtime_1.jsx)("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,uDAAoD;AAG7C,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACxF,MAAM,IAAI,GAAG,IAAA,iBAAO,
|
|
1
|
+
{"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,uDAAoD;AAG7C,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACxF,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,sBAAsB,QAAQ,OAAO,EAAE,CAAC,CAAC;IAEvE,OAAO,CACL,iCAAK,SAAS,EAAC,gEAAgE,aAC7E,gCAAK,SAAS,EAAC,mBAAmB,YAChC,2CAAO,IAAA,uBAAU,EAAC,SAAS,CAAC,GAAQ,GAChC,EACN,gCAAK,SAAS,EAAC,+CAA+C,YAC5D,8BAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,sBAAY,4CAAS,YACzC,KAAK,GACJ,GACA,KAR6E,QAAQ,CASvF,CACP,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB"}
|
|
@@ -20,7 +20,7 @@ exports.Footer = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
|
20
20
|
const fallback = rest.options?.page?.fallback;
|
|
21
21
|
const { topItems } = (0, useSitemap_1.useSitemap)(fallback);
|
|
22
22
|
const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', { fallback });
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items, basePath: (0, appendSlash_1.appendSlash)(item.href) }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items, basePath: (0, appendSlash_1.appendSlash)(item.href) }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
24
24
|
});
|
|
25
25
|
const renderButton = ({ href = '/', text }, i) => {
|
|
26
26
|
const { label } = (0, findIconByHref_1.findIconByHref)(href);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAE5D,kEAA+D;AAC/D,4DAAyD;AACzD,uDAAoD;AACpD,iDAA8C;AAC9C,yDAAsD;AACtD,yDAAsD;AACtD,yCAAsC;AAGtC,iEAA8D;AAC9D,yCAAsC;AACtC,+CAA4C;AAC5C,uDAAoD;AACpD,qDAAkD;AAErC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG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,SAAS,EAAC,cAAc,EACxB,IAAI,EAAE,IAAI,IAAI,KAAK,EACnB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,IALV,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -7,12 +7,12 @@ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
|
7
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
8
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
9
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
10
11
|
const style_1 = require("../../utils/style");
|
|
11
|
-
const renderDescription_1 = require("./renderDescription");
|
|
12
12
|
const renderList_1 = require("./renderList");
|
|
13
13
|
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
14
14
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
15
15
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden lg:block", image: image }) : null;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [(0,
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'flex-wrap' }), children: [description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [(0, renderList_1.renderList)(items, listItemSize), qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,6CAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAE1C,6CAA0C;AAI7B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAC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AAsB,EACtB,oDAAoD,CACrD,aAEA,IAAA,uBAAU,EAAC,KAAK,EAAE,YAAY,CAAC,EAC/B,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,sDAAsD,EACtD,cAAc,CACf,YAED,uBAAC,SAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,IACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.AtmsMap = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLocation_1 = require("../../hooks/useLocation");
|
|
6
|
+
const OfficesAtmsMapLayout_1 = require("./OfficesAtmsMapLayout");
|
|
7
|
+
const renderAtmCard_1 = require("./renderAtmCard");
|
|
8
|
+
const useAtms_1 = require("./useAtms");
|
|
9
|
+
const INITIAL_FILTRATION_STATE = {
|
|
10
|
+
terminalTypeAtms: true,
|
|
11
|
+
terminalTypeTerm: false,
|
|
12
|
+
workAllTime: false,
|
|
13
|
+
billAcceptorEnable: false,
|
|
14
|
+
};
|
|
15
|
+
const FILTRATION_PREDICATES = {
|
|
16
|
+
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
17
|
+
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
18
|
+
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
19
|
+
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
20
|
+
};
|
|
21
|
+
exports.AtmsMap = (0, uni_jsx_1.JSX)(({ data, className }) => {
|
|
22
|
+
const [currentLocation] = (0, useLocation_1.useLocation)();
|
|
23
|
+
const regionCode = currentLocation?.code ?? '000';
|
|
24
|
+
const officesData = (0, useAtms_1.useAtms)(regionCode);
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(OfficesAtmsMapLayout_1.OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderAtmCard_1.renderAtmCard, title: `Банкоматы филиала ${currentLocation?.name}`, descriptionData: data }));
|
|
26
|
+
});
|
|
27
|
+
const filterItems = (data, filtrationState) => {
|
|
28
|
+
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
29
|
+
const filtersOR = truthyFilters.filter((_) => _.startsWith('terminalType'));
|
|
30
|
+
const filtersAND = truthyFilters.filter((_) => !filtersOR.includes(_));
|
|
31
|
+
return data.filter((item) => {
|
|
32
|
+
const resultAND = filtersAND.every((_) => FILTRATION_PREDICATES[_](item));
|
|
33
|
+
const resultOR = filtersOR.length
|
|
34
|
+
? filtersOR.some((_) => FILTRATION_PREDICATES[_](item))
|
|
35
|
+
: true;
|
|
36
|
+
return resultAND && resultOR;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=AtmsMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/AtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AAEtD,iEAA8D;AAE9D,mDAAgD;AAChD,uCAAoC;AAEpC,MAAM,wBAAwB,GAAG;IAC/B,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,KAAK;IACvB,WAAW,EAAE,KAAK;IAClB,kBAAkB,EAAE,KAAK;CAC1B,CA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AC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;IAC5E,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvE,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1B,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM;YAC/B,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC;QAET,OAAO,SAAS,IAAI,QAAQ,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -2,68 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.OfficesAtmsMap = 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 useForm_1 = require("../../hooks/useForm");
|
|
7
|
-
const useLocation_1 = require("../../hooks/useLocation");
|
|
8
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
9
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
10
|
-
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
11
|
-
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
12
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
13
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
14
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
15
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
16
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
17
|
-
const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
|
|
18
6
|
const style_1 = require("../../utils/style");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const INITIAL_FILTRATION_OFFICES_STATE = {
|
|
23
|
-
safeBoxCaseVolumes: false,
|
|
24
|
-
workingSaturday: false,
|
|
25
|
-
};
|
|
26
|
-
const INITIAL_FILTRATION_ATMS_STATE = {
|
|
27
|
-
terminalTypeAtms: true,
|
|
28
|
-
terminalTypeTerm: false,
|
|
29
|
-
workAllTime: false,
|
|
30
|
-
billAcceptorEnable: false,
|
|
31
|
-
};
|
|
32
|
-
const FILTRATION_LABELS = {
|
|
33
|
-
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
34
|
-
workingSaturday: 'Открыты по субботам',
|
|
35
|
-
terminalTypeAtms: 'Банкоматы',
|
|
36
|
-
terminalTypeTerm: 'Терминалы',
|
|
37
|
-
workAllTime: 'Круглосуточно',
|
|
38
|
-
billAcceptorEnable: 'Прием наличных',
|
|
39
|
-
};
|
|
40
|
-
const FILTRATION_PREDICATES = {
|
|
41
|
-
safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
|
|
42
|
-
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
43
|
-
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
44
|
-
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
45
|
-
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
46
|
-
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
47
|
-
};
|
|
48
|
-
exports.OfficesAtmsMap = (0, uni_jsx_1.JSX)(({ data, className = '', ...rest }) => {
|
|
7
|
+
const AtmsMap_1 = require("./AtmsMap");
|
|
8
|
+
const OfficesMap_1 = require("./OfficesMap");
|
|
9
|
+
exports.OfficesAtmsMap = (0, uni_jsx_1.JSX)(({ data, className, ...rest }) => {
|
|
49
10
|
const dataType = data?.dataType ?? 'offices';
|
|
50
|
-
|
|
51
|
-
const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initialState);
|
|
52
|
-
const [currentLocation] = (0, useLocation_1.useLocation)();
|
|
53
|
-
const [regionCode, title] = (0, hooks_1.useMemo)(() => [currentLocation?.code || '000', getTitle(currentLocation?.name, dataType)], [currentLocation, dataType]);
|
|
54
|
-
const officesAtmsData = (0, useOfficesAtmsMap_1.useOfficesAtmsMap)(regionCode, dataType);
|
|
55
|
-
const filteredOfficesAtmsData = filterOfficesAtms(officesAtmsData, filtrationState);
|
|
56
|
-
const lengthOfficesAtms = filteredOfficesAtmsData.length;
|
|
57
|
-
const points = filteredOfficesAtmsData
|
|
58
|
-
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
59
|
-
.filter((_) => _ && _.length === 2);
|
|
60
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { version: "transparent", className: (0, style_1.style)('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "col-span-12 bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "pt-6xl px-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2 pb-2xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard_1.renderOfficeCard : renderAtmCard_1.renderAtmCard)] }));
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { version: "transparent", className: (0, style_1.style)(className), defaultPadding: "p-0", ...rest, children: dataType === 'offices' ? (0, jsx_runtime_1.jsx)(OfficesMap_1.OfficesMap, {}) : (0, jsx_runtime_1.jsx)(AtmsMap_1.AtmsMap, { data: data }) }));
|
|
61
12
|
});
|
|
62
|
-
const filterOfficesAtms = (data, filtrationState) => {
|
|
63
|
-
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
64
|
-
return data.filter((item) => truthyFilters.every((filterName) => FILTRATION_PREDICATES[filterName](item)));
|
|
65
|
-
};
|
|
66
|
-
const getTitle = (name = '', dataType = 'offices') => dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
|
|
67
|
-
const renderFiltrationForm = (filters, { field, reset }) => ((0, jsx_runtime_1.jsxs)("div", { className: "pb-2xl", children: [filters?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, (0, jsx_runtime_1.jsx)(Button_1.Button, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
68
|
-
const renderDescriptionBlock = ({ description, list }) => ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [(0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: description }), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
|
|
69
13
|
//# sourceMappingURL=OfficesAtmsMap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,uCAAoC;AAEpC,6CAA0C;AAI7B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,SAAS,CAAC;IAE7C,OAAO,CACL,uBAAC,2BAAY,IAAC,OAAO,EAAC,aAAa,EAAC,SAAS,EAAE,IAAA,aAAK,EAAC,SAAS,CAAC,EAAE,cAAc,EAAC,KAAK,KAAK,IAAI,YAC3F,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAC,uBAAU,KAAG,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,IAAI,EAAE,IAAe,GAAI,GAChE,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
+
import type { Atm, Branch } from './OfficesAtmsMapProps';
|
|
4
|
+
export declare type InitFilterState = Record<string, boolean>;
|
|
5
|
+
export interface OfficesAtmsMapLayoutProps<T> {
|
|
6
|
+
className?: string;
|
|
7
|
+
data?: T[];
|
|
8
|
+
renderCard?: (item: T, index: number) => VNode;
|
|
9
|
+
filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
|
|
10
|
+
initFilterState?: InitFilterState;
|
|
11
|
+
descriptionData?: AtmsDef;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | Atm>, any, any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.OfficesAtmsMapLayout = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
6
|
+
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
7
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
|
+
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
10
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
|
+
const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
|
|
12
|
+
const style_1 = require("../../utils/style");
|
|
13
|
+
const renderFiltrationForm_1 = require("./renderFiltrationForm");
|
|
14
|
+
const defaultRenderCard = () => null;
|
|
15
|
+
const defaultFilterItems = () => [];
|
|
16
|
+
exports.OfficesAtmsMapLayout = (0, uni_jsx_1.JSX)(({ className, data = [], renderCard = defaultRenderCard, filterItems = defaultFilterItems, initFilterState = {}, descriptionData, title, }) => {
|
|
17
|
+
const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initFilterState);
|
|
18
|
+
const filteredItems = filterItems(data, filtrationState);
|
|
19
|
+
const points = filteredItems
|
|
20
|
+
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
21
|
+
.filter((_) => _ && _.length === 2);
|
|
22
|
+
const lengthItems = filteredItems.length;
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('space-y-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "pt-6xl px-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs pb-2xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", children: title }), lengthItems ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock(descriptionData) : null, (0, renderFiltrationForm_1.renderFiltrationForm)(Object.keys(initFilterState), { field, reset })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
24
|
+
});
|
|
25
|
+
const renderDescriptionBlock = (data) => ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [data?.description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: data.description })) : null, data?.list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2xl flex-wrap pt-xs", children: data.list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
|
|
26
|
+
//# sourceMappingURL=OfficesAtmsMapLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,wDAAqD;AACrD,0DAAuD;AACvD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAC9C,gEAA6D;AAC7D,6CAA0C;AAG1C,iEAA8D;AAE9D,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;AACrC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC;AAcvB,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EACC,SAAS,EACT,IAAI,GAAG,EAAE,EACT,UAAU,GAAG,iBAAiB,EAC9B,WAAW,GAAG,kBAAkB,EAChC,eAAe,GAAG,EAAE,EACpB,eAAe,EACf,KAAK,GACN,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,eAAe,CAAC,CAAC;IAErE,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,aAAa;SACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,OAAO,CAAa,CAAC;SACvE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,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gCAAK,SAAS,EAAC,8BAA8B,YAC1C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,iCAAqB,SAAS,EAAC,0BAA0B,aACtD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,CAAC,IAAI,GACL,CACR,CAAC,CAAC,CAAC,IAAI,KANA,MAAM,CAAC,CAAC,CAAC,CAOb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
2
|
+
export interface Currency {
|
|
3
|
+
buyExchangeRate?: number;
|
|
4
|
+
saleExchangeRate?: number;
|
|
5
|
+
currency?: {
|
|
6
|
+
id?: number;
|
|
7
|
+
code?: string;
|
|
8
|
+
currency?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface ExchangeRate {
|
|
13
|
+
currencies?: Currency[];
|
|
14
|
+
}
|
|
15
|
+
export declare type WorkScheduleWeek = {
|
|
16
|
+
title?: string;
|
|
17
|
+
status?: boolean;
|
|
18
|
+
workTime?: string;
|
|
19
|
+
lunchHour?: string;
|
|
20
|
+
hasLunch?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare type NearbyOffices = {
|
|
23
|
+
title?: string;
|
|
24
|
+
time?: string;
|
|
25
|
+
distance?: string;
|
|
26
|
+
icon?: IconName;
|
|
27
|
+
};
|
|
28
|
+
export declare type WorkSchedule = {
|
|
29
|
+
workTime?: string;
|
|
30
|
+
lunchHour?: string;
|
|
31
|
+
workTimeSaturday?: string;
|
|
32
|
+
lunchHourSaturday?: string;
|
|
33
|
+
workingMonday?: boolean;
|
|
34
|
+
workingTuesday?: boolean;
|
|
35
|
+
workingWednesday?: boolean;
|
|
36
|
+
workingThursday?: boolean;
|
|
37
|
+
workingFriday?: boolean;
|
|
38
|
+
workingSaturday?: boolean;
|
|
39
|
+
workingSunday?: boolean;
|
|
40
|
+
};
|
|
41
|
+
export declare type SafeBoxCaseTariff = {
|
|
42
|
+
id?: number;
|
|
43
|
+
tariffType?: string;
|
|
44
|
+
tariffValue?: number;
|
|
45
|
+
tariffTypeDescription?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type SafeBoxCase = {
|
|
48
|
+
id?: number;
|
|
49
|
+
count?: number;
|
|
50
|
+
safeBoxCasesSize?: string;
|
|
51
|
+
tariffs: SafeBoxCaseTariff[];
|
|
52
|
+
};
|
|
53
|
+
export declare type SafeBoxCaseVolume = {
|
|
54
|
+
volume?: string;
|
|
55
|
+
safeBoxCases?: SafeBoxCase[];
|
|
56
|
+
};
|
|
57
|
+
export interface Branch {
|
|
58
|
+
name?: string;
|
|
59
|
+
address?: string;
|
|
60
|
+
phone?: string;
|
|
61
|
+
fax?: string;
|
|
62
|
+
phoneBusiness?: string;
|
|
63
|
+
phoneNatural?: string;
|
|
64
|
+
phoneCurrencyControl?: string;
|
|
65
|
+
phoneCallCentre?: string;
|
|
66
|
+
workSchedule?: WorkSchedule;
|
|
67
|
+
gpsLatitude?: number;
|
|
68
|
+
gpsLongitude?: number;
|
|
69
|
+
exchangeRate?: ExchangeRate;
|
|
70
|
+
safeBoxCaseVolumes?: SafeBoxCaseVolume[];
|
|
71
|
+
}
|
|
72
|
+
export interface Atm {
|
|
73
|
+
location?: string;
|
|
74
|
+
address?: string;
|
|
75
|
+
billAcceptorType?: string;
|
|
76
|
+
terminalType?: string;
|
|
77
|
+
billAcceptorEnable?: boolean;
|
|
78
|
+
atmAccess?: string;
|
|
79
|
+
atmCode?: string;
|
|
80
|
+
workTime?: string;
|
|
81
|
+
gpsLatitude?: number;
|
|
82
|
+
gpsLongitude?: number;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMapProps.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.OfficesMap = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLocation_1 = require("../../hooks/useLocation");
|
|
6
|
+
const OfficesAtmsMapLayout_1 = require("./OfficesAtmsMapLayout");
|
|
7
|
+
const renderOfficeCard_1 = require("./renderOfficeCard");
|
|
8
|
+
const useOffices_1 = require("./useOffices");
|
|
9
|
+
const INITIAL_FILTRATION_STATE = {
|
|
10
|
+
//safeBoxCaseVolumes: false, //TODO: temp hide
|
|
11
|
+
workingSaturday: false,
|
|
12
|
+
};
|
|
13
|
+
const FILTRATION_PREDICATES = {
|
|
14
|
+
//safeBoxCaseVolumes: (item: Branch) => Boolean(item.safeBoxCaseVolumes), //TODO: temp hide
|
|
15
|
+
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
16
|
+
};
|
|
17
|
+
exports.OfficesMap = (0, uni_jsx_1.JSX)(({ className }) => {
|
|
18
|
+
const [currentLocation] = (0, useLocation_1.useLocation)();
|
|
19
|
+
const regionCode = currentLocation?.code ?? '000';
|
|
20
|
+
const officesData = (0, useOffices_1.useOffices)(regionCode);
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(OfficesAtmsMapLayout_1.OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard_1.renderOfficeCard, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
22
|
+
});
|
|
23
|
+
const filterItems = (data, filtrationState) => {
|
|
24
|
+
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
25
|
+
return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=OfficesMap.js.map
|