feat(calendar): enhance event handling with timezone support and filtering capabilities

This commit is contained in:
Sean Morley
2025-06-18 19:03:32 -04:00
parent 8b108c5797
commit eef8c92e82
20 changed files with 793 additions and 70 deletions

View File

@@ -22,19 +22,7 @@
label: string;
};
const LODGING_TYPES: LodgingType[] = [
{ value: 'hotel', label: 'Hotel' },
{ value: 'hostel', label: 'Hostel' },
{ value: 'resort', label: 'Resort' },
{ value: 'bnb', label: 'Bed & Breakfast' },
{ value: 'campground', label: 'Campground' },
{ value: 'cabin', label: 'Cabin' },
{ value: 'apartment', label: 'Apartment' },
{ value: 'house', label: 'House' },
{ value: 'villa', label: 'Villa' },
{ value: 'motel', label: 'Motel' },
{ value: 'other', label: 'Other' }
];
let lodgingTimezone: string | undefined = lodging.timezone ?? undefined;
// Initialize hotel with values from lodgingToEdit or default values
function initializeLodging(lodgingToEdit: Lodging | null): Lodging {
@@ -304,7 +292,8 @@
type="lodging"
bind:utcStartDate={lodging.check_in}
bind:utcEndDate={lodging.check_out}
bind:selectedStartTimezone={lodging.timezone}
bind:selectedStartTimezone={lodgingTimezone}
{collection}
/>
<!-- Location Information -->