2026-03-13 00:14:03 +00:00
|
|
|
@using AIStudio.Tools.PluginSystem.Assistants.DataModel
|
2026-02-24 16:21:50 +00:00
|
|
|
<MudStack Row="true" Class='@this.MergeClasses(this.Class, "mb-3")' Style="@this.Style">
|
2026-03-13 00:51:48 +00:00
|
|
|
@if (this.IsMultiselect)
|
|
|
|
|
{
|
|
|
|
|
<MudSelect
|
|
|
|
|
T="string"
|
|
|
|
|
SelectedValues="@this.SelectedValues"
|
|
|
|
|
SelectedValuesChanged="@this.OnSelectedValuesChanged"
|
|
|
|
|
Label="@this.Label"
|
|
|
|
|
HelperText="@this.HelperText"
|
|
|
|
|
Placeholder="@this.Default.Display"
|
|
|
|
|
OpenIcon="@this.OpenIcon"
|
|
|
|
|
CloseIcon="@this.CloseIcon"
|
|
|
|
|
Adornment="@this.IconPosition"
|
|
|
|
|
AdornmentColor="@this.IconColor"
|
|
|
|
|
Variant="@this.Variant"
|
|
|
|
|
Margin="Margin.Normal"
|
|
|
|
|
MultiSelection="@true"
|
|
|
|
|
SelectAll="@this.HasSelectAll"
|
|
|
|
|
SelectAllText="@this.SelectAllText">
|
|
|
|
|
@foreach (var item in Items)
|
|
|
|
|
{
|
|
|
|
|
<MudSelectItem Value="@item.Value">
|
|
|
|
|
@item.Display
|
|
|
|
|
</MudSelectItem>
|
|
|
|
|
}
|
|
|
|
|
</MudSelect>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<MudSelect
|
|
|
|
|
T="string"
|
|
|
|
|
Value="@this.Value"
|
|
|
|
|
ValueChanged="@(val => this.OnValueChanged(val))"
|
|
|
|
|
Label="@this.Label"
|
|
|
|
|
HelperText="@this.HelperText"
|
|
|
|
|
Placeholder="@this.Default.Display"
|
|
|
|
|
OpenIcon="@this.OpenIcon"
|
|
|
|
|
CloseIcon="@this.CloseIcon"
|
|
|
|
|
Adornment="@this.IconPosition"
|
|
|
|
|
AdornmentColor="@this.IconColor"
|
|
|
|
|
Variant="@this.Variant"
|
|
|
|
|
Margin="Margin.Normal">
|
|
|
|
|
@foreach (var item in Items)
|
|
|
|
|
{
|
|
|
|
|
<MudSelectItem Value="@item.Value">
|
|
|
|
|
@item.Display
|
|
|
|
|
</MudSelectItem>
|
|
|
|
|
}
|
|
|
|
|
</MudSelect>
|
|
|
|
|
}
|
2026-02-24 16:21:50 +00:00
|
|
|
</MudStack>
|