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:
kjs
2026-02-09 17:13:26 +09:00
parent f8c0fe9499
commit c65f436009
5 changed files with 137 additions and 7528 deletions

View File

@@ -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>
);