Unify CatalogPage: fixed map, hover support, delete ListMapLayout
All checks were successful
Build Docker Image / build (push) Successful in 4m31s

This commit is contained in:
Ruslan Bakiev
2026-01-08 11:15:54 +07:00
parent 4057bce4be
commit 8d1b7c6dc7
7 changed files with 148 additions and 348 deletions

View File

@@ -5,6 +5,7 @@
map-id="hubs-map"
point-color="#10b981"
:selected-id="selectedHubId"
v-model:hovered-id="hoveredHubId"
@select="onSelectHub"
>
<template #filters>
@@ -59,8 +60,9 @@ const {
init
} = useCatalogHubs()
// Selected hub for map highlighting
// Selected/hovered hub for map highlighting
const selectedHubId = ref<string>()
const hoveredHubId = ref<string>()
const onSelectHub = (hub: any) => {
selectedHubId.value = hub.uuid

View File

@@ -5,6 +5,7 @@
map-id="offers-map"
point-color="#f59e0b"
:selected-id="selectedOfferId"
v-model:hovered-id="hoveredOfferId"
@select="onSelectOffer"
>
<template #filters>
@@ -78,8 +79,9 @@ const onProductFilterChange = (value: string) => {
setProductUuid(value === 'all' ? null : value)
}
// Selected offer for map highlighting
// Selected/hovered offer for map highlighting
const selectedOfferId = ref<string>()
const hoveredOfferId = ref<string>()
const onSelectOffer = (offer: any) => {
selectedOfferId.value = offer.uuid

View File

@@ -5,6 +5,7 @@
map-id="suppliers-map"
point-color="#3b82f6"
:selected-id="selectedSupplierId"
v-model:hovered-id="hoveredSupplierId"
@select="onSelectSupplier"
>
<template #card="{ item }">
@@ -44,8 +45,9 @@ const {
init
} = useCatalogSuppliers()
// Selected supplier for map highlighting
// Selected/hovered supplier for map highlighting
const selectedSupplierId = ref<string>()
const hoveredSupplierId = ref<string>()
const onSelectSupplier = (supplier: any) => {
selectedSupplierId.value = supplier.uuid || supplier.teamUuid