diff --git a/.changeset/beige-bananas-grin-233.md b/.changeset/beige-bananas-grin-233.md new file mode 100644 index 000000000..f6c092127 --- /dev/null +++ b/.changeset/beige-bananas-grin-233.md @@ -0,0 +1,5 @@ +--- +'@alauda/ui': minor +--- + +- [BREAKING CHANGE] refactor: remove unnecessary exports diff --git a/src/anchor/anchor.component.ts b/src/anchor/anchor.component.ts index 06f2a4167..550a14ff9 100644 --- a/src/anchor/anchor.component.ts +++ b/src/anchor/anchor.component.ts @@ -23,7 +23,7 @@ import { tap, } from 'rxjs'; -import { buildBem, isTemplateRef, last } from '../utils'; +import { buildBem, isTemplateRef, last } from '../internal/utils'; import { AnchorDirectiveChild } from './anchor.directive'; import { AnchorItem, AnchorTreeItem } from './types'; diff --git a/src/anchor/anchor.directive.ts b/src/anchor/anchor.directive.ts index c0f5757a9..24c8ad8c3 100644 --- a/src/anchor/anchor.directive.ts +++ b/src/anchor/anchor.directive.ts @@ -21,7 +21,7 @@ import { } from '@angular/core'; import { Subject, fromEvent, merge, startWith, takeUntil } from 'rxjs'; -import { observeResizeOn } from '../utils'; +import { observeResizeOn } from '../internal/utils'; import { AnchorComponent } from './anchor.component'; diff --git a/src/anchor/utils.ts b/src/anchor/utils.ts index d5cb983ca..5ed230bfd 100644 --- a/src/anchor/utils.ts +++ b/src/anchor/utils.ts @@ -1,4 +1,4 @@ -import { last } from '../utils'; +import { last } from '../internal/utils'; import { AnchorItem, AnchorTreeItem } from './types'; diff --git a/src/autocomplete/autocomplete.component.ts b/src/autocomplete/autocomplete.component.ts index cdc33348f..8ea4af1fa 100644 --- a/src/autocomplete/autocomplete.component.ts +++ b/src/autocomplete/autocomplete.component.ts @@ -25,7 +25,7 @@ import { withLatestFrom, } from 'rxjs'; -import { publishRef } from '../utils'; +import { publishRef } from '../internal/utils'; import { AutocompletePlaceholderComponent } from './autocomplete-placeholder.component'; import { AutoCompleteDirective } from './autocomplete.directive'; diff --git a/src/autocomplete/autocomplete.directive.ts b/src/autocomplete/autocomplete.directive.ts index 9a901772b..4cca9062a 100644 --- a/src/autocomplete/autocomplete.directive.ts +++ b/src/autocomplete/autocomplete.directive.ts @@ -28,9 +28,9 @@ import { distinctUntilChanged, } from 'rxjs'; +import { scrollIntoView } from '../internal/utils'; import { BaseTooltip, TooltipTrigger, TooltipType } from '../tooltip'; import { AnimationType } from '../tooltip/animations'; -import { scrollIntoView } from '../utils'; import { AutocompleteComponent } from './autocomplete.component'; import { AutoCompleteContext, SuggestionFilterFn } from './autocomplete.types'; diff --git a/src/autocomplete/suggestion-group/suggestion-group.component.ts b/src/autocomplete/suggestion-group/suggestion-group.component.ts index 2a84f4439..e3d1ee5a3 100644 --- a/src/autocomplete/suggestion-group/suggestion-group.component.ts +++ b/src/autocomplete/suggestion-group/suggestion-group.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import { Observable, combineLatest, of, map, startWith, switchMap } from 'rxjs'; -import { publishRef } from '../../utils'; +import { publishRef } from '../../internal/utils'; import { SuggestionComponent } from '../suggestion/suggestion.component'; @Component({ diff --git a/src/autocomplete/suggestion/suggestion.component.ts b/src/autocomplete/suggestion/suggestion.component.ts index 50c26b76a..88e3ea08a 100644 --- a/src/autocomplete/suggestion/suggestion.component.ts +++ b/src/autocomplete/suggestion/suggestion.component.ts @@ -20,7 +20,12 @@ import { tap, } from 'rxjs'; -import { Bem, buildBem, coerceAttrBoolean, publishRef } from '../../utils'; +import { + Bem, + buildBem, + coerceAttrBoolean, + publishRef, +} from '../../internal/utils'; import { AutocompleteComponent } from '../autocomplete.component'; @Component({ diff --git a/src/button/button.component.spec.ts b/src/button/button.component.spec.ts index 205408c9c..9f20b3064 100644 --- a/src/button/button.component.spec.ts +++ b/src/button/button.component.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { ComponentSize } from '../types'; +import { ComponentSize } from '../internal/types'; import { ButtonComponent } from './button.component'; import { ButtonType } from './button.types'; diff --git a/src/button/button.component.ts b/src/button/button.component.ts index f2aafe96a..93b06c647 100644 --- a/src/button/button.component.ts +++ b/src/button/button.component.ts @@ -11,7 +11,7 @@ import { } from '@angular/core'; import { IconComponent } from '../icon/icon.component'; -import { ComponentSize } from '../types'; +import { ComponentSize } from '../internal/types'; import { ButtonType } from './button.types'; diff --git a/src/button/button.types.ts b/src/button/button.types.ts index 909e85d08..e0ce25be2 100644 --- a/src/button/button.types.ts +++ b/src/button/button.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const ButtonType = { Default: 'default', diff --git a/src/date-picker/calendar/header/component.ts b/src/date-picker/calendar/header/component.ts index 08fe7da21..821d469ae 100644 --- a/src/date-picker/calendar/header/component.ts +++ b/src/date-picker/calendar/header/component.ts @@ -12,7 +12,7 @@ import dayjs, { ConfigType, Dayjs } from 'dayjs'; import { ButtonComponent } from '../../../button/button.component'; import { I18nPipe } from '../../../i18n/i18n.pipe'; import { IconComponent } from '../../../icon/icon.component'; -import { buildBem } from '../../../utils'; +import { buildBem } from '../../../internal/utils'; import { CalendarHeaderRange, DateNavRange, diff --git a/src/date-picker/calendar/panel/picker-panel.ts b/src/date-picker/calendar/panel/picker-panel.ts index 630d000dc..afb834cf3 100644 --- a/src/date-picker/calendar/panel/picker-panel.ts +++ b/src/date-picker/calendar/panel/picker-panel.ts @@ -14,7 +14,7 @@ import isBetween from 'dayjs/plugin/isBetween'; import { ButtonComponent } from '../../../button/button.component'; import { I18nPipe } from '../../../i18n/i18n.pipe'; -import { buildBem } from '../../../utils'; +import { buildBem } from '../../../internal/utils'; import { DateNavRange } from '../../date-picker.type'; import { DAY, diff --git a/src/date-picker/calendar/range-picker-panel/component.ts b/src/date-picker/calendar/range-picker-panel/component.ts index 44d8513b1..13f197a06 100644 --- a/src/date-picker/calendar/range-picker-panel/component.ts +++ b/src/date-picker/calendar/range-picker-panel/component.ts @@ -13,9 +13,9 @@ import dayjs, { Dayjs } from 'dayjs'; import { CommonFormControl } from '../../../form/common-form'; import { I18nPipe } from '../../../i18n/i18n.pipe'; +import { buildBem } from '../../../internal/utils'; import { TimePickerComponent } from '../../../time-picker/component'; import { TimePickerModel } from '../../../time-picker/time-picker.type'; -import { buildBem } from '../../../utils'; import { DateNavRange, DisabledTimeFn, Side } from '../../date-picker.type'; import { DatePickerType, MONTH, YEAR } from '../constant'; import { CalendarFooterComponent } from '../footer/component'; diff --git a/src/date-picker/date-picker/date-picker.component.ts b/src/date-picker/date-picker/date-picker.component.ts index ea96ed423..93969b348 100644 --- a/src/date-picker/date-picker/date-picker.component.ts +++ b/src/date-picker/date-picker/date-picker.component.ts @@ -13,8 +13,8 @@ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'; import dayjs, { ConfigType, Dayjs } from 'dayjs'; import { CommonFormControl } from '../../form/common-form'; +import { ComponentSize } from '../../internal/types'; import { TooltipDirective } from '../../tooltip/tooltip.directive'; -import { ComponentSize } from '../../types'; import { DatePickerType } from '../calendar/constant'; import { DatePickerPanelComponent } from '../calendar/date-picker-panel/component'; import { DateNavRange, DisabledTimeFn } from '../date-picker.type'; diff --git a/src/date-picker/range-picker/range-picker.component.ts b/src/date-picker/range-picker/range-picker.component.ts index 0c6cdda0d..734e6c2c9 100644 --- a/src/date-picker/range-picker/range-picker.component.ts +++ b/src/date-picker/range-picker/range-picker.component.ts @@ -11,8 +11,8 @@ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'; import dayjs, { ConfigType, Dayjs } from 'dayjs'; import { CommonFormControl } from '../../form'; +import { ComponentSize } from '../../internal/types'; import { TooltipDirective } from '../../tooltip/tooltip.directive'; -import { ComponentSize } from '../../types'; import { DateRangePickerPanelComponent } from '../calendar/range-picker-panel/component'; import { DisabledDateFn, DisabledTimeFn } from '../date-picker.type'; import { DatePickerTriggerComponent } from '../trigger/trigger.component'; diff --git a/src/date-picker/trigger/trigger.component.ts b/src/date-picker/trigger/trigger.component.ts index 246108a3b..d481ec64d 100644 --- a/src/date-picker/trigger/trigger.component.ts +++ b/src/date-picker/trigger/trigger.component.ts @@ -13,8 +13,8 @@ import { Dayjs } from 'dayjs'; import { I18nPipe } from '../../i18n/i18n.pipe'; import { IconComponent } from '../../icon/icon.component'; import { InputComponent } from '../../input/input.component'; -import { ComponentSize } from '../../types'; -import { buildBem } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { buildBem } from '../../internal/utils'; const bem = buildBem('aui-date-picker-trigger'); diff --git a/src/dialog/confirm-dialog/confirm-dialog.component.ts b/src/dialog/confirm-dialog/confirm-dialog.component.ts index 1120cf4c5..bba77a298 100644 --- a/src/dialog/confirm-dialog/confirm-dialog.component.ts +++ b/src/dialog/confirm-dialog/confirm-dialog.component.ts @@ -14,7 +14,7 @@ import { firstValueFrom, Observable } from 'rxjs'; import { ButtonComponent } from '../../button/button.component'; import { IconComponent } from '../../icon/icon.component'; -import { Bem, buildBem, isString, isTemplateRef } from '../../utils'; +import { Bem, buildBem, isString, isTemplateRef } from '../../internal/utils'; import { DialogRef } from '../dialog-ref'; import { BeforeAction, diff --git a/src/dialog/dialog-animations.ts b/src/dialog/dialog-animations.ts index 5f920479f..4ee5fe3a7 100644 --- a/src/dialog/dialog-animations.ts +++ b/src/dialog/dialog-animations.ts @@ -9,7 +9,7 @@ import { } from '@angular/animations'; import { AnimationDuration } from '../core/animation/animation-consts'; -import { getAnimationQueryMetadatas } from '../utils/animations'; +import { getAnimationQueryMetadatas } from '../internal/utils/animations'; export const ZOOM_CLASS_NAME_MAP = { enter: 'aui-zoom-enter', diff --git a/src/dialog/dialog-content/dialog-content.component.ts b/src/dialog/dialog-content/dialog-content.component.ts index 80609643d..b5b2a348f 100644 --- a/src/dialog/dialog-content/dialog-content.component.ts +++ b/src/dialog/dialog-content/dialog-content.component.ts @@ -8,7 +8,7 @@ import { ViewEncapsulation, } from '@angular/core'; -import { Bem, buildBem } from '../../utils'; +import { Bem, buildBem } from '../../internal/utils'; @Component({ selector: 'aui-dialog-content', diff --git a/src/dialog/dialog-content/dialog-footer.component.ts b/src/dialog/dialog-content/dialog-footer.component.ts index 051e12b29..3297c90b0 100644 --- a/src/dialog/dialog-content/dialog-footer.component.ts +++ b/src/dialog/dialog-content/dialog-footer.component.ts @@ -4,7 +4,7 @@ import { ViewEncapsulation, } from '@angular/core'; -import { Bem, buildBem } from '../../utils'; +import { Bem, buildBem } from '../../internal/utils'; @Component({ selector: 'aui-dialog-footer', diff --git a/src/dialog/dialog-content/dialog-header.component.ts b/src/dialog/dialog-content/dialog-header.component.ts index 7c77feca3..f6843b2b8 100644 --- a/src/dialog/dialog-content/dialog-header.component.ts +++ b/src/dialog/dialog-content/dialog-header.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import { IconComponent } from '../../icon/icon.component'; -import { Bem, buildBem } from '../../utils'; +import { Bem, buildBem } from '../../internal/utils'; import { DialogRef } from '../dialog-ref'; import { DialogService } from '../dialog.service'; import { getClosestDialog } from '../utils'; diff --git a/src/dialog/dialog.component.ts b/src/dialog/dialog.component.ts index cd3f30a1c..0093826aa 100644 --- a/src/dialog/dialog.component.ts +++ b/src/dialog/dialog.component.ts @@ -21,7 +21,7 @@ import { import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { debounceTime, filter, fromEvent } from 'rxjs'; -import { Bem, buildBem, getElementOffset } from '../utils'; +import { Bem, buildBem, getElementOffset } from '../internal/utils'; import { dialogAnimations, diff --git a/src/drawer/component/internal/internal.component.ts b/src/drawer/component/internal/internal.component.ts index 8d3e10735..c382ddd60 100644 --- a/src/drawer/component/internal/internal.component.ts +++ b/src/drawer/component/internal/internal.component.ts @@ -33,7 +33,7 @@ import { BehaviorSubject, Subject } from 'rxjs'; import { TimingFunction } from '../../../core/animation/animation-consts'; import { IconComponent } from '../../../icon/icon.component'; -import { handlePixel, isTemplateRef } from '../../../utils'; +import { handlePixel, isTemplateRef } from '../../../internal/utils'; import { DrawerOptions, DrawerSize } from '../../types'; export const DATA = new InjectionToken('drawer-data'); diff --git a/src/drawer/types.ts b/src/drawer/types.ts index f360e0c54..1f3c1e339 100644 --- a/src/drawer/types.ts +++ b/src/drawer/types.ts @@ -1,7 +1,6 @@ import { ComponentType } from '@angular/cdk/portal'; import { TemplateRef } from '@angular/core'; - -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const DrawerSize = { Small: 'small', diff --git a/src/dropdown/dropdown-button/dropdown-button.component.ts b/src/dropdown/dropdown-button/dropdown-button.component.ts index da6c17c9f..8115afa0d 100644 --- a/src/dropdown/dropdown-button/dropdown-button.component.ts +++ b/src/dropdown/dropdown-button/dropdown-button.component.ts @@ -15,8 +15,8 @@ import { Observable, map, startWith } from 'rxjs'; import { ButtonType } from '../../button'; import { ButtonComponent } from '../../button/button.component'; import { IconComponent } from '../../icon/icon.component'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem, coerceAttrBoolean } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem, coerceAttrBoolean } from '../../internal/utils'; import { DropdownDirective } from '../dropdown.directive'; import { MenuItemComponent } from '../menu-item/menu-item.component'; diff --git a/src/dropdown/dropdown.types.ts b/src/dropdown/dropdown.types.ts index 34a1502fd..0a267ae05 100644 --- a/src/dropdown/dropdown.types.ts +++ b/src/dropdown/dropdown.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const MenuItemType = { Default: 'default', diff --git a/src/dropdown/menu-item/menu-item.component.ts b/src/dropdown/menu-item/menu-item.component.ts index 44700f12c..8623edb8e 100644 --- a/src/dropdown/menu-item/menu-item.component.ts +++ b/src/dropdown/menu-item/menu-item.component.ts @@ -5,7 +5,7 @@ import { ViewEncapsulation, } from '@angular/core'; -import { Bem, buildBem } from '../../utils'; +import { Bem, buildBem } from '../../internal/utils'; import { MenuItemType } from '../dropdown.types'; @Component({ diff --git a/src/dropdown/menu/menu.component.ts b/src/dropdown/menu/menu.component.ts index 47247afef..b67730911 100644 --- a/src/dropdown/menu/menu.component.ts +++ b/src/dropdown/menu/menu.component.ts @@ -5,8 +5,8 @@ import { ViewEncapsulation, } from '@angular/core'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem } from '../../internal/utils'; @Component({ selector: 'aui-menu', diff --git a/src/dropdown/submenu/submenu.component.ts b/src/dropdown/submenu/submenu.component.ts index fc6db0de6..ec795f691 100644 --- a/src/dropdown/submenu/submenu.component.ts +++ b/src/dropdown/submenu/submenu.component.ts @@ -8,11 +8,11 @@ import { } from '@angular/core'; import { IconComponent } from '../../icon/icon.component'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem } from '../../internal/utils'; import { TooltipTrigger } from '../../tooltip'; import { TooltipActiveDirective } from '../../tooltip/tooltip-active.directive'; import { TooltipDirective } from '../../tooltip/tooltip.directive'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem } from '../../utils'; import { MenuComponent } from '../menu/menu.component'; import { MenuItemComponent } from '../menu-item/menu-item.component'; diff --git a/src/form/common-form.ts b/src/form/common-form.ts index 95b1a5460..2d93b6586 100644 --- a/src/form/common-form.ts +++ b/src/form/common-form.ts @@ -8,7 +8,7 @@ import { import { ControlValueAccessor } from '@angular/forms'; import { ReplaySubject } from 'rxjs'; -import { coerceAttrBoolean } from '../utils'; +import { coerceAttrBoolean } from '../internal/utils'; /** * form control 内部不保持 value 属性,当不使用 ngModel 时可以通过 [(value)] 实现双向绑定; diff --git a/src/form/form-item/form-item.component.ts b/src/form/form-item/form-item.component.ts index 772e2b642..ca0152999 100644 --- a/src/form/form-item/form-item.component.ts +++ b/src/form/form-item/form-item.component.ts @@ -24,7 +24,7 @@ import { takeUntil, } from 'rxjs'; -import { Bem, buildBem, publishRef } from '../../utils'; +import { Bem, buildBem, publishRef } from '../../internal/utils'; import { FormDirective } from '../form.directive'; import { FormItemWidth, LabelPosition } from '../form.types'; import { diff --git a/src/form/form.types.ts b/src/form/form.types.ts index 86edd8dbe..3f0c3e0da 100644 --- a/src/form/form.types.ts +++ b/src/form/form.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const LabelPosition = { Top: 'top', diff --git a/src/form/helper-directives.ts b/src/form/helper-directives.ts index 8ae39a239..458c5ee2f 100644 --- a/src/form/helper-directives.ts +++ b/src/form/helper-directives.ts @@ -1,6 +1,6 @@ import { Directive, Input } from '@angular/core'; -import { coerceAttrBoolean } from '../utils'; +import { coerceAttrBoolean } from '../internal/utils'; @Directive({ selector: 'label[auiFormItemLabel]', diff --git a/src/icon/icon.component.ts b/src/icon/icon.component.ts index 8d4b1eab5..2bb00cd9c 100644 --- a/src/icon/icon.component.ts +++ b/src/icon/icon.component.ts @@ -6,8 +6,8 @@ import { ViewEncapsulation, } from '@angular/core'; +import { Bem, buildBem, handlePixel } from '../internal/utils'; import { ThemePickerPipe } from '../theme/theme.pipe'; -import { Bem, buildBem, handlePixel } from '../utils'; import { IconRegisterService } from './icon-register.service'; diff --git a/src/index.ts b/src/index.ts index b38eb8c84..dece82d2d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,6 +16,19 @@ export * from './i18n'; export * from './icon'; export * from './inline-alert'; export * from './input'; +export { ComponentSize } from './internal/types'; +export { + AttrBoolean, + Bem, + buildBem, + coerceAttrBoolean, + coerceString, + getCompatibleStylesRenderer, + handlePixel, + isTemplateRef, + observeMutationOn, + observeResizeOn, +} from './internal/utils'; export * from './message'; export * from './notification'; export * from './paginator'; @@ -34,14 +47,3 @@ export * from './theme'; export * from './time-picker'; export * from './tooltip'; export * from './tree-select'; -export { ComponentSize } from './types'; -export { - AttrBoolean, - coerceAttrBoolean, - coerceString, - getCompatibleStylesRenderer, - handlePixel, - isTemplateRef, - observeMutationOn, - observeResizeOn, -} from './utils'; diff --git a/src/inline-alert/inline-alert.component.ts b/src/inline-alert/inline-alert.component.ts index 634a33b98..ed68c31f2 100644 --- a/src/inline-alert/inline-alert.component.ts +++ b/src/inline-alert/inline-alert.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import { IconComponent } from '../icon/icon.component'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { InlineAlertTitleDirective } from './helper-directives'; import { InlineAlertType } from './inline-alert.types'; diff --git a/src/inline-alert/inline-alert.types.ts b/src/inline-alert/inline-alert.types.ts index 5723d9d67..f1ee1a528 100644 --- a/src/inline-alert/inline-alert.types.ts +++ b/src/inline-alert/inline-alert.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const InlineAlertType = { Primary: 'primary', diff --git a/src/input/input-group/input-group.component.spec.ts b/src/input/input-group/input-group.component.spec.ts index 7e60f0931..32da6097f 100644 --- a/src/input/input-group/input-group.component.spec.ts +++ b/src/input/input-group/input-group.component.spec.ts @@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { IconComponent } from '../../icon'; -import { ComponentSize } from '../../types'; +import { ComponentSize } from '../../internal/types'; import { InputComponent } from '../input.component'; import { INPUT_GROUP_MODULE } from './input-group.component'; diff --git a/src/input/input-group/input-group.component.ts b/src/input/input-group/input-group.component.ts index 26e1493e1..1adeb24b2 100644 --- a/src/input/input-group/input-group.component.ts +++ b/src/input/input-group/input-group.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import { Observable } from 'rxjs'; -import { Bem, buildBem, watchContentExist } from '../../utils'; +import { Bem, buildBem, watchContentExist } from '../../internal/utils'; import { InputAddonAfterDirective, InputAddonBeforeDirective, diff --git a/src/input/input.component.spec.ts b/src/input/input.component.spec.ts index 66ae63ec8..5c5ff99ac 100644 --- a/src/input/input.component.spec.ts +++ b/src/input/input.component.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { ComponentSize } from '../types'; +import { ComponentSize } from '../internal/types'; import { InputComponent } from './input.component'; diff --git a/src/input/input.component.ts b/src/input/input.component.ts index dfa6bc237..0d74b1cb1 100644 --- a/src/input/input.component.ts +++ b/src/input/input.component.ts @@ -9,8 +9,8 @@ import { } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; -import { ComponentSize } from '../types'; -import { coerceAttrBoolean } from '../utils'; +import { ComponentSize } from '../internal/types'; +import { coerceAttrBoolean } from '../internal/utils'; @Component({ // eslint-disable-next-line @angular-eslint/component-selector diff --git a/src/input/number-input/number-input.component.ts b/src/input/number-input/number-input.component.ts index f9e64d9c1..84090b393 100644 --- a/src/input/number-input/number-input.component.ts +++ b/src/input/number-input/number-input.component.ts @@ -18,9 +18,9 @@ import { Observable } from 'rxjs'; import { CommonFormControl } from '../../form'; import { IconComponent } from '../../icon'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem, watchContentExist } from '../../internal/utils'; import { ClickOutsideDirective } from '../../shared/click-outside.directive'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem, watchContentExist } from '../../utils'; import { InputAddonAfterDirective, InputAddonBeforeDirective, diff --git a/src/input/search/search.component.ts b/src/input/search/search.component.ts index 08cc1e669..3d9981624 100644 --- a/src/input/search/search.component.ts +++ b/src/input/search/search.component.ts @@ -12,8 +12,8 @@ import { import { FormsModule } from '@angular/forms'; import { IconComponent } from '../../icon'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem } from '../../internal/utils'; import { InputComponent } from '../input.component'; @Component({ diff --git a/src/input/tags-input/tags-input.component.ts b/src/input/tags-input/tags-input.component.ts index 340081e9e..b5a8b3552 100644 --- a/src/input/tags-input/tags-input.component.ts +++ b/src/input/tags-input/tags-input.component.ts @@ -27,9 +27,9 @@ import { import { take } from 'rxjs'; import { CommonFormControl } from '../../form'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem } from '../../internal/utils'; import { TagComponent } from '../../tag/tag.component'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem } from '../../utils'; import { createWithMaxRowCount } from './with-max-row-count'; diff --git a/src/input/tags-input/with-max-row-count.ts b/src/input/tags-input/with-max-row-count.ts index 0902afe19..497590efe 100644 --- a/src/input/tags-input/with-max-row-count.ts +++ b/src/input/tags-input/with-max-row-count.ts @@ -1,4 +1,4 @@ -import { ComponentSize } from '../../types'; +import { ComponentSize } from '../../internal/types'; function getRowHeight(size: ComponentSize) { switch (size) { diff --git a/src/types.ts b/src/internal/types/index.ts similarity index 100% rename from src/types.ts rename to src/internal/types/index.ts diff --git a/src/utils/animations.ts b/src/internal/utils/animations.ts similarity index 100% rename from src/utils/animations.ts rename to src/internal/utils/animations.ts diff --git a/src/utils/async.spec.ts b/src/internal/utils/async.spec.ts similarity index 100% rename from src/utils/async.spec.ts rename to src/internal/utils/async.spec.ts diff --git a/src/utils/async.ts b/src/internal/utils/async.ts similarity index 100% rename from src/utils/async.ts rename to src/internal/utils/async.ts diff --git a/src/utils/bem.spec.ts b/src/internal/utils/bem.spec.ts similarity index 100% rename from src/utils/bem.spec.ts rename to src/internal/utils/bem.spec.ts diff --git a/src/utils/bem.ts b/src/internal/utils/bem.ts similarity index 100% rename from src/utils/bem.ts rename to src/internal/utils/bem.ts diff --git a/src/utils/coercion.spec.ts b/src/internal/utils/coercion.spec.ts similarity index 100% rename from src/utils/coercion.spec.ts rename to src/internal/utils/coercion.spec.ts diff --git a/src/utils/coercion.ts b/src/internal/utils/coercion.ts similarity index 100% rename from src/utils/coercion.ts rename to src/internal/utils/coercion.ts diff --git a/src/utils/fn.ts b/src/internal/utils/fn.ts similarity index 100% rename from src/utils/fn.ts rename to src/internal/utils/fn.ts diff --git a/src/utils/index.ts b/src/internal/utils/index.ts similarity index 100% rename from src/utils/index.ts rename to src/internal/utils/index.ts diff --git a/src/utils/life-cycle.ts b/src/internal/utils/life-cycle.ts similarity index 100% rename from src/utils/life-cycle.ts rename to src/internal/utils/life-cycle.ts diff --git a/src/utils/observe-dom.ts b/src/internal/utils/observe-dom.ts similarity index 100% rename from src/utils/observe-dom.ts rename to src/internal/utils/observe-dom.ts diff --git a/src/utils/operators.ts b/src/internal/utils/operators.ts similarity index 100% rename from src/utils/operators.ts rename to src/internal/utils/operators.ts diff --git a/src/utils/scroll-into-view.ts b/src/internal/utils/scroll-into-view.ts similarity index 100% rename from src/utils/scroll-into-view.ts rename to src/internal/utils/scroll-into-view.ts diff --git a/src/utils/styles-renderer.ts b/src/internal/utils/styles-renderer.ts similarity index 100% rename from src/utils/styles-renderer.ts rename to src/internal/utils/styles-renderer.ts diff --git a/src/utils/watch-content-exist.ts b/src/internal/utils/watch-content-exist.ts similarity index 100% rename from src/utils/watch-content-exist.ts rename to src/internal/utils/watch-content-exist.ts diff --git a/src/message/message.component.ts b/src/message/message.component.ts index 2c80fe983..2e8d27140 100644 --- a/src/message/message.component.ts +++ b/src/message/message.component.ts @@ -10,7 +10,7 @@ import { import { Subject } from 'rxjs'; import { IconComponent } from '../icon/icon.component'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { MessageAnimations } from './message-animations'; import { MessageConfig, MessageType } from './message.config'; diff --git a/src/notification/notification.component.ts b/src/notification/notification.component.ts index fabdcdd18..a94c8c92f 100644 --- a/src/notification/notification.component.ts +++ b/src/notification/notification.component.ts @@ -18,9 +18,9 @@ import { } from '@angular/core'; import { IconComponent } from '../icon/icon.component'; +import { Bem, buildBem } from '../internal/utils'; import { MessageAnimations } from '../message/message-animations'; import { MessageComponent } from '../message/message.component'; -import { Bem, buildBem } from '../utils'; import { NotificationConfig } from './notification.config'; diff --git a/src/paginator/paginator.component.ts b/src/paginator/paginator.component.ts index 030f2eaac..a67960ef5 100644 --- a/src/paginator/paginator.component.ts +++ b/src/paginator/paginator.component.ts @@ -14,9 +14,9 @@ import { Subscription } from 'rxjs'; import { ButtonComponent } from '../button/button.component'; import { IconComponent } from '../icon/icon.component'; import { InputComponent } from '../input/input.component'; +import { Bem, buildBem } from '../internal/utils'; import { OptionComponent } from '../select/option/option.component'; import { SelectComponent } from '../select/select.component'; -import { Bem, buildBem } from '../utils'; import { PaginatorIntl } from './paginator-intl'; diff --git a/src/radio/radio-button/radio-button.component.ts b/src/radio/radio-button/radio-button.component.ts index aa6a4fc01..2fbb20716 100644 --- a/src/radio/radio-button/radio-button.component.ts +++ b/src/radio/radio-button/radio-button.component.ts @@ -10,7 +10,7 @@ import { import { takeUntil } from 'rxjs'; import { IconComponent } from '../../icon/icon.component'; -import { Bem, buildBem } from '../../utils'; +import { Bem, buildBem } from '../../internal/utils'; import { BaseRadio } from '../base-radio'; import { RadioGroupComponent } from '../radio-group/radio-group.component'; import { RadioSize } from '../radio.types'; diff --git a/src/radio/radio.component.ts b/src/radio/radio.component.ts index f9e899c2a..977116277 100644 --- a/src/radio/radio.component.ts +++ b/src/radio/radio.component.ts @@ -7,7 +7,7 @@ import { ViewEncapsulation, } from '@angular/core'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { BaseRadio } from './base-radio'; import { RadioGroupComponent } from './radio-group/radio-group.component'; diff --git a/src/radio/radio.types.ts b/src/radio/radio.types.ts index 7d68a7f55..a5cbdb609 100644 --- a/src/radio/radio.types.ts +++ b/src/radio/radio.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const RadioSize = { Medium: 'medium', diff --git a/src/select/base-select.ts b/src/select/base-select.ts index 9d714bbd8..a1d2dc9dd 100644 --- a/src/select/base-select.ts +++ b/src/select/base-select.ts @@ -29,15 +29,15 @@ import { } from 'rxjs'; import { CommonFormControl } from '../form'; -import { TooltipDirective } from '../tooltip'; -import { ComponentSize } from '../types'; +import { ComponentSize } from '../internal/types'; import { coerceAttrBoolean, coerceString, isTemplateRef, publishRef, scrollIntoView, -} from '../utils'; +} from '../internal/utils'; +import { TooltipDirective } from '../tooltip'; import { OptionContentDirective } from './helper-directives'; import { OptionComponent } from './option/option.component'; diff --git a/src/select/multi-select/multi-select.component.spec.ts b/src/select/multi-select/multi-select.component.spec.ts index 2f6e83d85..c1b9f4f61 100644 --- a/src/select/multi-select/multi-select.component.spec.ts +++ b/src/select/multi-select/multi-select.component.spec.ts @@ -12,7 +12,7 @@ import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { MultiSelectComponent, SelectModule } from '..'; -import { ComponentSize } from '../../types'; +import { ComponentSize } from '../../internal/types'; describe('multiSelectComponent', () => { let fixture: ComponentFixture; diff --git a/src/select/multi-select/multi-select.component.ts b/src/select/multi-select/multi-select.component.ts index 95b36de8c..d05ae1d77 100644 --- a/src/select/multi-select/multi-select.component.ts +++ b/src/select/multi-select/multi-select.component.ts @@ -34,16 +34,16 @@ import { import { I18nPipe } from '../../i18n/i18n.pipe'; import { IconComponent } from '../../icon/icon.component'; import { createWithMaxRowCount } from '../../input/tags-input/with-max-row-count'; -import { TagComponent } from '../../tag/tag.component'; -import { TooltipDirective } from '../../tooltip/tooltip.directive'; -import { ComponentSize } from '../../types'; +import { ComponentSize } from '../../internal/types'; import { Bem, buildBem, coerceAttrBoolean, coerceString, publishRef, -} from '../../utils'; +} from '../../internal/utils'; +import { TagComponent } from '../../tag/tag.component'; +import { TooltipDirective } from '../../tooltip/tooltip.directive'; import { BaseSelect } from '../base-select'; import { OptionComponent } from '../option/option.component'; import { diff --git a/src/select/option-group/option-group.component.ts b/src/select/option-group/option-group.component.ts index 2f63dd26b..0265c1911 100644 --- a/src/select/option-group/option-group.component.ts +++ b/src/select/option-group/option-group.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import { Observable, combineLatest, of, map, startWith, switchMap } from 'rxjs'; -import { publishRef } from '../../utils'; +import { publishRef } from '../../internal/utils'; import { OptionComponent } from '../option/option.component'; @Component({ diff --git a/src/select/option/option.component.ts b/src/select/option/option.component.ts index 9653b78f9..42a92df4a 100644 --- a/src/select/option/option.component.ts +++ b/src/select/option/option.component.ts @@ -21,8 +21,13 @@ import { } from 'rxjs'; import { IconComponent } from '../../icon/icon.component'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem, coerceAttrBoolean, publishRef } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { + Bem, + buildBem, + coerceAttrBoolean, + publishRef, +} from '../../internal/utils'; import { BaseSelect } from '../base-select'; @Component({ diff --git a/src/select/select.component.spec.ts b/src/select/select.component.spec.ts index d0f30537d..af92d226e 100644 --- a/src/select/select.component.spec.ts +++ b/src/select/select.component.spec.ts @@ -6,7 +6,7 @@ import { FormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; -import { ComponentSize } from '../types'; +import { ComponentSize } from '../internal/types'; import { SELECT_MODULE, SelectComponent } from '.'; diff --git a/src/select/select.component.ts b/src/select/select.component.ts index 3fe796463..b1f034445 100644 --- a/src/select/select.component.ts +++ b/src/select/select.component.ts @@ -25,8 +25,8 @@ import { InputSuffixDirective, InputGroupComponent, } from '../input'; +import { coerceString, publishRef } from '../internal/utils'; import { TooltipDirective } from '../tooltip'; -import { coerceString, publishRef } from '../utils'; import { BaseSelect } from './base-select'; import { OptionComponent } from './option/option.component'; diff --git a/src/select/validators.ts b/src/select/validators.ts index 825f0f30b..cc78036d5 100644 --- a/src/select/validators.ts +++ b/src/select/validators.ts @@ -8,7 +8,7 @@ import { } from '@angular/forms'; import { startWith } from 'rxjs'; -import { coerceAttrBoolean } from '../utils'; +import { coerceAttrBoolean } from '../internal/utils'; import { SelectComponent } from './select.component'; import { TrackFn } from './select.types'; diff --git a/src/sort/sort-header.component.ts b/src/sort/sort-header.component.ts index 3dae2260b..c2b95bbe1 100644 --- a/src/sort/sort-header.component.ts +++ b/src/sort/sort-header.component.ts @@ -15,7 +15,7 @@ import { Subscription, merge } from 'rxjs'; * TODO: prevent ```public property '' of exported class has or is using name '' * from external module '' but cannot be named``` issue. */ -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { getSortHeaderNotContainedWithinSortError } from './sort-errors'; import { SortDirective } from './sort.directive'; diff --git a/src/status-bar/status-bar.component.ts b/src/status-bar/status-bar.component.ts index 9ca5d62ac..bdf9e8b10 100644 --- a/src/status-bar/status-bar.component.ts +++ b/src/status-bar/status-bar.component.ts @@ -9,8 +9,8 @@ import { ViewEncapsulation, } from '@angular/core'; +import { Bem, buildBem } from '../internal/utils'; import { TooltipDirective } from '../tooltip/tooltip.directive'; -import { Bem, buildBem } from '../utils'; import { Status, StatusBarSize } from './status-bar.types'; diff --git a/src/status-bar/status-bar.types.ts b/src/status-bar/status-bar.types.ts index 556dd3006..25ba3cdfe 100644 --- a/src/status-bar/status-bar.types.ts +++ b/src/status-bar/status-bar.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export interface Status { type?: StatusType; diff --git a/src/steps/types.ts b/src/steps/types.ts index 75316284a..425e45b8c 100644 --- a/src/steps/types.ts +++ b/src/steps/types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const StepState = { Default: 'default', diff --git a/src/switch/switch.component.ts b/src/switch/switch.component.ts index a8467d717..a8568fca3 100644 --- a/src/switch/switch.component.ts +++ b/src/switch/switch.component.ts @@ -9,7 +9,7 @@ import { import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { CommonFormControl } from '../form'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; const prefix = 'aui-switch'; diff --git a/src/table/table-column-resizable.directive.ts b/src/table/table-column-resizable.directive.ts index f6edb604a..a0f6c5305 100644 --- a/src/table/table-column-resizable.directive.ts +++ b/src/table/table-column-resizable.directive.ts @@ -18,7 +18,7 @@ import { takeUntil, } from 'rxjs'; -import { buildBem, getCompatibleStylesRenderer } from '../utils'; +import { buildBem, getCompatibleStylesRenderer } from '../internal/utils'; import { TableColumnDefDirective } from './table-column-def.directive'; import { tableBem, TableComponent } from './table.component'; diff --git a/src/table/table-scroll.directive.ts b/src/table/table-scroll.directive.ts index ab0b2fd58..8b76360dd 100644 --- a/src/table/table-scroll.directive.ts +++ b/src/table/table-scroll.directive.ts @@ -24,7 +24,11 @@ import { BehaviorSubject, } from 'rxjs'; -import { buildBem, coerceAttrBoolean, observeResizeOn } from '../utils'; +import { + buildBem, + coerceAttrBoolean, + observeResizeOn, +} from '../internal/utils'; import { tableBem, TableComponent } from './table.component'; diff --git a/src/table/table.component.ts b/src/table/table.component.ts index 9021e24f9..c580d0b4c 100644 --- a/src/table/table.component.ts +++ b/src/table/table.component.ts @@ -24,7 +24,7 @@ import { ViewEncapsulation, } from '@angular/core'; -import { buildBem } from '../utils'; +import { buildBem } from '../internal/utils'; import { TablePlaceholderDefDirective, diff --git a/src/tabs/tab-body.component.ts b/src/tabs/tab-body.component.ts index 29ee51379..5c6306540 100644 --- a/src/tabs/tab-body.component.ts +++ b/src/tabs/tab-body.component.ts @@ -20,7 +20,7 @@ import { } from '@angular/core'; import { BehaviorSubject, Subscription } from 'rxjs'; -import { coerceAttrBoolean } from '../utils'; +import { coerceAttrBoolean } from '../internal/utils'; @Component({ selector: 'aui-tab-body', diff --git a/src/tabs/tab-group.component.spec.ts b/src/tabs/tab-group.component.spec.ts index 61cf617f2..dbc77b182 100644 --- a/src/tabs/tab-group.component.spec.ts +++ b/src/tabs/tab-group.component.spec.ts @@ -8,7 +8,7 @@ import { } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { LifeCycle, LifeCycleDirective } from '../utils/life-cycle'; +import { LifeCycle, LifeCycleDirective } from '../internal/utils/life-cycle'; import { TabContentDirective, TabLabelDirective } from './tab-body.component'; import { TabChangeEvent, TabGroupComponent } from './tab-group.component'; diff --git a/src/tabs/tab-group.component.ts b/src/tabs/tab-group.component.ts index 96417bf39..e535c2f83 100644 --- a/src/tabs/tab-group.component.ts +++ b/src/tabs/tab-group.component.ts @@ -24,7 +24,7 @@ import { import { Subject, Subscription, merge } from 'rxjs'; import { IconComponent } from '../icon/icon.component'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { TabHeaderAddonDirective, diff --git a/src/tabs/tab-header-active-indicator.component.ts b/src/tabs/tab-header-active-indicator.component.ts index f868fb781..d309f2339 100644 --- a/src/tabs/tab-header-active-indicator.component.ts +++ b/src/tabs/tab-header-active-indicator.component.ts @@ -8,7 +8,7 @@ import { ViewEncapsulation, } from '@angular/core'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { TabType } from './tabs.types'; diff --git a/src/tabs/tab-header.component.ts b/src/tabs/tab-header.component.ts index e7a4f6559..edc837612 100644 --- a/src/tabs/tab-header.component.ts +++ b/src/tabs/tab-header.component.ts @@ -23,7 +23,7 @@ import { import { Subject, takeUntil } from 'rxjs'; import { IconComponent } from '../icon/icon.component'; -import { Bem, buildBem } from '../utils'; +import { Bem, buildBem } from '../internal/utils'; import { TabHeaderAddonDirective, diff --git a/src/tabs/tab.component.ts b/src/tabs/tab.component.ts index c993d5cb2..8f18d6836 100644 --- a/src/tabs/tab.component.ts +++ b/src/tabs/tab.component.ts @@ -18,7 +18,7 @@ import { } from '@angular/core'; import { Subject } from 'rxjs'; -import { coerceAttrBoolean } from '../utils'; +import { coerceAttrBoolean } from '../internal/utils'; import { TabContentDirective, TabLabelDirective } from './tab-body.component'; import { TabContextService } from './tab-context.service'; diff --git a/src/tabs/tabs.types.ts b/src/tabs/tabs.types.ts index 1841617b0..9b1d8669b 100644 --- a/src/tabs/tabs.types.ts +++ b/src/tabs/tabs.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const TabSize = { /** 卡片级尺寸 */ diff --git a/src/tag/check-tag/check-tag.component.ts b/src/tag/check-tag/check-tag.component.ts index 2d92a5a52..f7cf0fd0c 100644 --- a/src/tag/check-tag/check-tag.component.ts +++ b/src/tag/check-tag/check-tag.component.ts @@ -7,8 +7,8 @@ import { ViewEncapsulation, } from '@angular/core'; -import { ComponentSize } from '../../types'; -import { Bem, buildBem } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { Bem, buildBem } from '../../internal/utils'; import { TagType } from '../tag.types'; @Component({ diff --git a/src/tag/tag.component.ts b/src/tag/tag.component.ts index ed4009137..dad9d918a 100644 --- a/src/tag/tag.component.ts +++ b/src/tag/tag.component.ts @@ -9,8 +9,8 @@ import { } from '@angular/core'; import { IconComponent } from '../icon/icon.component'; -import { ComponentSize } from '../types'; -import { Bem, buildBem } from '../utils'; +import { ComponentSize } from '../internal/types'; +import { Bem, buildBem } from '../internal/utils'; import { TagType } from './tag.types'; diff --git a/src/tag/tag.types.ts b/src/tag/tag.types.ts index ca307460d..217934f6b 100644 --- a/src/tag/tag.types.ts +++ b/src/tag/tag.types.ts @@ -1,4 +1,4 @@ -import { ValueOf } from '../types'; +import { ValueOf } from '../internal/types'; export const TagType = { Primary: 'primary', diff --git a/src/time-picker/component.ts b/src/time-picker/component.ts index dced5c143..5cc6ea3fa 100644 --- a/src/time-picker/component.ts +++ b/src/time-picker/component.ts @@ -20,8 +20,8 @@ import { IconComponent } from '../icon/icon.component'; import { InputSuffixDirective } from '../input/helper-directives'; import { InputGroupComponent } from '../input/input-group/input-group.component'; import { InputComponent } from '../input/input.component'; +import { ComponentSize } from '../internal/types'; import { TooltipDirective } from '../tooltip/tooltip.directive'; -import { ComponentSize } from '../types'; import { TimePickerPanelComponent } from './panel/panel.component'; import { diff --git a/src/time-picker/panel/panel.component.ts b/src/time-picker/panel/panel.component.ts index 1c7a41f7b..b6832f766 100644 --- a/src/time-picker/panel/panel.component.ts +++ b/src/time-picker/panel/panel.component.ts @@ -28,8 +28,8 @@ import { ButtonComponent } from '../../button/button.component'; import { updateDateByTimeModel } from '../../date-picker/calendar/util'; import { CommonFormControl } from '../../form/common-form'; import { I18nPipe } from '../../i18n/i18n.pipe'; -import { ComponentSize } from '../../types'; -import { buildBem } from '../../utils'; +import { ComponentSize } from '../../internal/types'; +import { buildBem } from '../../internal/utils'; import { CONTROL_ITEM_HEIGHT, HOUR_ITEMS, diff --git a/src/time-picker/time-picker.type.ts b/src/time-picker/time-picker.type.ts index 95e3af8f2..d12d45a5b 100644 --- a/src/time-picker/time-picker.type.ts +++ b/src/time-picker/time-picker.type.ts @@ -1,6 +1,6 @@ import { ConfigType } from 'dayjs'; -import { isNumberValue } from '../utils'; +import { isNumberValue } from '../internal/utils'; export enum TimePickerControlType { Hour = 'hour', diff --git a/src/tooltip/base-tooltip.ts b/src/tooltip/base-tooltip.ts index c82b2a294..9d7a85c7c 100644 --- a/src/tooltip/base-tooltip.ts +++ b/src/tooltip/base-tooltip.ts @@ -28,7 +28,7 @@ import { delay, } from 'rxjs'; -import { sleep } from '../utils'; +import { sleep } from '../internal/utils'; import { AnimationType } from './animations'; import { TooltipComponent } from './tooltip.component'; diff --git a/src/tooltip/tooltip.component.ts b/src/tooltip/tooltip.component.ts index 9262ff086..ac1356421 100644 --- a/src/tooltip/tooltip.component.ts +++ b/src/tooltip/tooltip.component.ts @@ -18,7 +18,7 @@ import { BehaviorSubject, } from 'rxjs'; -import { Bem, buildBem, publishRef } from '../utils'; +import { Bem, buildBem, publishRef } from '../internal/utils'; import { animations, AnimationType } from './animations'; import { TooltipType } from './tooltip.types'; diff --git a/src/tree-select/tree-select.component.ts b/src/tree-select/tree-select.component.ts index 815daea2e..dbf4d8b72 100644 --- a/src/tree-select/tree-select.component.ts +++ b/src/tree-select/tree-select.component.ts @@ -34,8 +34,6 @@ import { IconComponent } from '../icon/icon.component'; import { InputSuffixDirective } from '../input/helper-directives'; import { InputGroupComponent } from '../input/input-group/input-group.component'; import { InputComponent } from '../input/input.component'; -import { TrackFn } from '../select/select.types'; -import { TooltipDirective } from '../tooltip/tooltip.directive'; import { Bem, buildBem, @@ -43,7 +41,9 @@ import { coerceString, publishRef, scrollIntoView, -} from '../utils'; +} from '../internal/utils'; +import { TrackFn } from '../select/select.types'; +import { TooltipDirective } from '../tooltip/tooltip.directive'; import { TreeNode } from './tree-select.types'; diff --git a/stories/input/number-input.component.ts b/stories/input/number-input.component.ts index 143021116..5b0c612e9 100644 --- a/stories/input/number-input.component.ts +++ b/stories/input/number-input.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; -import { ComponentSize } from 'src/types'; +import { ComponentSize } from 'src'; @Component({ template: ` diff --git a/stories/input/search-input.component.ts b/stories/input/search-input.component.ts index c5e4225f5..264780872 100644 --- a/stories/input/search-input.component.ts +++ b/stories/input/search-input.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; -import { ComponentSize } from 'src/types'; +import { ComponentSize } from 'src'; @Component({ template: ` diff --git a/stories/select/basic.component.ts b/stories/select/basic.component.ts index 8af4724c6..8bfefcdac 100644 --- a/stories/select/basic.component.ts +++ b/stories/select/basic.component.ts @@ -2,7 +2,7 @@ import { NgFor } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { SelectModule } from 'src/select'; +import { SelectModule } from 'src'; @Component({ standalone: true,