@ionic/angular 9.0.4-dev.11789491273.11ab1c95 → 9.0.4-dev.11789496656.1690cf55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/directives/navigation/back-button.d.ts +1 -0
- package/dist/common/directives/navigation/back-button.js +15 -3
- package/dist/common/directives/navigation/back-button.js.map +1 -1
- package/dist/common/directives/navigation/nav.d.ts +2 -0
- package/dist/common/directives/navigation/nav.js +12 -3
- package/dist/common/directives/navigation/nav.js.map +1 -1
- package/dist/common/directives/navigation/router-outlet.d.ts +2 -0
- package/dist/common/directives/navigation/router-outlet.js +8 -2
- package/dist/common/directives/navigation/router-outlet.js.map +1 -1
- package/dist/common/overlays/modal.d.ts +9 -0
- package/dist/common/overlays/modal.js +14 -11
- package/dist/common/overlays/modal.js.map +1 -1
- package/dist/common/overlays/popover.d.ts +10 -0
- package/dist/common/overlays/popover.js +15 -12
- package/dist/common/overlays/popover.js.map +1 -1
- package/dist/common/utils/boolean-attribute.d.ts +24 -0
- package/dist/common/utils/boolean-attribute.js +36 -0
- package/dist/common/utils/boolean-attribute.js.map +1 -0
- package/dist/lazy/directives/angular-component-lib/boolean-attribute.d.ts +35 -0
- package/dist/lazy/directives/angular-component-lib/boolean-attribute.js +43 -0
- package/dist/lazy/directives/angular-component-lib/boolean-attribute.js.map +1 -0
- package/dist/lazy/directives/proxies.d.ts +144 -0
- package/dist/lazy/directives/proxies.js +115 -114
- package/dist/lazy/directives/proxies.js.map +1 -1
- package/dist/standalone/directives/angular-component-lib/boolean-attribute.d.ts +35 -0
- package/dist/standalone/directives/angular-component-lib/boolean-attribute.js +43 -0
- package/dist/standalone/directives/angular-component-lib/boolean-attribute.js.map +1 -0
- package/dist/standalone/directives/checkbox.d.ts +3 -0
- package/dist/standalone/directives/checkbox.js +8 -5
- package/dist/standalone/directives/checkbox.js.map +1 -1
- package/dist/standalone/directives/datetime.d.ts +9 -0
- package/dist/standalone/directives/datetime.js +14 -11
- package/dist/standalone/directives/datetime.js.map +1 -1
- package/dist/standalone/directives/icon.d.ts +3 -0
- package/dist/standalone/directives/icon.js +19 -3
- package/dist/standalone/directives/icon.js.map +1 -1
- package/dist/standalone/directives/input-otp.d.ts +2 -0
- package/dist/standalone/directives/input-otp.js +7 -4
- package/dist/standalone/directives/input-otp.js.map +1 -1
- package/dist/standalone/directives/input.d.ts +10 -0
- package/dist/standalone/directives/input.js +15 -12
- package/dist/standalone/directives/input.js.map +1 -1
- package/dist/standalone/directives/ion-accordion-group.d.ts +4 -0
- package/dist/standalone/directives/ion-accordion-group.js +3 -2
- package/dist/standalone/directives/ion-accordion-group.js.map +1 -1
- package/dist/standalone/directives/ion-accordion.d.ts +2 -0
- package/dist/standalone/directives/ion-accordion.js +3 -2
- package/dist/standalone/directives/ion-accordion.js.map +1 -1
- package/dist/standalone/directives/ion-action-sheet.d.ts +5 -0
- package/dist/standalone/directives/ion-action-sheet.js +3 -2
- package/dist/standalone/directives/ion-action-sheet.js.map +1 -1
- package/dist/standalone/directives/ion-alert.d.ts +5 -0
- package/dist/standalone/directives/ion-alert.js +3 -2
- package/dist/standalone/directives/ion-alert.js.map +1 -1
- package/dist/standalone/directives/ion-backdrop.d.ts +3 -0
- package/dist/standalone/directives/ion-backdrop.js +3 -2
- package/dist/standalone/directives/ion-backdrop.js.map +1 -1
- package/dist/standalone/directives/ion-breadcrumb.d.ts +3 -0
- package/dist/standalone/directives/ion-breadcrumb.js +3 -2
- package/dist/standalone/directives/ion-breadcrumb.js.map +1 -1
- package/dist/standalone/directives/ion-button.d.ts +2 -0
- package/dist/standalone/directives/ion-button.js +3 -2
- package/dist/standalone/directives/ion-button.js.map +1 -1
- package/dist/standalone/directives/ion-buttons.d.ts +1 -0
- package/dist/standalone/directives/ion-buttons.js +3 -2
- package/dist/standalone/directives/ion-buttons.js.map +1 -1
- package/dist/standalone/directives/ion-card-header.d.ts +1 -0
- package/dist/standalone/directives/ion-card-header.js +3 -2
- package/dist/standalone/directives/ion-card-header.js.map +1 -1
- package/dist/standalone/directives/ion-card.d.ts +2 -0
- package/dist/standalone/directives/ion-card.js +3 -2
- package/dist/standalone/directives/ion-card.js.map +1 -1
- package/dist/standalone/directives/ion-chip.d.ts +2 -0
- package/dist/standalone/directives/ion-chip.js +3 -2
- package/dist/standalone/directives/ion-chip.js.map +1 -1
- package/dist/standalone/directives/ion-content.d.ts +5 -0
- package/dist/standalone/directives/ion-content.js +3 -2
- package/dist/standalone/directives/ion-content.js.map +1 -1
- package/dist/standalone/directives/ion-datetime-button.d.ts +1 -0
- package/dist/standalone/directives/ion-datetime-button.js +3 -2
- package/dist/standalone/directives/ion-datetime-button.js.map +1 -1
- package/dist/standalone/directives/ion-fab-button.d.ts +4 -0
- package/dist/standalone/directives/ion-fab-button.js +3 -2
- package/dist/standalone/directives/ion-fab-button.js.map +1 -1
- package/dist/standalone/directives/ion-fab-list.d.ts +1 -0
- package/dist/standalone/directives/ion-fab-list.js +3 -2
- package/dist/standalone/directives/ion-fab-list.js.map +1 -1
- package/dist/standalone/directives/ion-fab.d.ts +2 -0
- package/dist/standalone/directives/ion-fab.js +3 -2
- package/dist/standalone/directives/ion-fab.js.map +1 -1
- package/dist/standalone/directives/ion-footer.d.ts +1 -0
- package/dist/standalone/directives/ion-footer.js +3 -2
- package/dist/standalone/directives/ion-footer.js.map +1 -1
- package/dist/standalone/directives/ion-grid.d.ts +1 -0
- package/dist/standalone/directives/ion-grid.js +3 -2
- package/dist/standalone/directives/ion-grid.js.map +1 -1
- package/dist/standalone/directives/ion-header.d.ts +1 -0
- package/dist/standalone/directives/ion-header.js +3 -2
- package/dist/standalone/directives/ion-header.js.map +1 -1
- package/dist/standalone/directives/ion-infinite-scroll.d.ts +1 -0
- package/dist/standalone/directives/ion-infinite-scroll.js +3 -2
- package/dist/standalone/directives/ion-infinite-scroll.js.map +1 -1
- package/dist/standalone/directives/ion-item-divider.d.ts +1 -0
- package/dist/standalone/directives/ion-item-divider.js +3 -2
- package/dist/standalone/directives/ion-item-divider.js.map +1 -1
- package/dist/standalone/directives/ion-item-option.d.ts +2 -0
- package/dist/standalone/directives/ion-item-option.js +3 -2
- package/dist/standalone/directives/ion-item-option.js.map +1 -1
- package/dist/standalone/directives/ion-item-sliding.d.ts +1 -0
- package/dist/standalone/directives/ion-item-sliding.js +3 -2
- package/dist/standalone/directives/ion-item-sliding.js.map +1 -1
- package/dist/standalone/directives/ion-item.d.ts +3 -0
- package/dist/standalone/directives/ion-item.js +3 -2
- package/dist/standalone/directives/ion-item.js.map +1 -1
- package/dist/standalone/directives/ion-list.d.ts +1 -0
- package/dist/standalone/directives/ion-list.js +3 -2
- package/dist/standalone/directives/ion-list.js.map +1 -1
- package/dist/standalone/directives/ion-loading.d.ts +6 -0
- package/dist/standalone/directives/ion-loading.js +3 -2
- package/dist/standalone/directives/ion-loading.js.map +1 -1
- package/dist/standalone/directives/ion-menu-button.d.ts +2 -0
- package/dist/standalone/directives/ion-menu-button.js +3 -2
- package/dist/standalone/directives/ion-menu-button.js.map +1 -1
- package/dist/standalone/directives/ion-menu-toggle.d.ts +1 -0
- package/dist/standalone/directives/ion-menu-toggle.js +3 -2
- package/dist/standalone/directives/ion-menu-toggle.js.map +1 -1
- package/dist/standalone/directives/ion-menu.d.ts +2 -0
- package/dist/standalone/directives/ion-menu.js +3 -2
- package/dist/standalone/directives/ion-menu.js.map +1 -1
- package/dist/standalone/directives/ion-picker-column-option.d.ts +1 -0
- package/dist/standalone/directives/ion-picker-column-option.js +3 -2
- package/dist/standalone/directives/ion-picker-column-option.js.map +1 -1
- package/dist/standalone/directives/ion-picker-column.d.ts +1 -0
- package/dist/standalone/directives/ion-picker-column.js +3 -2
- package/dist/standalone/directives/ion-picker-column.js.map +1 -1
- package/dist/standalone/directives/ion-progress-bar.d.ts +1 -0
- package/dist/standalone/directives/ion-progress-bar.js +3 -2
- package/dist/standalone/directives/ion-progress-bar.js.map +1 -1
- package/dist/standalone/directives/ion-radio.d.ts +1 -0
- package/dist/standalone/directives/ion-radio.js +3 -2
- package/dist/standalone/directives/ion-radio.js.map +1 -1
- package/dist/standalone/directives/ion-refresher.d.ts +1 -0
- package/dist/standalone/directives/ion-refresher.js +3 -2
- package/dist/standalone/directives/ion-refresher.js.map +1 -1
- package/dist/standalone/directives/ion-reorder-group.d.ts +1 -0
- package/dist/standalone/directives/ion-reorder-group.js +3 -2
- package/dist/standalone/directives/ion-reorder-group.js.map +1 -1
- package/dist/standalone/directives/ion-segment-button.d.ts +1 -0
- package/dist/standalone/directives/ion-segment-button.js +3 -2
- package/dist/standalone/directives/ion-segment-button.js.map +1 -1
- package/dist/standalone/directives/ion-segment-view.d.ts +2 -0
- package/dist/standalone/directives/ion-segment-view.js +3 -2
- package/dist/standalone/directives/ion-segment-view.js.map +1 -1
- package/dist/standalone/directives/ion-select-modal.d.ts +1 -0
- package/dist/standalone/directives/ion-select-modal.js +3 -2
- package/dist/standalone/directives/ion-select-modal.js.map +1 -1
- package/dist/standalone/directives/ion-select-option.d.ts +1 -0
- package/dist/standalone/directives/ion-select-option.js +3 -2
- package/dist/standalone/directives/ion-select-option.js.map +1 -1
- package/dist/standalone/directives/ion-skeleton-text.d.ts +1 -0
- package/dist/standalone/directives/ion-skeleton-text.js +3 -2
- package/dist/standalone/directives/ion-skeleton-text.js.map +1 -1
- package/dist/standalone/directives/ion-spinner.d.ts +1 -0
- package/dist/standalone/directives/ion-spinner.js +3 -2
- package/dist/standalone/directives/ion-spinner.js.map +1 -1
- package/dist/standalone/directives/ion-split-pane.d.ts +1 -0
- package/dist/standalone/directives/ion-split-pane.js +3 -2
- package/dist/standalone/directives/ion-split-pane.js.map +1 -1
- package/dist/standalone/directives/ion-tab-bar.d.ts +1 -0
- package/dist/standalone/directives/ion-tab-bar.js +3 -2
- package/dist/standalone/directives/ion-tab-bar.js.map +1 -1
- package/dist/standalone/directives/ion-tab-button.d.ts +2 -0
- package/dist/standalone/directives/ion-tab-button.js +3 -2
- package/dist/standalone/directives/ion-tab-button.js.map +1 -1
- package/dist/standalone/directives/ion-toast.d.ts +4 -0
- package/dist/standalone/directives/ion-toast.js +3 -2
- package/dist/standalone/directives/ion-toast.js.map +1 -1
- package/dist/standalone/directives/radio-group.d.ts +1 -0
- package/dist/standalone/directives/radio-group.js +13 -3
- package/dist/standalone/directives/radio-group.js.map +1 -1
- package/dist/standalone/directives/range.d.ts +5 -0
- package/dist/standalone/directives/range.js +10 -7
- package/dist/standalone/directives/range.js.map +1 -1
- package/dist/standalone/directives/searchbar.d.ts +4 -0
- package/dist/standalone/directives/searchbar.js +9 -6
- package/dist/standalone/directives/searchbar.js.map +1 -1
- package/dist/standalone/directives/segment.d.ts +4 -0
- package/dist/standalone/directives/segment.js +14 -3
- package/dist/standalone/directives/segment.js.map +1 -1
- package/dist/standalone/directives/select.d.ts +2 -0
- package/dist/standalone/directives/select.js +7 -4
- package/dist/standalone/directives/select.js.map +1 -1
- package/dist/standalone/directives/textarea.d.ts +8 -0
- package/dist/standalone/directives/textarea.js +13 -10
- package/dist/standalone/directives/textarea.js.map +1 -1
- package/dist/standalone/directives/toggle.d.ts +3 -0
- package/dist/standalone/directives/toggle.js +8 -5
- package/dist/standalone/directives/toggle.js.map +1 -1
- package/package.json +2 -2
|
@@ -20,4 +20,5 @@ export declare class IonBackButton {
|
|
|
20
20
|
onClick(ev: Event): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonBackButton, [{ optional: true; }, null, null, null, null, null]>;
|
|
22
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IonBackButton, never, never, { "color": { "alias": "color"; "required": false; }; "defaultHref": { "alias": "defaultHref"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "routerAnimation": { "alias": "routerAnimation"; "required": false; }; "text": { "alias": "text"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
static ngAcceptInputType_disabled: boolean | string | null | undefined;
|
|
23
24
|
}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { HostListener, Optional, Directive } from '@angular/core';
|
|
3
|
+
import { nullableBooleanAttribute } from '../../utils/boolean-attribute';
|
|
3
4
|
import { ProxyCmp } from '../../utils/proxy';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "./router-outlet";
|
|
6
7
|
import * as i2 from "../../providers/nav-controller";
|
|
7
8
|
import * as i3 from "../../providers/config";
|
|
8
|
-
const BACK_BUTTON_INPUTS = [
|
|
9
|
+
const BACK_BUTTON_INPUTS = [
|
|
10
|
+
'color',
|
|
11
|
+
'defaultHref',
|
|
12
|
+
{ name: 'disabled', transform: nullableBooleanAttribute },
|
|
13
|
+
'icon',
|
|
14
|
+
'mode',
|
|
15
|
+
'routerAnimation',
|
|
16
|
+
'text',
|
|
17
|
+
'type',
|
|
18
|
+
];
|
|
19
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
20
|
+
const BACK_BUTTON_PROXY_INPUTS = BACK_BUTTON_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
9
21
|
let IonBackButton = class IonBackButton {
|
|
10
22
|
routerOutlet;
|
|
11
23
|
navCtrl;
|
|
@@ -38,11 +50,11 @@ let IonBackButton = class IonBackButton {
|
|
|
38
50
|
}
|
|
39
51
|
}
|
|
40
52
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonBackButton, deps: [{ token: i1.IonRouterOutlet, optional: true }, { token: i2.NavController }, { token: i3.Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
53
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.0", type: IonBackButton, isStandalone: true, inputs: { color: "color", defaultHref: "defaultHref", disabled: ["disabled", "disabled", nullableBooleanAttribute], icon: "icon", mode: "mode", routerAnimation: "routerAnimation", text: "text", type: "type" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
42
54
|
};
|
|
43
55
|
IonBackButton = __decorate([
|
|
44
56
|
ProxyCmp({
|
|
45
|
-
inputs:
|
|
57
|
+
inputs: BACK_BUTTON_PROXY_INPUTS,
|
|
46
58
|
})
|
|
47
59
|
], IonBackButton);
|
|
48
60
|
export { IonBackButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back-button.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/back-button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAyC,SAAS,EAAE,MAAM,eAAe,CAAC;AAKzG,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;;;;;AAI7C,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"back-button.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/back-button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAyC,SAAS,EAAE,MAAM,eAAe,CAAC;AAKzG,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;;;;;AAI7C,MAAM,kBAAkB,GAAG;IACzB,OAAO;IACP,aAAa;IACb,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACzD,MAAM;IACN,MAAM;IACN,iBAAiB;IACjB,MAAM;IACN,MAAM;CACP,CAAC;AAEF,kGAAkG;AAClG,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,KAAK,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AAE,wBAAwB;KACjC,CAAC;GAKW,aAAa,CA+BzB;;2FA/BY,aAAa;kBAJzB,SAAS;mBAAC;oBACT,uEAAuE;oBACvE,MAAM,EAAE,kBAAkB;iBAC3B;;0BAKI,QAAQ;;sBAcV,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import { HostListener, Optional, ElementRef, NgZone, ChangeDetectorRef, Directive } from '@angular/core';\nimport type { Components } from '@ionic/core';\n\nimport { Config } from '../../providers/config';\nimport { NavController } from '../../providers/nav-controller';\nimport { nullableBooleanAttribute } from '../../utils/boolean-attribute';\nimport { ProxyCmp } from '../../utils/proxy';\n\nimport { IonRouterOutlet } from './router-outlet';\n\nconst BACK_BUTTON_INPUTS = [\n 'color',\n 'defaultHref',\n { name: 'disabled', transform: nullableBooleanAttribute },\n 'icon',\n 'mode',\n 'routerAnimation',\n 'text',\n 'type',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst BACK_BUTTON_PROXY_INPUTS = BACK_BUTTON_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport declare interface IonBackButton extends Components.IonBackButton {}\n\n@ProxyCmp({\n inputs: BACK_BUTTON_PROXY_INPUTS,\n})\n@Directive({\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: BACK_BUTTON_INPUTS,\n})\nexport class IonBackButton {\n protected el: HTMLElement;\n\n constructor(\n @Optional() private routerOutlet: IonRouterOutlet,\n private navCtrl: NavController,\n private config: Config,\n private r: ElementRef,\n protected z: NgZone,\n c: ChangeDetectorRef\n ) {\n c.detach();\n this.el = this.r.nativeElement;\n }\n\n /**\n * @internal\n */\n @HostListener('click', ['$event'])\n onClick(ev: Event): void {\n const defaultHref = this.defaultHref || this.config.get('backButtonDefaultHref');\n\n if (this.routerOutlet?.canGoBack()) {\n this.navCtrl.setDirection('back', undefined, undefined, this.routerAnimation);\n this.routerOutlet.pop();\n ev.preventDefault();\n } else if (defaultHref != null) {\n this.navCtrl.navigateBack(defaultHref, { animation: this.routerAnimation });\n ev.preventDefault();\n }\n }\n}\n"]}
|
|
@@ -18,4 +18,6 @@ export declare class IonNav {
|
|
|
18
18
|
constructor(ref: ElementRef, environmentInjector: EnvironmentInjector, injector: Injector, angularDelegate: AngularDelegate, z: NgZone, c: ChangeDetectorRef);
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonNav, never>;
|
|
20
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IonNav, never, never, { "animated": { "alias": "animated"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "root": { "alias": "root"; "required": false; }; "rootParams": { "alias": "rootParams"; "required": false; }; "swipeGesture": { "alias": "swipeGesture"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
static ngAcceptInputType_animated: boolean | string | null | undefined;
|
|
22
|
+
static ngAcceptInputType_swipeGesture: boolean | string | null | undefined;
|
|
21
23
|
}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { Directive, } from '@angular/core';
|
|
3
|
+
import { nullableBooleanAttribute } from '../../utils/boolean-attribute';
|
|
3
4
|
import { ProxyCmp, proxyOutputs } from '../../utils/proxy';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "../../providers/angular-delegate";
|
|
6
|
-
const NAV_INPUTS = [
|
|
7
|
+
const NAV_INPUTS = [
|
|
8
|
+
{ name: 'animated', transform: nullableBooleanAttribute },
|
|
9
|
+
'animation',
|
|
10
|
+
'root',
|
|
11
|
+
'rootParams',
|
|
12
|
+
{ name: 'swipeGesture', transform: nullableBooleanAttribute },
|
|
13
|
+
];
|
|
14
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
15
|
+
const NAV_PROXY_INPUTS = NAV_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
7
16
|
const NAV_METHODS = [
|
|
8
17
|
'push',
|
|
9
18
|
'insert',
|
|
@@ -30,11 +39,11 @@ let IonNav = class IonNav {
|
|
|
30
39
|
proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);
|
|
31
40
|
}
|
|
32
41
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: i1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
42
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.0", type: IonNav, isStandalone: true, inputs: { animated: ["animated", "animated", nullableBooleanAttribute], animation: "animation", root: "root", rootParams: "rootParams", swipeGesture: ["swipeGesture", "swipeGesture", nullableBooleanAttribute] }, ngImport: i0 });
|
|
34
43
|
};
|
|
35
44
|
IonNav = __decorate([
|
|
36
45
|
ProxyCmp({
|
|
37
|
-
inputs:
|
|
46
|
+
inputs: NAV_PROXY_INPUTS,
|
|
38
47
|
methods: NAV_METHODS,
|
|
39
48
|
})
|
|
40
49
|
], IonNav);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/nav.ts"],"names":[],"mappings":";AAAA,OAAO,EAML,SAAS,GAEV,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;;;AAE3D,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"nav.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/nav.ts"],"names":[],"mappings":";AAAA,OAAO,EAML,SAAS,GAEV,MAAM,eAAe,CA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AIpB,wBAAwB;;AAyChD,MAAM;IARlB,QAAQ,CAAC;QACR,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,WAAW;KACrB,CAAC;GAKW,MAAM,CAelB;;2FAfY,MAAM;kBAJlB,SAAS;mBAAC;oBACT,uEAAuE;oBACvE,MAAM,EAAE,UAAU;iBACnB","sourcesContent":["import {\n ElementRef,\n Injector,\n EnvironmentInjector,\n NgZone,\n ChangeDetectorRef,\n Directive,\n EventEmitter,\n} from '@angular/core';\nimport type { Components } from '@ionic/core';\n\nimport { AngularDelegate } from '../../providers/angular-delegate';\nimport { nullableBooleanAttribute } from '../../utils/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from '../../utils/proxy';\n\nconst NAV_INPUTS = [\n { name: 'animated', transform: nullableBooleanAttribute },\n 'animation',\n 'root',\n 'rootParams',\n { name: 'swipeGesture', transform: nullableBooleanAttribute },\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst NAV_PROXY_INPUTS = NAV_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\nconst NAV_METHODS = [\n 'push',\n 'insert',\n 'insertPages',\n 'pop',\n 'popTo',\n 'popToRoot',\n 'removeIndex',\n 'setRoot',\n 'setPages',\n 'getActive',\n 'getByIndex',\n 'canGoBack',\n 'getPrevious',\n];\n\nexport declare interface IonNav extends Components.IonNav {\n /**\n * Event fired when the nav will change components\n */\n ionNavWillChange: EventEmitter<CustomEvent<void>>;\n /**\n * Event fired when the nav has changed components\n */\n ionNavDidChange: EventEmitter<CustomEvent<void>>;\n}\n\n@ProxyCmp({\n inputs: NAV_PROXY_INPUTS,\n methods: NAV_METHODS,\n})\n@Directive({\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: NAV_INPUTS,\n})\nexport class IonNav {\n protected el: HTMLElement;\n constructor(\n ref: ElementRef,\n environmentInjector: EnvironmentInjector,\n injector: Injector,\n angularDelegate: AngularDelegate,\n protected z: NgZone,\n c: ChangeDetectorRef\n ) {\n c.detach();\n this.el = ref.nativeElement;\n ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);\n proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);\n }\n}\n"]}
|
|
@@ -100,5 +100,7 @@ export declare abstract class IonRouterOutlet implements OnDestroy, OnInit {
|
|
|
100
100
|
private updateActivatedRouteProxy;
|
|
101
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonRouterOutlet, [{ attribute: "name"; }, { attribute: "tabs"; optional: true; }, null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
102
102
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IonRouterOutlet, "ion-router-outlet", ["outlet"], { "animated": { "alias": "animated"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "swipeGesture": { "alias": "swipeGesture"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "stackWillChange": "stackWillChange"; "stackDidChange": "stackDidChange"; "activateEvents": "activate"; "deactivateEvents": "deactivate"; }, never, never, true, never>;
|
|
103
|
+
static ngAcceptInputType_animated: boolean | string | null | undefined;
|
|
104
|
+
static ngAcceptInputType_swipeGesture: boolean | string | null | undefined;
|
|
103
105
|
}
|
|
104
106
|
export declare const provideComponentInputBinding: () => Provider;
|
|
@@ -5,6 +5,7 @@ import { BehaviorSubject, combineLatest, of } from 'rxjs';
|
|
|
5
5
|
import { distinctUntilChanged, filter, switchMap } from 'rxjs/operators';
|
|
6
6
|
import { Config } from '../../providers/config';
|
|
7
7
|
import { NavController } from '../../providers/nav-controller';
|
|
8
|
+
import { nullableBooleanAttribute } from '../../utils/boolean-attribute';
|
|
8
9
|
import { StackController } from './stack-controller';
|
|
9
10
|
import { getUrl, isTabSwitch } from './stack-utils';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
@@ -334,7 +335,7 @@ export class IonRouterOutlet {
|
|
|
334
335
|
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
335
336
|
}
|
|
336
337
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRouterOutlet, deps: [{ token: 'name', attribute: true }, { token: 'tabs', attribute: true, optional: true }, { token: i1.Location }, { token: i0.ElementRef }, { token: i2.Router }, { token: i0.NgZone }, { token: i2.ActivatedRoute }, { token: IonRouterOutlet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
337
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
338
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.0", type: IonRouterOutlet, isStandalone: true, selector: "ion-router-outlet", inputs: { animated: ["animated", "animated", nullableBooleanAttribute], animation: "animation", mode: "mode", swipeGesture: ["swipeGesture", "swipeGesture", nullableBooleanAttribute], name: "name" }, outputs: { stackWillChange: "stackWillChange", stackDidChange: "stackDidChange", activateEvents: "activate", deactivateEvents: "deactivate" }, exportAs: ["outlet"], ngImport: i0 });
|
|
338
339
|
}
|
|
339
340
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
340
341
|
type: Directive,
|
|
@@ -342,7 +343,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
342
343
|
selector: 'ion-router-outlet',
|
|
343
344
|
exportAs: 'outlet',
|
|
344
345
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
345
|
-
inputs: [
|
|
346
|
+
inputs: [
|
|
347
|
+
{ name: 'animated', transform: nullableBooleanAttribute },
|
|
348
|
+
'animation',
|
|
349
|
+
'mode',
|
|
350
|
+
{ name: 'swipeGesture', transform: nullableBooleanAttribute },
|
|
351
|
+
],
|
|
346
352
|
}]
|
|
347
353
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
348
354
|
type: Attribute,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-outlet.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/router-outlet.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,KAAK,EACL,cAAc,EACd,UAAU,EACV,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAiB,MAAM,EAAE,cAAc,EAAE,sBAAsB,EAAE,cAAc,EAAQ,MAAM,iBAAiB,CAAC;AACtH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAc,eAAe,EAAgB,aAAa,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAwD,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;;;;AAE1G,uBAAuB;AAQvB,MAAM,OAAgB,eAAe;IA8EA;IA3EnC,QAAQ,CAA6B;IACrC,aAAa,GAAqB,IAAI,CAAC;IACvC,UAAU,CAAqB;IAEvB,aAAa,CAAW;IACxB,SAAS,CAAkB;IAEnC,sEAAsE;IAC9D,QAAQ,GAAG,IAAI,OAAO,EAAuB,CAAC;IACtD,qFAAqF;IAC7E,sBAAsB,GAAG,IAAI,eAAe,CAA4D,IAAI,CAAC,CAAC;IAE9G,SAAS,GAA6B,IAAI,CAAC;IACnD,gBAAgB;IAChB,IAAI,qBAAqB;QACvB,OAAO,IAAI,CA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0BAA0B;8HAA1B,0BAA0B;;2FAA1B,0BAA0B;kBAD/B,UAAU;;AA2DX,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAa,EAAE;IACzD,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,4BAA4B;QACxC,IAAI,EAAE,CAAC,MAAM,CAAC;KACf,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,4BAA4B,CAAC,MAAe;IACnD;;;OAGG;IACH,IAAK,MAAc,EAAE,4BAA4B,EAAE,CAAC;QAClD,OAAO,IAAI,0BAA0B,EAAE,CAAC;IAC1C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { Location } from '@angular/common';\nimport {\n ComponentRef,\n ElementRef,\n Injector,\n NgZone,\n OnDestroy,\n OnInit,\n ViewContainerRef,\n inject,\n Attribute,\n Directive,\n EventEmitter,\n Optional,\n Output,\n SkipSelf,\n EnvironmentInjector,\n Input,\n InjectionToken,\n Injectable,\n reflectComponentType,\n} from '@angular/core';\nimport type { Provider } from '@angular/core';\nimport { OutletContext, Router, ActivatedRoute, ChildrenOutletContexts, PRIMARY_OUTLET, Data } from '@angular/router';\nimport { componentOnReady } from '@ionic/core/components';\nimport type { AnimationBuilder } from '@ionic/core/components';\nimport { Observable, BehaviorSubject, Subscription, combineLatest, of } from 'rxjs';\nimport { distinctUntilChanged, filter, switchMap } from 'rxjs/operators';\n\nimport { Config } from '../../providers/config';\nimport { NavController } from '../../providers/nav-controller';\n\nimport { StackController } from './stack-controller';\nimport { RouteView, StackDidChangeEvent, StackWillChangeEvent, getUrl, isTabSwitch } from './stack-utils';\n\n// TODO(FW-2827): types\n\n@Directive({\n selector: 'ion-router-outlet',\n exportAs: 'outlet',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['animated', 'animation', 'mode', 'swipeGesture'],\n})\nexport abstract class IonRouterOutlet implements OnDestroy, OnInit {\n abstract outletContent: any;\n\n nativeEl: HTMLIonRouterOutletElement;\n activatedView: RouteView | null = null;\n tabsPrefix: string | undefined;\n\n private _swipeGesture?: boolean;\n private stackCtrl: StackController;\n\n // Maintain map of activated route proxies for each component instance\n private proxyMap = new WeakMap<any, ActivatedRoute>();\n // Keep the latest activated route in a subject for the proxy routes to switch map to\n private currentActivatedRoute$ = new BehaviorSubject<{ component: any; activatedRoute: ActivatedRoute } | null>(null);\n\n private activated: ComponentRef<any> | null = null;\n /** @internal */\n get activatedComponentRef(): ComponentRef<any> | null {\n return this.activated;\n }\n private _activatedRoute: ActivatedRoute | null = null;\n\n /**\n * The name of the outlet\n */\n @Input() name = PRIMARY_OUTLET;\n\n /** @internal */\n @Output() stackWillChange = new EventEmitter<StackWillChangeEvent>();\n /** @internal */\n @Output() stackDidChange = new EventEmitter<StackDidChangeEvent>();\n\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('activate') activateEvents = new EventEmitter<any>();\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('deactivate') deactivateEvents = new EventEmitter<any>();\n\n private parentContexts = inject(ChildrenOutletContexts);\n private location = inject(ViewContainerRef);\n private environmentInjector = inject(EnvironmentInjector);\n private inputBinder = inject(INPUT_BINDER, { optional: true });\n /** @nodoc */\n readonly supportsBindingToComponentInputs = true;\n\n // Ionic providers\n private config = inject(Config);\n private navCtrl = inject(NavController);\n\n set animation(animation: AnimationBuilder) {\n this.nativeEl.animation = animation;\n }\n\n set animated(animated: boolean) {\n this.nativeEl.animated = animated;\n }\n\n set swipeGesture(swipe: boolean) {\n this._swipeGesture = swipe;\n\n this.nativeEl.swipeHandler = swipe\n ? {\n canStart: () => this.stackCtrl.canGoBack(1) && !this.stackCtrl.hasRunningTask(),\n onStart: () => this.stackCtrl.startBackTransition(),\n onEnd: (shouldContinue) => this.stackCtrl.endBackTransition(shouldContinue),\n }\n : undefined;\n\n this.nativeEl.swipeGesture = swipe;\n }\n\n constructor(\n @Attribute('name') name: string,\n @Optional() @Attribute('tabs') tabs: string,\n commonLocation: Location,\n elementRef: ElementRef,\n router: Router,\n zone: NgZone,\n activatedRoute: ActivatedRoute,\n @SkipSelf() @Optional() readonly parentOutlet?: IonRouterOutlet\n ) {\n this.nativeEl = elementRef.nativeElement;\n this.name = name || PRIMARY_OUTLET;\n this.tabsPrefix = tabs === 'true' ? getUrl(router, activatedRoute) : undefined;\n this.stackCtrl = new StackController(this.tabsPrefix, this.nativeEl, router, this.navCtrl, zone, commonLocation);\n this.parentContexts.onChildOutletCreated(this.name, this as any);\n }\n\n ngOnDestroy(): void {\n this.stackCtrl.destroy();\n this.inputBinder?.unsubscribeFromRouteData(this);\n }\n\n getContext(): OutletContext | null {\n return this.parentContexts.getContext(this.name);\n }\n\n ngOnInit(): void {\n this.initializeOutletWithName();\n }\n\n // Note: Ionic deviates from the Angular Router implementation here\n private initializeOutletWithName() {\n if (!this.activated) {\n // If the outlet was not instantiated at the time the route got activated we need to populate\n // the outlet when it is initialized (ie inside a NgIf)\n const context = this.getContext();\n if (context?.route) {\n this.activateWith(context.route, context.injector);\n }\n }\n\n new Promise((resolve) => componentOnReady(this.nativeEl, resolve)).then(() => {\n if (this._swipeGesture === undefined) {\n this.swipeGesture = this.config.getBoolean('swipeBackEnabled', (this.nativeEl as any).mode === 'ios');\n }\n });\n }\n\n get isActivated(): boolean {\n return !!this.activated;\n }\n\n get component(): Record<string, unknown> {\n if (!this.activated) {\n throw new Error('Outlet is not activated');\n }\n return this.activated.instance;\n }\n\n get activatedRoute(): ActivatedRoute {\n if (!this.activated) {\n throw new Error('Outlet is not activated');\n }\n return this._activatedRoute as ActivatedRoute;\n }\n\n get activatedRouteData(): Data {\n if (this._activatedRoute) {\n return this._activatedRoute.snapshot.data;\n }\n return {};\n }\n\n /**\n * Called when the `RouteReuseStrategy` instructs to detach the subtree\n */\n detach(): ComponentRef<any> {\n throw new Error('incompatible reuse strategy');\n }\n\n /**\n * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n attach(_ref: ComponentRef<any>, _activatedRoute: ActivatedRoute): void {\n throw new Error('incompatible reuse strategy');\n }\n\n deactivate(): void {\n if (this.activated) {\n if (this.activatedView) {\n const context = this.getContext()!;\n this.activatedView.savedData = new Map(context.children['contexts']);\n\n /**\n * Angular v11.2.10 introduced a change\n * where this route context is cleared out when\n * a router-outlet is deactivated, However,\n * we need this route information in order to\n * return a user back to the correct tab when\n * leaving and then going back to the tab context.\n */\n const primaryOutlet = this.activatedView.savedData.get('primary');\n if (primaryOutlet && context.route) {\n primaryOutlet.route = { ...context.route };\n }\n\n /**\n * Ensure we are saving the NavigationExtras\n * data otherwise it will be lost\n */\n this.activatedView.savedExtras = {};\n if (context.route) {\n const contextSnapshot = context.route.snapshot;\n\n this.activatedView.savedExtras.queryParams = contextSnapshot.queryParams;\n (this.activatedView.savedExtras.fragment as string | null) = contextSnapshot.fragment;\n }\n }\n const c = this.component;\n this.activatedView = null;\n this.activated = null;\n this._activatedRoute = null;\n this.deactivateEvents.emit(c);\n }\n }\n\n activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector | null): void {\n if (this.isActivated) {\n throw new Error('Cannot activate an already activated outlet');\n }\n this._activatedRoute = activatedRoute;\n\n let cmpRef: any;\n let enteringView = this.stackCtrl.getExistingView(activatedRoute);\n if (enteringView) {\n cmpRef = this.activated = enteringView.ref;\n const saved = enteringView.savedData;\n if (saved) {\n // self-restore\n const context = this.getContext()!;\n context.children['contexts'] = saved;\n }\n // Updated activated route proxy for this component\n this.updateActivatedRouteProxy(cmpRef.instance, activatedRoute);\n } else {\n const snapshot = (activatedRoute as any)._futureSnapshot;\n\n /**\n * Angular 14 introduces a new `loadComponent` property to the route config.\n * This function will assign a `component` property to the route snapshot.\n * We check for the presence of this property to determine if the route is\n * using standalone components.\n */\n const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n\n // We create an activated route proxy object that will maintain future updates for this component\n // over its lifecycle in the stack.\n const component$ = new BehaviorSubject<any>(null);\n const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);\n\n const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);\n\n const component = snapshot.routeConfig!.component ?? snapshot.component;\n\n /**\n * View components need to be added as a child of ion-router-outlet\n * for page transitions and swipe to go back.\n * However, createComponent mounts components as siblings of the\n * ViewContainerRef. As a result, outletContent must reference\n * an ng-container inside of ion-router-outlet and not\n * ion-router-outlet itself.\n */\n cmpRef = this.activated = this.outletContent.createComponent(component, {\n index: this.outletContent.length,\n injector,\n environmentInjector: environmentInjector ?? this.environmentInjector,\n });\n\n // Once the component is created we can push it to our local subject supplied to the proxy\n component$.next(cmpRef.instance);\n\n // Calling `markForCheck` to make sure we will run the change detection when the\n // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.\n\n /**\n * At this point this.activated has been set earlier\n * in this function, so it is guaranteed to be non-null.\n */\n enteringView = this.stackCtrl.createView(this.activated!, activatedRoute);\n\n // Store references to the proxy by component\n this.proxyMap.set(cmpRef.instance, activatedRouteProxy);\n this.currentActivatedRoute$.next({ component: cmpRef.instance, activatedRoute });\n }\n\n this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n\n this.activatedView = enteringView;\n\n /**\n * The top outlet is set prior to the entering view's transition completing,\n * so that when we have nested outlets (e.g. ion-tabs inside an ion-router-outlet),\n * the tabs outlet will be assigned as the top outlet when a view inside tabs is\n * activated.\n *\n * In this scenario, activeWith is called for both the tabs and the root router outlet.\n * To avoid a race condition, we assign the top outlet synchronously.\n */\n this.navCtrl.setTopOutlet(this);\n\n const leavingView = this.stackCtrl.getActiveView();\n\n this.stackWillChange.emit({\n enteringView,\n tabSwitch: isTabSwitch(enteringView, leavingView),\n });\n\n this.stackCtrl.setActive(enteringView).then((data) => {\n this.activateEvents.emit(cmpRef.instance);\n this.stackDidChange.emit(data);\n });\n }\n\n /**\n * Returns `true` if there are pages in the stack to go back.\n */\n canGoBack(deep = 1, stackId?: string): boolean {\n return this.stackCtrl.canGoBack(deep, stackId);\n }\n\n /**\n * Resolves to `true` if it the outlet was able to sucessfully pop the last N pages.\n */\n pop(deep = 1, stackId?: string): Promise<boolean> {\n return this.stackCtrl.pop(deep, stackId);\n }\n\n /**\n * Returns the URL of the active page of each stack.\n */\n getLastUrl(stackId?: string): string | undefined {\n const active = this.stackCtrl.getLastUrl(stackId);\n return active ? active.url : undefined;\n }\n\n /**\n * Returns the RouteView of the active page of each stack.\n * @internal\n */\n getLastRouteView(stackId?: string): RouteView | undefined {\n return this.stackCtrl.getLastUrl(stackId);\n }\n\n /**\n * Returns the root view in the tab stack.\n * @internal\n */\n getRootView(stackId?: string): RouteView | undefined {\n return this.stackCtrl.getRootUrl(stackId);\n }\n\n /**\n * Returns the active stack ID. In the context of ion-tabs, it means the active tab.\n */\n getActiveStackId(): string | undefined {\n return this.stackCtrl.getActiveStackId();\n }\n\n /**\n * Since the activated route can change over the life time of a component in an ion router outlet, we create\n * a proxy so that we can update the values over time as a user navigates back to components already in the stack.\n */\n private createActivatedRouteProxy(component$: Observable<any>, activatedRoute: ActivatedRoute): ActivatedRoute {\n const proxy: any = new ActivatedRoute();\n\n proxy._futureSnapshot = (activatedRoute as any)._futureSnapshot;\n proxy._routerState = (activatedRoute as any)._routerState;\n proxy.snapshot = activatedRoute.snapshot;\n proxy.outlet = activatedRoute.outlet;\n proxy.component = activatedRoute.component;\n\n // Setup wrappers for the observables so consumers don't have to worry about switching to new observables as the state updates\n (proxy as any)._paramMap = this.proxyObservable(component$, 'paramMap');\n (proxy as any)._queryParamMap = this.proxyObservable(component$, 'queryParamMap');\n proxy.url = this.proxyObservable(component$, 'url');\n proxy.params = this.proxyObservable(component$, 'params');\n proxy.queryParams = this.proxyObservable(component$, 'queryParams');\n proxy.fragment = this.proxyObservable(component$, 'fragment');\n proxy.data = this.proxyObservable(component$, 'data');\n\n return proxy as ActivatedRoute;\n }\n\n /**\n * Create a wrapped observable that will switch to the latest activated route matched by the given component\n */\n private proxyObservable(component$: Observable<any>, path: string): Observable<any> {\n return component$.pipe(\n // First wait until the component instance is pushed\n filter((component) => !!component),\n switchMap((component) =>\n this.currentActivatedRoute$.pipe(\n filter((current) => current !== null && current.component === component),\n switchMap((current) => current && (current.activatedRoute as any)[path]),\n distinctUntilChanged()\n )\n )\n );\n }\n\n /**\n * Updates the activated route proxy for the given component to the new incoming router state\n */\n private updateActivatedRouteProxy(component: any, activatedRoute: ActivatedRoute): void {\n const proxy = this.proxyMap.get(component);\n if (!proxy) {\n throw new Error(`Could not find activated route proxy for view`);\n }\n\n (proxy as any)._futureSnapshot = (activatedRoute as any)._futureSnapshot;\n (proxy as any)._routerState = (activatedRoute as any)._routerState;\n proxy.snapshot = activatedRoute.snapshot;\n proxy.outlet = activatedRoute.outlet;\n proxy.component = activatedRoute.component;\n\n this.currentActivatedRoute$.next({ component, activatedRoute });\n }\n}\n\nclass OutletInjector implements Injector {\n constructor(private route: ActivatedRoute, private childContexts: ChildrenOutletContexts, private parent: Injector) {}\n\n get(token: any, notFoundValue?: any): any {\n if (token === ActivatedRoute) {\n return this.route;\n }\n\n if (token === ChildrenOutletContexts) {\n return this.childContexts;\n }\n\n return this.parent.get(token, notFoundValue);\n }\n}\n\n// TODO: FW-4785 - Remove this once Angular 15 support is dropped\nconst INPUT_BINDER = new InjectionToken<RoutedComponentInputBinder>('');\n\n/**\n * Injectable used as a tree-shakable provider for opting in to binding router data to component\n * inputs.\n *\n * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or\n * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,\n * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.\n * Importantly, when an input does not have an item in the route data with a matching key, this\n * input is set to `undefined`. If it were not done this way, the previous information would be\n * retained if the data got removed from the route (i.e. if a query parameter is removed).\n *\n * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that\n * the subscriptions are cleaned up.\n */\n@Injectable()\nclass RoutedComponentInputBinder {\n private outletDataSubscriptions = new Map<IonRouterOutlet, Subscription>();\n\n bindActivatedRouteToOutletComponent(outlet: IonRouterOutlet): void {\n this.unsubscribeFromRouteData(outlet);\n this.subscribeToRouteData(outlet);\n }\n\n unsubscribeFromRouteData(outlet: IonRouterOutlet): void {\n this.outletDataSubscriptions.get(outlet)?.unsubscribe();\n this.outletDataSubscriptions.delete(outlet);\n }\n\n private subscribeToRouteData(outlet: IonRouterOutlet) {\n const { activatedRoute } = outlet;\n const dataSubscription = combineLatest([activatedRoute.queryParams, activatedRoute.params, activatedRoute.data])\n .pipe(\n switchMap(([queryParams, params, data], index) => {\n data = { ...queryParams, ...params, ...data };\n // Get the first result from the data subscription synchronously so it's available to\n // the component as soon as possible (and doesn't require a second change detection).\n if (index === 0) {\n return of(data);\n }\n // Promise.resolve is used to avoid synchronously writing the wrong data when\n // two of the Observables in the `combineLatest` stream emit one after\n // another.\n return Promise.resolve(data);\n })\n )\n .subscribe((data) => {\n // Outlet may have been deactivated or changed names to be associated with a different\n // route\n if (\n !outlet.isActivated ||\n !outlet.activatedComponentRef ||\n outlet.activatedRoute !== activatedRoute ||\n activatedRoute.component === null\n ) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n\n const mirror = reflectComponentType(activatedRoute.component);\n if (!mirror) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n\n for (const { templateName } of mirror.inputs) {\n outlet.activatedComponentRef.setInput(templateName, data[templateName]);\n }\n });\n\n this.outletDataSubscriptions.set(outlet, dataSubscription);\n }\n}\n\nexport const provideComponentInputBinding = (): Provider => {\n return {\n provide: INPUT_BINDER,\n useFactory: componentInputBindingFactory,\n deps: [Router],\n };\n};\n\nfunction componentInputBindingFactory(router?: Router) {\n /**\n * We cast the router to any here, since the componentInputBindingEnabled\n * property is not available until Angular v16.\n */\n if ((router as any)?.componentInputBindingEnabled) {\n return new RoutedComponentInputBinder();\n }\n return null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"router-outlet.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation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,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7D,CAAC;0HAvDG,0BAA0B;8HAA1B,0BAA0B;;2FAA1B,0BAA0B;kBAD/B,UAAU;;AA2DX,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAa,EAAE;IACzD,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,4BAA4B;QACxC,IAAI,EAAE,CAAC,MAAM,CAAC;KACf,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,4BAA4B,CAAC,MAAe;IACnD;;;OAGG;IACH,IAAK,MAAc,EAAE,4BAA4B,EAAE,CAAC;QAClD,OAAO,IAAI,0BAA0B,EAAE,CAAC;IAC1C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { Location } from '@angular/common';\nimport {\n ComponentRef,\n ElementRef,\n Injector,\n NgZone,\n OnDestroy,\n OnInit,\n ViewContainerRef,\n inject,\n Attribute,\n Directive,\n EventEmitter,\n Optional,\n Output,\n SkipSelf,\n EnvironmentInjector,\n Input,\n InjectionToken,\n Injectable,\n reflectComponentType,\n} from '@angular/core';\nimport type { Provider } from '@angular/core';\nimport { OutletContext, Router, ActivatedRoute, ChildrenOutletContexts, PRIMARY_OUTLET, Data } from '@angular/router';\nimport { componentOnReady } from '@ionic/core/components';\nimport type { AnimationBuilder } from '@ionic/core/components';\nimport { Observable, BehaviorSubject, Subscription, combineLatest, of } from 'rxjs';\nimport { distinctUntilChanged, filter, switchMap } from 'rxjs/operators';\n\nimport { Config } from '../../providers/config';\nimport { NavController } from '../../providers/nav-controller';\nimport { nullableBooleanAttribute } from '../../utils/boolean-attribute';\n\nimport { StackController } from './stack-controller';\nimport { RouteView, StackDidChangeEvent, StackWillChangeEvent, getUrl, isTabSwitch } from './stack-utils';\n\n// TODO(FW-2827): types\n\n@Directive({\n selector: 'ion-router-outlet',\n exportAs: 'outlet',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: [\n { name: 'animated', transform: nullableBooleanAttribute },\n 'animation',\n 'mode',\n { name: 'swipeGesture', transform: nullableBooleanAttribute },\n ],\n})\nexport abstract class IonRouterOutlet implements OnDestroy, OnInit {\n abstract outletContent: any;\n\n nativeEl: HTMLIonRouterOutletElement;\n activatedView: RouteView | null = null;\n tabsPrefix: string | undefined;\n\n private _swipeGesture?: boolean;\n private stackCtrl: StackController;\n\n // Maintain map of activated route proxies for each component instance\n private proxyMap = new WeakMap<any, ActivatedRoute>();\n // Keep the latest activated route in a subject for the proxy routes to switch map to\n private currentActivatedRoute$ = new BehaviorSubject<{ component: any; activatedRoute: ActivatedRoute } | null>(null);\n\n private activated: ComponentRef<any> | null = null;\n /** @internal */\n get activatedComponentRef(): ComponentRef<any> | null {\n return this.activated;\n }\n private _activatedRoute: ActivatedRoute | null = null;\n\n /**\n * The name of the outlet\n */\n @Input() name = PRIMARY_OUTLET;\n\n /** @internal */\n @Output() stackWillChange = new EventEmitter<StackWillChangeEvent>();\n /** @internal */\n @Output() stackDidChange = new EventEmitter<StackDidChangeEvent>();\n\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('activate') activateEvents = new EventEmitter<any>();\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('deactivate') deactivateEvents = new EventEmitter<any>();\n\n private parentContexts = inject(ChildrenOutletContexts);\n private location = inject(ViewContainerRef);\n private environmentInjector = inject(EnvironmentInjector);\n private inputBinder = inject(INPUT_BINDER, { optional: true });\n /** @nodoc */\n readonly supportsBindingToComponentInputs = true;\n\n // Ionic providers\n private config = inject(Config);\n private navCtrl = inject(NavController);\n\n set animation(animation: AnimationBuilder) {\n this.nativeEl.animation = animation;\n }\n\n set animated(animated: boolean) {\n this.nativeEl.animated = animated;\n }\n\n set swipeGesture(swipe: boolean) {\n this._swipeGesture = swipe;\n\n this.nativeEl.swipeHandler = swipe\n ? {\n canStart: () => this.stackCtrl.canGoBack(1) && !this.stackCtrl.hasRunningTask(),\n onStart: () => this.stackCtrl.startBackTransition(),\n onEnd: (shouldContinue) => this.stackCtrl.endBackTransition(shouldContinue),\n }\n : undefined;\n\n this.nativeEl.swipeGesture = swipe;\n }\n\n constructor(\n @Attribute('name') name: string,\n @Optional() @Attribute('tabs') tabs: string,\n commonLocation: Location,\n elementRef: ElementRef,\n router: Router,\n zone: NgZone,\n activatedRoute: ActivatedRoute,\n @SkipSelf() @Optional() readonly parentOutlet?: IonRouterOutlet\n ) {\n this.nativeEl = elementRef.nativeElement;\n this.name = name || PRIMARY_OUTLET;\n this.tabsPrefix = tabs === 'true' ? getUrl(router, activatedRoute) : undefined;\n this.stackCtrl = new StackController(this.tabsPrefix, this.nativeEl, router, this.navCtrl, zone, commonLocation);\n this.parentContexts.onChildOutletCreated(this.name, this as any);\n }\n\n ngOnDestroy(): void {\n this.stackCtrl.destroy();\n this.inputBinder?.unsubscribeFromRouteData(this);\n }\n\n getContext(): OutletContext | null {\n return this.parentContexts.getContext(this.name);\n }\n\n ngOnInit(): void {\n this.initializeOutletWithName();\n }\n\n // Note: Ionic deviates from the Angular Router implementation here\n private initializeOutletWithName() {\n if (!this.activated) {\n // If the outlet was not instantiated at the time the route got activated we need to populate\n // the outlet when it is initialized (ie inside a NgIf)\n const context = this.getContext();\n if (context?.route) {\n this.activateWith(context.route, context.injector);\n }\n }\n\n new Promise((resolve) => componentOnReady(this.nativeEl, resolve)).then(() => {\n if (this._swipeGesture === undefined) {\n this.swipeGesture = this.config.getBoolean('swipeBackEnabled', (this.nativeEl as any).mode === 'ios');\n }\n });\n }\n\n get isActivated(): boolean {\n return !!this.activated;\n }\n\n get component(): Record<string, unknown> {\n if (!this.activated) {\n throw new Error('Outlet is not activated');\n }\n return this.activated.instance;\n }\n\n get activatedRoute(): ActivatedRoute {\n if (!this.activated) {\n throw new Error('Outlet is not activated');\n }\n return this._activatedRoute as ActivatedRoute;\n }\n\n get activatedRouteData(): Data {\n if (this._activatedRoute) {\n return this._activatedRoute.snapshot.data;\n }\n return {};\n }\n\n /**\n * Called when the `RouteReuseStrategy` instructs to detach the subtree\n */\n detach(): ComponentRef<any> {\n throw new Error('incompatible reuse strategy');\n }\n\n /**\n * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n attach(_ref: ComponentRef<any>, _activatedRoute: ActivatedRoute): void {\n throw new Error('incompatible reuse strategy');\n }\n\n deactivate(): void {\n if (this.activated) {\n if (this.activatedView) {\n const context = this.getContext()!;\n this.activatedView.savedData = new Map(context.children['contexts']);\n\n /**\n * Angular v11.2.10 introduced a change\n * where this route context is cleared out when\n * a router-outlet is deactivated, However,\n * we need this route information in order to\n * return a user back to the correct tab when\n * leaving and then going back to the tab context.\n */\n const primaryOutlet = this.activatedView.savedData.get('primary');\n if (primaryOutlet && context.route) {\n primaryOutlet.route = { ...context.route };\n }\n\n /**\n * Ensure we are saving the NavigationExtras\n * data otherwise it will be lost\n */\n this.activatedView.savedExtras = {};\n if (context.route) {\n const contextSnapshot = context.route.snapshot;\n\n this.activatedView.savedExtras.queryParams = contextSnapshot.queryParams;\n (this.activatedView.savedExtras.fragment as string | null) = contextSnapshot.fragment;\n }\n }\n const c = this.component;\n this.activatedView = null;\n this.activated = null;\n this._activatedRoute = null;\n this.deactivateEvents.emit(c);\n }\n }\n\n activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector | null): void {\n if (this.isActivated) {\n throw new Error('Cannot activate an already activated outlet');\n }\n this._activatedRoute = activatedRoute;\n\n let cmpRef: any;\n let enteringView = this.stackCtrl.getExistingView(activatedRoute);\n if (enteringView) {\n cmpRef = this.activated = enteringView.ref;\n const saved = enteringView.savedData;\n if (saved) {\n // self-restore\n const context = this.getContext()!;\n context.children['contexts'] = saved;\n }\n // Updated activated route proxy for this component\n this.updateActivatedRouteProxy(cmpRef.instance, activatedRoute);\n } else {\n const snapshot = (activatedRoute as any)._futureSnapshot;\n\n /**\n * Angular 14 introduces a new `loadComponent` property to the route config.\n * This function will assign a `component` property to the route snapshot.\n * We check for the presence of this property to determine if the route is\n * using standalone components.\n */\n const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n\n // We create an activated route proxy object that will maintain future updates for this component\n // over its lifecycle in the stack.\n const component$ = new BehaviorSubject<any>(null);\n const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);\n\n const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);\n\n const component = snapshot.routeConfig!.component ?? snapshot.component;\n\n /**\n * View components need to be added as a child of ion-router-outlet\n * for page transitions and swipe to go back.\n * However, createComponent mounts components as siblings of the\n * ViewContainerRef. As a result, outletContent must reference\n * an ng-container inside of ion-router-outlet and not\n * ion-router-outlet itself.\n */\n cmpRef = this.activated = this.outletContent.createComponent(component, {\n index: this.outletContent.length,\n injector,\n environmentInjector: environmentInjector ?? this.environmentInjector,\n });\n\n // Once the component is created we can push it to our local subject supplied to the proxy\n component$.next(cmpRef.instance);\n\n // Calling `markForCheck` to make sure we will run the change detection when the\n // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.\n\n /**\n * At this point this.activated has been set earlier\n * in this function, so it is guaranteed to be non-null.\n */\n enteringView = this.stackCtrl.createView(this.activated!, activatedRoute);\n\n // Store references to the proxy by component\n this.proxyMap.set(cmpRef.instance, activatedRouteProxy);\n this.currentActivatedRoute$.next({ component: cmpRef.instance, activatedRoute });\n }\n\n this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n\n this.activatedView = enteringView;\n\n /**\n * The top outlet is set prior to the entering view's transition completing,\n * so that when we have nested outlets (e.g. ion-tabs inside an ion-router-outlet),\n * the tabs outlet will be assigned as the top outlet when a view inside tabs is\n * activated.\n *\n * In this scenario, activeWith is called for both the tabs and the root router outlet.\n * To avoid a race condition, we assign the top outlet synchronously.\n */\n this.navCtrl.setTopOutlet(this);\n\n const leavingView = this.stackCtrl.getActiveView();\n\n this.stackWillChange.emit({\n enteringView,\n tabSwitch: isTabSwitch(enteringView, leavingView),\n });\n\n this.stackCtrl.setActive(enteringView).then((data) => {\n this.activateEvents.emit(cmpRef.instance);\n this.stackDidChange.emit(data);\n });\n }\n\n /**\n * Returns `true` if there are pages in the stack to go back.\n */\n canGoBack(deep = 1, stackId?: string): boolean {\n return this.stackCtrl.canGoBack(deep, stackId);\n }\n\n /**\n * Resolves to `true` if it the outlet was able to sucessfully pop the last N pages.\n */\n pop(deep = 1, stackId?: string): Promise<boolean> {\n return this.stackCtrl.pop(deep, stackId);\n }\n\n /**\n * Returns the URL of the active page of each stack.\n */\n getLastUrl(stackId?: string): string | undefined {\n const active = this.stackCtrl.getLastUrl(stackId);\n return active ? active.url : undefined;\n }\n\n /**\n * Returns the RouteView of the active page of each stack.\n * @internal\n */\n getLastRouteView(stackId?: string): RouteView | undefined {\n return this.stackCtrl.getLastUrl(stackId);\n }\n\n /**\n * Returns the root view in the tab stack.\n * @internal\n */\n getRootView(stackId?: string): RouteView | undefined {\n return this.stackCtrl.getRootUrl(stackId);\n }\n\n /**\n * Returns the active stack ID. In the context of ion-tabs, it means the active tab.\n */\n getActiveStackId(): string | undefined {\n return this.stackCtrl.getActiveStackId();\n }\n\n /**\n * Since the activated route can change over the life time of a component in an ion router outlet, we create\n * a proxy so that we can update the values over time as a user navigates back to components already in the stack.\n */\n private createActivatedRouteProxy(component$: Observable<any>, activatedRoute: ActivatedRoute): ActivatedRoute {\n const proxy: any = new ActivatedRoute();\n\n proxy._futureSnapshot = (activatedRoute as any)._futureSnapshot;\n proxy._routerState = (activatedRoute as any)._routerState;\n proxy.snapshot = activatedRoute.snapshot;\n proxy.outlet = activatedRoute.outlet;\n proxy.component = activatedRoute.component;\n\n // Setup wrappers for the observables so consumers don't have to worry about switching to new observables as the state updates\n (proxy as any)._paramMap = this.proxyObservable(component$, 'paramMap');\n (proxy as any)._queryParamMap = this.proxyObservable(component$, 'queryParamMap');\n proxy.url = this.proxyObservable(component$, 'url');\n proxy.params = this.proxyObservable(component$, 'params');\n proxy.queryParams = this.proxyObservable(component$, 'queryParams');\n proxy.fragment = this.proxyObservable(component$, 'fragment');\n proxy.data = this.proxyObservable(component$, 'data');\n\n return proxy as ActivatedRoute;\n }\n\n /**\n * Create a wrapped observable that will switch to the latest activated route matched by the given component\n */\n private proxyObservable(component$: Observable<any>, path: string): Observable<any> {\n return component$.pipe(\n // First wait until the component instance is pushed\n filter((component) => !!component),\n switchMap((component) =>\n this.currentActivatedRoute$.pipe(\n filter((current) => current !== null && current.component === component),\n switchMap((current) => current && (current.activatedRoute as any)[path]),\n distinctUntilChanged()\n )\n )\n );\n }\n\n /**\n * Updates the activated route proxy for the given component to the new incoming router state\n */\n private updateActivatedRouteProxy(component: any, activatedRoute: ActivatedRoute): void {\n const proxy = this.proxyMap.get(component);\n if (!proxy) {\n throw new Error(`Could not find activated route proxy for view`);\n }\n\n (proxy as any)._futureSnapshot = (activatedRoute as any)._futureSnapshot;\n (proxy as any)._routerState = (activatedRoute as any)._routerState;\n proxy.snapshot = activatedRoute.snapshot;\n proxy.outlet = activatedRoute.outlet;\n proxy.component = activatedRoute.component;\n\n this.currentActivatedRoute$.next({ component, activatedRoute });\n }\n}\n\nclass OutletInjector implements Injector {\n constructor(private route: ActivatedRoute, private childContexts: ChildrenOutletContexts, private parent: Injector) {}\n\n get(token: any, notFoundValue?: any): any {\n if (token === ActivatedRoute) {\n return this.route;\n }\n\n if (token === ChildrenOutletContexts) {\n return this.childContexts;\n }\n\n return this.parent.get(token, notFoundValue);\n }\n}\n\n// TODO: FW-4785 - Remove this once Angular 15 support is dropped\nconst INPUT_BINDER = new InjectionToken<RoutedComponentInputBinder>('');\n\n/**\n * Injectable used as a tree-shakable provider for opting in to binding router data to component\n * inputs.\n *\n * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or\n * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,\n * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.\n * Importantly, when an input does not have an item in the route data with a matching key, this\n * input is set to `undefined`. If it were not done this way, the previous information would be\n * retained if the data got removed from the route (i.e. if a query parameter is removed).\n *\n * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that\n * the subscriptions are cleaned up.\n */\n@Injectable()\nclass RoutedComponentInputBinder {\n private outletDataSubscriptions = new Map<IonRouterOutlet, Subscription>();\n\n bindActivatedRouteToOutletComponent(outlet: IonRouterOutlet): void {\n this.unsubscribeFromRouteData(outlet);\n this.subscribeToRouteData(outlet);\n }\n\n unsubscribeFromRouteData(outlet: IonRouterOutlet): void {\n this.outletDataSubscriptions.get(outlet)?.unsubscribe();\n this.outletDataSubscriptions.delete(outlet);\n }\n\n private subscribeToRouteData(outlet: IonRouterOutlet) {\n const { activatedRoute } = outlet;\n const dataSubscription = combineLatest([activatedRoute.queryParams, activatedRoute.params, activatedRoute.data])\n .pipe(\n switchMap(([queryParams, params, data], index) => {\n data = { ...queryParams, ...params, ...data };\n // Get the first result from the data subscription synchronously so it's available to\n // the component as soon as possible (and doesn't require a second change detection).\n if (index === 0) {\n return of(data);\n }\n // Promise.resolve is used to avoid synchronously writing the wrong data when\n // two of the Observables in the `combineLatest` stream emit one after\n // another.\n return Promise.resolve(data);\n })\n )\n .subscribe((data) => {\n // Outlet may have been deactivated or changed names to be associated with a different\n // route\n if (\n !outlet.isActivated ||\n !outlet.activatedComponentRef ||\n outlet.activatedRoute !== activatedRoute ||\n activatedRoute.component === null\n ) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n\n const mirror = reflectComponentType(activatedRoute.component);\n if (!mirror) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n\n for (const { templateName } of mirror.inputs) {\n outlet.activatedComponentRef.setInput(templateName, data[templateName]);\n }\n });\n\n this.outletDataSubscriptions.set(outlet, dataSubscription);\n }\n}\n\nexport const provideComponentInputBinding = (): Provider => {\n return {\n provide: INPUT_BINDER,\n useFactory: componentInputBindingFactory,\n deps: [Router],\n };\n};\n\nfunction componentInputBindingFactory(router?: Router) {\n /**\n * We cast the router to any here, since the componentInputBindingEnabled\n * property is not available until Angular v16.\n */\n if ((router as any)?.componentInputBindingEnabled) {\n return new RoutedComponentInputBinder();\n }\n return null;\n}\n"]}
|
|
@@ -59,4 +59,13 @@ export declare class IonModal {
|
|
|
59
59
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
60
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonModal, never>;
|
|
61
61
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IonModal, "ion-modal", never, { "animated": { "alias": "animated"; "required": false; }; "keepContentsMounted": { "alias": "keepContentsMounted"; "required": false; }; "backdropBreakpoint": { "alias": "backdropBreakpoint"; "required": false; }; "backdropDismiss": { "alias": "backdropDismiss"; "required": false; }; "breakpoints": { "alias": "breakpoints"; "required": false; }; "canDismiss": { "alias": "canDismiss"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "enterAnimation": { "alias": "enterAnimation"; "required": false; }; "expandToScroll": { "alias": "expandToScroll"; "required": false; }; "event": { "alias": "event"; "required": false; }; "focusTrap": { "alias": "focusTrap"; "required": false; }; "handle": { "alias": "handle"; "required": false; }; "handleBehavior": { "alias": "handleBehavior"; "required": false; }; "initialBreakpoint": { "alias": "initialBreakpoint"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "keyboardClose": { "alias": "keyboardClose"; "required": false; }; "leaveAnimation": { "alias": "leaveAnimation"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "presentingElement": { "alias": "presentingElement"; "required": false; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; }; "translucent": { "alias": "translucent"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; }, {}, ["template"], never, true, never>;
|
|
62
|
+
static ngAcceptInputType_animated: boolean | string | null | undefined;
|
|
63
|
+
static ngAcceptInputType_keepContentsMounted: boolean | string | null | undefined;
|
|
64
|
+
static ngAcceptInputType_backdropDismiss: boolean | string | null | undefined;
|
|
65
|
+
static ngAcceptInputType_expandToScroll: boolean | string | null | undefined;
|
|
66
|
+
static ngAcceptInputType_focusTrap: boolean | string | null | undefined;
|
|
67
|
+
static ngAcceptInputType_handle: boolean | string | null | undefined;
|
|
68
|
+
static ngAcceptInputType_isOpen: boolean | string | null | undefined;
|
|
69
|
+
static ngAcceptInputType_keyboardClose: boolean | string | null | undefined;
|
|
70
|
+
static ngAcceptInputType_showBackdrop: boolean | string | null | undefined;
|
|
62
71
|
}
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ContentChild, Directive, TemplateRef, } from '@angular/core';
|
|
3
|
+
import { nullableBooleanAttribute } from '../utils/boolean-attribute';
|
|
3
4
|
import { ProxyCmp, proxyOutputs } from '../utils/proxy';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
const MODAL_INPUTS = [
|
|
6
|
-
'animated',
|
|
7
|
-
'keepContentsMounted',
|
|
7
|
+
{ name: 'animated', transform: nullableBooleanAttribute },
|
|
8
|
+
{ name: 'keepContentsMounted', transform: nullableBooleanAttribute },
|
|
8
9
|
'backdropBreakpoint',
|
|
9
|
-
'backdropDismiss',
|
|
10
|
+
{ name: 'backdropDismiss', transform: nullableBooleanAttribute },
|
|
10
11
|
'breakpoints',
|
|
11
12
|
'canDismiss',
|
|
12
13
|
'cssClass',
|
|
13
14
|
'enterAnimation',
|
|
14
|
-
'expandToScroll',
|
|
15
|
+
{ name: 'expandToScroll', transform: nullableBooleanAttribute },
|
|
15
16
|
'event',
|
|
16
|
-
'focusTrap',
|
|
17
|
-
'handle',
|
|
17
|
+
{ name: 'focusTrap', transform: nullableBooleanAttribute },
|
|
18
|
+
{ name: 'handle', transform: nullableBooleanAttribute },
|
|
18
19
|
'handleBehavior',
|
|
19
20
|
'initialBreakpoint',
|
|
20
|
-
'isOpen',
|
|
21
|
-
'keyboardClose',
|
|
21
|
+
{ name: 'isOpen', transform: nullableBooleanAttribute },
|
|
22
|
+
{ name: 'keyboardClose', transform: nullableBooleanAttribute },
|
|
22
23
|
'leaveAnimation',
|
|
23
24
|
'mode',
|
|
24
25
|
'presentingElement',
|
|
25
|
-
'showBackdrop',
|
|
26
|
+
{ name: 'showBackdrop', transform: nullableBooleanAttribute },
|
|
26
27
|
'translucent',
|
|
27
28
|
'trigger',
|
|
28
29
|
];
|
|
30
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
31
|
+
const MODAL_PROXY_INPUTS = MODAL_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
29
32
|
const MODAL_METHODS = [
|
|
30
33
|
'present',
|
|
31
34
|
'dismiss',
|
|
@@ -67,11 +70,11 @@ let IonModal = class IonModal {
|
|
|
67
70
|
]);
|
|
68
71
|
}
|
|
69
72
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
70
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
73
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.0", type: IonModal, isStandalone: true, selector: "ion-modal", inputs: { animated: ["animated", "animated", nullableBooleanAttribute], keepContentsMounted: ["keepContentsMounted", "keepContentsMounted", nullableBooleanAttribute], backdropBreakpoint: "backdropBreakpoint", backdropDismiss: ["backdropDismiss", "backdropDismiss", nullableBooleanAttribute], breakpoints: "breakpoints", canDismiss: "canDismiss", cssClass: "cssClass", enterAnimation: "enterAnimation", expandToScroll: ["expandToScroll", "expandToScroll", nullableBooleanAttribute], event: "event", focusTrap: ["focusTrap", "focusTrap", nullableBooleanAttribute], handle: ["handle", "handle", nullableBooleanAttribute], handleBehavior: "handleBehavior", initialBreakpoint: "initialBreakpoint", isOpen: ["isOpen", "isOpen", nullableBooleanAttribute], keyboardClose: ["keyboardClose", "keyboardClose", nullableBooleanAttribute], leaveAnimation: "leaveAnimation", mode: "mode", presentingElement: "presentingElement", showBackdrop: ["showBackdrop", "showBackdrop", nullableBooleanAttribute], translucent: "translucent", trigger: "trigger" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
71
74
|
};
|
|
72
75
|
IonModal = __decorate([
|
|
73
76
|
ProxyCmp({
|
|
74
|
-
inputs:
|
|
77
|
+
inputs: MODAL_PROXY_INPUTS,
|
|
75
78
|
methods: MODAL_METHODS,
|
|
76
79
|
})
|
|
77
80
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/common/overlays/modal.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAIT,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAqDxD,MAAM,YAAY,GAAG;IACnB,UAAU;
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/common/overlays/modal.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAIT,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAqDxD,MAAM,YAAY,GAAG;IACnB,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACzD,EAAE,IAAI,EAAE,qBAAqB,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACpE,oBAAoB;IACpB,EAAE,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,wBAAwB,EAAE;IAChE,aAAa;IACb,YAAY;IACZ,UAAU;IACV,gBAAgB;IAChB,EAAE,IAAI,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IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;YAC1C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,CAAC,CAAC,aAAa,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;YAC1B,oBAAoB;YACpB,qBAAqB;YACrB,qBAAqB;YACrB,oBAAoB;YACpB,wBAAwB;YACxB,YAAY;YACZ,aAAa;YACb,aAAa;YACb,YAAY;YACZ,cAAc;YACd,aAAa;YACb,YAAY;SACb,CAAC,CAAC;IACL,CAAC;0HAjCU,QAAQ;8GAAR,QAAQ,0FAnDY,wBAAwB,uEACb,wBAAwB,qGAE5B,wBAAwB,sKAKzB,wBAAwB,yDAE7B,wBAAwB,gCAC3B,wBAAwB,0GAGxB,wBAAwB,qDACjB,wBAAwB,0IAIzB,wBAAwB,mHAkC7C,WAAW;;AAFd,QAAQ;IAfpB,QAAQ,CAAC;QACR,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EAAE,aAAa;KACvB,CAAC;IACF;;;;;OAKG;GAMU,QAAQ,CAkCpB;;2FAlCY,QAAQ;kBALpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,uEAAuE;oBACvE,MAAM,EAAE,YAAY;iBACrB;;sBAGE,YAAY;uBAAC,WAAW,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE","sourcesContent":["import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n ElementRef,\n EventEmitter,\n NgZone,\n TemplateRef,\n} from '@angular/core';\nimport type { Components, ModalBreakpointChangeEventDetail, ModalDragEventDetail } from '@ionic/core/components';\n\nimport { nullableBooleanAttribute } from '../utils/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from '../utils/proxy';\n\nexport declare interface IonModal extends Components.IonModal {\n /**\n * Emitted after the modal has presented.\n **/\n ionModalDidPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted before the modal has presented.\n */\n ionModalWillPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted before the modal has dismissed.\n */\n ionModalWillDismiss: EventEmitter<CustomEvent>;\n /**\n * Emitted after the modal has dismissed.\n */\n ionModalDidDismiss: EventEmitter<CustomEvent>;\n /**\n * Emitted after the modal breakpoint has changed.\n */\n ionBreakpointDidChange: EventEmitter<CustomEvent<ModalBreakpointChangeEventDetail>>;\n /**\n * Emitted when the sheet or card modal has started being dragged.\n */\n ionDragStart: EventEmitter<void>;\n /**\n * Emitted while the sheet or card modal is being dragged.\n */\n ionDragMove: EventEmitter<CustomEvent<ModalDragEventDetail>>;\n /**\n * Emitted when the sheet or card modal has finished being dragged.\n */\n ionDragEnd: EventEmitter<CustomEvent<ModalDragEventDetail>>;\n /**\n * Emitted after the modal has presented. Shorthand for ionModalDidPresent.\n */\n didPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted before the modal has presented. Shorthand for ionModalWillPresent.\n */\n willPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted before the modal has dismissed. Shorthand for ionModalWillDismiss.\n */\n willDismiss: EventEmitter<CustomEvent>;\n /**\n * Emitted after the modal has dismissed. Shorthand for ionModalDidDismiss.\n */\n didDismiss: EventEmitter<CustomEvent>;\n}\n\nconst MODAL_INPUTS = [\n { name: 'animated', transform: nullableBooleanAttribute },\n { name: 'keepContentsMounted', transform: nullableBooleanAttribute },\n 'backdropBreakpoint',\n { name: 'backdropDismiss', transform: nullableBooleanAttribute },\n 'breakpoints',\n 'canDismiss',\n 'cssClass',\n 'enterAnimation',\n { name: 'expandToScroll', transform: nullableBooleanAttribute },\n 'event',\n { name: 'focusTrap', transform: nullableBooleanAttribute },\n { name: 'handle', transform: nullableBooleanAttribute },\n 'handleBehavior',\n 'initialBreakpoint',\n { name: 'isOpen', transform: nullableBooleanAttribute },\n { name: 'keyboardClose', transform: nullableBooleanAttribute },\n 'leaveAnimation',\n 'mode',\n 'presentingElement',\n { name: 'showBackdrop', transform: nullableBooleanAttribute },\n 'translucent',\n 'trigger',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst MODAL_PROXY_INPUTS = MODAL_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\nconst MODAL_METHODS = [\n 'present',\n 'dismiss',\n 'onDidDismiss',\n 'onWillDismiss',\n 'setCurrentBreakpoint',\n 'getCurrentBreakpoint',\n];\n\n@ProxyCmp({\n inputs: MODAL_PROXY_INPUTS,\n methods: MODAL_METHODS,\n})\n/**\n * @Component extends from @Directive\n * so by defining the inputs here we\n * do not need to re-define them for the\n * lazy loaded popover.\n */\n@Directive({\n selector: 'ion-modal',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: MODAL_INPUTS,\n})\nexport class IonModal {\n // TODO(FW-2827): type\n @ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;\n\n isCmpOpen = false;\n\n protected el: HTMLElement;\n\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n this.el = r.nativeElement;\n\n this.el.addEventListener('ionMount', () => {\n this.isCmpOpen = true;\n c.detectChanges();\n });\n this.el.addEventListener('didDismiss', () => {\n this.isCmpOpen = false;\n c.detectChanges();\n });\n proxyOutputs(this, this.el, [\n 'ionModalDidPresent',\n 'ionModalWillPresent',\n 'ionModalWillDismiss',\n 'ionModalDidDismiss',\n 'ionBreakpointDidChange',\n 'didPresent',\n 'willPresent',\n 'willDismiss',\n 'didDismiss',\n 'ionDragStart',\n 'ionDragMove',\n 'ionDragEnd',\n ]);\n }\n}\n"]}
|
|
@@ -43,4 +43,14 @@ export declare class IonPopover {
|
|
|
43
43
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonPopover, never>;
|
|
45
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IonPopover, "ion-popover", never, { "alignment": { "alias": "alignment"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "keepContentsMounted": { "alias": "keepContentsMounted"; "required": false; }; "backdropDismiss": { "alias": "backdropDismiss"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "dismissOnSelect": { "alias": "dismissOnSelect"; "required": false; }; "enterAnimation": { "alias": "enterAnimation"; "required": false; }; "event": { "alias": "event"; "required": false; }; "focusTrap": { "alias": "focusTrap"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "keyboardClose": { "alias": "keyboardClose"; "required": false; }; "leaveAnimation": { "alias": "leaveAnimation"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; }; "translucent": { "alias": "translucent"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; "triggerAction": { "alias": "triggerAction"; "required": false; }; "reference": { "alias": "reference"; "required": false; }; "size": { "alias": "size"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, {}, ["template"], never, true, never>;
|
|
46
|
+
static ngAcceptInputType_animated: boolean | string | null | undefined;
|
|
47
|
+
static ngAcceptInputType_arrow: boolean | string | null | undefined;
|
|
48
|
+
static ngAcceptInputType_keepContentsMounted: boolean | string | null | undefined;
|
|
49
|
+
static ngAcceptInputType_backdropDismiss: boolean | string | null | undefined;
|
|
50
|
+
static ngAcceptInputType_dismissOnSelect: boolean | string | null | undefined;
|
|
51
|
+
static ngAcceptInputType_focusTrap: boolean | string | null | undefined;
|
|
52
|
+
static ngAcceptInputType_isOpen: boolean | string | null | undefined;
|
|
53
|
+
static ngAcceptInputType_keyboardClose: boolean | string | null | undefined;
|
|
54
|
+
static ngAcceptInputType_showBackdrop: boolean | string | null | undefined;
|
|
55
|
+
static ngAcceptInputType_translucent: boolean | string | null | undefined;
|
|
46
56
|
}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ContentChild, Directive, TemplateRef, } from '@angular/core';
|
|
3
|
+
import { nullableBooleanAttribute } from '../utils/boolean-attribute';
|
|
3
4
|
import { ProxyCmp, proxyOutputs } from '../utils/proxy';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
const POPOVER_INPUTS = [
|
|
6
7
|
'alignment',
|
|
7
|
-
'animated',
|
|
8
|
-
'arrow',
|
|
9
|
-
'keepContentsMounted',
|
|
10
|
-
'backdropDismiss',
|
|
8
|
+
{ name: 'animated', transform: nullableBooleanAttribute },
|
|
9
|
+
{ name: 'arrow', transform: nullableBooleanAttribute },
|
|
10
|
+
{ name: 'keepContentsMounted', transform: nullableBooleanAttribute },
|
|
11
|
+
{ name: 'backdropDismiss', transform: nullableBooleanAttribute },
|
|
11
12
|
'cssClass',
|
|
12
|
-
'dismissOnSelect',
|
|
13
|
+
{ name: 'dismissOnSelect', transform: nullableBooleanAttribute },
|
|
13
14
|
'enterAnimation',
|
|
14
15
|
'event',
|
|
15
|
-
'focusTrap',
|
|
16
|
-
'isOpen',
|
|
17
|
-
'keyboardClose',
|
|
16
|
+
{ name: 'focusTrap', transform: nullableBooleanAttribute },
|
|
17
|
+
{ name: 'isOpen', transform: nullableBooleanAttribute },
|
|
18
|
+
{ name: 'keyboardClose', transform: nullableBooleanAttribute },
|
|
18
19
|
'leaveAnimation',
|
|
19
20
|
'mode',
|
|
20
|
-
'showBackdrop',
|
|
21
|
-
'translucent',
|
|
21
|
+
{ name: 'showBackdrop', transform: nullableBooleanAttribute },
|
|
22
|
+
{ name: 'translucent', transform: nullableBooleanAttribute },
|
|
22
23
|
'trigger',
|
|
23
24
|
'triggerAction',
|
|
24
25
|
'reference',
|
|
25
26
|
'size',
|
|
26
27
|
'side',
|
|
27
28
|
];
|
|
29
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
30
|
+
const POPOVER_PROXY_INPUTS = POPOVER_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
28
31
|
const POPOVER_METHODS = ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'];
|
|
29
32
|
let IonPopover = class IonPopover {
|
|
30
33
|
z;
|
|
@@ -55,11 +58,11 @@ let IonPopover = class IonPopover {
|
|
|
55
58
|
]);
|
|
56
59
|
}
|
|
57
60
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
58
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
61
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.0", type: IonPopover, isStandalone: true, selector: "ion-popover", inputs: { alignment: "alignment", animated: ["animated", "animated", nullableBooleanAttribute], arrow: ["arrow", "arrow", nullableBooleanAttribute], keepContentsMounted: ["keepContentsMounted", "keepContentsMounted", nullableBooleanAttribute], backdropDismiss: ["backdropDismiss", "backdropDismiss", nullableBooleanAttribute], cssClass: "cssClass", dismissOnSelect: ["dismissOnSelect", "dismissOnSelect", nullableBooleanAttribute], enterAnimation: "enterAnimation", event: "event", focusTrap: ["focusTrap", "focusTrap", nullableBooleanAttribute], isOpen: ["isOpen", "isOpen", nullableBooleanAttribute], keyboardClose: ["keyboardClose", "keyboardClose", nullableBooleanAttribute], leaveAnimation: "leaveAnimation", mode: "mode", showBackdrop: ["showBackdrop", "showBackdrop", nullableBooleanAttribute], translucent: ["translucent", "translucent", nullableBooleanAttribute], trigger: "trigger", triggerAction: "triggerAction", reference: "reference", size: "size", side: "side" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
59
62
|
};
|
|
60
63
|
IonPopover = __decorate([
|
|
61
64
|
ProxyCmp({
|
|
62
|
-
inputs:
|
|
65
|
+
inputs: POPOVER_PROXY_INPUTS,
|
|
63
66
|
methods: POPOVER_METHODS,
|
|
64
67
|
})
|
|
65
68
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/common/overlays/popover.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAIT,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAqCxD,MAAM,cAAc,GAAG;IACrB,WAAW;IACX,UAAU;
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/common/overlays/popover.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAIT,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAqCxD,MAAM,cAAc,GAAG;IACrB,WAAW;IACX,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACzD,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACtD,EAAE,IAAI,EAAE,qBAAqB,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACpE,EAAE,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,wBAAwB,EAAE;IAChE,UAAU;IACV,EAAE,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,wBAAwB,EAAE;IAChE,gBAAgB;IAChB,OAAO;IACP,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,wBAAwB,EAAE;IAC1D,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,wBAAwB,EAAE;IACvD,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,wBAAwB,EAAE;IAC9D,gBAAgB;IAChB,MAAM;IACN,EAAE,IAAI,EAAE,cA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AC;IACL,CAAC;0HA7BU,UAAU;8GAAV,UAAU,oHA1CU,wBAAwB,6BAC3B,wBAAwB,uEACV,wBAAwB,2DAC5B,wBAAwB,iFAExB,wBAAwB,2FAG9B,wBAAwB,gCAC3B,wBAAwB,qDACjB,wBAAwB,kGAGzB,wBAAwB,+CACzB,wBAAwB,2KA8B5C,WAAW;;AAFd,UAAU;IAftB,QAAQ,CAAC;QACR,MAAM,EAAE,oBAAoB;QAC5B,OAAO,EAAE,eAAe;KACzB,CAAC;IACF;;;;;OAKG;GAMU,UAAU,CA8BtB;;2FA9BY,UAAU;kBALtB,SAAS;mBAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,uEAAuE;oBACvE,MAAM,EAAE,cAAc;iBACvB;;sBAGE,YAAY;uBAAC,WAAW,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE","sourcesContent":["import {\n ChangeDetectorRef,\n ContentChild,\n Directive,\n ElementRef,\n EventEmitter,\n NgZone,\n TemplateRef,\n} from '@angular/core';\nimport type { Components } from '@ionic/core/components';\n\nimport { nullableBooleanAttribute } from '../utils/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from '../utils/proxy';\n\nexport declare interface IonPopover extends Components.IonPopover {\n /**\n * Emitted after the popover has presented.\n */\n ionPopoverDidPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted before the popover has presented.\n */\n ionPopoverWillPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted after the popover has dismissed.\n */\n ionPopoverWillDismiss: EventEmitter<CustomEvent>;\n /**\n * Emitted after the popover has dismissed.\n */\n ionPopoverDidDismiss: EventEmitter<CustomEvent>;\n /**\n * Emitted after the popover has presented. Shorthand for ionPopoverDidPresent.\n */\n didPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted before the popover has presented. Shorthand for ionPopoverWillPresent.\n */\n willPresent: EventEmitter<CustomEvent>;\n /**\n * Emitted after the popover has presented. Shorthand for ionPopoverWillDismiss.\n */\n willDismiss: EventEmitter<CustomEvent>;\n /**\n * Emitted after the popover has dismissed. Shorthand for ionPopoverDidDismiss.\n */\n didDismiss: EventEmitter<CustomEvent>;\n}\n\nconst POPOVER_INPUTS = [\n 'alignment',\n { name: 'animated', transform: nullableBooleanAttribute },\n { name: 'arrow', transform: nullableBooleanAttribute },\n { name: 'keepContentsMounted', transform: nullableBooleanAttribute },\n { name: 'backdropDismiss', transform: nullableBooleanAttribute },\n 'cssClass',\n { name: 'dismissOnSelect', transform: nullableBooleanAttribute },\n 'enterAnimation',\n 'event',\n { name: 'focusTrap', transform: nullableBooleanAttribute },\n { name: 'isOpen', transform: nullableBooleanAttribute },\n { name: 'keyboardClose', transform: nullableBooleanAttribute },\n 'leaveAnimation',\n 'mode',\n { name: 'showBackdrop', transform: nullableBooleanAttribute },\n { name: 'translucent', transform: nullableBooleanAttribute },\n 'trigger',\n 'triggerAction',\n 'reference',\n 'size',\n 'side',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst POPOVER_PROXY_INPUTS = POPOVER_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\nconst POPOVER_METHODS = ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'];\n\n@ProxyCmp({\n inputs: POPOVER_PROXY_INPUTS,\n methods: POPOVER_METHODS,\n})\n/**\n * @Component extends from @Directive\n * so by defining the inputs here we\n * do not need to re-define them for the\n * lazy loaded popover.\n */\n@Directive({\n selector: 'ion-popover',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: POPOVER_INPUTS,\n})\nexport class IonPopover {\n // TODO(FW-2827): type\n @ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;\n\n isCmpOpen = false;\n\n protected el: HTMLElement;\n\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n this.el = r.nativeElement;\n\n this.el.addEventListener('ionMount', () => {\n this.isCmpOpen = true;\n c.detectChanges();\n });\n this.el.addEventListener('didDismiss', () => {\n this.isCmpOpen = false;\n c.detectChanges();\n });\n proxyOutputs(this, this.el, [\n 'ionPopoverDidPresent',\n 'ionPopoverWillPresent',\n 'ionPopoverWillDismiss',\n 'ionPopoverDidDismiss',\n 'didPresent',\n 'willPresent',\n 'willDismiss',\n 'didDismiss',\n ]);\n }\n}\n"]}
|