2025-06-03 17:57:08 +02:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<v-container fluid>
|
|
|
|
|
<!-- Header Section -->
|
2025-06-10 16:01:21 +02:00
|
|
|
<v-row class="mb-4 mb-md-6">
|
2025-06-03 21:04:22 +02:00
|
|
|
<v-col cols="12" md="8">
|
2025-06-10 16:01:21 +02:00
|
|
|
<h1 class="text-h5 text-md-h4 font-weight-bold mb-1 mb-md-2">
|
2025-06-04 14:57:14 +02:00
|
|
|
Port Nimara Berth Interests
|
2025-06-03 17:57:08 +02:00
|
|
|
</h1>
|
2025-06-10 16:01:21 +02:00
|
|
|
<p class="text-body-2 text-md-subtitle-1 text-grey-darken-1">
|
2025-06-03 17:57:08 +02:00
|
|
|
Manage and track all potential client interests
|
|
|
|
|
</p>
|
|
|
|
|
</v-col>
|
2025-06-10 16:01:21 +02:00
|
|
|
<v-col cols="12" md="4" class="d-flex justify-start justify-md-end align-center mt-2 mt-md-0">
|
2025-06-03 21:04:22 +02:00
|
|
|
<v-btn
|
|
|
|
|
color="primary"
|
2025-06-10 16:01:21 +02:00
|
|
|
:size="mobile ? 'default' : 'large'"
|
2025-06-03 21:04:22 +02:00
|
|
|
@click="showCreateModal = true"
|
|
|
|
|
prepend-icon="mdi-plus"
|
|
|
|
|
variant="tonal"
|
2025-06-10 16:01:21 +02:00
|
|
|
:block="mobile"
|
2025-06-03 21:04:22 +02:00
|
|
|
>
|
|
|
|
|
Add Interest
|
|
|
|
|
</v-btn>
|
|
|
|
|
</v-col>
|
2025-06-03 17:57:08 +02:00
|
|
|
</v-row>
|
|
|
|
|
|
|
|
|
|
<!-- Search and Filters Section -->
|
|
|
|
|
<v-row class="mb-4">
|
2025-06-10 16:01:21 +02:00
|
|
|
<v-col cols="12" :md="mobile ? 12 : 6" class="mb-2 mb-md-0">
|
2025-06-03 17:57:08 +02:00
|
|
|
<v-text-field
|
|
|
|
|
v-model="search"
|
|
|
|
|
label="Search interests..."
|
|
|
|
|
placeholder="Search by name, yacht, email, phone..."
|
|
|
|
|
prepend-inner-icon="mdi-magnify"
|
|
|
|
|
variant="outlined"
|
2025-06-10 16:01:21 +02:00
|
|
|
:density="mobile ? 'compact' : 'comfortable'"
|
2025-06-03 17:57:08 +02:00
|
|
|
clearable
|
|
|
|
|
hide-details
|
|
|
|
|
class="search-field"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:append-inner>
|
|
|
|
|
<v-fade-transition>
|
|
|
|
|
<v-chip
|
|
|
|
|
v-if="filteredInterests.length !== interests?.list?.length"
|
2025-06-10 16:01:21 +02:00
|
|
|
size="x-small"
|
2025-06-03 17:57:08 +02:00
|
|
|
color="primary"
|
|
|
|
|
variant="tonal"
|
|
|
|
|
>
|
2025-06-10 16:01:21 +02:00
|
|
|
{{ filteredInterests.length }}
|
2025-06-03 17:57:08 +02:00
|
|
|
</v-chip>
|
|
|
|
|
</v-fade-transition>
|
|
|
|
|
</template>
|
|
|
|
|
</v-text-field>
|
|
|
|
|
</v-col>
|
2025-06-10 16:01:21 +02:00
|
|
|
<v-col cols="12" :md="mobile ? 12 : 6">
|
|
|
|
|
<div class="d-flex flex-wrap align-center" :class="mobile ? 'justify-start' : 'justify-end'">
|
|
|
|
|
<v-btn
|
|
|
|
|
v-if="hasActiveFilters && mobile"
|
|
|
|
|
variant="text"
|
|
|
|
|
color="primary"
|
|
|
|
|
size="x-small"
|
|
|
|
|
@click="clearAllFilters"
|
|
|
|
|
icon="mdi-filter-off"
|
|
|
|
|
class="mr-2"
|
|
|
|
|
/>
|
|
|
|
|
<v-btn
|
|
|
|
|
v-if="hasActiveFilters && !mobile"
|
|
|
|
|
variant="text"
|
|
|
|
|
color="primary"
|
2025-06-03 17:57:08 +02:00
|
|
|
size="small"
|
2025-06-10 16:01:21 +02:00
|
|
|
@click="clearAllFilters"
|
|
|
|
|
prepend-icon="mdi-filter-off"
|
|
|
|
|
class="mr-2"
|
2025-06-03 17:57:08 +02:00
|
|
|
>
|
2025-06-10 16:01:21 +02:00
|
|
|
Clear Filters
|
|
|
|
|
</v-btn>
|
|
|
|
|
<v-chip-group
|
|
|
|
|
v-model="selectedSalesLevel"
|
|
|
|
|
selected-class="text-primary"
|
|
|
|
|
:column="false"
|
|
|
|
|
mandatory
|
2025-06-03 17:57:08 +02:00
|
|
|
>
|
2025-06-10 16:01:21 +02:00
|
|
|
<v-chip
|
|
|
|
|
filter
|
|
|
|
|
variant="outlined"
|
|
|
|
|
:size="mobile ? 'x-small' : 'small'"
|
|
|
|
|
value="all"
|
|
|
|
|
>
|
|
|
|
|
All
|
|
|
|
|
</v-chip>
|
|
|
|
|
<v-chip
|
|
|
|
|
filter
|
|
|
|
|
variant="outlined"
|
|
|
|
|
:size="mobile ? 'x-small' : 'small'"
|
|
|
|
|
value="qualified"
|
|
|
|
|
>
|
|
|
|
|
Qualified
|
|
|
|
|
</v-chip>
|
|
|
|
|
<v-chip
|
|
|
|
|
filter
|
|
|
|
|
variant="outlined"
|
|
|
|
|
:size="mobile ? 'x-small' : 'small'"
|
|
|
|
|
value="loi"
|
|
|
|
|
>
|
|
|
|
|
LOI
|
|
|
|
|
</v-chip>
|
|
|
|
|
<v-chip
|
|
|
|
|
filter
|
|
|
|
|
variant="outlined"
|
|
|
|
|
:size="mobile ? 'x-small' : 'small'"
|
|
|
|
|
value="reserved"
|
|
|
|
|
>
|
|
|
|
|
Reserved
|
|
|
|
|
</v-chip>
|
|
|
|
|
</v-chip-group>
|
|
|
|
|
</div>
|
2025-06-03 17:57:08 +02:00
|
|
|
</v-col>
|
|
|
|
|
</v-row>
|
|
|
|
|
|
|
|
|
|
<!-- Data Table -->
|
|
|
|
|
<v-card elevation="0" class="rounded-lg">
|
2025-06-04 01:40:13 +02:00
|
|
|
<div class="table-container">
|
|
|
|
|
<v-data-table
|
|
|
|
|
:headers="headers"
|
|
|
|
|
:items="filteredInterests"
|
|
|
|
|
:search="search"
|
2025-06-11 16:50:31 +02:00
|
|
|
:sort-by="[{ key: 'Id', order: 'desc' }]"
|
2025-06-04 01:40:13 +02:00
|
|
|
must-sort
|
|
|
|
|
hover
|
|
|
|
|
:loading="loading"
|
|
|
|
|
loading-text="Loading interests..."
|
|
|
|
|
:items-per-page="50"
|
|
|
|
|
:items-per-page-options="[10, 20, 50, 100]"
|
|
|
|
|
class="modern-table"
|
|
|
|
|
>
|
2025-06-03 17:57:08 +02:00
|
|
|
<template #item="{ item }">
|
|
|
|
|
<tr @click="handleRowClick(item)" class="table-row">
|
2025-06-10 16:01:21 +02:00
|
|
|
<td class="contact-cell">
|
2025-06-03 17:57:08 +02:00
|
|
|
<div class="d-flex align-center">
|
2025-06-10 16:01:21 +02:00
|
|
|
<v-avatar :size="mobile ? 28 : 32" color="primary" :class="mobile ? 'mr-2' : 'mr-3'">
|
2025-06-03 17:57:08 +02:00
|
|
|
<span class="text-white text-caption font-weight-bold">
|
|
|
|
|
{{ getInitials(item["Full Name"]) }}
|
|
|
|
|
</span>
|
|
|
|
|
</v-avatar>
|
2025-06-10 16:01:21 +02:00
|
|
|
<div class="flex-grow-1 min-width-0">
|
|
|
|
|
<div class="d-flex align-center gap-1">
|
|
|
|
|
<span class="font-weight-medium text-truncate">{{ item["Full Name"] }}</span>
|
2025-06-04 19:51:51 +02:00
|
|
|
<v-tooltip v-if="item['Extra Comments']" location="bottom">
|
|
|
|
|
<template #activator="{ props }">
|
|
|
|
|
<v-icon
|
|
|
|
|
v-bind="props"
|
2025-06-10 16:01:21 +02:00
|
|
|
:size="mobile ? 'x-small' : 'small'"
|
2025-06-04 19:51:51 +02:00
|
|
|
color="orange"
|
|
|
|
|
>
|
|
|
|
|
mdi-comment-text
|
|
|
|
|
</v-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<span>{{ item["Extra Comments"] }}</span>
|
|
|
|
|
</v-tooltip>
|
|
|
|
|
</div>
|
2025-06-10 16:01:21 +02:00
|
|
|
<div class="text-caption text-grey-darken-1 text-truncate">{{ item["Email Address"] }}</div>
|
2025-06-03 17:57:08 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<InterestSalesBadge
|
|
|
|
|
:salesProcessLevel="item['Sales Process Level']"
|
|
|
|
|
/>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2025-06-03 23:48:44 +02:00
|
|
|
<EOIStatusBadge
|
|
|
|
|
v-if="item['EOI Status']"
|
|
|
|
|
:eoiStatus="item['EOI Status']"
|
|
|
|
|
/>
|
|
|
|
|
<span v-else class="text-grey-darken-1">—</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<ContractStatusBadge
|
|
|
|
|
v-if="item['Contract Status']"
|
|
|
|
|
:contractStatus="item['Contract Status']"
|
|
|
|
|
/>
|
2025-06-03 17:57:08 +02:00
|
|
|
<span v-else class="text-grey-darken-1">—</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td><LeadCategoryBadge :leadCategory="item['Lead Category']" /></td>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="text-caption">
|
|
|
|
|
<div>{{ formatDate(item["Created At"]) }}</div>
|
|
|
|
|
<div class="text-grey-darken-1">{{ getRelativeTime(item["Created At"]) }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
2025-06-04 01:40:13 +02:00
|
|
|
</v-data-table>
|
|
|
|
|
</div>
|
2025-06-03 17:57:08 +02:00
|
|
|
</v-card>
|
|
|
|
|
</v-container>
|
|
|
|
|
|
|
|
|
|
<!-- Interest Details Modal -->
|
|
|
|
|
<InterestDetailsModal
|
|
|
|
|
v-model="showModal"
|
2025-06-12 16:16:30 +02:00
|
|
|
:interest="selectedInterest"
|
|
|
|
|
@close="showModal = false"
|
2025-06-03 17:57:08 +02:00
|
|
|
/>
|
2025-06-03 21:04:22 +02:00
|
|
|
|
|
|
|
|
<!-- Create Interest Modal -->
|
|
|
|
|
<CreateInterestModal
|
|
|
|
|
v-model="showCreateModal"
|
|
|
|
|
@created="handleInterestCreated"
|
|
|
|
|
/>
|
2025-06-03 17:57:08 +02:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import LeadCategoryBadge from "~/components/LeadCategoryBadge.vue";
|
|
|
|
|
import InterestSalesBadge from "~/components/InterestSalesBadge.vue";
|
|
|
|
|
import InterestDetailsModal from "~/components/InterestDetailsModal.vue";
|
2025-06-03 21:04:22 +02:00
|
|
|
import CreateInterestModal from "~/components/CreateInterestModal.vue";
|
2025-06-03 23:48:44 +02:00
|
|
|
import EOIStatusBadge from "~/components/EOIStatusBadge.vue";
|
|
|
|
|
import ContractStatusBadge from "~/components/ContractStatusBadge.vue";
|
2025-06-03 17:57:08 +02:00
|
|
|
import { useFetch } from "#app";
|
|
|
|
|
import { ref, computed } from "vue";
|
|
|
|
|
import type { Interest } from "@/utils/types";
|
|
|
|
|
|
|
|
|
|
useHead({
|
|
|
|
|
title: "Interest List",
|
|
|
|
|
});
|
|
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
const { mobile } = useDisplay();
|
2025-06-03 17:57:08 +02:00
|
|
|
const user = useDirectusUser();
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
const loading = ref(true);
|
|
|
|
|
const showModal = ref(false);
|
2025-06-03 21:04:22 +02:00
|
|
|
const showCreateModal = ref(false);
|
2025-06-03 17:57:08 +02:00
|
|
|
const selectedInterest = ref<Interest | null>(null);
|
|
|
|
|
const selectedSalesLevel = ref('all');
|
|
|
|
|
|
|
|
|
|
const { data: interests, refresh } = useFetch<InterestsResponse>("/api/get-interests", {
|
|
|
|
|
headers: {
|
|
|
|
|
"x-tag": user.value?.email ? "094ut234" : "pjnvü1230",
|
|
|
|
|
},
|
|
|
|
|
onResponse() {
|
|
|
|
|
loading.value = false;
|
|
|
|
|
},
|
|
|
|
|
onResponseError() {
|
|
|
|
|
loading.value = false;
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const search = ref("");
|
|
|
|
|
|
|
|
|
|
const handleRowClick = (interest: Interest) => {
|
|
|
|
|
selectedInterest.value = { ...interest };
|
|
|
|
|
showModal.value = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Event handlers for the modal
|
|
|
|
|
const handleSaveInterest = async (interest: Interest) => {
|
|
|
|
|
// Refresh the interests data to reflect the updates
|
|
|
|
|
loading.value = true;
|
|
|
|
|
await refresh();
|
|
|
|
|
loading.value = false;
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-03 21:04:22 +02:00
|
|
|
const handleInterestCreated = async (interest: Interest) => {
|
|
|
|
|
// Refresh the interests data to include the new interest
|
|
|
|
|
loading.value = true;
|
|
|
|
|
await refresh();
|
|
|
|
|
loading.value = false;
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
const headers = computed(() => {
|
|
|
|
|
if (mobile) {
|
|
|
|
|
return [
|
|
|
|
|
{ title: "Contact", key: "Full Name", sortable: true },
|
|
|
|
|
{ title: "Status", key: "Sales Process Level", sortable: true },
|
|
|
|
|
{ title: "Created", key: "Created At", sortable: true },
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
return [
|
|
|
|
|
{ title: "Contact", key: "Full Name", sortable: true, width: "25%" },
|
|
|
|
|
{ title: "Sales Status", key: "Sales Process Level", sortable: true },
|
|
|
|
|
{ title: "EOI Status", key: "EOI Status", sortable: true },
|
|
|
|
|
{ title: "Contract", key: "Contract Status", sortable: true },
|
|
|
|
|
{ title: "Category", key: "Lead Category", sortable: true },
|
|
|
|
|
{ title: "Created", key: "Created At", sortable: true },
|
|
|
|
|
];
|
|
|
|
|
});
|
2025-06-03 17:57:08 +02:00
|
|
|
|
2025-06-04 19:51:51 +02:00
|
|
|
// Check if any filters are active
|
|
|
|
|
const hasActiveFilters = computed(() => {
|
|
|
|
|
return search.value !== '' || selectedSalesLevel.value !== 'all';
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Clear all filters
|
|
|
|
|
const clearAllFilters = () => {
|
|
|
|
|
search.value = '';
|
|
|
|
|
selectedSalesLevel.value = 'all';
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-03 17:57:08 +02:00
|
|
|
const formatDate = (dateString: string) => {
|
|
|
|
|
if (!dateString) return "-";
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
// Handle DD-MM-YYYY format
|
|
|
|
|
const parts = dateString.split("-");
|
|
|
|
|
if (parts.length === 3) {
|
|
|
|
|
const day = parseInt(parts[0], 10);
|
|
|
|
|
const month = parseInt(parts[1], 10) - 1; // Month is 0-indexed in JavaScript
|
|
|
|
|
const year = parseInt(parts[2], 10);
|
|
|
|
|
|
|
|
|
|
const date = new Date(year, month, day);
|
|
|
|
|
|
|
|
|
|
// Check if the date is valid
|
|
|
|
|
if (isNaN(date.getTime())) {
|
|
|
|
|
console.warn("Invalid date format:", dateString);
|
|
|
|
|
return "-";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return date.toLocaleDateString("en-US", {
|
|
|
|
|
year: "numeric",
|
|
|
|
|
month: "short",
|
|
|
|
|
day: "numeric",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// Fallback to standard Date parsing
|
|
|
|
|
const date = new Date(dateString);
|
|
|
|
|
|
|
|
|
|
if (isNaN(date.getTime())) {
|
|
|
|
|
console.warn("Invalid date format:", dateString);
|
|
|
|
|
return "-";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return date.toLocaleDateString("en-US", {
|
|
|
|
|
year: "numeric",
|
|
|
|
|
month: "short",
|
|
|
|
|
day: "numeric",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("Error formatting date:", dateString, error);
|
|
|
|
|
return "-";
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const filteredInterests = computed(() => {
|
|
|
|
|
if (!interests.value?.list) return [];
|
|
|
|
|
|
|
|
|
|
let filtered = interests.value.list;
|
|
|
|
|
|
|
|
|
|
// Apply sales level filter
|
|
|
|
|
if (selectedSalesLevel.value !== 'all') {
|
|
|
|
|
filtered = filtered.filter((item) => {
|
|
|
|
|
const level = item['Sales Process Level']?.toLowerCase() || '';
|
|
|
|
|
switch (selectedSalesLevel.value) {
|
|
|
|
|
case 'qualified':
|
|
|
|
|
return level.includes('qualified');
|
|
|
|
|
case 'loi':
|
|
|
|
|
return level.includes('loi');
|
|
|
|
|
case 'reserved':
|
|
|
|
|
return level.includes('reservation') || level.includes('reserved');
|
|
|
|
|
default:
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Apply search filter
|
|
|
|
|
if (search.value) {
|
|
|
|
|
const searchLower = search.value.toLowerCase();
|
|
|
|
|
filtered = filtered.filter((item) => {
|
|
|
|
|
return Object.values(item).some((value) =>
|
|
|
|
|
String(value).toLowerCase().includes(searchLower)
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return filtered;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Helper function to get initials
|
|
|
|
|
const getInitials = (name: string) => {
|
|
|
|
|
if (!name) return '?';
|
|
|
|
|
const parts = name.split(' ');
|
|
|
|
|
if (parts.length >= 2) {
|
|
|
|
|
return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
|
|
|
|
|
}
|
|
|
|
|
return name.substring(0, 2).toUpperCase();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Helper function to get relative time
|
|
|
|
|
const getRelativeTime = (dateString: string) => {
|
|
|
|
|
if (!dateString) return '';
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
let date: Date;
|
|
|
|
|
|
|
|
|
|
// Handle DD-MM-YYYY format
|
|
|
|
|
if (dateString.includes('-')) {
|
|
|
|
|
const parts = dateString.split('-');
|
|
|
|
|
if (parts.length === 3) {
|
|
|
|
|
const [day, month, year] = parts;
|
|
|
|
|
date = new Date(parseInt(year), parseInt(month) - 1, parseInt(day));
|
|
|
|
|
} else {
|
|
|
|
|
date = new Date(dateString);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
date = new Date(dateString);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isNaN(date.getTime())) return '';
|
|
|
|
|
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const diffTime = Math.abs(now.getTime() - date.getTime());
|
|
|
|
|
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
|
|
|
|
|
|
|
|
|
|
if (diffDays === 0) return 'Today';
|
|
|
|
|
if (diffDays === 1) return 'Yesterday';
|
|
|
|
|
if (diffDays < 7) return `${diffDays} days ago`;
|
|
|
|
|
if (diffDays < 30) return `${Math.floor(diffDays / 7)} weeks ago`;
|
|
|
|
|
if (diffDays < 365) return `${Math.floor(diffDays / 30)} months ago`;
|
|
|
|
|
return `${Math.floor(diffDays / 365)} years ago`;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.search-field :deep(.v-field) {
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-field:focus-within :deep(.v-field) {
|
|
|
|
|
box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(.v-table__wrapper) {
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(.v-data-table-header__content) {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #424242;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.025em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(tbody tr) {
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(tbody tr:hover) {
|
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-row {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-row td {
|
|
|
|
|
padding: 16px !important;
|
|
|
|
|
border-bottom: 1px solid #e0e0e0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-row:last-child td {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.v-avatar {
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
}
|
2025-06-04 01:40:13 +02:00
|
|
|
|
2025-06-04 04:12:54 +02:00
|
|
|
.logo-icon {
|
|
|
|
|
height: 32px;
|
|
|
|
|
width: auto;
|
|
|
|
|
max-width: 32px;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-04 19:51:51 +02:00
|
|
|
/* Mobile horizontal scrolling with visual indicators */
|
2025-06-04 01:40:13 +02:00
|
|
|
.table-container {
|
2025-06-04 19:51:51 +02:00
|
|
|
position: relative;
|
2025-06-04 01:40:13 +02:00
|
|
|
overflow-x: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-04 19:51:51 +02:00
|
|
|
/* Scroll indicators */
|
|
|
|
|
.table-container::before,
|
|
|
|
|
.table-container::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
width: 40px;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-container::before {
|
|
|
|
|
left: 0;
|
|
|
|
|
background: linear-gradient(to right, white, transparent);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-container::after {
|
|
|
|
|
right: 0;
|
|
|
|
|
background: linear-gradient(to left, white, transparent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-container:not(.scroll-start)::before {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-container:not(.scroll-end)::after {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-05 14:49:29 +02:00
|
|
|
/* Safari-specific fixes and scrolling performance improvements */
|
2025-06-04 19:51:51 +02:00
|
|
|
.modern-table :deep(.v-table__wrapper) {
|
|
|
|
|
-webkit-transform: translateZ(0);
|
|
|
|
|
transform: translateZ(0);
|
2025-06-05 14:49:29 +02:00
|
|
|
/* Improve scrolling performance */
|
|
|
|
|
will-change: scroll-position;
|
|
|
|
|
-webkit-backface-visibility: hidden;
|
|
|
|
|
backface-visibility: hidden;
|
2025-06-04 19:51:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(.v-data-table__td) {
|
|
|
|
|
min-width: 0;
|
2025-06-05 14:49:29 +02:00
|
|
|
/* Optimize for better rendering */
|
|
|
|
|
contain: layout style paint;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Fix potential scrolling issues on desktop */
|
|
|
|
|
.modern-table :deep(.v-table) {
|
|
|
|
|
table-layout: fixed;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(tbody tr) {
|
|
|
|
|
/* Prevent sub-pixel rendering issues */
|
|
|
|
|
transform: translateZ(0);
|
2025-06-04 19:51:51 +02:00
|
|
|
}
|
|
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
/* Responsive column widths */
|
|
|
|
|
@media (min-width: 769px) {
|
|
|
|
|
.modern-table :deep(th:nth-child(1)),
|
|
|
|
|
.modern-table :deep(td:nth-child(1)) {
|
|
|
|
|
min-width: 250px;
|
|
|
|
|
}
|
2025-06-04 19:51:51 +02:00
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
.modern-table :deep(th:nth-child(2)),
|
|
|
|
|
.modern-table :deep(td:nth-child(2)) {
|
|
|
|
|
min-width: 150px;
|
|
|
|
|
}
|
2025-06-04 19:51:51 +02:00
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
.modern-table :deep(th:nth-child(3)),
|
|
|
|
|
.modern-table :deep(td:nth-child(3)) {
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
}
|
2025-06-04 19:51:51 +02:00
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
.modern-table :deep(th:nth-child(4)),
|
|
|
|
|
.modern-table :deep(td:nth-child(4)) {
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
}
|
2025-06-04 19:51:51 +02:00
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
.modern-table :deep(th:nth-child(5)),
|
|
|
|
|
.modern-table :deep(td:nth-child(5)) {
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
}
|
2025-06-04 19:51:51 +02:00
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
.modern-table :deep(th:nth-child(6)),
|
|
|
|
|
.modern-table :deep(td:nth-child(6)) {
|
|
|
|
|
min-width: 140px;
|
|
|
|
|
}
|
2025-06-04 19:51:51 +02:00
|
|
|
}
|
|
|
|
|
|
2025-06-10 16:01:21 +02:00
|
|
|
/* Mobile-specific styles */
|
2025-06-04 01:40:13 +02:00
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.table-container {
|
2025-06-10 16:48:40 +02:00
|
|
|
position: relative;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
2025-06-10 17:37:53 +02:00
|
|
|
/* Remove negative margins to prevent cutoff */
|
2025-06-04 01:40:13 +02:00
|
|
|
}
|
|
|
|
|
|
2025-06-10 16:48:40 +02:00
|
|
|
/* Add padding to the wrapper instead */
|
2025-06-04 01:40:13 +02:00
|
|
|
.modern-table :deep(.v-table__wrapper) {
|
2025-06-10 16:48:40 +02:00
|
|
|
min-width: 600px; /* Minimum width to ensure scrolling */
|
2025-06-04 01:40:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(th) {
|
2025-06-10 16:01:21 +02:00
|
|
|
padding: 8px !important;
|
|
|
|
|
font-size: 0.75rem;
|
2025-06-10 16:48:40 +02:00
|
|
|
white-space: nowrap;
|
2025-06-04 01:40:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(td) {
|
2025-06-10 16:01:21 +02:00
|
|
|
padding: 12px 8px !important;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-10 16:48:40 +02:00
|
|
|
/* Show all columns but with smaller widths on mobile */
|
|
|
|
|
.modern-table :deep(th:nth-child(1)),
|
|
|
|
|
.modern-table :deep(td:nth-child(1)) {
|
|
|
|
|
min-width: 180px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(th:nth-child(2)),
|
|
|
|
|
.modern-table :deep(td:nth-child(2)) {
|
|
|
|
|
min-width: 120px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modern-table :deep(th:nth-child(3)),
|
|
|
|
|
.modern-table :deep(td:nth-child(3)) {
|
|
|
|
|
min-width: 100px !important;
|
2025-06-10 16:01:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Contact cell optimization */
|
|
|
|
|
.contact-cell {
|
2025-06-10 16:48:40 +02:00
|
|
|
max-width: 180px;
|
2025-06-10 16:01:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.contact-cell .text-truncate {
|
2025-06-10 16:48:40 +02:00
|
|
|
max-width: 140px;
|
2025-06-04 01:40:13 +02:00
|
|
|
}
|
2025-06-10 16:01:21 +02:00
|
|
|
|
|
|
|
|
/* Adjust table row height on mobile */
|
|
|
|
|
.table-row td {
|
|
|
|
|
padding: 12px 8px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ensure badges are sized appropriately */
|
|
|
|
|
.modern-table :deep(.v-chip) {
|
|
|
|
|
height: 20px !important;
|
|
|
|
|
font-size: 0.625rem !important;
|
|
|
|
|
}
|
2025-06-10 16:48:40 +02:00
|
|
|
|
|
|
|
|
/* Add visual scroll indicators */
|
|
|
|
|
.table-container::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
width: 30px;
|
|
|
|
|
background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2025-06-10 16:01:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ensure proper text truncation */
|
|
|
|
|
.text-truncate {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.min-width-0 {
|
|
|
|
|
min-width: 0;
|
2025-06-04 01:40:13 +02:00
|
|
|
}
|
2025-06-03 17:57:08 +02:00
|
|
|
</style>
|