@ionic/angular 8.8.9-dev.11780690883.11fe8a2a → 8.8.9-dev.11780945313.14080cb4
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/app-initialize.d.ts +3 -0
- package/common/directives/control-value-accessors/index.d.ts +1 -0
- package/common/directives/control-value-accessors/value-accessor.d.ts +36 -0
- package/common/directives/navigation/back-button.d.ts +23 -0
- package/common/directives/navigation/nav-params.d.ts +45 -0
- package/common/directives/navigation/nav.d.ts +21 -0
- package/common/directives/navigation/router-link-delegate.d.ts +60 -0
- package/common/directives/navigation/router-outlet.d.ts +104 -0
- package/common/directives/navigation/stack-controller.d.ts +42 -0
- package/common/directives/navigation/stack-utils.d.ts +38 -0
- package/common/directives/navigation/tabs.d.ts +83 -0
- package/common/index.d.ts +22 -0
- package/common/overlays/modal.d.ts +62 -0
- package/common/overlays/popover.d.ts +46 -0
- package/common/providers/angular-delegate.d.ts +28 -0
- package/common/providers/config.d.ts +11 -0
- package/common/providers/dom-controller.d.ts +16 -0
- package/common/providers/menu-controller.d.ts +78 -0
- package/common/providers/nav-controller.d.ts +116 -0
- package/common/providers/platform.d.ts +174 -0
- package/common/types/interfaces.d.ts +8 -0
- package/common/types/ionic-lifecycle-hooks.d.ts +27 -0
- package/common/types/overlay-options.d.ts +16 -0
- package/common/utils/overlay.d.ts +21 -0
- package/common/utils/proxy.d.ts +8 -0
- package/common/utils/routing.d.ts +28 -0
- package/common/utils/util.d.ts +1 -0
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic/bundle.ionic.css +1 -0
- package/css/ionic/bundle.ionic.css.map +1 -0
- package/css/ionic/core.ionic.css +1 -0
- package/css/ionic/core.ionic.css.map +1 -0
- package/css/ionic/global.bundle.ionic.css +1 -0
- package/css/ionic/global.bundle.ionic.css.map +1 -0
- package/css/ionic/ionic-swiper.ionic.css +1 -0
- package/css/ionic/ionic-swiper.ionic.css.map +1 -0
- package/css/ionic/link.ionic.css +1 -0
- package/css/ionic/link.ionic.css.map +1 -0
- package/css/ionic/structure.ionic.css +1 -0
- package/css/ionic/structure.ionic.css.map +1 -0
- package/css/ionic/typography.ionic.css +1 -0
- package/css/ionic/typography.ionic.css.map +1 -0
- package/css/ionic/utils.bundle.ionic.css +1 -0
- package/css/ionic/utils.bundle.ionic.css.map +1 -0
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/directives/angular-component-lib/utils.d.ts +9 -0
- package/directives/control-value-accessors/boolean-value-accessor.d.ts +10 -0
- package/directives/control-value-accessors/index.d.ts +4 -0
- package/directives/control-value-accessors/numeric-value-accessor.d.ts +11 -0
- package/directives/control-value-accessors/select-value-accessor.d.ts +9 -0
- package/directives/control-value-accessors/text-value-accessor.d.ts +9 -0
- package/directives/navigation/ion-back-button.d.ts +9 -0
- package/directives/navigation/ion-nav.d.ts +8 -0
- package/directives/navigation/ion-router-outlet.d.ts +25 -0
- package/directives/navigation/ion-tabs.d.ts +13 -0
- package/directives/navigation/router-link-delegate.d.ts +16 -0
- package/directives/overlays/modal.d.ts +6 -0
- package/directives/overlays/popover.d.ts +6 -0
- package/directives/proxies-list.d.ts +2 -0
- package/{types/ionic-angular.d.ts → directives/proxies.d.ts} +478 -703
- package/directives/validators/index.d.ts +2 -0
- package/directives/validators/max-validator.d.ts +12 -0
- package/directives/validators/min-validator.d.ts +12 -0
- package/esm2022/app-initialize.mjs +29 -0
- package/esm2022/common/directives/control-value-accessors/index.mjs +2 -0
- package/esm2022/common/directives/control-value-accessors/value-accessor.mjs +153 -0
- package/esm2022/common/directives/navigation/back-button.mjs +61 -0
- package/esm2022/common/directives/navigation/nav-params.mjs +47 -0
- package/esm2022/common/directives/navigation/nav.mjs +49 -0
- package/esm2022/common/directives/navigation/router-link-delegate.mjs +156 -0
- package/esm2022/common/directives/navigation/router-outlet.mjs +480 -0
- package/esm2022/common/directives/navigation/stack-controller.mjs +280 -0
- package/esm2022/common/directives/navigation/stack-utils.mjs +73 -0
- package/esm2022/common/directives/navigation/tabs.mjs +279 -0
- package/esm2022/common/index.mjs +20 -0
- package/esm2022/common/ionic-angular-common.mjs +5 -0
- package/esm2022/common/overlays/modal.mjs +103 -0
- package/esm2022/common/overlays/popover.mjs +91 -0
- package/esm2022/common/providers/angular-delegate.mjs +203 -0
- package/esm2022/common/providers/config.mjs +45 -0
- package/esm2022/common/providers/dom-controller.mjs +45 -0
- package/esm2022/common/providers/menu-controller.mjs +114 -0
- package/esm2022/common/providers/nav-controller.mjs +235 -0
- package/esm2022/common/providers/platform.mjs +258 -0
- package/esm2022/common/types/interfaces.mjs +2 -0
- package/esm2022/common/types/ionic-lifecycle-hooks.mjs +5 -0
- package/esm2022/common/types/overlay-options.mjs +2 -0
- package/esm2022/common/utils/overlay.mjs +26 -0
- package/esm2022/common/utils/proxy.mjs +47 -0
- package/esm2022/common/utils/routing.mjs +55 -0
- package/esm2022/common/utils/util.mjs +10 -0
- package/esm2022/directives/angular-component-lib/utils.mjs +59 -0
- package/esm2022/directives/control-value-accessors/boolean-value-accessor.mjs +42 -0
- package/esm2022/directives/control-value-accessors/index.mjs +5 -0
- package/esm2022/directives/control-value-accessors/numeric-value-accessor.mjs +50 -0
- package/esm2022/directives/control-value-accessors/select-value-accessor.mjs +39 -0
- package/esm2022/directives/control-value-accessors/text-value-accessor.mjs +38 -0
- package/esm2022/directives/navigation/ion-back-button.mjs +24 -0
- package/esm2022/directives/navigation/ion-nav.mjs +21 -0
- package/esm2022/directives/navigation/ion-router-outlet.mjs +52 -0
- package/esm2022/directives/navigation/ion-tabs.mjs +59 -0
- package/esm2022/directives/navigation/router-link-delegate.mjs +32 -0
- package/esm2022/directives/overlays/modal.mjs +22 -0
- package/esm2022/directives/overlays/popover.mjs +18 -0
- package/esm2022/directives/proxies-list.mjs +93 -0
- package/esm2022/directives/proxies.mjs +2465 -0
- package/esm2022/directives/validators/index.mjs +3 -0
- package/esm2022/directives/validators/max-validator.mjs +27 -0
- package/esm2022/directives/validators/min-validator.mjs +27 -0
- package/esm2022/index.mjs +32 -0
- package/esm2022/ionic-angular.mjs +5 -0
- package/esm2022/ionic-module.mjs +111 -0
- package/esm2022/providers/action-sheet-controller.mjs +19 -0
- package/esm2022/providers/alert-controller.mjs +19 -0
- package/esm2022/providers/animation-controller.mjs +38 -0
- package/esm2022/providers/gesture-controller.mjs +33 -0
- package/esm2022/providers/loading-controller.mjs +19 -0
- package/esm2022/providers/menu-controller.mjs +19 -0
- package/esm2022/providers/modal-controller.mjs +26 -0
- package/esm2022/providers/picker-controller.mjs +22 -0
- package/esm2022/providers/popover-controller.mjs +19 -0
- package/esm2022/providers/toast-controller.mjs +19 -0
- package/esm2022/standalone/directives/angular-component-lib/utils.mjs +59 -0
- package/esm2022/standalone/directives/checkbox.mjs +76 -0
- package/esm2022/standalone/directives/datetime.mjs +95 -0
- package/esm2022/standalone/directives/icon.mjs +35 -0
- package/esm2022/standalone/directives/index.mjs +13 -0
- package/esm2022/standalone/directives/input-otp.mjs +90 -0
- package/esm2022/standalone/directives/input.mjs +113 -0
- package/esm2022/standalone/directives/proxies.mjs +2356 -0
- package/esm2022/standalone/directives/radio-group.mjs +60 -0
- package/esm2022/standalone/directives/range.mjs +78 -0
- package/esm2022/standalone/directives/searchbar.mjs +82 -0
- package/esm2022/standalone/directives/segment.mjs +60 -0
- package/esm2022/standalone/directives/select.mjs +84 -0
- package/esm2022/standalone/directives/textarea.mjs +91 -0
- package/esm2022/standalone/directives/toggle.mjs +76 -0
- package/esm2022/standalone/index.mjs +25 -0
- package/esm2022/standalone/ionic-angular-standalone.mjs +5 -0
- package/esm2022/standalone/navigation/back-button.mjs +32 -0
- package/esm2022/standalone/navigation/nav.mjs +28 -0
- package/esm2022/standalone/navigation/router-link-delegate.mjs +28 -0
- package/esm2022/standalone/navigation/router-outlet.mjs +60 -0
- package/esm2022/standalone/navigation/tabs.mjs +58 -0
- package/esm2022/standalone/overlays/modal.mjs +32 -0
- package/esm2022/standalone/overlays/popover.mjs +28 -0
- package/esm2022/standalone/providers/action-sheet-controller.mjs +21 -0
- package/esm2022/standalone/providers/alert-controller.mjs +21 -0
- package/esm2022/standalone/providers/animation-controller.mjs +38 -0
- package/esm2022/standalone/providers/gesture-controller.mjs +33 -0
- package/esm2022/standalone/providers/ionic-angular.mjs +38 -0
- package/esm2022/standalone/providers/loading-controller.mjs +21 -0
- package/esm2022/standalone/providers/menu-controller.mjs +19 -0
- package/esm2022/standalone/providers/modal-controller.mjs +28 -0
- package/esm2022/standalone/providers/picker-controller.mjs +24 -0
- package/esm2022/standalone/providers/popover-controller.mjs +21 -0
- package/esm2022/standalone/providers/toast-controller.mjs +21 -0
- package/fesm2022/ionic-angular-common.mjs +79 -68
- package/fesm2022/ionic-angular-common.mjs.map +1 -1
- package/fesm2022/ionic-angular-standalone.mjs +911 -903
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2022/ionic-angular.mjs +771 -1065
- package/fesm2022/ionic-angular.mjs.map +1 -1
- package/index.d.ts +27 -0
- package/ionic-module.d.ts +28 -0
- package/package.json +16 -11
- package/providers/action-sheet-controller.d.ts +8 -0
- package/providers/alert-controller.d.ts +8 -0
- package/providers/animation-controller.d.ts +25 -0
- package/providers/gesture-controller.d.ts +13 -0
- package/providers/loading-controller.d.ts +8 -0
- package/providers/menu-controller.d.ts +7 -0
- package/providers/modal-controller.d.ts +12 -0
- package/providers/picker-controller.d.ts +11 -0
- package/providers/popover-controller.d.ts +9 -0
- package/providers/toast-controller.d.ts +8 -0
- package/schematics/add/index.js +1 -27
- package/schematics/utils/ast.js +2 -1
- package/schematics/utils/config.js +11 -10
- package/schematics/utils/package.js +2 -1
- package/standalone/directives/angular-component-lib/utils.d.ts +9 -0
- package/standalone/directives/checkbox.d.ts +30 -0
- package/standalone/directives/datetime.d.ts +30 -0
- package/standalone/directives/icon.d.ts +9 -0
- package/standalone/directives/index.d.ts +12 -0
- package/standalone/directives/input-otp.d.ts +49 -0
- package/standalone/directives/input.d.ts +47 -0
- package/standalone/directives/proxies.d.ts +1062 -0
- package/standalone/directives/radio-group.d.ts +18 -0
- package/standalone/directives/range.d.ts +47 -0
- package/standalone/directives/searchbar.d.ts +45 -0
- package/standalone/directives/segment.d.ts +19 -0
- package/standalone/directives/select.d.ts +34 -0
- package/standalone/directives/textarea.d.ts +37 -0
- package/standalone/directives/toggle.d.ts +28 -0
- package/standalone/index.d.ts +23 -0
- package/standalone/navigation/back-button.d.ts +9 -0
- package/standalone/navigation/nav.d.ts +8 -0
- package/standalone/navigation/router-link-delegate.d.ts +10 -0
- package/standalone/navigation/router-outlet.d.ts +25 -0
- package/standalone/navigation/tabs.d.ts +13 -0
- package/standalone/overlays/modal.d.ts +6 -0
- package/standalone/overlays/popover.d.ts +6 -0
- package/standalone/providers/action-sheet-controller.d.ts +8 -0
- package/standalone/providers/alert-controller.d.ts +8 -0
- package/standalone/providers/animation-controller.d.ts +25 -0
- package/standalone/providers/gesture-controller.d.ts +13 -0
- package/standalone/providers/ionic-angular.d.ts +7 -0
- package/standalone/providers/loading-controller.d.ts +8 -0
- package/standalone/providers/menu-controller.d.ts +7 -0
- package/standalone/providers/modal-controller.d.ts +12 -0
- package/standalone/providers/picker-controller.d.ts +11 -0
- package/standalone/providers/popover-controller.d.ts +9 -0
- package/standalone/providers/toast-controller.d.ts +8 -0
- package/types/ionic-angular-common.d.ts +0 -1014
- package/types/ionic-angular-standalone.d.ts +0 -1560
package/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { BooleanValueAccessorDirective as BooleanValueAccessor } from './directives/control-value-accessors/boolean-value-accessor';
|
|
2
|
+
export { NumericValueAccessorDirective as NumericValueAccessor } from './directives/control-value-accessors/numeric-value-accessor';
|
|
3
|
+
export { SelectValueAccessorDirective as SelectValueAccessor } from './directives/control-value-accessors/select-value-accessor';
|
|
4
|
+
export { TextValueAccessorDirective as TextValueAccessor } from './directives/control-value-accessors/text-value-accessor';
|
|
5
|
+
export { IonTabs } from './directives/navigation/ion-tabs';
|
|
6
|
+
export { IonBackButton } from './directives/navigation/ion-back-button';
|
|
7
|
+
export { IonNav } from './directives/navigation/ion-nav';
|
|
8
|
+
export { IonRouterOutlet } from './directives/navigation/ion-router-outlet';
|
|
9
|
+
export { RouterLinkDelegateDirective as RouterLinkDelegate, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegate, } from './directives/navigation/router-link-delegate';
|
|
10
|
+
export { IonModal } from './directives/overlays/modal';
|
|
11
|
+
export { IonPopover } from './directives/overlays/popover';
|
|
12
|
+
export * from './directives/proxies';
|
|
13
|
+
export * from './directives/validators';
|
|
14
|
+
export { DomController, NavController, Config, Platform, AngularDelegate, NavParams, IonicRouteStrategy, IonModalToken, ViewWillEnter, ViewWillLeave, ViewDidEnter, ViewDidLeave, } from '@ionic/angular/common';
|
|
15
|
+
export type { ModalOptions, PopoverOptions } from '@ionic/angular/common';
|
|
16
|
+
export { AlertController } from './providers/alert-controller';
|
|
17
|
+
export { AnimationController } from './providers/animation-controller';
|
|
18
|
+
export { ActionSheetController } from './providers/action-sheet-controller';
|
|
19
|
+
export { GestureController } from './providers/gesture-controller';
|
|
20
|
+
export { LoadingController } from './providers/loading-controller';
|
|
21
|
+
export { MenuController } from './providers/menu-controller';
|
|
22
|
+
export { ModalController } from './providers/modal-controller';
|
|
23
|
+
export { PickerController } from './providers/picker-controller';
|
|
24
|
+
export { PopoverController } from './providers/popover-controller';
|
|
25
|
+
export { ToastController } from './providers/toast-controller';
|
|
26
|
+
export { IonicModule } from './ionic-module';
|
|
27
|
+
export { createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression, getIonPageElement, Animation, AnimationBuilder, AnimationCallbackOptions, AnimationDirection, AnimationFill, AnimationKeyFrames, AnimationLifecycle, Gesture, GestureConfig, GestureDetail, NavComponentWithProps, SpinnerTypes, AccordionGroupCustomEvent, AccordionGroupChangeEventDetail, BreadcrumbCustomEvent, BreadcrumbCollapsedClickEventDetail, ActionSheetOptions, ActionSheetButton, AlertOptions, AlertInput, AlertButton, BackButtonEvent, CheckboxCustomEvent, CheckboxChangeEventDetail, DatetimeCustomEvent, DatetimeChangeEventDetail, InfiniteScrollCustomEvent, InputCustomEvent, InputChangeEventDetail, InputOtpCustomEvent, InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail, ItemReorderEventDetail, ItemReorderCustomEvent, ItemSlidingCustomEvent, IonicSafeString, LoadingOptions, MenuCustomEvent, ModalDragEventDetail, NavCustomEvent, PickerOptions, PickerButton, PickerColumn, PickerColumnOption, PlatformConfig, RadioGroupCustomEvent, RadioGroupChangeEventDetail, RangeCustomEvent, RangeChangeEventDetail, RangeKnobMoveStartEventDetail, RangeKnobMoveEndEventDetail, RefresherCustomEvent, RefresherEventDetail, RefresherPullEndCustomEvent, RefresherPullEndEventDetail, ReorderMoveCustomEvent, ReorderMoveEventDetail, ReorderEndCustomEvent, ReorderEndEventDetail, RouterEventDetail, RouterCustomEvent, ScrollBaseCustomEvent, ScrollBaseDetail, ScrollDetail, ScrollCustomEvent, SearchbarCustomEvent, SearchbarChangeEventDetail, SearchbarInputEventDetail, SegmentChangeEventDetail, SegmentCustomEvent, SegmentValue, SelectChangeEventDetail, SelectCustomEvent, TabsCustomEvent, TextareaChangeEventDetail, TextareaCustomEvent, ToastOptions, ToastButton, ToastLayout, ToggleChangeEventDetail, ToggleCustomEvent, TransitionOptions, openURL, } from '@ionic/core';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { IonicConfig } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./directives/proxies";
|
|
5
|
+
import * as i2 from "./directives/overlays/modal";
|
|
6
|
+
import * as i3 from "./directives/overlays/popover";
|
|
7
|
+
import * as i4 from "./directives/control-value-accessors/boolean-value-accessor";
|
|
8
|
+
import * as i5 from "./directives/control-value-accessors/numeric-value-accessor";
|
|
9
|
+
import * as i6 from "./directives/control-value-accessors/select-value-accessor";
|
|
10
|
+
import * as i7 from "./directives/control-value-accessors/text-value-accessor";
|
|
11
|
+
import * as i8 from "./directives/navigation/ion-tabs";
|
|
12
|
+
import * as i9 from "./directives/navigation/ion-router-outlet";
|
|
13
|
+
import * as i10 from "./directives/navigation/ion-back-button";
|
|
14
|
+
import * as i11 from "./directives/navigation/ion-nav";
|
|
15
|
+
import * as i12 from "./directives/navigation/router-link-delegate";
|
|
16
|
+
import * as i13 from "./directives/validators/min-validator";
|
|
17
|
+
import * as i14 from "./directives/validators/max-validator";
|
|
18
|
+
import * as i15 from "@angular/common";
|
|
19
|
+
type OptInAngularFeatures = {
|
|
20
|
+
useSetInputAPI?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare class IonicModule {
|
|
23
|
+
static forRoot(config?: IonicConfig & OptInAngularFeatures): ModuleWithProviders<IonicModule>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonicModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IonicModule, [typeof i1.IonAccordion, typeof i1.IonAccordionGroup, typeof i1.IonActionSheet, typeof i1.IonAlert, typeof i1.IonApp, typeof i1.IonAvatar, typeof i1.IonBackdrop, typeof i1.IonBadge, typeof i1.IonBreadcrumb, typeof i1.IonBreadcrumbs, typeof i1.IonButton, typeof i1.IonButtons, typeof i1.IonCard, typeof i1.IonCardContent, typeof i1.IonCardHeader, typeof i1.IonCardSubtitle, typeof i1.IonCardTitle, typeof i1.IonCheckbox, typeof i1.IonChip, typeof i1.IonCol, typeof i1.IonContent, typeof i1.IonDatetime, typeof i1.IonDatetimeButton, typeof i1.IonDivider, typeof i1.IonFab, typeof i1.IonFabButton, typeof i1.IonFabList, typeof i1.IonFooter, typeof i1.IonGallery, typeof i1.IonGalleryItem, typeof i1.IonGrid, typeof i1.IonHeader, typeof i1.IonIcon, typeof i1.IonImg, typeof i1.IonInfiniteScroll, typeof i1.IonInfiniteScrollContent, typeof i1.IonInput, typeof i1.IonInputOtp, typeof i1.IonInputPasswordToggle, typeof i1.IonItem, typeof i1.IonItemDivider, typeof i1.IonItemGroup, typeof i1.IonItemOption, typeof i1.IonItemOptions, typeof i1.IonItemSliding, typeof i1.IonLabel, typeof i1.IonList, typeof i1.IonListHeader, typeof i1.IonLoading, typeof i1.IonMenu, typeof i1.IonMenuButton, typeof i1.IonMenuToggle, typeof i1.IonNavLink, typeof i1.IonNote, typeof i1.IonPicker, typeof i1.IonPickerColumn, typeof i1.IonPickerColumnOption, typeof i1.IonPickerLegacy, typeof i1.IonProgressBar, typeof i1.IonRadio, typeof i1.IonRadioGroup, typeof i1.IonRange, typeof i1.IonRefresher, typeof i1.IonRefresherContent, typeof i1.IonReorder, typeof i1.IonReorderGroup, typeof i1.IonRippleEffect, typeof i1.IonRow, typeof i1.IonSearchbar, typeof i1.IonSegment, typeof i1.IonSegmentButton, typeof i1.IonSegmentContent, typeof i1.IonSegmentView, typeof i1.IonSelect, typeof i1.IonSelectModal, typeof i1.IonSelectOption, typeof i1.IonSkeletonText, typeof i1.IonSpinner, typeof i1.IonSplitPane, typeof i1.IonTab, typeof i1.IonTabBar, typeof i1.IonTabButton, typeof i1.IonText, typeof i1.IonTextarea, typeof i1.IonThumbnail, typeof i1.IonTitle, typeof i1.IonToast, typeof i1.IonToggle, typeof i1.IonToolbar, typeof i2.IonModal, typeof i3.IonPopover, typeof i4.BooleanValueAccessorDirective, typeof i5.NumericValueAccessorDirective, typeof i6.SelectValueAccessorDirective, typeof i7.TextValueAccessorDirective, typeof i8.IonTabs, typeof i9.IonRouterOutlet, typeof i10.IonBackButton, typeof i11.IonNav, typeof i12.RouterLinkDelegateDirective, typeof i12.RouterLinkWithHrefDelegateDirective, typeof i13.IonMinValidator, typeof i14.IonMaxValidator], [typeof i15.CommonModule], [typeof i1.IonAccordion, typeof i1.IonAccordionGroup, typeof i1.IonActionSheet, typeof i1.IonAlert, typeof i1.IonApp, typeof i1.IonAvatar, typeof i1.IonBackdrop, typeof i1.IonBadge, typeof i1.IonBreadcrumb, typeof i1.IonBreadcrumbs, typeof i1.IonButton, typeof i1.IonButtons, typeof i1.IonCard, typeof i1.IonCardContent, typeof i1.IonCardHeader, typeof i1.IonCardSubtitle, typeof i1.IonCardTitle, typeof i1.IonCheckbox, typeof i1.IonChip, typeof i1.IonCol, typeof i1.IonContent, typeof i1.IonDatetime, typeof i1.IonDatetimeButton, typeof i1.IonDivider, typeof i1.IonFab, typeof i1.IonFabButton, typeof i1.IonFabList, typeof i1.IonFooter, typeof i1.IonGallery, typeof i1.IonGalleryItem, typeof i1.IonGrid, typeof i1.IonHeader, typeof i1.IonIcon, typeof i1.IonImg, typeof i1.IonInfiniteScroll, typeof i1.IonInfiniteScrollContent, typeof i1.IonInput, typeof i1.IonInputOtp, typeof i1.IonInputPasswordToggle, typeof i1.IonItem, typeof i1.IonItemDivider, typeof i1.IonItemGroup, typeof i1.IonItemOption, typeof i1.IonItemOptions, typeof i1.IonItemSliding, typeof i1.IonLabel, typeof i1.IonList, typeof i1.IonListHeader, typeof i1.IonLoading, typeof i1.IonMenu, typeof i1.IonMenuButton, typeof i1.IonMenuToggle, typeof i1.IonNavLink, typeof i1.IonNote, typeof i1.IonPicker, typeof i1.IonPickerColumn, typeof i1.IonPickerColumnOption, typeof i1.IonPickerLegacy, typeof i1.IonProgressBar, typeof i1.IonRadio, typeof i1.IonRadioGroup, typeof i1.IonRange, typeof i1.IonRefresher, typeof i1.IonRefresherContent, typeof i1.IonReorder, typeof i1.IonReorderGroup, typeof i1.IonRippleEffect, typeof i1.IonRow, typeof i1.IonSearchbar, typeof i1.IonSegment, typeof i1.IonSegmentButton, typeof i1.IonSegmentContent, typeof i1.IonSegmentView, typeof i1.IonSelect, typeof i1.IonSelectModal, typeof i1.IonSelectOption, typeof i1.IonSkeletonText, typeof i1.IonSpinner, typeof i1.IonSplitPane, typeof i1.IonTab, typeof i1.IonTabBar, typeof i1.IonTabButton, typeof i1.IonText, typeof i1.IonTextarea, typeof i1.IonThumbnail, typeof i1.IonTitle, typeof i1.IonToast, typeof i1.IonToggle, typeof i1.IonToolbar, typeof i2.IonModal, typeof i3.IonPopover, typeof i4.BooleanValueAccessorDirective, typeof i5.NumericValueAccessorDirective, typeof i6.SelectValueAccessorDirective, typeof i7.TextValueAccessorDirective, typeof i8.IonTabs, typeof i9.IonRouterOutlet, typeof i10.IonBackButton, typeof i11.IonNav, typeof i12.RouterLinkDelegateDirective, typeof i12.RouterLinkWithHrefDelegateDirective, typeof i13.IonMinValidator, typeof i14.IonMaxValidator]>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IonicModule>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/angular",
|
|
3
|
-
"version": "8.8.9-dev.
|
|
3
|
+
"version": "8.8.9-dev.11780945313.14080cb4",
|
|
4
4
|
"description": "Angular specific wrappers for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -31,34 +31,39 @@
|
|
|
31
31
|
"default": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
".": {
|
|
34
|
-
"types": "./
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"esm2022": "./esm2022/ionic-angular.mjs",
|
|
36
|
+
"esm": "./esm2022/ionic-angular.mjs",
|
|
35
37
|
"default": "./fesm2022/ionic-angular.mjs"
|
|
36
38
|
},
|
|
37
39
|
"./common": {
|
|
38
|
-
"types": "./
|
|
40
|
+
"types": "./common/index.d.ts",
|
|
41
|
+
"esm2022": "./esm2022/common/ionic-angular-common.mjs",
|
|
42
|
+
"esm": "./esm2022/common/ionic-angular-common.mjs",
|
|
39
43
|
"default": "./fesm2022/ionic-angular-common.mjs"
|
|
40
44
|
},
|
|
41
45
|
"./standalone": {
|
|
42
|
-
"types": "./
|
|
46
|
+
"types": "./standalone/index.d.ts",
|
|
47
|
+
"esm2022": "./esm2022/standalone/ionic-angular-standalone.mjs",
|
|
48
|
+
"esm": "./esm2022/standalone/ionic-angular-standalone.mjs",
|
|
43
49
|
"default": "./fesm2022/ionic-angular-standalone.mjs"
|
|
44
50
|
}
|
|
45
51
|
},
|
|
46
52
|
"dependencies": {
|
|
47
|
-
"@ionic/core": "8.8.9-dev.
|
|
53
|
+
"@ionic/core": "8.8.9-dev.11780945313.14080cb4",
|
|
48
54
|
"ionicons": "^8.0.13",
|
|
49
55
|
"jsonc-parser": "^3.0.0",
|
|
50
56
|
"tslib": "^2.3.0"
|
|
51
57
|
},
|
|
52
58
|
"peerDependencies": {
|
|
53
|
-
"@angular/core": ">=
|
|
54
|
-
"@angular/forms": ">=
|
|
55
|
-
"@angular/router": ">=
|
|
59
|
+
"@angular/core": ">=16.0.0",
|
|
60
|
+
"@angular/forms": ">=16.0.0",
|
|
61
|
+
"@angular/router": ">=16.0.0",
|
|
56
62
|
"rxjs": ">=7.5.0",
|
|
57
63
|
"zone.js": ">=0.13.0"
|
|
58
64
|
},
|
|
59
65
|
"schematics": "./schematics/collection.json",
|
|
60
66
|
"module": "fesm2022/ionic-angular.mjs",
|
|
61
|
-
"typings": "
|
|
62
|
-
"sideEffects": false
|
|
63
|
-
"type": "module"
|
|
67
|
+
"typings": "index.d.ts",
|
|
68
|
+
"sideEffects": false
|
|
64
69
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { ActionSheetOptions } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ActionSheetController extends OverlayBaseController<ActionSheetOptions, HTMLIonActionSheetElement> {
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetController, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ActionSheetController>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { AlertOptions } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AlertController extends OverlayBaseController<AlertOptions, HTMLIonAlertElement> {
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertController, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlertController>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Animation } from '@ionic/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnimationController {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new animation
|
|
6
|
+
*/
|
|
7
|
+
create(animationId?: string): Animation;
|
|
8
|
+
/**
|
|
9
|
+
* EXPERIMENTAL
|
|
10
|
+
*
|
|
11
|
+
* Given a progression and a cubic bezier function,
|
|
12
|
+
* this utility returns the time value(s) at which the
|
|
13
|
+
* cubic bezier reaches the given time progression.
|
|
14
|
+
*
|
|
15
|
+
* If the cubic bezier never reaches the progression
|
|
16
|
+
* the result will be an empty array.
|
|
17
|
+
*
|
|
18
|
+
* This is most useful for switching between easing curves
|
|
19
|
+
* when doing a gesture animation (i.e. going from linear easing
|
|
20
|
+
* during a drag, to another easing when `progressEnd` is called)
|
|
21
|
+
*/
|
|
22
|
+
easingTime(p0: number[], p1: number[], p2: number[], p3: number[], progression: number): number[];
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnimationController, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AnimationController>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import type { Gesture, GestureConfig } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GestureController {
|
|
5
|
+
private zone;
|
|
6
|
+
constructor(zone: NgZone);
|
|
7
|
+
/**
|
|
8
|
+
* Create a new gesture
|
|
9
|
+
*/
|
|
10
|
+
create(opts: GestureConfig, runInsideAngularZone?: boolean): Gesture;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GestureController, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GestureController>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { LoadingOptions } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LoadingController extends OverlayBaseController<LoadingOptions, HTMLIonLoadingElement> {
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingController, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingController>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuController as MenuControllerBase } from '@ionic/angular/common';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MenuController extends MenuControllerBase {
|
|
4
|
+
constructor();
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuController, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MenuController>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { ModalOptions } from '@ionic/angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ModalController extends OverlayBaseController<ModalOptions, HTMLIonModalElement> {
|
|
5
|
+
private angularDelegate;
|
|
6
|
+
private injector;
|
|
7
|
+
private environmentInjector;
|
|
8
|
+
constructor();
|
|
9
|
+
create(opts: ModalOptions): Promise<HTMLIonModalElement>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalController, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalController>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { PickerOptions } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use the inline ion-picker component instead.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PickerController extends OverlayBaseController<PickerOptions, HTMLIonPickerLegacyElement> {
|
|
8
|
+
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PickerController, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PickerController>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { PopoverOptions } from '@ionic/angular/common';
|
|
3
|
+
export declare class PopoverController extends OverlayBaseController<PopoverOptions, HTMLIonPopoverElement> {
|
|
4
|
+
private angularDelegate;
|
|
5
|
+
private injector;
|
|
6
|
+
private environmentInjector;
|
|
7
|
+
constructor();
|
|
8
|
+
create(opts: PopoverOptions): Promise<HTMLIonPopoverElement>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OverlayBaseController } from '@ionic/angular/common';
|
|
2
|
+
import type { ToastOptions } from '@ionic/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ToastController extends OverlayBaseController<ToastOptions, HTMLIonToastElement> {
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastController, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastController>;
|
|
8
|
+
}
|
package/schematics/add/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = ngAdd;
|
|
4
3
|
const core_1 = require("@angular-devkit/core");
|
|
5
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
5
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
@@ -66,31 +65,6 @@ function addProvideIonicAngular(projectName, projectSourceRoot) {
|
|
|
66
65
|
return host;
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Adds `provideZoneChangeDetection()` to a standalone project's app config.
|
|
71
|
-
* Angular 21 makes both `bootstrapApplication` and `bootstrapModule` default
|
|
72
|
-
* to zoneless change detection, which breaks Ionic's NgZone-based async
|
|
73
|
-
* lifecycle. Registering the provider explicitly preserves the existing
|
|
74
|
-
* zone-based default on Angular 18-20 and is required on 21+.
|
|
75
|
-
*
|
|
76
|
-
* NgModule-based projects are equally affected on 21+ but are not handled
|
|
77
|
-
* here: the reliable place to opt out of zoneless for `bootstrapModule` is
|
|
78
|
-
* its `applicationProviders` option in main.ts, not `AppModule.providers`,
|
|
79
|
-
* and this schematic does not yet edit main.ts. Users upgrading an existing
|
|
80
|
-
* NgModule project to ng21 must add it manually.
|
|
81
|
-
*
|
|
82
|
-
* @param projectName The name of the project.
|
|
83
|
-
* @param projectSourceRoot The source root path of the project.
|
|
84
|
-
*/
|
|
85
|
-
function addProvideZoneChangeDetection(projectName, projectSourceRoot) {
|
|
86
|
-
return (host) => {
|
|
87
|
-
const appConfig = `${projectSourceRoot}/app/app.config.ts`;
|
|
88
|
-
if (host.exists(appConfig)) {
|
|
89
|
-
return (0, utility_1.addRootProvider)(projectName, ({ code, external }) => code `${external('provideZoneChangeDetection', '@angular/core')}()`);
|
|
90
|
-
}
|
|
91
|
-
return host;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
68
|
function addIonicStyles(projectName, projectSourceRoot) {
|
|
95
69
|
return (host) => {
|
|
96
70
|
const ionicStyles = [
|
|
@@ -200,7 +174,6 @@ function ngAdd(options) {
|
|
|
200
174
|
addIonicAngularToolkitToAngularJson(),
|
|
201
175
|
addIonicAngularModuleToAppModule(sourcePath),
|
|
202
176
|
addProvideIonicAngular(options.project, sourcePath),
|
|
203
|
-
addProvideZoneChangeDetection(options.project, sourcePath),
|
|
204
177
|
addIonicBuilder(options.project),
|
|
205
178
|
addIonicStyles(options.project, sourcePath),
|
|
206
179
|
addIonicons(options.project, sourcePath),
|
|
@@ -211,3 +184,4 @@ function ngAdd(options) {
|
|
|
211
184
|
]);
|
|
212
185
|
};
|
|
213
186
|
}
|
|
187
|
+
exports.default = ngAdd;
|
package/schematics/utils/ast.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addIonicModuleImportToNgModule =
|
|
3
|
+
exports.addIonicModuleImportToNgModule = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
6
6
|
const change_1 = require("@schematics/angular/utility/change");
|
|
@@ -29,3 +29,4 @@ function addIonicModuleImportToNgModule(host, modulePath) {
|
|
|
29
29
|
(0, change_1.applyToUpdateRecorder)(recorder, metadataChange);
|
|
30
30
|
host.commitUpdate(recorder);
|
|
31
31
|
}
|
|
32
|
+
exports.addIonicModuleImportToNgModule = addIonicModuleImportToNgModule;
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readConfig =
|
|
4
|
-
exports.writeConfig = writeConfig;
|
|
5
|
-
exports.getDefaultAngularAppName = getDefaultAngularAppName;
|
|
6
|
-
exports.addStyle = addStyle;
|
|
7
|
-
exports.addAsset = addAsset;
|
|
8
|
-
exports.addArchitectBuilder = addArchitectBuilder;
|
|
9
|
-
exports.addCli = addCli;
|
|
10
|
-
exports.addSchematics = addSchematics;
|
|
11
|
-
exports.getWorkspacePath = getWorkspacePath;
|
|
12
|
-
exports.getWorkspace = getWorkspace;
|
|
3
|
+
exports.getWorkspace = exports.getWorkspacePath = exports.addSchematics = exports.addCli = exports.addArchitectBuilder = exports.addAsset = exports.addStyle = exports.getDefaultAngularAppName = exports.writeConfig = exports.readConfig = void 0;
|
|
13
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
14
5
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
15
6
|
const ANGULAR_JSON_PATH = 'angular.json';
|
|
16
7
|
function readConfig(host) {
|
|
17
8
|
return host.readJson(ANGULAR_JSON_PATH);
|
|
18
9
|
}
|
|
10
|
+
exports.readConfig = readConfig;
|
|
19
11
|
function writeConfig(host, config) {
|
|
20
12
|
host.overwrite(ANGULAR_JSON_PATH, JSON.stringify(config, null, 2));
|
|
21
13
|
}
|
|
14
|
+
exports.writeConfig = writeConfig;
|
|
22
15
|
function isAngularBrowserProject(projectConfig) {
|
|
23
16
|
if (projectConfig.projectType === 'application') {
|
|
24
17
|
const buildConfig = projectConfig.architect.build;
|
|
@@ -43,6 +36,7 @@ function getDefaultAngularAppName(config) {
|
|
|
43
36
|
}
|
|
44
37
|
return projectNames[0];
|
|
45
38
|
}
|
|
39
|
+
exports.getDefaultAngularAppName = getDefaultAngularAppName;
|
|
46
40
|
function getAngularJson(config, projectName) {
|
|
47
41
|
// eslint-disable-next-line no-prototype-builtins
|
|
48
42
|
if (!config.projects.hasOwnProperty(projectName)) {
|
|
@@ -68,6 +62,7 @@ function addStyle(host, projectName, stylePath) {
|
|
|
68
62
|
});
|
|
69
63
|
writeConfig(host, config);
|
|
70
64
|
}
|
|
65
|
+
exports.addStyle = addStyle;
|
|
71
66
|
function addAsset(host, projectName, architect, asset) {
|
|
72
67
|
const config = readConfig(host);
|
|
73
68
|
const angularJson = getAngularJson(config, projectName);
|
|
@@ -77,12 +72,14 @@ function addAsset(host, projectName, architect, asset) {
|
|
|
77
72
|
writeConfig(host, config);
|
|
78
73
|
}
|
|
79
74
|
}
|
|
75
|
+
exports.addAsset = addAsset;
|
|
80
76
|
function addArchitectBuilder(host, projectName, builderName, builderOpts) {
|
|
81
77
|
const config = readConfig(host);
|
|
82
78
|
const angularJson = getAngularJson(config, projectName);
|
|
83
79
|
angularJson.architect[builderName] = builderOpts;
|
|
84
80
|
writeConfig(host, config);
|
|
85
81
|
}
|
|
82
|
+
exports.addArchitectBuilder = addArchitectBuilder;
|
|
86
83
|
/**
|
|
87
84
|
* Updates the angular.json to add an additional schematic collection
|
|
88
85
|
* to the CLI configuration.
|
|
@@ -98,6 +95,7 @@ function addCli(host, collectionName) {
|
|
|
98
95
|
angularJson.cli.schematicCollections.push(collectionName);
|
|
99
96
|
writeConfig(host, angularJson);
|
|
100
97
|
}
|
|
98
|
+
exports.addCli = addCli;
|
|
101
99
|
function addSchematics(host, schematicName, schematicOpts) {
|
|
102
100
|
const angularJson = readConfig(host);
|
|
103
101
|
if (angularJson.schematics === undefined) {
|
|
@@ -106,11 +104,13 @@ function addSchematics(host, schematicName, schematicOpts) {
|
|
|
106
104
|
angularJson.schematics[schematicName] = schematicOpts;
|
|
107
105
|
writeConfig(host, angularJson);
|
|
108
106
|
}
|
|
107
|
+
exports.addSchematics = addSchematics;
|
|
109
108
|
function getWorkspacePath(host) {
|
|
110
109
|
const possibleFiles = ['/angular.json', '/.angular.json'];
|
|
111
110
|
const path = possibleFiles.filter((path) => host.exists(path))[0];
|
|
112
111
|
return path;
|
|
113
112
|
}
|
|
113
|
+
exports.getWorkspacePath = getWorkspacePath;
|
|
114
114
|
function getWorkspace(host) {
|
|
115
115
|
const path = getWorkspacePath(host);
|
|
116
116
|
const configBuffer = host.read(path);
|
|
@@ -120,3 +120,4 @@ function getWorkspace(host) {
|
|
|
120
120
|
const content = configBuffer.toString();
|
|
121
121
|
return (0, jsonc_parser_1.parse)(content);
|
|
122
122
|
}
|
|
123
|
+
exports.getWorkspace = getWorkspace;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addPackageToPackageJson =
|
|
3
|
+
exports.addPackageToPackageJson = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Adds a package to the package.json
|
|
6
6
|
*/
|
|
@@ -19,3 +19,4 @@ function addPackageToPackageJson(host, type, pkg, version) {
|
|
|
19
19
|
}
|
|
20
20
|
return host;
|
|
21
21
|
}
|
|
22
|
+
exports.addPackageToPackageJson = addPackageToPackageJson;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
+
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
+
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
5
|
+
export declare function ProxyCmp(opts: {
|
|
6
|
+
defineCustomElementFn?: () => void;
|
|
7
|
+
inputs?: any;
|
|
8
|
+
methods?: any;
|
|
9
|
+
}): (cls: any) => any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from '@ionic/angular/common';
|
|
3
|
+
import type { CheckboxChangeEventDetail, Components } from '@ionic/core/components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IonCheckbox extends ValueAccessor {
|
|
6
|
+
protected z: NgZone;
|
|
7
|
+
protected el: HTMLElement;
|
|
8
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone, injector: Injector);
|
|
9
|
+
writeValue(value: boolean): void;
|
|
10
|
+
handleIonChange(el: HTMLIonCheckboxElement | HTMLIonToggleElement): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonCheckbox, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonCheckbox, "ion-checkbox", never, { "checked": { "alias": "checked"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare interface IonCheckbox extends Components.IonCheckbox {
|
|
15
|
+
/**
|
|
16
|
+
* Emitted when the checked property has changed
|
|
17
|
+
as a result of a user action such as a click.
|
|
18
|
+
This event will not emit when programmatically
|
|
19
|
+
setting the checked property.
|
|
20
|
+
*/
|
|
21
|
+
ionChange: EventEmitter<CustomEvent<CheckboxChangeEventDetail>>;
|
|
22
|
+
/**
|
|
23
|
+
* Emitted when the checkbox has focus.
|
|
24
|
+
*/
|
|
25
|
+
ionFocus: EventEmitter<CustomEvent<void>>;
|
|
26
|
+
/**
|
|
27
|
+
* Emitted when the checkbox loses focus.
|
|
28
|
+
*/
|
|
29
|
+
ionBlur: EventEmitter<CustomEvent<void>>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from '@ionic/angular/common';
|
|
3
|
+
import type { DatetimeChangeEventDetail, Components } from '@ionic/core/components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IonDatetime extends ValueAccessor {
|
|
6
|
+
protected z: NgZone;
|
|
7
|
+
protected el: HTMLElement;
|
|
8
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone, injector: Injector);
|
|
9
|
+
handleIonChange(el: HTMLIonDatetimeElement): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonDatetime, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonDatetime, "ion-datetime", never, { "cancelText": { "alias": "cancelText"; "required": false; }; "clearText": { "alias": "clearText"; "required": false; }; "color": { "alias": "color"; "required": false; }; "dayValues": { "alias": "dayValues"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "doneText": { "alias": "doneText"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; "highlightedDates": { "alias": "highlightedDates"; "required": false; }; "hourCycle": { "alias": "hourCycle"; "required": false; }; "hourValues": { "alias": "hourValues"; "required": false; }; "isDateEnabled": { "alias": "isDateEnabled"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "minuteValues": { "alias": "minuteValues"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "monthValues": { "alias": "monthValues"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "name": { "alias": "name"; "required": false; }; "preferWheel": { "alias": "preferWheel"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "showDefaultButtons": { "alias": "showDefaultButtons"; "required": false; }; "showDefaultTimeLabel": { "alias": "showDefaultTimeLabel"; "required": false; }; "showDefaultTitle": { "alias": "showDefaultTitle"; "required": false; }; "size": { "alias": "size"; "required": false; }; "titleSelectedDatesFormatter": { "alias": "titleSelectedDatesFormatter"; "required": false; }; "value": { "alias": "value"; "required": false; }; "yearValues": { "alias": "yearValues"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare interface IonDatetime extends Components.IonDatetime {
|
|
14
|
+
/**
|
|
15
|
+
* Emitted when the datetime selection was cancelled.
|
|
16
|
+
*/
|
|
17
|
+
ionCancel: EventEmitter<CustomEvent<void>>;
|
|
18
|
+
/**
|
|
19
|
+
* Emitted when the value (selected date) has changed.
|
|
20
|
+
*/
|
|
21
|
+
ionChange: EventEmitter<CustomEvent<DatetimeChangeEventDetail>>;
|
|
22
|
+
/**
|
|
23
|
+
* Emitted when the datetime has focus.
|
|
24
|
+
*/
|
|
25
|
+
ionFocus: EventEmitter<CustomEvent<void>>;
|
|
26
|
+
/**
|
|
27
|
+
* Emitted when the datetime loses focus.
|
|
28
|
+
*/
|
|
29
|
+
ionBlur: EventEmitter<CustomEvent<void>>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IonIcon {
|
|
4
|
+
protected z: NgZone;
|
|
5
|
+
protected el: HTMLElement;
|
|
6
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonIcon, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonIcon, "ion-icon", never, { "color": { "alias": "color"; "required": false; }; "flipRtl": { "alias": "flipRtl"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "ios": { "alias": "ios"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; "md": { "alias": "md"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "sanitize": { "alias": "sanitize"; "required": false; }; "size": { "alias": "size"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './checkbox';
|
|
2
|
+
export * from './datetime';
|
|
3
|
+
export * from './icon';
|
|
4
|
+
export * from './input';
|
|
5
|
+
export * from './input-otp';
|
|
6
|
+
export * from './radio-group';
|
|
7
|
+
export * from './range';
|
|
8
|
+
export * from './searchbar';
|
|
9
|
+
export * from './segment';
|
|
10
|
+
export * from './select';
|
|
11
|
+
export * from './textarea';
|
|
12
|
+
export * from './toggle';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from '@ionic/angular/common';
|
|
3
|
+
import type { InputOtpInputEventDetail as IIonInputOtpInputEventDetail, InputOtpChangeEventDetail as IIonInputOtpChangeEventDetail, InputOtpCompleteEventDetail as IIonInputOtpCompleteEventDetail, Components } from '@ionic/core/components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IonInputOtp extends ValueAccessor {
|
|
6
|
+
protected z: NgZone;
|
|
7
|
+
protected el: HTMLElement;
|
|
8
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone, injector: Injector);
|
|
9
|
+
handleIonInput(el: HTMLIonInputOtpElement): void;
|
|
10
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonInputOtp, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonInputOtp, "ion-input-otp", never, { "autocapitalize": { "alias": "autocapitalize"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "separators": { "alias": "separators"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare interface IonInputOtp extends Components.IonInputOtp {
|
|
15
|
+
/**
|
|
16
|
+
* The `ionInput` event is fired each time the user modifies the input's value.
|
|
17
|
+
* Unlike the `ionChange` event, the `ionInput` event is fired for each alteration
|
|
18
|
+
* to the input's value. This typically happens for each keystroke as the user types.
|
|
19
|
+
*
|
|
20
|
+
* For elements that accept text input (`type=text`, `type=tel`, etc.), the interface
|
|
21
|
+
* is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,
|
|
22
|
+
* the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If
|
|
23
|
+
* the input is cleared on edit, the type is `null`.
|
|
24
|
+
*/
|
|
25
|
+
ionInput: EventEmitter<CustomEvent<IIonInputOtpInputEventDetail>>;
|
|
26
|
+
/**
|
|
27
|
+
* The `ionChange` event is fired when the user modifies the input's value.
|
|
28
|
+
* Unlike the `ionInput` event, the `ionChange` event is only fired when changes
|
|
29
|
+
* are committed, not as the user types.
|
|
30
|
+
*
|
|
31
|
+
* The `ionChange` event fires when the `<ion-input-otp>` component loses
|
|
32
|
+
* focus after its value has changed.
|
|
33
|
+
*
|
|
34
|
+
* This event will not emit when programmatically setting the `value` property.
|
|
35
|
+
*/
|
|
36
|
+
ionChange: EventEmitter<CustomEvent<IIonInputOtpChangeEventDetail>>;
|
|
37
|
+
/**
|
|
38
|
+
* Emitted when all input boxes have been filled with valid values.
|
|
39
|
+
*/
|
|
40
|
+
ionComplete: EventEmitter<CustomEvent<IIonInputOtpCompleteEventDetail>>;
|
|
41
|
+
/**
|
|
42
|
+
* Emitted when the input group loses focus.
|
|
43
|
+
*/
|
|
44
|
+
ionBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
45
|
+
/**
|
|
46
|
+
* Emitted when the input group has focus.
|
|
47
|
+
*/
|
|
48
|
+
ionFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from '@ionic/angular/common';
|
|
3
|
+
import type { InputInputEventDetail as IIonInputInputInputEventDetail, InputChangeEventDetail as IIonInputInputChangeEventDetail, Components } from '@ionic/core/components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IonInput extends ValueAccessor {
|
|
6
|
+
protected z: NgZone;
|
|
7
|
+
protected el: HTMLElement;
|
|
8
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone, injector: Injector);
|
|
9
|
+
handleIonInput(el: HTMLIonInputElement): void;
|
|
10
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonInput, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonInput, "ion-input", never, { "accept": { "alias": "accept"; "required": false; }; "autocapitalize": { "alias": "autocapitalize"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "autocorrect": { "alias": "autocorrect"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearInput": { "alias": "clearInput"; "required": false; }; "clearOnEdit": { "alias": "clearOnEdit"; "required": false; }; "color": { "alias": "color"; "required": false; }; "counter": { "alias": "counter"; "required": false; }; "counterFormatter": { "alias": "counterFormatter"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "enterkeyhint": { "alias": "enterkeyhint"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "name": { "alias": "name"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "step": { "alias": "step"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare interface IonInput extends Components.IonInput {
|
|
15
|
+
/**
|
|
16
|
+
* The `ionInput` event is fired each time the user modifies the input's value.
|
|
17
|
+
Unlike the `ionChange` event, the `ionInput` event is fired for each alteration
|
|
18
|
+
to the input's value. This typically happens for each keystroke as the user types.
|
|
19
|
+
|
|
20
|
+
For elements that accept text input (`type=text`, `type=tel`, etc.), the interface
|
|
21
|
+
is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,
|
|
22
|
+
the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If
|
|
23
|
+
the input is cleared on edit, the type is `null`.
|
|
24
|
+
*/
|
|
25
|
+
ionInput: EventEmitter<CustomEvent<IIonInputInputInputEventDetail>>;
|
|
26
|
+
/**
|
|
27
|
+
* The `ionChange` event is fired when the user modifies the input's value.
|
|
28
|
+
Unlike the `ionInput` event, the `ionChange` event is only fired when changes
|
|
29
|
+
are committed, not as the user types.
|
|
30
|
+
|
|
31
|
+
Depending on the way the users interacts with the element, the `ionChange`
|
|
32
|
+
event fires at a different moment:
|
|
33
|
+
- When the user commits the change explicitly (e.g. by selecting a date
|
|
34
|
+
from a date picker for `<ion-input type="date">`, pressing the "Enter" key, etc.).
|
|
35
|
+
- When the element loses focus after its value has changed: for elements
|
|
36
|
+
where the user's interaction is typing.
|
|
37
|
+
*/
|
|
38
|
+
ionChange: EventEmitter<CustomEvent<IIonInputInputChangeEventDetail>>;
|
|
39
|
+
/**
|
|
40
|
+
* Emitted when the input loses focus.
|
|
41
|
+
*/
|
|
42
|
+
ionBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
43
|
+
/**
|
|
44
|
+
* Emitted when the input has focus.
|
|
45
|
+
*/
|
|
46
|
+
ionFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
47
|
+
}
|