You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.9 KiB
64 lines
2.9 KiB
@namespace Connected.Components
|
|
@typeparam T
|
|
@inherits DebouncedInput<T>
|
|
|
|
@using System.Globalization;
|
|
|
|
<CascadingValue Name="SubscribeToParentForm" Value="@SubscribeToParentForm" IsFixed="true">
|
|
<InputControl id="@_elementId"
|
|
Label="@Label"
|
|
Variant="@Variant"
|
|
HelperText="@HelperText"
|
|
HelperTextOnFocus="@HelperTextOnFocus"
|
|
FullWidth="@FullWidth"
|
|
Class="@Classname"
|
|
Error="@HasErrors"
|
|
ErrorText="@GetErrorText()"
|
|
Disabled="@Disabled"
|
|
Margin="@Margin"
|
|
Required="@Required"
|
|
CounterText="@GetCounterText()"
|
|
ForId="@FieldId">
|
|
<InputContent>
|
|
<CascadingValue Name="SubscribeToParentForm" Value="false" IsFixed="true">
|
|
<Input T="string"
|
|
@ref="@_elementReference"
|
|
@attributes="@UserAttributes"
|
|
InputType="@InputType.Text"
|
|
Style="@Style"
|
|
Variant="@Variant"
|
|
TextUpdateSuppression="@TextUpdateSuppression"
|
|
Value="@Text"
|
|
ValueChanged="@OnInputValueChanged"
|
|
Placeholder="@Placeholder"
|
|
Disabled="@Disabled"
|
|
DisableUnderLine="@DisableUnderLine"
|
|
ReadOnly="@ReadOnly"
|
|
Adornment="@Adornment"
|
|
AdornmentText="@AdornmentText"
|
|
AdornmentIcon="@AdornmentIcon"
|
|
AdornmentColor="@AdornmentColor"
|
|
IconSize="@IconSize"
|
|
Error="@Error"
|
|
Immediate="@(Immediate)"
|
|
Margin="@Margin"
|
|
MaxLength="@MaxLength"
|
|
HideSpinButtons="@HideSpinButtons"
|
|
min="@(_minHasValue ? FormatParam(_min) : null)"
|
|
max="@(_maxHasValue ? FormatParam(_max) : null)"
|
|
step="@(_stepHasValue ? FormatParam(_step) : null)"
|
|
InputMode="@InputMode"
|
|
Pattern="@((Pattern ?? "[0-9]").TrimEnd('*')+"*")"
|
|
OnAdornmentClick="@OnAdornmentClick"
|
|
OnBlur="@OnBlurred"
|
|
OnKeyDown="@HandleKeydown"
|
|
OnKeyUp="@HandleKeyUp"
|
|
OnIncrement="@Increment"
|
|
OnDecrement="@Decrement"
|
|
OnMouseWheel="@OnMouseWheel"
|
|
Clearable="@Clearable" />
|
|
</CascadingValue>
|
|
</InputContent>
|
|
</InputControl>
|
|
</CascadingValue>
|