added missing properties

This commit is contained in:
krut_ni 2026-03-16 20:27:10 +01:00
parent c4ec10748a
commit 9440f132c6
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C
7 changed files with 39 additions and 9 deletions

View File

@ -413,6 +413,7 @@ else
<MudDatePicker Date="@this.ParseDatePickerValue(this.datePickerFields[datePicker.Name], format)" <MudDatePicker Date="@this.ParseDatePickerValue(this.datePickerFields[datePicker.Name], format)"
DateChanged="@((DateTime? value) => this.SetDatePickerValue(datePicker.Name, value, format))" DateChanged="@((DateTime? value) => this.SetDatePickerValue(datePicker.Name, value, format))"
Label="@datePicker.Label" Label="@datePicker.Label"
Color="@AssistantComponentPropHelper.GetColor(datePicker.Color, Color.Primary)"
Placeholder="@datePicker.Placeholder" Placeholder="@datePicker.Placeholder"
HelperText="@datePicker.HelperText" HelperText="@datePicker.HelperText"
DateFormat="@format" DateFormat="@format"
@ -434,6 +435,7 @@ else
<MudDateRangePicker DateRange="@this.ParseDateRangePickerValue(this.dateRangePickerFields[dateRangePicker.Name], format)" <MudDateRangePicker DateRange="@this.ParseDateRangePickerValue(this.dateRangePickerFields[dateRangePicker.Name], format)"
DateRangeChanged="@(value => this.SetDateRangePickerValue(dateRangePicker.Name, value, format))" DateRangeChanged="@(value => this.SetDateRangePickerValue(dateRangePicker.Name, value, format))"
Label="@dateRangePicker.Label" Label="@dateRangePicker.Label"
Color="@AssistantComponentPropHelper.GetColor(dateRangePicker.Color, Color.Primary)"
PlaceholderStart="@dateRangePicker.PlaceholderStart" PlaceholderStart="@dateRangePicker.PlaceholderStart"
PlaceholderEnd="@dateRangePicker.PlaceholderEnd" PlaceholderEnd="@dateRangePicker.PlaceholderEnd"
HelperText="@dateRangePicker.HelperText" HelperText="@dateRangePicker.HelperText"
@ -456,6 +458,7 @@ else
<MudTimePicker Time="@this.ParseTimePickerValue(this.timePickerFields[timePicker.Name], format)" <MudTimePicker Time="@this.ParseTimePickerValue(this.timePickerFields[timePicker.Name], format)"
TimeChanged="@((TimeSpan? value) => this.SetTimePickerValue(timePicker.Name, value, format))" TimeChanged="@((TimeSpan? value) => this.SetTimePickerValue(timePicker.Name, value, format))"
Label="@timePicker.Label" Label="@timePicker.Label"
Color="@AssistantComponentPropHelper.GetColor(timePicker.Color, Color.Primary)"
Placeholder="@timePicker.Placeholder" Placeholder="@timePicker.Placeholder"
HelperText="@timePicker.HelperText" HelperText="@timePicker.HelperText"
TimeFormat="@format" TimeFormat="@format"

View File

