@ionic/angular 8.8.18-dev.11786108988.1fd94742 → 8.8.18-dev.11786355346.19605941
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -9
- package/{dist/lazy/app-initialize.d.ts → app-initialize.d.ts} +0 -1
- package/{dist/common/directives/control-value-accessors/index.js → common/directives/control-value-accessors/index.d.ts} +0 -1
- package/{dist/common → common}/directives/control-value-accessors/value-accessor.d.ts +1 -2
- package/{dist/common → common}/directives/navigation/back-button.d.ts +1 -2
- package/{dist/common → common}/directives/navigation/nav-params.d.ts +0 -1
- package/{dist/common → common}/directives/navigation/nav.d.ts +1 -2
- package/{dist/common → common}/directives/navigation/router-link-delegate.d.ts +2 -3
- package/{dist/common → common}/directives/navigation/router-outlet.d.ts +1 -2
- package/{dist/common → common}/directives/navigation/stack-controller.d.ts +0 -1
- package/{dist/common → common}/directives/navigation/stack-utils.d.ts +0 -1
- package/{dist/common → common}/directives/navigation/tabs.d.ts +1 -10
- package/{dist/common → common}/index.d.ts +1 -2
- package/{dist/common → common}/overlays/modal.d.ts +1 -2
- package/{dist/common → common}/overlays/popover.d.ts +1 -2
- package/{dist/common → common}/providers/angular-delegate.d.ts +2 -3
- package/{dist/common → common}/providers/config.d.ts +0 -1
- package/{dist/common → common}/providers/dom-controller.d.ts +0 -1
- package/{dist/common → common}/providers/menu-controller.d.ts +0 -1
- package/{dist/common → common}/providers/nav-controller.d.ts +0 -1
- package/{dist/common → common}/providers/platform.d.ts +0 -1
- package/{dist/common → common}/types/interfaces.d.ts +0 -1
- package/{dist/common → common}/types/ionic-lifecycle-hooks.d.ts +0 -1
- package/{dist/common → common}/types/overlay-options.d.ts +0 -1
- package/{dist/common → common}/utils/overlay.d.ts +0 -1
- package/{dist/common → common}/utils/proxy.d.ts +0 -1
- package/{dist/common → common}/utils/routing.d.ts +0 -1
- package/{dist/common → common}/utils/util.d.ts +0 -1
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic/bundle.ionic.css +1 -0
- package/css/ionic/bundle.ionic.css.map +1 -0
- package/css/ionic/core.ionic.css +1 -0
- package/css/ionic/core.ionic.css.map +1 -0
- package/css/ionic/global.bundle.ionic.css +1 -0
- package/css/ionic/global.bundle.ionic.css.map +1 -0
- package/css/ionic/ionic-swiper.ionic.css +1 -0
- package/css/ionic/ionic-swiper.ionic.css.map +1 -0
- package/css/ionic/link.ionic.css +1 -0
- package/css/ionic/link.ionic.css.map +1 -0
- package/css/ionic/structure.ionic.css +1 -0
- package/css/ionic/structure.ionic.css.map +1 -0
- package/css/ionic/typography.ionic.css +1 -0
- package/css/ionic/typography.ionic.css.map +1 -0
- package/css/ionic/utils.bundle.ionic.css +1 -0
- package/css/ionic/utils.bundle.ionic.css.map +1 -0
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/{dist/lazy/directives → directives}/angular-component-lib/utils.d.ts +0 -1
- package/{dist/lazy/directives → directives}/control-value-accessors/boolean-value-accessor.d.ts +1 -2
- package/{dist/lazy/directives/control-value-accessors/index.js → directives/control-value-accessors/index.d.ts} +0 -1
- package/{dist/lazy/directives → directives}/control-value-accessors/numeric-value-accessor.d.ts +1 -2
- package/{dist/lazy/directives → directives}/control-value-accessors/select-value-accessor.d.ts +1 -2
- package/{dist/lazy/directives → directives}/control-value-accessors/text-value-accessor.d.ts +1 -2
- package/{dist/lazy/directives → directives}/navigation/ion-back-button.d.ts +0 -1
- package/{dist/lazy/directives → directives}/navigation/ion-nav.d.ts +0 -1
- package/{dist/lazy/directives → directives}/navigation/ion-router-outlet.d.ts +0 -1
- package/{dist/lazy/directives → directives}/navigation/ion-tabs.d.ts +0 -1
- package/{dist/lazy/directives → directives}/navigation/router-link-delegate.d.ts +0 -1
- package/{dist/lazy/directives → directives}/overlays/modal.d.ts +0 -1
- package/{dist/lazy/directives → directives}/overlays/popover.d.ts +0 -1
- package/directives/proxies-list.d.ts +2 -0
- package/{dist/lazy/directives → directives}/proxies.d.ts +269 -341
- package/{dist/lazy/directives/validators/index.js → directives/validators/index.d.ts} +0 -1
- package/{dist/lazy/directives → directives}/validators/max-validator.d.ts +0 -1
- package/{dist/lazy/directives → directives}/validators/min-validator.d.ts +0 -1
- 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 +93 -0
- package/esm2022/directives/proxies.mjs +2465 -0
- package/esm2022/directives/validators/index.mjs +3 -0
- package/esm2022/directives/validators/max-validator.mjs +27 -0
- package/esm2022/directives/validators/min-validator.mjs +27 -0
- package/esm2022/index.mjs +32 -0
- package/esm2022/ionic-angular.mjs +5 -0
- package/esm2022/ionic-module.mjs +111 -0
- package/esm2022/providers/action-sheet-controller.mjs +19 -0
- package/esm2022/providers/alert-controller.mjs +19 -0
- package/esm2022/providers/animation-controller.mjs +38 -0
- package/esm2022/providers/gesture-controller.mjs +33 -0
- package/esm2022/providers/loading-controller.mjs +19 -0
- package/esm2022/providers/menu-controller.mjs +19 -0
- package/esm2022/providers/modal-controller.mjs +26 -0
- package/esm2022/providers/picker-controller.mjs +22 -0
- package/esm2022/providers/popover-controller.mjs +19 -0
- package/esm2022/providers/toast-controller.mjs +19 -0
- package/esm2022/standalone/directives/angular-component-lib/utils.mjs +59 -0
- package/esm2022/standalone/directives/checkbox.mjs +76 -0
- package/esm2022/standalone/directives/datetime.mjs +95 -0
- package/esm2022/standalone/directives/icon.mjs +35 -0
- package/esm2022/standalone/directives/index.mjs +13 -0
- package/esm2022/standalone/directives/input-otp.mjs +90 -0
- package/esm2022/standalone/directives/input.mjs +113 -0
- package/esm2022/standalone/directives/proxies.mjs +2356 -0
- package/esm2022/standalone/directives/radio-group.mjs +60 -0
- package/esm2022/standalone/directives/range.mjs +78 -0
- package/esm2022/standalone/directives/searchbar.mjs +82 -0
- package/esm2022/standalone/directives/segment.mjs +60 -0
- package/esm2022/standalone/directives/select.mjs +84 -0
- package/esm2022/standalone/directives/textarea.mjs +91 -0
- package/esm2022/standalone/directives/toggle.mjs +76 -0
- package/esm2022/standalone/index.mjs +25 -0
- package/esm2022/standalone/ionic-angular-standalone.mjs +5 -0
- package/esm2022/standalone/navigation/back-button.mjs +32 -0
- package/esm2022/standalone/navigation/nav.mjs +28 -0
- package/esm2022/standalone/navigation/router-link-delegate.mjs +28 -0
- package/esm2022/standalone/navigation/router-outlet.mjs +60 -0
- package/esm2022/standalone/navigation/tabs.mjs +58 -0
- package/esm2022/standalone/overlays/modal.mjs +32 -0
- package/esm2022/standalone/overlays/popover.mjs +28 -0
- package/esm2022/standalone/providers/action-sheet-controller.mjs +21 -0
- package/esm2022/standalone/providers/alert-controller.mjs +21 -0
- package/esm2022/standalone/providers/animation-controller.mjs +38 -0
- package/esm2022/standalone/providers/gesture-controller.mjs +33 -0
- package/esm2022/standalone/providers/ionic-angular.mjs +38 -0
- package/esm2022/standalone/providers/loading-controller.mjs +21 -0
- package/esm2022/standalone/providers/menu-controller.mjs +19 -0
- package/esm2022/standalone/providers/modal-controller.mjs +28 -0
- package/esm2022/standalone/providers/picker-controller.mjs +24 -0
- package/esm2022/standalone/providers/popover-controller.mjs +21 -0
- package/esm2022/standalone/providers/toast-controller.mjs +21 -0
- package/fesm2022/ionic-angular-common.mjs +2791 -0
- package/fesm2022/ionic-angular-common.mjs.map +1 -0
- package/fesm2022/ionic-angular-standalone.mjs +3655 -0
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -0
- package/fesm2022/ionic-angular.mjs +3231 -0
- package/fesm2022/ionic-angular.mjs.map +1 -0
- package/{dist/lazy/index.d.ts → index.d.ts} +2 -2
- package/ionic-module.d.ts +28 -0
- package/package.json +30 -174
- package/{dist/lazy/providers → providers}/action-sheet-controller.d.ts +0 -1
- package/{dist/lazy/providers → providers}/alert-controller.d.ts +0 -1
- package/{dist/lazy/providers → providers}/animation-controller.d.ts +0 -1
- package/{dist/lazy/providers → providers}/gesture-controller.d.ts +0 -1
- package/{dist/lazy/providers → providers}/loading-controller.d.ts +0 -1
- package/{dist/lazy/providers → providers}/menu-controller.d.ts +0 -1
- package/{dist/standalone/providers → providers}/modal-controller.d.ts +0 -1
- package/providers/picker-controller.d.ts +11 -0
- package/{dist/lazy/providers → providers}/popover-controller.d.ts +0 -1
- package/{dist/lazy/providers → providers}/toast-controller.d.ts +0 -1
- 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/{dist/standalone → standalone}/directives/angular-component-lib/utils.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/checkbox.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/datetime.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/icon.d.ts +0 -1
- package/{dist/standalone/directives/index.js → standalone/directives/index.d.ts} +0 -1
- package/{dist/standalone → standalone}/directives/input-otp.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/input.d.ts +0 -1
- package/standalone/directives/proxies.d.ts +1062 -0
- package/{dist/standalone → standalone}/directives/radio-group.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/range.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/searchbar.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/segment.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/select.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/textarea.d.ts +0 -1
- package/{dist/standalone → standalone}/directives/toggle.d.ts +0 -1
- package/{dist/standalone → standalone}/index.d.ts +2 -2
- package/{dist/standalone → standalone}/navigation/back-button.d.ts +0 -1
- package/{dist/standalone → standalone}/navigation/nav.d.ts +0 -1
- package/{dist/standalone → standalone}/navigation/router-link-delegate.d.ts +0 -1
- package/{dist/standalone → standalone}/navigation/router-outlet.d.ts +0 -1
- package/{dist/standalone → standalone}/navigation/tabs.d.ts +0 -1
- package/{dist/standalone → standalone}/overlays/modal.d.ts +0 -1
- package/{dist/standalone → standalone}/overlays/popover.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/action-sheet-controller.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/alert-controller.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/animation-controller.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/gesture-controller.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/ionic-angular.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/loading-controller.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/menu-controller.d.ts +0 -1
- package/{dist/lazy → standalone}/providers/modal-controller.d.ts +0 -1
- package/standalone/providers/picker-controller.d.ts +11 -0
- package/{dist/standalone → standalone}/providers/popover-controller.d.ts +0 -1
- package/{dist/standalone → standalone}/providers/toast-controller.d.ts +0 -1
- package/dist/common/directives/control-value-accessors/index.d.ts +0 -2
- package/dist/common/directives/control-value-accessors/index.d.ts.map +0 -1
- package/dist/common/directives/control-value-accessors/index.js.map +0 -1
- package/dist/common/directives/control-value-accessors/value-accessor.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.map +0 -1
- package/dist/common/index.js +0 -20
- package/dist/common/index.js.map +0 -1
- package/dist/common/overlays/modal.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts +0 -5
- package/dist/lazy/directives/control-value-accessors/index.d.ts.map +0 -1
- package/dist/lazy/directives/control-value-accessors/index.js.map +0 -1
- package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts +0 -3
- package/dist/lazy/directives/proxies-list.d.ts.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.d.ts.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.d.ts +0 -3
- package/dist/lazy/directives/validators/index.d.ts.map +0 -1
- package/dist/lazy/directives/validators/index.js.map +0 -1
- package/dist/lazy/directives/validators/max-validator.d.ts.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.d.ts.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.d.ts.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 -39
- package/dist/lazy/ionic-module.d.ts.map +0 -1
- package/dist/lazy/ionic-module.js +0 -121
- package/dist/lazy/ionic-module.js.map +0 -1
- package/dist/lazy/providers/action-sheet-controller.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.map +0 -1
- 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.d.ts.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.d.ts.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.d.ts.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.d.ts +0 -13
- package/dist/standalone/directives/index.d.ts.map +0 -1
- package/dist/standalone/directives/index.js.map +0 -1
- package/dist/standalone/directives/input-otp.d.ts.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.d.ts.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 -22
- package/dist/standalone/directives/ion-accordion-group.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-accordion.d.ts.map +0 -1
- 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 -59
- package/dist/standalone/directives/ion-action-sheet.d.ts.map +0 -1
- 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 -59
- package/dist/standalone/directives/ion-alert.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-app.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-avatar.d.ts.map +0 -1
- 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 -19
- package/dist/standalone/directives/ion-backdrop.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-badge.d.ts.map +0 -1
- 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 -24
- package/dist/standalone/directives/ion-breadcrumb.d.ts.map +0 -1
- 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 -20
- package/dist/standalone/directives/ion-breadcrumbs.d.ts.map +0 -1
- 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 -24
- package/dist/standalone/directives/ion-button.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-buttons.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-card-content.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-card-header.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-card-subtitle.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-card-title.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-card.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-chip.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-col.d.ts.map +0 -1
- 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 -34
- package/dist/standalone/directives/ion-content.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-datetime-button.d.ts.map +0 -1
- 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 -24
- package/dist/standalone/directives/ion-fab-button.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-fab-list.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-fab.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-footer.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-grid.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-header.d.ts.map +0 -1
- 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 -29
- package/dist/standalone/directives/ion-img.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-infinite-scroll-content.d.ts.map +0 -1
- 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 -22
- package/dist/standalone/directives/ion-infinite-scroll.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-input-password-toggle.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-item-divider.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-item-group.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-item-option.d.ts.map +0 -1
- 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 -19
- package/dist/standalone/directives/ion-item-options.d.ts.map +0 -1
- 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 -19
- package/dist/standalone/directives/ion-item-sliding.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-item.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-label.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-list-header.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-list.d.ts.map +0 -1
- 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 -59
- package/dist/standalone/directives/ion-loading.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-menu-button.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-menu-toggle.d.ts.map +0 -1
- 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 -35
- package/dist/standalone/directives/ion-menu.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-nav-link.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-note.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-picker-column-option.d.ts.map +0 -1
- 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 -22
- package/dist/standalone/directives/ion-picker-column.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-picker.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-progress-bar.d.ts.map +0 -1
- 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 -24
- package/dist/standalone/directives/ion-radio.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-refresher-content.d.ts.map +0 -1
- 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 -46
- package/dist/standalone/directives/ion-refresher.d.ts.map +0 -1
- 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 -45
- package/dist/standalone/directives/ion-reorder-group.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-reorder.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-ripple-effect.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-row.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-segment-button.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-segment-content.d.ts.map +0 -1
- 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 -20
- package/dist/standalone/directives/ion-segment-view.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-select-modal.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-select-option.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-skeleton-text.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-spinner.d.ts.map +0 -1
- 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 -23
- package/dist/standalone/directives/ion-split-pane.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-tab-bar.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-tab-button.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-tab.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-text.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-thumbnail.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-title.d.ts.map +0 -1
- 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 -59
- package/dist/standalone/directives/ion-toast.d.ts.map +0 -1
- 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 -13
- package/dist/standalone/directives/ion-toolbar.d.ts.map +0 -1
- 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 -78
- package/dist/standalone/directives/proxies.d.ts.map +0 -1
- package/dist/standalone/directives/proxies.js +0 -79
- package/dist/standalone/directives/proxies.js.map +0 -1
- package/dist/standalone/directives/radio-group.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.map +0 -1
- package/dist/standalone/directives/toggle.js +0 -75
- package/dist/standalone/directives/toggle.js.map +0 -1
- package/dist/standalone/index.d.ts.map +0 -1
- package/dist/standalone/index.js +0 -24
- package/dist/standalone/index.js.map +0 -1
- package/dist/standalone/navigation/back-button.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.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.d.ts.map +0 -1
- package/dist/standalone/providers/toast-controller.js +0 -20
- package/dist/standalone/providers/toast-controller.js.map +0 -1
- /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
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { Directive, HostListener, Input, Optional } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "../../providers/nav-controller";
|
|
5
|
-
import * as i3 from "@angular/router";
|
|
6
|
-
/**
|
|
7
|
-
* Adds support for Ionic routing directions and animations to the base Angular router link directive.
|
|
8
|
-
*
|
|
9
|
-
* When the router link is clicked, the directive will assign the direction and
|
|
10
|
-
* animation so that the routing integration will transition correctly.
|
|
11
|
-
*/
|
|
12
|
-
export class RouterLinkDelegateDirective {
|
|
13
|
-
locationStrategy;
|
|
14
|
-
navCtrl;
|
|
15
|
-
elementRef;
|
|
16
|
-
router;
|
|
17
|
-
routerLink;
|
|
18
|
-
routerDirection = 'forward';
|
|
19
|
-
routerAnimation;
|
|
20
|
-
constructor(locationStrategy, navCtrl, elementRef, router, routerLink) {
|
|
21
|
-
this.locationStrategy = locationStrategy;
|
|
22
|
-
this.navCtrl = navCtrl;
|
|
23
|
-
this.elementRef = elementRef;
|
|
24
|
-
this.router = router;
|
|
25
|
-
this.routerLink = routerLink;
|
|
26
|
-
}
|
|
27
|
-
ngOnInit() {
|
|
28
|
-
this.updateTargetUrlAndHref();
|
|
29
|
-
this.updateTabindex();
|
|
30
|
-
/**
|
|
31
|
-
* Ionic components like `ion-item` render a native anchor in their shadow DOM,
|
|
32
|
-
* so a modifier click (ctrl/meta/shift/alt) or a non-`_self` target should let
|
|
33
|
-
* the browser handle the navigation natively (new tab, new window, download)
|
|
34
|
-
* instead of navigating in-app.
|
|
35
|
-
*
|
|
36
|
-
* We listen in the capture phase so this runs before Angular's `RouterLink`
|
|
37
|
-
* handler and our own bubble-phase `onClick`. On a native-navigation intent it
|
|
38
|
-
* stops propagation to cancel the in-app navigation, but leaves `preventDefault`
|
|
39
|
-
* alone so the native anchor can still act.
|
|
40
|
-
*/
|
|
41
|
-
this.elementRef.nativeElement.addEventListener('click', this.onCaptureClick, { capture: true });
|
|
42
|
-
}
|
|
43
|
-
ngOnChanges() {
|
|
44
|
-
this.updateTargetUrlAndHref();
|
|
45
|
-
}
|
|
46
|
-
ngOnDestroy() {
|
|
47
|
-
this.elementRef.nativeElement.removeEventListener('click', this.onCaptureClick, { capture: true });
|
|
48
|
-
}
|
|
49
|
-
onCaptureClick = (ev) => {
|
|
50
|
-
if (this.opensNatively(ev)) {
|
|
51
|
-
ev.stopImmediatePropagation();
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* True when the browser should handle the click natively instead of routing
|
|
56
|
-
* in-app: a modifier was held (ctrl/meta/shift/alt), or the host targets
|
|
57
|
-
* something other than `_self`. This mirrors the modifier set Angular's own
|
|
58
|
-
* `RouterLink` guards on, so an Ionic `routerLink` behaves like a plain anchor
|
|
59
|
-
* for new-tab, new-window, and download intents.
|
|
60
|
-
*/
|
|
61
|
-
opensNatively(ev) {
|
|
62
|
-
if (ev instanceof MouseEvent && (ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.altKey)) {
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
const target = this.elementRef.nativeElement.target;
|
|
66
|
-
return target != null && target !== '' && target !== '_self';
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* The `tabindex` is set to `0` by default on the host element when
|
|
70
|
-
* the `routerLink` directive is used. This causes issues with Ionic
|
|
71
|
-
* components that wrap an `a` or `button` element, such as `ion-item`.
|
|
72
|
-
* See issue https://github.com/angular/angular/issues/28345
|
|
73
|
-
*
|
|
74
|
-
* This method removes the `tabindex` attribute from the host element
|
|
75
|
-
* to allow the Ionic component to manage the focus state correctly.
|
|
76
|
-
*/
|
|
77
|
-
updateTabindex() {
|
|
78
|
-
// Ionic components that render a native anchor or button element
|
|
79
|
-
const ionicComponents = [
|
|
80
|
-
'ION-BACK-BUTTON',
|
|
81
|
-
'ION-BREADCRUMB',
|
|
82
|
-
'ION-BUTTON',
|
|
83
|
-
'ION-CARD',
|
|
84
|
-
'ION-FAB-BUTTON',
|
|
85
|
-
'ION-ITEM',
|
|
86
|
-
'ION-ITEM-OPTION',
|
|
87
|
-
'ION-MENU-BUTTON',
|
|
88
|
-
'ION-SEGMENT-BUTTON',
|
|
89
|
-
'ION-TAB-BUTTON',
|
|
90
|
-
];
|
|
91
|
-
const hostElement = this.elementRef.nativeElement;
|
|
92
|
-
if (ionicComponents.includes(hostElement.tagName)) {
|
|
93
|
-
if (hostElement.getAttribute('tabindex') === '0') {
|
|
94
|
-
hostElement.removeAttribute('tabindex');
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
updateTargetUrlAndHref() {
|
|
99
|
-
if (this.routerLink?.urlTree) {
|
|
100
|
-
const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
|
|
101
|
-
this.elementRef.nativeElement.href = href;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
onClick(ev) {
|
|
108
|
-
this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
|
|
109
|
-
/**
|
|
110
|
-
* This prevents the browser from
|
|
111
|
-
* performing a page reload when pressing
|
|
112
|
-
* an Ionic component with routerLink.
|
|
113
|
-
* The page reload interferes with routing
|
|
114
|
-
* and causes ion-back-button to disappear
|
|
115
|
-
* since the local history is wiped on reload.
|
|
116
|
-
*/
|
|
117
|
-
ev.preventDefault();
|
|
118
|
-
}
|
|
119
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: i2.NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
120
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: RouterLinkDelegateDirective, isStandalone: true, selector: ":not(a):not(area)[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
121
|
-
}
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
|
|
123
|
-
type: Directive,
|
|
124
|
-
args: [{
|
|
125
|
-
selector: ':not(a):not(area)[routerLink]',
|
|
126
|
-
}]
|
|
127
|
-
}], ctorParameters: () => [{ type: i1.LocationStrategy }, { type: i2.NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
|
|
128
|
-
type: Optional
|
|
129
|
-
}] }], propDecorators: { routerDirection: [{
|
|
130
|
-
type: Input
|
|
131
|
-
}], routerAnimation: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}], onClick: [{
|
|
134
|
-
type: HostListener,
|
|
135
|
-
args: ['click', ['$event']]
|
|
136
|
-
}] } });
|
|
137
|
-
export class RouterLinkWithHrefDelegateDirective {
|
|
138
|
-
locationStrategy;
|
|
139
|
-
navCtrl;
|
|
140
|
-
elementRef;
|
|
141
|
-
router;
|
|
142
|
-
routerLink;
|
|
143
|
-
routerDirection = 'forward';
|
|
144
|
-
routerAnimation;
|
|
145
|
-
constructor(locationStrategy, navCtrl, elementRef, router, routerLink) {
|
|
146
|
-
this.locationStrategy = locationStrategy;
|
|
147
|
-
this.navCtrl = navCtrl;
|
|
148
|
-
this.elementRef = elementRef;
|
|
149
|
-
this.router = router;
|
|
150
|
-
this.routerLink = routerLink;
|
|
151
|
-
}
|
|
152
|
-
ngOnInit() {
|
|
153
|
-
this.updateTargetUrlAndHref();
|
|
154
|
-
}
|
|
155
|
-
ngOnChanges() {
|
|
156
|
-
this.updateTargetUrlAndHref();
|
|
157
|
-
}
|
|
158
|
-
updateTargetUrlAndHref() {
|
|
159
|
-
if (this.routerLink?.urlTree) {
|
|
160
|
-
const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
|
|
161
|
-
this.elementRef.nativeElement.href = href;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
167
|
-
onClick() {
|
|
168
|
-
this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
|
|
169
|
-
}
|
|
170
|
-
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: i2.NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
171
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: RouterLinkWithHrefDelegateDirective, isStandalone: true, selector: "a[routerLink],area[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
|
|
172
|
-
}
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
|
|
174
|
-
type: Directive,
|
|
175
|
-
args: [{
|
|
176
|
-
selector: 'a[routerLink],area[routerLink]',
|
|
177
|
-
}]
|
|
178
|
-
}], ctorParameters: () => [{ type: i1.LocationStrategy }, { type: i2.NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
|
|
179
|
-
type: Optional
|
|
180
|
-
}] }], propDecorators: { routerDirection: [{
|
|
181
|
-
type: Input
|
|
182
|
-
}], routerAnimation: [{
|
|
183
|
-
type: Input
|
|
184
|
-
}], onClick: [{
|
|
185
|
-
type: HostListener,
|
|
186
|
-
args: ['click']
|
|
187
|
-
}] } });
|
|
188
|
-
//# sourceMappingURL=router-link-delegate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router-link-delegate.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/router-link-delegate.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;;;;;AAMnH;;;;;GAKG;AAIH,MAAM,OAAO,2BAA2B;IAQ5B;IACA;IACA;IACA;IACY;IAVtB,eAAe,GAAoB,SAAS,CAAC;IAG7C,eAAe,CAAoB;IAEnC,YACU,gBAAkC,EAClC,OAAsB,EACtB,UAAsB,EACtB,MAAc,EACF,UAAuB;QAJnC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,YAAO,GAAP,OAAO,CAAe;QACtB,eAAU,GAAV,UAAU,CAAY;QACtB,WAAM,GAAN,MAAM,CAAQ;QACF,eAAU,GAAV,UAAU,CAAa;IAC1C,CAAC;IAEJ,QAAQ;QACN,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB;;;;;;;;;;WAUG;QACH,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAClG,CAAC;IAED,WAAW;QACT,IAAI,CAAC,sBAAsB,EAAE,CAAC;IAChC,CAAC;IAED,W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;CA8YpC;AA8FD,eAAO,MAAM,4BAA4B,QAAO,QAM/C,CAAC"}
|
|
@@ -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
|