mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(many): resolve import errors with stencil apps (#26781)
resolves #26778
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import { printIonError } from '@utils/logging';
|
import { printIonError } from '../../utils/logging';
|
||||||
|
|
||||||
export const getCounterText = (
|
export const getCounterText = (
|
||||||
value: string | number | null | undefined,
|
value: string | number | null | undefined,
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import type { ComponentInterface } from '@stencil/core';
|
import type { ComponentInterface } from '@stencil/core';
|
||||||
import { Component, Element, Host, Listen, Prop, State, Watch, forceUpdate, h } from '@stencil/core';
|
import { Component, Element, Host, Listen, Prop, State, Watch, forceUpdate, h } from '@stencil/core';
|
||||||
import { printIonError, printIonWarning } from '@utils/logging';
|
|
||||||
import { chevronForward } from 'ionicons/icons';
|
import { chevronForward } from 'ionicons/icons';
|
||||||
|
|
||||||
import { getIonMode } from '../../global/ionic-global';
|
import { getIonMode } from '../../global/ionic-global';
|
||||||
@ -8,6 +7,7 @@ import type { AnimationBuilder, Color, CssClassMap, StyleEventDetail } from '../
|
|||||||
import type { AnchorInterface, ButtonInterface } from '../../utils/element-interface';
|
import type { AnchorInterface, ButtonInterface } from '../../utils/element-interface';
|
||||||
import type { Attributes } from '../../utils/helpers';
|
import type { Attributes } from '../../utils/helpers';
|
||||||
import { inheritAttributes, raf } from '../../utils/helpers';
|
import { inheritAttributes, raf } from '../../utils/helpers';
|
||||||
|
import { printIonError, printIonWarning } from '../../utils/logging';
|
||||||
import { createColorClasses, hostContext, openURL } from '../../utils/theme';
|
import { createColorClasses, hostContext, openURL } from '../../utils/theme';
|
||||||
import type { InputInputEventDetail } from '../input/input-interface';
|
import type { InputInputEventDetail } from '../input/input-interface';
|
||||||
import type { RouterDirection } from '../router/utils/interface';
|
import type { RouterDirection } from '../router/utils/interface';
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
||||||
import { Component, Element, Event, Host, Method, Prop, State, Watch, h } from '@stencil/core';
|
import { Component, Element, Event, Host, Method, Prop, State, Watch, h } from '@stencil/core';
|
||||||
import { isPlatform } from '@utils/platform';
|
|
||||||
|
|
||||||
import { getIonMode } from '../../global/ionic-global';
|
import { getIonMode } from '../../global/ionic-global';
|
||||||
import type { Color } from '../../interface';
|
import type { Color } from '../../interface';
|
||||||
import { getElementRoot, raf } from '../../utils/helpers';
|
import { getElementRoot, raf } from '../../utils/helpers';
|
||||||
import { hapticSelectionChanged, hapticSelectionEnd, hapticSelectionStart } from '../../utils/native/haptic';
|
import { hapticSelectionChanged, hapticSelectionEnd, hapticSelectionStart } from '../../utils/native/haptic';
|
||||||
|
import { isPlatform } from '../../utils/platform';
|
||||||
import { createColorClasses } from '../../utils/theme';
|
import { createColorClasses } from '../../utils/theme';
|
||||||
import type { PickerInternalCustomEvent } from '../picker-internal/picker-internal-interfaces';
|
import type { PickerInternalCustomEvent } from '../picker-internal/picker-internal-interfaces';
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
||||||
import { Component, Element, Event, Host, Method, Prop, State, Watch, h, forceUpdate } from '@stencil/core';
|
import { Component, Element, Event, Host, Method, Prop, State, Watch, h, forceUpdate } from '@stencil/core';
|
||||||
import { createLegacyFormController } from '@utils/forms';
|
|
||||||
import type { LegacyFormController } from '@utils/forms';
|
|
||||||
import { printIonWarning } from '@utils/logging';
|
|
||||||
import { isRTL } from '@utils/rtl';
|
|
||||||
import { caretDownSharp } from 'ionicons/icons';
|
import { caretDownSharp } from 'ionicons/icons';
|
||||||
|
|
||||||
import { getIonMode } from '../../global/ionic-global';
|
import { getIonMode } from '../../global/ionic-global';
|
||||||
@ -15,10 +11,14 @@ import type {
|
|||||||
PopoverOptions,
|
PopoverOptions,
|
||||||
StyleEventDetail,
|
StyleEventDetail,
|
||||||
} from '../../interface';
|
} from '../../interface';
|
||||||
|
import type { LegacyFormController } from '../../utils/forms';
|
||||||
|
import { createLegacyFormController } from '../../utils/forms';
|
||||||
import { findItemLabel, focusElement, getAriaLabel, renderHiddenInput, inheritAttributes } from '../../utils/helpers';
|
import { findItemLabel, focusElement, getAriaLabel, renderHiddenInput, inheritAttributes } from '../../utils/helpers';
|
||||||
import type { Attributes } from '../../utils/helpers';
|
import type { Attributes } from '../../utils/helpers';
|
||||||
|
import { printIonWarning } from '../../utils/logging';
|
||||||
import { actionSheetController, alertController, popoverController } from '../../utils/overlays';
|
import { actionSheetController, alertController, popoverController } from '../../utils/overlays';
|
||||||
import type { OverlaySelect } from '../../utils/overlays-interface';
|
import type { OverlaySelect } from '../../utils/overlays-interface';
|
||||||
|
import { isRTL } from '../../utils/rtl';
|
||||||
import { createColorClasses, hostContext } from '../../utils/theme';
|
import { createColorClasses, hostContext } from '../../utils/theme';
|
||||||
import { watchForOptions } from '../../utils/watch-options';
|
import { watchForOptions } from '../../utils/watch-options';
|
||||||
import type { ActionSheetButton } from '../action-sheet/action-sheet-interface';
|
import type { ActionSheetButton } from '../action-sheet/action-sheet-interface';
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
import { printIonWarning } from '@utils/logging';
|
|
||||||
|
|
||||||
import { config } from '../global/config';
|
import { config } from '../global/config';
|
||||||
import { getIonMode } from '../global/ionic-global';
|
import { getIonMode } from '../global/ionic-global';
|
||||||
import type {
|
import type {
|
||||||
@ -22,6 +20,7 @@ import type {
|
|||||||
import { CoreDelegate } from './framework-delegate';
|
import { CoreDelegate } from './framework-delegate';
|
||||||
import { OVERLAY_BACK_BUTTON_PRIORITY } from './hardware-back-button';
|
import { OVERLAY_BACK_BUTTON_PRIORITY } from './hardware-back-button';
|
||||||
import { addEventListener, componentOnReady, focusElement, getElementRoot, removeEventListener } from './helpers';
|
import { addEventListener, componentOnReady, focusElement, getElementRoot, removeEventListener } from './helpers';
|
||||||
|
import { printIonWarning } from './logging';
|
||||||
|
|
||||||
let lastId = 0;
|
let lastId = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user