mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(all): import path is now correct when using ionic in a stencil app (#25123)
resolves #25122
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import type { ComponentInterface } from '@stencil/core';
|
||||
import { Component, Element, Host, Prop, h } from '@stencil/core';
|
||||
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
|
||||
|
||||
|
||||
import { handleFooterFade } from './footer.utils';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { ComponentInterface } from '@stencil/core';
|
||||
import { Component, Element, Host, Prop, h, writeTask } from '@stencil/core';
|
||||
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
|
||||
import type { Attributes } from '../../utils/helpers';
|
||||
import { inheritAttributes } from '../../utils/helpers';
|
||||
import { hostContext } from '../../utils/theme';
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
||||
import { Component, Element, Event, Host, Method, Prop, State, Watch, h, readTask, writeTask } from '@stencil/core';
|
||||
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
|
||||
|
||||
|
||||
@Component({
|
||||
tag: 'ion-infinite-scroll',
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
||||
import { Component, Element, Event, Host, Method, Prop, State, Watch, h, readTask, writeTask } from '@stencil/core';
|
||||
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
|
||||
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import type { Animation, Gesture, GestureDetail, RefresherEventDetail } from '../../interface';
|
||||
import { getTimeGivenProgression } from '../../utils/animation/cubic-bezier';
|
||||
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
|
||||
import { clamp, getElementRoot, raf, transitionEndAsync } from '../../utils/helpers';
|
||||
import { hapticImpact } from '../../utils/native/haptic';
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
||||
import { Component, Element, Event, Host, Method, Prop, State, Watch, h } from '@stencil/core';
|
||||
import { findClosestIonContent, getScrollElement } from '@utils/content';
|
||||
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import type { Gesture, GestureDetail, ItemReorderEventDetail } from '../../interface';
|
||||
import { findClosestIonContent, getScrollElement } from '../../utils/content';
|
||||
import { hapticSelectionChanged, hapticSelectionEnd, hapticSelectionStart } from '../../utils/native/haptic';
|
||||
|
||||
const enum ReorderGroupState {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { getScrollElement, scrollByPoint } from '@utils/content';
|
||||
|
||||
import { getScrollElement, scrollByPoint } from '../../content';
|
||||
import { pointerCoord, raf } from '../../helpers';
|
||||
|
||||
import { isFocused, relocateInput } from './common';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { findClosestIonContent } from '@utils/content';
|
||||
import { findClosestIonContent } from '../../content';
|
||||
|
||||
const PADDING_TIMER_KEY = '$ionPaddingTimer';
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { findClosestIonContent } from '@utils/content';
|
||||
|
||||
import type { Config } from '../../interface';
|
||||
import { findClosestIonContent } from '../content';
|
||||
import { componentOnReady } from '../helpers';
|
||||
|
||||
import { enableHideCaretOnScroll } from './hacks/hide-caret';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { readTask, writeTask } from '@stencil/core';
|
||||
import { findClosestIonContent, scrollToTop } from '@utils/content';
|
||||
|
||||
import { findClosestIonContent, scrollToTop } from './content';
|
||||
import { componentOnReady } from './helpers';
|
||||
|
||||
export const startStatusTap = () => {
|
||||
|
||||
Reference in New Issue
Block a user