@@ -92,22 +92,22 @@ public override async Task SetParametersAsync( ParameterView parameters )
92
92
{
93
93
ExecuteAfterRender ( async ( ) => await JSModule . UpdateOptions ( ElementRef , ElementId , new DatePickerUpdateJSOptions ( )
94
94
{
95
- FirstDayOfWeek = new JSOptionChange < int > ( firstDayOfWeekChanged , ( int ) paramFirstDayOfWeek ) ,
96
- DisplayFormat = new JSOptionChange < string > ( displayFormatChanged , DisplayFormatConverter . Convert ( paramDisplayFormat ) ) ,
97
- InputFormat = new JSOptionChange < string > ( inputFormatChanged , InputFormatConverter . Convert ( paramInputFormat ) ) ,
98
- TimeAs24hr = new JSOptionChange < bool > ( timeAs24hrChanged , paramTimeAs24hr ) ,
99
- Min = new JSOptionChange < string > ( minChanged , paramMin ? . ToString ( DateFormat ) ) ,
100
- Max = new JSOptionChange < string > ( maxChanged , paramMax ? . ToString ( DateFormat ) ) ,
101
- Disabled = new JSOptionChange < bool > ( disabledChanged , paramDisabled ) ,
102
- ReadOnly = new JSOptionChange < bool > ( readOnlyChanged , paramReadOnly ) ,
103
- DisabledDates = new JSOptionChange < IEnumerable < string > > ( disabledDatesChanged , paramDisabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ) ,
104
- EnabledDates = new JSOptionChange < IEnumerable < string > > ( enabledDatesChanged , paramEnabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ) ,
105
- DisabledDays = new JSOptionChange < IEnumerable < int > > ( disabledDaysChanged , paramDisabledDays ? . Select ( x => ( int ) x ) ) ,
106
- SelectionMode = new JSOptionChange < DateInputSelectionMode > ( selectionModeChanged , paramSelectionMode ) ,
107
- Inline = new JSOptionChange < bool > ( inlineChanged , paramInline ) ,
108
- DisableMobile = new JSOptionChange < bool > ( disableMobileChanged , paramDisableMobile ) ,
109
- Placeholder = new JSOptionChange < string > ( placeholderChanged , paramPlaceholder ) ,
110
- StaticPicker = new JSOptionChange < bool > ( staticPickerChanged , paramSaticPicker ) ,
95
+ FirstDayOfWeek = new JSOptionChange < int > ( firstDayOfWeekChanged , ( int ) paramFirstDayOfWeek ) ,
96
+ DisplayFormat = new JSOptionChange < string > ( displayFormatChanged , DisplayFormatConverter . Convert ( paramDisplayFormat ) ) ,
97
+ InputFormat = new JSOptionChange < string > ( inputFormatChanged , InputFormatConverter . Convert ( paramInputFormat ) ) ,
98
+ TimeAs24hr = new JSOptionChange < bool > ( timeAs24hrChanged , paramTimeAs24hr ) ,
99
+ Min = new JSOptionChange < string > ( minChanged , paramMin ? . ToString ( DateFormat ) ) ,
100
+ Max = new JSOptionChange < string > ( maxChanged , paramMax ? . ToString ( DateFormat ) ) ,
101
+ Disabled = new JSOptionChange < bool > ( disabledChanged , paramDisabled ) ,
102
+ ReadOnly = new JSOptionChange < bool > ( readOnlyChanged , paramReadOnly ) ,
103
+ DisabledDates = new JSOptionChange < IEnumerable < string > > ( disabledDatesChanged , paramDisabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ) ,
104
+ EnabledDates = new JSOptionChange < IEnumerable < string > > ( enabledDatesChanged , paramEnabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ) ,
105
+ DisabledDays = new JSOptionChange < IEnumerable < int > > ( disabledDaysChanged , paramDisabledDays ? . Select ( x => ( int ) x ) ) ,
106
+ SelectionMode = new JSOptionChange < DateInputSelectionMode > ( selectionModeChanged , paramSelectionMode ) ,
107
+ Inline = new JSOptionChange < bool > ( inlineChanged , paramInline ) ,
108
+ DisableMobile = new JSOptionChange < bool > ( disableMobileChanged , paramDisableMobile ) ,
109
+ Placeholder = new JSOptionChange < string > ( placeholderChanged , paramPlaceholder ) ,
110
+ StaticPicker = new JSOptionChange < bool > ( staticPickerChanged , paramSaticPicker ) ,
111
111
} ) ) ;
112
112
}
113
113
}
@@ -166,33 +166,33 @@ protected override async Task OnFirstAfterRenderAsync()
166
166
else
167
167
defaultDate = FormatValueAsString ( new TValue [ ] { Date } ) ;
168
168
169
- await JSModule . Initialize ( dotNetObjectRef , ElementRef , ElementId , new DatePickerInitializeJSOptions
169
+ await JSModule . Initialize ( dotNetObjectRef , ElementRef , ElementId , new DatePickerInitializeJSOptions
170
170
{
171
171
InputMode = InputMode ,
172
172
SelectionMode = SelectionMode . ToDateInputSelectionMode ( ) ,
173
173
FirstDayOfWeek = ( int ) FirstDayOfWeek ,
174
- DisplayFormat = DisplayFormatConverter . Convert ( DisplayFormat ) ,
175
- InputFormat = InputFormatConverter . Convert ( InputFormat ) ,
174
+ DisplayFormat = DisplayFormatConverter . Convert ( DisplayFormat ) ,
175
+ InputFormat = InputFormatConverter . Convert ( InputFormat ) ,
176
176
TimeAs24hr = TimeAs24hr ,
177
177
DefaultDate = defaultDate ,
178
- Min = Min ? . ToString ( DateFormat ) ,
179
- Max = Max ? . ToString ( DateFormat ) ,
178
+ Min = Min ? . ToString ( DateFormat ) ,
179
+ Max = Max ? . ToString ( DateFormat ) ,
180
180
Disabled = Disabled ,
181
181
ReadOnly = ReadOnly ,
182
- DisabledDates = DisabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ,
183
- EnabledDates = EnabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ,
184
- DisabledDays = DisabledDays ? . Select ( x => ( int ) x ) ,
182
+ DisabledDates = DisabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ,
183
+ EnabledDates = EnabledDates ? . Select ( x => FormatValueAsString ( new TValue [ ] { x } ) ) ,
184
+ DisabledDays = DisabledDays ? . Select ( x => ( int ) x ) ,
185
185
Localization = GetLocalizationObject ( ) ,
186
186
Inline = Inline ,
187
187
DisableMobile = DisableMobile ,
188
188
Placeholder = Placeholder ,
189
189
StaticPicker = StaticPicker ,
190
190
ValidationStatus = new
191
191
{
192
- SuccessClass = ClassProvider . DatePickerValidation ( ValidationStatus . Success ) ,
193
- ErrorClass = ClassProvider . DatePickerValidation ( ValidationStatus . Error ) ,
192
+ SuccessClass = ClassProvider . DatePickerValidation ( ValidationStatus . Success ) ,
193
+ ErrorClass = ClassProvider . DatePickerValidation ( ValidationStatus . Error ) ,
194
194
}
195
- } ) ;
195
+ } ) ;
196
196
197
197
198
198
await base . OnFirstAfterRenderAsync ( ) ;
0 commit comments