@ionic/angular 8.8.19-dev.11787076261.138d5922 → 8.8.19-dev.11787083540.1511caf2
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 +7 -9
- package/{dist/common → common}/directives/control-value-accessors/value-accessor.d.ts +1 -1
- package/{dist/common → common}/directives/navigation/back-button.d.ts +1 -1
- package/{dist/common → common}/directives/navigation/nav.d.ts +1 -1
- package/{dist/common → common}/directives/navigation/router-link-delegate.d.ts +2 -2
- package/{dist/common → common}/directives/navigation/router-outlet.d.ts +1 -1
- package/{dist/common → common}/directives/navigation/tabs.d.ts +1 -9
- package/{dist/common → common}/index.d.ts +1 -1
- package/{dist/common → common}/overlays/modal.d.ts +1 -1
- package/{dist/common → common}/overlays/popover.d.ts +1 -1
- package/{dist/common → common}/providers/angular-delegate.d.ts +2 -2
- package/{dist/lazy/directives → directives}/control-value-accessors/boolean-value-accessor.d.ts +1 -1
- package/{dist/lazy/directives → directives}/control-value-accessors/numeric-value-accessor.d.ts +1 -1
- package/{dist/lazy/directives → directives}/control-value-accessors/select-value-accessor.d.ts +1 -1
- package/{dist/lazy/directives → directives}/control-value-accessors/text-value-accessor.d.ts +1 -1
- package/{dist/lazy/directives → directives}/proxies-list.d.ts +1 -1
- package/{dist/lazy/directives → directives}/proxies.d.ts +191 -290
- package/esm2022/app-initialize.mjs +29 -0
- package/esm2022/common/directives/control-value-accessors/index.mjs +2 -0
- package/esm2022/common/directives/control-value-accessors/value-accessor.mjs +153 -0
- package/esm2022/common/directives/navigation/back-button.mjs +61 -0
- package/esm2022/common/directives/navigation/nav-params.mjs +47 -0
- package/esm2022/common/directives/navigation/nav.mjs +49 -0
- package/esm2022/common/directives/navigation/router-link-delegate.mjs +190 -0
- package/esm2022/common/directives/navigation/router-outlet.mjs +480 -0
- package/esm2022/common/directives/navigation/stack-controller.mjs +283 -0
- package/esm2022/common/directives/navigation/stack-utils.mjs +73 -0
- package/esm2022/common/directives/navigation/tabs.mjs +279 -0
- package/esm2022/common/index.mjs +20 -0
- package/esm2022/common/ionic-angular-common.mjs +5 -0
- package/esm2022/common/overlays/modal.mjs +103 -0
- package/esm2022/common/overlays/popover.mjs +91 -0
- package/esm2022/common/providers/angular-delegate.mjs +210 -0
- package/esm2022/common/providers/config.mjs +45 -0
- package/esm2022/common/providers/dom-controller.mjs +45 -0
- package/esm2022/common/providers/menu-controller.mjs +114 -0
- package/esm2022/common/providers/nav-controller.mjs +235 -0
- package/esm2022/common/providers/platform.mjs +258 -0
- package/esm2022/common/types/interfaces.mjs +2 -0
- package/esm2022/common/types/ionic-lifecycle-hooks.mjs +5 -0
- package/esm2022/common/types/overlay-options.mjs +2 -0
- package/esm2022/common/utils/overlay.mjs +26 -0
- package/esm2022/common/utils/proxy.mjs +47 -0
- package/esm2022/common/utils/routing.mjs +55 -0
- package/esm2022/common/utils/util.mjs +10 -0
- package/esm2022/directives/angular-component-lib/utils.mjs +59 -0
- package/esm2022/directives/control-value-accessors/boolean-value-accessor.mjs +42 -0
- package/esm2022/directives/control-value-accessors/index.mjs +5 -0
- package/esm2022/directives/control-value-accessors/numeric-value-accessor.mjs +50 -0
- package/esm2022/directives/control-value-accessors/select-value-accessor.mjs +39 -0
- package/esm2022/directives/control-value-accessors/text-value-accessor.mjs +38 -0
- package/esm2022/directives/navigation/ion-back-button.mjs +24 -0
- package/esm2022/directives/navigation/ion-nav.mjs +21 -0
- package/esm2022/directives/navigation/ion-router-outlet.mjs +52 -0
- package/esm2022/directives/navigation/ion-tabs.mjs +59 -0
- package/esm2022/directives/navigation/router-link-delegate.mjs +32 -0
- package/esm2022/directives/overlays/modal.mjs +22 -0
- package/esm2022/directives/overlays/popover.mjs +18 -0
- package/esm2022/directives/proxies-list.mjs +90 -0
- package/esm2022/directives/proxies.mjs +2373 -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 +2260 -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 +2791 -0
- package/fesm2022/ionic-angular-common.mjs.map +1 -0
- package/fesm2022/ionic-angular-standalone.mjs +3562 -0
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -0
- package/fesm2022/ionic-angular.mjs +3139 -0
- package/fesm2022/ionic-angular.mjs.map +1 -0
- package/{dist/lazy/index.d.ts → index.d.ts} +2 -1
- package/ionic-module.d.ts +28 -0
- package/package.json +30 -172
- package/providers/picker-controller.d.ts +11 -0
- package/{dist/schematics → schematics}/add/index.js +6 -6
- package/schematics/utils/ast.js +32 -0
- package/{dist/schematics → schematics}/utils/config.js +11 -10
- package/{dist/schematics → schematics}/utils/package.js +4 -6
- package/standalone/directives/proxies.d.ts +1035 -0
- package/{dist/standalone → standalone}/index.d.ts +2 -1
- package/standalone/providers/picker-controller.d.ts +11 -0
- package/dist/common/directives/control-value-accessors/index.js +0 -2
- package/dist/common/directives/control-value-accessors/index.js.map +0 -1
- package/dist/common/directives/control-value-accessors/value-accessor.js +0 -152
- package/dist/common/directives/control-value-accessors/value-accessor.js.map +0 -1
- package/dist/common/directives/navigation/back-button.js +0 -61
- package/dist/common/directives/navigation/back-button.js.map +0 -1
- package/dist/common/directives/navigation/nav-params.js +0 -47
- package/dist/common/directives/navigation/nav-params.js.map +0 -1
- package/dist/common/directives/navigation/nav.js +0 -49
- package/dist/common/directives/navigation/nav.js.map +0 -1
- package/dist/common/directives/navigation/router-link-delegate.js +0 -188
- package/dist/common/directives/navigation/router-link-delegate.js.map +0 -1
- package/dist/common/directives/navigation/router-outlet.js +0 -476
- package/dist/common/directives/navigation/router-outlet.js.map +0 -1
- package/dist/common/directives/navigation/stack-controller.js +0 -282
- package/dist/common/directives/navigation/stack-controller.js.map +0 -1
- package/dist/common/directives/navigation/stack-utils.js +0 -73
- package/dist/common/directives/navigation/stack-utils.js.map +0 -1
- package/dist/common/directives/navigation/tabs.js +0 -290
- package/dist/common/directives/navigation/tabs.js.map +0 -1
- package/dist/common/index.js +0 -20
- package/dist/common/index.js.map +0 -1
- package/dist/common/overlays/modal.js +0 -96
- package/dist/common/overlays/modal.js.map +0 -1
- package/dist/common/overlays/popover.js +0 -84
- package/dist/common/overlays/popover.js.map +0 -1
- package/dist/common/providers/angular-delegate.js +0 -229
- package/dist/common/providers/angular-delegate.js.map +0 -1
- package/dist/common/providers/config.js +0 -44
- package/dist/common/providers/config.js.map +0 -1
- package/dist/common/providers/dom-controller.js +0 -44
- package/dist/common/providers/dom-controller.js.map +0 -1
- package/dist/common/providers/menu-controller.js +0 -114
- package/dist/common/providers/menu-controller.js.map +0 -1
- package/dist/common/providers/nav-controller.js +0 -232
- package/dist/common/providers/nav-controller.js.map +0 -1
- package/dist/common/providers/platform.js +0 -256
- package/dist/common/providers/platform.js.map +0 -1
- package/dist/common/types/interfaces.js +0 -2
- package/dist/common/types/interfaces.js.map +0 -1
- package/dist/common/types/ionic-lifecycle-hooks.js +0 -5
- package/dist/common/types/ionic-lifecycle-hooks.js.map +0 -1
- package/dist/common/types/overlay-options.js +0 -2
- package/dist/common/types/overlay-options.js.map +0 -1
- package/dist/common/utils/overlay.js +0 -26
- package/dist/common/utils/overlay.js.map +0 -1
- package/dist/common/utils/proxy.js +0 -47
- package/dist/common/utils/proxy.js.map +0 -1
- package/dist/common/utils/routing.js +0 -55
- package/dist/common/utils/routing.js.map +0 -1
- package/dist/common/utils/util.js +0 -10
- package/dist/common/utils/util.js.map +0 -1
- package/dist/lazy/app-initialize.js +0 -29
- package/dist/lazy/app-initialize.js.map +0 -1
- package/dist/lazy/directives/angular-component-lib/utils.js +0 -59
- package/dist/lazy/directives/angular-component-lib/utils.js.map +0 -1
- package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js +0 -47
- package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js.map +0 -1
- package/dist/lazy/directives/control-value-accessors/index.js +0 -5
- package/dist/lazy/directives/control-value-accessors/index.js.map +0 -1
- package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js +0 -55
- package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js.map +0 -1
- package/dist/lazy/directives/control-value-accessors/select-value-accessor.js +0 -44
- package/dist/lazy/directives/control-value-accessors/select-value-accessor.js.map +0 -1
- package/dist/lazy/directives/control-value-accessors/text-value-accessor.js +0 -43
- package/dist/lazy/directives/control-value-accessors/text-value-accessor.js.map +0 -1
- package/dist/lazy/directives/navigation/ion-back-button.js +0 -24
- package/dist/lazy/directives/navigation/ion-back-button.js.map +0 -1
- package/dist/lazy/directives/navigation/ion-nav.js +0 -21
- package/dist/lazy/directives/navigation/ion-nav.js.map +0 -1
- package/dist/lazy/directives/navigation/ion-router-outlet.js +0 -52
- package/dist/lazy/directives/navigation/ion-router-outlet.js.map +0 -1
- package/dist/lazy/directives/navigation/ion-tabs.js +0 -58
- package/dist/lazy/directives/navigation/ion-tabs.js.map +0 -1
- package/dist/lazy/directives/navigation/router-link-delegate.js +0 -32
- package/dist/lazy/directives/navigation/router-link-delegate.js.map +0 -1
- package/dist/lazy/directives/overlays/modal.js +0 -22
- package/dist/lazy/directives/overlays/modal.js.map +0 -1
- package/dist/lazy/directives/overlays/popover.js +0 -18
- package/dist/lazy/directives/overlays/popover.js.map +0 -1
- package/dist/lazy/directives/proxies-list.js +0 -89
- package/dist/lazy/directives/proxies-list.js.map +0 -1
- package/dist/lazy/directives/proxies.js +0 -2759
- package/dist/lazy/directives/proxies.js.map +0 -1
- package/dist/lazy/directives/validators/index.js +0 -3
- package/dist/lazy/directives/validators/index.js.map +0 -1
- package/dist/lazy/directives/validators/max-validator.js +0 -26
- package/dist/lazy/directives/validators/max-validator.js.map +0 -1
- package/dist/lazy/directives/validators/min-validator.js +0 -26
- package/dist/lazy/directives/validators/min-validator.js.map +0 -1
- package/dist/lazy/index.js +0 -34
- package/dist/lazy/index.js.map +0 -1
- package/dist/lazy/ionic-module.d.ts +0 -38
- package/dist/lazy/ionic-module.js +0 -121
- package/dist/lazy/ionic-module.js.map +0 -1
- package/dist/lazy/providers/action-sheet-controller.js +0 -18
- package/dist/lazy/providers/action-sheet-controller.js.map +0 -1
- package/dist/lazy/providers/alert-controller.js +0 -18
- package/dist/lazy/providers/alert-controller.js.map +0 -1
- package/dist/lazy/providers/animation-controller.js +0 -37
- package/dist/lazy/providers/animation-controller.js.map +0 -1
- package/dist/lazy/providers/gesture-controller.js +0 -32
- package/dist/lazy/providers/gesture-controller.js.map +0 -1
- package/dist/lazy/providers/loading-controller.js +0 -18
- package/dist/lazy/providers/loading-controller.js.map +0 -1
- package/dist/lazy/providers/menu-controller.js +0 -18
- package/dist/lazy/providers/menu-controller.js.map +0 -1
- package/dist/lazy/providers/modal-controller.js +0 -25
- package/dist/lazy/providers/modal-controller.js.map +0 -1
- package/dist/lazy/providers/popover-controller.js +0 -19
- package/dist/lazy/providers/popover-controller.js.map +0 -1
- package/dist/lazy/providers/toast-controller.js +0 -18
- package/dist/lazy/providers/toast-controller.js.map +0 -1
- package/dist/schematics/utils/ast.js +0 -64
- package/dist/standalone/directives/angular-component-lib/utils.js +0 -59
- package/dist/standalone/directives/angular-component-lib/utils.js.map +0 -1
- package/dist/standalone/directives/checkbox.js +0 -75
- package/dist/standalone/directives/checkbox.js.map +0 -1
- package/dist/standalone/directives/datetime.js +0 -93
- package/dist/standalone/directives/datetime.js.map +0 -1
- package/dist/standalone/directives/icon.js +0 -35
- package/dist/standalone/directives/icon.js.map +0 -1
- package/dist/standalone/directives/index.js +0 -13
- package/dist/standalone/directives/index.js.map +0 -1
- package/dist/standalone/directives/input-otp.js +0 -89
- package/dist/standalone/directives/input-otp.js.map +0 -1
- package/dist/standalone/directives/input.js +0 -112
- package/dist/standalone/directives/input.js.map +0 -1
- package/dist/standalone/directives/ion-accordion-group.d.ts +0 -21
- package/dist/standalone/directives/ion-accordion-group.js +0 -40
- package/dist/standalone/directives/ion-accordion-group.js.map +0 -1
- package/dist/standalone/directives/ion-accordion.d.ts +0 -12
- package/dist/standalone/directives/ion-accordion.js +0 -36
- package/dist/standalone/directives/ion-accordion.js.map +0 -1
- package/dist/standalone/directives/ion-action-sheet.d.ts +0 -58
- package/dist/standalone/directives/ion-action-sheet.js +0 -62
- package/dist/standalone/directives/ion-action-sheet.js.map +0 -1
- package/dist/standalone/directives/ion-alert.d.ts +0 -58
- package/dist/standalone/directives/ion-alert.js +0 -62
- package/dist/standalone/directives/ion-alert.js.map +0 -1
- package/dist/standalone/directives/ion-app.d.ts +0 -12
- package/dist/standalone/directives/ion-app.js +0 -36
- package/dist/standalone/directives/ion-app.js.map +0 -1
- package/dist/standalone/directives/ion-avatar.d.ts +0 -12
- package/dist/standalone/directives/ion-avatar.js +0 -35
- package/dist/standalone/directives/ion-avatar.js.map +0 -1
- package/dist/standalone/directives/ion-backdrop.d.ts +0 -18
- package/dist/standalone/directives/ion-backdrop.js +0 -40
- package/dist/standalone/directives/ion-backdrop.js.map +0 -1
- package/dist/standalone/directives/ion-badge.d.ts +0 -12
- package/dist/standalone/directives/ion-badge.js +0 -36
- package/dist/standalone/directives/ion-badge.js.map +0 -1
- package/dist/standalone/directives/ion-breadcrumb.d.ts +0 -23
- package/dist/standalone/directives/ion-breadcrumb.js +0 -43
- package/dist/standalone/directives/ion-breadcrumb.js.map +0 -1
- package/dist/standalone/directives/ion-breadcrumbs.d.ts +0 -19
- package/dist/standalone/directives/ion-breadcrumbs.js +0 -40
- package/dist/standalone/directives/ion-breadcrumbs.js.map +0 -1
- package/dist/standalone/directives/ion-button.d.ts +0 -23
- package/dist/standalone/directives/ion-button.js +0 -43
- package/dist/standalone/directives/ion-button.js.map +0 -1
- package/dist/standalone/directives/ion-buttons.d.ts +0 -12
- package/dist/standalone/directives/ion-buttons.js +0 -36
- package/dist/standalone/directives/ion-buttons.js.map +0 -1
- package/dist/standalone/directives/ion-card-content.d.ts +0 -12
- package/dist/standalone/directives/ion-card-content.js +0 -36
- package/dist/standalone/directives/ion-card-content.js.map +0 -1
- package/dist/standalone/directives/ion-card-header.d.ts +0 -12
- package/dist/standalone/directives/ion-card-header.js +0 -36
- package/dist/standalone/directives/ion-card-header.js.map +0 -1
- package/dist/standalone/directives/ion-card-subtitle.d.ts +0 -12
- package/dist/standalone/directives/ion-card-subtitle.js +0 -36
- package/dist/standalone/directives/ion-card-subtitle.js.map +0 -1
- package/dist/standalone/directives/ion-card-title.d.ts +0 -12
- package/dist/standalone/directives/ion-card-title.js +0 -36
- package/dist/standalone/directives/ion-card-title.js.map +0 -1
- package/dist/standalone/directives/ion-card.d.ts +0 -12
- package/dist/standalone/directives/ion-card.js +0 -36
- package/dist/standalone/directives/ion-card.js.map +0 -1
- package/dist/standalone/directives/ion-chip.d.ts +0 -12
- package/dist/standalone/directives/ion-chip.js +0 -36
- package/dist/standalone/directives/ion-chip.js.map +0 -1
- package/dist/standalone/directives/ion-col.d.ts +0 -12
- package/dist/standalone/directives/ion-col.js +0 -36
- package/dist/standalone/directives/ion-col.js.map +0 -1
- package/dist/standalone/directives/ion-content.d.ts +0 -33
- package/dist/standalone/directives/ion-content.js +0 -47
- package/dist/standalone/directives/ion-content.js.map +0 -1
- package/dist/standalone/directives/ion-datetime-button.d.ts +0 -12
- package/dist/standalone/directives/ion-datetime-button.js +0 -36
- package/dist/standalone/directives/ion-datetime-button.js.map +0 -1
- package/dist/standalone/directives/ion-fab-button.d.ts +0 -23
- package/dist/standalone/directives/ion-fab-button.js +0 -43
- package/dist/standalone/directives/ion-fab-button.js.map +0 -1
- package/dist/standalone/directives/ion-fab-list.d.ts +0 -12
- package/dist/standalone/directives/ion-fab-list.js +0 -36
- package/dist/standalone/directives/ion-fab-list.js.map +0 -1
- package/dist/standalone/directives/ion-fab.d.ts +0 -12
- package/dist/standalone/directives/ion-fab.js +0 -37
- package/dist/standalone/directives/ion-fab.js.map +0 -1
- package/dist/standalone/directives/ion-footer.d.ts +0 -12
- package/dist/standalone/directives/ion-footer.js +0 -36
- package/dist/standalone/directives/ion-footer.js.map +0 -1
- package/dist/standalone/directives/ion-grid.d.ts +0 -12
- package/dist/standalone/directives/ion-grid.js +0 -36
- package/dist/standalone/directives/ion-grid.js.map +0 -1
- package/dist/standalone/directives/ion-header.d.ts +0 -12
- package/dist/standalone/directives/ion-header.js +0 -36
- package/dist/standalone/directives/ion-header.js.map +0 -1
- package/dist/standalone/directives/ion-img.d.ts +0 -28
- package/dist/standalone/directives/ion-img.js +0 -46
- package/dist/standalone/directives/ion-img.js.map +0 -1
- package/dist/standalone/directives/ion-infinite-scroll-content.d.ts +0 -12
- package/dist/standalone/directives/ion-infinite-scroll-content.js +0 -36
- package/dist/standalone/directives/ion-infinite-scroll-content.js.map +0 -1
- package/dist/standalone/directives/ion-infinite-scroll.d.ts +0 -21
- package/dist/standalone/directives/ion-infinite-scroll.js +0 -41
- package/dist/standalone/directives/ion-infinite-scroll.js.map +0 -1
- package/dist/standalone/directives/ion-input-password-toggle.d.ts +0 -12
- package/dist/standalone/directives/ion-input-password-toggle.js +0 -36
- package/dist/standalone/directives/ion-input-password-toggle.js.map +0 -1
- package/dist/standalone/directives/ion-item-divider.d.ts +0 -12
- package/dist/standalone/directives/ion-item-divider.js +0 -36
- package/dist/standalone/directives/ion-item-divider.js.map +0 -1
- package/dist/standalone/directives/ion-item-group.d.ts +0 -12
- package/dist/standalone/directives/ion-item-group.js +0 -35
- package/dist/standalone/directives/ion-item-group.js.map +0 -1
- package/dist/standalone/directives/ion-item-option.d.ts +0 -12
- package/dist/standalone/directives/ion-item-option.js +0 -36
- package/dist/standalone/directives/ion-item-option.js.map +0 -1
- package/dist/standalone/directives/ion-item-options.d.ts +0 -18
- package/dist/standalone/directives/ion-item-options.js +0 -40
- package/dist/standalone/directives/ion-item-options.js.map +0 -1
- package/dist/standalone/directives/ion-item-sliding.d.ts +0 -18
- package/dist/standalone/directives/ion-item-sliding.js +0 -41
- package/dist/standalone/directives/ion-item-sliding.js.map +0 -1
- package/dist/standalone/directives/ion-item.d.ts +0 -12
- package/dist/standalone/directives/ion-item.js +0 -36
- package/dist/standalone/directives/ion-item.js.map +0 -1
- package/dist/standalone/directives/ion-label.d.ts +0 -12
- package/dist/standalone/directives/ion-label.js +0 -36
- package/dist/standalone/directives/ion-label.js.map +0 -1
- package/dist/standalone/directives/ion-list-header.d.ts +0 -12
- package/dist/standalone/directives/ion-list-header.js +0 -36
- package/dist/standalone/directives/ion-list-header.js.map +0 -1
- package/dist/standalone/directives/ion-list.d.ts +0 -12
- package/dist/standalone/directives/ion-list.js +0 -37
- package/dist/standalone/directives/ion-list.js.map +0 -1
- package/dist/standalone/directives/ion-loading.d.ts +0 -58
- package/dist/standalone/directives/ion-loading.js +0 -62
- package/dist/standalone/directives/ion-loading.js.map +0 -1
- package/dist/standalone/directives/ion-menu-button.d.ts +0 -12
- package/dist/standalone/directives/ion-menu-button.js +0 -36
- package/dist/standalone/directives/ion-menu-button.js.map +0 -1
- package/dist/standalone/directives/ion-menu-toggle.d.ts +0 -12
- package/dist/standalone/directives/ion-menu-toggle.js +0 -36
- package/dist/standalone/directives/ion-menu-toggle.js.map +0 -1
- package/dist/standalone/directives/ion-menu.d.ts +0 -34
- package/dist/standalone/directives/ion-menu.js +0 -50
- package/dist/standalone/directives/ion-menu.js.map +0 -1
- package/dist/standalone/directives/ion-nav-link.d.ts +0 -12
- package/dist/standalone/directives/ion-nav-link.js +0 -36
- package/dist/standalone/directives/ion-nav-link.js.map +0 -1
- package/dist/standalone/directives/ion-note.d.ts +0 -12
- package/dist/standalone/directives/ion-note.js +0 -36
- package/dist/standalone/directives/ion-note.js.map +0 -1
- package/dist/standalone/directives/ion-picker-column-option.d.ts +0 -12
- package/dist/standalone/directives/ion-picker-column-option.js +0 -36
- package/dist/standalone/directives/ion-picker-column-option.js.map +0 -1
- package/dist/standalone/directives/ion-picker-column.d.ts +0 -21
- package/dist/standalone/directives/ion-picker-column.js +0 -41
- package/dist/standalone/directives/ion-picker-column.js.map +0 -1
- package/dist/standalone/directives/ion-picker.d.ts +0 -12
- package/dist/standalone/directives/ion-picker.js +0 -36
- package/dist/standalone/directives/ion-picker.js.map +0 -1
- package/dist/standalone/directives/ion-progress-bar.d.ts +0 -12
- package/dist/standalone/directives/ion-progress-bar.js +0 -36
- package/dist/standalone/directives/ion-progress-bar.js.map +0 -1
- package/dist/standalone/directives/ion-radio.d.ts +0 -23
- package/dist/standalone/directives/ion-radio.js +0 -43
- package/dist/standalone/directives/ion-radio.js.map +0 -1
- package/dist/standalone/directives/ion-refresher-content.d.ts +0 -12
- package/dist/standalone/directives/ion-refresher-content.js +0 -36
- package/dist/standalone/directives/ion-refresher-content.js.map +0 -1
- package/dist/standalone/directives/ion-refresher.d.ts +0 -45
- package/dist/standalone/directives/ion-refresher.js +0 -53
- package/dist/standalone/directives/ion-refresher.js.map +0 -1
- package/dist/standalone/directives/ion-reorder-group.d.ts +0 -44
- package/dist/standalone/directives/ion-reorder-group.js +0 -50
- package/dist/standalone/directives/ion-reorder-group.js.map +0 -1
- package/dist/standalone/directives/ion-reorder.d.ts +0 -12
- package/dist/standalone/directives/ion-reorder.js +0 -35
- package/dist/standalone/directives/ion-reorder.js.map +0 -1
- package/dist/standalone/directives/ion-ripple-effect.d.ts +0 -12
- package/dist/standalone/directives/ion-ripple-effect.js +0 -37
- package/dist/standalone/directives/ion-ripple-effect.js.map +0 -1
- package/dist/standalone/directives/ion-row.d.ts +0 -12
- package/dist/standalone/directives/ion-row.js +0 -35
- package/dist/standalone/directives/ion-row.js.map +0 -1
- package/dist/standalone/directives/ion-segment-button.d.ts +0 -12
- package/dist/standalone/directives/ion-segment-button.js +0 -36
- package/dist/standalone/directives/ion-segment-button.js.map +0 -1
- package/dist/standalone/directives/ion-segment-content.d.ts +0 -12
- package/dist/standalone/directives/ion-segment-content.js +0 -35
- package/dist/standalone/directives/ion-segment-content.js.map +0 -1
- package/dist/standalone/directives/ion-segment-view.d.ts +0 -19
- package/dist/standalone/directives/ion-segment-view.js +0 -40
- package/dist/standalone/directives/ion-segment-view.js.map +0 -1
- package/dist/standalone/directives/ion-select-modal.d.ts +0 -12
- package/dist/standalone/directives/ion-select-modal.js +0 -36
- package/dist/standalone/directives/ion-select-modal.js.map +0 -1
- package/dist/standalone/directives/ion-select-option.d.ts +0 -12
- package/dist/standalone/directives/ion-select-option.js +0 -36
- package/dist/standalone/directives/ion-select-option.js.map +0 -1
- package/dist/standalone/directives/ion-skeleton-text.d.ts +0 -12
- package/dist/standalone/directives/ion-skeleton-text.js +0 -36
- package/dist/standalone/directives/ion-skeleton-text.js.map +0 -1
- package/dist/standalone/directives/ion-spinner.d.ts +0 -12
- package/dist/standalone/directives/ion-spinner.js +0 -36
- package/dist/standalone/directives/ion-spinner.js.map +0 -1
- package/dist/standalone/directives/ion-split-pane.d.ts +0 -22
- package/dist/standalone/directives/ion-split-pane.js +0 -40
- package/dist/standalone/directives/ion-split-pane.js.map +0 -1
- package/dist/standalone/directives/ion-tab-bar.d.ts +0 -12
- package/dist/standalone/directives/ion-tab-bar.js +0 -36
- package/dist/standalone/directives/ion-tab-bar.js.map +0 -1
- package/dist/standalone/directives/ion-tab-button.d.ts +0 -12
- package/dist/standalone/directives/ion-tab-button.js +0 -36
- package/dist/standalone/directives/ion-tab-button.js.map +0 -1
- package/dist/standalone/directives/ion-tab.d.ts +0 -12
- package/dist/standalone/directives/ion-tab.js +0 -37
- package/dist/standalone/directives/ion-tab.js.map +0 -1
- package/dist/standalone/directives/ion-text.d.ts +0 -12
- package/dist/standalone/directives/ion-text.js +0 -36
- package/dist/standalone/directives/ion-text.js.map +0 -1
- package/dist/standalone/directives/ion-thumbnail.d.ts +0 -12
- package/dist/standalone/directives/ion-thumbnail.js +0 -35
- package/dist/standalone/directives/ion-thumbnail.js.map +0 -1
- package/dist/standalone/directives/ion-title.d.ts +0 -12
- package/dist/standalone/directives/ion-title.js +0 -36
- package/dist/standalone/directives/ion-title.js.map +0 -1
- package/dist/standalone/directives/ion-toast.d.ts +0 -58
- package/dist/standalone/directives/ion-toast.js +0 -62
- package/dist/standalone/directives/ion-toast.js.map +0 -1
- package/dist/standalone/directives/ion-toolbar.d.ts +0 -12
- package/dist/standalone/directives/ion-toolbar.js +0 -36
- package/dist/standalone/directives/ion-toolbar.js.map +0 -1
- package/dist/standalone/directives/proxies.d.ts +0 -77
- package/dist/standalone/directives/proxies.js +0 -79
- package/dist/standalone/directives/proxies.js.map +0 -1
- package/dist/standalone/directives/radio-group.js +0 -59
- package/dist/standalone/directives/radio-group.js.map +0 -1
- package/dist/standalone/directives/range.js +0 -77
- package/dist/standalone/directives/range.js.map +0 -1
- package/dist/standalone/directives/searchbar.js +0 -81
- package/dist/standalone/directives/searchbar.js.map +0 -1
- package/dist/standalone/directives/segment.js +0 -59
- package/dist/standalone/directives/segment.js.map +0 -1
- package/dist/standalone/directives/select.js +0 -83
- package/dist/standalone/directives/select.js.map +0 -1
- package/dist/standalone/directives/textarea.js +0 -90
- package/dist/standalone/directives/textarea.js.map +0 -1
- package/dist/standalone/directives/toggle.js +0 -75
- package/dist/standalone/directives/toggle.js.map +0 -1
- package/dist/standalone/index.js +0 -24
- package/dist/standalone/index.js.map +0 -1
- package/dist/standalone/navigation/back-button.js +0 -32
- package/dist/standalone/navigation/back-button.js.map +0 -1
- package/dist/standalone/navigation/nav.js +0 -28
- package/dist/standalone/navigation/nav.js.map +0 -1
- package/dist/standalone/navigation/router-link-delegate.js +0 -26
- package/dist/standalone/navigation/router-link-delegate.js.map +0 -1
- package/dist/standalone/navigation/router-outlet.js +0 -60
- package/dist/standalone/navigation/router-outlet.js.map +0 -1
- package/dist/standalone/navigation/tabs.js +0 -57
- package/dist/standalone/navigation/tabs.js.map +0 -1
- package/dist/standalone/overlays/modal.js +0 -32
- package/dist/standalone/overlays/modal.js.map +0 -1
- package/dist/standalone/overlays/popover.js +0 -28
- package/dist/standalone/overlays/popover.js.map +0 -1
- package/dist/standalone/providers/action-sheet-controller.js +0 -20
- package/dist/standalone/providers/action-sheet-controller.js.map +0 -1
- package/dist/standalone/providers/alert-controller.js +0 -20
- package/dist/standalone/providers/alert-controller.js.map +0 -1
- package/dist/standalone/providers/animation-controller.js +0 -37
- package/dist/standalone/providers/animation-controller.js.map +0 -1
- package/dist/standalone/providers/gesture-controller.js +0 -32
- package/dist/standalone/providers/gesture-controller.js.map +0 -1
- package/dist/standalone/providers/ionic-angular.js +0 -38
- package/dist/standalone/providers/ionic-angular.js.map +0 -1
- package/dist/standalone/providers/loading-controller.js +0 -20
- package/dist/standalone/providers/loading-controller.js.map +0 -1
- package/dist/standalone/providers/menu-controller.js +0 -18
- package/dist/standalone/providers/menu-controller.js.map +0 -1
- package/dist/standalone/providers/modal-controller.js +0 -27
- package/dist/standalone/providers/modal-controller.js.map +0 -1
- package/dist/standalone/providers/popover-controller.js +0 -21
- package/dist/standalone/providers/popover-controller.js.map +0 -1
- package/dist/standalone/providers/toast-controller.js +0 -20
- package/dist/standalone/providers/toast-controller.js.map +0 -1
- /package/{dist/lazy/app-initialize.d.ts → app-initialize.d.ts} +0 -0
- /package/{dist/common → common}/directives/control-value-accessors/index.d.ts +0 -0
- /package/{dist/common → common}/directives/navigation/nav-params.d.ts +0 -0
- /package/{dist/common → common}/directives/navigation/stack-controller.d.ts +0 -0
- /package/{dist/common → common}/directives/navigation/stack-utils.d.ts +0 -0
- /package/{dist/common → common}/providers/config.d.ts +0 -0
- /package/{dist/common → common}/providers/dom-controller.d.ts +0 -0
- /package/{dist/common → common}/providers/menu-controller.d.ts +0 -0
- /package/{dist/common → common}/providers/nav-controller.d.ts +0 -0
- /package/{dist/common → common}/providers/platform.d.ts +0 -0
- /package/{dist/common → common}/types/interfaces.d.ts +0 -0
- /package/{dist/common → common}/types/ionic-lifecycle-hooks.d.ts +0 -0
- /package/{dist/common → common}/types/overlay-options.d.ts +0 -0
- /package/{dist/common → common}/utils/overlay.d.ts +0 -0
- /package/{dist/common → common}/utils/proxy.d.ts +0 -0
- /package/{dist/common → common}/utils/routing.d.ts +0 -0
- /package/{dist/common → common}/utils/util.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/angular-component-lib/utils.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/control-value-accessors/index.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/navigation/ion-back-button.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/navigation/ion-nav.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/navigation/ion-router-outlet.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/navigation/ion-tabs.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/navigation/router-link-delegate.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/overlays/modal.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/overlays/popover.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/validators/index.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/validators/max-validator.d.ts +0 -0
- /package/{dist/lazy/directives → directives}/validators/min-validator.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/action-sheet-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/alert-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/animation-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/gesture-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/loading-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/menu-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/modal-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/popover-controller.d.ts +0 -0
- /package/{dist/lazy/providers → providers}/toast-controller.d.ts +0 -0
- /package/{dist/schematics → schematics}/add/files/root/theme/variables.css +0 -0
- /package/{dist/schematics → schematics}/add/schema.json +0 -0
- /package/{dist/schematics → schematics}/collection.json +0 -0
- /package/{dist/standalone → standalone}/directives/angular-component-lib/utils.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/checkbox.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/datetime.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/icon.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/index.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/input-otp.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/input.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/radio-group.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/range.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/searchbar.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/segment.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/select.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/textarea.d.ts +0 -0
- /package/{dist/standalone → standalone}/directives/toggle.d.ts +0 -0
- /package/{dist/standalone → standalone}/navigation/back-button.d.ts +0 -0
- /package/{dist/standalone → standalone}/navigation/nav.d.ts +0 -0
- /package/{dist/standalone → standalone}/navigation/router-link-delegate.d.ts +0 -0
- /package/{dist/standalone → standalone}/navigation/router-outlet.d.ts +0 -0
- /package/{dist/standalone → standalone}/navigation/tabs.d.ts +0 -0
- /package/{dist/standalone → standalone}/overlays/modal.d.ts +0 -0
- /package/{dist/standalone → standalone}/overlays/popover.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/action-sheet-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/alert-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/animation-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/gesture-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/ionic-angular.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/loading-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/menu-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/modal-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/popover-controller.d.ts +0 -0
- /package/{dist/standalone → standalone}/providers/toast-controller.d.ts +0 -0
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
import { ViewContainerRef, inject, Attribute, Directive, EventEmitter, Optional, Output, SkipSelf, EnvironmentInjector, Input, InjectionToken, Injectable, reflectComponentType, } from '@angular/core';
|
|
2
|
-
import { Router, ActivatedRoute, ChildrenOutletContexts, PRIMARY_OUTLET } from '@angular/router';
|
|
3
|
-
import { componentOnReady } from '@ionic/core/components';
|
|
4
|
-
import { BehaviorSubject, combineLatest, of } from 'rxjs';
|
|
5
|
-
import { distinctUntilChanged, filter, switchMap } from 'rxjs/operators';
|
|
6
|
-
import { Config } from '../../providers/config';
|
|
7
|
-
import { NavController } from '../../providers/nav-controller';
|
|
8
|
-
import { StackController } from './stack-controller';
|
|
9
|
-
import { getUrl, isTabSwitch } from './stack-utils';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@angular/common";
|
|
12
|
-
import * as i2 from "@angular/router";
|
|
13
|
-
// TODO(FW-2827): types
|
|
14
|
-
export class IonRouterOutlet {
|
|
15
|
-
parentOutlet;
|
|
16
|
-
nativeEl;
|
|
17
|
-
activatedView = null;
|
|
18
|
-
tabsPrefix;
|
|
19
|
-
_swipeGesture;
|
|
20
|
-
stackCtrl;
|
|
21
|
-
// Maintain map of activated route proxies for each component instance
|
|
22
|
-
proxyMap = new WeakMap();
|
|
23
|
-
// Keep the latest activated route in a subject for the proxy routes to switch map to
|
|
24
|
-
currentActivatedRoute$ = new BehaviorSubject(null);
|
|
25
|
-
activated = null;
|
|
26
|
-
/** @internal */
|
|
27
|
-
get activatedComponentRef() {
|
|
28
|
-
return this.activated;
|
|
29
|
-
}
|
|
30
|
-
_activatedRoute = null;
|
|
31
|
-
/**
|
|
32
|
-
* The name of the outlet
|
|
33
|
-
*/
|
|
34
|
-
name = PRIMARY_OUTLET;
|
|
35
|
-
/** @internal */
|
|
36
|
-
stackWillChange = new EventEmitter();
|
|
37
|
-
/** @internal */
|
|
38
|
-
stackDidChange = new EventEmitter();
|
|
39
|
-
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
40
|
-
activateEvents = new EventEmitter();
|
|
41
|
-
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
42
|
-
deactivateEvents = new EventEmitter();
|
|
43
|
-
parentContexts = inject(ChildrenOutletContexts);
|
|
44
|
-
location = inject(ViewContainerRef);
|
|
45
|
-
environmentInjector = inject(EnvironmentInjector);
|
|
46
|
-
inputBinder = inject(INPUT_BINDER, { optional: true });
|
|
47
|
-
/** @nodoc */
|
|
48
|
-
supportsBindingToComponentInputs = true;
|
|
49
|
-
// Ionic providers
|
|
50
|
-
config = inject(Config);
|
|
51
|
-
navCtrl = inject(NavController);
|
|
52
|
-
set animation(animation) {
|
|
53
|
-
this.nativeEl.animation = animation;
|
|
54
|
-
}
|
|
55
|
-
set animated(animated) {
|
|
56
|
-
this.nativeEl.animated = animated;
|
|
57
|
-
}
|
|
58
|
-
set swipeGesture(swipe) {
|
|
59
|
-
this._swipeGesture = swipe;
|
|
60
|
-
this.nativeEl.swipeHandler = swipe
|
|
61
|
-
? {
|
|
62
|
-
canStart: () => this.stackCtrl.canGoBack(1) && !this.stackCtrl.hasRunningTask(),
|
|
63
|
-
onStart: () => this.stackCtrl.startBackTransition(),
|
|
64
|
-
onEnd: (shouldContinue) => this.stackCtrl.endBackTransition(shouldContinue),
|
|
65
|
-
}
|
|
66
|
-
: undefined;
|
|
67
|
-
this.nativeEl.swipeGesture = swipe;
|
|
68
|
-
}
|
|
69
|
-
constructor(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
|
70
|
-
this.parentOutlet = parentOutlet;
|
|
71
|
-
this.nativeEl = elementRef.nativeElement;
|
|
72
|
-
this.name = name || PRIMARY_OUTLET;
|
|
73
|
-
this.tabsPrefix = tabs === 'true' ? getUrl(router, activatedRoute) : undefined;
|
|
74
|
-
this.stackCtrl = new StackController(this.tabsPrefix, this.nativeEl, router, this.navCtrl, zone, commonLocation);
|
|
75
|
-
this.parentContexts.onChildOutletCreated(this.name, this);
|
|
76
|
-
}
|
|
77
|
-
ngOnDestroy() {
|
|
78
|
-
this.stackCtrl.destroy();
|
|
79
|
-
this.inputBinder?.unsubscribeFromRouteData(this);
|
|
80
|
-
}
|
|
81
|
-
getContext() {
|
|
82
|
-
return this.parentContexts.getContext(this.name);
|
|
83
|
-
}
|
|
84
|
-
ngOnInit() {
|
|
85
|
-
this.initializeOutletWithName();
|
|
86
|
-
}
|
|
87
|
-
// Note: Ionic deviates from the Angular Router implementation here
|
|
88
|
-
initializeOutletWithName() {
|
|
89
|
-
if (!this.activated) {
|
|
90
|
-
// If the outlet was not instantiated at the time the route got activated we need to populate
|
|
91
|
-
// the outlet when it is initialized (ie inside a NgIf)
|
|
92
|
-
const context = this.getContext();
|
|
93
|
-
if (context?.route) {
|
|
94
|
-
this.activateWith(context.route, context.injector);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
new Promise((resolve) => componentOnReady(this.nativeEl, resolve)).then(() => {
|
|
98
|
-
if (this._swipeGesture === undefined) {
|
|
99
|
-
this.swipeGesture = this.config.getBoolean('swipeBackEnabled', this.nativeEl.mode === 'ios');
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
get isActivated() {
|
|
104
|
-
return !!this.activated;
|
|
105
|
-
}
|
|
106
|
-
get component() {
|
|
107
|
-
if (!this.activated) {
|
|
108
|
-
throw new Error('Outlet is not activated');
|
|
109
|
-
}
|
|
110
|
-
return this.activated.instance;
|
|
111
|
-
}
|
|
112
|
-
get activatedRoute() {
|
|
113
|
-
if (!this.activated) {
|
|
114
|
-
throw new Error('Outlet is not activated');
|
|
115
|
-
}
|
|
116
|
-
return this._activatedRoute;
|
|
117
|
-
}
|
|
118
|
-
get activatedRouteData() {
|
|
119
|
-
if (this._activatedRoute) {
|
|
120
|
-
return this._activatedRoute.snapshot.data;
|
|
121
|
-
}
|
|
122
|
-
return {};
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Called when the `RouteReuseStrategy` instructs to detach the subtree
|
|
126
|
-
*/
|
|
127
|
-
detach() {
|
|
128
|
-
throw new Error('incompatible reuse strategy');
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
|
|
132
|
-
*/
|
|
133
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
134
|
-
attach(_ref, _activatedRoute) {
|
|
135
|
-
throw new Error('incompatible reuse strategy');
|
|
136
|
-
}
|
|
137
|
-
deactivate() {
|
|
138
|
-
if (this.activated) {
|
|
139
|
-
if (this.activatedView) {
|
|
140
|
-
const context = this.getContext();
|
|
141
|
-
this.activatedView.savedData = new Map(context.children['contexts']);
|
|
142
|
-
/**
|
|
143
|
-
* Angular v11.2.10 introduced a change
|
|
144
|
-
* where this route context is cleared out when
|
|
145
|
-
* a router-outlet is deactivated, However,
|
|
146
|
-
* we need this route information in order to
|
|
147
|
-
* return a user back to the correct tab when
|
|
148
|
-
* leaving and then going back to the tab context.
|
|
149
|
-
*/
|
|
150
|
-
const primaryOutlet = this.activatedView.savedData.get('primary');
|
|
151
|
-
if (primaryOutlet && context.route) {
|
|
152
|
-
primaryOutlet.route = { ...context.route };
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Ensure we are saving the NavigationExtras
|
|
156
|
-
* data otherwise it will be lost
|
|
157
|
-
*/
|
|
158
|
-
this.activatedView.savedExtras = {};
|
|
159
|
-
if (context.route) {
|
|
160
|
-
const contextSnapshot = context.route.snapshot;
|
|
161
|
-
this.activatedView.savedExtras.queryParams = contextSnapshot.queryParams;
|
|
162
|
-
this.activatedView.savedExtras.fragment = contextSnapshot.fragment;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
const c = this.component;
|
|
166
|
-
this.activatedView = null;
|
|
167
|
-
this.activated = null;
|
|
168
|
-
this._activatedRoute = null;
|
|
169
|
-
this.deactivateEvents.emit(c);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
activateWith(activatedRoute, environmentInjector) {
|
|
173
|
-
if (this.isActivated) {
|
|
174
|
-
throw new Error('Cannot activate an already activated outlet');
|
|
175
|
-
}
|
|
176
|
-
this._activatedRoute = activatedRoute;
|
|
177
|
-
let cmpRef;
|
|
178
|
-
let enteringView = this.stackCtrl.getExistingView(activatedRoute);
|
|
179
|
-
if (enteringView) {
|
|
180
|
-
cmpRef = this.activated = enteringView.ref;
|
|
181
|
-
const saved = enteringView.savedData;
|
|
182
|
-
if (saved) {
|
|
183
|
-
// self-restore
|
|
184
|
-
const context = this.getContext();
|
|
185
|
-
context.children['contexts'] = saved;
|
|
186
|
-
}
|
|
187
|
-
// Updated activated route proxy for this component
|
|
188
|
-
this.updateActivatedRouteProxy(cmpRef.instance, activatedRoute);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
const snapshot = activatedRoute._futureSnapshot;
|
|
192
|
-
/**
|
|
193
|
-
* Angular 14 introduces a new `loadComponent` property to the route config.
|
|
194
|
-
* This function will assign a `component` property to the route snapshot.
|
|
195
|
-
* We check for the presence of this property to determine if the route is
|
|
196
|
-
* using standalone components.
|
|
197
|
-
*/
|
|
198
|
-
const childContexts = this.parentContexts.getOrCreateContext(this.name).children;
|
|
199
|
-
// We create an activated route proxy object that will maintain future updates for this component
|
|
200
|
-
// over its lifecycle in the stack.
|
|
201
|
-
const component$ = new BehaviorSubject(null);
|
|
202
|
-
const activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);
|
|
203
|
-
const injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
|
204
|
-
const component = snapshot.routeConfig.component ?? snapshot.component;
|
|
205
|
-
/**
|
|
206
|
-
* View components need to be added as a child of ion-router-outlet
|
|
207
|
-
* for page transitions and swipe to go back.
|
|
208
|
-
* However, createComponent mounts components as siblings of the
|
|
209
|
-
* ViewContainerRef. As a result, outletContent must reference
|
|
210
|
-
* an ng-container inside of ion-router-outlet and not
|
|
211
|
-
* ion-router-outlet itself.
|
|
212
|
-
*/
|
|
213
|
-
cmpRef = this.activated = this.outletContent.createComponent(component, {
|
|
214
|
-
index: this.outletContent.length,
|
|
215
|
-
injector,
|
|
216
|
-
environmentInjector: environmentInjector ?? this.environmentInjector,
|
|
217
|
-
});
|
|
218
|
-
// Once the component is created we can push it to our local subject supplied to the proxy
|
|
219
|
-
component$.next(cmpRef.instance);
|
|
220
|
-
// Calling `markForCheck` to make sure we will run the change detection when the
|
|
221
|
-
// `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.
|
|
222
|
-
/**
|
|
223
|
-
* At this point this.activated has been set earlier
|
|
224
|
-
* in this function, so it is guaranteed to be non-null.
|
|
225
|
-
*/
|
|
226
|
-
enteringView = this.stackCtrl.createView(this.activated, activatedRoute);
|
|
227
|
-
// Store references to the proxy by component
|
|
228
|
-
this.proxyMap.set(cmpRef.instance, activatedRouteProxy);
|
|
229
|
-
this.currentActivatedRoute$.next({ component: cmpRef.instance, activatedRoute });
|
|
230
|
-
}
|
|
231
|
-
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
232
|
-
this.activatedView = enteringView;
|
|
233
|
-
/**
|
|
234
|
-
* The top outlet is set prior to the entering view's transition completing,
|
|
235
|
-
* so that when we have nested outlets (e.g. ion-tabs inside an ion-router-outlet),
|
|
236
|
-
* the tabs outlet will be assigned as the top outlet when a view inside tabs is
|
|
237
|
-
* activated.
|
|
238
|
-
*
|
|
239
|
-
* In this scenario, activeWith is called for both the tabs and the root router outlet.
|
|
240
|
-
* To avoid a race condition, we assign the top outlet synchronously.
|
|
241
|
-
*/
|
|
242
|
-
this.navCtrl.setTopOutlet(this);
|
|
243
|
-
const leavingView = this.stackCtrl.getActiveView();
|
|
244
|
-
this.stackWillChange.emit({
|
|
245
|
-
enteringView,
|
|
246
|
-
tabSwitch: isTabSwitch(enteringView, leavingView),
|
|
247
|
-
});
|
|
248
|
-
this.stackCtrl.setActive(enteringView).then((data) => {
|
|
249
|
-
this.activateEvents.emit(cmpRef.instance);
|
|
250
|
-
this.stackDidChange.emit(data);
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Returns `true` if there are pages in the stack to go back.
|
|
255
|
-
*/
|
|
256
|
-
canGoBack(deep = 1, stackId) {
|
|
257
|
-
return this.stackCtrl.canGoBack(deep, stackId);
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Resolves to `true` if it the outlet was able to sucessfully pop the last N pages.
|
|
261
|
-
*/
|
|
262
|
-
pop(deep = 1, stackId) {
|
|
263
|
-
return this.stackCtrl.pop(deep, stackId);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Returns the URL of the active page of each stack.
|
|
267
|
-
*/
|
|
268
|
-
getLastUrl(stackId) {
|
|
269
|
-
const active = this.stackCtrl.getLastUrl(stackId);
|
|
270
|
-
return active ? active.url : undefined;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Returns the RouteView of the active page of each stack.
|
|
274
|
-
* @internal
|
|
275
|
-
*/
|
|
276
|
-
getLastRouteView(stackId) {
|
|
277
|
-
return this.stackCtrl.getLastUrl(stackId);
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Returns the root view in the tab stack.
|
|
281
|
-
* @internal
|
|
282
|
-
*/
|
|
283
|
-
getRootView(stackId) {
|
|
284
|
-
return this.stackCtrl.getRootUrl(stackId);
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Returns the active stack ID. In the context of ion-tabs, it means the active tab.
|
|
288
|
-
*/
|
|
289
|
-
getActiveStackId() {
|
|
290
|
-
return this.stackCtrl.getActiveStackId();
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Since the activated route can change over the life time of a component in an ion router outlet, we create
|
|
294
|
-
* a proxy so that we can update the values over time as a user navigates back to components already in the stack.
|
|
295
|
-
*/
|
|
296
|
-
createActivatedRouteProxy(component$, activatedRoute) {
|
|
297
|
-
const proxy = new ActivatedRoute();
|
|
298
|
-
proxy._futureSnapshot = activatedRoute._futureSnapshot;
|
|
299
|
-
proxy._routerState = activatedRoute._routerState;
|
|
300
|
-
proxy.snapshot = activatedRoute.snapshot;
|
|
301
|
-
proxy.outlet = activatedRoute.outlet;
|
|
302
|
-
proxy.component = activatedRoute.component;
|
|
303
|
-
// Setup wrappers for the observables so consumers don't have to worry about switching to new observables as the state updates
|
|
304
|
-
proxy._paramMap = this.proxyObservable(component$, 'paramMap');
|
|
305
|
-
proxy._queryParamMap = this.proxyObservable(component$, 'queryParamMap');
|
|
306
|
-
proxy.url = this.proxyObservable(component$, 'url');
|
|
307
|
-
proxy.params = this.proxyObservable(component$, 'params');
|
|
308
|
-
proxy.queryParams = this.proxyObservable(component$, 'queryParams');
|
|
309
|
-
proxy.fragment = this.proxyObservable(component$, 'fragment');
|
|
310
|
-
proxy.data = this.proxyObservable(component$, 'data');
|
|
311
|
-
return proxy;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Create a wrapped observable that will switch to the latest activated route matched by the given component
|
|
315
|
-
*/
|
|
316
|
-
proxyObservable(component$, path) {
|
|
317
|
-
return component$.pipe(
|
|
318
|
-
// First wait until the component instance is pushed
|
|
319
|
-
filter((component) => !!component), switchMap((component) => this.currentActivatedRoute$.pipe(filter((current) => current !== null && current.component === component), switchMap((current) => current && current.activatedRoute[path]), distinctUntilChanged())));
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Updates the activated route proxy for the given component to the new incoming router state
|
|
323
|
-
*/
|
|
324
|
-
updateActivatedRouteProxy(component, activatedRoute) {
|
|
325
|
-
const proxy = this.proxyMap.get(component);
|
|
326
|
-
if (!proxy) {
|
|
327
|
-
throw new Error(`Could not find activated route proxy for view`);
|
|
328
|
-
}
|
|
329
|
-
proxy._futureSnapshot = activatedRoute._futureSnapshot;
|
|
330
|
-
proxy._routerState = activatedRoute._routerState;
|
|
331
|
-
proxy.snapshot = activatedRoute.snapshot;
|
|
332
|
-
proxy.outlet = activatedRoute.outlet;
|
|
333
|
-
proxy.component = activatedRoute.component;
|
|
334
|
-
this.currentActivatedRoute$.next({ component, activatedRoute });
|
|
335
|
-
}
|
|
336
|
-
/** @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: "14.0.0", version: "22.0.0", type: IonRouterOutlet, isStandalone: true, 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 });
|
|
338
|
-
}
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRouterOutlet, decorators: [{
|
|
340
|
-
type: Directive,
|
|
341
|
-
args: [{
|
|
342
|
-
selector: 'ion-router-outlet',
|
|
343
|
-
exportAs: 'outlet',
|
|
344
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
345
|
-
inputs: ['animated', 'animation', 'mode', 'swipeGesture'],
|
|
346
|
-
}]
|
|
347
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
348
|
-
type: Attribute,
|
|
349
|
-
args: ['name']
|
|
350
|
-
}] }, { type: undefined, decorators: [{
|
|
351
|
-
type: Optional
|
|
352
|
-
}, {
|
|
353
|
-
type: Attribute,
|
|
354
|
-
args: ['tabs']
|
|
355
|
-
}] }, { type: i1.Location }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.NgZone }, { type: i2.ActivatedRoute }, { type: IonRouterOutlet, decorators: [{
|
|
356
|
-
type: SkipSelf
|
|
357
|
-
}, {
|
|
358
|
-
type: Optional
|
|
359
|
-
}] }], propDecorators: { name: [{
|
|
360
|
-
type: Input
|
|
361
|
-
}], stackWillChange: [{
|
|
362
|
-
type: Output
|
|
363
|
-
}], stackDidChange: [{
|
|
364
|
-
type: Output
|
|
365
|
-
}], activateEvents: [{
|
|
366
|
-
type: Output,
|
|
367
|
-
args: ['activate']
|
|
368
|
-
}], deactivateEvents: [{
|
|
369
|
-
type: Output,
|
|
370
|
-
args: ['deactivate']
|
|
371
|
-
}] } });
|
|
372
|
-
class OutletInjector {
|
|
373
|
-
route;
|
|
374
|
-
childContexts;
|
|
375
|
-
parent;
|
|
376
|
-
constructor(route, childContexts, parent) {
|
|
377
|
-
this.route = route;
|
|
378
|
-
this.childContexts = childContexts;
|
|
379
|
-
this.parent = parent;
|
|
380
|
-
}
|
|
381
|
-
get(token, notFoundValue) {
|
|
382
|
-
if (token === ActivatedRoute) {
|
|
383
|
-
return this.route;
|
|
384
|
-
}
|
|
385
|
-
if (token === ChildrenOutletContexts) {
|
|
386
|
-
return this.childContexts;
|
|
387
|
-
}
|
|
388
|
-
return this.parent.get(token, notFoundValue);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
// TODO: FW-4785 - Remove this once Angular 15 support is dropped
|
|
392
|
-
const INPUT_BINDER = new InjectionToken('');
|
|
393
|
-
/**
|
|
394
|
-
* Injectable used as a tree-shakable provider for opting in to binding router data to component
|
|
395
|
-
* inputs.
|
|
396
|
-
*
|
|
397
|
-
* The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or
|
|
398
|
-
* activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,
|
|
399
|
-
* queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.
|
|
400
|
-
* Importantly, when an input does not have an item in the route data with a matching key, this
|
|
401
|
-
* input is set to `undefined`. If it were not done this way, the previous information would be
|
|
402
|
-
* retained if the data got removed from the route (i.e. if a query parameter is removed).
|
|
403
|
-
*
|
|
404
|
-
* The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that
|
|
405
|
-
* the subscriptions are cleaned up.
|
|
406
|
-
*/
|
|
407
|
-
class RoutedComponentInputBinder {
|
|
408
|
-
outletDataSubscriptions = new Map();
|
|
409
|
-
bindActivatedRouteToOutletComponent(outlet) {
|
|
410
|
-
this.unsubscribeFromRouteData(outlet);
|
|
411
|
-
this.subscribeToRouteData(outlet);
|
|
412
|
-
}
|
|
413
|
-
unsubscribeFromRouteData(outlet) {
|
|
414
|
-
this.outletDataSubscriptions.get(outlet)?.unsubscribe();
|
|
415
|
-
this.outletDataSubscriptions.delete(outlet);
|
|
416
|
-
}
|
|
417
|
-
subscribeToRouteData(outlet) {
|
|
418
|
-
const { activatedRoute } = outlet;
|
|
419
|
-
const dataSubscription = combineLatest([activatedRoute.queryParams, activatedRoute.params, activatedRoute.data])
|
|
420
|
-
.pipe(switchMap(([queryParams, params, data], index) => {
|
|
421
|
-
data = { ...queryParams, ...params, ...data };
|
|
422
|
-
// Get the first result from the data subscription synchronously so it's available to
|
|
423
|
-
// the component as soon as possible (and doesn't require a second change detection).
|
|
424
|
-
if (index === 0) {
|
|
425
|
-
return of(data);
|
|
426
|
-
}
|
|
427
|
-
// Promise.resolve is used to avoid synchronously writing the wrong data when
|
|
428
|
-
// two of the Observables in the `combineLatest` stream emit one after
|
|
429
|
-
// another.
|
|
430
|
-
return Promise.resolve(data);
|
|
431
|
-
}))
|
|
432
|
-
.subscribe((data) => {
|
|
433
|
-
// Outlet may have been deactivated or changed names to be associated with a different
|
|
434
|
-
// route
|
|
435
|
-
if (!outlet.isActivated ||
|
|
436
|
-
!outlet.activatedComponentRef ||
|
|
437
|
-
outlet.activatedRoute !== activatedRoute ||
|
|
438
|
-
activatedRoute.component === null) {
|
|
439
|
-
this.unsubscribeFromRouteData(outlet);
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
const mirror = reflectComponentType(activatedRoute.component);
|
|
443
|
-
if (!mirror) {
|
|
444
|
-
this.unsubscribeFromRouteData(outlet);
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
for (const { templateName } of mirror.inputs) {
|
|
448
|
-
outlet.activatedComponentRef.setInput(templateName, data[templateName]);
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
452
|
-
}
|
|
453
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
454
|
-
/** @nocollapse */ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RoutedComponentInputBinder });
|
|
455
|
-
}
|
|
456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
457
|
-
type: Injectable
|
|
458
|
-
}] });
|
|
459
|
-
export const provideComponentInputBinding = () => {
|
|
460
|
-
return {
|
|
461
|
-
provide: INPUT_BINDER,
|
|
462
|
-
useFactory: componentInputBindingFactory,
|
|
463
|
-
deps: [Router],
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
function componentInputBindingFactory(router) {
|
|
467
|
-
/**
|
|
468
|
-
* We cast the router to any here, since the componentInputBindingEnabled
|
|
469
|
-
* property is not available until Angular v16.
|
|
470
|
-
*/
|
|
471
|
-
if (router?.componentInputBindingEnabled) {
|
|
472
|
-
return new RoutedComponentInputBinder();
|
|
473
|
-
}
|
|
474
|
-
return null;
|
|
475
|
-
}
|
|
476
|
-
//# sourceMappingURL=router-outlet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,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AY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC,CAAC,CAAC;QAEL,IAAI,CAAC,uBAAuB,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';\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"]}
|