-
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.
fix: avoid barrel files, keep only 1 entry file (#304)
- Loading branch information
1 parent
2c10ebd
commit 64e895b
Showing
28 changed files
with
80 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,12 @@ | |
* @author zhixin wen <[email protected]> | ||
*/ | ||
import Constants from './constants'; | ||
import type { HtmlStruct, MultipleSelectLocales, OptGroupRowData, OptionDataObject, OptionRowData } from './interfaces'; | ||
import type { CloseReason, MultipleSelectOption } from './interfaces/multipleSelectOption.interface'; | ||
import { BindingEventService, VirtualScroll } from './services'; | ||
import { compareObjects, deepCopy, findByParam, removeDiacritics, removeUndefined, setDataKeys, stripScripts } from './utils'; | ||
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 { | ||
calculateAvailableSpace, | ||
classNameToList, | ||
|
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,6 +1,36 @@ | ||
export * from './services'; | ||
export * from './constants'; | ||
export * from './interfaces'; | ||
export * from './utils'; | ||
export * from './multiple-select'; | ||
export * from './MultipleSelectInstance'; | ||
export type * from './models/interfaces'; | ||
export type * from './models/locale.interface'; | ||
export type * from './models/multipleSelectOption.interface'; | ||
export { BindingEventService, type ElementEventListener } from './services/binding-event.service'; | ||
export { VirtualScroll } from './services/virtual-scroll'; | ||
export { | ||
type HtmlElementPosition, | ||
calculateAvailableSpace, | ||
classNameToList, | ||
convertItemRowToHtml, | ||
createDomElement, | ||
createDomStructure, | ||
emptyElement, | ||
findParent, | ||
getElementOffset, | ||
getElementSize, | ||
insertAfter, | ||
omitProp, | ||
toggleElement, | ||
toggleElementClass, | ||
windowScrollPosition, | ||
} from './utils/domUtils'; | ||
export { | ||
compareObjects, | ||
deepCopy, | ||
findByParam, | ||
isDefined, | ||
objectRemoveEmptyProps, | ||
removeDiacritics, | ||
removeUndefined, | ||
setDataKeys, | ||
stripScripts, | ||
toCamelCase, | ||
} from './utils/utils'; | ||
export { multipleSelect } from './multiple-select'; | ||
export { MultipleSelectInstance } from './MultipleSelectInstance'; |
This file was deleted.
Oops, something went wrong.
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
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/multiple-select-vanilla/src/services/virtual-scroll.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
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 was deleted.
Oops, something went wrong.
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