@ -103,9 +103,9 @@ ASSISTANT = {
- `LAYOUT_ACCORDION_SECTION`: renders a `MudExpansionPanel`; requires `Name`, `HeaderText`, and may include `IsDisabled`, `IsExpanded`, `IsDense`, `HasInnerPadding`, `HideIcon`, `HeaderIcon`, `HeaderColor`, `HeaderTypo`, `HeaderAlign`, `MaxHeight`, `ExpandIcon`, `Class`, `Style`. - `LAYOUT_ACCORDION_SECTION`: renders a `MudExpansionPanel`; requires `Name`, `HeaderText`, and may include `IsDisabled`, `IsExpanded`, `IsDense`, `HasInnerPadding`, `HideIcon`, `HeaderIcon`, `HeaderColor`, `HeaderTypo`, `HeaderAlign`, `MaxHeight`, `ExpandIcon`, `Class`, `Style`.
- `SWITCH`: boolean option; requires `Name`, `Label`, `Value`, and may include `OnChanged`, `Disabled`, `UserPrompt`, `LabelOn`, `LabelOff`, `LabelPlacement`, `Icon`, `IconColor`, `CheckedColor`, `UncheckedColor`, `Class`, `Style`. - `SWITCH`: boolean option; requires `Name`, `Label`, `Value`, and may include `OnChanged`, `Disabled`, `UserPrompt`, `LabelOn`, `LabelOff`, `LabelPlacement`, `Icon`, `IconColor`, `CheckedColor`, `UncheckedColor`, `Class`, `Style`.
- `COLOR_PICKER`: color input based on `MudColorPicker`; requires `Name`, `Label`, and may include `Placeholder`, `ShowAlpha`, `ShowToolbar`, `ShowModeSwitch`, `PickerVariant`, `UserPrompt`, `Class`, `Style`. - `COLOR_PICKER`: color input based on `MudColorPicker`; requires `Name`, `Label`, and may include `Placeholder`, `ShowAlpha`, `ShowToolbar`, `ShowModeSwitch`, `PickerVariant`, `UserPrompt`, `Class`, `Style`.
- `DATE_PICKER`: date input based on `MudDatePicker`; requires `Name`, `Label`, and may include `Value`, `Placeholder`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style`. - `DATE_PICKER`: date input based on `MudDatePicker`; requires `Name`, `Label`, and may include `Value`, `Color`, `Placeholder`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style`.
- `DATE_RANGE_PICKER`: date range input based on `MudDateRangePicker`; requires `Name`, `Label`, and may include `Value`, `PlaceholderStart`, `PlaceholderEnd`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style`. - `DATE_RANGE_PICKER`: date range input based on `MudDateRangePicker`; requires `Name`, `Label`, and may include `Value`, `Color`, `PlaceholderStart`, `PlaceholderEnd`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style`.
- `TIME_PICKER`: time input based on `MudTimePicker`; requires `Name`, `Label`, and may include `Value`, `Placeholder`, `HelperText`, `TimeFormat`, `AmPm`, `PickerVariant`, `UserPrompt`, `Class`, `Style`. - `TIME_PICKER`: time input based on `MudTimePicker`; requires `Name`, `Label`, and may include `Value`, `Color`, `Placeholder`, `HelperText`, `TimeFormat`, `AmPm`, `PickerVariant`, `UserPrompt`, `Class`, `Style`.
- `PROVIDER_SELECTION` / `PROFILE_SELECTION`: hooks into the shared provider/profile selectors. - `PROVIDER_SELECTION` / `PROFILE_SELECTION`: hooks into the shared provider/profile selectors.
- `WEB_CONTENT_READER`: renders `ReadWebContent`; include `Name`, `UserPrompt`, `Preselect`, `PreselectContentCleanerAgent`. - `WEB_CONTENT_READER`: renders `ReadWebContent`; include `Name`, `UserPrompt`, `Preselect`, `PreselectContentCleanerAgent`.
- `FILE_CONTENT_READER`: renders `ReadFileContent`; include `Name`, `UserPrompt`. - `FILE_CONTENT_READER`: renders `ReadFileContent`; include `Name`, `UserPrompt`.
@ -124,9 +124,9 @@ Images referenced via the `plugin://` scheme must exist in the plugin directory
| `PROFILE_SELECTION` | `None` | `None` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ProfileSelection.razor) | | `PROFILE_SELECTION` | `None` | `None` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ProfileSelection.razor) |
| `FILE_CONTENT_READER` | `Name` | `UserPrompt` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadFileContent.razor) | | `FILE_CONTENT_READER` | `Name` | `UserPrompt` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadFileContent.razor) |
| `WEB_CONTENT_READER` | `Name` | `UserPrompt` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadWebContent.razor) | | `WEB_CONTENT_READER` | `Name` | `UserPrompt` | [`internal`](https://github.com/MindWorkAI/AI-Studio/blob/main/app/MindWork%20AI%20Studio/Components/ReadWebContent.razor) |
| `COLOR_PICKER` | `Name`, `Label` | `Placeholder`, `ShowAlpha`, `ShowToolbar`, `ShowModeSwitch`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudColorPicker](https://www.mudblazor.com/components/colorpicker) | | `COLOR_PICKER` | `Name`, `Label` | `Placeholder`, `Color`, `ShowAlpha`, `ShowToolbar`, `ShowModeSwitch`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudColorPicker](https://www.mudblazor.com/components/colorpicker) |
| `DATE_PICKER` | `Name`, `Label` | `Value`, `Placeholder`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudDatePicker](https://www.mudblazor.com/components/datepicker) | | `DATE_PICKER` | `Name`, `Label` | `Value`, `Color`, `Placeholder`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudDatePicker](https://www.mudblazor.com/components/datepicker) |
| `DATE_RANGE_PICKER` | `Name`, `Label` | `Value`, `PlaceholderStart`, `PlaceholderEnd`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudDateRangePicker](https://www.mudblazor.com/components/daterangepicker) | | `DATE_RANGE_PICKER` | `Name`, `Label` | `Value`, `Color`, `PlaceholderStart`, `PlaceholderEnd`, `HelperText`, `DateFormat`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudDateRangePicker](https://www.mudblazor.com/components/daterangepicker) |
| `TIME_PICKER` | `Name`, `Label` | `Value`, `Placeholder`, `HelperText`, `TimeFormat`, `AmPm`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudTimePicker](https://www.mudblazor.com/components/timepicker) | | `TIME_PICKER` | `Name`, `Label` | `Value`, `Placeholder`, `HelperText`, `TimeFormat`, `AmPm`, `PickerVariant`, `UserPrompt`, `Class`, `Style` | [MudTimePicker](https://www.mudblazor.com/components/timepicker) |
| `HEADING` | `Text` | `Level` | [MudText Typo="Typo.<h2\|h3\|h4\|h5\|h6>"](https://www.mudblazor.com/components/typography) | | `HEADING` | `Text` | `Level` | [MudText Typo="Typo.<h2\|h3\|h4\|h5\|h6>"](https://www.mudblazor.com/components/typography) |
| `TEXT` | `Content` | `None` | [MudText Typo="Typo.body1"](https://www.mudblazor.com/components/typography) | | `TEXT` | `Content` | `None` | [MudText Typo="Typo.body1"](https://www.mudblazor.com/components/typography) |
@ -489,6 +489,7 @@ More information on rendered components can be found [here](https://www.mudblazo
- Optional props: - Optional props:
- `Value`: initial date string. Use the same format as `DateFormat`; default recommendation is `yyyy-MM-dd`. - `Value`: initial date string. Use the same format as `DateFormat`; default recommendation is `yyyy-MM-dd`.
- `Placeholder`: hint text shown before a date is selected. - `Placeholder`: hint text shown before a date is selected.
- `Color`: one of the MudBlazor `Color` enum names such as `Primary`, `Secondary`, `Warning`; omitted values default to `Primary`.
- `HelperText`: helper text rendered below the picker. - `HelperText`: helper text rendered below the picker.
- `DateFormat`: output and parsing format; defaults to `yyyy-MM-dd`. - `DateFormat`: output and parsing format; defaults to `yyyy-MM-dd`.
- `PickerVariant`: one of `Dialog`, `Inline`, `Static`; invalid or omitted values fall back to `Dialog`. - `PickerVariant`: one of `Dialog`, `Inline`, `Static`; invalid or omitted values fall back to `Dialog`.
@ -504,6 +505,7 @@ More information on rendered components can be found [here](https://www.mudblazo
["Label"] = "Deadline", ["Label"] = "Deadline",
["Value"] = "2026-03-31", ["Value"] = "2026-03-31",
["Placeholder"] = "YYYY-MM-DD", ["Placeholder"] = "YYYY-MM-DD",
["Color"] = "Warning",
["HelperText"] = "Pick the target completion date.", ["HelperText"] = "Pick the target completion date.",
["DateFormat"] = "yyyy-MM-dd", ["DateFormat"] = "yyyy-MM-dd",
["PickerVariant"] = "Dialog", ["PickerVariant"] = "Dialog",
@ -521,6 +523,7 @@ More information on rendered components can be found [here](https://www.mudblazo
- `Label`: visible field label. - `Label`: visible field label.
- Optional props: - Optional props:
- `Value`: initial range string using `<start> - <end>`, for example `2026-03-01 - 2026-03-31`. - `Value`: initial range string using `<start> - <end>`, for example `2026-03-01 - 2026-03-31`.
- `Color`: one of the MudBlazor `Color` enum names such as `Primary`, `Secondary`, `Warning`; omitted values default to `Primary`.
- `PlaceholderStart`: hint text for the start date input. - `PlaceholderStart`: hint text for the start date input.
- `PlaceholderEnd`: hint text for the end date input. - `PlaceholderEnd`: hint text for the end date input.
- `HelperText`: helper text rendered below the picker. - `HelperText`: helper text rendered below the picker.
@ -537,6 +540,7 @@ More information on rendered components can be found [here](https://www.mudblazo
["Name"] = "travelWindow", ["Name"] = "travelWindow",
["Label"] = "Travel window", ["Label"] = "Travel window",
["Value"] = "2026-06-01 - 2026-06-07", ["Value"] = "2026-06-01 - 2026-06-07",
["Color"] = "Secondary",
["PlaceholderStart"] = "Start date", ["PlaceholderStart"] = "Start date",
["PlaceholderEnd"] = "End date", ["PlaceholderEnd"] = "End date",
["HelperText"] = "Select the full period.", ["HelperText"] = "Select the full period.",
@ -557,6 +561,7 @@ More information on rendered components can be found [here](https://www.mudblazo
- Optional props: - Optional props:
- `Value`: initial time string. Use the same format as `TimeFormat`; default recommendations are `HH:mm` or `hh:mm tt`. - `Value`: initial time string. Use the same format as `TimeFormat`; default recommendations are `HH:mm` or `hh:mm tt`.
- `Placeholder`: hint text shown before a time is selected. - `Placeholder`: hint text shown before a time is selected.
- `Color`: one of the MudBlazor `Color` enum names such as `Primary`, `Secondary`, `Warning`; omitted values default to `Primary`.
- `HelperText`: helper text rendered below the picker. - `HelperText`: helper text rendered below the picker.
- `TimeFormat`: output and parsing format; defaults to `HH:mm`, or `hh:mm tt` when `AmPm = true`. - `TimeFormat`: output and parsing format; defaults to `HH:mm`, or `hh:mm tt` when `AmPm = true`.
- `AmPm`: defaults to `false`; toggles 12-hour mode. - `AmPm`: defaults to `false`; toggles 12-hour mode.
@ -573,6 +578,7 @@ More information on rendered components can be found [here](https://www.mudblazo
["Label"] = "Meeting time", ["Label"] = "Meeting time",
["Value"] = "14:30", ["Value"] = "14:30",
["Placeholder"] = "HH:mm", ["Placeholder"] = "HH:mm",
["Color"] = "Error",
["HelperText"] = "Pick the preferred meeting time.", ["HelperText"] = "Pick the preferred meeting time.",
["TimeFormat"] = "HH:mm", ["TimeFormat"] = "HH:mm",
["AmPm"] = false, ["AmPm"] = false,

View File

@ -349,6 +349,7 @@ ASSISTANT = {
["Name"] = "<unique identifier of this component>", -- required ["Name"] = "<unique identifier of this component>", -- required
["Label"] = "<heading of your component>", -- required ["Label"] = "<heading of your component>", -- required
["Value"] = "2026-03-16", -- optional initial value ["Value"] = "2026-03-16", -- optional initial value
["Color"] = "<Dark|Error|Info|Inherit|Primary|Secondary|Success|Surface|Tertiary|Transparent|Warning>",
["Placeholder"] = "YYYY-MM-DD", ["Placeholder"] = "YYYY-MM-DD",
["HelperText"] = "<optional help text rendered under the picker>", ["HelperText"] = "<optional help text rendered under the picker>",
["DateFormat"] = "yyyy-MM-dd", ["DateFormat"] = "yyyy-MM-dd",
@ -364,6 +365,7 @@ ASSISTANT = {
["Name"] = "<unique identifier of this component>", -- required ["Name"] = "<unique identifier of this component>", -- required
["Label"] = "<heading of your component>", -- required ["Label"] = "<heading of your component>", -- required
["Value"] = "2026-03-16 - 2026-03-20", -- optional initial range ["Value"] = "2026-03-16 - 2026-03-20", -- optional initial range
["Color"] = "<Dark|Error|Info|Inherit|Primary|Secondary|Success|Surface|Tertiary|Transparent|Warning>",
["PlaceholderStart"] = "Start date", ["PlaceholderStart"] = "Start date",
["PlaceholderEnd"] = "End date", ["PlaceholderEnd"] = "End date",
["HelperText"] = "<optional help text rendered under the picker>", ["HelperText"] = "<optional help text rendered under the picker>",
@ -380,6 +382,7 @@ ASSISTANT = {
["Name"] = "<unique identifier of this component>", -- required ["Name"] = "<unique identifier of this component>", -- required
["Label"] = "<heading of your component>", -- required ["Label"] = "<heading of your component>", -- required
["Value"] = "14:30", -- optional initial time ["Value"] = "14:30", -- optional initial time
["Color"] = "<Dark|Error|Info|Inherit|Primary|Secondary|Success|Surface|Tertiary|Transparent|Warning>",
["Placeholder"] = "HH:mm", ["Placeholder"] = "HH:mm",
["HelperText"] = "<optional help text rendered under the picker>", ["HelperText"] = "<optional help text rendered under the picker>",
["TimeFormat"] = "HH:mm", ["TimeFormat"] = "HH:mm",

View File

@ -24,6 +24,12 @@ internal sealed class AssistantDatePicker : AssistantComponentBase
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Value), value); set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Value), value);
} }
public string Color
{
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Color));
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Color), value);
}
public string Placeholder public string Placeholder
{ {
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Placeholder)); get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Placeholder));

