@ionic/react 8.8.12-dev.11781813448.16e7a064 → 8.8.12-dev.11782342444.186b6e9c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +998 -306
- package/dist/index.js.map +1 -1
- package/dist/types/components/IonActionSheet.d.ts +1 -1
- package/dist/types/components/IonAlert.d.ts +1 -1
- package/dist/types/components/IonIcon.d.ts +1 -1
- package/dist/types/components/IonLoading.d.ts +1 -1
- package/dist/types/components/IonModal.d.ts +1 -1
- package/dist/types/components/IonPage.d.ts +1 -1
- package/dist/types/components/IonPopover.d.ts +1 -1
- package/dist/types/components/IonRoute.d.ts +3 -2
- package/dist/types/components/IonRouterContext.d.ts +8 -0
- package/dist/types/components/IonRouterOutlet.d.ts +1 -0
- package/dist/types/components/IonToast.d.ts +1 -1
- package/dist/types/components/components.d.ts +326 -0
- package/dist/types/components/createInlineOverlayComponent.d.ts +1 -1
- package/dist/types/components/createRoutingComponent.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -5
- package/dist/types/components/navigation/IonNav.d.ts +2 -1
- package/dist/types/components/navigation/IonTabBar.d.ts +1 -1
- package/dist/types/components/navigation/IonTabs.d.ts +1 -2
- package/dist/types/components/react-component-lib/createComponent.d.ts +1 -1
- package/dist/types/components/react-component-lib/utils/index.d.ts +1 -1
- package/dist/types/components/routing-proxies.d.ts +7 -7
- package/dist/types/components/utils/index.d.ts +2 -11
- package/dist/types/contexts/NavContext.d.ts +0 -2
- package/dist/types/lifecycle/IonLifeCycleHOC.d.ts +1 -3
- package/dist/types/routing/LocationHistory.d.ts +7 -0
- package/dist/types/routing/NavManager.d.ts +2 -4
- package/dist/types/routing/OutletPageManager.d.ts +2 -0
- package/dist/types/routing/PageManager.d.ts +8 -0
- package/dist/types/routing/RouteManagerContext.d.ts +6 -1
- package/dist/types/routing/ViewLifeCycleManager.d.ts +1 -0
- package/dist/types/routing/ViewStacks.d.ts +2 -2
- package/package.json +8 -8
- package/dist/types/components/IonPickerLegacy.d.ts +0 -2
- package/dist/types/components/IonRedirect.d.ts +0 -16
- package/dist/types/components/proxies.d.ts +0 -73
- package/dist/types/hooks/useIonPicker.d.ts +0 -27
package/dist/index.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useContext, useRef, useEffect, createElement, useState, useMemo, Fragment as Fragment$1, useCallback } from 'react';
|
|
3
|
-
import { isPlatform as isPlatform$1, getPlatforms as getPlatforms$1, componentOnReady, createAnimation, actionSheetController, alertController, toastController, modalController, popoverController,
|
|
3
|
+
import { isPlatform as isPlatform$1, getPlatforms as getPlatforms$1, componentOnReady, createAnimation, actionSheetController, alertController, toastController, modalController, popoverController, loadingController, initialize } from '@ionic/core/components';
|
|
4
4
|
export { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getTimeGivenProgression, iosTransitionAnimation, mdTransitionAnimation, openURL } from '@ionic/core/components';
|
|
5
|
-
import
|
|
6
|
-
import { defineCustomElement as defineCustomElement$
|
|
7
|
-
import { defineCustomElement as defineCustomElement$
|
|
8
|
-
import { defineCustomElement as defineCustomElement$3 } from '@ionic/core/components/ion-avatar.js';
|
|
9
|
-
import { defineCustomElement as defineCustomElement$4 } from '@ionic/core/components/ion-backdrop.js';
|
|
10
|
-
import { defineCustomElement as defineCustomElement$5 } from '@ionic/core/components/ion-badge.js';
|
|
11
|
-
import { defineCustomElement as defineCustomElement$6 } from '@ionic/core/components/ion-breadcrumbs.js';
|
|
12
|
-
import { defineCustomElement as defineCustomElement$7 } from '@ionic/core/components/ion-buttons.js';
|
|
13
|
-
import { defineCustomElement as defineCustomElement$8 } from '@ionic/core/components/ion-card-content.js';
|
|
14
|
-
import { defineCustomElement as defineCustomElement$9 } from '@ionic/core/components/ion-card-header.js';
|
|
15
|
-
import { defineCustomElement as defineCustomElement$a } from '@ionic/core/components/ion-card-subtitle.js';
|
|
16
|
-
import { defineCustomElement as defineCustomElement$b } from '@ionic/core/components/ion-card-title.js';
|
|
17
|
-
import { defineCustomElement as defineCustomElement$c } from '@ionic/core/components/ion-checkbox.js';
|
|
18
|
-
import { defineCustomElement as defineCustomElement$d } from '@ionic/core/components/ion-chip.js';
|
|
19
|
-
import { defineCustomElement as defineCustomElement$e } from '@ionic/core/components/ion-col.js';
|
|
20
|
-
import { defineCustomElement as defineCustomElement$f } from '@ionic/core/components/ion-content.js';
|
|
21
|
-
import { defineCustomElement as defineCustomElement$
|
|
22
|
-
import { defineCustomElement as defineCustomElement$
|
|
23
|
-
import { defineCustomElement as defineCustomElement$
|
|
24
|
-
import { defineCustomElement as defineCustomElement$
|
|
25
|
-
import { defineCustomElement as defineCustomElement$k } from '@ionic/core/components/ion-footer.js';
|
|
26
|
-
import { defineCustomElement as defineCustomElement$l } from '@ionic/core/components/ion-grid.js';
|
|
27
|
-
import { defineCustomElement as defineCustomElement$m } from '@ionic/core/components/ion-header.js';
|
|
28
|
-
import { defineCustomElement as defineCustomElement$n } from '@ionic/core/components/ion-img.js';
|
|
29
|
-
import { defineCustomElement as defineCustomElement$
|
|
30
|
-
import { defineCustomElement as defineCustomElement$
|
|
31
|
-
import { defineCustomElement as defineCustomElement$
|
|
32
|
-
import { defineCustomElement as defineCustomElement$
|
|
33
|
-
import { defineCustomElement as defineCustomElement$
|
|
34
|
-
import { defineCustomElement as defineCustomElement$t } from '@ionic/core/components/ion-item-divider.js';
|
|
35
|
-
import { defineCustomElement as defineCustomElement$u } from '@ionic/core/components/ion-item-group.js';
|
|
36
|
-
import { defineCustomElement as defineCustomElement$v } from '@ionic/core/components/ion-item-options.js';
|
|
37
|
-
import { defineCustomElement as defineCustomElement$w } from '@ionic/core/components/ion-item-sliding.js';
|
|
38
|
-
import { defineCustomElement as defineCustomElement$x } from '@ionic/core/components/ion-label.js';
|
|
39
|
-
import { defineCustomElement as defineCustomElement$
|
|
40
|
-
import { defineCustomElement as defineCustomElement$
|
|
41
|
-
import { defineCustomElement as defineCustomElement$
|
|
42
|
-
import { defineCustomElement as defineCustomElement$
|
|
43
|
-
import { defineCustomElement as defineCustomElement$
|
|
44
|
-
import { defineCustomElement as defineCustomElement$
|
|
45
|
-
import { defineCustomElement as defineCustomElement$
|
|
46
|
-
import { defineCustomElement as defineCustomElement$E } from '@ionic/core/components/ion-note.js';
|
|
47
|
-
import { defineCustomElement as defineCustomElement$
|
|
48
|
-
import { defineCustomElement as defineCustomElement$G } from '@ionic/core/components/ion-picker-column.js';
|
|
49
|
-
import { defineCustomElement as defineCustomElement$
|
|
50
|
-
import { defineCustomElement as defineCustomElement$I } from '@ionic/core/components/ion-progress-bar.js';
|
|
51
|
-
import { defineCustomElement as defineCustomElement$
|
|
52
|
-
import { defineCustomElement as defineCustomElement$
|
|
53
|
-
import { defineCustomElement as defineCustomElement$L } from '@ionic/core/components/ion-range.js';
|
|
54
|
-
import { defineCustomElement as defineCustomElement$
|
|
55
|
-
import { defineCustomElement as defineCustomElement$
|
|
56
|
-
import { defineCustomElement as defineCustomElement$
|
|
57
|
-
import { defineCustomElement as defineCustomElement$
|
|
58
|
-
import { defineCustomElement as defineCustomElement$Q } from '@ionic/core/components/ion-ripple-effect.js';
|
|
59
|
-
import { defineCustomElement as defineCustomElement$R } from '@ionic/core/components/ion-row.js';
|
|
60
|
-
import { defineCustomElement as defineCustomElement$S } from '@ionic/core/components/ion-searchbar.js';
|
|
61
|
-
import { defineCustomElement as defineCustomElement$
|
|
62
|
-
import { defineCustomElement as defineCustomElement$
|
|
63
|
-
import { defineCustomElement as defineCustomElement$
|
|
64
|
-
import { defineCustomElement as defineCustomElement$
|
|
65
|
-
import { defineCustomElement as defineCustomElement$
|
|
66
|
-
import { defineCustomElement as defineCustomElement$
|
|
67
|
-
import { defineCustomElement as defineCustomElement$
|
|
68
|
-
import { defineCustomElement as defineCustomElement$_ } from '@ionic/core/components/ion-skeleton-text.js';
|
|
69
|
-
import { defineCustomElement as defineCustomElement$$ } from '@ionic/core/components/ion-spinner.js';
|
|
70
|
-
import { defineCustomElement as defineCustomElement$10 } from '@ionic/core/components/ion-split-pane.js';
|
|
71
|
-
import { defineCustomElement as defineCustomElement$11 } from '@ionic/core/components/ion-tab.js';
|
|
72
|
-
import { defineCustomElement as defineCustomElement$12 } from '@ionic/core/components/ion-text.js';
|
|
73
|
-
import { defineCustomElement as defineCustomElement$13 } from '@ionic/core/components/ion-textarea.js';
|
|
74
|
-
import { defineCustomElement as defineCustomElement$14 } from '@ionic/core/components/ion-thumbnail.js';
|
|
75
|
-
import { defineCustomElement as defineCustomElement$15 } from '@ionic/core/components/ion-title.js';
|
|
76
|
-
import { defineCustomElement as defineCustomElement$16 } from '@ionic/core/components/ion-toggle.js';
|
|
77
|
-
import { defineCustomElement as defineCustomElement$17 } from '@ionic/core/components/ion-toolbar.js';
|
|
5
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { IonAccordionGroup as IonAccordionGroup$1, defineCustomElement as defineCustomElement$2 } from '@ionic/core/components/ion-accordion-group.js';
|
|
7
|
+
import { IonAccordion as IonAccordion$1, defineCustomElement as defineCustomElement$1 } from '@ionic/core/components/ion-accordion.js';
|
|
8
|
+
import { IonAvatar as IonAvatar$1, defineCustomElement as defineCustomElement$3 } from '@ionic/core/components/ion-avatar.js';
|
|
9
|
+
import { IonBackdrop as IonBackdrop$1, defineCustomElement as defineCustomElement$4 } from '@ionic/core/components/ion-backdrop.js';
|
|
10
|
+
import { IonBadge as IonBadge$1, defineCustomElement as defineCustomElement$5 } from '@ionic/core/components/ion-badge.js';
|
|
11
|
+
import { IonBreadcrumbs as IonBreadcrumbs$1, defineCustomElement as defineCustomElement$6 } from '@ionic/core/components/ion-breadcrumbs.js';
|
|
12
|
+
import { IonButtons as IonButtons$1, defineCustomElement as defineCustomElement$7 } from '@ionic/core/components/ion-buttons.js';
|
|
13
|
+
import { IonCardContent as IonCardContent$1, defineCustomElement as defineCustomElement$8 } from '@ionic/core/components/ion-card-content.js';
|
|
14
|
+
import { IonCardHeader as IonCardHeader$1, defineCustomElement as defineCustomElement$9 } from '@ionic/core/components/ion-card-header.js';
|
|
15
|
+
import { IonCardSubtitle as IonCardSubtitle$1, defineCustomElement as defineCustomElement$a } from '@ionic/core/components/ion-card-subtitle.js';
|
|
16
|
+
import { IonCardTitle as IonCardTitle$1, defineCustomElement as defineCustomElement$b } from '@ionic/core/components/ion-card-title.js';
|
|
17
|
+
import { IonCheckbox as IonCheckbox$1, defineCustomElement as defineCustomElement$c } from '@ionic/core/components/ion-checkbox.js';
|
|
18
|
+
import { IonChip as IonChip$1, defineCustomElement as defineCustomElement$d } from '@ionic/core/components/ion-chip.js';
|
|
19
|
+
import { IonCol as IonCol$1, defineCustomElement as defineCustomElement$e } from '@ionic/core/components/ion-col.js';
|
|
20
|
+
import { IonContent as IonContent$1, defineCustomElement as defineCustomElement$f } from '@ionic/core/components/ion-content.js';
|
|
21
|
+
import { IonDatetimeButton as IonDatetimeButton$1, defineCustomElement as defineCustomElement$h } from '@ionic/core/components/ion-datetime-button.js';
|
|
22
|
+
import { IonDatetime as IonDatetime$1, defineCustomElement as defineCustomElement$g } from '@ionic/core/components/ion-datetime.js';
|
|
23
|
+
import { IonFabList as IonFabList$1, defineCustomElement as defineCustomElement$j } from '@ionic/core/components/ion-fab-list.js';
|
|
24
|
+
import { IonFab as IonFab$1, defineCustomElement as defineCustomElement$i } from '@ionic/core/components/ion-fab.js';
|
|
25
|
+
import { IonFooter as IonFooter$1, defineCustomElement as defineCustomElement$k } from '@ionic/core/components/ion-footer.js';
|
|
26
|
+
import { IonGrid as IonGrid$1, defineCustomElement as defineCustomElement$l } from '@ionic/core/components/ion-grid.js';
|
|
27
|
+
import { IonHeader as IonHeader$1, defineCustomElement as defineCustomElement$m } from '@ionic/core/components/ion-header.js';
|
|
28
|
+
import { IonImg as IonImg$1, defineCustomElement as defineCustomElement$n } from '@ionic/core/components/ion-img.js';
|
|
29
|
+
import { IonInfiniteScrollContent as IonInfiniteScrollContent$1, defineCustomElement as defineCustomElement$p } from '@ionic/core/components/ion-infinite-scroll-content.js';
|
|
30
|
+
import { IonInfiniteScroll as IonInfiniteScroll$1, defineCustomElement as defineCustomElement$o } from '@ionic/core/components/ion-infinite-scroll.js';
|
|
31
|
+
import { IonInputOtp as IonInputOtp$1, defineCustomElement as defineCustomElement$r } from '@ionic/core/components/ion-input-otp.js';
|
|
32
|
+
import { IonInputPasswordToggle as IonInputPasswordToggle$1, defineCustomElement as defineCustomElement$s } from '@ionic/core/components/ion-input-password-toggle.js';
|
|
33
|
+
import { IonInput as IonInput$1, defineCustomElement as defineCustomElement$q } from '@ionic/core/components/ion-input.js';
|
|
34
|
+
import { IonItemDivider as IonItemDivider$1, defineCustomElement as defineCustomElement$t } from '@ionic/core/components/ion-item-divider.js';
|
|
35
|
+
import { IonItemGroup as IonItemGroup$1, defineCustomElement as defineCustomElement$u } from '@ionic/core/components/ion-item-group.js';
|
|
36
|
+
import { IonItemOptions as IonItemOptions$1, defineCustomElement as defineCustomElement$v } from '@ionic/core/components/ion-item-options.js';
|
|
37
|
+
import { IonItemSliding as IonItemSliding$1, defineCustomElement as defineCustomElement$w } from '@ionic/core/components/ion-item-sliding.js';
|
|
38
|
+
import { IonLabel as IonLabel$1, defineCustomElement as defineCustomElement$x } from '@ionic/core/components/ion-label.js';
|
|
39
|
+
import { IonListHeader as IonListHeader$1, defineCustomElement as defineCustomElement$z } from '@ionic/core/components/ion-list-header.js';
|
|
40
|
+
import { IonList as IonList$1, defineCustomElement as defineCustomElement$y } from '@ionic/core/components/ion-list.js';
|
|
41
|
+
import { IonMenuButton as IonMenuButton$1, defineCustomElement as defineCustomElement$B } from '@ionic/core/components/ion-menu-button.js';
|
|
42
|
+
import { IonMenuToggle as IonMenuToggle$1, defineCustomElement as defineCustomElement$C } from '@ionic/core/components/ion-menu-toggle.js';
|
|
43
|
+
import { IonMenu as IonMenu$1, defineCustomElement as defineCustomElement$A } from '@ionic/core/components/ion-menu.js';
|
|
44
|
+
import { IonNavLink as IonNavLink$1, defineCustomElement as defineCustomElement$D } from '@ionic/core/components/ion-nav-link.js';
|
|
45
|
+
import { defineCustomElement as defineCustomElement$1l } from '@ionic/core/components/ion-nav.js';
|
|
46
|
+
import { IonNote as IonNote$1, defineCustomElement as defineCustomElement$E } from '@ionic/core/components/ion-note.js';
|
|
47
|
+
import { IonPickerColumnOption as IonPickerColumnOption$1, defineCustomElement as defineCustomElement$H } from '@ionic/core/components/ion-picker-column-option.js';
|
|
48
|
+
import { IonPickerColumn as IonPickerColumn$1, defineCustomElement as defineCustomElement$G } from '@ionic/core/components/ion-picker-column.js';
|
|
49
|
+
import { IonPicker as IonPicker$1, defineCustomElement as defineCustomElement$F } from '@ionic/core/components/ion-picker.js';
|
|
50
|
+
import { IonProgressBar as IonProgressBar$1, defineCustomElement as defineCustomElement$I } from '@ionic/core/components/ion-progress-bar.js';
|
|
51
|
+
import { IonRadioGroup as IonRadioGroup$1, defineCustomElement as defineCustomElement$K } from '@ionic/core/components/ion-radio-group.js';
|
|
52
|
+
import { IonRadio as IonRadio$1, defineCustomElement as defineCustomElement$J } from '@ionic/core/components/ion-radio.js';
|
|
53
|
+
import { IonRange as IonRange$1, defineCustomElement as defineCustomElement$L } from '@ionic/core/components/ion-range.js';
|
|
54
|
+
import { IonRefresherContent as IonRefresherContent$1, defineCustomElement as defineCustomElement$N } from '@ionic/core/components/ion-refresher-content.js';
|
|
55
|
+
import { IonRefresher as IonRefresher$1, defineCustomElement as defineCustomElement$M } from '@ionic/core/components/ion-refresher.js';
|
|
56
|
+
import { IonReorderGroup as IonReorderGroup$1, defineCustomElement as defineCustomElement$P } from '@ionic/core/components/ion-reorder-group.js';
|
|
57
|
+
import { IonReorder as IonReorder$1, defineCustomElement as defineCustomElement$O } from '@ionic/core/components/ion-reorder.js';
|
|
58
|
+
import { IonRippleEffect as IonRippleEffect$1, defineCustomElement as defineCustomElement$Q } from '@ionic/core/components/ion-ripple-effect.js';
|
|
59
|
+
import { IonRow as IonRow$1, defineCustomElement as defineCustomElement$R } from '@ionic/core/components/ion-row.js';
|
|
60
|
+
import { IonSearchbar as IonSearchbar$1, defineCustomElement as defineCustomElement$S } from '@ionic/core/components/ion-searchbar.js';
|
|
61
|
+
import { IonSegmentButton as IonSegmentButton$1, defineCustomElement as defineCustomElement$U } from '@ionic/core/components/ion-segment-button.js';
|
|
62
|
+
import { IonSegmentContent as IonSegmentContent$1, defineCustomElement as defineCustomElement$V } from '@ionic/core/components/ion-segment-content.js';
|
|
63
|
+
import { IonSegmentView as IonSegmentView$1, defineCustomElement as defineCustomElement$W } from '@ionic/core/components/ion-segment-view.js';
|
|
64
|
+
import { IonSegment as IonSegment$1, defineCustomElement as defineCustomElement$T } from '@ionic/core/components/ion-segment.js';
|
|
65
|
+
import { IonSelectModal as IonSelectModal$1, defineCustomElement as defineCustomElement$Y } from '@ionic/core/components/ion-select-modal.js';
|
|
66
|
+
import { IonSelectOption as IonSelectOption$1, defineCustomElement as defineCustomElement$Z } from '@ionic/core/components/ion-select-option.js';
|
|
67
|
+
import { IonSelect as IonSelect$1, defineCustomElement as defineCustomElement$X } from '@ionic/core/components/ion-select.js';
|
|
68
|
+
import { IonSkeletonText as IonSkeletonText$1, defineCustomElement as defineCustomElement$_ } from '@ionic/core/components/ion-skeleton-text.js';
|
|
69
|
+
import { IonSpinner as IonSpinner$1, defineCustomElement as defineCustomElement$$ } from '@ionic/core/components/ion-spinner.js';
|
|
70
|
+
import { IonSplitPane as IonSplitPane$1, defineCustomElement as defineCustomElement$10 } from '@ionic/core/components/ion-split-pane.js';
|
|
71
|
+
import { IonTab as IonTab$1, defineCustomElement as defineCustomElement$11 } from '@ionic/core/components/ion-tab.js';
|
|
72
|
+
import { IonText as IonText$1, defineCustomElement as defineCustomElement$12 } from '@ionic/core/components/ion-text.js';
|
|
73
|
+
import { IonTextarea as IonTextarea$1, defineCustomElement as defineCustomElement$13 } from '@ionic/core/components/ion-textarea.js';
|
|
74
|
+
import { IonThumbnail as IonThumbnail$1, defineCustomElement as defineCustomElement$14 } from '@ionic/core/components/ion-thumbnail.js';
|
|
75
|
+
import { IonTitle as IonTitle$1, defineCustomElement as defineCustomElement$15 } from '@ionic/core/components/ion-title.js';
|
|
76
|
+
import { IonToggle as IonToggle$1, defineCustomElement as defineCustomElement$16 } from '@ionic/core/components/ion-toggle.js';
|
|
77
|
+
import { IonToolbar as IonToolbar$1, defineCustomElement as defineCustomElement$17 } from '@ionic/core/components/ion-toolbar.js';
|
|
78
78
|
import { IonBreadcrumb as IonBreadcrumb$1 } from '@ionic/core/components/ion-breadcrumb.js';
|
|
79
79
|
import { IonButton as IonButton$1 } from '@ionic/core/components/ion-button.js';
|
|
80
80
|
import { IonCard as IonCard$1 } from '@ionic/core/components/ion-card.js';
|
|
@@ -83,19 +83,19 @@ import { IonItemOption as IonItemOption$1 } from '@ionic/core/components/ion-ite
|
|
|
83
83
|
import { IonItem as IonItem$1 } from '@ionic/core/components/ion-item.js';
|
|
84
84
|
import { IonRouterLink as IonRouterLink$1 } from '@ionic/core/components/ion-router-link.js';
|
|
85
85
|
import { defineCustomElement as defineCustomElement$18 } from '@ionic/core/components/ion-alert.js';
|
|
86
|
+
import ReactDOM, { createPortal } from 'react-dom';
|
|
86
87
|
import { defineCustomElement as defineCustomElement$19 } from '@ionic/core/components/ion-loading.js';
|
|
87
88
|
import { defineCustomElement as defineCustomElement$1a } from '@ionic/core/components/ion-toast.js';
|
|
88
|
-
import { defineCustomElement as defineCustomElement$1b } from '@ionic/core/components/ion-
|
|
89
|
-
import { defineCustomElement as defineCustomElement$1c } from '@ionic/core/components/ion-
|
|
90
|
-
import { defineCustomElement as defineCustomElement$1d } from '@ionic/core/components/ion-
|
|
91
|
-
import { defineCustomElement as defineCustomElement$
|
|
92
|
-
import { defineCustomElement as defineCustomElement$
|
|
93
|
-
import { defineCustomElement as defineCustomElement$1i } from '@ionic/core/components/ion-
|
|
94
|
-
import { defineCustomElement as defineCustomElement$
|
|
95
|
-
import { defineCustomElement as defineCustomElement$
|
|
96
|
-
import { defineCustomElement as defineCustomElement$
|
|
97
|
-
import { defineCustomElement as defineCustomElement$
|
|
98
|
-
import { defineCustomElement as defineCustomElement$1l } from 'ionicons/components/ion-icon.js';
|
|
89
|
+
import { defineCustomElement as defineCustomElement$1b } from '@ionic/core/components/ion-action-sheet.js';
|
|
90
|
+
import { defineCustomElement as defineCustomElement$1c } from '@ionic/core/components/ion-modal.js';
|
|
91
|
+
import { defineCustomElement as defineCustomElement$1d } from '@ionic/core/components/ion-popover.js';
|
|
92
|
+
import { defineCustomElement as defineCustomElement$1j } from '@ionic/core/components/ion-app.js';
|
|
93
|
+
import { defineCustomElement as defineCustomElement$1h } from '@ionic/core/components/ion-back-button.js';
|
|
94
|
+
import { defineCustomElement as defineCustomElement$1i } from '@ionic/core/components/ion-router-outlet.js';
|
|
95
|
+
import { defineCustomElement as defineCustomElement$1f } from '@ionic/core/components/ion-tab-bar.js';
|
|
96
|
+
import { defineCustomElement as defineCustomElement$1e } from '@ionic/core/components/ion-tab-button.js';
|
|
97
|
+
import { defineCustomElement as defineCustomElement$1g } from '@ionic/core/components/ion-tabs.js';
|
|
98
|
+
import { defineCustomElement as defineCustomElement$1k } from 'ionicons/components/ion-icon.js';
|
|
99
99
|
|
|
100
100
|
const IonLifeCycleContext = /*@__PURE__*/ React.createContext({
|
|
101
101
|
onIonViewWillEnter: () => {
|
|
@@ -380,9 +380,7 @@ const useIonViewDidLeave = (callback, deps = []) => {
|
|
|
380
380
|
};
|
|
381
381
|
|
|
382
382
|
const NavContext = /*@__PURE__*/ React.createContext({
|
|
383
|
-
getIonRedirect: () => undefined,
|
|
384
383
|
getIonRoute: () => undefined,
|
|
385
|
-
getPageManager: () => undefined,
|
|
386
384
|
getStackManager: () => undefined,
|
|
387
385
|
goBack: (route) => {
|
|
388
386
|
if (typeof window !== 'undefined') {
|
|
@@ -414,6 +412,699 @@ const NavContext = /*@__PURE__*/ React.createContext({
|
|
|
414
412
|
},
|
|
415
413
|
});
|
|
416
414
|
|
|
415
|
+
const IonAccordion =
|
|
416
|
+
/*@__PURE__*/ createComponent({
|
|
417
|
+
tagName: 'ion-accordion',
|
|
418
|
+
elementClass: IonAccordion$1,
|
|
419
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
420
|
+
react: React,
|
|
421
|
+
events: {},
|
|
422
|
+
defineCustomElement: defineCustomElement$1,
|
|
423
|
+
});
|
|
424
|
+
const IonAccordionGroup = /*@__PURE__*/ createComponent({
|
|
425
|
+
tagName: 'ion-accordion-group',
|
|
426
|
+
elementClass: IonAccordionGroup$1,
|
|
427
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
428
|
+
react: React,
|
|
429
|
+
events: { onIonChange: 'ionChange' },
|
|
430
|
+
defineCustomElement: defineCustomElement$2,
|
|
431
|
+
});
|
|
432
|
+
const IonAvatar =
|
|
433
|
+
/*@__PURE__*/ createComponent({
|
|
434
|
+
tagName: 'ion-avatar',
|
|
435
|
+
elementClass: IonAvatar$1,
|
|
436
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
437
|
+
react: React,
|
|
438
|
+
events: {},
|
|
439
|
+
defineCustomElement: defineCustomElement$3,
|
|
440
|
+
});
|
|
441
|
+
const IonBackdrop =
|
|
442
|
+
/*@__PURE__*/ createComponent({
|
|
443
|
+
tagName: 'ion-backdrop',
|
|
444
|
+
elementClass: IonBackdrop$1,
|
|
445
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
446
|
+
react: React,
|
|
447
|
+
events: { onIonBackdropTap: 'ionBackdropTap' },
|
|
448
|
+
defineCustomElement: defineCustomElement$4,
|
|
449
|
+
});
|
|
450
|
+
const IonBadge =
|
|
451
|
+
/*@__PURE__*/ createComponent({
|
|
452
|
+
tagName: 'ion-badge',
|
|
453
|
+
elementClass: IonBadge$1,
|
|
454
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
455
|
+
react: React,
|
|
456
|
+
events: {},
|
|
457
|
+
defineCustomElement: defineCustomElement$5,
|
|
458
|
+
});
|
|
459
|
+
const IonBreadcrumbs = /*@__PURE__*/ createComponent({
|
|
460
|
+
tagName: 'ion-breadcrumbs',
|
|
461
|
+
elementClass: IonBreadcrumbs$1,
|
|
462
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
463
|
+
react: React,
|
|
464
|
+
events: { onIonCollapsedClick: 'ionCollapsedClick' },
|
|
465
|
+
defineCustomElement: defineCustomElement$6,
|
|
466
|
+
});
|
|
467
|
+
const IonButtons =
|
|
468
|
+
/*@__PURE__*/ createComponent({
|
|
469
|
+
tagName: 'ion-buttons',
|
|
470
|
+
elementClass: IonButtons$1,
|
|
471
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
472
|
+
react: React,
|
|
473
|
+
events: {},
|
|
474
|
+
defineCustomElement: defineCustomElement$7,
|
|
475
|
+
});
|
|
476
|
+
const IonCardContent = /*@__PURE__*/ createComponent({
|
|
477
|
+
tagName: 'ion-card-content',
|
|
478
|
+
elementClass: IonCardContent$1,
|
|
479
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
480
|
+
react: React,
|
|
481
|
+
events: {},
|
|
482
|
+
defineCustomElement: defineCustomElement$8,
|
|
483
|
+
});
|
|
484
|
+
const IonCardHeader =
|
|
485
|
+
/*@__PURE__*/ createComponent({
|
|
486
|
+
tagName: 'ion-card-header',
|
|
487
|
+
elementClass: IonCardHeader$1,
|
|
488
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
489
|
+
react: React,
|
|
490
|
+
events: {},
|
|
491
|
+
defineCustomElement: defineCustomElement$9,
|
|
492
|
+
});
|
|
493
|
+
const IonCardSubtitle = /*@__PURE__*/ createComponent({
|
|
494
|
+
tagName: 'ion-card-subtitle',
|
|
495
|
+
elementClass: IonCardSubtitle$1,
|
|
496
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
497
|
+
react: React,
|
|
498
|
+
events: {},
|
|
499
|
+
defineCustomElement: defineCustomElement$a,
|
|
500
|
+
});
|
|
501
|
+
const IonCardTitle =
|
|
502
|
+
/*@__PURE__*/ createComponent({
|
|
503
|
+
tagName: 'ion-card-title',
|
|
504
|
+
elementClass: IonCardTitle$1,
|
|
505
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
506
|
+
react: React,
|
|
507
|
+
events: {},
|
|
508
|
+
defineCustomElement: defineCustomElement$b,
|
|
509
|
+
});
|
|
510
|
+
const IonCheckbox =
|
|
511
|
+
/*@__PURE__*/ createComponent({
|
|
512
|
+
tagName: 'ion-checkbox',
|
|
513
|
+
elementClass: IonCheckbox$1,
|
|
514
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
515
|
+
react: React,
|
|
516
|
+
events: {
|
|
517
|
+
onIonChange: 'ionChange',
|
|
518
|
+
onIonFocus: 'ionFocus',
|
|
519
|
+
onIonBlur: 'ionBlur',
|
|
520
|
+
},
|
|
521
|
+
defineCustomElement: defineCustomElement$c,
|
|
522
|
+
});
|
|
523
|
+
const IonChip =
|
|
524
|
+
/*@__PURE__*/ createComponent({
|
|
525
|
+
tagName: 'ion-chip',
|
|
526
|
+
elementClass: IonChip$1,
|
|
527
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
528
|
+
react: React,
|
|
529
|
+
events: {},
|
|
530
|
+
defineCustomElement: defineCustomElement$d,
|
|
531
|
+
});
|
|
532
|
+
const IonCol =
|
|
533
|
+
/*@__PURE__*/ createComponent({
|
|
534
|
+
tagName: 'ion-col',
|
|
535
|
+
elementClass: IonCol$1,
|
|
536
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
537
|
+
react: React,
|
|
538
|
+
events: {},
|
|
539
|
+
defineCustomElement: defineCustomElement$e,
|
|
540
|
+
});
|
|
541
|
+
const IonContent =
|
|
542
|
+
/*@__PURE__*/ createComponent({
|
|
543
|
+
tagName: 'ion-content',
|
|
544
|
+
elementClass: IonContent$1,
|
|
545
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
546
|
+
react: React,
|
|
547
|
+
events: {
|
|
548
|
+
onIonScrollStart: 'ionScrollStart',
|
|
549
|
+
onIonScroll: 'ionScroll',
|
|
550
|
+
onIonScrollEnd: 'ionScrollEnd',
|
|
551
|
+
},
|
|
552
|
+
defineCustomElement: defineCustomElement$f,
|
|
553
|
+
});
|
|
554
|
+
const IonDatetime =
|
|
555
|
+
/*@__PURE__*/ createComponent({
|
|
556
|
+
tagName: 'ion-datetime',
|
|
557
|
+
elementClass: IonDatetime$1,
|
|
558
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
559
|
+
react: React,
|
|
560
|
+
events: {
|
|
561
|
+
onIonCancel: 'ionCancel',
|
|
562
|
+
onIonChange: 'ionChange',
|
|
563
|
+
onIonFocus: 'ionFocus',
|
|
564
|
+
onIonBlur: 'ionBlur',
|
|
565
|
+
},
|
|
566
|
+
defineCustomElement: defineCustomElement$g,
|
|
567
|
+
});
|
|
568
|
+
const IonDatetimeButton = /*@__PURE__*/ createComponent({
|
|
569
|
+
tagName: 'ion-datetime-button',
|
|
570
|
+
elementClass: IonDatetimeButton$1,
|
|
571
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
572
|
+
react: React,
|
|
573
|
+
events: {},
|
|
574
|
+
defineCustomElement: defineCustomElement$h,
|
|
575
|
+
});
|
|
576
|
+
const IonFab =
|
|
577
|
+
/*@__PURE__*/ createComponent({
|
|
578
|
+
tagName: 'ion-fab',
|
|
579
|
+
elementClass: IonFab$1,
|
|
580
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
581
|
+
react: React,
|
|
582
|
+
events: {},
|
|
583
|
+
defineCustomElement: defineCustomElement$i,
|
|
584
|
+
});
|
|
585
|
+
const IonFabList =
|
|
586
|
+
/*@__PURE__*/ createComponent({
|
|
587
|
+
tagName: 'ion-fab-list',
|
|
588
|
+
elementClass: IonFabList$1,
|
|
589
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
590
|
+
react: React,
|
|
591
|
+
events: {},
|
|
592
|
+
defineCustomElement: defineCustomElement$j,
|
|
593
|
+
});
|
|
594
|
+
const IonFooter =
|
|
595
|
+
/*@__PURE__*/ createComponent({
|
|
596
|
+
tagName: 'ion-footer',
|
|
597
|
+
elementClass: IonFooter$1,
|
|
598
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
599
|
+
react: React,
|
|
600
|
+
events: {},
|
|
601
|
+
defineCustomElement: defineCustomElement$k,
|
|
602
|
+
});
|
|
603
|
+
const IonGrid =
|
|
604
|
+
/*@__PURE__*/ createComponent({
|
|
605
|
+
tagName: 'ion-grid',
|
|
606
|
+
elementClass: IonGrid$1,
|
|
607
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
608
|
+
react: React,
|
|
609
|
+
events: {},
|
|
610
|
+
defineCustomElement: defineCustomElement$l,
|
|
611
|
+
});
|
|
612
|
+
const IonHeader =
|
|
613
|
+
/*@__PURE__*/ createComponent({
|
|
614
|
+
tagName: 'ion-header',
|
|
615
|
+
elementClass: IonHeader$1,
|
|
616
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
617
|
+
react: React,
|
|
618
|
+
events: {},
|
|
619
|
+
defineCustomElement: defineCustomElement$m,
|
|
620
|
+
});
|
|
621
|
+
const IonImg =
|
|
622
|
+
/*@__PURE__*/ createComponent({
|
|
623
|
+
tagName: 'ion-img',
|
|
624
|
+
elementClass: IonImg$1,
|
|
625
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
626
|
+
react: React,
|
|
627
|
+
events: {
|
|
628
|
+
onIonImgWillLoad: 'ionImgWillLoad',
|
|
629
|
+
onIonImgDidLoad: 'ionImgDidLoad',
|
|
630
|
+
onIonError: 'ionError',
|
|
631
|
+
},
|
|
632
|
+
defineCustomElement: defineCustomElement$n,
|
|
633
|
+
});
|
|
634
|
+
const IonInfiniteScroll = /*@__PURE__*/ createComponent({
|
|
635
|
+
tagName: 'ion-infinite-scroll',
|
|
636
|
+
elementClass: IonInfiniteScroll$1,
|
|
637
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
638
|
+
react: React,
|
|
639
|
+
events: { onIonInfinite: 'ionInfinite' },
|
|
640
|
+
defineCustomElement: defineCustomElement$o,
|
|
641
|
+
});
|
|
642
|
+
const IonInfiniteScrollContent = /*@__PURE__*/ createComponent({
|
|
643
|
+
tagName: 'ion-infinite-scroll-content',
|
|
644
|
+
elementClass: IonInfiniteScrollContent$1,
|
|
645
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
646
|
+
react: React,
|
|
647
|
+
events: {},
|
|
648
|
+
defineCustomElement: defineCustomElement$p,
|
|
649
|
+
});
|
|
650
|
+
const IonInput =
|
|
651
|
+
/*@__PURE__*/ createComponent({
|
|
652
|
+
tagName: 'ion-input',
|
|
653
|
+
elementClass: IonInput$1,
|
|
654
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
655
|
+
react: React,
|
|
656
|
+
events: {
|
|
657
|
+
onIonInput: 'ionInput',
|
|
658
|
+
onIonChange: 'ionChange',
|
|
659
|
+
onIonBlur: 'ionBlur',
|
|
660
|
+
onIonFocus: 'ionFocus',
|
|
661
|
+
},
|
|
662
|
+
defineCustomElement: defineCustomElement$q,
|
|
663
|
+
});
|
|
664
|
+
const IonInputOtp =
|
|
665
|
+
/*@__PURE__*/ createComponent({
|
|
666
|
+
tagName: 'ion-input-otp',
|
|
667
|
+
elementClass: IonInputOtp$1,
|
|
668
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
669
|
+
react: React,
|
|
670
|
+
events: {
|
|
671
|
+
onIonInput: 'ionInput',
|
|
672
|
+
onIonChange: 'ionChange',
|
|
673
|
+
onIonComplete: 'ionComplete',
|
|
674
|
+
onIonBlur: 'ionBlur',
|
|
675
|
+
onIonFocus: 'ionFocus',
|
|
676
|
+
},
|
|
677
|
+
defineCustomElement: defineCustomElement$r,
|
|
678
|
+
});
|
|
679
|
+
const IonInputPasswordToggle = /*@__PURE__*/ createComponent({
|
|
680
|
+
tagName: 'ion-input-password-toggle',
|
|
681
|
+
elementClass: IonInputPasswordToggle$1,
|
|
682
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
683
|
+
react: React,
|
|
684
|
+
events: {},
|
|
685
|
+
defineCustomElement: defineCustomElement$s,
|
|
686
|
+
});
|
|
687
|
+
const IonItemDivider = /*@__PURE__*/ createComponent({
|
|
688
|
+
tagName: 'ion-item-divider',
|
|
689
|
+
elementClass: IonItemDivider$1,
|
|
690
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
691
|
+
react: React,
|
|
692
|
+
events: {},
|
|
693
|
+
defineCustomElement: defineCustomElement$t,
|
|
694
|
+
});
|
|
695
|
+
const IonItemGroup =
|
|
696
|
+
/*@__PURE__*/ createComponent({
|
|
697
|
+
tagName: 'ion-item-group',
|
|
698
|
+
elementClass: IonItemGroup$1,
|
|
699
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
700
|
+
react: React,
|
|
701
|
+
events: {},
|
|
702
|
+
defineCustomElement: defineCustomElement$u,
|
|
703
|
+
});
|
|
704
|
+
const IonItemOptions = /*@__PURE__*/ createComponent({
|
|
705
|
+
tagName: 'ion-item-options',
|
|
706
|
+
elementClass: IonItemOptions$1,
|
|
707
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
708
|
+
react: React,
|
|
709
|
+
events: { onIonSwipe: 'ionSwipe' },
|
|
710
|
+
defineCustomElement: defineCustomElement$v,
|
|
711
|
+
});
|
|
712
|
+
const IonItemSliding = /*@__PURE__*/ createComponent({
|
|
713
|
+
tagName: 'ion-item-sliding',
|
|
714
|
+
elementClass: IonItemSliding$1,
|
|
715
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
716
|
+
react: React,
|
|
717
|
+
events: { onIonDrag: 'ionDrag' },
|
|
718
|
+
defineCustomElement: defineCustomElement$w,
|
|
719
|
+
});
|
|
720
|
+
const IonLabel =
|
|
721
|
+
/*@__PURE__*/ createComponent({
|
|
722
|
+
tagName: 'ion-label',
|
|
723
|
+
elementClass: IonLabel$1,
|
|
724
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
725
|
+
react: React,
|
|
726
|
+
events: {},
|
|
727
|
+
defineCustomElement: defineCustomElement$x,
|
|
728
|
+
});
|
|
729
|
+
const IonList =
|
|
730
|
+
/*@__PURE__*/ createComponent({
|
|
731
|
+
tagName: 'ion-list',
|
|
732
|
+
elementClass: IonList$1,
|
|
733
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
734
|
+
react: React,
|
|
735
|
+
events: {},
|
|
736
|
+
defineCustomElement: defineCustomElement$y,
|
|
737
|
+
});
|
|
738
|
+
const IonListHeader =
|
|
739
|
+
/*@__PURE__*/ createComponent({
|
|
740
|
+
tagName: 'ion-list-header',
|
|
741
|
+
elementClass: IonListHeader$1,
|
|
742
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
743
|
+
react: React,
|
|
744
|
+
events: {},
|
|
745
|
+
defineCustomElement: defineCustomElement$z,
|
|
746
|
+
});
|
|
747
|
+
const IonMenu =
|
|
748
|
+
/*@__PURE__*/ createComponent({
|
|
749
|
+
tagName: 'ion-menu',
|
|
750
|
+
elementClass: IonMenu$1,
|
|
751
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
752
|
+
react: React,
|
|
753
|
+
events: {
|
|
754
|
+
onIonWillOpen: 'ionWillOpen',
|
|
755
|
+
onIonWillClose: 'ionWillClose',
|
|
756
|
+
onIonDidOpen: 'ionDidOpen',
|
|
757
|
+
onIonDidClose: 'ionDidClose',
|
|
758
|
+
},
|
|
759
|
+
defineCustomElement: defineCustomElement$A,
|
|
760
|
+
});
|
|
761
|
+
const IonMenuButton =
|
|
762
|
+
/*@__PURE__*/ createComponent({
|
|
763
|
+
tagName: 'ion-menu-button',
|
|
764
|
+
elementClass: IonMenuButton$1,
|
|
765
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
766
|
+
react: React,
|
|
767
|
+
events: {},
|
|
768
|
+
defineCustomElement: defineCustomElement$B,
|
|
769
|
+
});
|
|
770
|
+
const IonMenuToggle =
|
|
771
|
+
/*@__PURE__*/ createComponent({
|
|
772
|
+
tagName: 'ion-menu-toggle',
|
|
773
|
+
elementClass: IonMenuToggle$1,
|
|
774
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
775
|
+
react: React,
|
|
776
|
+
events: {},
|
|
777
|
+
defineCustomElement: defineCustomElement$C,
|
|
778
|
+
});
|
|
779
|
+
const IonNavLink =
|
|
780
|
+
/*@__PURE__*/ createComponent({
|
|
781
|
+
tagName: 'ion-nav-link',
|
|
782
|
+
elementClass: IonNavLink$1,
|
|
783
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
784
|
+
react: React,
|
|
785
|
+
events: {},
|
|
786
|
+
defineCustomElement: defineCustomElement$D,
|
|
787
|
+
});
|
|
788
|
+
const IonNote =
|
|
789
|
+
/*@__PURE__*/ createComponent({
|
|
790
|
+
tagName: 'ion-note',
|
|
791
|
+
elementClass: IonNote$1,
|
|
792
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
793
|
+
react: React,
|
|
794
|
+
events: {},
|
|
795
|
+
defineCustomElement: defineCustomElement$E,
|
|
796
|
+
});
|
|
797
|
+
const IonPicker =
|
|
798
|
+
/*@__PURE__*/ createComponent({
|
|
799
|
+
tagName: 'ion-picker',
|
|
800
|
+
elementClass: IonPicker$1,
|
|
801
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
802
|
+
react: React,
|
|
803
|
+
events: {},
|
|
804
|
+
defineCustomElement: defineCustomElement$F,
|
|
805
|
+
});
|
|
806
|
+
const IonPickerColumn = /*@__PURE__*/ createComponent({
|
|
807
|
+
tagName: 'ion-picker-column',
|
|
808
|
+
elementClass: IonPickerColumn$1,
|
|
809
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
810
|
+
react: React,
|
|
811
|
+
events: { onIonChange: 'ionChange' },
|
|
812
|
+
defineCustomElement: defineCustomElement$G,
|
|
813
|
+
});
|
|
814
|
+
const IonPickerColumnOption = /*@__PURE__*/ createComponent({
|
|
815
|
+
tagName: 'ion-picker-column-option',
|
|
816
|
+
elementClass: IonPickerColumnOption$1,
|
|
817
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
818
|
+
react: React,
|
|
819
|
+
events: {},
|
|
820
|
+
defineCustomElement: defineCustomElement$H,
|
|
821
|
+
});
|
|
822
|
+
const IonProgressBar = /*@__PURE__*/ createComponent({
|
|
823
|
+
tagName: 'ion-progress-bar',
|
|
824
|
+
elementClass: IonProgressBar$1,
|
|
825
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
826
|
+
react: React,
|
|
827
|
+
events: {},
|
|
828
|
+
defineCustomElement: defineCustomElement$I,
|
|
829
|
+
});
|
|
830
|
+
const IonRadio =
|
|
831
|
+
/*@__PURE__*/ createComponent({
|
|
832
|
+
tagName: 'ion-radio',
|
|
833
|
+
elementClass: IonRadio$1,
|
|
834
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
835
|
+
react: React,
|
|
836
|
+
events: {
|
|
837
|
+
onIonFocus: 'ionFocus',
|
|
838
|
+
onIonBlur: 'ionBlur',
|
|
839
|
+
},
|
|
840
|
+
defineCustomElement: defineCustomElement$J,
|
|
841
|
+
});
|
|
842
|
+
const IonRadioGroup =
|
|
843
|
+
/*@__PURE__*/ createComponent({
|
|
844
|
+
tagName: 'ion-radio-group',
|
|
845
|
+
elementClass: IonRadioGroup$1,
|
|
846
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
847
|
+
react: React,
|
|
848
|
+
events: { onIonChange: 'ionChange' },
|
|
849
|
+
defineCustomElement: defineCustomElement$K,
|
|
850
|
+
});
|
|
851
|
+
const IonRange =
|
|
852
|
+
/*@__PURE__*/ createComponent({
|
|
853
|
+
tagName: 'ion-range',
|
|
854
|
+
elementClass: IonRange$1,
|
|
855
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
856
|
+
react: React,
|
|
857
|
+
events: {
|
|
858
|
+
onIonChange: 'ionChange',
|
|
859
|
+
onIonInput: 'ionInput',
|
|
860
|
+
onIonFocus: 'ionFocus',
|
|
861
|
+
onIonBlur: 'ionBlur',
|
|
862
|
+
onIonKnobMoveStart: 'ionKnobMoveStart',
|
|
863
|
+
onIonKnobMoveEnd: 'ionKnobMoveEnd',
|
|
864
|
+
},
|
|
865
|
+
defineCustomElement: defineCustomElement$L,
|
|
866
|
+
});
|
|
867
|
+
const IonRefresher =
|
|
868
|
+
/*@__PURE__*/ createComponent({
|
|
869
|
+
tagName: 'ion-refresher',
|
|
870
|
+
elementClass: IonRefresher$1,
|
|
871
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
872
|
+
react: React,
|
|
873
|
+
events: {
|
|
874
|
+
onIonRefresh: 'ionRefresh',
|
|
875
|
+
onIonPull: 'ionPull',
|
|
876
|
+
onIonStart: 'ionStart',
|
|
877
|
+
onIonPullStart: 'ionPullStart',
|
|
878
|
+
onIonPullEnd: 'ionPullEnd',
|
|
879
|
+
},
|
|
880
|
+
defineCustomElement: defineCustomElement$M,
|
|
881
|
+
});
|
|
882
|
+
const IonRefresherContent = /*@__PURE__*/ createComponent({
|
|
883
|
+
tagName: 'ion-refresher-content',
|
|
884
|
+
elementClass: IonRefresherContent$1,
|
|
885
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
886
|
+
react: React,
|
|
887
|
+
events: {},
|
|
888
|
+
defineCustomElement: defineCustomElement$N,
|
|
889
|
+
});
|
|
890
|
+
const IonReorder =
|
|
891
|
+
/*@__PURE__*/ createComponent({
|
|
892
|
+
tagName: 'ion-reorder',
|
|
893
|
+
elementClass: IonReorder$1,
|
|
894
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
895
|
+
react: React,
|
|
896
|
+
events: {},
|
|
897
|
+
defineCustomElement: defineCustomElement$O,
|
|
898
|
+
});
|
|
899
|
+
const IonReorderGroup = /*@__PURE__*/ createComponent({
|
|
900
|
+
tagName: 'ion-reorder-group',
|
|
901
|
+
elementClass: IonReorderGroup$1,
|
|
902
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
903
|
+
react: React,
|
|
904
|
+
events: {
|
|
905
|
+
onIonItemReorder: 'ionItemReorder',
|
|
906
|
+
onIonReorderStart: 'ionReorderStart',
|
|
907
|
+
onIonReorderMove: 'ionReorderMove',
|
|
908
|
+
onIonReorderEnd: 'ionReorderEnd',
|
|
909
|
+
},
|
|
910
|
+
defineCustomElement: defineCustomElement$P,
|
|
911
|
+
});
|
|
912
|
+
const IonRippleEffect = /*@__PURE__*/ createComponent({
|
|
913
|
+
tagName: 'ion-ripple-effect',
|
|
914
|
+
elementClass: IonRippleEffect$1,
|
|
915
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
916
|
+
react: React,
|
|
917
|
+
events: {},
|
|
918
|
+
defineCustomElement: defineCustomElement$Q,
|
|
919
|
+
});
|
|
920
|
+
const IonRow =
|
|
921
|
+
/*@__PURE__*/ createComponent({
|
|
922
|
+
tagName: 'ion-row',
|
|
923
|
+
elementClass: IonRow$1,
|
|
924
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
925
|
+
react: React,
|
|
926
|
+
events: {},
|
|
927
|
+
defineCustomElement: defineCustomElement$R,
|
|
928
|
+
});
|
|
929
|
+
const IonSearchbar =
|
|
930
|
+
/*@__PURE__*/ createComponent({
|
|
931
|
+
tagName: 'ion-searchbar',
|
|
932
|
+
elementClass: IonSearchbar$1,
|
|
933
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
934
|
+
react: React,
|
|
935
|
+
events: {
|
|
936
|
+
onIonInput: 'ionInput',
|
|
937
|
+
onIonChange: 'ionChange',
|
|
938
|
+
onIonCancel: 'ionCancel',
|
|
939
|
+
onIonClear: 'ionClear',
|
|
940
|
+
onIonBlur: 'ionBlur',
|
|
941
|
+
onIonFocus: 'ionFocus',
|
|
942
|
+
},
|
|
943
|
+
defineCustomElement: defineCustomElement$S,
|
|
944
|
+
});
|
|
945
|
+
const IonSegment =
|
|
946
|
+
/*@__PURE__*/ createComponent({
|
|
947
|
+
tagName: 'ion-segment',
|
|
948
|
+
elementClass: IonSegment$1,
|
|
949
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
950
|
+
react: React,
|
|
951
|
+
events: { onIonChange: 'ionChange' },
|
|
952
|
+
defineCustomElement: defineCustomElement$T,
|
|
953
|
+
});
|
|
954
|
+
const IonSegmentButton = /*@__PURE__*/ createComponent({
|
|
955
|
+
tagName: 'ion-segment-button',
|
|
956
|
+
elementClass: IonSegmentButton$1,
|
|
957
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
958
|
+
react: React,
|
|
959
|
+
events: {},
|
|
960
|
+
defineCustomElement: defineCustomElement$U,
|
|
961
|
+
});
|
|
962
|
+
const IonSegmentContent = /*@__PURE__*/ createComponent({
|
|
963
|
+
tagName: 'ion-segment-content',
|
|
964
|
+
elementClass: IonSegmentContent$1,
|
|
965
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
966
|
+
react: React,
|
|
967
|
+
events: {},
|
|
968
|
+
defineCustomElement: defineCustomElement$V,
|
|
969
|
+
});
|
|
970
|
+
const IonSegmentView = /*@__PURE__*/ createComponent({
|
|
971
|
+
tagName: 'ion-segment-view',
|
|
972
|
+
elementClass: IonSegmentView$1,
|
|
973
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
974
|
+
react: React,
|
|
975
|
+
events: { onIonSegmentViewScroll: 'ionSegmentViewScroll' },
|
|
976
|
+
defineCustomElement: defineCustomElement$W,
|
|
977
|
+
});
|
|
978
|
+
const IonSelect =
|
|
979
|
+
/*@__PURE__*/ createComponent({
|
|
980
|
+
tagName: 'ion-select',
|
|
981
|
+
elementClass: IonSelect$1,
|
|
982
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
983
|
+
react: React,
|
|
984
|
+
events: {
|
|
985
|
+
onIonChange: 'ionChange',
|
|
986
|
+
onIonCancel: 'ionCancel',
|
|
987
|
+
onIonDismiss: 'ionDismiss',
|
|
988
|
+
onIonFocus: 'ionFocus',
|
|
989
|
+
onIonBlur: 'ionBlur',
|
|
990
|
+
},
|
|
991
|
+
defineCustomElement: defineCustomElement$X,
|
|
992
|
+
});
|
|
993
|
+
const IonSelectModal = /*@__PURE__*/ createComponent({
|
|
994
|
+
tagName: 'ion-select-modal',
|
|
995
|
+
elementClass: IonSelectModal$1,
|
|
996
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
997
|
+
react: React,
|
|
998
|
+
events: {},
|
|
999
|
+
defineCustomElement: defineCustomElement$Y,
|
|
1000
|
+
});
|
|
1001
|
+
const IonSelectOption = /*@__PURE__*/ createComponent({
|
|
1002
|
+
tagName: 'ion-select-option',
|
|
1003
|
+
elementClass: IonSelectOption$1,
|
|
1004
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1005
|
+
react: React,
|
|
1006
|
+
events: {},
|
|
1007
|
+
defineCustomElement: defineCustomElement$Z,
|
|
1008
|
+
});
|
|
1009
|
+
const IonSkeletonText = /*@__PURE__*/ createComponent({
|
|
1010
|
+
tagName: 'ion-skeleton-text',
|
|
1011
|
+
elementClass: IonSkeletonText$1,
|
|
1012
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1013
|
+
react: React,
|
|
1014
|
+
events: {},
|
|
1015
|
+
defineCustomElement: defineCustomElement$_,
|
|
1016
|
+
});
|
|
1017
|
+
const IonSpinner =
|
|
1018
|
+
/*@__PURE__*/ createComponent({
|
|
1019
|
+
tagName: 'ion-spinner',
|
|
1020
|
+
elementClass: IonSpinner$1,
|
|
1021
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1022
|
+
react: React,
|
|
1023
|
+
events: {},
|
|
1024
|
+
defineCustomElement: defineCustomElement$$,
|
|
1025
|
+
});
|
|
1026
|
+
const IonSplitPane =
|
|
1027
|
+
/*@__PURE__*/ createComponent({
|
|
1028
|
+
tagName: 'ion-split-pane',
|
|
1029
|
+
elementClass: IonSplitPane$1,
|
|
1030
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1031
|
+
react: React,
|
|
1032
|
+
events: { onIonSplitPaneVisible: 'ionSplitPaneVisible' },
|
|
1033
|
+
defineCustomElement: defineCustomElement$10,
|
|
1034
|
+
});
|
|
1035
|
+
const IonTab =
|
|
1036
|
+
/*@__PURE__*/ createComponent({
|
|
1037
|
+
tagName: 'ion-tab',
|
|
1038
|
+
elementClass: IonTab$1,
|
|
1039
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1040
|
+
react: React,
|
|
1041
|
+
events: {},
|
|
1042
|
+
defineCustomElement: defineCustomElement$11,
|
|
1043
|
+
});
|
|
1044
|
+
const IonText =
|
|
1045
|
+
/*@__PURE__*/ createComponent({
|
|
1046
|
+
tagName: 'ion-text',
|
|
1047
|
+
elementClass: IonText$1,
|
|
1048
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1049
|
+
react: React,
|
|
1050
|
+
events: {},
|
|
1051
|
+
defineCustomElement: defineCustomElement$12,
|
|
1052
|
+
});
|
|
1053
|
+
const IonTextarea =
|
|
1054
|
+
/*@__PURE__*/ createComponent({
|
|
1055
|
+
tagName: 'ion-textarea',
|
|
1056
|
+
elementClass: IonTextarea$1,
|
|
1057
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1058
|
+
react: React,
|
|
1059
|
+
events: {
|
|
1060
|
+
onIonChange: 'ionChange',
|
|
1061
|
+
onIonInput: 'ionInput',
|
|
1062
|
+
onIonBlur: 'ionBlur',
|
|
1063
|
+
onIonFocus: 'ionFocus',
|
|
1064
|
+
},
|
|
1065
|
+
defineCustomElement: defineCustomElement$13,
|
|
1066
|
+
});
|
|
1067
|
+
const IonThumbnail =
|
|
1068
|
+
/*@__PURE__*/ createComponent({
|
|
1069
|
+
tagName: 'ion-thumbnail',
|
|
1070
|
+
elementClass: IonThumbnail$1,
|
|
1071
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1072
|
+
react: React,
|
|
1073
|
+
events: {},
|
|
1074
|
+
defineCustomElement: defineCustomElement$14,
|
|
1075
|
+
});
|
|
1076
|
+
const IonTitle =
|
|
1077
|
+
/*@__PURE__*/ createComponent({
|
|
1078
|
+
tagName: 'ion-title',
|
|
1079
|
+
elementClass: IonTitle$1,
|
|
1080
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1081
|
+
react: React,
|
|
1082
|
+
events: {},
|
|
1083
|
+
defineCustomElement: defineCustomElement$15,
|
|
1084
|
+
});
|
|
1085
|
+
const IonToggle =
|
|
1086
|
+
/*@__PURE__*/ createComponent({
|
|
1087
|
+
tagName: 'ion-toggle',
|
|
1088
|
+
elementClass: IonToggle$1,
|
|
1089
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1090
|
+
react: React,
|
|
1091
|
+
events: {
|
|
1092
|
+
onIonChange: 'ionChange',
|
|
1093
|
+
onIonFocus: 'ionFocus',
|
|
1094
|
+
onIonBlur: 'ionBlur',
|
|
1095
|
+
},
|
|
1096
|
+
defineCustomElement: defineCustomElement$16,
|
|
1097
|
+
});
|
|
1098
|
+
const IonToolbar =
|
|
1099
|
+
/*@__PURE__*/ createComponent({
|
|
1100
|
+
tagName: 'ion-toolbar',
|
|
1101
|
+
elementClass: IonToolbar$1,
|
|
1102
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
1103
|
+
react: React,
|
|
1104
|
+
events: {},
|
|
1105
|
+
defineCustomElement: defineCustomElement$17,
|
|
1106
|
+
});
|
|
1107
|
+
|
|
417
1108
|
const dashToPascalCase = (str) => str
|
|
418
1109
|
.toLowerCase()
|
|
419
1110
|
.split('-')
|
|
@@ -561,147 +1252,6 @@ const defineCustomElement = (tagName, customElement) => {
|
|
|
561
1252
|
}
|
|
562
1253
|
};
|
|
563
1254
|
|
|
564
|
-
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
565
|
-
if (defineCustomElement !== undefined) {
|
|
566
|
-
defineCustomElement();
|
|
567
|
-
}
|
|
568
|
-
const displayName = dashToPascalCase(tagName);
|
|
569
|
-
const ReactComponent = class extends React.Component {
|
|
570
|
-
constructor(props) {
|
|
571
|
-
super(props);
|
|
572
|
-
this.setComponentElRef = (element) => {
|
|
573
|
-
this.componentEl = element;
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
componentDidMount() {
|
|
577
|
-
this.componentDidUpdate(this.props);
|
|
578
|
-
}
|
|
579
|
-
componentDidUpdate(prevProps) {
|
|
580
|
-
attachProps(this.componentEl, this.props, prevProps);
|
|
581
|
-
}
|
|
582
|
-
render() {
|
|
583
|
-
const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
|
|
584
|
-
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
|
585
|
-
const value = cProps[name];
|
|
586
|
-
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
587
|
-
const eventName = name.substring(2).toLowerCase();
|
|
588
|
-
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
|
589
|
-
acc[name] = value;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
// we should only render strings, booleans, and numbers as attrs in html.
|
|
594
|
-
// objects, functions, arrays etc get synced via properties on mount.
|
|
595
|
-
const type = typeof value;
|
|
596
|
-
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
597
|
-
acc[camelToDashCase(name)] = value;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
return acc;
|
|
601
|
-
}, {});
|
|
602
|
-
if (manipulatePropsFunction) {
|
|
603
|
-
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
604
|
-
}
|
|
605
|
-
const newProps = {
|
|
606
|
-
...propsToPass,
|
|
607
|
-
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
608
|
-
style,
|
|
609
|
-
};
|
|
610
|
-
/**
|
|
611
|
-
* We use createElement here instead of
|
|
612
|
-
* React.createElement to work around a
|
|
613
|
-
* bug in Vite (https://github.com/vitejs/vite/issues/6104).
|
|
614
|
-
* React.createElement causes all elements to be rendered
|
|
615
|
-
* as <tagname> instead of the actual Web Component.
|
|
616
|
-
*/
|
|
617
|
-
return createElement(tagName, newProps, children);
|
|
618
|
-
}
|
|
619
|
-
static get displayName() {
|
|
620
|
-
return displayName;
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
624
|
-
if (ReactComponentContext) {
|
|
625
|
-
ReactComponent.contextType = ReactComponentContext;
|
|
626
|
-
}
|
|
627
|
-
return createForwardRef$1(ReactComponent, displayName);
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/* eslint-disable */
|
|
631
|
-
/* tslint:disable */
|
|
632
|
-
/* auto-generated react proxies */
|
|
633
|
-
const IonAccordion = /*@__PURE__*/ createReactComponent('ion-accordion', undefined, undefined, defineCustomElement$1);
|
|
634
|
-
const IonAccordionGroup = /*@__PURE__*/ createReactComponent('ion-accordion-group', undefined, undefined, defineCustomElement$2);
|
|
635
|
-
const IonAvatar = /*@__PURE__*/ createReactComponent('ion-avatar', undefined, undefined, defineCustomElement$3);
|
|
636
|
-
const IonBackdrop = /*@__PURE__*/ createReactComponent('ion-backdrop', undefined, undefined, defineCustomElement$4);
|
|
637
|
-
const IonBadge = /*@__PURE__*/ createReactComponent('ion-badge', undefined, undefined, defineCustomElement$5);
|
|
638
|
-
const IonBreadcrumbs = /*@__PURE__*/ createReactComponent('ion-breadcrumbs', undefined, undefined, defineCustomElement$6);
|
|
639
|
-
const IonButtons = /*@__PURE__*/ createReactComponent('ion-buttons', undefined, undefined, defineCustomElement$7);
|
|
640
|
-
const IonCardContent = /*@__PURE__*/ createReactComponent('ion-card-content', undefined, undefined, defineCustomElement$8);
|
|
641
|
-
const IonCardHeader = /*@__PURE__*/ createReactComponent('ion-card-header', undefined, undefined, defineCustomElement$9);
|
|
642
|
-
const IonCardSubtitle = /*@__PURE__*/ createReactComponent('ion-card-subtitle', undefined, undefined, defineCustomElement$a);
|
|
643
|
-
const IonCardTitle = /*@__PURE__*/ createReactComponent('ion-card-title', undefined, undefined, defineCustomElement$b);
|
|
644
|
-
const IonCheckbox = /*@__PURE__*/ createReactComponent('ion-checkbox', undefined, undefined, defineCustomElement$c);
|
|
645
|
-
const IonChip = /*@__PURE__*/ createReactComponent('ion-chip', undefined, undefined, defineCustomElement$d);
|
|
646
|
-
const IonCol = /*@__PURE__*/ createReactComponent('ion-col', undefined, undefined, defineCustomElement$e);
|
|
647
|
-
const IonContent = /*@__PURE__*/ createReactComponent('ion-content', undefined, undefined, defineCustomElement$f);
|
|
648
|
-
const IonDatetime = /*@__PURE__*/ createReactComponent('ion-datetime', undefined, undefined, defineCustomElement$g);
|
|
649
|
-
const IonDatetimeButton = /*@__PURE__*/ createReactComponent('ion-datetime-button', undefined, undefined, defineCustomElement$h);
|
|
650
|
-
const IonFab = /*@__PURE__*/ createReactComponent('ion-fab', undefined, undefined, defineCustomElement$i);
|
|
651
|
-
const IonFabList = /*@__PURE__*/ createReactComponent('ion-fab-list', undefined, undefined, defineCustomElement$j);
|
|
652
|
-
const IonFooter = /*@__PURE__*/ createReactComponent('ion-footer', undefined, undefined, defineCustomElement$k);
|
|
653
|
-
const IonGrid = /*@__PURE__*/ createReactComponent('ion-grid', undefined, undefined, defineCustomElement$l);
|
|
654
|
-
const IonHeader = /*@__PURE__*/ createReactComponent('ion-header', undefined, undefined, defineCustomElement$m);
|
|
655
|
-
const IonImg = /*@__PURE__*/ createReactComponent('ion-img', undefined, undefined, defineCustomElement$n);
|
|
656
|
-
const IonInfiniteScroll = /*@__PURE__*/ createReactComponent('ion-infinite-scroll', undefined, undefined, defineCustomElement$o);
|
|
657
|
-
const IonInfiniteScrollContent = /*@__PURE__*/ createReactComponent('ion-infinite-scroll-content', undefined, undefined, defineCustomElement$p);
|
|
658
|
-
const IonInput = /*@__PURE__*/ createReactComponent('ion-input', undefined, undefined, defineCustomElement$q);
|
|
659
|
-
const IonInputOtp = /*@__PURE__*/ createReactComponent('ion-input-otp', undefined, undefined, defineCustomElement$r);
|
|
660
|
-
const IonInputPasswordToggle = /*@__PURE__*/ createReactComponent('ion-input-password-toggle', undefined, undefined, defineCustomElement$s);
|
|
661
|
-
const IonItemDivider = /*@__PURE__*/ createReactComponent('ion-item-divider', undefined, undefined, defineCustomElement$t);
|
|
662
|
-
const IonItemGroup = /*@__PURE__*/ createReactComponent('ion-item-group', undefined, undefined, defineCustomElement$u);
|
|
663
|
-
const IonItemOptions = /*@__PURE__*/ createReactComponent('ion-item-options', undefined, undefined, defineCustomElement$v);
|
|
664
|
-
const IonItemSliding = /*@__PURE__*/ createReactComponent('ion-item-sliding', undefined, undefined, defineCustomElement$w);
|
|
665
|
-
const IonLabel = /*@__PURE__*/ createReactComponent('ion-label', undefined, undefined, defineCustomElement$x);
|
|
666
|
-
const IonList = /*@__PURE__*/ createReactComponent('ion-list', undefined, undefined, defineCustomElement$y);
|
|
667
|
-
const IonListHeader = /*@__PURE__*/ createReactComponent('ion-list-header', undefined, undefined, defineCustomElement$z);
|
|
668
|
-
const IonMenu = /*@__PURE__*/ createReactComponent('ion-menu', undefined, undefined, defineCustomElement$A);
|
|
669
|
-
const IonMenuButton = /*@__PURE__*/ createReactComponent('ion-menu-button', undefined, undefined, defineCustomElement$B);
|
|
670
|
-
const IonMenuToggle = /*@__PURE__*/ createReactComponent('ion-menu-toggle', undefined, undefined, defineCustomElement$C);
|
|
671
|
-
const IonNavLink = /*@__PURE__*/ createReactComponent('ion-nav-link', undefined, undefined, defineCustomElement$D);
|
|
672
|
-
const IonNote = /*@__PURE__*/ createReactComponent('ion-note', undefined, undefined, defineCustomElement$E);
|
|
673
|
-
const IonPicker = /*@__PURE__*/ createReactComponent('ion-picker', undefined, undefined, defineCustomElement$F);
|
|
674
|
-
const IonPickerColumn = /*@__PURE__*/ createReactComponent('ion-picker-column', undefined, undefined, defineCustomElement$G);
|
|
675
|
-
const IonPickerColumnOption = /*@__PURE__*/ createReactComponent('ion-picker-column-option', undefined, undefined, defineCustomElement$H);
|
|
676
|
-
const IonProgressBar = /*@__PURE__*/ createReactComponent('ion-progress-bar', undefined, undefined, defineCustomElement$I);
|
|
677
|
-
const IonRadio = /*@__PURE__*/ createReactComponent('ion-radio', undefined, undefined, defineCustomElement$J);
|
|
678
|
-
const IonRadioGroup = /*@__PURE__*/ createReactComponent('ion-radio-group', undefined, undefined, defineCustomElement$K);
|
|
679
|
-
const IonRange = /*@__PURE__*/ createReactComponent('ion-range', undefined, undefined, defineCustomElement$L);
|
|
680
|
-
const IonRefresher = /*@__PURE__*/ createReactComponent('ion-refresher', undefined, undefined, defineCustomElement$M);
|
|
681
|
-
const IonRefresherContent = /*@__PURE__*/ createReactComponent('ion-refresher-content', undefined, undefined, defineCustomElement$N);
|
|
682
|
-
const IonReorder = /*@__PURE__*/ createReactComponent('ion-reorder', undefined, undefined, defineCustomElement$O);
|
|
683
|
-
const IonReorderGroup = /*@__PURE__*/ createReactComponent('ion-reorder-group', undefined, undefined, defineCustomElement$P);
|
|
684
|
-
const IonRippleEffect = /*@__PURE__*/ createReactComponent('ion-ripple-effect', undefined, undefined, defineCustomElement$Q);
|
|
685
|
-
const IonRow = /*@__PURE__*/ createReactComponent('ion-row', undefined, undefined, defineCustomElement$R);
|
|
686
|
-
const IonSearchbar = /*@__PURE__*/ createReactComponent('ion-searchbar', undefined, undefined, defineCustomElement$S);
|
|
687
|
-
const IonSegment = /*@__PURE__*/ createReactComponent('ion-segment', undefined, undefined, defineCustomElement$T);
|
|
688
|
-
const IonSegmentButton = /*@__PURE__*/ createReactComponent('ion-segment-button', undefined, undefined, defineCustomElement$U);
|
|
689
|
-
const IonSegmentContent = /*@__PURE__*/ createReactComponent('ion-segment-content', undefined, undefined, defineCustomElement$V);
|
|
690
|
-
const IonSegmentView = /*@__PURE__*/ createReactComponent('ion-segment-view', undefined, undefined, defineCustomElement$W);
|
|
691
|
-
const IonSelect = /*@__PURE__*/ createReactComponent('ion-select', undefined, undefined, defineCustomElement$X);
|
|
692
|
-
const IonSelectModal = /*@__PURE__*/ createReactComponent('ion-select-modal', undefined, undefined, defineCustomElement$Y);
|
|
693
|
-
const IonSelectOption = /*@__PURE__*/ createReactComponent('ion-select-option', undefined, undefined, defineCustomElement$Z);
|
|
694
|
-
const IonSkeletonText = /*@__PURE__*/ createReactComponent('ion-skeleton-text', undefined, undefined, defineCustomElement$_);
|
|
695
|
-
const IonSpinner = /*@__PURE__*/ createReactComponent('ion-spinner', undefined, undefined, defineCustomElement$$);
|
|
696
|
-
const IonSplitPane = /*@__PURE__*/ createReactComponent('ion-split-pane', undefined, undefined, defineCustomElement$10);
|
|
697
|
-
const IonTab = /*@__PURE__*/ createReactComponent('ion-tab', undefined, undefined, defineCustomElement$11);
|
|
698
|
-
const IonText = /*@__PURE__*/ createReactComponent('ion-text', undefined, undefined, defineCustomElement$12);
|
|
699
|
-
const IonTextarea = /*@__PURE__*/ createReactComponent('ion-textarea', undefined, undefined, defineCustomElement$13);
|
|
700
|
-
const IonThumbnail = /*@__PURE__*/ createReactComponent('ion-thumbnail', undefined, undefined, defineCustomElement$14);
|
|
701
|
-
const IonTitle = /*@__PURE__*/ createReactComponent('ion-title', undefined, undefined, defineCustomElement$15);
|
|
702
|
-
const IonToggle = /*@__PURE__*/ createReactComponent('ion-toggle', undefined, undefined, defineCustomElement$16);
|
|
703
|
-
const IonToolbar = /*@__PURE__*/ createReactComponent('ion-toolbar', undefined, undefined, defineCustomElement$17);
|
|
704
|
-
|
|
705
1255
|
const createForwardRef = (ReactComponent, // TODO(FW-2959): type
|
|
706
1256
|
displayName) => {
|
|
707
1257
|
const forwardRef = (props, ref) => {
|
|
@@ -739,6 +1289,11 @@ const createRoutingComponent = (tagName, customElement) => {
|
|
|
739
1289
|
this.handleClick = (e) => {
|
|
740
1290
|
const { routerLink, routerDirection, routerOptions, routerAnimation } = this.props;
|
|
741
1291
|
if (routerLink !== undefined) {
|
|
1292
|
+
// Allow modifier key clicks (ctrl/cmd/shift) to open the link in a new tab/window
|
|
1293
|
+
// without triggering SPA navigation on the current page.
|
|
1294
|
+
if (e.metaKey || e.ctrlKey || e.shiftKey) {
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
742
1297
|
e.preventDefault();
|
|
743
1298
|
this.context.navigate(routerLink, routerDirection, undefined, routerAnimation, routerOptions);
|
|
744
1299
|
}
|
|
@@ -1093,13 +1648,11 @@ const IonLoading = /*@__PURE__*/ createInlineOverlayComponent('ion-loading', def
|
|
|
1093
1648
|
|
|
1094
1649
|
const IonToast = /*@__PURE__*/ createInlineOverlayComponent('ion-toast', defineCustomElement$1a);
|
|
1095
1650
|
|
|
1096
|
-
const
|
|
1651
|
+
const IonActionSheet = /*@__PURE__*/ createInlineOverlayComponent('ion-action-sheet', defineCustomElement$1b);
|
|
1097
1652
|
|
|
1098
|
-
const
|
|
1653
|
+
const IonModal = /*@__PURE__*/ createInlineOverlayComponent('ion-modal', defineCustomElement$1c, true);
|
|
1099
1654
|
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1102
|
-
const IonPopover = /*@__PURE__*/ createInlineOverlayComponent('ion-popover', defineCustomElement$1e);
|
|
1655
|
+
const IonPopover = /*@__PURE__*/ createInlineOverlayComponent('ion-popover', defineCustomElement$1d);
|
|
1103
1656
|
|
|
1104
1657
|
const IonContext = React.createContext({
|
|
1105
1658
|
addOverlay: () => {
|
|
@@ -1191,14 +1744,81 @@ const IonOverlayManager = ({ onAddOverlay, onRemoveOverlay }) => {
|
|
|
1191
1744
|
}) }));
|
|
1192
1745
|
};
|
|
1193
1746
|
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
const
|
|
1199
|
-
const
|
|
1747
|
+
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
1748
|
+
if (defineCustomElement !== undefined) {
|
|
1749
|
+
defineCustomElement();
|
|
1750
|
+
}
|
|
1751
|
+
const displayName = dashToPascalCase(tagName);
|
|
1752
|
+
const ReactComponent = class extends React.Component {
|
|
1753
|
+
constructor(props) {
|
|
1754
|
+
super(props);
|
|
1755
|
+
this.setComponentElRef = (element) => {
|
|
1756
|
+
this.componentEl = element;
|
|
1757
|
+
};
|
|
1758
|
+
}
|
|
1759
|
+
componentDidMount() {
|
|
1760
|
+
this.componentDidUpdate(this.props);
|
|
1761
|
+
}
|
|
1762
|
+
componentDidUpdate(prevProps) {
|
|
1763
|
+
attachProps(this.componentEl, this.props, prevProps);
|
|
1764
|
+
}
|
|
1765
|
+
render() {
|
|
1766
|
+
const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
|
|
1767
|
+
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
|
1768
|
+
const value = cProps[name];
|
|
1769
|
+
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
1770
|
+
const eventName = name.substring(2).toLowerCase();
|
|
1771
|
+
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
|
1772
|
+
acc[name] = value;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
else {
|
|
1776
|
+
// we should only render strings, booleans, and numbers as attrs in html.
|
|
1777
|
+
// objects, functions, arrays etc get synced via properties on mount.
|
|
1778
|
+
const type = typeof value;
|
|
1779
|
+
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
1780
|
+
acc[camelToDashCase(name)] = value;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
return acc;
|
|
1784
|
+
}, {});
|
|
1785
|
+
if (manipulatePropsFunction) {
|
|
1786
|
+
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
1787
|
+
}
|
|
1788
|
+
const newProps = {
|
|
1789
|
+
...propsToPass,
|
|
1790
|
+
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
1791
|
+
style,
|
|
1792
|
+
children
|
|
1793
|
+
};
|
|
1794
|
+
/**
|
|
1795
|
+
* We use createElement here instead of
|
|
1796
|
+
* React.createElement to work around a
|
|
1797
|
+
* bug in Vite (https://github.com/vitejs/vite/issues/6104).
|
|
1798
|
+
* React.createElement causes all elements to be rendered
|
|
1799
|
+
* as <tagname> instead of the actual Web Component.
|
|
1800
|
+
*/
|
|
1801
|
+
return createElement(tagName, newProps, children);
|
|
1802
|
+
}
|
|
1803
|
+
static get displayName() {
|
|
1804
|
+
return displayName;
|
|
1805
|
+
}
|
|
1806
|
+
};
|
|
1807
|
+
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
1808
|
+
if (ReactComponentContext) {
|
|
1809
|
+
ReactComponent.contextType = ReactComponentContext;
|
|
1810
|
+
}
|
|
1811
|
+
return createForwardRef$1(ReactComponent, displayName);
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
const IonTabButtonInner = /*@__PURE__*/ createReactComponent('ion-tab-button', undefined, undefined, defineCustomElement$1e);
|
|
1815
|
+
const IonTabBarInner = /*@__PURE__*/ createReactComponent('ion-tab-bar', undefined, undefined, defineCustomElement$1f);
|
|
1816
|
+
const IonTabsInner = /*@__PURE__*/ createReactComponent('ion-tabs', undefined, undefined, defineCustomElement$1g);
|
|
1817
|
+
const IonBackButtonInner = /*@__PURE__*/ createReactComponent('ion-back-button', undefined, undefined, defineCustomElement$1h);
|
|
1818
|
+
const IonRouterOutletInner = /*@__PURE__*/ createReactComponent('ion-router-outlet', undefined, undefined, defineCustomElement$1i);
|
|
1819
|
+
const IonAppInner = /*@__PURE__*/ createReactComponent('ion-app', undefined, undefined, defineCustomElement$1j);
|
|
1200
1820
|
// ionicons
|
|
1201
|
-
const IonIconInner = /*@__PURE__*/ createReactComponent('ion-icon', undefined, undefined, defineCustomElement$
|
|
1821
|
+
const IonIconInner = /*@__PURE__*/ createReactComponent('ion-icon', undefined, undefined, defineCustomElement$1k);
|
|
1202
1822
|
|
|
1203
1823
|
class IonApp extends React.Component {
|
|
1204
1824
|
constructor(props) {
|
|
@@ -1236,7 +1856,25 @@ class PageManager extends React.PureComponent {
|
|
|
1236
1856
|
super(props);
|
|
1237
1857
|
this.ionPageElementRef = React.createRef();
|
|
1238
1858
|
// React refs must be stable (not created inline).
|
|
1239
|
-
|
|
1859
|
+
// Wrap merged refs to add ion-page-invisible synchronously when element is created
|
|
1860
|
+
const baseMergedRefs = mergeRefs(this.ionPageElementRef, this.props.forwardedRef);
|
|
1861
|
+
// Guard against React 19 strict mode double-mount re-adding ion-page-invisible.
|
|
1862
|
+
// The ref fires again on remount after StackManager may have already removed it.
|
|
1863
|
+
let hasAppliedInvisible = false;
|
|
1864
|
+
this.stableMergedRefs = (node) => {
|
|
1865
|
+
if (node &&
|
|
1866
|
+
!hasAppliedInvisible &&
|
|
1867
|
+
!node.classList.contains('ion-page-invisible') &&
|
|
1868
|
+
!node.classList.contains('ion-page-hidden')) {
|
|
1869
|
+
// Add ion-page-invisible synchronously before first paint (if in an outlet)
|
|
1870
|
+
// This prevents the flash that occurs when componentDidMount runs after paint
|
|
1871
|
+
if (this.context?.isInOutlet?.()) {
|
|
1872
|
+
node.classList.add('ion-page-invisible');
|
|
1873
|
+
hasAppliedInvisible = true;
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
baseMergedRefs(node);
|
|
1877
|
+
};
|
|
1240
1878
|
/**
|
|
1241
1879
|
* This binds the scope of the following methods to the class scope.
|
|
1242
1880
|
* The `.bind` method returns a new function, so we need to assign it
|
|
@@ -1248,11 +1886,38 @@ class PageManager extends React.PureComponent {
|
|
|
1248
1886
|
this.ionViewWillLeaveHandler = this.ionViewWillLeaveHandler.bind(this);
|
|
1249
1887
|
this.ionViewDidLeaveHandler = this.ionViewDidLeaveHandler.bind(this);
|
|
1250
1888
|
}
|
|
1889
|
+
parseClasses(className) {
|
|
1890
|
+
if (!className)
|
|
1891
|
+
return new Set();
|
|
1892
|
+
return new Set(className.split(/\s+/).filter(Boolean));
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* Updates classList by diffing old/new className props.
|
|
1896
|
+
* Preserves framework-added classes (can-go-back, ion-page-invisible, etc.).
|
|
1897
|
+
*/
|
|
1898
|
+
updateUserClasses(oldClassName, newClassName) {
|
|
1899
|
+
if (!this.ionPageElementRef.current)
|
|
1900
|
+
return;
|
|
1901
|
+
const oldClasses = this.parseClasses(oldClassName);
|
|
1902
|
+
const newClasses = this.parseClasses(newClassName);
|
|
1903
|
+
oldClasses.forEach((cls) => {
|
|
1904
|
+
if (!newClasses.has(cls)) {
|
|
1905
|
+
this.ionPageElementRef.current.classList.remove(cls);
|
|
1906
|
+
}
|
|
1907
|
+
});
|
|
1908
|
+
newClasses.forEach((cls) => {
|
|
1909
|
+
if (!oldClasses.has(cls)) {
|
|
1910
|
+
this.ionPageElementRef.current.classList.add(cls);
|
|
1911
|
+
}
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1251
1914
|
componentDidMount() {
|
|
1252
1915
|
if (this.ionPageElementRef.current) {
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1916
|
+
// Add user classes via DOM manipulation to preserve framework-added classes.
|
|
1917
|
+
// We only set "ion-page" in JSX; user classes are added here.
|
|
1918
|
+
// Note: ion-page-invisible is added in the ref callback (stableMergedRefs) to prevent flash.
|
|
1919
|
+
// The ref callback runs synchronously when the element is created, before the browser paints.
|
|
1920
|
+
this.updateUserClasses(undefined, this.props.className);
|
|
1256
1921
|
this.context.registerIonPage(this.ionPageElementRef.current, this.props.routeInfo);
|
|
1257
1922
|
this.ionPageElementRef.current.addEventListener('ionViewWillEnter', this.ionViewWillEnterHandler);
|
|
1258
1923
|
this.ionPageElementRef.current.addEventListener('ionViewDidEnter', this.ionViewDidEnterHandler);
|
|
@@ -1260,6 +1925,11 @@ class PageManager extends React.PureComponent {
|
|
|
1260
1925
|
this.ionPageElementRef.current.addEventListener('ionViewDidLeave', this.ionViewDidLeaveHandler);
|
|
1261
1926
|
}
|
|
1262
1927
|
}
|
|
1928
|
+
componentDidUpdate(prevProps) {
|
|
1929
|
+
if (prevProps.className !== this.props.className) {
|
|
1930
|
+
this.updateUserClasses(prevProps.className, this.props.className);
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1263
1933
|
componentWillUnmount() {
|
|
1264
1934
|
if (this.ionPageElementRef.current) {
|
|
1265
1935
|
this.ionPageElementRef.current.removeEventListener('ionViewWillEnter', this.ionViewWillEnterHandler);
|
|
@@ -1289,9 +1959,11 @@ class PageManager extends React.PureComponent {
|
|
|
1289
1959
|
render() {
|
|
1290
1960
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1291
1961
|
const { className, children, routeInfo, forwardedRef, ...props } = this.props;
|
|
1962
|
+
// Only set "ion-page" in JSX. User classes are managed via DOM in componentDidMount/componentDidUpdate
|
|
1963
|
+
// to preserve framework-added classes (can-go-back, ion-page-invisible, etc.) when className prop changes.
|
|
1292
1964
|
return (jsx(IonLifeCycleContext.Consumer, { children: (context) => {
|
|
1293
1965
|
this.ionLifeCycleContext = context;
|
|
1294
|
-
return (jsx("div", { className:
|
|
1966
|
+
return (jsx("div", { className: "ion-page", ref: this.stableMergedRefs, ...props, children: children }));
|
|
1295
1967
|
} }));
|
|
1296
1968
|
}
|
|
1297
1969
|
static get contextType() {
|
|
@@ -1351,7 +2023,7 @@ const ReactDelegate = (addView, removeView) => {
|
|
|
1351
2023
|
};
|
|
1352
2024
|
};
|
|
1353
2025
|
|
|
1354
|
-
const IonNavInner = createReactComponent('ion-nav', undefined, undefined, defineCustomElement$
|
|
2026
|
+
const IonNavInner = createReactComponent('ion-nav', undefined, undefined, defineCustomElement$1l);
|
|
1355
2027
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1356
2028
|
const IonNavInternal = ({ children, forwardedRef, ...restOfProps }) => {
|
|
1357
2029
|
const [views, setViews] = useState([]);
|
|
@@ -1399,8 +2071,30 @@ class OutletPageManager extends React.Component {
|
|
|
1399
2071
|
*/
|
|
1400
2072
|
if (!this.outletIsReady) {
|
|
1401
2073
|
componentOnReady(this.ionRouterOutlet, () => {
|
|
2074
|
+
/**
|
|
2075
|
+
* Guard against duplicate callbacks from React strict mode double-mount.
|
|
2076
|
+
* Both componentDidMount calls pass the outer !outletIsReady check before
|
|
2077
|
+
* either async callback fires. Without this inner guard, the second callback
|
|
2078
|
+
* re-adds ion-page-invisible after the first callback's transition removed it,
|
|
2079
|
+
* and registerIonPage returns early (same element), leaving the page invisible.
|
|
2080
|
+
*/
|
|
2081
|
+
if (this.outletIsReady)
|
|
2082
|
+
return;
|
|
1402
2083
|
this.outletIsReady = true;
|
|
1403
|
-
|
|
2084
|
+
/**
|
|
2085
|
+
* Add ion-page + ion-page-invisible AFTER Stencil hydration but
|
|
2086
|
+
* BEFORE registerIonPage. Stencil hydration overwrites className,
|
|
2087
|
+
* so classes added in a React ref callback get wiped. Adding them
|
|
2088
|
+
* here -- after hydration -- ensures they persist until the parent
|
|
2089
|
+
* outlet's forward animation removes ion-page-invisible, preventing
|
|
2090
|
+
* a flash where the outlet is briefly visible at full opacity.
|
|
2091
|
+
*/
|
|
2092
|
+
const el = this.ionRouterOutlet;
|
|
2093
|
+
if (!el.classList.contains('ion-page-invisible') && !el.classList.contains('ion-page-hidden')) {
|
|
2094
|
+
el.classList.add('ion-page');
|
|
2095
|
+
el.classList.add('ion-page-invisible');
|
|
2096
|
+
}
|
|
2097
|
+
this.context.registerIonPage(el, this.props.routeInfo);
|
|
1404
2098
|
});
|
|
1405
2099
|
}
|
|
1406
2100
|
this.ionRouterOutlet.addEventListener('ionViewWillEnter', this.ionViewWillEnterHandler);
|
|
@@ -1430,10 +2124,10 @@ class OutletPageManager extends React.Component {
|
|
|
1430
2124
|
this.ionLifeCycleContext.ionViewDidLeave();
|
|
1431
2125
|
}
|
|
1432
2126
|
render() {
|
|
1433
|
-
const { StackManager, children, routeInfo, ...props } = this.props;
|
|
2127
|
+
const { StackManager, children, routeInfo, id, ...props } = this.props;
|
|
1434
2128
|
return (jsx(IonLifeCycleContext.Consumer, { children: (context) => {
|
|
1435
2129
|
this.ionLifeCycleContext = context;
|
|
1436
|
-
return (jsx(StackManager, { routeInfo: routeInfo, children: jsx(IonRouterOutletInner, { setRef: (val) => (this.ionRouterOutlet = val), ...props, children: children }) }));
|
|
2130
|
+
return (jsx(StackManager, { id: id, routeInfo: routeInfo, children: jsx(IonRouterOutletInner, { id: id, setRef: (val) => (this.ionRouterOutlet = val), ...props, children: children }) }));
|
|
1437
2131
|
} }));
|
|
1438
2132
|
}
|
|
1439
2133
|
static get contextType() {
|
|
@@ -1444,11 +2138,13 @@ class OutletPageManager extends React.Component {
|
|
|
1444
2138
|
class IonRouterOutletContainer extends React.Component {
|
|
1445
2139
|
constructor(props) {
|
|
1446
2140
|
super(props);
|
|
2141
|
+
this.outletId = props.id ?? `routerOutlet-${generateId('routerOutlet')}`;
|
|
1447
2142
|
}
|
|
1448
2143
|
render() {
|
|
1449
2144
|
const StackManager = this.context.getStackManager();
|
|
1450
2145
|
const { children, forwardedRef, ...props } = this.props;
|
|
1451
|
-
|
|
2146
|
+
const outletId = props.id ?? this.outletId;
|
|
2147
|
+
return this.context.hasIonicRouter() ? (props.ionPage ? (jsx(OutletPageManager, { StackManager: StackManager, routeInfo: this.context.routeInfo, ...props, children: children })) : (jsx(StackManager, { routeInfo: this.context.routeInfo, id: outletId, children: jsx(IonRouterOutletInner, { ...props, id: outletId, forwardedRef: forwardedRef, children: children }) }))) : (jsx(IonRouterOutletInner, { ref: forwardedRef, ...this.props, children: this.props.children }));
|
|
1452
2148
|
}
|
|
1453
2149
|
static get contextType() {
|
|
1454
2150
|
return NavContext;
|
|
@@ -1645,7 +2341,9 @@ const matchesTab = (pathname, href) => {
|
|
|
1645
2341
|
if (href === undefined) {
|
|
1646
2342
|
return false;
|
|
1647
2343
|
}
|
|
1648
|
-
|
|
2344
|
+
// Strip query string before comparing — href may contain search params (e.g., "/tabs/home?foo=bar")
|
|
2345
|
+
const hrefPathname = href.split('?')[0];
|
|
2346
|
+
const normalizedHref = hrefPathname.endsWith('/') && hrefPathname !== '/' ? hrefPathname.slice(0, -1) : hrefPathname;
|
|
1649
2347
|
return pathname === normalizedHref || pathname.startsWith(normalizedHref + '/');
|
|
1650
2348
|
};
|
|
1651
2349
|
class IonTabBarUnwrapped extends React.PureComponent {
|
|
@@ -1737,7 +2435,7 @@ class IonTabBarUnwrapped extends React.PureComponent {
|
|
|
1737
2435
|
const prevHref = state.tabs[prevActiveTab].currentHref;
|
|
1738
2436
|
const prevRouteOptions = state.tabs[prevActiveTab].currentRouteOptions;
|
|
1739
2437
|
if (activeTab !== prevActiveTab ||
|
|
1740
|
-
prevHref !== props.routeInfo?.pathname ||
|
|
2438
|
+
prevHref !== (props.routeInfo?.pathname || '') + (props.routeInfo?.search || '') ||
|
|
1741
2439
|
prevRouteOptions !== props.routeInfo?.routeOptions) {
|
|
1742
2440
|
tabs[activeTab] = {
|
|
1743
2441
|
originalHref: tabs[activeTab].originalHref,
|
|
@@ -1804,7 +2502,7 @@ class IonTabBarUnwrapped extends React.PureComponent {
|
|
|
1804
2502
|
return (child) => {
|
|
1805
2503
|
if (child != null && child.props && (child.type === IonTabButton || child.type.isTabButton)) {
|
|
1806
2504
|
const href = child.props.tab === activeTab
|
|
1807
|
-
? this.props.routeInfo?.pathname
|
|
2505
|
+
? (this.props.routeInfo?.pathname || '') + (this.props.routeInfo?.search || '')
|
|
1808
2506
|
: this.state.tabs[child.props.tab].currentHref;
|
|
1809
2507
|
const routeOptions = child.props.tab === activeTab
|
|
1810
2508
|
? this.props.routeInfo?.routeOptions
|
|
@@ -1929,20 +2627,6 @@ class IonRoute extends React.PureComponent {
|
|
|
1929
2627
|
}
|
|
1930
2628
|
}
|
|
1931
2629
|
|
|
1932
|
-
class IonRedirect extends React.PureComponent {
|
|
1933
|
-
render() {
|
|
1934
|
-
const IonRedirectInner = this.context.getIonRedirect();
|
|
1935
|
-
if (!this.context.hasIonicRouter() || !IonRedirect) {
|
|
1936
|
-
console.error('You either do not have an Ionic Router package, or your router does not support using <IonRedirect>');
|
|
1937
|
-
return null;
|
|
1938
|
-
}
|
|
1939
|
-
return jsx(IonRedirectInner, { ...this.props });
|
|
1940
|
-
}
|
|
1941
|
-
static get contextType() {
|
|
1942
|
-
return NavContext;
|
|
1943
|
-
}
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
2630
|
const IonRouterContext = React.createContext({
|
|
1947
2631
|
routeInfo: undefined, // TODO(FW-2959): type
|
|
1948
2632
|
push: () => {
|
|
@@ -1951,6 +2635,9 @@ const IonRouterContext = React.createContext({
|
|
|
1951
2635
|
back: () => {
|
|
1952
2636
|
throw new Error('An Ionic Router is required for IonRouterContext');
|
|
1953
2637
|
},
|
|
2638
|
+
navigateRoot: () => {
|
|
2639
|
+
throw new Error('An Ionic Router is required for IonRouterContext');
|
|
2640
|
+
},
|
|
1954
2641
|
canGoBack: () => {
|
|
1955
2642
|
throw new Error('An Ionic Router is required for IonRouterContext');
|
|
1956
2643
|
},
|
|
@@ -1967,9 +2654,10 @@ function useIonRouter() {
|
|
|
1967
2654
|
back: context.back,
|
|
1968
2655
|
push: context.push,
|
|
1969
2656
|
goBack: context.back,
|
|
2657
|
+
navigateRoot: context.navigateRoot,
|
|
1970
2658
|
canGoBack: context.canGoBack,
|
|
1971
2659
|
routeInfo: context.routeInfo,
|
|
1972
|
-
}), [context.back, context.push, context.canGoBack, context.routeInfo]);
|
|
2660
|
+
}), [context.back, context.push, context.navigateRoot, context.canGoBack, context.routeInfo]);
|
|
1973
2661
|
}
|
|
1974
2662
|
|
|
1975
2663
|
class CreateAnimation extends React.PureComponent {
|
|
@@ -2123,7 +2811,7 @@ function useController(displayName, controller, defineCustomElement) {
|
|
|
2123
2811
|
* @returns Returns the present and dismiss methods in an array
|
|
2124
2812
|
*/
|
|
2125
2813
|
function useIonActionSheet() {
|
|
2126
|
-
const controller = useController('IonActionSheet', actionSheetController, defineCustomElement$
|
|
2814
|
+
const controller = useController('IonActionSheet', actionSheetController, defineCustomElement$1b);
|
|
2127
2815
|
const present = useCallback((buttonsOrOptions, header) => {
|
|
2128
2816
|
if (Array.isArray(buttonsOrOptions)) {
|
|
2129
2817
|
return controller.present({
|
|
@@ -2249,7 +2937,7 @@ function useOverlay(displayName, controller, defineCustomElement, component, com
|
|
|
2249
2937
|
* @returns Returns the present and dismiss methods in an array
|
|
2250
2938
|
*/
|
|
2251
2939
|
function useIonModal(component, componentProps) {
|
|
2252
|
-
const controller = useOverlay('IonModal', modalController, defineCustomElement$
|
|
2940
|
+
const controller = useOverlay('IonModal', modalController, defineCustomElement$1c, component, componentProps);
|
|
2253
2941
|
const present = useCallback((options = {}) => {
|
|
2254
2942
|
controller.present(options);
|
|
2255
2943
|
}, [controller.present]);
|
|
@@ -2264,34 +2952,13 @@ function useIonModal(component, componentProps) {
|
|
|
2264
2952
|
* @returns Returns the present and dismiss methods in an array
|
|
2265
2953
|
*/
|
|
2266
2954
|
function useIonPopover(component, componentProps) {
|
|
2267
|
-
const controller = useOverlay('IonPopover', popoverController, defineCustomElement$
|
|
2955
|
+
const controller = useOverlay('IonPopover', popoverController, defineCustomElement$1d, component, componentProps);
|
|
2268
2956
|
const present = useCallback((options = {}) => {
|
|
2269
2957
|
controller.present(options);
|
|
2270
2958
|
}, [controller.present]);
|
|
2271
2959
|
return [present, controller.dismiss];
|
|
2272
2960
|
}
|
|
2273
2961
|
|
|
2274
|
-
/**
|
|
2275
|
-
* A hook for presenting/dismissing an IonPicker component
|
|
2276
|
-
* @returns Returns the present and dismiss methods in an array
|
|
2277
|
-
* @deprecated Use the inline ion-picker component instead.
|
|
2278
|
-
*/
|
|
2279
|
-
function useIonPicker() {
|
|
2280
|
-
const controller = useController('IonPicker', pickerController, defineCustomElement$1b);
|
|
2281
|
-
const present = useCallback((columnsOrOptions, buttons) => {
|
|
2282
|
-
if (Array.isArray(columnsOrOptions)) {
|
|
2283
|
-
return controller.present({
|
|
2284
|
-
columns: columnsOrOptions,
|
|
2285
|
-
buttons: buttons ?? [{ text: 'Ok' }],
|
|
2286
|
-
});
|
|
2287
|
-
}
|
|
2288
|
-
else {
|
|
2289
|
-
return controller.present(columnsOrOptions);
|
|
2290
|
-
}
|
|
2291
|
-
}, [controller.present]);
|
|
2292
|
-
return [present, controller.dismiss];
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
2962
|
/**
|
|
2296
2963
|
* A hook for presenting/dismissing an IonLoading component
|
|
2297
2964
|
* @returns Returns the present and dismiss methods in an array
|
|
@@ -2339,6 +3006,7 @@ const RouteManagerContext = /*@__PURE__*/ React.createContext({
|
|
|
2339
3006
|
findLeavingViewItemByRouteInfo: () => undefined,
|
|
2340
3007
|
findViewItemByRouteInfo: () => undefined,
|
|
2341
3008
|
getChildrenToRender: () => undefined,
|
|
3009
|
+
getViewItemsForOutlet: () => [],
|
|
2342
3010
|
goBack: () => undefined,
|
|
2343
3011
|
unMountViewItem: () => undefined,
|
|
2344
3012
|
});
|
|
@@ -2457,7 +3125,14 @@ class LocationHistory {
|
|
|
2457
3125
|
_replace(routeInfo) {
|
|
2458
3126
|
const routeInfos = this._getRouteInfosByKey(routeInfo.tab);
|
|
2459
3127
|
routeInfos && routeInfos.pop();
|
|
2460
|
-
|
|
3128
|
+
// Get the current route that's being replaced
|
|
3129
|
+
const currentRoute = this.locationHistory[this.locationHistory.length - 1];
|
|
3130
|
+
// Only pop from global history if we're replacing in the same outlet context.
|
|
3131
|
+
// Don't pop if we're entering a nested outlet (current route has no tab, new route has a tab)
|
|
3132
|
+
const isEnteringNestedOutlet = currentRoute && !currentRoute.tab && !!routeInfo.tab;
|
|
3133
|
+
if (!isEnteringNestedOutlet) {
|
|
3134
|
+
this.locationHistory.pop();
|
|
3135
|
+
}
|
|
2461
3136
|
this._add(routeInfo);
|
|
2462
3137
|
}
|
|
2463
3138
|
_clear() {
|
|
@@ -2489,6 +3164,20 @@ class LocationHistory {
|
|
|
2489
3164
|
}
|
|
2490
3165
|
return undefined;
|
|
2491
3166
|
}
|
|
3167
|
+
/**
|
|
3168
|
+
* Returns the most recent RouteInfo in global history (excluding the current
|
|
3169
|
+
* entry) whose pathname matches the given value. Unlike findLastLocation,
|
|
3170
|
+
* this search is tab-agnostic. Used by the multi-step back detection.
|
|
3171
|
+
*/
|
|
3172
|
+
findLastLocationByPathname(pathname) {
|
|
3173
|
+
for (let i = this.locationHistory.length - 2; i >= 0; i--) {
|
|
3174
|
+
const ri = this.locationHistory[i];
|
|
3175
|
+
if (ri && ri.pathname === pathname) {
|
|
3176
|
+
return ri;
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
return undefined;
|
|
3180
|
+
}
|
|
2492
3181
|
findLastLocation(routeInfo) {
|
|
2493
3182
|
const routeInfos = this._getRouteInfosByKey(routeInfo.tab);
|
|
2494
3183
|
if (routeInfos) {
|
|
@@ -2520,6 +3209,17 @@ class LocationHistory {
|
|
|
2520
3209
|
canGoBack() {
|
|
2521
3210
|
return this.locationHistory.length > 1;
|
|
2522
3211
|
}
|
|
3212
|
+
findTabForPathname(pathname) {
|
|
3213
|
+
for (const tab of Object.keys(this.tabHistory)) {
|
|
3214
|
+
const routeInfos = this.tabHistory[tab];
|
|
3215
|
+
for (let i = routeInfos.length - 1; i >= 0; i--) {
|
|
3216
|
+
if (routeInfos[i].pathname === pathname) {
|
|
3217
|
+
return tab;
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
return undefined;
|
|
3222
|
+
}
|
|
2523
3223
|
}
|
|
2524
3224
|
|
|
2525
3225
|
class NavManager extends React.PureComponent {
|
|
@@ -2532,6 +3232,9 @@ class NavManager extends React.PureComponent {
|
|
|
2532
3232
|
back: (animationBuilder) => {
|
|
2533
3233
|
this.goBack(undefined, animationBuilder);
|
|
2534
3234
|
},
|
|
3235
|
+
navigateRoot: (pathname, animationBuilder) => {
|
|
3236
|
+
this.props.onNavigateRoot(pathname, animationBuilder);
|
|
3237
|
+
},
|
|
2535
3238
|
canGoBack: () => this.props.locationHistory.canGoBack(),
|
|
2536
3239
|
nativeBack: () => this.props.onNativeBack(),
|
|
2537
3240
|
routeInfo: this.props.routeInfo,
|
|
@@ -2540,10 +3243,8 @@ class NavManager extends React.PureComponent {
|
|
|
2540
3243
|
goBack: this.goBack.bind(this),
|
|
2541
3244
|
hasIonicRouter: () => true,
|
|
2542
3245
|
navigate: this.navigate.bind(this),
|
|
2543
|
-
getIonRedirect: this.getIonRedirect.bind(this),
|
|
2544
3246
|
getIonRoute: this.getIonRoute.bind(this),
|
|
2545
3247
|
getStackManager: this.getStackManager.bind(this),
|
|
2546
|
-
getPageManager: this.getPageManager.bind(this),
|
|
2547
3248
|
routeInfo: this.props.routeInfo,
|
|
2548
3249
|
setCurrentTab: this.props.onSetCurrentTab,
|
|
2549
3250
|
changeTab: this.props.onChangeTab,
|
|
@@ -2576,12 +3277,6 @@ class NavManager extends React.PureComponent {
|
|
|
2576
3277
|
navigate(path, direction = 'forward', action = 'push', animationBuilder, options, tab) {
|
|
2577
3278
|
this.props.onNavigate(path, action, direction, animationBuilder, options, tab);
|
|
2578
3279
|
}
|
|
2579
|
-
getPageManager() {
|
|
2580
|
-
return PageManager;
|
|
2581
|
-
}
|
|
2582
|
-
getIonRedirect() {
|
|
2583
|
-
return this.props.ionRedirect;
|
|
2584
|
-
}
|
|
2585
3280
|
getIonRoute() {
|
|
2586
3281
|
return this.props.ionRoute;
|
|
2587
3282
|
}
|
|
@@ -2611,10 +3306,7 @@ class ViewStacks {
|
|
|
2611
3306
|
}
|
|
2612
3307
|
}
|
|
2613
3308
|
clear(outletId) {
|
|
2614
|
-
|
|
2615
|
-
return setTimeout(() => {
|
|
2616
|
-
delete this.viewStacks[outletId];
|
|
2617
|
-
}, 500);
|
|
3309
|
+
delete this.viewStacks[outletId];
|
|
2618
3310
|
}
|
|
2619
3311
|
getViewItemsForOutlet(outletId) {
|
|
2620
3312
|
return this.viewStacks[outletId] || [];
|
|
@@ -2643,5 +3335,5 @@ class ViewStacks {
|
|
|
2643
3335
|
}
|
|
2644
3336
|
}
|
|
2645
3337
|
|
|
2646
|
-
export { CreateAnimation, DefaultIonLifeCycleContext, IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonInputOtp, IonInputPasswordToggle, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonLifeCycleContext, IonList, IonListHeader, IonLoading, IonMenu, IonMenuButton, IonMenuToggle, IonModal, IonNav, IonNavLink, IonNote, IonPage, IonPicker, IonPickerColumn, IonPickerColumnOption,
|
|
3338
|
+
export { CreateAnimation, DefaultIonLifeCycleContext, IonAccordion, IonAccordionGroup, IonActionSheet, IonAlert, IonApp, IonAvatar, IonBackButton, IonBackdrop, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonDatetimeButton, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonInputOtp, IonInputPasswordToggle, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonLifeCycleContext, IonList, IonListHeader, IonLoading, IonMenu, IonMenuButton, IonMenuToggle, IonModal, IonNav, IonNavLink, IonNote, IonPage, IonPicker, IonPickerColumn, IonPickerColumnOption, IonPopover, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRoute, IonRouterContext, IonRouterLink, IonRouterOutlet, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSegmentContent, IonSegmentView, IonSelect, IonSelectModal, IonSelectOption, IonSkeletonText, IonSpinner, IonSplitPane, IonTab, IonTabBar, IonTabButton, IonTabs, IonTabsContext, IonText, IonTextarea, IonThumbnail, IonTitle, IonToast, IonToggle, IonToolbar, LocationHistory, NavContext, NavManager, RouteManagerContext, StackContext, ViewLifeCycleManager, ViewStacks, generateId, getConfig, getPlatforms, isPlatform, setupIonicReact, useIonActionSheet, useIonAlert, useIonLoading, useIonModal, useIonPopover, useIonRouter, useIonToast, useIonViewDidEnter, useIonViewDidLeave, useIonViewWillEnter, useIonViewWillLeave, withIonLifeCycle };
|
|
2647
3339
|
//# sourceMappingURL=index.js.map
|