-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add
.js
extension to all imports and enable Biome rule (#306)
* chore: add `.js` extension to all imports and enable Biome rule
- Loading branch information
1 parent
f308f73
commit f7e601a
Showing
25 changed files
with
149 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/** | ||
* @author zhixin wen <[email protected]> | ||
*/ | ||
import Constants from './constants'; | ||
import type { HtmlStruct, OptGroupRowData, OptionDataObject, OptionRowData } from './models/interfaces'; | ||
import type { MultipleSelectLocales } from './models/locale.interface'; | ||
import type { CloseReason, MultipleSelectOption } from './models/multipleSelectOption.interface'; | ||
import { BindingEventService } from './services/binding-event.service'; | ||
import { VirtualScroll } from './services/virtual-scroll'; | ||
import { compareObjects, deepCopy, findByParam, removeDiacritics, removeUndefined, setDataKeys, stripScripts } from './utils/utils'; | ||
import Constants from './constants.js'; | ||
import type { HtmlStruct, OptGroupRowData, OptionDataObject, OptionRowData } from './models/interfaces.js'; | ||
import type { MultipleSelectLocales } from './models/locale.interface.js'; | ||
import type { CloseReason, MultipleSelectOption } from './models/multipleSelectOption.interface.js'; | ||
import { BindingEventService } from './services/binding-event.service.js'; | ||
import { VirtualScroll } from './services/virtual-scroll.js'; | ||
import { compareObjects, deepCopy, findByParam, removeDiacritics, removeUndefined, setDataKeys, stripScripts } from './utils/utils.js'; | ||
import { | ||
calculateAvailableSpace, | ||
classNameToList, | ||
|
@@ -19,8 +19,8 @@ import { | |
getElementSize, | ||
insertAfter, | ||
toggleElement, | ||
} from './utils/domUtils'; | ||
import type { HtmlElementPosition } from './utils/domUtils'; | ||
} from './utils/domUtils.js'; | ||
import type { HtmlElementPosition } from './utils/domUtils.js'; | ||
|
||
const OPTIONS_LIST_SELECTOR = '.ms-select-all, ul li[data-key]'; | ||
const OPTIONS_HIGHLIGHT_LIST_SELECTOR = '.ms-select-all.highlighted, ul li[data-key].highlighted'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
packages/multiple-select-vanilla/src/locales/all-locales-index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
export * from './multiple-select-cz-CS'; | ||
export * from './multiple-select-da-DK'; | ||
export * from './multiple-select-de-DE'; | ||
export * from './multiple-select-en-US'; | ||
export * from './multiple-select-es-ES'; | ||
export * from './multiple-select-fr-FR'; | ||
export * from './multiple-select-hu-HU'; | ||
export * from './multiple-select-it-IT'; | ||
export * from './multiple-select-ja-JP'; | ||
export * from './multiple-select-pt-BR'; | ||
export * from './multiple-select-ru-RU'; | ||
export * from './multiple-select-vi-VN'; | ||
export * from './multiple-select-zh-CN'; | ||
export * from './multiple-select-zh-TW'; | ||
export * from './multiple-select-cz-CS.js'; | ||
export * from './multiple-select-da-DK.js'; | ||
export * from './multiple-select-de-DE.js'; | ||
export * from './multiple-select-en-US.js'; | ||
export * from './multiple-select-es-ES.js'; | ||
export * from './multiple-select-fr-FR.js'; | ||
export * from './multiple-select-hu-HU.js'; | ||
export * from './multiple-select-it-IT.js'; | ||
export * from './multiple-select-ja-JP.js'; | ||
export * from './multiple-select-pt-BR.js'; | ||
export * from './multiple-select-ru-RU.js'; | ||
export * from './multiple-select-vi-VN.js'; | ||
export * from './multiple-select-zh-CN.js'; | ||
export * from './multiple-select-zh-TW.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Matej Puhony<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: HThuren<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Zhixin Wen<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Zhixin Wen<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Francis Perron <[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Péter Báthory<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Nozomi Anzai<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Lucas Aguiar<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Author: Zhixin Wen<[email protected]> | ||
*/ | ||
|
||
import type { MultipleSelectInstance } from '../MultipleSelectInstance'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface'; | ||
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js'; | ||
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js'; | ||
|
||
const ms = | ||
typeof window !== 'undefined' && window.multipleSelect !== undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.