feat: Enhance LayerManagerPanel with dynamic trigger options and improved condition handling
- Added a new Select component to allow users to choose condition values dynamically based on the selected zone's trigger component. - Implemented logic to fetch trigger options from the base layer components, ensuring only relevant options are displayed. - Updated the LayerManagerPanel to handle condition values more effectively, including the ability to set new condition values and manage used values. - Refactored the ComponentsPanel to include the new V2 select component with appropriate configuration options. - Improved the V2SelectConfigPanel to streamline option management and enhance user experience.
This commit is contained in:
@@ -71,11 +71,13 @@ const DropdownSelect = forwardRef<HTMLButtonElement, {
|
||||
<SelectValue placeholder={placeholder} />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
{options.map((option) => (
|
||||
<SelectItem key={option.value} value={option.value}>
|
||||
{option.label}
|
||||
</SelectItem>
|
||||
))}
|
||||
{options
|
||||
.filter((option) => option.value !== "")
|
||||
.map((option) => (
|
||||
<SelectItem key={option.value} value={option.value}>
|
||||
{option.label}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user