From cafeb4884ad1331907b0815e7f533b946ff0cb1b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 1 May 2024 08:52:55 +0200 Subject: [PATCH] chore: keep list sorted --- src/core/resolvers/bootstrap-vue.ts | 7 ++++--- src/core/resolvers/headless-ui.ts | 11 ++++++----- src/core/resolvers/idux.ts | 13 +++++++------ src/core/resolvers/ionic.ts | 1 + src/core/resolvers/prime-vue.ts | 3 ++- 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/core/resolvers/bootstrap-vue.ts b/src/core/resolvers/bootstrap-vue.ts index f4bb7564..240e1ea1 100644 --- a/src/core/resolvers/bootstrap-vue.ts +++ b/src/core/resolvers/bootstrap-vue.ts @@ -9,28 +9,29 @@ export interface BootstrapVueResolverOptions { directives?: boolean } +// @keep-sorted const COMPONENT_ALIASES: Record = { BBtn: 'BButton', BBtnClose: 'BButtonClose', BBtnGroup: 'BButtonGroup', BBtnToolbar: 'BButtonToolbar', BCheck: 'BFormCheckbox', + BCheckGroup: 'BFormCheckboxGroup', BCheckbox: 'BFormCheckbox', BCheckboxGroup: 'BFormCheckboxGroup', - BCheckGroup: 'BFormCheckboxGroup', BDatalist: 'BFormDatalist', + BDatepicker: 'BFormDatepicker', BDd: 'BDropdown', BDdDivider: 'BDropdownDivider', BDdForm: 'BDropdownForm', BDdGroup: 'BDropdownGroup', BDdHeader: 'BDropdownHeader', BDdItem: 'BDropdownItem', - BDdItemButton: 'BDropdownItemButton', BDdItemBtn: 'BDropdownItemButton', + BDdItemButton: 'BDropdownItemButton', BDdText: 'BDropdownText', BDropdownItemBtn: 'BDropdownItemButton', BFile: 'BFormFile', - BDatepicker: 'BFormDatepicker', BInput: 'BFormInput', BNavDd: 'BNavItemDropdown', BNavDropdown: 'BNavItemDropdown', diff --git a/src/core/resolvers/headless-ui.ts b/src/core/resolvers/headless-ui.ts index cf3b137f..334b705c 100644 --- a/src/core/resolvers/headless-ui.ts +++ b/src/core/resolvers/headless-ui.ts @@ -1,5 +1,6 @@ import type { ComponentResolver } from '../../types' +// @keep-sorted const components = [ 'Combobox', 'ComboboxButton', @@ -10,8 +11,8 @@ const components = [ 'Dialog', 'DialogDescription', 'DialogOverlay', - 'DialogTitle', 'DialogPanel', + 'DialogTitle', 'Disclosure', 'DisclosureButton', 'DisclosurePanel', @@ -40,13 +41,13 @@ const components = [ 'SwitchDescription', 'SwitchGroup', 'SwitchLabel', - 'TransitionChild', - 'TransitionRoot', + 'Tab', 'TabGroup', 'TabList', - 'Tab', - 'TabPanels', 'TabPanel', + 'TabPanels', + 'TransitionChild', + 'TransitionRoot', ] export interface HeadlessUiResolverOptions { diff --git a/src/core/resolvers/idux.ts b/src/core/resolvers/idux.ts index db0398eb..fd004392 100644 --- a/src/core/resolvers/idux.ts +++ b/src/core/resolvers/idux.ts @@ -3,26 +3,27 @@ import { compare } from 'compare-versions' import type { ComponentResolver } from '../../types' import { getPkgVersion, kebabCase } from '../utils' +// @keep-sorted const specialComponents: Record = { - CdkVirtualScroll: 'scroll', CdkClickOutside: 'click-outside', CdkDraggable: 'drag-drop', CdkResizable: 'resize', CdkResizableHandle: 'resize', CdkResizeObserver: 'resize', + CdkVirtualScroll: 'scroll', IxAutoComplete: 'auto-complete', IxBackTop: 'back-top', + IxCol: 'grid', IxDatePicker: 'date-picker', IxDateRangePicker: 'date-picker', - IxCol: 'grid', - IxRow: 'grid', IxInputNumber: 'input-number', + IxLoadingBar: 'loading-bar', + IxLoadingBarProvider: 'loading-bar', + IxRow: 'grid', IxTab: 'tabs', - IxTreeSelect: 'tree-select', IxTimePicker: 'time-picker', IxTimeRangePicker: 'time-picker', - IxLoadingBar: 'loading-bar', - IxLoadingBarProvider: 'loading-bar', + IxTreeSelect: 'tree-select', } export interface IduxResolverOptions { diff --git a/src/core/resolvers/ionic.ts b/src/core/resolvers/ionic.ts index 48d4bc93..d1719e9f 100644 --- a/src/core/resolvers/ionic.ts +++ b/src/core/resolvers/ionic.ts @@ -4,6 +4,7 @@ import type { ComponentResolver } from '../../types' * source: https://github.com/nuxt-modules/ionic/blob/main/src/imports.ts * @author @danielroe */ +// @keep-sorted export const IonicBuiltInComponents = [ 'IonAccordion', 'IonAccordionGroup', diff --git a/src/core/resolvers/prime-vue.ts b/src/core/resolvers/prime-vue.ts index 6d53aaba..c216e2e0 100644 --- a/src/core/resolvers/prime-vue.ts +++ b/src/core/resolvers/prime-vue.ts @@ -1,5 +1,6 @@ import type { ComponentResolver, SideEffectsInfo } from '../../types' +// @keep-sorted const components = [ 'Accordion', 'AccordionTab', @@ -40,8 +41,8 @@ const components = [ 'FullCalendar', 'Galleria', 'IconField', - 'Image', 'IconField', + 'Image', 'InlineMessage', 'Inplace', 'InputGroup',