@ionic/angular 9.0.3-nightly.20260904 → 9.0.3-nightly.20260908
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/README.md +21 -1
- package/dist/standalone/index.d.ts +5 -3
- package/dist/standalone/index.js +3 -2
- package/dist/standalone/index.js.map +1 -1
- package/dist/standalone/providers/modal-token.d.ts +1 -0
- package/dist/standalone/providers/modal-token.js +2 -0
- package/dist/standalone/providers/modal-token.js.map +1 -0
- package/package.json +16 -7
package/README.md
CHANGED
|
@@ -117,4 +117,24 @@ Ionic developers can access this by importing from `@ionic/angular/lazy`.
|
|
|
117
117
|
|
|
118
118
|
## Change Detection Strategy
|
|
119
119
|
|
|
120
|
-
Every `@Component` in `src` must declare `changeDetection` explicitly, and
|
|
120
|
+
Every `@Component` in `src` must declare `changeDetection` explicitly, and `npm run test` enforces it. See the [Change Detection guide](https://github.com/ionic-team/ionic-framework/blob/main/docs/angular/change-detection.md).
|
|
121
|
+
|
|
122
|
+
## Package Validation
|
|
123
|
+
|
|
124
|
+
`npm run validate` executes several subtasks: installs node modules, lints, builds the package, and runs package tests. `npm run test` can also run the package tests directly. For E2E tests, see [Angular Testing documentation](/docs/angular/testing.md).
|
|
125
|
+
|
|
126
|
+
### Testing Package Exports
|
|
127
|
+
|
|
128
|
+
To check that all exports from `package.json` point to files that exist, and that all Ionic components have exports, run `node ./scripts/verify-exports.js` or `npm run test.package`.
|
|
129
|
+
|
|
130
|
+
### Testing Code Splitting
|
|
131
|
+
|
|
132
|
+
If an app imports standalone components from `@ionic/angular`, esbuild bundles them together, so a landing page could include components it never uses. If components are instead imported from `@ionic/angular/<component-name>`, esbuild is able to bundle pages with only the components they need. The app in `packages/angular/test/code-split` is used to verify that this code splitting is working.
|
|
133
|
+
|
|
134
|
+
To run the test, run `node ./scripts/test-code-split.js` or run `npm run test.code-split`. This builds the code-split app and checks if `IonToggle` is excluded from the landing page's bundle.
|
|
135
|
+
|
|
136
|
+
### Testing Schematics
|
|
137
|
+
|
|
138
|
+
The schematics files are used when Ionic-Angular is added to a project with `ng add`. The schematics test verifies schematics are included in the package by creating a new starter app and adding the locally built Ionic-Angular package to it.
|
|
139
|
+
|
|
140
|
+
To run the test, run `node ./scripts/verify-schematics.js` or run `npm run test.schematics`.
|
|
@@ -14,9 +14,11 @@ export { MenuController } from './providers/menu-controller';
|
|
|
14
14
|
export { ModalController } from './providers/modal-controller';
|
|
15
15
|
export { PopoverController } from './providers/popover-controller';
|
|
16
16
|
export { ToastController } from './providers/toast-controller';
|
|
17
|
-
export {
|
|
18
|
-
export
|
|
17
|
+
export { IonModalToken } from './providers/modal-token';
|
|
18
|
+
export { DomController, NavController, Config, Platform, NavParams, IonicRouteStrategy } from '@ionic/angular/common';
|
|
19
|
+
export type { ViewWillEnter, ViewDidEnter, ViewWillLeave, ViewDidLeave, ModalOptions, PopoverOptions, } from '@ionic/angular/common';
|
|
19
20
|
export { IonNav } from './navigation/nav';
|
|
20
21
|
export { IonCheckbox, IonDatetime, IonInput, IonInputOtp, IonIcon, IonRadioGroup, IonRange, IonSearchbar, IonSegment, IonSelect, IonTextarea, IonToggle, } from './directives';
|
|
21
22
|
export * from './directives/proxies';
|
|
22
|
-
export { createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression,
|
|
23
|
+
export { createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSafeString, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression, } from '@ionic/core/components';
|
|
24
|
+
export type { 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, LoadingOptions, MenuCustomEvent, ModalDragEventDetail, NavCustomEvent, 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, } from '@ionic/core/components';
|
package/dist/standalone/index.js
CHANGED
|
@@ -14,11 +14,12 @@ export { MenuController } from './providers/menu-controller';
|
|
|
14
14
|
export { ModalController } from './providers/modal-controller';
|
|
15
15
|
export { PopoverController } from './providers/popover-controller';
|
|
16
16
|
export { ToastController } from './providers/toast-controller';
|
|
17
|
-
export {
|
|
17
|
+
export { IonModalToken } from './providers/modal-token';
|
|
18
|
+
export { DomController, NavController, Config, Platform, NavParams, IonicRouteStrategy } from '@ionic/angular/common';
|
|
18
19
|
export { IonNav } from './navigation/nav';
|
|
19
20
|
export { IonCheckbox, IonDatetime, IonInput, IonInputOtp, IonIcon, IonRadioGroup, IonRange, IonSearchbar, IonSegment, IonSelect, IonTextarea, IonToggle, } from './directives';
|
|
20
21
|
export * from './directives/proxies';
|
|
21
22
|
export {
|
|
22
23
|
// UTILS
|
|
23
|
-
createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression,
|
|
24
|
+
createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSafeString, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression, } from '@ionic/core/components';
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/standalone/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,M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X,OAAO,EACP,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,GACV,MAAM,cAAc,CAAC;AACtB,cAAc,sBAAsB,CAAC;AAErC,OAAO;AACL,QAAQ;AACR,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,UAAU,EACV,uBAAuB,GACxB,MAAM,wBAAwB,CAAC","sourcesContent":["export { IonBackButton } from './navigation/back-button';\nexport { IonModal } from './overlays/modal';\nexport { IonPopover } from './overlays/popover';\nexport { IonRouterOutlet } from './navigation/router-outlet';\nexport { IonRouterLink, IonRouterLinkWithHref } from './navigation/router-link-delegate';\nexport { IonTabs } from './navigation/tabs';\nexport { provideIonicAngular } from './providers/ionic-angular';\nexport { ActionSheetController } from './providers/action-sheet-controller';\nexport { AlertController } from './providers/alert-controller';\nexport { AnimationController } from './providers/animation-controller';\nexport { GestureController } from './providers/gesture-controller';\nexport { LoadingController } from './providers/loading-controller';\nexport { MenuController } from './providers/menu-controller';\nexport { ModalController } from './providers/modal-controller';\nexport { PopoverController } from './providers/popover-controller';\nexport { ToastController } from './providers/toast-controller';\nexport { IonModalToken } from './providers/modal-token';\nexport { DomController, NavController, Config, Platform, NavParams, IonicRouteStrategy } from '@ionic/angular/common';\nexport type {\n ViewWillEnter,\n ViewDidEnter,\n ViewWillLeave,\n ViewDidLeave,\n ModalOptions,\n PopoverOptions,\n} from '@ionic/angular/common';\nexport { IonNav } from './navigation/nav';\nexport {\n IonCheckbox,\n IonDatetime,\n IonInput,\n IonInputOtp,\n IonIcon,\n IonRadioGroup,\n IonRange,\n IonSearchbar,\n IonSegment,\n IonSelect,\n IonTextarea,\n IonToggle,\n} from './directives';\nexport * from './directives/proxies';\n\nexport {\n // UTILS\n createAnimation,\n createGesture,\n iosTransitionAnimation,\n mdTransitionAnimation,\n IonicSafeString,\n IonicSlides,\n getPlatforms,\n isPlatform,\n getTimeGivenProgression,\n} from '@ionic/core/components';\nexport type {\n Animation,\n AnimationBuilder,\n AnimationCallbackOptions,\n AnimationDirection,\n AnimationFill,\n AnimationKeyFrames,\n AnimationLifecycle,\n Gesture,\n GestureConfig,\n GestureDetail,\n NavComponentWithProps,\n SpinnerTypes,\n AccordionGroupCustomEvent,\n AccordionGroupChangeEventDetail,\n BreadcrumbCustomEvent,\n BreadcrumbCollapsedClickEventDetail,\n ActionSheetOptions,\n ActionSheetButton,\n AlertOptions,\n AlertInput,\n AlertButton,\n BackButtonEvent,\n CheckboxCustomEvent,\n CheckboxChangeEventDetail,\n DatetimeCustomEvent,\n DatetimeChangeEventDetail,\n InfiniteScrollCustomEvent,\n InputCustomEvent,\n InputChangeEventDetail,\n InputOtpCustomEvent,\n InputOtpChangeEventDetail,\n InputOtpCompleteEventDetail,\n InputOtpInputEventDetail,\n // TODO(FW-6590): Remove the next two lines once the deprecated event is removed\n ItemReorderEventDetail,\n ItemReorderCustomEvent,\n ItemSlidingCustomEvent,\n LoadingOptions,\n MenuCustomEvent,\n ModalDragEventDetail,\n NavCustomEvent,\n PlatformConfig,\n RadioGroupCustomEvent,\n RadioGroupChangeEventDetail,\n RangeCustomEvent,\n RangeChangeEventDetail,\n RangeKnobMoveStartEventDetail,\n RangeKnobMoveEndEventDetail,\n RefresherCustomEvent,\n RefresherEventDetail,\n RefresherPullEndCustomEvent,\n RefresherPullEndEventDetail,\n ReorderMoveCustomEvent,\n ReorderMoveEventDetail,\n ReorderEndCustomEvent,\n ReorderEndEventDetail,\n RouterEventDetail,\n RouterCustomEvent,\n ScrollBaseCustomEvent,\n ScrollBaseDetail,\n ScrollDetail,\n ScrollCustomEvent,\n SearchbarCustomEvent,\n SearchbarChangeEventDetail,\n SearchbarInputEventDetail,\n SegmentChangeEventDetail,\n SegmentCustomEvent,\n SegmentValue,\n SelectChangeEventDetail,\n SelectCustomEvent,\n TabsCustomEvent,\n TextareaChangeEventDetail,\n TextareaCustomEvent,\n ToastOptions,\n ToastButton,\n ToastLayout,\n ToggleChangeEventDetail,\n ToggleCustomEvent,\n} from '@ionic/core/components';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IonModalToken } from '@ionic/angular/common';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-token.js","sourceRoot":"","sources":["../../../src/standalone/providers/modal-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { IonModalToken } from '@ionic/angular/common';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/angular",
|
|
3
|
-
"version": "9.0.3-nightly.
|
|
3
|
+
"version": "9.0.3-nightly.20260908",
|
|
4
4
|
"description": "Angular specific wrappers for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://ionicframework.com/",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "npm run clean && npm run build.ng && npm run build.change-detection && npm run build.css && npm run build.schematics
|
|
27
|
+
"build": "npm run clean && npm run build.ng && npm run build.change-detection && npm run build.css && npm run build.schematics",
|
|
28
28
|
"build.css": "node scripts/build-css.js",
|
|
29
29
|
"build.schematics": "node scripts/build-schematics.js",
|
|
30
30
|
"build.ng": "ngc",
|
|
@@ -38,10 +38,12 @@
|
|
|
38
38
|
"prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next",
|
|
39
39
|
"sync": "./scripts/sync.sh",
|
|
40
40
|
"local.sync.and.pack": "./scripts/sync-and-pack.sh",
|
|
41
|
-
"test": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
41
|
+
"test": "npm run test.package && npm run test.change-detection && npm run test.schematics && npm run test.code-split",
|
|
42
|
+
"test.package": "node scripts/verify-exports.js",
|
|
43
|
+
"test.change-detection": "node scripts/verify-change-detection.js",
|
|
44
|
+
"test.schematics": "node ./scripts/verify-schematics.js",
|
|
45
|
+
"test.code-split": "node ./scripts/test-code-split.js",
|
|
46
|
+
"validate": "npm i && npm run lint && npm run build && npm run test"
|
|
45
47
|
},
|
|
46
48
|
"exports": {
|
|
47
49
|
"./package.json": "./package.json",
|
|
@@ -143,6 +145,13 @@
|
|
|
143
145
|
"./ion-title": "./dist/standalone/directives/ion-title.js",
|
|
144
146
|
"./ion-toast": "./dist/standalone/directives/ion-toast.js",
|
|
145
147
|
"./ion-toolbar": "./dist/standalone/directives/ion-toolbar.js",
|
|
148
|
+
"./dom-controller": "./dist/common/providers/dom-controller.js",
|
|
149
|
+
"./nav-controller": "./dist/common/providers/nav-controller.js",
|
|
150
|
+
"./config": "./dist/common/providers/config.js",
|
|
151
|
+
"./platform": "./dist/common/providers/platform.js",
|
|
152
|
+
"./nav-params": "./dist/common/directives/navigation/nav-params.js",
|
|
153
|
+
"./ion-modal-token": "./dist/standalone/providers/modal-token.js",
|
|
154
|
+
"./ionic-route-strategy": "./dist/common/utils/routing.js",
|
|
146
155
|
"./action-sheet-controller": "./dist/standalone/providers/action-sheet-controller.js",
|
|
147
156
|
"./alert-controller": "./dist/standalone/providers/alert-controller.js",
|
|
148
157
|
"./animation-controller": "./dist/standalone/providers/animation-controller.js",
|
|
@@ -159,7 +168,7 @@
|
|
|
159
168
|
"css/"
|
|
160
169
|
],
|
|
161
170
|
"dependencies": {
|
|
162
|
-
"@ionic/core": "9.0.3-nightly.
|
|
171
|
+
"@ionic/core": "9.0.3-nightly.20260908",
|
|
163
172
|
"ionicons": "^8.0.13",
|
|
164
173
|
"jsonc-parser": "^3.0.0",
|
|
165
174
|
"tslib": "^2.3.0"
|