@ionic/angular 8.8.14-dev.11784563563.137a903a → 8.8.14-dev.11785507167.1f41b13b
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 +3 -0
- package/dist/common/directives/control-value-accessors/index.d.ts +1 -0
- package/dist/common/directives/control-value-accessors/index.js +2 -0
- package/dist/common/directives/control-value-accessors/index.js.map +1 -0
- package/dist/common/directives/control-value-accessors/value-accessor.d.ts +36 -0
- package/dist/common/directives/control-value-accessors/value-accessor.js +152 -0
- package/dist/common/directives/control-value-accessors/value-accessor.js.map +1 -0
- package/dist/common/directives/navigation/back-button.d.ts +23 -0
- package/dist/common/directives/navigation/back-button.js +66 -0
- package/dist/common/directives/navigation/back-button.js.map +1 -0
- package/dist/common/directives/navigation/nav-params.d.ts +45 -0
- package/dist/common/directives/navigation/nav-params.js +47 -0
- package/dist/common/directives/navigation/nav-params.js.map +1 -0
- package/dist/common/directives/navigation/nav.d.ts +21 -0
- package/dist/common/directives/navigation/nav.js +54 -0
- package/dist/common/directives/navigation/nav.js.map +1 -0
- package/dist/common/directives/navigation/router-link-delegate.d.ts +70 -0
- package/dist/common/directives/navigation/router-link-delegate.js +188 -0
- package/dist/common/directives/navigation/router-link-delegate.js.map +1 -0
- package/dist/common/directives/navigation/router-outlet.d.ts +104 -0
- package/dist/common/directives/navigation/router-outlet.js +476 -0
- package/dist/common/directives/navigation/router-outlet.js.map +1 -0
- package/dist/common/directives/navigation/stack-controller.d.ts +42 -0
- package/dist/common/directives/navigation/stack-controller.js +279 -0
- package/dist/common/directives/navigation/stack-controller.js.map +1 -0
- package/dist/common/directives/navigation/stack-utils.d.ts +38 -0
- package/dist/common/directives/navigation/stack-utils.js +73 -0
- package/dist/common/directives/navigation/stack-utils.js.map +1 -0
- package/dist/common/directives/navigation/tabs.d.ts +91 -0
- package/dist/common/directives/navigation/tabs.js +290 -0
- package/dist/common/directives/navigation/tabs.js.map +1 -0
- package/dist/common/index.d.ts +22 -0
- package/dist/common/index.js +20 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/overlays/modal.d.ts +62 -0
- package/dist/common/overlays/modal.js +101 -0
- package/dist/common/overlays/modal.js.map +1 -0
- package/dist/common/overlays/popover.d.ts +46 -0
- package/dist/common/overlays/popover.js +89 -0
- package/dist/common/overlays/popover.js.map +1 -0
- package/dist/common/providers/angular-delegate.d.ts +28 -0
- package/dist/common/providers/angular-delegate.js +229 -0
- package/dist/common/providers/angular-delegate.js.map +1 -0
- package/dist/common/providers/config.d.ts +11 -0
- package/dist/common/providers/config.js +44 -0
- package/dist/common/providers/config.js.map +1 -0
- package/dist/common/providers/dom-controller.d.ts +16 -0
- package/dist/common/providers/dom-controller.js +44 -0
- package/dist/common/providers/dom-controller.js.map +1 -0
- package/dist/common/providers/menu-controller.d.ts +78 -0
- package/dist/common/providers/menu-controller.js +114 -0
- package/dist/common/providers/menu-controller.js.map +1 -0
- package/dist/common/providers/nav-controller.d.ts +116 -0
- package/dist/common/providers/nav-controller.js +232 -0
- package/dist/common/providers/nav-controller.js.map +1 -0
- package/dist/common/providers/platform.d.ts +174 -0
- package/dist/common/providers/platform.js +256 -0
- package/dist/common/providers/platform.js.map +1 -0
- package/dist/common/types/interfaces.d.ts +8 -0
- package/dist/common/types/interfaces.js +2 -0
- package/dist/common/types/interfaces.js.map +1 -0
- package/dist/common/types/ionic-lifecycle-hooks.d.ts +27 -0
- package/dist/common/types/ionic-lifecycle-hooks.js +5 -0
- package/dist/common/types/ionic-lifecycle-hooks.js.map +1 -0
- package/dist/common/types/overlay-options.d.ts +16 -0
- package/dist/common/types/overlay-options.js +2 -0
- package/dist/common/types/overlay-options.js.map +1 -0
- package/dist/common/utils/overlay.d.ts +21 -0
- package/dist/common/utils/overlay.js +26 -0
- package/dist/common/utils/overlay.js.map +1 -0
- package/dist/common/utils/proxy.d.ts +8 -0
- package/dist/common/utils/proxy.js +47 -0
- package/dist/common/utils/proxy.js.map +1 -0
- package/dist/common/utils/routing.d.ts +28 -0
- package/dist/common/utils/routing.js +55 -0
- package/dist/common/utils/routing.js.map +1 -0
- package/dist/common/utils/util.d.ts +1 -0
- package/dist/common/utils/util.js +10 -0
- package/dist/common/utils/util.js.map +1 -0
- package/dist/lazy/app-initialize.d.ts +3 -0
- package/dist/lazy/app-initialize.js +29 -0
- package/dist/lazy/app-initialize.js.map +1 -0
- package/dist/lazy/directives/angular-component-lib/utils.d.ts +9 -0
- package/dist/lazy/directives/angular-component-lib/utils.js +59 -0
- package/dist/lazy/directives/angular-component-lib/utils.js.map +1 -0
- package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.d.ts +10 -0
- package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js +47 -0
- package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js.map +1 -0
- package/dist/lazy/directives/control-value-accessors/index.d.ts +4 -0
- package/dist/lazy/directives/control-value-accessors/index.js +5 -0
- package/dist/lazy/directives/control-value-accessors/index.js.map +1 -0
- package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.d.ts +11 -0
- package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js +55 -0
- package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js.map +1 -0
- package/dist/lazy/directives/control-value-accessors/select-value-accessor.d.ts +9 -0
- package/dist/lazy/directives/control-value-accessors/select-value-accessor.js +44 -0
- package/dist/lazy/directives/control-value-accessors/select-value-accessor.js.map +1 -0
- package/dist/lazy/directives/control-value-accessors/text-value-accessor.d.ts +9 -0
- package/dist/lazy/directives/control-value-accessors/text-value-accessor.js +43 -0
- package/dist/lazy/directives/control-value-accessors/text-value-accessor.js.map +1 -0
- package/dist/lazy/directives/navigation/ion-back-button.d.ts +9 -0
- package/dist/lazy/directives/navigation/ion-back-button.js +24 -0
- package/dist/lazy/directives/navigation/ion-back-button.js.map +1 -0
- package/dist/lazy/directives/navigation/ion-nav.d.ts +8 -0
- package/dist/lazy/directives/navigation/ion-nav.js +21 -0
- package/dist/lazy/directives/navigation/ion-nav.js.map +1 -0
- package/dist/lazy/directives/navigation/ion-router-outlet.d.ts +25 -0
- package/dist/lazy/directives/navigation/ion-router-outlet.js +52 -0
- package/dist/lazy/directives/navigation/ion-router-outlet.js.map +1 -0
- package/dist/lazy/directives/navigation/ion-tabs.d.ts +13 -0
- package/dist/lazy/directives/navigation/ion-tabs.js +58 -0
- package/dist/lazy/directives/navigation/ion-tabs.js.map +1 -0
- package/dist/lazy/directives/navigation/router-link-delegate.d.ts +16 -0
- package/dist/lazy/directives/navigation/router-link-delegate.js +32 -0
- package/dist/lazy/directives/navigation/router-link-delegate.js.map +1 -0
- package/dist/lazy/directives/overlays/modal.d.ts +6 -0
- package/dist/lazy/directives/overlays/modal.js +22 -0
- package/dist/lazy/directives/overlays/modal.js.map +1 -0
- package/dist/lazy/directives/overlays/popover.d.ts +6 -0
- package/dist/lazy/directives/overlays/popover.js +18 -0
- package/dist/lazy/directives/overlays/popover.js.map +1 -0
- package/dist/lazy/directives/proxies-list.d.ts +2 -0
- package/dist/lazy/directives/proxies-list.js +89 -0
- package/dist/lazy/directives/proxies-list.js.map +1 -0
- package/{types/ionic-angular-lazy.d.ts → dist/lazy/directives/proxies.d.ts} +339 -493
- package/{fesm2022/ionic-angular-lazy.mjs → dist/lazy/directives/proxies.js} +266 -1041
- package/dist/lazy/directives/proxies.js.map +1 -0
- package/dist/lazy/directives/validators/index.d.ts +2 -0
- package/dist/lazy/directives/validators/index.js +3 -0
- package/dist/lazy/directives/validators/index.js.map +1 -0
- package/dist/lazy/directives/validators/max-validator.d.ts +12 -0
- package/dist/lazy/directives/validators/max-validator.js +26 -0
- package/dist/lazy/directives/validators/max-validator.js.map +1 -0
- package/dist/lazy/directives/validators/min-validator.d.ts +12 -0
- package/dist/lazy/directives/validators/min-validator.js +26 -0
- package/dist/lazy/directives/validators/min-validator.js.map +1 -0
- package/dist/lazy/index.d.ts +26 -0
- package/dist/lazy/index.js +34 -0
- package/dist/lazy/index.js.map +1 -0
- package/dist/lazy/ionic-module.d.ts +38 -0
- package/dist/lazy/ionic-module.js +121 -0
- package/dist/lazy/ionic-module.js.map +1 -0
- package/dist/lazy/providers/action-sheet-controller.d.ts +8 -0
- package/dist/lazy/providers/action-sheet-controller.js +18 -0
- package/dist/lazy/providers/action-sheet-controller.js.map +1 -0
- package/dist/lazy/providers/alert-controller.d.ts +8 -0
- package/dist/lazy/providers/alert-controller.js +18 -0
- package/dist/lazy/providers/alert-controller.js.map +1 -0
- package/dist/lazy/providers/animation-controller.d.ts +25 -0
- package/dist/lazy/providers/animation-controller.js +37 -0
- package/dist/lazy/providers/animation-controller.js.map +1 -0
- package/dist/lazy/providers/gesture-controller.d.ts +13 -0
- package/dist/lazy/providers/gesture-controller.js +32 -0
- package/dist/lazy/providers/gesture-controller.js.map +1 -0
- package/dist/lazy/providers/loading-controller.d.ts +8 -0
- package/dist/lazy/providers/loading-controller.js +18 -0
- package/dist/lazy/providers/loading-controller.js.map +1 -0
- package/dist/lazy/providers/menu-controller.d.ts +7 -0
- package/dist/lazy/providers/menu-controller.js +18 -0
- package/dist/lazy/providers/menu-controller.js.map +1 -0
- package/dist/lazy/providers/modal-controller.d.ts +12 -0
- package/dist/lazy/providers/modal-controller.js +25 -0
- package/dist/lazy/providers/modal-controller.js.map +1 -0
- package/dist/lazy/providers/popover-controller.d.ts +9 -0
- package/dist/lazy/providers/popover-controller.js +19 -0
- package/dist/lazy/providers/popover-controller.js.map +1 -0
- package/dist/lazy/providers/toast-controller.d.ts +8 -0
- package/dist/lazy/providers/toast-controller.js +18 -0
- package/dist/lazy/providers/toast-controller.js.map +1 -0
- package/dist/standalone/directives/angular-component-lib/utils.d.ts +9 -0
- package/dist/standalone/directives/angular-component-lib/utils.js +59 -0
- package/dist/standalone/directives/angular-component-lib/utils.js.map +1 -0
- package/dist/standalone/directives/checkbox.d.ts +30 -0
- package/dist/standalone/directives/checkbox.js +81 -0
- package/dist/standalone/directives/checkbox.js.map +1 -0
- package/dist/standalone/directives/datetime.d.ts +30 -0
- package/dist/standalone/directives/datetime.js +100 -0
- package/dist/standalone/directives/datetime.js.map +1 -0
- package/dist/standalone/directives/icon.d.ts +9 -0
- package/dist/standalone/directives/icon.js +40 -0
- package/dist/standalone/directives/icon.js.map +1 -0
- package/dist/standalone/directives/index.d.ts +12 -0
- package/dist/standalone/directives/index.js +13 -0
- package/dist/standalone/directives/index.js.map +1 -0
- package/dist/standalone/directives/input-otp.d.ts +49 -0
- package/dist/standalone/directives/input-otp.js +95 -0
- package/dist/standalone/directives/input-otp.js.map +1 -0
- package/dist/standalone/directives/input.d.ts +47 -0
- package/dist/standalone/directives/input.js +118 -0
- package/dist/standalone/directives/input.js.map +1 -0
- package/dist/standalone/directives/ion-accordion-group.d.ts +21 -0
- package/dist/standalone/directives/ion-accordion-group.js +45 -0
- package/dist/standalone/directives/ion-accordion-group.js.map +1 -0
- package/dist/standalone/directives/ion-accordion.d.ts +12 -0
- package/dist/standalone/directives/ion-accordion.js +41 -0
- package/dist/standalone/directives/ion-accordion.js.map +1 -0
- package/dist/standalone/directives/ion-action-sheet.d.ts +58 -0
- package/dist/standalone/directives/ion-action-sheet.js +67 -0
- package/dist/standalone/directives/ion-action-sheet.js.map +1 -0
- package/dist/standalone/directives/ion-alert.d.ts +58 -0
- package/dist/standalone/directives/ion-alert.js +67 -0
- package/dist/standalone/directives/ion-alert.js.map +1 -0
- package/dist/standalone/directives/ion-app.d.ts +12 -0
- package/dist/standalone/directives/ion-app.js +41 -0
- package/dist/standalone/directives/ion-app.js.map +1 -0
- package/dist/standalone/directives/ion-avatar.d.ts +12 -0
- package/dist/standalone/directives/ion-avatar.js +40 -0
- package/dist/standalone/directives/ion-avatar.js.map +1 -0
- package/dist/standalone/directives/ion-backdrop.d.ts +18 -0
- package/dist/standalone/directives/ion-backdrop.js +45 -0
- package/dist/standalone/directives/ion-backdrop.js.map +1 -0
- package/dist/standalone/directives/ion-badge.d.ts +12 -0
- package/dist/standalone/directives/ion-badge.js +41 -0
- package/dist/standalone/directives/ion-badge.js.map +1 -0
- package/dist/standalone/directives/ion-breadcrumb.d.ts +23 -0
- package/dist/standalone/directives/ion-breadcrumb.js +48 -0
- package/dist/standalone/directives/ion-breadcrumb.js.map +1 -0
- package/dist/standalone/directives/ion-breadcrumbs.d.ts +19 -0
- package/dist/standalone/directives/ion-breadcrumbs.js +45 -0
- package/dist/standalone/directives/ion-breadcrumbs.js.map +1 -0
- package/dist/standalone/directives/ion-button.d.ts +23 -0
- package/dist/standalone/directives/ion-button.js +48 -0
- package/dist/standalone/directives/ion-button.js.map +1 -0
- package/dist/standalone/directives/ion-buttons.d.ts +12 -0
- package/dist/standalone/directives/ion-buttons.js +41 -0
- package/dist/standalone/directives/ion-buttons.js.map +1 -0
- package/dist/standalone/directives/ion-card-content.d.ts +12 -0
- package/dist/standalone/directives/ion-card-content.js +41 -0
- package/dist/standalone/directives/ion-card-content.js.map +1 -0
- package/dist/standalone/directives/ion-card-header.d.ts +12 -0
- package/dist/standalone/directives/ion-card-header.js +41 -0
- package/dist/standalone/directives/ion-card-header.js.map +1 -0
- package/dist/standalone/directives/ion-card-subtitle.d.ts +12 -0
- package/dist/standalone/directives/ion-card-subtitle.js +41 -0
- package/dist/standalone/directives/ion-card-subtitle.js.map +1 -0
- package/dist/standalone/directives/ion-card-title.d.ts +12 -0
- package/dist/standalone/directives/ion-card-title.js +41 -0
- package/dist/standalone/directives/ion-card-title.js.map +1 -0
- package/dist/standalone/directives/ion-card.d.ts +12 -0
- package/dist/standalone/directives/ion-card.js +41 -0
- package/dist/standalone/directives/ion-card.js.map +1 -0
- package/dist/standalone/directives/ion-chip.d.ts +12 -0
- package/dist/standalone/directives/ion-chip.js +41 -0
- package/dist/standalone/directives/ion-chip.js.map +1 -0
- package/dist/standalone/directives/ion-col.d.ts +12 -0
- package/dist/standalone/directives/ion-col.js +41 -0
- package/dist/standalone/directives/ion-col.js.map +1 -0
- package/dist/standalone/directives/ion-content.d.ts +33 -0
- package/dist/standalone/directives/ion-content.js +52 -0
- package/dist/standalone/directives/ion-content.js.map +1 -0
- package/dist/standalone/directives/ion-datetime-button.d.ts +12 -0
- package/dist/standalone/directives/ion-datetime-button.js +41 -0
- package/dist/standalone/directives/ion-datetime-button.js.map +1 -0
- package/dist/standalone/directives/ion-fab-button.d.ts +23 -0
- package/dist/standalone/directives/ion-fab-button.js +48 -0
- package/dist/standalone/directives/ion-fab-button.js.map +1 -0
- package/dist/standalone/directives/ion-fab-list.d.ts +12 -0
- package/dist/standalone/directives/ion-fab-list.js +41 -0
- package/dist/standalone/directives/ion-fab-list.js.map +1 -0
- package/dist/standalone/directives/ion-fab.d.ts +12 -0
- package/dist/standalone/directives/ion-fab.js +42 -0
- package/dist/standalone/directives/ion-fab.js.map +1 -0
- package/dist/standalone/directives/ion-footer.d.ts +12 -0
- package/dist/standalone/directives/ion-footer.js +41 -0
- package/dist/standalone/directives/ion-footer.js.map +1 -0
- package/dist/standalone/directives/ion-grid.d.ts +12 -0
- package/dist/standalone/directives/ion-grid.js +41 -0
- package/dist/standalone/directives/ion-grid.js.map +1 -0
- package/dist/standalone/directives/ion-header.d.ts +12 -0
- package/dist/standalone/directives/ion-header.js +41 -0
- package/dist/standalone/directives/ion-header.js.map +1 -0
- package/dist/standalone/directives/ion-img.d.ts +28 -0
- package/dist/standalone/directives/ion-img.js +51 -0
- package/dist/standalone/directives/ion-img.js.map +1 -0
- package/dist/standalone/directives/ion-infinite-scroll-content.d.ts +12 -0
- package/dist/standalone/directives/ion-infinite-scroll-content.js +41 -0
- package/dist/standalone/directives/ion-infinite-scroll-content.js.map +1 -0
- package/dist/standalone/directives/ion-infinite-scroll.d.ts +21 -0
- package/dist/standalone/directives/ion-infinite-scroll.js +46 -0
- package/dist/standalone/directives/ion-infinite-scroll.js.map +1 -0
- package/dist/standalone/directives/ion-input-password-toggle.d.ts +12 -0
- package/dist/standalone/directives/ion-input-password-toggle.js +41 -0
- package/dist/standalone/directives/ion-input-password-toggle.js.map +1 -0
- package/dist/standalone/directives/ion-item-divider.d.ts +12 -0
- package/dist/standalone/directives/ion-item-divider.js +41 -0
- package/dist/standalone/directives/ion-item-divider.js.map +1 -0
- package/dist/standalone/directives/ion-item-group.d.ts +12 -0
- package/dist/standalone/directives/ion-item-group.js +40 -0
- package/dist/standalone/directives/ion-item-group.js.map +1 -0
- package/dist/standalone/directives/ion-item-option.d.ts +12 -0
- package/dist/standalone/directives/ion-item-option.js +41 -0
- package/dist/standalone/directives/ion-item-option.js.map +1 -0
- package/dist/standalone/directives/ion-item-options.d.ts +18 -0
- package/dist/standalone/directives/ion-item-options.js +45 -0
- package/dist/standalone/directives/ion-item-options.js.map +1 -0
- package/dist/standalone/directives/ion-item-sliding.d.ts +18 -0
- package/dist/standalone/directives/ion-item-sliding.js +46 -0
- package/dist/standalone/directives/ion-item-sliding.js.map +1 -0
- package/dist/standalone/directives/ion-item.d.ts +12 -0
- package/dist/standalone/directives/ion-item.js +41 -0
- package/dist/standalone/directives/ion-item.js.map +1 -0
- package/dist/standalone/directives/ion-label.d.ts +12 -0
- package/dist/standalone/directives/ion-label.js +41 -0
- package/dist/standalone/directives/ion-label.js.map +1 -0
- package/dist/standalone/directives/ion-list-header.d.ts +12 -0
- package/dist/standalone/directives/ion-list-header.js +41 -0
- package/dist/standalone/directives/ion-list-header.js.map +1 -0
- package/dist/standalone/directives/ion-list.d.ts +12 -0
- package/dist/standalone/directives/ion-list.js +42 -0
- package/dist/standalone/directives/ion-list.js.map +1 -0
- package/dist/standalone/directives/ion-loading.d.ts +58 -0
- package/dist/standalone/directives/ion-loading.js +67 -0
- package/dist/standalone/directives/ion-loading.js.map +1 -0
- package/dist/standalone/directives/ion-menu-button.d.ts +12 -0
- package/dist/standalone/directives/ion-menu-button.js +41 -0
- package/dist/standalone/directives/ion-menu-button.js.map +1 -0
- package/dist/standalone/directives/ion-menu-toggle.d.ts +12 -0
- package/dist/standalone/directives/ion-menu-toggle.js +41 -0
- package/dist/standalone/directives/ion-menu-toggle.js.map +1 -0
- package/dist/standalone/directives/ion-menu.d.ts +34 -0
- package/dist/standalone/directives/ion-menu.js +55 -0
- package/dist/standalone/directives/ion-menu.js.map +1 -0
- package/dist/standalone/directives/ion-nav-link.d.ts +12 -0
- package/dist/standalone/directives/ion-nav-link.js +41 -0
- package/dist/standalone/directives/ion-nav-link.js.map +1 -0
- package/dist/standalone/directives/ion-note.d.ts +12 -0
- package/dist/standalone/directives/ion-note.js +41 -0
- package/dist/standalone/directives/ion-note.js.map +1 -0
- package/dist/standalone/directives/ion-picker-column-option.d.ts +12 -0
- package/dist/standalone/directives/ion-picker-column-option.js +41 -0
- package/dist/standalone/directives/ion-picker-column-option.js.map +1 -0
- package/dist/standalone/directives/ion-picker-column.d.ts +21 -0
- package/dist/standalone/directives/ion-picker-column.js +46 -0
- package/dist/standalone/directives/ion-picker-column.js.map +1 -0
- package/dist/standalone/directives/ion-picker.d.ts +12 -0
- package/dist/standalone/directives/ion-picker.js +41 -0
- package/dist/standalone/directives/ion-picker.js.map +1 -0
- package/dist/standalone/directives/ion-progress-bar.d.ts +12 -0
- package/dist/standalone/directives/ion-progress-bar.js +41 -0
- package/dist/standalone/directives/ion-progress-bar.js.map +1 -0
- package/dist/standalone/directives/ion-radio.d.ts +23 -0
- package/dist/standalone/directives/ion-radio.js +48 -0
- package/dist/standalone/directives/ion-radio.js.map +1 -0
- package/dist/standalone/directives/ion-refresher-content.d.ts +12 -0
- package/dist/standalone/directives/ion-refresher-content.js +41 -0
- package/dist/standalone/directives/ion-refresher-content.js.map +1 -0
- package/dist/standalone/directives/ion-refresher.d.ts +45 -0
- package/dist/standalone/directives/ion-refresher.js +58 -0
- package/dist/standalone/directives/ion-refresher.js.map +1 -0
- package/dist/standalone/directives/ion-reorder-group.d.ts +44 -0
- package/dist/standalone/directives/ion-reorder-group.js +55 -0
- package/dist/standalone/directives/ion-reorder-group.js.map +1 -0
- package/dist/standalone/directives/ion-reorder.d.ts +12 -0
- package/dist/standalone/directives/ion-reorder.js +40 -0
- package/dist/standalone/directives/ion-reorder.js.map +1 -0
- package/dist/standalone/directives/ion-ripple-effect.d.ts +12 -0
- package/dist/standalone/directives/ion-ripple-effect.js +42 -0
- package/dist/standalone/directives/ion-ripple-effect.js.map +1 -0
- package/dist/standalone/directives/ion-row.d.ts +12 -0
- package/dist/standalone/directives/ion-row.js +40 -0
- package/dist/standalone/directives/ion-row.js.map +1 -0
- package/dist/standalone/directives/ion-segment-button.d.ts +12 -0
- package/dist/standalone/directives/ion-segment-button.js +41 -0
- package/dist/standalone/directives/ion-segment-button.js.map +1 -0
- package/dist/standalone/directives/ion-segment-content.d.ts +12 -0
- package/dist/standalone/directives/ion-segment-content.js +40 -0
- package/dist/standalone/directives/ion-segment-content.js.map +1 -0
- package/dist/standalone/directives/ion-segment-view.d.ts +19 -0
- package/dist/standalone/directives/ion-segment-view.js +45 -0
- package/dist/standalone/directives/ion-segment-view.js.map +1 -0
- package/dist/standalone/directives/ion-select-modal.d.ts +12 -0
- package/dist/standalone/directives/ion-select-modal.js +41 -0
- package/dist/standalone/directives/ion-select-modal.js.map +1 -0
- package/dist/standalone/directives/ion-select-option.d.ts +12 -0
- package/dist/standalone/directives/ion-select-option.js +41 -0
- package/dist/standalone/directives/ion-select-option.js.map +1 -0
- package/dist/standalone/directives/ion-skeleton-text.d.ts +12 -0
- package/dist/standalone/directives/ion-skeleton-text.js +41 -0
- package/dist/standalone/directives/ion-skeleton-text.js.map +1 -0
- package/dist/standalone/directives/ion-spinner.d.ts +12 -0
- package/dist/standalone/directives/ion-spinner.js +41 -0
- package/dist/standalone/directives/ion-spinner.js.map +1 -0
- package/dist/standalone/directives/ion-split-pane.d.ts +22 -0
- package/dist/standalone/directives/ion-split-pane.js +45 -0
- package/dist/standalone/directives/ion-split-pane.js.map +1 -0
- package/dist/standalone/directives/ion-tab-bar.d.ts +12 -0
- package/dist/standalone/directives/ion-tab-bar.js +41 -0
- package/dist/standalone/directives/ion-tab-bar.js.map +1 -0
- package/dist/standalone/directives/ion-tab-button.d.ts +12 -0
- package/dist/standalone/directives/ion-tab-button.js +41 -0
- package/dist/standalone/directives/ion-tab-button.js.map +1 -0
- package/dist/standalone/directives/ion-tab.d.ts +12 -0
- package/dist/standalone/directives/ion-tab.js +42 -0
- package/dist/standalone/directives/ion-tab.js.map +1 -0
- package/dist/standalone/directives/ion-text.d.ts +12 -0
- package/dist/standalone/directives/ion-text.js +41 -0
- package/dist/standalone/directives/ion-text.js.map +1 -0
- package/dist/standalone/directives/ion-thumbnail.d.ts +12 -0
- package/dist/standalone/directives/ion-thumbnail.js +40 -0
- package/dist/standalone/directives/ion-thumbnail.js.map +1 -0
- package/dist/standalone/directives/ion-title.d.ts +12 -0
- package/dist/standalone/directives/ion-title.js +41 -0
- package/dist/standalone/directives/ion-title.js.map +1 -0
- package/dist/standalone/directives/ion-toast.d.ts +58 -0
- package/dist/standalone/directives/ion-toast.js +67 -0
- package/dist/standalone/directives/ion-toast.js.map +1 -0
- package/dist/standalone/directives/ion-toolbar.d.ts +12 -0
- package/dist/standalone/directives/ion-toolbar.js +41 -0
- package/dist/standalone/directives/ion-toolbar.js.map +1 -0
- package/dist/standalone/directives/proxies.d.ts +77 -0
- package/dist/standalone/directives/proxies.js +79 -0
- package/dist/standalone/directives/proxies.js.map +1 -0
- package/dist/standalone/directives/radio-group.d.ts +18 -0
- package/dist/standalone/directives/radio-group.js +65 -0
- package/dist/standalone/directives/radio-group.js.map +1 -0
- package/dist/standalone/directives/range.d.ts +47 -0
- package/dist/standalone/directives/range.js +83 -0
- package/dist/standalone/directives/range.js.map +1 -0
- package/dist/standalone/directives/searchbar.d.ts +45 -0
- package/dist/standalone/directives/searchbar.js +87 -0
- package/dist/standalone/directives/searchbar.js.map +1 -0
- package/dist/standalone/directives/segment.d.ts +19 -0
- package/dist/standalone/directives/segment.js +65 -0
- package/dist/standalone/directives/segment.js.map +1 -0
- package/dist/standalone/directives/select.d.ts +34 -0
- package/dist/standalone/directives/select.js +89 -0
- package/dist/standalone/directives/select.js.map +1 -0
- package/dist/standalone/directives/textarea.d.ts +37 -0
- package/dist/standalone/directives/textarea.js +96 -0
- package/dist/standalone/directives/textarea.js.map +1 -0
- package/dist/standalone/directives/toggle.d.ts +28 -0
- package/dist/standalone/directives/toggle.js +81 -0
- package/dist/standalone/directives/toggle.js.map +1 -0
- package/dist/standalone/index.d.ts +22 -0
- package/dist/standalone/index.js +24 -0
- package/dist/standalone/index.js.map +1 -0
- package/dist/standalone/navigation/back-button.d.ts +9 -0
- package/dist/standalone/navigation/back-button.js +37 -0
- package/dist/standalone/navigation/back-button.js.map +1 -0
- package/dist/standalone/navigation/nav.d.ts +8 -0
- package/dist/standalone/navigation/nav.js +33 -0
- package/dist/standalone/navigation/nav.js.map +1 -0
- package/dist/standalone/navigation/router-link-delegate.d.ts +10 -0
- package/dist/standalone/navigation/router-link-delegate.js +26 -0
- package/dist/standalone/navigation/router-link-delegate.js.map +1 -0
- package/dist/standalone/navigation/router-outlet.d.ts +25 -0
- package/dist/standalone/navigation/router-outlet.js +65 -0
- package/dist/standalone/navigation/router-outlet.js.map +1 -0
- package/dist/standalone/navigation/tabs.d.ts +13 -0
- package/dist/standalone/navigation/tabs.js +57 -0
- package/dist/standalone/navigation/tabs.js.map +1 -0
- package/dist/standalone/overlays/modal.d.ts +6 -0
- package/dist/standalone/overlays/modal.js +37 -0
- package/dist/standalone/overlays/modal.js.map +1 -0
- package/dist/standalone/overlays/popover.d.ts +6 -0
- package/dist/standalone/overlays/popover.js +33 -0
- package/dist/standalone/overlays/popover.js.map +1 -0
- package/dist/standalone/providers/action-sheet-controller.d.ts +8 -0
- package/dist/standalone/providers/action-sheet-controller.js +20 -0
- package/dist/standalone/providers/action-sheet-controller.js.map +1 -0
- package/dist/standalone/providers/alert-controller.d.ts +8 -0
- package/dist/standalone/providers/alert-controller.js +20 -0
- package/dist/standalone/providers/alert-controller.js.map +1 -0
- package/dist/standalone/providers/animation-controller.d.ts +25 -0
- package/dist/standalone/providers/animation-controller.js +37 -0
- package/dist/standalone/providers/animation-controller.js.map +1 -0
- package/dist/standalone/providers/gesture-controller.d.ts +13 -0
- package/dist/standalone/providers/gesture-controller.js +32 -0
- package/dist/standalone/providers/gesture-controller.js.map +1 -0
- package/dist/standalone/providers/ionic-angular.d.ts +7 -0
- package/dist/standalone/providers/ionic-angular.js +38 -0
- package/dist/standalone/providers/ionic-angular.js.map +1 -0
- package/dist/standalone/providers/loading-controller.d.ts +8 -0
- package/dist/standalone/providers/loading-controller.js +20 -0
- package/dist/standalone/providers/loading-controller.js.map +1 -0
- package/dist/standalone/providers/menu-controller.d.ts +7 -0
- package/dist/standalone/providers/menu-controller.js +18 -0
- package/dist/standalone/providers/menu-controller.js.map +1 -0
- package/dist/standalone/providers/modal-controller.d.ts +12 -0
- package/dist/standalone/providers/modal-controller.js +27 -0
- package/dist/standalone/providers/modal-controller.js.map +1 -0
- package/dist/standalone/providers/popover-controller.d.ts +9 -0
- package/dist/standalone/providers/popover-controller.js +21 -0
- package/dist/standalone/providers/popover-controller.js.map +1 -0
- package/dist/standalone/providers/toast-controller.d.ts +8 -0
- package/dist/standalone/providers/toast-controller.js +20 -0
- package/dist/standalone/providers/toast-controller.js.map +1 -0
- package/package.json +163 -22
- package/fesm2022/ionic-angular-common.mjs +0 -2799
- package/fesm2022/ionic-angular-common.mjs.map +0 -1
- package/fesm2022/ionic-angular-lazy.mjs.map +0 -1
- package/fesm2022/ionic-angular.mjs +0 -3644
- package/fesm2022/ionic-angular.mjs.map +0 -1
- package/types/ionic-angular-common.d.ts +0 -1031
- package/types/ionic-angular.d.ts +0 -1560
- /package/{schematics → dist/schematics}/add/files/root/theme/variables.css +0 -0
- /package/{schematics → dist/schematics}/add/index.js +0 -0
- /package/{schematics → dist/schematics}/add/schema.json +0 -0
- /package/{schematics → dist/schematics}/collection.json +0 -0
- /package/{schematics → dist/schematics}/utils/ast.js +0 -0
- /package/{schematics → dist/schematics}/utils/config.js +0 -0
- /package/{schematics → dist/schematics}/utils/package.js +0 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { Inject, Injectable } from '@angular/core';
|
|
3
|
+
import { getPlatforms, isPlatform } from '@ionic/core/components';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class Platform {
|
|
7
|
+
doc;
|
|
8
|
+
_readyPromise;
|
|
9
|
+
win;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
backButton = new Subject();
|
|
14
|
+
/**
|
|
15
|
+
* The keyboardDidShow event emits when the
|
|
16
|
+
* on-screen keyboard is presented.
|
|
17
|
+
*/
|
|
18
|
+
keyboardDidShow = new Subject();
|
|
19
|
+
/**
|
|
20
|
+
* The keyboardDidHide event emits when the
|
|
21
|
+
* on-screen keyboard is hidden.
|
|
22
|
+
*/
|
|
23
|
+
keyboardDidHide = new Subject();
|
|
24
|
+
/**
|
|
25
|
+
* The pause event emits when the native platform puts the application
|
|
26
|
+
* into the background, typically when the user switches to a different
|
|
27
|
+
* application. This event would emit when a Cordova app is put into
|
|
28
|
+
* the background, however, it would not fire on a standard web browser.
|
|
29
|
+
*/
|
|
30
|
+
pause = new Subject();
|
|
31
|
+
/**
|
|
32
|
+
* The resume event emits when the native platform pulls the application
|
|
33
|
+
* out from the background. This event would emit when a Cordova app comes
|
|
34
|
+
* out from the background, however, it would not fire on a standard web browser.
|
|
35
|
+
*/
|
|
36
|
+
resume = new Subject();
|
|
37
|
+
/**
|
|
38
|
+
* The resize event emits when the browser window has changed dimensions. This
|
|
39
|
+
* could be from a browser window being physically resized, or from a device
|
|
40
|
+
* changing orientation.
|
|
41
|
+
*/
|
|
42
|
+
resize = new Subject();
|
|
43
|
+
constructor(doc, zone) {
|
|
44
|
+
this.doc = doc;
|
|
45
|
+
zone.run(() => {
|
|
46
|
+
this.win = doc.defaultView;
|
|
47
|
+
this.backButton.subscribeWithPriority = function (priority, callback) {
|
|
48
|
+
return this.subscribe((ev) => {
|
|
49
|
+
return ev.register(priority, (processNextHandler) => zone.run(() => callback(processNextHandler)));
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
proxyEvent(this.pause, doc, 'pause', zone);
|
|
53
|
+
proxyEvent(this.resume, doc, 'resume', zone);
|
|
54
|
+
proxyEvent(this.backButton, doc, 'ionBackButton', zone);
|
|
55
|
+
proxyEvent(this.resize, this.win, 'resize', zone);
|
|
56
|
+
proxyEvent(this.keyboardDidShow, this.win, 'ionKeyboardDidShow', zone);
|
|
57
|
+
proxyEvent(this.keyboardDidHide, this.win, 'ionKeyboardDidHide', zone);
|
|
58
|
+
let readyResolve;
|
|
59
|
+
this._readyPromise = new Promise((res) => {
|
|
60
|
+
readyResolve = res;
|
|
61
|
+
});
|
|
62
|
+
if (this.win?.['cordova']) {
|
|
63
|
+
doc.addEventListener('deviceready', () => {
|
|
64
|
+
readyResolve('cordova');
|
|
65
|
+
}, { once: true });
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
readyResolve('dom');
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @returns returns true/false based on platform.
|
|
74
|
+
* @description
|
|
75
|
+
* Depending on the platform the user is on, `is(platformName)` will
|
|
76
|
+
* return `true` or `false`. Note that the same app can return `true`
|
|
77
|
+
* for more than one platform name. For example, an app running from
|
|
78
|
+
* an iPad would return `true` for the platform names: `mobile`,
|
|
79
|
+
* `ios`, `ipad`, and `tablet`. Additionally, if the app was running
|
|
80
|
+
* from Cordova then `cordova` would be true, and if it was running
|
|
81
|
+
* from a web browser on the iPad then `mobileweb` would be `true`.
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
* import { Platform } from 'ionic-angular';
|
|
85
|
+
*
|
|
86
|
+
* @Component({...})
|
|
87
|
+
* export MyPage {
|
|
88
|
+
* constructor(public platform: Platform) {
|
|
89
|
+
* if (this.platform.is('ios')) {
|
|
90
|
+
* // This will only print when on iOS
|
|
91
|
+
* console.log('I am an iOS device!');
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* | Platform Name | Description |
|
|
98
|
+
* |-----------------|------------------------------------|
|
|
99
|
+
* | android | on a device running Android. |
|
|
100
|
+
* | capacitor | on a device running Capacitor. |
|
|
101
|
+
* | cordova | on a device running Cordova. |
|
|
102
|
+
* | ios | on a device running iOS. |
|
|
103
|
+
* | ipad | on an iPad device. |
|
|
104
|
+
* | iphone | on an iPhone device. |
|
|
105
|
+
* | phablet | on a phablet device. |
|
|
106
|
+
* | tablet | on a tablet device. |
|
|
107
|
+
* | electron | in Electron on a desktop device. |
|
|
108
|
+
* | pwa | as a PWA app. |
|
|
109
|
+
* | mobile | on a mobile device. |
|
|
110
|
+
* | mobileweb | on a mobile device in a browser. |
|
|
111
|
+
* | desktop | on a desktop device. |
|
|
112
|
+
* | hybrid | is a cordova or capacitor app. |
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
is(platformName) {
|
|
116
|
+
return isPlatform(this.win, platformName);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @returns the array of platforms
|
|
120
|
+
* @description
|
|
121
|
+
* Depending on what device you are on, `platforms` can return multiple values.
|
|
122
|
+
* Each possible value is a hierarchy of platforms. For example, on an iPhone,
|
|
123
|
+
* it would return `mobile`, `ios`, and `iphone`.
|
|
124
|
+
*
|
|
125
|
+
* ```
|
|
126
|
+
* import { Platform } from 'ionic-angular';
|
|
127
|
+
*
|
|
128
|
+
* @Component({...})
|
|
129
|
+
* export MyPage {
|
|
130
|
+
* constructor(public platform: Platform) {
|
|
131
|
+
* // This will print an array of the current platforms
|
|
132
|
+
* console.log(this.platform.platforms());
|
|
133
|
+
* }
|
|
134
|
+
* }
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
platforms() {
|
|
138
|
+
return getPlatforms(this.win);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Returns a promise when the platform is ready and native functionality
|
|
142
|
+
* can be called. If the app is running from within a web browser, then
|
|
143
|
+
* the promise will resolve when the DOM is ready. When the app is running
|
|
144
|
+
* from an application engine such as Cordova, then the promise will
|
|
145
|
+
* resolve when Cordova triggers the `deviceready` event.
|
|
146
|
+
*
|
|
147
|
+
* The resolved value is the `readySource`, which states which platform
|
|
148
|
+
* ready was used. For example, when Cordova is ready, the resolved ready
|
|
149
|
+
* source is `cordova`. The default ready source value will be `dom`. The
|
|
150
|
+
* `readySource` is useful if different logic should run depending on the
|
|
151
|
+
* platform the app is running from. For example, only Cordova can execute
|
|
152
|
+
* the status bar plugin, so the web should not run status bar plugin logic.
|
|
153
|
+
*
|
|
154
|
+
* ```
|
|
155
|
+
* import { Component } from '@angular/core';
|
|
156
|
+
* import { Platform } from 'ionic-angular';
|
|
157
|
+
*
|
|
158
|
+
* @Component({...})
|
|
159
|
+
* export MyApp {
|
|
160
|
+
* constructor(public platform: Platform) {
|
|
161
|
+
* this.platform.ready().then((readySource) => {
|
|
162
|
+
* console.log('Platform ready from', readySource);
|
|
163
|
+
* // Platform now ready, execute any required native code
|
|
164
|
+
* });
|
|
165
|
+
* }
|
|
166
|
+
* }
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
ready() {
|
|
170
|
+
return this._readyPromise;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Returns if this app is using right-to-left language direction or not.
|
|
174
|
+
* We recommend the app's `index.html` file already has the correct `dir`
|
|
175
|
+
* attribute value set, such as `<html dir="ltr">` or `<html dir="rtl">`.
|
|
176
|
+
* [W3C: Structural markup and right-to-left text in HTML](http://www.w3.org/International/questions/qa-html-dir)
|
|
177
|
+
*/
|
|
178
|
+
get isRTL() {
|
|
179
|
+
return this.doc.dir === 'rtl';
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get the query string parameter
|
|
183
|
+
*/
|
|
184
|
+
getQueryParam(key) {
|
|
185
|
+
return readQueryParam(this.win.location.href, key);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns `true` if the app is in landscape mode.
|
|
189
|
+
*/
|
|
190
|
+
isLandscape() {
|
|
191
|
+
return !this.isPortrait();
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Returns `true` if the app is in portrait mode.
|
|
195
|
+
*/
|
|
196
|
+
isPortrait() {
|
|
197
|
+
return this.win.matchMedia?.('(orientation: portrait)').matches;
|
|
198
|
+
}
|
|
199
|
+
testUserAgent(expression) {
|
|
200
|
+
const nav = this.win.navigator;
|
|
201
|
+
return !!(nav?.userAgent && nav.userAgent.indexOf(expression) >= 0);
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Get the current url.
|
|
205
|
+
*/
|
|
206
|
+
url() {
|
|
207
|
+
return this.win.location.href;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Gets the width of the platform's viewport using `window.innerWidth`.
|
|
211
|
+
*/
|
|
212
|
+
width() {
|
|
213
|
+
return this.win.innerWidth;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Gets the height of the platform's viewport using `window.innerHeight`.
|
|
217
|
+
*/
|
|
218
|
+
height() {
|
|
219
|
+
return this.win.innerHeight;
|
|
220
|
+
}
|
|
221
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Platform, deps: [{ token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
222
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Platform, providedIn: 'root' });
|
|
223
|
+
}
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Platform, decorators: [{
|
|
225
|
+
type: Injectable,
|
|
226
|
+
args: [{
|
|
227
|
+
providedIn: 'root',
|
|
228
|
+
}]
|
|
229
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
230
|
+
type: Inject,
|
|
231
|
+
args: [DOCUMENT]
|
|
232
|
+
}] }, { type: i0.NgZone }] });
|
|
233
|
+
const readQueryParam = (url, key) => {
|
|
234
|
+
key = key.replace(/[[\]\\]/g, '\\$&');
|
|
235
|
+
const regex = new RegExp('[\\?&]' + key + '=([^&#]*)');
|
|
236
|
+
const results = regex.exec(url);
|
|
237
|
+
return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null;
|
|
238
|
+
};
|
|
239
|
+
const proxyEvent = (emitter, el, eventName, zone) => {
|
|
240
|
+
if (el) {
|
|
241
|
+
el.addEventListener(eventName, (ev) => {
|
|
242
|
+
/**
|
|
243
|
+
* `zone.run` is required to make sure that we are running inside the Angular zone
|
|
244
|
+
* at all times. This is necessary since an app that has Capacitor will
|
|
245
|
+
* override the `document.addEventListener` with its own implementation.
|
|
246
|
+
* The override causes the event to no longer be in the Angular zone.
|
|
247
|
+
*/
|
|
248
|
+
zone.run(() => {
|
|
249
|
+
// ?? cordova might emit "null" events
|
|
250
|
+
const value = ev != null ? ev.detail : undefined;
|
|
251
|
+
emitter.next(value);
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
//# sourceMappingURL=platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../src/common/providers/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAU,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAgB,OAAO,EAAE,MAAM,MAAM,CAAC;;AAc7C,MAAM,OA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,CAAC,CAAC;IAChC,OAAO,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAI,OAAmB,EAAE,EAAe,EAAE,SAAiB,EAAE,IAAY,EAAE,EAAE;IAC9F,IAAI,EAAE,EAAE,CAAC;QACP,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;YACpC;;;;;eAKG;YACH,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;gBACZ,sCAAsC;gBACtC,MAAM,KAAK,GAAG,EAAE,IAAI,IAAI,CAAC,CAAC,CAAE,EAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;gBAC1D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common/types/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://ionicframework.com/docs/api/router-outlet#life-cycle-hooks
|
|
3
|
+
*/
|
|
4
|
+
export interface ViewWillEnter {
|
|
5
|
+
/**
|
|
6
|
+
* Fired when the component routing to is about to animate into view.
|
|
7
|
+
*/
|
|
8
|
+
ionViewWillEnter(): void;
|
|
9
|
+
}
|
|
10
|
+
export interface ViewDidEnter {
|
|
11
|
+
/**
|
|
12
|
+
* Fired when the component routing to has finished animating.
|
|
13
|
+
*/
|
|
14
|
+
ionViewDidEnter(): void;
|
|
15
|
+
}
|
|
16
|
+
export interface ViewWillLeave {
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the component routing from is about to animate.
|
|
19
|
+
*/
|
|
20
|
+
ionViewWillLeave(): void;
|
|
21
|
+
}
|
|
22
|
+
export interface ViewDidLeave {
|
|
23
|
+
/**
|
|
24
|
+
* Fired when the component routing to has finished animating.
|
|
25
|
+
*/
|
|
26
|
+
ionViewDidLeave(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ionic-lifecycle-hooks.js","sourceRoot":"","sources":["../../../src/common/types/ionic-lifecycle-hooks.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Injector } from '@angular/core';
|
|
2
|
+
import type { ComponentRef, ModalOptions as CoreModalOptions, PopoverOptions as CorePopoverOptions } from '@ionic/core/components';
|
|
3
|
+
/**
|
|
4
|
+
* Modal options with Angular-specific injector support.
|
|
5
|
+
* Extends @ionic/core ModalOptions with an optional injector property.
|
|
6
|
+
*/
|
|
7
|
+
export type ModalOptions<T extends ComponentRef = ComponentRef> = CoreModalOptions<T> & {
|
|
8
|
+
injector?: Injector;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Popover options with Angular-specific injector support.
|
|
12
|
+
* Extends @ionic/core PopoverOptions with an optional injector property.
|
|
13
|
+
*/
|
|
14
|
+
export type PopoverOptions<T extends ComponentRef = ComponentRef> = CorePopoverOptions<T> & {
|
|
15
|
+
injector?: Injector;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-options.js","sourceRoot":"","sources":["../../../src/common/types/overlay-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ControllerShape<Opts, HTMLElm> {
|
|
2
|
+
create(options: Opts): Promise<HTMLElm>;
|
|
3
|
+
dismiss(data?: any, role?: string, id?: string): Promise<boolean>;
|
|
4
|
+
getTop(): Promise<HTMLElm | undefined>;
|
|
5
|
+
}
|
|
6
|
+
export declare class OverlayBaseController<Opts, Overlay> implements ControllerShape<Opts, Overlay> {
|
|
7
|
+
private ctrl;
|
|
8
|
+
constructor(ctrl: ControllerShape<Opts, Overlay>);
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new overlay
|
|
11
|
+
*/
|
|
12
|
+
create(opts?: Opts): Promise<Overlay>;
|
|
13
|
+
/**
|
|
14
|
+
* When `id` is not provided, it dismisses the top overlay.
|
|
15
|
+
*/
|
|
16
|
+
dismiss(data?: any, role?: string, id?: string): Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the top overlay.
|
|
19
|
+
*/
|
|
20
|
+
getTop(): Promise<Overlay | undefined>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// TODO(FW-2827): types
|
|
2
|
+
export class OverlayBaseController {
|
|
3
|
+
ctrl;
|
|
4
|
+
constructor(ctrl) {
|
|
5
|
+
this.ctrl = ctrl;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new overlay
|
|
9
|
+
*/
|
|
10
|
+
create(opts) {
|
|
11
|
+
return this.ctrl.create((opts || {}));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* When `id` is not provided, it dismisses the top overlay.
|
|
15
|
+
*/
|
|
16
|
+
dismiss(data, role, id) {
|
|
17
|
+
return this.ctrl.dismiss(data, role, id);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns the top overlay.
|
|
21
|
+
*/
|
|
22
|
+
getTop() {
|
|
23
|
+
return this.ctrl.getTop();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=overlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.js","sourceRoot":"","sources":["../../../src/common/utils/overlay.ts"],"names":[],"mappings":"AAAA,uBAAuB;AAQvB,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,IAAoC;QAApC,SAAI,GAAJ,IAAI,CAAgC;IAAG,CAAC;IAE5D;;OAEG;IACH,MAAM,CAAC,IAAW;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,IAAI,EAAE,CAAQ,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,IAAU,EAAE,IAAa,EAAE,EAAW;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
+
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
+
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
+
export declare function ProxyCmp(opts: {
|
|
5
|
+
defineCustomElementFn?: () => void;
|
|
6
|
+
inputs?: any;
|
|
7
|
+
methods?: any;
|
|
8
|
+
}): (cls: any) => any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// TODO: Is there a way we can grab this from angular-component-lib instead?
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
import { fromEvent } from 'rxjs';
|
|
5
|
+
export const proxyInputs = (Cmp, inputs) => {
|
|
6
|
+
const Prototype = Cmp.prototype;
|
|
7
|
+
inputs.forEach((item) => {
|
|
8
|
+
Object.defineProperty(Prototype, item, {
|
|
9
|
+
get() {
|
|
10
|
+
return this.el[item];
|
|
11
|
+
},
|
|
12
|
+
set(val) {
|
|
13
|
+
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export const proxyMethods = (Cmp, methods) => {
|
|
19
|
+
const Prototype = Cmp.prototype;
|
|
20
|
+
methods.forEach((methodName) => {
|
|
21
|
+
Prototype[methodName] = function () {
|
|
22
|
+
const args = arguments;
|
|
23
|
+
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export const proxyOutputs = (instance, el, events) => {
|
|
28
|
+
events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
|
|
29
|
+
};
|
|
30
|
+
// tslint:disable-next-line: only-arrow-functions
|
|
31
|
+
export function ProxyCmp(opts) {
|
|
32
|
+
const decorator = function (cls) {
|
|
33
|
+
const { defineCustomElementFn, inputs, methods } = opts;
|
|
34
|
+
if (defineCustomElementFn !== undefined) {
|
|
35
|
+
defineCustomElementFn();
|
|
36
|
+
}
|
|
37
|
+
if (inputs) {
|
|
38
|
+
proxyInputs(cls, inputs);
|
|
39
|
+
}
|
|
40
|
+
if (methods) {
|
|
41
|
+
proxyMethods(cls, methods);
|
|
42
|
+
}
|
|
43
|
+
return cls;
|
|
44
|
+
};
|
|
45
|
+
return decorator;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../../src/common/utils/proxy.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,oBAAoB;AACpB,oBAAoB;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,EAAE,EAAE;IACxD,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IAChC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACtB,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG;gBACD,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,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AAC;QAED,IAAI,MAAM,EAAE,CAAC;YACX,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC3B,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;IACF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';
|
|
2
|
+
/**
|
|
3
|
+
* Provides a way to customize when activated routes get reused.
|
|
4
|
+
*/
|
|
5
|
+
export declare class IonicRouteStrategy implements RouteReuseStrategy {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the given route should detach for later reuse.
|
|
8
|
+
*/
|
|
9
|
+
shouldDetach(_route: ActivatedRouteSnapshot): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Returns `false`, meaning the route (and its subtree) is never reattached
|
|
12
|
+
*/
|
|
13
|
+
shouldAttach(_route: ActivatedRouteSnapshot): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* A no-op; the route is never stored since this strategy never detaches routes for later re-use.
|
|
16
|
+
*/
|
|
17
|
+
store(_route: ActivatedRouteSnapshot, _detachedTree: DetachedRouteHandle): void;
|
|
18
|
+
/**
|
|
19
|
+
* Returns `null` because this strategy does not store routes for later re-use.
|
|
20
|
+
*/
|
|
21
|
+
retrieve(_route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
|
|
22
|
+
/**
|
|
23
|
+
* Determines if a route should be reused.
|
|
24
|
+
* This strategy returns `true` when the future route config and
|
|
25
|
+
* current route config are identical and all route parameters are identical.
|
|
26
|
+
*/
|
|
27
|
+
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides a way to customize when activated routes get reused.
|
|
3
|
+
*/
|
|
4
|
+
export class IonicRouteStrategy {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the given route should detach for later reuse.
|
|
7
|
+
*/
|
|
8
|
+
shouldDetach(_route) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns `false`, meaning the route (and its subtree) is never reattached
|
|
13
|
+
*/
|
|
14
|
+
shouldAttach(_route) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A no-op; the route is never stored since this strategy never detaches routes for later re-use.
|
|
19
|
+
*/
|
|
20
|
+
store(_route, _detachedTree) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns `null` because this strategy does not store routes for later re-use.
|
|
25
|
+
*/
|
|
26
|
+
retrieve(_route) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Determines if a route should be reused.
|
|
31
|
+
* This strategy returns `true` when the future route config and
|
|
32
|
+
* current route config are identical and all route parameters are identical.
|
|
33
|
+
*/
|
|
34
|
+
shouldReuseRoute(future, curr) {
|
|
35
|
+
if (future.routeConfig !== curr.routeConfig) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
// checking router params
|
|
39
|
+
const futureParams = future.params;
|
|
40
|
+
const currentParams = curr.params;
|
|
41
|
+
const keysA = Object.keys(futureParams);
|
|
42
|
+
const keysB = Object.keys(currentParams);
|
|
43
|
+
if (keysA.length !== keysB.length) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
// Test for A's keys different from B.
|
|
47
|
+
for (const key of keysA) {
|
|
48
|
+
if (currentParams[key] !== futureParams[key]) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.js","sourceRoot":"","sources":["../../../src/common/utils/routing.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAC7B;;OAEG;IACH,YAAY,CAAC,MAA8B;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,MAA8B;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAA8B,EAAE,aAAkC;QACtE,OAAO;IACT,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAA8B;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CAAC,MAA8B,EAAE,IAA4B;QAC3E,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;YAC5C,OAAO,KAAK,CAAC;QACf,CAAC;QAED,yBAAyB;QACzB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;QACnC,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC;QAClC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEzC,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,sCAAsC;QACtC,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;YACxB,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC7C,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const raf: (h: any) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const raf = (h) => {
|
|
2
|
+
if (typeof __zone_symbol__requestAnimationFrame === 'function') {
|
|
3
|
+
return __zone_symbol__requestAnimationFrame(h);
|
|
4
|
+
}
|
|
5
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
6
|
+
return requestAnimationFrame(h);
|
|
7
|
+
}
|
|
8
|
+
return setTimeout(h);
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/common/utils/util.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAM,EAAO,EAAE;IACjC,IAAI,OAAO,oCAAoC,KAAK,UAAU,EAAE,CAAC;QAC/D,OAAO,oCAAoC,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,IAAI,OAAO,qBAAqB,KAAK,UAAU,EAAE,CAAC;QAChD,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { raf } from '@ionic/angular/common';
|
|
2
|
+
import { setupConfig } from '@ionic/core';
|
|
3
|
+
import { defineCustomElements } from '@ionic/core/loader';
|
|
4
|
+
// TODO(FW-2827): types
|
|
5
|
+
export const appInitialize = (config, doc, zone) => {
|
|
6
|
+
return () => {
|
|
7
|
+
const win = doc.defaultView;
|
|
8
|
+
if (win && typeof window !== 'undefined') {
|
|
9
|
+
setupConfig({
|
|
10
|
+
...config,
|
|
11
|
+
_zoneGate: (h) => zone.run(h),
|
|
12
|
+
});
|
|
13
|
+
const aelFn = '__zone_symbol__addEventListener' in doc.body ? '__zone_symbol__addEventListener' : 'addEventListener';
|
|
14
|
+
return defineCustomElements(win, {
|
|
15
|
+
exclude: ['ion-tabs'],
|
|
16
|
+
syncQueue: true,
|
|
17
|
+
raf,
|
|
18
|
+
jmp: (h) => zone.runOutsideAngular(h),
|
|
19
|
+
ael(elm, eventName, cb, opts) {
|
|
20
|
+
elm[aelFn](eventName, cb, opts);
|
|
21
|
+
},
|
|
22
|
+
rel(elm, eventName, cb, opts) {
|
|
23
|
+
elm.removeEventListener(eventName, cb, opts);
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=app-initialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-initialize.js","sourceRoot":"","sources":["../../src/lazy/app-initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,uBAAuB;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,GAAa,EAAE,IAAY,EAAE,EAAE;IAC3E,OAAO,GAAQ,EAAE;QACf,MAAM,GAAG,GAA4B,GAAG,CAAC,WAAkB,CAAC;QAC5D,IAAI,GAAG,IAAI,OAAQ,MAAc,KAAK,WAAW,EAAE,CAAC;YAClD,WAAW,CAAC;gBACV,GAAG,MAAM;gBACT,SAAS,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;aACnC,CAAC,CAAC;YAEH,MAAM,KAAK,GACT,iCAAiC,IAAK,GAAG,CAAC,IAAY,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,kBAAkB,CAAC;YAElH,OAAO,oBAAoB,CAAC,GAAG,EAAE;gBAC/B,OAAO,EAAE,CAAC,UAAU,CAAC;gBACrB,SAAS,EAAE,IAAI;gBACf,GAAG;gBACH,GAAG,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC1C,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI;oBACzB,GAAW,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBACD,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI;oBAC1B,GAAG,CAAC,mBAAmB,CAAC,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;gBAC/C,CAAC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
+
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
+
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
5
|
+
export declare function ProxyCmp(opts: {
|
|
6
|
+
defineCustomElementFn?: () => void;
|
|
7
|
+
inputs?: any;
|
|
8
|
+
methods?: any;
|
|
9
|
+
}): (cls: any) => any;
|