View File

@ -24,6 +24,12 @@ internal sealed class AssistantDateRangePicker : AssistantComponentBase
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Value), value); set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Value), value);
} }
public string Color
{
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Color));
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Color), value);
}
public string PlaceholderStart public string PlaceholderStart
{ {
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.PlaceholderStart)); get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.PlaceholderStart));

View File

@ -36,6 +36,12 @@ internal sealed class AssistantTimePicker : AssistantComponentBase
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HelperText), value); set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.HelperText), value);
} }
public string Color
{
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Color));
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Color), value);
}
public string TimeFormat public string TimeFormat
{ {
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.TimeFormat)); get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.TimeFormat));

View File

@ -84,7 +84,7 @@ public static class ComponentPropSpecs
[AssistantComponentType.DATE_PICKER] = new( [AssistantComponentType.DATE_PICKER] = new(
required: ["Name", "Label"], required: ["Name", "Label"],
optional: [ optional: [
"Value", "Placeholder", "HelperText", "DateFormat", "Value", "Placeholder", "HelperText", "DateFormat", "Color",
"PickerVariant", "UserPrompt", "Class", "Style" "PickerVariant", "UserPrompt", "Class", "Style"
] ]
), ),
@ -92,13 +92,13 @@ public static class ComponentPropSpecs
required: ["Name", "Label"], required: ["Name", "Label"],
optional: [ optional: [
"Value", "PlaceholderStart", "PlaceholderEnd", "HelperText", "DateFormat", "Value", "PlaceholderStart", "PlaceholderEnd", "HelperText", "DateFormat",
"PickerVariant", "UserPrompt", "Class", "Style" "Color", "PickerVariant", "UserPrompt", "Class", "Style"
] ]
), ),
[AssistantComponentType.TIME_PICKER] = new( [AssistantComponentType.TIME_PICKER] = new(
required: ["Name", "Label"], required: ["Name", "Label"],
optional: [ optional: [
"Value", "Placeholder", "HelperText", "TimeFormat", "AmPm", "Value", "Placeholder", "HelperText", "TimeFormat", "AmPm", "Color",
"PickerVariant", "UserPrompt", "Class", "Style" "PickerVariant", "UserPrompt", "Class", "Style"
] ]
), ),