@ionic/angular 8.8.9-dev.11781098612.122c6758 → 8.8.9-dev.11781201980.1b6e8398
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 +1 -1
- 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 +93 -107
- package/fesm2022/ionic-angular-common.mjs.map +1 -1
- package/fesm2022/ionic-angular-standalone.mjs +911 -900
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2022/ionic-angular.mjs +779 -1087
- 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 -16
- 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 +2 -2
- package/schematics/utils/ast.js +3 -35
- 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/types/ionic-angular-common.d.ts +0 -1021
- package/types/ionic-angular-standalone.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,18 +890,9 @@ 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
|
-
/**
|
|
894
|
-
* Run change detection on the freshly attached view so Angular's init hooks
|
|
895
|
-
* (`ngOnInit`, `ngAfterViewInit`) fire before the web component dispatches its
|
|
896
|
-
* Ionic lifecycle events (`ionViewWillEnter`, etc.). `createComponent` only runs
|
|
897
|
-
* the creation pass. The init hooks run during an update pass. Under Zone.js an
|
|
898
|
-
* implicit tick used to cover this, but zoneless Angular schedules no such tick,
|
|
899
|
-
* so without this the first `ionViewWillEnter` could run before `ngOnInit`.
|
|
900
|
-
*/
|
|
901
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
902
896
|
elRefMap.set(hostElement, componentRef);
|
|
903
897
|
elEventsMap.set(hostElement, unbindEvents);
|
|
904
898
|
return hostElement;
|
|
@@ -910,24 +904,10 @@ const LIFECYCLES = [
|
|
|
910
904
|
LIFECYCLE_DID_LEAVE,
|
|
911
905
|
LIFECYCLE_WILL_UNLOAD,
|
|
912
906
|
];
|
|
913
|
-
const bindLifecycleEvents = (zone,
|
|
914
|
-
/**
|
|
915
|
-
* `zone.run` keeps the listener registration (and, under Zone.js, the handler
|
|
916
|
-
* execution) inside the Angular zone, so async work started inside a lifecycle
|
|
917
|
-
* hook is still zone-tracked. Under zoneless Angular it is a passthrough.
|
|
918
|
-
*/
|
|
907
|
+
const bindLifecycleEvents = (zone, instance, element) => {
|
|
919
908
|
return zone.run(() => {
|
|
920
909
|
const unregisters = LIFECYCLES.filter((eventName) => typeof instance[eventName] === 'function').map((eventName) => {
|
|
921
|
-
const handler = (ev) =>
|
|
922
|
-
instance[eventName](ev.detail);
|
|
923
|
-
/**
|
|
924
|
-
* Ionic lifecycle events (`ionViewWillEnter`, etc.) are dispatched from
|
|
925
|
-
* the web component via a native event listener, so under zoneless
|
|
926
|
-
* Angular nothing schedules change detection for state the hook mutates.
|
|
927
|
-
* Mark the view dirty explicitly. This is a no-op-or-better under Zone.js.
|
|
928
|
-
*/
|
|
929
|
-
changeDetectorRef.markForCheck();
|
|
930
|
-
};
|
|
910
|
+
const handler = (ev) => instance[eventName](ev.detail);
|
|
931
911
|
element.addEventListener(eventName, handler);
|
|
932
912
|
return () => element.removeEventListener(eventName, handler);
|
|
933
913
|
});
|
|
@@ -1030,7 +1010,14 @@ const MODAL_METHODS = [
|
|
|
1030
1010
|
'setCurrentBreakpoint',
|
|
1031
1011
|
'getCurrentBreakpoint',
|
|
1032
1012
|
];
|
|
1033
|
-
let IonModal =
|
|
1013
|
+
let IonModal =
|
|
1014
|
+
/**
|
|
1015
|
+
* @Component extends from @Directive
|
|
1016
|
+
* so by defining the inputs here we
|
|
1017
|
+
* do not need to re-define them for the
|
|
1018
|
+
* lazy loaded popover.
|
|
1019
|
+
*/
|
|
1020
|
+
class IonModal {
|
|
1034
1021
|
z;
|
|
1035
1022
|
// TODO(FW-2827): type
|
|
1036
1023
|
template;
|
|
@@ -1062,8 +1049,8 @@ let IonModal = class IonModal {
|
|
|
1062
1049
|
'ionDragEnd',
|
|
1063
1050
|
]);
|
|
1064
1051
|
}
|
|
1065
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1066
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1052
|
+
/** @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 });
|
|
1053
|
+
/** @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 });
|
|
1067
1054
|
};
|
|
1068
1055
|
IonModal = __decorate([
|
|
1069
1056
|
ProxyCmp({
|
|
@@ -1077,14 +1064,14 @@ IonModal = __decorate([
|
|
|
1077
1064
|
* lazy loaded popover.
|
|
1078
1065
|
*/
|
|
1079
1066
|
], IonModal);
|
|
1080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonModal, decorators: [{
|
|
1081
1068
|
type: Directive,
|
|
1082
1069
|
args: [{
|
|
1083
1070
|
selector: 'ion-modal',
|
|
1084
1071
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1085
1072
|
inputs: MODAL_INPUTS,
|
|
1086
1073
|
}]
|
|
1087
|
-
}], ctorParameters: ()
|
|
1074
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
|
|
1088
1075
|
type: ContentChild,
|
|
1089
1076
|
args: [TemplateRef, { static: false }]
|
|
1090
1077
|
}] } });
|
|
@@ -1113,7 +1100,14 @@ const POPOVER_INPUTS = [
|
|
|
1113
1100
|
'side',
|
|
1114
1101
|
];
|
|
1115
1102
|
const POPOVER_METHODS = ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'];
|
|
1116
|
-
let IonPopover =
|
|
1103
|
+
let IonPopover =
|
|
1104
|
+
/**
|
|
1105
|
+
* @Component extends from @Directive
|
|
1106
|
+
* so by defining the inputs here we
|
|
1107
|
+
* do not need to re-define them for the
|
|
1108
|
+
* lazy loaded popover.
|
|
1109
|
+
*/
|
|
1110
|
+
class IonPopover {
|
|
1117
1111
|
z;
|
|
1118
1112
|
// TODO(FW-2827): type
|
|
1119
1113
|
template;
|
|
@@ -1141,8 +1135,8 @@ let IonPopover = class IonPopover {
|
|
|
1141
1135
|
'didDismiss',
|
|
1142
1136
|
]);
|
|
1143
1137
|
}
|
|
1144
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1145
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1138
|
+
/** @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 });
|
|
1139
|
+
/** @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 });
|
|
1146
1140
|
};
|
|
1147
1141
|
IonPopover = __decorate([
|
|
1148
1142
|
ProxyCmp({
|
|
@@ -1156,14 +1150,14 @@ IonPopover = __decorate([
|
|
|
1156
1150
|
* lazy loaded popover.
|
|
1157
1151
|
*/
|
|
1158
1152
|
], IonPopover);
|
|
1159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonPopover, decorators: [{
|
|
1160
1154
|
type: Directive,
|
|
1161
1155
|
args: [{
|
|
1162
1156
|
selector: 'ion-popover',
|
|
1163
1157
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1164
1158
|
inputs: POPOVER_INPUTS,
|
|
1165
1159
|
}]
|
|
1166
|
-
}], ctorParameters: ()
|
|
1160
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { template: [{
|
|
1167
1161
|
type: ContentChild,
|
|
1168
1162
|
args: [TemplateRef, { static: false }]
|
|
1169
1163
|
}] } });
|
|
@@ -1265,7 +1259,7 @@ class StackController {
|
|
|
1265
1259
|
createView(ref, activatedRoute) {
|
|
1266
1260
|
const url = getUrl(this.router, activatedRoute);
|
|
1267
1261
|
const element = ref?.location?.nativeElement;
|
|
1268
|
-
const unlistenEvents = bindLifecycleEvents(this.zone, ref.
|
|
1262
|
+
const unlistenEvents = bindLifecycleEvents(this.zone, ref.instance, element);
|
|
1269
1263
|
return {
|
|
1270
1264
|
id: this.nextId++,
|
|
1271
1265
|
stackId: computeStackId(this.tabsPrefix, url),
|
|
@@ -1431,6 +1425,7 @@ class StackController {
|
|
|
1431
1425
|
return this.runningTask !== undefined;
|
|
1432
1426
|
}
|
|
1433
1427
|
destroy() {
|
|
1428
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1434
1429
|
this.containerEl = undefined;
|
|
1435
1430
|
this.views.forEach(destroyView);
|
|
1436
1431
|
this.activeView = undefined;
|
|
@@ -1572,7 +1567,6 @@ class IonRouterOutlet {
|
|
|
1572
1567
|
onEnd: (shouldContinue) => this.stackCtrl.endBackTransition(shouldContinue),
|
|
1573
1568
|
}
|
|
1574
1569
|
: undefined;
|
|
1575
|
-
this.nativeEl.swipeGesture = swipe;
|
|
1576
1570
|
}
|
|
1577
1571
|
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
1578
1572
|
this.parentOutlet = parentOutlet;
|
|
@@ -1645,6 +1639,7 @@ class IonRouterOutlet {
|
|
|
1645
1639
|
deactivate() {
|
|
1646
1640
|
if (this.activated) {
|
|
1647
1641
|
if (this.activatedView) {
|
|
1642
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1648
1643
|
const context = this.getContext();
|
|
1649
1644
|
this.activatedView.savedData = new Map(context.children['contexts']);
|
|
1650
1645
|
/**
|
|
@@ -1689,6 +1684,7 @@ class IonRouterOutlet {
|
|
|
1689
1684
|
const saved = enteringView.savedData;
|
|
1690
1685
|
if (saved) {
|
|
1691
1686
|
// self-restore
|
|
1687
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1692
1688
|
const context = this.getContext();
|
|
1693
1689
|
context.children['contexts'] = saved;
|
|
1694
1690
|
}
|
|
@@ -1709,6 +1705,7 @@ class IonRouterOutlet {
|
|
|
1709
1705
|
const component$ = new BehaviorSubject(null);
|
|
1710
1706
|
const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);
|
|
1711
1707
|
const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
|
1708
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1712
1709
|
const component = snapshot.routeConfig.component ?? snapshot.component;
|
|
1713
1710
|
/**
|
|
1714
1711
|
* View components need to be added as a child of ion-router-outlet
|
|
@@ -1731,6 +1728,7 @@ class IonRouterOutlet {
|
|
|
1731
1728
|
* At this point this.activated has been set earlier
|
|
1732
1729
|
* in this function, so it is guaranteed to be non-null.
|
|
1733
1730
|
*/
|
|
1731
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1734
1732
|
enteringView = this.stackCtrl.createView(this.activated, activatedRoute);
|
|
1735
1733
|
// Store references to the proxy by component
|
|
1736
1734
|
this.proxyMap.set(cmpRef.instance, activatedRouteProxy);
|
|
@@ -1841,10 +1839,10 @@ class IonRouterOutlet {
|
|
|
1841
1839
|
proxy.component = activatedRoute.component;
|
|
1842
1840
|
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
1843
1841
|
}
|
|
1844
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1845
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1842
|
+
/** @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 });
|
|
1843
|
+
/** @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 });
|
|
1846
1844
|
}
|
|
1847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
1848
1846
|
type: Directive,
|
|
1849
1847
|
args: [{
|
|
1850
1848
|
selector: 'ion-router-outlet',
|
|
@@ -1852,7 +1850,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1852
1850
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1853
1851
|
inputs: ['animated', 'animation', 'mode', 'swipeGesture'],
|
|
1854
1852
|
}]
|
|
1855
|
-
}], ctorParameters: ()
|
|
1853
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1856
1854
|
type: Attribute,
|
|
1857
1855
|
args: ['name']
|
|
1858
1856
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1864,7 +1862,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1864
1862
|
type: SkipSelf
|
|
1865
1863
|
}, {
|
|
1866
1864
|
type: Optional
|
|
1867
|
-
}] }], propDecorators: { name: [{
|
|
1865
|
+
}] }]; }, propDecorators: { name: [{
|
|
1868
1866
|
type: Input
|
|
1869
1867
|
}], stackWillChange: [{
|
|
1870
1868
|
type: Output
|
|
@@ -1958,10 +1956,10 @@ class RoutedComponentInputBinder {
|
|
|
1958
1956
|
});
|
|
1959
1957
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
1960
1958
|
}
|
|
1961
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1962
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1959
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1960
|
+
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RoutedComponentInputBinder });
|
|
1963
1961
|
}
|
|
1964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
1965
1963
|
type: Injectable
|
|
1966
1964
|
}] });
|
|
1967
1965
|
const provideComponentInputBinding = () => {
|
|
@@ -2094,12 +2092,12 @@ class ValueAccessor {
|
|
|
2094
2092
|
});
|
|
2095
2093
|
}
|
|
2096
2094
|
}
|
|
2097
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2098
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2095
|
+
/** @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 });
|
|
2096
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ValueAccessor, host: { listeners: { "ionBlur": "_handleBlurEvent($event.target)" } }, ngImport: i0 });
|
|
2099
2097
|
}
|
|
2100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
2101
2099
|
type: Directive
|
|
2102
|
-
}], ctorParameters: ()
|
|
2100
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
|
|
2103
2101
|
type: HostListener,
|
|
2104
2102
|
args: ['ionBlur', ['$event.target']]
|
|
2105
2103
|
}] } });
|
|
@@ -2172,23 +2170,23 @@ let IonBackButton = class IonBackButton {
|
|
|
2172
2170
|
ev.preventDefault();
|
|
2173
2171
|
}
|
|
2174
2172
|
}
|
|
2175
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2176
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2173
|
+
/** @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 });
|
|
2174
|
+
/** @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 });
|
|
2177
2175
|
};
|
|
2178
2176
|
IonBackButton = __decorate([
|
|
2179
2177
|
ProxyCmp({
|
|
2180
2178
|
inputs: BACK_BUTTON_INPUTS,
|
|
2181
2179
|
})
|
|
2182
2180
|
], IonBackButton);
|
|
2183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonBackButton, decorators: [{
|
|
2184
2182
|
type: Directive,
|
|
2185
2183
|
args: [{
|
|
2186
2184
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2187
2185
|
inputs: BACK_BUTTON_INPUTS,
|
|
2188
2186
|
}]
|
|
2189
|
-
}], ctorParameters: ()
|
|
2187
|
+
}], ctorParameters: function () { return [{ type: IonRouterOutlet, decorators: [{
|
|
2190
2188
|
type: Optional
|
|
2191
|
-
}] }, { type: NavController }, { type: Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { onClick: [{
|
|
2189
|
+
}] }, { type: NavController }, { type: Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onClick: [{
|
|
2192
2190
|
type: HostListener,
|
|
2193
2191
|
args: ['click', ['$event']]
|
|
2194
2192
|
}] } });
|
|
@@ -2219,8 +2217,8 @@ let IonNav = class IonNav {
|
|
|
2219
2217
|
ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);
|
|
2220
2218
|
proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);
|
|
2221
2219
|
}
|
|
2222
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2223
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2220
|
+
/** @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 });
|
|
2221
|
+
/** @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 });
|
|
2224
2222
|
};
|
|
2225
2223
|
IonNav = __decorate([
|
|
2226
2224
|
ProxyCmp({
|
|
@@ -2228,13 +2226,13 @@ IonNav = __decorate([
|
|
|
2228
2226
|
methods: NAV_METHODS,
|
|
2229
2227
|
})
|
|
2230
2228
|
], IonNav);
|
|
2231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonNav, decorators: [{
|
|
2232
2230
|
type: Directive,
|
|
2233
2231
|
args: [{
|
|
2234
2232
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2235
2233
|
inputs: NAV_INPUTS,
|
|
2236
2234
|
}]
|
|
2237
|
-
}], ctorParameters: ()
|
|
2235
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; } });
|
|
2238
2236
|
|
|
2239
2237
|
/**
|
|
2240
2238
|
* Adds support for Ionic routing directions and animations to the base Angular router link directive.
|
|
@@ -2315,17 +2313,17 @@ class RouterLinkDelegateDirective {
|
|
|
2315
2313
|
*/
|
|
2316
2314
|
ev.preventDefault();
|
|
2317
2315
|
}
|
|
2318
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2319
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2316
|
+
/** @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 });
|
|
2317
|
+
/** @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 });
|
|
2320
2318
|
}
|
|
2321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
|
|
2322
2320
|
type: Directive,
|
|
2323
2321
|
args: [{
|
|
2324
2322
|
selector: ':not(a):not(area)[routerLink]',
|
|
2325
2323
|
}]
|
|
2326
|
-
}], ctorParameters: ()
|
|
2324
|
+
}], ctorParameters: function () { return [{ type: i1.LocationStrategy }, { type: NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
|
|
2327
2325
|
type: Optional
|
|
2328
|
-
}] }], propDecorators: { routerDirection: [{
|
|
2326
|
+
}] }]; }, propDecorators: { routerDirection: [{
|
|
2329
2327
|
type: Input
|
|
2330
2328
|
}], routerAnimation: [{
|
|
2331
2329
|
type: Input
|
|
@@ -2366,17 +2364,17 @@ class RouterLinkWithHrefDelegateDirective {
|
|
|
2366
2364
|
onClick() {
|
|
2367
2365
|
this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
|
|
2368
2366
|
}
|
|
2369
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2370
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2367
|
+
/** @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 });
|
|
2368
|
+
/** @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 });
|
|
2371
2369
|
}
|
|
2372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
|
|
2373
2371
|
type: Directive,
|
|
2374
2372
|
args: [{
|
|
2375
2373
|
selector: 'a[routerLink],area[routerLink]',
|
|
2376
2374
|
}]
|
|
2377
|
-
}], ctorParameters: ()
|
|
2375
|
+
}], ctorParameters: function () { return [{ type: i1.LocationStrategy }, { type: NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
|
|
2378
2376
|
type: Optional
|
|
2379
|
-
}] }], propDecorators: { routerDirection: [{
|
|
2377
|
+
}] }]; }, propDecorators: { routerDirection: [{
|
|
2380
2378
|
type: Input
|
|
2381
2379
|
}], routerAnimation: [{
|
|
2382
2380
|
type: Input
|
|
@@ -2483,16 +2481,6 @@ class IonTabs {
|
|
|
2483
2481
|
this.ionTabsDidChange.emit({ tab: stackId });
|
|
2484
2482
|
}
|
|
2485
2483
|
}
|
|
2486
|
-
/**
|
|
2487
|
-
* Host listener for the `ionTabButtonClick` event. Angular 22 enabled stricter
|
|
2488
|
-
* host-binding type checking, which types `$event` as the DOM `Event`. That is
|
|
2489
|
-
* not assignable to `select`'s public `string | CustomEvent` parameter, so this
|
|
2490
|
-
* thin wrapper narrows the event before forwarding to keep `select`'s public
|
|
2491
|
-
* signature intact.
|
|
2492
|
-
*/
|
|
2493
|
-
onTabButtonClick(ev) {
|
|
2494
|
-
return this.select(ev);
|
|
2495
|
-
}
|
|
2496
2484
|
/**
|
|
2497
2485
|
* When a tab button is clicked, there are several scenarios:
|
|
2498
2486
|
* 1. If the selected tab is currently active (the tab button has been clicked
|
|
@@ -2553,8 +2541,6 @@ class IonTabs {
|
|
|
2553
2541
|
return;
|
|
2554
2542
|
}
|
|
2555
2543
|
const rootView = this.outlet.getRootView(tab);
|
|
2556
|
-
// Keep the explicit rootView null-guard; an optional-chain rewrite changes the short-circuit value spread below.
|
|
2557
|
-
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
2558
2544
|
const navigationExtras = rootView && tabRootUrl === rootView.url && rootView.savedExtras;
|
|
2559
2545
|
return this.navCtrl.navigateRoot(tabRootUrl, {
|
|
2560
2546
|
...navigationExtras,
|
|
@@ -2652,22 +2638,22 @@ class IonTabs {
|
|
|
2652
2638
|
this.tabsInner.nativeElement.after(tabBar);
|
|
2653
2639
|
}
|
|
2654
2640
|
}
|
|
2655
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2656
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2641
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonTabs, deps: [{ token: NavController }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2642
|
+
/** @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 });
|
|
2657
2643
|
}
|
|
2658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IonTabs, decorators: [{
|
|
2659
2645
|
type: Directive,
|
|
2660
2646
|
args: [{
|
|
2661
2647
|
selector: 'ion-tabs',
|
|
2662
2648
|
}]
|
|
2663
|
-
}], ctorParameters: ()
|
|
2649
|
+
}], ctorParameters: function () { return [{ type: NavController }]; }, propDecorators: { tabsInner: [{
|
|
2664
2650
|
type: ViewChild,
|
|
2665
2651
|
args: ['tabsInner', { read: ElementRef, static: true }]
|
|
2666
2652
|
}], ionTabsWillChange: [{
|
|
2667
2653
|
type: Output
|
|
2668
2654
|
}], ionTabsDidChange: [{
|
|
2669
2655
|
type: Output
|
|
2670
|
-
}],
|
|
2656
|
+
}], select: [{
|
|
2671
2657
|
type: HostListener,
|
|
2672
2658
|
args: ['ionTabButtonClick', ['$event']]
|
|
2673
2659
|
}] } });
|
|
@@ -2757,5 +2743,5 @@ class IonicRouteStrategy {
|
|
|
2757
2743
|
* Generated bundle index. Do not edit.
|
|
2758
2744
|
*/
|
|
2759
2745
|
|
|
2760
|
-
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 };
|
|
2746
|
+
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 };
|
|
2761
2747
|
//# sourceMappingURL=ionic-angular-common.mjs.map
|