Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

[2.0] APIs refactor, removal and changelog

Open stsrki opened this issue 1 year ago • 0 comments

In this ticket, we define all of the APIs that are marked as obsolete and that will eventually be removed in 2.0.

Frameworks

  • Removed .NET6
  • Removed .NET7

Components

Link

  • [x] #5882

Inputs

Input Component Renaming ✍️

To better reflect their purpose and align with modern Blazor conventions, most input components have been renamed:

Old Name New Name
ColorEdit ColorInput
DateEdit DateInput
FileEdit FileInput
MemoEdit MemoInput
NumericEdit NumericInput
TextEdit TextInput
TimeEdit TimeInput

Check

  • [x] Replaced Checked with the Value parameter
  • [x] Replaced CheckedChanged with the ValueChanged parameter
  • [x] Replaced CheckedExpression with the ValueExpression parameter

Switch

  • [x] Replaced Checked with the Value parameter
  • [x] Replaced CheckedChanged with the ValueChanged parameter
  • [x] Replaced CheckedExpression with the ValueExpression parameter

ColorEdit

  • [x] Replaced Color with the Value parameter
  • [x] Replaced ColorChanged with the ValueChanged parameter
  • [x] Replaced ColorExpression with the ValueExpression parameter

ColorPicker

  • [x] Replaced Color with the Value parameter
  • [x] Replaced ColorChanged with the ValueChanged parameter
  • [x] Replaced ColorExpression with the ValueExpression parameter

DateEdit

  • [x] Replaced Date with the Value parameter
  • [x] Replaced DateChanged with the ValueChanged parameter
  • [x] Replaced DateExpression with the ValueExpression parameter

DatePicker

  • [x] Replaced Date, and Dates with the Value parameter
  • [x] Replaced DateChanged, and DatesChanged with the ValueChanged parameter
  • [x] Replaced DateExpression, and DatesExpression with the ValueExpression parameter
  • [x] Value now accepts single value or array types. Depending on the SelectionMode parameter.
  • [x] When in Multiple dates mode, TValue must be defined as TValue="<IReadOnlyList<DateTime>", or TValue="DateTime[]"

TextEdit

  • [x] Replaced Text with the Value parameter
  • [x] Replaced TextChanged with the ValueChanged parameter
  • [x] Replaced TextExpression with the ValueExpression parameter

MemoEdit

  • [x] Replaced Text with the Value parameter
  • [x] Replaced TextChanged with the ValueChanged parameter
  • [x] Replaced TextExpression with the ValueExpression parameter

TimeEdit

  • [x] Replaced Time with the Value parameter
  • [x] Replaced TimeChanged with the ValueChanged parameter
  • [x] Replaced TimeExpression with the ValueExpression parameter

TimePicker

  • [x] Replaced Time with the Value parameter
  • [x] Replaced TimeChanged with the ValueChanged parameter
  • [x] Replaced TimeExpression with the ValueExpression parameter

Select

  • [x] Replaced SelectedValue, and SelectedValues with the Value parameter
  • [x] Replaced SelectedValueChanged, and SelectedValuesChanged with the ValueChanged parameter
  • [x] Replaced SelectedValueExpression, and SelectedValuesExpression with the ValueExpression parameter
  • [x] Value now accepts single value or array types. Depending on the Multiple parameter.
  • [x] When in Multiple mode, TValue must be defined as TValue="<IReadOnlyList<string>", or TValue="string[]"

Radio

  • [x] Removed Checked parameter
  • [x] Removed CheckedChanged parameter
  • [x] Removed CheckedExpression parameter

RadioGroup

  • [x] Replaced CheckedValue with the Value parameter
  • [x] Replaced CheckedValueChanged with the ValueChanged parameter
  • [x] Replaced CheckedValueExpression with the ValueExpression parameter

Dropdown

  • [x] Renamed RightAligned to EndAligned

DropdownList

  • [x] Renamed RightAligned to EndAligned
  • [x] Replaced SelectedValue, and SelectedValues with the Value parameter
  • [x] Replaced SelectedValueChanged, and SelectedValuesChanged with the ValueChanged parameter
  • [x] Replaced SelectedValueExpression, and SelectedValuesExpression with the ValueExpression parameter
  • [x] Value now accepts single value or array types. Depending on the SelectionMode parameter set to Checkbox.
  • [x] When in Multiple mode, TValue must be defined as TValue="<IReadOnlyList<string>", or TValue="string[]"

SelectList

  • [x] Replaced SelectedValue, and SelectedValues with the Value parameter
  • [x] Replaced SelectedValueChanged, and SelectedValuesChanged with the ValueChanged parameter
  • [x] Replaced SelectedValueExpression, and SelectedValuesExpression with the ValueExpression parameter
  • [x] Value now accepts single value or array types. Depending on the Multiple parameter.
  • [x] When in Multiple mode, TValue must be defined as TValue="<IReadOnlyList<string>", or TValue="string[]"

DataGrid

  • [x] Renamed CurrentPage to Page
  • [x] Removed DataGridPageChangedEventArgs

Alert

  • [x] Removed MessageAlert in favor of MessageProvider
  • [x] Removed NotificationAlert in favor of NotificationProvider
  • [x] Removed PageProgressAlert in favor of PageProgressProvider

stsrki avatar Jul 30 '24 08:07 stsrki