@ionic/angular 8.8.16-dev.11784913436.1a334b43 → 8.8.16-dev.11784914346.10d0804c
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 +6 -9
- 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 +70 -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-lazy.d.ts → directives/proxies.d.ts} +478 -713
- 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 +190 -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 +210 -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 +97 -108
- package/fesm2022/ionic-angular-common.mjs.map +1 -1
- package/fesm2022/ionic-angular-standalone.mjs +3655 -0
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -0
- package/fesm2022/ionic-angular.mjs +1550 -1963
- package/fesm2022/ionic-angular.mjs.map +1 -1
- package/index.d.ts +27 -0
- package/ionic-module.d.ts +28 -0
- package/package.json +18 -18
- 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 +5 -5
- package/schematics/utils/ast.js +4 -36
- package/schematics/utils/config.js +11 -10
- package/schematics/utils/package.js +2 -5
- 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/fesm2022/ionic-angular-lazy.mjs +0 -3550
- package/fesm2022/ionic-angular-lazy.mjs.map +0 -1
- package/types/ionic-angular-common.d.ts +0 -1031
- package/types/ionic-angular.d.ts +0 -1560
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Inject, Optional, InjectionToken, inject, NgZone, ApplicationRef, Injector, createComponent, TemplateRef,
|
|
2
|
+
import { Injectable, Inject, Optional, InjectionToken, inject, NgZone, ApplicationRef, Injector, createComponent, TemplateRef, Directive, ContentChild, EventEmitter, ViewContainerRef, EnvironmentInjector, Attribute, SkipSelf, Input, Output, reflectComponentType, HostListener, ElementRef, ViewChild } from '@angular/core';
|
|
3
3
|
import * as i3 from '@angular/router';
|
|
4
4
|
import { NavigationStart, NavigationCancel, NavigationError, PRIMARY_OUTLET, ChildrenOutletContexts, ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
@@ -25,10 +25,10 @@ class DomController {
|
|
|
25
25
|
write(cb) {
|
|
26
26
|
getQueue().write(cb);
|
|
27
27
|
}
|
|
28
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
28
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DomController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DomController, providedIn: 'root' });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DomController, decorators: [{
|
|
32
32
|
type: Injectable,
|
|
33
33
|
args: [{
|
|
34
34
|
providedIn: 'root',
|
|
@@ -228,6 +228,7 @@ class Platform {
|
|
|
228
228
|
}, { once: true });
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
231
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
231
232
|
readyResolve('dom');
|
|
232
233
|
}
|
|
233
234
|
});
|
|
@@ -381,18 +382,18 @@ class Platform {
|
|
|
381
382
|
height() {
|
|
382
383
|
return this.win.innerHeight;
|
|
383
384
|
}
|
|
384
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
385
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
385
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Platform, deps: [{ token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
386
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Platform, providedIn: 'root' });
|
|
386
387
|
}
|
|
387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Platform, decorators: [{
|
|
388
389
|
type: Injectable,
|
|
389
390
|
args: [{
|
|
390
391
|
providedIn: 'root',
|
|
391
392
|
}]
|
|
392
|
-
}], ctorParameters: ()
|
|
393
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
393
394
|
type: Inject,
|
|
394
395
|
args: [DOCUMENT]
|
|
395
|
-
}] }, { type: i0.NgZone }] });
|
|
396
|
+
}] }, { type: i0.NgZone }]; } });
|
|
396
397
|
const readQueryParam = (url, key) => {
|
|
397
398
|
key = key.replace(/[[\]\\]/g, '\\$&');
|
|
398
399
|
const regex = new RegExp('[\\?&]' + key + '=([^&#]*)');
|
|
@@ -590,6 +591,7 @@ class NavController {
|
|
|
590
591
|
}
|
|
591
592
|
navigate(url, options) {
|
|
592
593
|
if (Array.isArray(url)) {
|
|
594
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
593
595
|
return this.router.navigate(url, options);
|
|
594
596
|
}
|
|
595
597
|
else {
|
|
@@ -611,20 +613,21 @@ class NavController {
|
|
|
611
613
|
* that do not modify the url, such as `replaceUrl` which is why
|
|
612
614
|
* `options` is passed in here.
|
|
613
615
|
*/
|
|
616
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
614
617
|
return this.router.navigateByUrl(urlTree, options);
|
|
615
618
|
}
|
|
616
619
|
}
|
|
617
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
618
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
620
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavController, deps: [{ token: Platform }, { token: i1.Location }, { token: i3.UrlSerializer }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
621
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavController, providedIn: 'root' });
|
|
619
622
|
}
|
|
620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavController, decorators: [{
|
|
621
624
|
type: Injectable,
|
|
622
625
|
args: [{
|
|
623
626
|
providedIn: 'root',
|
|
624
627
|
}]
|
|
625
|
-
}], ctorParameters: ()
|
|
628
|
+
}], ctorParameters: function () { return [{ type: Platform }, { type: i1.Location }, { type: i3.UrlSerializer }, { type: i3.Router, decorators: [{
|
|
626
629
|
type: Optional
|
|
627
|
-
}] }] });
|
|
630
|
+
}] }]; } });
|
|
628
631
|
const getAnimation = (direction, animated, animationDirection) => {
|
|
629
632
|
if (animated === false) {
|
|
630
633
|
return undefined;
|
|
@@ -665,10 +668,10 @@ class Config {
|
|
|
665
668
|
}
|
|
666
669
|
return 0;
|
|
667
670
|
}
|
|
668
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
669
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
671
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Config, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
672
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Config, providedIn: 'root' });
|
|
670
673
|
}
|
|
671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Config, decorators: [{
|
|
672
675
|
type: Injectable,
|
|
673
676
|
args: [{
|
|
674
677
|
providedIn: 'root',
|
|
@@ -742,10 +745,10 @@ class AngularDelegate {
|
|
|
742
745
|
create(environmentInjector, injector, elementReferenceKey, customInjector) {
|
|
743
746
|
return new AngularFrameworkDelegate(environmentInjector, injector, this.applicationRef, this.zone, elementReferenceKey, this.config.useSetInputAPI ?? false, customInjector);
|
|
744
747
|
}
|
|
745
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
746
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
748
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularDelegate, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
749
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularDelegate });
|
|
747
750
|
}
|
|
748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularDelegate, decorators: [{
|
|
749
752
|
type: Injectable
|
|
750
753
|
}] });
|
|
751
754
|
class AngularFrameworkDelegate {
|
|
@@ -887,20 +890,14 @@ const attachView = (zone, environmentInjector, injector, applicationRef, elRefMa
|
|
|
887
890
|
hostElement.classList.add(cssClass);
|
|
888
891
|
}
|
|
889
892
|
}
|
|
890
|
-
const unbindEvents = bindLifecycleEvents(zone,
|
|
893
|
+
const unbindEvents = bindLifecycleEvents(zone, instance, hostElement);
|
|
891
894
|
container.appendChild(hostElement);
|
|
892
895
|
applicationRef.attachView(componentRef.hostView);
|
|
893
896
|
/**
|
|
894
|
-
* Run change detection
|
|
895
|
-
*
|
|
896
|
-
*
|
|
897
|
-
*
|
|
898
|
-
* (`ionViewWillEnter`, etc.). `createComponent` only runs the creation pass; the
|
|
899
|
-
* init hooks and binding updates run during an update pass. Under Zone.js an
|
|
900
|
-
* implicit tick used to cover this, but zoneless Angular schedules no such tick,
|
|
901
|
-
* so without this the binding could land after the element has loaded (too late
|
|
902
|
-
* for `ion-nav` to read it) and the first `ionViewWillEnter` could run before
|
|
903
|
-
* `ngOnInit`.
|
|
897
|
+
* Run change detection so template bindings (e.g. `<ion-nav [root]="rootPage">`)
|
|
898
|
+
* apply during this synchronous pass, before the web component runs its load
|
|
899
|
+
* lifecycle. `createComponent` only runs the creation pass, so without this the
|
|
900
|
+
* binding lands after the element has loaded, too late for `ion-nav` to read it.
|
|
904
901
|
*/
|
|
905
902
|
componentRef.changeDetectorRef.detectChanges();
|
|
906
903
|
elRefMap.set(hostElement, componentRef);
|
|
@@ -914,24 +911,10 @@ const LIFECYCLES = [
|
|
|
914
911
|
LIFECYCLE_DID_LEAVE,
|
|
915
912
|
LIFECYCLE_WILL_UNLOAD,
|
|
916
913
|
];
|
|
917
|
-
const bindLifecycleEvents = (zone,
|
|
918
|
-
/**
|
|
919
|
-
* `zone.run` keeps the listener registration (and, under Zone.js, the handler
|
|
920
|
-
* execution) inside the Angular zone, so async work started inside a lifecycle
|
|
921
|
-
* hook is still zone-tracked. Under zoneless Angular it is a passthrough.
|
|
922
|
-
*/
|
|
914
|
+
const bindLifecycleEvents = (zone, instance, element) => {
|
|
923
915
|
return zone.run(() => {
|
|
924
916
|
const unregisters = LIFECYCLES.filter((eventName) => typeof instance[eventName] === 'function').map((eventName) => {
|
|
925
|
-
const handler = (ev) =>
|
|
926
|
-
instance[eventName](ev.detail);
|
|
927
|
-
/**
|
|
928
|
-
* Ionic lifecycle events (`ionViewWillEnter`, etc.) are dispatched from
|
|
929
|
-
* the web component via a native event listener, so under zoneless
|
|
930
|
-
* Angular nothing schedules change detection for state the hook mutates.
|
|
931
|
-
* Mark the view dirty explicitly. This is a no-op-or-better under Zone.js.
|
|
932
|
-
*/
|
|
933
|
-
changeDetectorRef.markForCheck();
|
|
934
|
-
};
|
|
917
|
+
const handler = (ev) => instance[eventName](ev.detail);
|
|
935
918
|
element.addEventListener(eventName, handler);
|
|
936
919
|
return () => element.removeEventListener(eventName, handler);
|
|
937
920
|
});
|
|
@@ -1034,7 +1017,14 @@ const MODAL_METHODS = [
|
|
|
1034
1017
|
'setCurrentBreakpoint',
|
|
1035
1018
|
'getCurrentBreakpoint',
|
|
1036
1019
|
];
|
|
1037
|
-
let IonModal =
|
|
1020
|
+
let IonModal =
|
|
1021
|
+
/**
|
|
1022
|
+
* @Component extends from @Directive
|
|
1023
|
+
* so by defining the inputs here we
|
|
1024
|
+
* do not need to re-define them for the
|
|
1025
|
+
* lazy loaded popover.
|
|
1026
|
+
*/
|
|
1027
|
+
class IonModal {
|
|
1038
1028
|
z;
|
|
1039
1029
|
// TODO(FW-2827): type
|
|
1040
1030
|
template;
|
|
@@ -1066,8 +1056,8 @@ let IonModal = class IonModal {
|
|
|
1066
1056
|
'ionDragEnd',
|
|
1067
1057
|
]);
|
|
1068
1058
|
}
|
|
1069
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1070
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1059
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1060
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IonModal, selector: "ion-modal", inputs: { animated: "animated", keepContentsMounted: "keepContentsMounted", backdropBreakpoint: "backdropBreakpoint", backdropDismiss: "backdropDismiss", breakpoints: "breakpoints", canDismiss: "canDismiss", cssClass: "cssClass", enterAnimation: "enterAnimation", expandToScroll: "expandToScroll", event: "event", focusTrap: "focusTrap", handle: "handle", handleBehavior: "handleBehavior", initialBreakpoint: "initialBreakpoint", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", presentingElement: "presentingElement", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
1071
1061
|
};
|
|
1072
1062
|
IonModal = __decorate([
|
|
1073
1063
|
ProxyCmp({
|
|
@@ -1081,14 +1071,14 @@ IonModal = __decorate([
|
|
|
1081
1071
|
* lazy loaded popover.
|
|
1082
1072
|
*/
|
|
1083
1073
|
], IonModal);
|
|
1084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonModal, decorators: [{
|
|
1085
1075
|
type: Directive,
|
|
1086
1076
|
args: [{
|
|
1087
1077
|
selector: 'ion-modal',
|
|
1088
1078
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1089
1079
|
inputs: MODAL_INPUTS,
|
|
1090
1080
|
}]
|
|
1091
|
-
}], ctorParameters: ()
|
|
1081
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
|
|
1092
1082
|
type: ContentChild,
|
|
1093
1083
|
args: [TemplateRef, { static: false }]
|
|
1094
1084
|
}] } });
|
|
@@ -1117,7 +1107,14 @@ const POPOVER_INPUTS = [
|
|
|
1117
1107
|
'side',
|
|
1118
1108
|
];
|
|
1119
1109
|
const POPOVER_METHODS = ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'];
|
|
1120
|
-
let IonPopover =
|
|
1110
|
+
let IonPopover =
|
|
1111
|
+
/**
|
|
1112
|
+
* @Component extends from @Directive
|
|
1113
|
+
* so by defining the inputs here we
|
|
1114
|
+
* do not need to re-define them for the
|
|
1115
|
+
* lazy loaded popover.
|
|
1116
|
+
*/
|
|
1117
|
+
class IonPopover {
|
|
1121
1118
|
z;
|
|
1122
1119
|
// TODO(FW-2827): type
|
|
1123
1120
|
template;
|
|
@@ -1145,8 +1142,8 @@ let IonPopover = class IonPopover {
|
|
|
1145
1142
|
'didDismiss',
|
|
1146
1143
|
]);
|
|
1147
1144
|
}
|
|
1148
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1149
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1145
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1146
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IonPopover, selector: "ion-popover", inputs: { alignment: "alignment", animated: "animated", arrow: "arrow", keepContentsMounted: "keepContentsMounted", backdropDismiss: "backdropDismiss", cssClass: "cssClass", dismissOnSelect: "dismissOnSelect", enterAnimation: "enterAnimation", event: "event", focusTrap: "focusTrap", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger", triggerAction: "triggerAction", reference: "reference", size: "size", side: "side" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
1150
1147
|
};
|
|
1151
1148
|
IonPopover = __decorate([
|
|
1152
1149
|
ProxyCmp({
|
|
@@ -1160,14 +1157,14 @@ IonPopover = __decorate([
|
|
|
1160
1157
|
* lazy loaded popover.
|
|
1161
1158
|
*/
|
|
1162
1159
|
], IonPopover);
|
|
1163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonPopover, decorators: [{
|
|
1164
1161
|
type: Directive,
|
|
1165
1162
|
args: [{
|
|
1166
1163
|
selector: 'ion-popover',
|
|
1167
1164
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1168
1165
|
inputs: POPOVER_INPUTS,
|
|
1169
1166
|
}]
|
|
1170
|
-
}], ctorParameters: ()
|
|
1167
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
|
|
1171
1168
|
type: ContentChild,
|
|
1172
1169
|
args: [TemplateRef, { static: false }]
|
|
1173
1170
|
}] } });
|
|
@@ -1269,7 +1266,7 @@ class StackController {
|
|
|
1269
1266
|
createView(ref, activatedRoute) {
|
|
1270
1267
|
const url = getUrl(this.router, activatedRoute);
|
|
1271
1268
|
const element = ref?.location?.nativeElement;
|
|
1272
|
-
const unlistenEvents = bindLifecycleEvents(this.zone, ref.
|
|
1269
|
+
const unlistenEvents = bindLifecycleEvents(this.zone, ref.instance, element);
|
|
1273
1270
|
return {
|
|
1274
1271
|
id: this.nextId++,
|
|
1275
1272
|
stackId: computeStackId(this.tabsPrefix, url),
|
|
@@ -1435,6 +1432,7 @@ class StackController {
|
|
|
1435
1432
|
return this.runningTask !== undefined;
|
|
1436
1433
|
}
|
|
1437
1434
|
destroy() {
|
|
1435
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1438
1436
|
this.containerEl = undefined;
|
|
1439
1437
|
this.views.forEach(destroyView);
|
|
1440
1438
|
this.activeView = undefined;
|
|
@@ -1576,7 +1574,6 @@ class IonRouterOutlet {
|
|
|
1576
1574
|
onEnd: (shouldContinue) => this.stackCtrl.endBackTransition(shouldContinue),
|
|
1577
1575
|
}
|
|
1578
1576
|
: undefined;
|
|
1579
|
-
this.nativeEl.swipeGesture = swipe;
|
|
1580
1577
|
}
|
|
1581
1578
|
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
1582
1579
|
this.parentOutlet = parentOutlet;
|
|
@@ -1649,6 +1646,7 @@ class IonRouterOutlet {
|
|
|
1649
1646
|
deactivate() {
|
|
1650
1647
|
if (this.activated) {
|
|
1651
1648
|
if (this.activatedView) {
|
|
1649
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1652
1650
|
const context = this.getContext();
|
|
1653
1651
|
this.activatedView.savedData = new Map(context.children['contexts']);
|
|
1654
1652
|
/**
|
|
@@ -1693,6 +1691,7 @@ class IonRouterOutlet {
|
|
|
1693
1691
|
const saved = enteringView.savedData;
|
|
1694
1692
|
if (saved) {
|
|
1695
1693
|
// self-restore
|
|
1694
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1696
1695
|
const context = this.getContext();
|
|
1697
1696
|
context.children['contexts'] = saved;
|
|
1698
1697
|
}
|
|
@@ -1713,6 +1712,7 @@ class IonRouterOutlet {
|
|
|
1713
1712
|
const component$ = new BehaviorSubject(null);
|
|
1714
1713
|
const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);
|
|
1715
1714
|
const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
|
1715
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1716
1716
|
const component = snapshot.routeConfig.component ?? snapshot.component;
|
|
1717
1717
|
/**
|
|
1718
1718
|
* View components need to be added as a child of ion-router-outlet
|
|
@@ -1735,6 +1735,7 @@ class IonRouterOutlet {
|
|
|
1735
1735
|
* At this point this.activated has been set earlier
|
|
1736
1736
|
* in this function, so it is guaranteed to be non-null.
|
|
1737
1737
|
*/
|
|
1738
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1738
1739
|
enteringView = this.stackCtrl.createView(this.activated, activatedRoute);
|
|
1739
1740
|
// Store references to the proxy by component
|
|
1740
1741
|
this.proxyMap.set(cmpRef.instance, activatedRouteProxy);
|
|
@@ -1845,10 +1846,10 @@ class IonRouterOutlet {
|
|
|
1845
1846
|
proxy.component = activatedRoute.component;
|
|
1846
1847
|
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
1847
1848
|
}
|
|
1848
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1849
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1849
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, deps: [{ token: 'name', attribute: true }, { token: 'tabs', attribute: true, optional: true }, { token: i1.Location }, { token: i0.ElementRef }, { token: i3.Router }, { token: i0.NgZone }, { token: i3.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1850
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IonRouterOutlet, selector: "ion-router-outlet", inputs: { animated: "animated", animation: "animation", mode: "mode", swipeGesture: "swipeGesture", name: "name" }, outputs: { stackWillChange: "stackWillChange", stackDidChange: "stackDidChange", activateEvents: "activate", deactivateEvents: "deactivate" }, exportAs: ["outlet"], ngImport: i0 });
|
|
1850
1851
|
}
|
|
1851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
1852
1853
|
type: Directive,
|
|
1853
1854
|
args: [{
|
|
1854
1855
|
selector: 'ion-router-outlet',
|
|
@@ -1856,7 +1857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1856
1857
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1857
1858
|
inputs: ['animated', 'animation', 'mode', 'swipeGesture'],
|
|
1858
1859
|
}]
|
|
1859
|
-
}], ctorParameters: ()
|
|
1860
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1860
1861
|
type: Attribute,
|
|
1861
1862
|
args: ['name']
|
|
1862
1863
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1868,7 +1869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1868
1869
|
type: SkipSelf
|
|
1869
1870
|
}, {
|
|
1870
1871
|
type: Optional
|
|
1871
|
-
}] }], propDecorators: { name: [{
|
|
1872
|
+
}] }]; }, propDecorators: { name: [{
|
|
1872
1873
|
type: Input
|
|
1873
1874
|
}], stackWillChange: [{
|
|
1874
1875
|
type: Output
|
|
@@ -1962,10 +1963,10 @@ class RoutedComponentInputBinder {
|
|
|
1962
1963
|
});
|
|
1963
1964
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
1964
1965
|
}
|
|
1965
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1966
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1966
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1967
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RoutedComponentInputBinder });
|
|
1967
1968
|
}
|
|
1968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
1969
1970
|
type: Injectable
|
|
1970
1971
|
}] });
|
|
1971
1972
|
const provideComponentInputBinding = () => {
|
|
@@ -2098,12 +2099,12 @@ class ValueAccessor {
|
|
|
2098
2099
|
});
|
|
2099
2100
|
}
|
|
2100
2101
|
}
|
|
2101
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2102
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2102
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2103
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ValueAccessor, host: { listeners: { "ionBlur": "_handleBlurEvent($event.target)" } }, ngImport: i0 });
|
|
2103
2104
|
}
|
|
2104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
2105
2106
|
type: Directive
|
|
2106
|
-
}], ctorParameters: ()
|
|
2107
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
|
|
2107
2108
|
type: HostListener,
|
|
2108
2109
|
args: ['ionBlur', ['$event.target']]
|
|
2109
2110
|
}] } });
|
|
@@ -2176,23 +2177,23 @@ let IonBackButton = class IonBackButton {
|
|
|
2176
2177
|
ev.preventDefault();
|
|
2177
2178
|
}
|
|
2178
2179
|
}
|
|
2179
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2180
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2180
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, deps: [{ token: IonRouterOutlet, optional: true }, { token: NavController }, { token: Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2181
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IonBackButton, inputs: { color: "color", defaultHref: "defaultHref", disabled: "disabled", icon: "icon", mode: "mode", routerAnimation: "routerAnimation", text: "text", type: "type" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
2181
2182
|
};
|
|
2182
2183
|
IonBackButton = __decorate([
|
|
2183
2184
|
ProxyCmp({
|
|
2184
2185
|
inputs: BACK_BUTTON_INPUTS,
|
|
2185
2186
|
})
|
|
2186
2187
|
], IonBackButton);
|
|
2187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, decorators: [{
|
|
2188
2189
|
type: Directive,
|
|
2189
2190
|
args: [{
|
|
2190
2191
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2191
2192
|
inputs: BACK_BUTTON_INPUTS,
|
|
2192
2193
|
}]
|
|
2193
|
-
}], ctorParameters: ()
|
|
2194
|
+
}], ctorParameters: function () { return [{ type: IonRouterOutlet, decorators: [{
|
|
2194
2195
|
type: Optional
|
|
2195
|
-
}] }, { type: NavController }, { type: Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { onClick: [{
|
|
2196
|
+
}] }, { type: NavController }, { type: Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onClick: [{
|
|
2196
2197
|
type: HostListener,
|
|
2197
2198
|
args: ['click', ['$event']]
|
|
2198
2199
|
}] } });
|
|
@@ -2223,8 +2224,8 @@ let IonNav = class IonNav {
|
|
|
2223
2224
|
ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);
|
|
2224
2225
|
proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);
|
|
2225
2226
|
}
|
|
2226
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2227
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2227
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2228
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IonNav, inputs: { animated: "animated", animation: "animation", root: "root", rootParams: "rootParams", swipeGesture: "swipeGesture" }, ngImport: i0 });
|
|
2228
2229
|
};
|
|
2229
2230
|
IonNav = __decorate([
|
|
2230
2231
|
ProxyCmp({
|
|
@@ -2232,13 +2233,13 @@ IonNav = __decorate([
|
|
|
2232
2233
|
methods: NAV_METHODS,
|
|
2233
2234
|
})
|
|
2234
2235
|
], IonNav);
|
|
2235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, decorators: [{
|
|
2236
2237
|
type: Directive,
|
|
2237
2238
|
args: [{
|
|
2238
2239
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2239
2240
|
inputs: NAV_INPUTS,
|
|
2240
2241
|
}]
|
|
2241
|
-
}], ctorParameters: ()
|
|
2242
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2242
2243
|
|
|
2243
2244
|
/**
|
|
2244
2245
|
* Adds support for Ionic routing directions and animations to the base Angular router link directive.
|
|
@@ -2353,17 +2354,17 @@ class RouterLinkDelegateDirective {
|
|
|
2353
2354
|
*/
|
|
2354
2355
|
ev.preventDefault();
|
|
2355
2356
|
}
|
|
2356
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2357
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2357
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2358
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RouterLinkDelegateDirective, selector: ":not(a):not(area)[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
2358
2359
|
}
|
|
2359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
|
|
2360
2361
|
type: Directive,
|
|
2361
2362
|
args: [{
|
|
2362
2363
|
selector: ':not(a):not(area)[routerLink]',
|
|
2363
2364
|
}]
|
|
2364
|
-
}], ctorParameters: ()
|
|
2365
|
+
}], ctorParameters: function () { return [{ type: i1.LocationStrategy }, { type: NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
|
|
2365
2366
|
type: Optional
|
|
2366
|
-
}] }], propDecorators: { routerDirection: [{
|
|
2367
|
+
}] }]; }, propDecorators: { routerDirection: [{
|
|
2367
2368
|
type: Input
|
|
2368
2369
|
}], routerAnimation: [{
|
|
2369
2370
|
type: Input
|
|
@@ -2404,17 +2405,17 @@ class RouterLinkWithHrefDelegateDirective {
|
|
|
2404
2405
|
onClick() {
|
|
2405
2406
|
this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
|
|
2406
2407
|
}
|
|
2407
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2408
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2408
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2409
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RouterLinkWithHrefDelegateDirective, selector: "a[routerLink],area[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
|
|
2409
2410
|
}
|
|
2410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
|
|
2411
2412
|
type: Directive,
|
|
2412
2413
|
args: [{
|
|
2413
2414
|
selector: 'a[routerLink],area[routerLink]',
|
|
2414
2415
|
}]
|
|
2415
|
-
}], ctorParameters: ()
|
|
2416
|
+
}], ctorParameters: function () { return [{ type: i1.LocationStrategy }, { type: NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
|
|
2416
2417
|
type: Optional
|
|
2417
|
-
}] }], propDecorators: { routerDirection: [{
|
|
2418
|
+
}] }]; }, propDecorators: { routerDirection: [{
|
|
2418
2419
|
type: Input
|
|
2419
2420
|
}], routerAnimation: [{
|
|
2420
2421
|
type: Input
|
|
@@ -2521,16 +2522,6 @@ class IonTabs {
|
|
|
2521
2522
|
this.ionTabsDidChange.emit({ tab: stackId });
|
|
2522
2523
|
}
|
|
2523
2524
|
}
|
|
2524
|
-
/**
|
|
2525
|
-
* Host listener for the `ionTabButtonClick` event. Angular 22 enabled stricter
|
|
2526
|
-
* host-binding type checking, which types `$event` as the DOM `Event`. That is
|
|
2527
|
-
* not assignable to `select`'s public `string | CustomEvent` parameter, so this
|
|
2528
|
-
* thin wrapper narrows the event before forwarding to keep `select`'s public
|
|
2529
|
-
* signature intact.
|
|
2530
|
-
*/
|
|
2531
|
-
onTabButtonClick(ev) {
|
|
2532
|
-
return this.select(ev);
|
|
2533
|
-
}
|
|
2534
2525
|
/**
|
|
2535
2526
|
* When a tab button is clicked, there are several scenarios:
|
|
2536
2527
|
* 1. If the selected tab is currently active (the tab button has been clicked
|
|
@@ -2591,8 +2582,6 @@ class IonTabs {
|
|
|
2591
2582
|
return;
|
|
2592
2583
|
}
|
|
2593
2584
|
const rootView = this.outlet.getRootView(tab);
|
|
2594
|
-
// Keep the explicit rootView null-guard; an optional-chain rewrite changes the short-circuit value spread below.
|
|
2595
|
-
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
2596
2585
|
const navigationExtras = rootView && tabRootUrl === rootView.url && rootView.savedExtras;
|
|
2597
2586
|
return this.navCtrl.navigateRoot(tabRootUrl, {
|
|
2598
2587
|
...navigationExtras,
|
|
@@ -2690,22 +2679,22 @@ class IonTabs {
|
|
|
2690
2679
|
this.tabsInner.nativeElement.after(tabBar);
|
|
2691
2680
|
}
|
|
2692
2681
|
}
|
|
2693
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2694
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2682
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonTabs, deps: [{ token: NavController }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2683
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IonTabs, selector: "ion-tabs", outputs: { ionTabsWillChange: "ionTabsWillChange", ionTabsDidChange: "ionTabsDidChange" }, host: { listeners: { "ionTabButtonClick": "select($event)" } }, viewQueries: [{ propertyName: "tabsInner", first: true, predicate: ["tabsInner"], descendants: true, read: ElementRef, static: true }], ngImport: i0 });
|
|
2695
2684
|
}
|
|
2696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonTabs, decorators: [{
|
|
2697
2686
|
type: Directive,
|
|
2698
2687
|
args: [{
|
|
2699
2688
|
selector: 'ion-tabs',
|
|
2700
2689
|
}]
|
|
2701
|
-
}], ctorParameters: ()
|
|
2690
|
+
}], ctorParameters: function () { return [{ type: NavController }]; }, propDecorators: { tabsInner: [{
|
|
2702
2691
|
type: ViewChild,
|
|
2703
2692
|
args: ['tabsInner', { read: ElementRef, static: true }]
|
|
2704
2693
|
}], ionTabsWillChange: [{
|
|
2705
2694
|
type: Output
|
|
2706
2695
|
}], ionTabsDidChange: [{
|
|
2707
2696
|
type: Output
|
|
2708
|
-
}],
|
|
2697
|
+
}], select: [{
|
|
2709
2698
|
type: HostListener,
|
|
2710
2699
|
args: ['ionTabButtonClick', ['$event']]
|
|
2711
2700
|
}] } });
|
|
@@ -2795,5 +2784,5 @@ class IonicRouteStrategy {
|
|
|
2795
2784
|
* Generated bundle index. Do not edit.
|
|
2796
2785
|
*/
|
|
2797
2786
|
|
|
2798
|
-
export { AngularDelegate, Config, ConfigToken, DomController, IonBackButton, IonModal, IonModalToken, IonNav, IonPopover, IonRouterOutlet, IonTabs, IonicRouteStrategy, MenuController, NavController, NavParams, OverlayBaseController, Platform, ProxyCmp, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, ValueAccessor, provideComponentInputBinding, raf, setIonicClasses };
|
|
2787
|
+
export { AngularDelegate, Config, ConfigToken, DomController, IonBackButton, IonModal, IonModalToken, IonNav, IonPopover, IonRouterOutlet, IonTabs, IonicRouteStrategy, MenuController, NavController, NavParams, OverlayBaseController, Platform, ProxyCmp, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, ValueAccessor, bindLifecycleEvents, provideComponentInputBinding, raf, setIonicClasses };
|
|
2799
2788
|
//# sourceMappingURL=ionic-angular-common.mjs.map
|