mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(many): import types from source path (#26718)
This commit is contained in:
@ -2,10 +2,11 @@ import type { ComponentInterface } from '@stencil/core';
|
||||
import { Component, Element, Host, Prop, State, h } from '@stencil/core';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import type { Color, DatetimePresentation } from '../../interface';
|
||||
import type { Color } from '../../interface';
|
||||
import { componentOnReady, addEventListener } from '../../utils/helpers';
|
||||
import { printIonError } from '../../utils/logging';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
import type { DatetimePresentation } from '../datetime/datetime-interface';
|
||||
import { getToday } from '../datetime/utils/data';
|
||||
import { getMonthAndYear, getMonthDayAndYear, getLocalizedDateTime, getLocalizedTime } from '../datetime/utils/format';
|
||||
import { is24Hour } from '../datetime/utils/helpers';
|
||||
|
@ -1,6 +1,7 @@
|
||||
import type { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from '../../interface';
|
||||
import { getElementRoot, raf } from '../../utils/helpers';
|
||||
|
||||
import type { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from './popover-interface';
|
||||
|
||||
interface InteractionCallback {
|
||||
eventName: string;
|
||||
callback: (ev: any) => void; // TODO(FW-2832): type
|
||||
|
@ -8,9 +8,7 @@ import { caretDownSharp } from 'ionicons/icons';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import type {
|
||||
ActionSheetButton,
|
||||
ActionSheetOptions,
|
||||
AlertInput,
|
||||
AlertOptions,
|
||||
Color,
|
||||
CssClassMap,
|
||||
@ -23,6 +21,8 @@ import { actionSheetController, alertController, popoverController } from '../..
|
||||
import type { OverlaySelect } from '../../utils/overlays-interface';
|
||||
import { createColorClasses, hostContext } from '../../utils/theme';
|
||||
import { watchForOptions } from '../../utils/watch-options';
|
||||
import type { ActionSheetButton } from '../action-sheet/action-sheet-interface';
|
||||
import type { AlertInput } from '../alert/alert-interface';
|
||||
import type { SelectPopoverOption } from '../select-popover/select-popover-interface';
|
||||
|
||||
import type { SelectChangeEventDetail, SelectInterface, SelectCompareFn } from './select-interface';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import type { AnimationBuilder, Color, CssClassMap, RouterDirection } from '../interface';
|
||||
import type { RouterDirection } from '../components/router/utils/interface';
|
||||
import type { AnimationBuilder, Color, CssClassMap } from '../interface';
|
||||
|
||||
export const hostContext = (selector: string, el: HTMLElement): boolean => {
|
||||
return el.closest(selector) !== null;
|
||||
|
Reference in New Issue
Block a user