VSN-1999 : Attaching first tab activation with reducing the width of prepared passengers drawer.
Implementing Dynamic Drawer Width Control Within Custom Tabs
Overview
This merge request introduces drawer width control into the custom tabs system used in the prepared passengers module.
The objective is to ensure that interacting with specific tabs dynamically adjusts the drawer width in order to provide an improved form layout and better readability.
The update centralizes width-related behavior inside the tabs logic while ensuring that parent components remain the single source of truth for layout configuration.
Summary of Changes
1. Drawer Width Setter Integration
feat: Defining width setter in custom tabs
- Introduced a dedicated property in the custom tabs component to transmit the drawer width setter function.
- Enables the tab system to directly influence drawer sizing based on user interactions.
2. Updated Tabs Mapping Logic
feat: Mapping tabs logic
- Refactored the tab mapping process to support more dynamic behavior.
- Attached a click event to the first tab so that selecting it automatically expands the drawer.
- Ensures consistent width adjustments when navigating between tabs.
3. Propagation of the Width Setter
feat: Invocation
- Passed the drawer width setter value from the parent view down to the custom tabs component.
- Establishes a clean top-down flow for layout state management.
Functional Impact
- Drawer width now adjusts intelligently based on tab selection.
- Improved usability and spacing for forms displayed when the first tab is active.
- Clearer and more maintainable width propagation logic across components.
Additional Notes
- This update complements previous work related to responsive drawer behavior.
- No breaking changes were introduced; existing tab functionality remains intact.
Closes VSN-1999