Skip to content

Migration guide Acronis UI-kit to Acronis UI component library v1

This guide is intended to help you migrate from one version of the package to another. It will provide you with a list of changes that you need to make in order to update your codebase. Components were refactored and api revised, but in order to make migration process easier we tried to keep all existing API, as well as same prop names, emitted events, slots and hierarchical structure. All changes are listed by package and component, widget, directive or composable.

Components

Name AReplacement
Alert / Message
Aside
Autocomplete
Breadcrumb
BreadcrumbItem
ButtonAcvButton
ButtonGroupAcvButtonGroup
Captcha
CardAcvCard, AcvLayer
Carousel
CarouselItem
Cascader
Checkbox
CheckboxButton
CheckboxGroupAcvButtonGroup
Chip
CloseButtonAcvColumn
Code / ScriptEditor
ColAcvColumn
CollapseAccordion
CollapseItem / AccordionPanelAccordionPanel
Combobox
ConfigProvider
ConfirmDialog
ContainerGrid
ContextMenuGrid
DataTable
DatePicker
Dialog
DisclosureAcvColumn
Divider
DragAndDrop
Dropdown
DropdownItem
DropdownMenu
Dropzone
ExpandedIcon
FileBrowser
FilePicker
FileUploader
Filter
Footer
Form
FormatDate
FormError
FormFields
FormItem / FormControl
Highlight
Icon
IconSprite
ImageUploader
Input
InputNumber
KeepAliveSwitch
Link
List
Loading / Loader / Spinner
LocaleProvider
Main
Map
MarkupTable
Menu
MenuGroup
MenuItem
Notification
NotificationComponent
NumPicker / InputNumber
Option
OptionGroup
Pagination
Password
Placeholder
Popover
Popper
ProgressBar
Radio
RadioButton
RadioGroup / SegmentGroup
Range
Ribbon
Row
Scrollbar
Search
Select
Skeleton
Slider
Spinner
SplitButton
Status
Step
Stepper
StepperItem
Steps
Submenu
Switch / Toggle
Table
TableActions
TableActionsColumn
TableColumn
TableColumnsVisibility
TableDataCell
TableRowsGroup
TabNav
TabPane
Tabs
Tag
Textarea
TextMiddleEllipsis
ThemeProvider
Tiles
TimePicker
Tooltip
Tree
Upload
VirtualScroll

Widgets

Name ANew implementation
AboutWindowDemo in dialog
Details
DetailsTable
DetailsView
Empty
FittedActions
Header
HeaderMenu
HeaderSearch
LiveTracker
LoadError
LoadingComplex
MultiSearch
PopoverWidget
ProgressRadial
SidebarAction
SidebarLayout
SidebarPanel
SidebarTitle
TableWidget
Toolbar
ToolbarContainer
ToolbarSearch
WhatIsNew
WidgetWrapper

Charts

Name ANew name
LineChart
PieChart
StackedAreaChart

Directives

Old nameNew name
Highlight
Loading
TextMiddleEllipsis
Autofocus
Intersection
Resize

Mixins and composables

Old nameNew name
useBrandColor
useColor
useContent
useEventListener
useFocus
useFocusableTab
useLocale
useNodeText
usePopper
useResizeObserver
useSize
useWidgetChart
useWidgetChartMulti

Migration steps

Before migrating to a new version of the package, you need to check the release notes and changelog to see what has changed.

During the migration process, you need to follow these steps:

  • Find the component, widget, directive or composable that you are using in the list above.
  • Replace the old name with the new name.
  • Make sure that the new component, widget, directive or composable has the same API as the old one.
  • If the new component, widget, directive or composable has a different API, update your code accordingly.
  • If the new component, widget, directive or composable does not exist, you need to find an alternative solution.
  • If you cannot find an alternative solution, you need to create a custom component, widget, directive or composable.
  • If you create a custom component, widget, directive or composable, make sure to follow the best practices and guidelines provided by the package.
  • Test your code thoroughly to make sure that everything works as expected.
  • If you encounter any issues during the migration process, please refer to the package documentation or ask for help in the community forum.
  • Once you have completed the migration process, you can continue using the package with the new version.
  • If you encounter any issues with the new version, please report them to the package maintainers so that they can be fixed in future releases.
  • If you have any feedback or suggestions for the package maintainers, please share them in the community forum or create a pull request with your changes.
  • Thank you for using the package and for helping to improve it with your feedback and contributions.

Components

ElAlert

  • Title Breaking prop was removed. Use variant instead.

ElButton

  • Deprecated textColor values: muted, high-emphasis, medium-emphasis, disabled, high-emphasis-inverse, medium-emphasis-inverse, disabled-inverse.
  • Deprecated type prop renamed to variant.
  • Deprecated type="ghost" renamed to variant="tertiary".
  • Deprecated type values: success, ghost, inverted.

ElCard

ElDropdown

ElSpinners

ElTooltip

  • Deprecated type placement renamed to position.

MIT Licensed