@ionic/core 8.3.1-dev.11726258029.1014159b → 8.3.1-dev.11727904181.1070a434
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/components/alert.js +2 -1
- package/components/animation.js +1 -1
- package/components/button.js +1 -2
- package/components/capacitor.js +1 -1
- package/components/config2.js +79 -0
- package/components/data.js +1 -1
- package/components/focus-visible.js +8 -1
- package/components/framework-delegate.js +3 -1
- package/components/helpers.js +1 -1
- package/components/index2.js +2 -2
- package/components/index4.js +1 -4
- package/components/index5.js +27 -3
- package/components/index6.js +114 -20
- package/components/index7.js +163 -27
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +1 -2
- package/components/ion-accordion-group.js +1 -2
- package/components/ion-accordion.js +3 -2
- package/components/ion-app.js +7 -75
- package/components/ion-back-button.js +3 -2
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -2
- package/components/ion-datetime.js +2 -3
- package/components/ion-fab-button.js +1 -1
- package/components/ion-footer.js +4 -4
- package/components/ion-header.js +5 -5
- package/components/ion-infinite-scroll-content.js +2 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-password-toggle.js +2 -3
- package/components/ion-input.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -1
- package/components/ion-menu-button.js +3 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -4
- package/components/ion-nav.js +2 -2
- package/components/ion-picker-legacy.js +1 -2
- package/components/ion-progress-bar.js +2 -1
- package/components/ion-range.js +2 -3
- package/components/ion-refresher-content.js +3 -2
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-outlet.js +2 -1
- package/components/ion-searchbar.js +3 -2
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +2 -1
- package/components/ion-tab-button.js +2 -1
- package/components/ion-toast.js +2 -3
- package/components/ion-toggle.js +3 -2
- package/components/ionic-global.js +215 -72
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +2 -2
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +3 -5
- package/components/picker-column.js +1 -2
- package/components/popover.js +1 -2
- package/components/spinner.js +2 -1
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-b4fdf128.js → animation-79f60b24.js} +2 -2
- package/dist/cjs/{app-globals-9d795e44.js → app-globals-da858d53.js} +1 -1
- package/dist/cjs/{button-active-4115dc12.js → button-active-d92fdc20.js} +2 -2
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-6d32aa8f.js} +3 -3
- package/dist/cjs/config-aff4ff52.js +84 -0
- package/dist/cjs/{data-21dc0f81.js → data-5e41413c.js} +3 -3
- package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
- package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-dd8c8308.js} +4 -2
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-48302ce8.js} +1 -1
- package/dist/cjs/{helpers-afaa9001.js → helpers-acd6c477.js} +1 -1
- package/dist/cjs/{index-248835d7.js → index-36089f7c.js} +7 -10
- package/dist/cjs/{index-5b6a7459.js → index-4c1435d8.js} +3 -3
- package/dist/cjs/{index-42dd5e74.js → index-b9e25ecd.js} +2 -8
- package/dist/cjs/{index-9509ecad.js → index-c66a0972.js} +9 -7
- package/dist/cjs/{index-44dacdce.js → index-e391e4f0.js} +12 -12
- package/dist/cjs/index.cjs.js +11 -13
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-6e96b5d0.js} +18 -17
- package/dist/cjs/{input.utils-611cde0b.js → input.utils-3f4f0242.js} +4 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -12
- package/dist/cjs/ion-alert.cjs.entry.js +13 -15
- package/dist/cjs/ion-app_8.cjs.entry.js +36 -105
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +8 -7
- package/dist/cjs/ion-backdrop.cjs.entry.js +3 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-button_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-card_5.cjs.entry.js +4 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +4 -3
- package/dist/cjs/ion-chip.cjs.entry.js +3 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +9 -9
- package/dist/cjs/ion-datetime_3.cjs.entry.js +97 -99
- package/dist/cjs/ion-fab_3.cjs.entry.js +4 -3
- package/dist/cjs/ion-img.cjs.entry.js +4 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +9 -9
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +8 -8
- package/dist/cjs/ion-input.cjs.entry.js +6 -7
- package/dist/cjs/ion-item-option_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-item_8.cjs.entry.js +5 -4
- package/dist/cjs/ion-loading.cjs.entry.js +11 -13
- package/dist/cjs/ion-menu_3.cjs.entry.js +12 -14
- package/dist/cjs/ion-modal.cjs.entry.js +52 -54
- package/dist/cjs/ion-nav_2.cjs.entry.js +10 -10
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +11 -13
- package/dist/cjs/ion-progress-bar.cjs.entry.js +5 -4
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-range.cjs.entry.js +10 -10
- package/dist/cjs/ion-refresher_2.cjs.entry.js +14 -15
- package/dist/cjs/ion-reorder_2.cjs.entry.js +7 -8
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +6 -5
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -9
- package/dist/cjs/ion-spinner.cjs.entry.js +5 -4
- package/dist/cjs/ion-split-pane.cjs.entry.js +3 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-tab_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-text.cjs.entry.js +3 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +6 -7
- package/dist/cjs/ion-toast.cjs.entry.js +35 -37
- package/dist/cjs/ion-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ionic-global-e4b78f51.js +387 -0
- package/dist/cjs/ionic.cjs.js +5 -4
- package/dist/cjs/{ios.transition-c28ff3cc.js → ios.transition-ecdbe79a.js} +6 -7
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-5494d9e7.js} +5 -3
- package/dist/cjs/{keyboard-0272231f.js → keyboard-9c8c3373.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-3534c452.js} +9 -9
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{md.transition-01295b30.js → md.transition-a2dbb62b.js} +6 -7
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-b0da1dbc.js} +4 -4
- package/dist/cjs/{overlays-76ac42e7.js → overlays-2847add7.js} +17 -19
- package/dist/cjs/{status-tap-75c3a35d.js → status-tap-8d61febd.js} +5 -4
- package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-13234294.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app/app.js +5 -75
- package/dist/collection/components/content/content.js +1 -1
- package/dist/collection/components/footer/footer.js +3 -3
- package/dist/collection/components/header/header.js +4 -4
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +1 -1
- package/dist/collection/global/ionic-global.js +70 -1
- package/dist/collection/utils/focus-visible.js +7 -0
- package/dist/collection/utils/framework-delegate.js +3 -1
- package/dist/collection/utils/helpers.js +1 -1
- package/dist/collection/utils/keyboard/keyboard-controller.js +1 -1
- package/dist/collection/utils/overlays.js +1 -1
- package/dist/docs.json +109 -109
- package/dist/esm/{animation-eab5a4ca.js → animation-d5c468e5.js} +1 -1
- package/dist/esm/{app-globals-cef8aa6d.js → app-globals-b335b996.js} +1 -1
- package/dist/esm/{button-active-6700b8ee.js → button-active-f09c355a.js} +2 -2
- package/dist/esm/{capacitor-59395cbd.js → capacitor-1c6a7fef.js} +1 -1
- package/dist/esm/config-84eb9670.js +79 -0
- package/dist/esm/{data-ae11fd43.js → data-19c43db4.js} +1 -1
- package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
- package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-99a12a5b.js} +4 -2
- package/dist/esm/{haptic-ac164e4c.js → haptic-b7d0305a.js} +1 -1
- package/dist/esm/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
- package/dist/esm/{index-deb1a83e.js → index-36b10f9a.js} +3 -6
- package/dist/esm/{index-42907296.js → index-39f85469.js} +6 -6
- package/dist/esm/{index-3ed04e6d.js → index-4e02bb5d.js} +2 -8
- package/{components/index9.js → dist/esm/index-83a2d51b.js} +4 -2
- package/dist/esm/{index-5cc724f3.js → index-c2e9334e.js} +2 -2
- package/dist/esm/index.js +11 -13
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-876f0204.js} +7 -6
- package/dist/esm/{input.utils-09c71bc7.js → input.utils-26068718.js} +2 -3
- package/dist/esm/ion-accordion_2.entry.js +4 -4
- package/dist/esm/ion-action-sheet.entry.js +10 -12
- package/dist/esm/ion-alert.entry.js +10 -12
- package/dist/esm/ion-app_8.entry.js +23 -92
- package/dist/esm/ion-avatar_3.entry.js +3 -2
- package/dist/esm/ion-back-button.entry.js +4 -3
- package/dist/esm/ion-backdrop.entry.js +3 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +4 -3
- package/dist/esm/ion-button_2.entry.js +4 -4
- package/dist/esm/ion-card_5.entry.js +4 -3
- package/dist/esm/ion-checkbox.entry.js +4 -3
- package/dist/esm/ion-chip.entry.js +3 -2
- package/dist/esm/ion-col_3.entry.js +3 -2
- package/dist/esm/ion-datetime-button.entry.js +5 -5
- package/dist/esm/ion-datetime_3.entry.js +11 -13
- package/dist/esm/ion-fab_3.entry.js +4 -3
- package/dist/esm/ion-img.entry.js +4 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
- package/dist/esm/ion-input-password-toggle.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +6 -7
- package/dist/esm/ion-item-option_3.entry.js +5 -5
- package/dist/esm/ion-item_8.entry.js +4 -3
- package/dist/esm/ion-loading.entry.js +7 -9
- package/dist/esm/ion-menu_3.entry.js +8 -10
- package/dist/esm/ion-modal.entry.js +12 -14
- package/dist/esm/ion-nav_2.entry.js +7 -7
- package/dist/esm/ion-picker-column-option.entry.js +4 -3
- package/dist/esm/ion-picker-column.entry.js +6 -6
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -10
- package/dist/esm/ion-progress-bar.entry.js +4 -3
- package/dist/esm/ion-radio_2.entry.js +4 -3
- package/dist/esm/ion-range.entry.js +5 -5
- package/dist/esm/ion-refresher_2.entry.js +8 -9
- package/dist/esm/ion-reorder_2.entry.js +7 -8
- package/dist/esm/ion-ripple-effect.entry.js +3 -2
- package/dist/esm/ion-route_4.entry.js +4 -3
- package/dist/esm/ion-searchbar.entry.js +4 -3
- package/dist/esm/ion-segment_2.entry.js +4 -3
- package/dist/esm/ion-select_3.entry.js +7 -9
- package/dist/esm/ion-spinner.entry.js +3 -2
- package/dist/esm/ion-split-pane.entry.js +3 -2
- package/dist/esm/ion-tab-bar_2.entry.js +7 -7
- package/dist/esm/ion-tab_2.entry.js +4 -3
- package/dist/esm/ion-text.entry.js +3 -2
- package/dist/esm/ion-textarea.entry.js +6 -7
- package/dist/esm/ion-toast.entry.js +7 -9
- package/dist/esm/ion-toggle.entry.js +6 -6
- package/dist/esm/ionic-global-1b15603f.js +374 -0
- package/dist/esm/ionic.js +6 -5
- package/dist/esm/{ios.transition-903646a5.js → ios.transition-18317bbc.js} +6 -7
- package/dist/esm/{keyboard-73175e24.js → keyboard-8fb7a65a.js} +1 -1
- package/dist/esm/{keyboard-52278bd7.js → keyboard-bdec136d.js} +5 -3
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-12d10050.js} +3 -3
- package/dist/esm/loader.js +5 -4
- package/dist/esm/{md.transition-92c7f8a6.js → md.transition-8661f3c2.js} +6 -7
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-39833b21.js} +2 -2
- package/dist/esm/{overlays-d1a2f8a8.js → overlays-5d12569d.js} +5 -7
- package/dist/esm/{status-tap-97e323a9.js → status-tap-e6919a78.js} +5 -4
- package/dist/esm/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
- package/dist/esm-es5/animation-d5c468e5.js +4 -0
- package/dist/esm-es5/app-globals-b335b996.js +4 -0
- package/dist/esm-es5/{button-active-6700b8ee.js → button-active-f09c355a.js} +1 -1
- package/dist/esm-es5/capacitor-1c6a7fef.js +4 -0
- package/dist/esm-es5/config-84eb9670.js +4 -0
- package/dist/esm-es5/data-19c43db4.js +4 -0
- package/dist/esm-es5/focus-visible-501aff19.js +4 -0
- package/dist/esm-es5/framework-delegate-99a12a5b.js +4 -0
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-b7d0305a.js} +1 -1
- package/dist/esm-es5/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
- package/dist/esm-es5/index-36b10f9a.js +4 -0
- package/dist/esm-es5/index-39f85469.js +4 -0
- package/dist/esm-es5/index-4e02bb5d.js +5 -0
- package/dist/esm-es5/{index-79b30591.js → index-83a2d51b.js} +1 -1
- package/dist/esm-es5/index-c2e9334e.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-876f0204.js +4 -0
- package/dist/esm-es5/input.utils-26068718.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-1b15603f.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-18317bbc.js +4 -0
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-8fb7a65a.js} +1 -1
- package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-bdec136d.js} +1 -1
- package/dist/esm-es5/keyboard-controller-12d10050.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-8661f3c2.js +4 -0
- package/dist/esm-es5/notch-controller-39833b21.js +4 -0
- package/dist/esm-es5/overlays-5d12569d.js +4 -0
- package/dist/esm-es5/status-tap-e6919a78.js +4 -0
- package/dist/esm-es5/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
- package/dist/html.html-data.json +102 -102
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-99859f95.entry.js → p-09854f4b.entry.js} +1 -1
- package/dist/ionic/{p-4029255b.system.entry.js → p-0a89309d.system.entry.js} +1 -1
- package/dist/ionic/p-0b5267e0.entry.js +4 -0
- package/dist/ionic/{p-34b11c24.js → p-0b5401b5.js} +1 -1
- package/dist/ionic/p-0cdf3f2d.entry.js +4 -0
- package/dist/ionic/{p-abc5c0a4.system.entry.js → p-0fe43136.system.entry.js} +1 -1
- package/dist/ionic/p-11350afc.system.entry.js +4 -0
- package/dist/ionic/p-13a18cd1.entry.js +4 -0
- package/dist/ionic/{p-e8cc3bad.js → p-177c643a.js} +1 -1
- package/dist/ionic/p-17c019eb.system.js +4 -0
- package/dist/ionic/p-17cd5ba5.system.entry.js +4 -0
- package/dist/ionic/p-184ba459.system.entry.js +4 -0
- package/dist/ionic/p-1ec593ec.system.js +4 -0
- package/dist/ionic/p-1ff45220.system.js +4 -0
- package/dist/ionic/{p-c7e16491.js → p-20709fa2.js} +1 -1
- package/dist/ionic/p-22508aa1.system.entry.js +4 -0
- package/dist/ionic/p-22f10183.entry.js +4 -0
- package/dist/ionic/p-2388c346.entry.js +4 -0
- package/dist/ionic/p-23f5b42c.js +4 -0
- package/dist/ionic/p-2904da21.system.entry.js +4 -0
- package/dist/ionic/p-2a76429e.entry.js +4 -0
- package/dist/ionic/{p-192e07b1.system.entry.js → p-2d4c3128.system.entry.js} +1 -1
- package/dist/ionic/{p-b51e4004.js → p-2f5f9e37.js} +1 -1
- package/dist/ionic/p-33cc976b.system.js +4 -0
- package/dist/ionic/{p-5d5d5073.entry.js → p-341bd749.entry.js} +1 -1
- package/dist/ionic/p-344c665e.system.js +4 -0
- package/dist/ionic/p-37c86134.entry.js +4 -0
- package/dist/ionic/p-38244569.js +4 -0
- package/dist/ionic/p-3c1bc308.system.entry.js +4 -0
- package/dist/ionic/p-3d7c07b2.system.entry.js +4 -0
- package/dist/ionic/p-4188687b.js +4 -0
- package/dist/ionic/p-4459a66e.system.js +4 -0
- package/dist/ionic/p-450d0781.system.entry.js +4 -0
- package/dist/ionic/p-46787abb.system.js +4 -0
- package/dist/ionic/p-4713a52c.system.entry.js +4 -0
- package/dist/ionic/{p-f687573e.system.js → p-4791ab9e.system.js} +1 -1
- package/dist/ionic/p-47ce4a4b.entry.js +4 -0
- package/dist/ionic/p-487a3ae7.system.js +5 -0
- package/dist/ionic/p-49fb3aaf.js +4 -0
- package/dist/ionic/p-4b4bcb80.system.js +4 -0
- package/dist/ionic/p-4b528ed3.js +5 -0
- package/dist/ionic/p-4c1581a8.entry.js +4 -0
- package/dist/ionic/p-4c9b78f8.system.js +4 -0
- package/dist/ionic/p-4d85f5ea.js +4 -0
- package/dist/ionic/{p-3ad285e3.system.js → p-4e970f1c.system.js} +1 -1
- package/dist/ionic/p-4fce1c54.entry.js +4 -0
- package/dist/ionic/p-4feedef0.entry.js +4 -0
- package/dist/ionic/p-51f29267.system.entry.js +4 -0
- package/dist/ionic/p-5266cfc8.system.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-528e2d72.js} +1 -1
- package/dist/ionic/p-5348700b.entry.js +4 -0
- package/dist/ionic/p-536c3136.entry.js +4 -0
- package/dist/ionic/p-541f00c3.system.entry.js +4 -0
- package/dist/ionic/p-54cb772e.system.entry.js +4 -0
- package/dist/ionic/p-55dc854e.entry.js +4 -0
- package/dist/ionic/{p-14616c10.system.entry.js → p-56947de2.system.entry.js} +2 -2
- package/dist/ionic/p-574f568b.entry.js +4 -0
- package/dist/ionic/p-5bc27ad2.system.entry.js +4 -0
- package/dist/ionic/p-5ce35a03.js +4 -0
- package/dist/ionic/p-5e61ae2f.entry.js +4 -0
- package/dist/ionic/{p-2e5ee828.system.entry.js → p-64eb70c2.system.entry.js} +1 -1
- package/dist/ionic/p-656b9e5a.system.entry.js +4 -0
- package/dist/ionic/p-672431ae.entry.js +4 -0
- package/dist/ionic/p-6874be0f.js +4 -0
- package/dist/ionic/p-689d58a0.entry.js +4 -0
- package/dist/ionic/p-69746792.js +4 -0
- package/dist/ionic/p-6bf1b7c4.entry.js +4 -0
- package/dist/ionic/p-7071d7ca.js +4 -0
- package/dist/ionic/p-7163c868.system.entry.js +4 -0
- package/dist/ionic/p-721f704b.system.entry.js +4 -0
- package/dist/ionic/p-74da1bee.entry.js +4 -0
- package/dist/ionic/{p-30482ed4.system.js → p-7585d52f.system.js} +1 -1
- package/dist/ionic/p-76978bf3.system.entry.js +4 -0
- package/dist/ionic/{p-a93873de.system.js → p-76f6c195.system.js} +1 -1
- package/dist/ionic/p-7723bb75.system.entry.js +4 -0
- package/dist/ionic/p-77aab69d.js +4 -0
- package/dist/ionic/p-78d1ee98.system.entry.js +4 -0
- package/dist/ionic/p-7a8b6f72.entry.js +4 -0
- package/dist/ionic/p-7ab96568.entry.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-81fd74b8.js} +1 -1
- package/dist/ionic/p-878d8bbf.system.entry.js +4 -0
- package/dist/ionic/p-87a7b9ee.entry.js +4 -0
- package/dist/ionic/p-88a5925d.system.entry.js +4 -0
- package/dist/ionic/p-897fba2c.system.js +4 -0
- package/dist/ionic/{p-3447e604.system.entry.js → p-8d0a3bf5.system.entry.js} +1 -1
- package/dist/ionic/p-8f84ac87.system.entry.js +4 -0
- package/dist/ionic/p-901f2d60.system.entry.js +4 -0
- package/dist/ionic/p-92341215.system.js +4 -0
- package/dist/ionic/{p-1ca23ae9.system.entry.js → p-9538ca4d.system.entry.js} +2 -2
- package/dist/ionic/{p-d60342e3.js → p-95612c80.js} +1 -1
- package/dist/ionic/p-96ac6d73.system.js +4 -0
- package/dist/ionic/p-9a4236ab.entry.js +4 -0
- package/dist/ionic/p-9a8d7f70.entry.js +4 -0
- package/dist/ionic/p-9c1f23e6.system.entry.js +4 -0
- package/dist/ionic/p-9ce54ee5.entry.js +4 -0
- package/dist/ionic/p-9e4c3c31.system.entry.js +4 -0
- package/dist/ionic/p-9eb6c3e7.js +4 -0
- package/dist/ionic/p-9f05ff02.system.entry.js +4 -0
- package/dist/ionic/p-9f5e0684.system.js +4 -0
- package/dist/ionic/p-a013baec.entry.js +4 -0
- package/dist/ionic/p-a1d2be12.entry.js +4 -0
- package/dist/ionic/p-a44b565f.js +4 -0
- package/dist/ionic/p-a44dbc72.js +4 -0
- package/dist/ionic/p-a4f9181a.entry.js +4 -0
- package/dist/ionic/p-a5b8c4f3.entry.js +4 -0
- package/dist/ionic/p-a8a2a8a9.js +4 -0
- package/dist/ionic/p-a8cb7d8a.system.entry.js +4 -0
- package/dist/ionic/p-aaccafc3.entry.js +4 -0
- package/dist/ionic/p-aba574e0.system.entry.js +4 -0
- package/dist/ionic/p-ad074a8f.system.entry.js +4 -0
- package/dist/ionic/p-b321e219.system.entry.js +4 -0
- package/dist/ionic/{p-f36c9945.system.entry.js → p-b32203b0.system.entry.js} +2 -2
- package/dist/ionic/{p-9146695e.system.js → p-b3833aff.system.js} +1 -1
- package/dist/ionic/p-b3e99367.entry.js +4 -0
- package/dist/ionic/p-b6905606.entry.js +4 -0
- package/dist/ionic/p-b824f2ea.system.entry.js +4 -0
- package/dist/ionic/{p-06e58c4e.js → p-b82e4cfd.js} +1 -1
- package/dist/ionic/{p-c8e78b70.system.entry.js → p-b9665bf2.system.entry.js} +1 -1
- package/dist/ionic/p-b9f902b7.entry.js +4 -0
- package/dist/ionic/p-b9fc56ce.entry.js +4 -0
- package/dist/ionic/p-bc59161e.entry.js +4 -0
- package/dist/ionic/p-c0122ce8.entry.js +4 -0
- package/dist/ionic/p-c5cebd06.entry.js +4 -0
- package/dist/ionic/p-c6753166.system.js +4 -0
- package/dist/ionic/p-c9e87960.entry.js +4 -0
- package/dist/ionic/p-cd5487d5.entry.js +4 -0
- package/dist/ionic/p-d023db0e.system.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-d17dc9b4.system.js} +1 -1
- package/dist/ionic/{p-42f9a951.system.entry.js → p-d26214cb.system.entry.js} +1 -1
- package/dist/ionic/p-d635a135.system.entry.js +4 -0
- package/dist/ionic/p-d88bc366.entry.js +4 -0
- package/dist/ionic/p-d8a8873e.system.entry.js +4 -0
- package/dist/ionic/p-d9484ea5.entry.js +4 -0
- package/dist/ionic/p-da21e199.system.entry.js +4 -0
- package/dist/ionic/p-da8a14d0.entry.js +4 -0
- package/dist/ionic/p-dbf3a161.js +4 -0
- package/dist/ionic/{p-19ea7bff.system.js → p-dc971e94.system.js} +1 -1
- package/dist/ionic/p-ddeea474.system.entry.js +4 -0
- package/dist/ionic/p-dfc198fc.system.entry.js +4 -0
- package/dist/ionic/p-e285f90c.js +4 -0
- package/dist/ionic/p-e2f8cbe8.entry.js +4 -0
- package/dist/ionic/p-e48ecc9d.system.js +4 -0
- package/dist/ionic/p-e72b1a16.js +4 -0
- package/dist/ionic/p-e7deea0b.system.entry.js +4 -0
- package/dist/ionic/{p-91d713b7.system.entry.js → p-ec46d513.system.entry.js} +1 -1
- package/dist/ionic/p-ef67ccf4.system.js +4 -0
- package/dist/ionic/p-f2b51129.entry.js +4 -0
- package/dist/ionic/p-f3f7f713.js +4 -0
- package/dist/ionic/{p-0f9c24fe.system.js → p-f53e472e.system.js} +1 -1
- package/dist/ionic/{p-1d524f20.system.js → p-f9d31dea.system.js} +1 -1
- package/dist/ionic/{p-8985cdb6.system.js → p-fcfdf30d.system.js} +1 -1
- package/dist/ionic/p-ffee07a5.entry.js +4 -0
- package/dist/types/components/app/app.d.ts +0 -2
- package/dist/types/global/ionic-global.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -4
- package/dist/types/utils/config.d.ts +1 -0
- package/dist/types/utils/focus-visible.d.ts +1 -0
- package/hydrate/index.d.ts +0 -6
- package/hydrate/index.js +385 -514
- package/hydrate/index.mjs +385 -514
- package/package.json +2 -2
- package/components/hardware-back-button.js +0 -115
- package/components/index8.js +0 -128
- package/dist/cjs/hardware-back-button-35a9ebdb.js +0 -122
- package/dist/cjs/index-5915f9b3.js +0 -38
- package/dist/cjs/index-c8d52405.js +0 -10
- package/dist/cjs/ionic-global-2fc6b860.js +0 -237
- package/dist/esm/hardware-back-button-3dd2cf5a.js +0 -116
- package/dist/esm/index-79b30591.js +0 -167
- package/dist/esm/index-9b0d46f4.js +0 -34
- package/dist/esm/index-a5d50daf.js +0 -7
- package/dist/esm/ionic-global-aba82484.js +0 -231
- package/dist/esm-es5/animation-eab5a4ca.js +0 -4
- package/dist/esm-es5/app-globals-cef8aa6d.js +0 -4
- package/dist/esm-es5/capacitor-59395cbd.js +0 -4
- package/dist/esm-es5/data-ae11fd43.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/framework-delegate-63d1a679.js +0 -4
- package/dist/esm-es5/hardware-back-button-3dd2cf5a.js +0 -4
- package/dist/esm-es5/index-3ed04e6d.js +0 -5
- package/dist/esm-es5/index-42907296.js +0 -4
- package/dist/esm-es5/index-5cc724f3.js +0 -4
- package/dist/esm-es5/index-9b0d46f4.js +0 -4
- package/dist/esm-es5/index-a5d50daf.js +0 -4
- package/dist/esm-es5/index-deb1a83e.js +0 -4
- package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
- package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
- package/dist/esm-es5/ionic-global-aba82484.js +0 -4
- package/dist/esm-es5/ios.transition-903646a5.js +0 -4
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
- package/dist/esm-es5/md.transition-92c7f8a6.js +0 -4
- package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
- package/dist/esm-es5/overlays-d1a2f8a8.js +0 -4
- package/dist/esm-es5/status-tap-97e323a9.js +0 -4
- package/dist/ionic/p-0047371d.system.entry.js +0 -4
- package/dist/ionic/p-019fe44c.system.entry.js +0 -4
- package/dist/ionic/p-05399319.entry.js +0 -4
- package/dist/ionic/p-067db520.system.entry.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-0956b807.system.entry.js +0 -4
- package/dist/ionic/p-0b2cb317.system.entry.js +0 -4
- package/dist/ionic/p-0b61b67e.system.js +0 -4
- package/dist/ionic/p-0bfdb16f.system.js +0 -4
- package/dist/ionic/p-0c06e09b.system.js +0 -4
- package/dist/ionic/p-0dc1d769.entry.js +0 -4
- package/dist/ionic/p-1350a9c2.entry.js +0 -4
- package/dist/ionic/p-149da974.system.js +0 -4
- package/dist/ionic/p-16b7cfc2.entry.js +0 -4
- package/dist/ionic/p-1955f63a.entry.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-2067d815.system.entry.js +0 -4
- package/dist/ionic/p-2583e966.js +0 -4
- package/dist/ionic/p-263a3f91.system.js +0 -4
- package/dist/ionic/p-2690b1de.js +0 -4
- package/dist/ionic/p-2b2a48ed.entry.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2b87a770.entry.js +0 -4
- package/dist/ionic/p-2e2c1a93.system.entry.js +0 -4
- package/dist/ionic/p-2e6cf7f2.js +0 -4
- package/dist/ionic/p-2f244b7c.system.entry.js +0 -4
- package/dist/ionic/p-33fb4e9d.entry.js +0 -4
- package/dist/ionic/p-3b2c0ca4.entry.js +0 -4
- package/dist/ionic/p-3c8001c7.system.entry.js +0 -4
- package/dist/ionic/p-3cc276f4.js +0 -4
- package/dist/ionic/p-3e4a7bd8.system.entry.js +0 -4
- package/dist/ionic/p-40277321.system.entry.js +0 -4
- package/dist/ionic/p-4205a4d9.entry.js +0 -4
- package/dist/ionic/p-428db536.entry.js +0 -4
- package/dist/ionic/p-44d98be5.system.entry.js +0 -4
- package/dist/ionic/p-46bac798.entry.js +0 -4
- package/dist/ionic/p-488bc4e4.system.entry.js +0 -4
- package/dist/ionic/p-49c26aa9.entry.js +0 -4
- package/dist/ionic/p-4ad055dc.system.entry.js +0 -4
- package/dist/ionic/p-4b1364c9.entry.js +0 -4
- package/dist/ionic/p-4bd23b81.entry.js +0 -4
- package/dist/ionic/p-4c2d5b80.system.js +0 -4
- package/dist/ionic/p-4d81423b.entry.js +0 -4
- package/dist/ionic/p-4e7b0cee.entry.js +0 -4
- package/dist/ionic/p-4fe468c2.entry.js +0 -4
- package/dist/ionic/p-51ae8a06.system.entry.js +0 -4
- package/dist/ionic/p-51d30486.entry.js +0 -4
- package/dist/ionic/p-52c20808.entry.js +0 -4
- package/dist/ionic/p-56435093.js +0 -4
- package/dist/ionic/p-57f94155.system.entry.js +0 -4
- package/dist/ionic/p-59a394ad.system.js +0 -5
- package/dist/ionic/p-59cda258.system.entry.js +0 -4
- package/dist/ionic/p-5d43e642.entry.js +0 -4
- package/dist/ionic/p-5d6c0bf8.system.js +0 -4
- package/dist/ionic/p-5d7ea80a.system.entry.js +0 -4
- package/dist/ionic/p-5e94453a.entry.js +0 -4
- package/dist/ionic/p-5e97855d.system.entry.js +0 -4
- package/dist/ionic/p-5ef51d63.entry.js +0 -4
- package/dist/ionic/p-600a4ea0.js +0 -4
- package/dist/ionic/p-62b04b4c.entry.js +0 -4
- package/dist/ionic/p-663fe7c8.system.entry.js +0 -4
- package/dist/ionic/p-68da7fc8.system.js +0 -4
- package/dist/ionic/p-6bbad9e4.system.entry.js +0 -4
- package/dist/ionic/p-6ca2a6af.entry.js +0 -4
- package/dist/ionic/p-6f465cce.js +0 -4
- package/dist/ionic/p-70325536.entry.js +0 -4
- package/dist/ionic/p-714841be.system.js +0 -4
- package/dist/ionic/p-72812e99.js +0 -4
- package/dist/ionic/p-72bc8a1c.js +0 -4
- package/dist/ionic/p-7414228b.js +0 -5
- package/dist/ionic/p-76bb8eb2.entry.js +0 -4
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-7b30edcc.js +0 -4
- package/dist/ionic/p-7e07fb64.entry.js +0 -4
- package/dist/ionic/p-7e497250.system.entry.js +0 -4
- package/dist/ionic/p-8635f5e6.system.js +0 -4
- package/dist/ionic/p-89bd4ed2.entry.js +0 -4
- package/dist/ionic/p-933e9e71.entry.js +0 -4
- package/dist/ionic/p-96cc4814.js +0 -4
- package/dist/ionic/p-9ea607bd.system.js +0 -4
- package/dist/ionic/p-9f8740b2.entry.js +0 -4
- package/dist/ionic/p-a15ddedb.system.js +0 -4
- package/dist/ionic/p-a8775bf9.entry.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-aed9cc5b.entry.js +0 -4
- package/dist/ionic/p-aee3f804.system.entry.js +0 -4
- package/dist/ionic/p-b2a2c6cf.system.entry.js +0 -4
- package/dist/ionic/p-b69c1e65.system.entry.js +0 -4
- package/dist/ionic/p-b719790b.js +0 -4
- package/dist/ionic/p-b7836cec.entry.js +0 -4
- package/dist/ionic/p-b8157bb5.system.entry.js +0 -4
- package/dist/ionic/p-bae531fb.system.entry.js +0 -4
- package/dist/ionic/p-bd9fd891.system.entry.js +0 -4
- package/dist/ionic/p-c342dbdf.system.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c57d792e.entry.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-c76e43a2.system.entry.js +0 -4
- package/dist/ionic/p-cb9da2a3.entry.js +0 -4
- package/dist/ionic/p-cc3e2b52.entry.js +0 -4
- package/dist/ionic/p-ce58e8e0.entry.js +0 -4
- package/dist/ionic/p-d073ba84.entry.js +0 -4
- package/dist/ionic/p-d0f8d0aa.entry.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-d65d9c9c.system.entry.js +0 -4
- package/dist/ionic/p-d6e463ee.system.entry.js +0 -4
- package/dist/ionic/p-d75bce6a.system.js +0 -4
- package/dist/ionic/p-d8ace0cb.entry.js +0 -4
- package/dist/ionic/p-d8dcfbf3.system.entry.js +0 -4
- package/dist/ionic/p-da5e7dbe.system.entry.js +0 -4
- package/dist/ionic/p-dc672c3a.entry.js +0 -4
- package/dist/ionic/p-dfb78785.system.js +0 -4
- package/dist/ionic/p-e351e0e3.entry.js +0 -4
- package/dist/ionic/p-e6e98f68.system.entry.js +0 -4
- package/dist/ionic/p-e9119176.entry.js +0 -4
- package/dist/ionic/p-ed3f6648.system.entry.js +0 -4
- package/dist/ionic/p-eec4b4ce.entry.js +0 -4
- package/dist/ionic/p-f08654ea.system.js +0 -4
- package/dist/ionic/p-f22b3a75.js +0 -4
- package/dist/ionic/p-f367478b.js +0 -4
- package/dist/ionic/p-fc9b4e5a.entry.js +0 -4
- package/dist/ionic/p-fdfa74cc.system.entry.js +0 -4
- package/dist/ionic/p-fec56d82.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Readable } from 'stream';
|
|
5
5
|
|
|
6
|
-
const modeResolutionChain = [];
|
|
7
|
-
|
|
8
6
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
9
7
|
var globalThis = $stencilWindow;
|
|
10
8
|
var self = $stencilWindow;
|
|
@@ -128,7 +126,7 @@ const NAMESPACE = 'ionic';
|
|
|
128
126
|
const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
129
127
|
|
|
130
128
|
/*
|
|
131
|
-
Stencil Hydrate Platform v4.21.0
|
|
129
|
+
Stencil Hydrate Platform v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
132
130
|
*/
|
|
133
131
|
var __defProp = Object.defineProperty;
|
|
134
132
|
var __export = (target, all) => {
|
|
@@ -609,7 +607,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
609
607
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
610
608
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
611
609
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
612
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
610
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
|
|
613
611
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
614
612
|
} else if ("host" in styleContainerNode) {
|
|
615
613
|
styleContainerNode.prepend(styleElm);
|
|
@@ -2370,7 +2368,7 @@ var Build = {
|
|
|
2370
2368
|
isTesting: false
|
|
2371
2369
|
};
|
|
2372
2370
|
var styles = /* @__PURE__ */ new Map();
|
|
2373
|
-
|
|
2371
|
+
var modeResolutionChain = [];
|
|
2374
2372
|
|
|
2375
2373
|
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
2376
2374
|
return new Promise((resolve) => {
|
|
@@ -2612,7 +2610,7 @@ const focusVisibleElement = (el) => {
|
|
|
2612
2610
|
* which will let us explicitly set the elements to focus.
|
|
2613
2611
|
*/
|
|
2614
2612
|
if (el.classList.contains('ion-focusable')) {
|
|
2615
|
-
const app = el.closest('ion-app');
|
|
2613
|
+
const app = el.closest('ion-app, .ion-app');
|
|
2616
2614
|
if (app) {
|
|
2617
2615
|
app.setFocus([el]);
|
|
2618
2616
|
}
|
|
@@ -2774,6 +2772,55 @@ class Config {
|
|
|
2774
2772
|
}
|
|
2775
2773
|
const config = /*@__PURE__*/ new Config();
|
|
2776
2774
|
|
|
2775
|
+
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
2776
|
+
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
2777
|
+
|
|
2778
|
+
/**
|
|
2779
|
+
* CloseWatcher is a newer API that lets
|
|
2780
|
+
* use detect the hardware back button event
|
|
2781
|
+
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
2782
|
+
* However, not every browser supports it yet.
|
|
2783
|
+
*
|
|
2784
|
+
* This needs to be a function so that we can
|
|
2785
|
+
* check the config once it has been set.
|
|
2786
|
+
* Otherwise, this code would be evaluated the
|
|
2787
|
+
* moment this file is evaluated which could be
|
|
2788
|
+
* before the config is set.
|
|
2789
|
+
*/
|
|
2790
|
+
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
2791
|
+
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
2792
|
+
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* Logs a warning to the console with an Ionic prefix
|
|
2796
|
+
* to indicate the library that is warning the developer.
|
|
2797
|
+
*
|
|
2798
|
+
* @param message - The string message to be logged to the console.
|
|
2799
|
+
*/
|
|
2800
|
+
const printIonWarning = (message, ...params) => {
|
|
2801
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
2802
|
+
};
|
|
2803
|
+
/*
|
|
2804
|
+
* Logs an error to the console with an Ionic prefix
|
|
2805
|
+
* to indicate the library that is warning the developer.
|
|
2806
|
+
*
|
|
2807
|
+
* @param message - The string message to be logged to the console.
|
|
2808
|
+
* @param params - Additional arguments to supply to the console.error.
|
|
2809
|
+
*/
|
|
2810
|
+
const printIonError = (message, ...params) => {
|
|
2811
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
2812
|
+
};
|
|
2813
|
+
/**
|
|
2814
|
+
* Prints an error informing developers that an implementation requires an element to be used
|
|
2815
|
+
* within a specific selector.
|
|
2816
|
+
*
|
|
2817
|
+
* @param el The web component element this is requiring the element.
|
|
2818
|
+
* @param targetSelectors The selector or selectors that were not found.
|
|
2819
|
+
*/
|
|
2820
|
+
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
2821
|
+
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2777
2824
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
2778
2825
|
const isPlatform = (winOrPlatform, platform) => {
|
|
2779
2826
|
if (typeof winOrPlatform === 'string') {
|
|
@@ -3214,36 +3261,6 @@ class Accordion {
|
|
|
3214
3261
|
}
|
|
3215
3262
|
let accordionIds = 0;
|
|
3216
3263
|
|
|
3217
|
-
/**
|
|
3218
|
-
* Logs a warning to the console with an Ionic prefix
|
|
3219
|
-
* to indicate the library that is warning the developer.
|
|
3220
|
-
*
|
|
3221
|
-
* @param message - The string message to be logged to the console.
|
|
3222
|
-
*/
|
|
3223
|
-
const printIonWarning = (message, ...params) => {
|
|
3224
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3225
|
-
};
|
|
3226
|
-
/*
|
|
3227
|
-
* Logs an error to the console with an Ionic prefix
|
|
3228
|
-
* to indicate the library that is warning the developer.
|
|
3229
|
-
*
|
|
3230
|
-
* @param message - The string message to be logged to the console.
|
|
3231
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
3232
|
-
*/
|
|
3233
|
-
const printIonError = (message, ...params) => {
|
|
3234
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3235
|
-
};
|
|
3236
|
-
/**
|
|
3237
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
3238
|
-
* within a specific selector.
|
|
3239
|
-
*
|
|
3240
|
-
* @param el The web component element this is requiring the element.
|
|
3241
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
3242
|
-
*/
|
|
3243
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
3244
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
3245
|
-
};
|
|
3246
|
-
|
|
3247
3264
|
const accordionGroupIosCss = ":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}";
|
|
3248
3265
|
var IonAccordionGroupIosStyle0 = accordionGroupIosCss;
|
|
3249
3266
|
|
|
@@ -3482,9 +3499,6 @@ class AccordionGroup {
|
|
|
3482
3499
|
}; }
|
|
3483
3500
|
}
|
|
3484
3501
|
|
|
3485
|
-
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
3486
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
3487
|
-
|
|
3488
3502
|
const getCapacitor = () => {
|
|
3489
3503
|
if (win$1 !== undefined) {
|
|
3490
3504
|
return win$1.Capacitor;
|
|
@@ -4459,22 +4473,6 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
|
|
|
4459
4473
|
}
|
|
4460
4474
|
};
|
|
4461
4475
|
|
|
4462
|
-
/**
|
|
4463
|
-
* CloseWatcher is a newer API that lets
|
|
4464
|
-
* use detect the hardware back button event
|
|
4465
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
4466
|
-
* However, not every browser supports it yet.
|
|
4467
|
-
*
|
|
4468
|
-
* This needs to be a function so that we can
|
|
4469
|
-
* check the config once it has been set.
|
|
4470
|
-
* Otherwise, this code would be evaluated the
|
|
4471
|
-
* moment this file is evaluated which could be
|
|
4472
|
-
* before the config is set.
|
|
4473
|
-
*/
|
|
4474
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
4475
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
4476
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
4477
|
-
|
|
4478
4476
|
// TODO(FW-2832): types
|
|
4479
4477
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
4480
4478
|
var _a;
|
|
@@ -4574,7 +4572,8 @@ const CoreDelegate = () => {
|
|
|
4574
4572
|
* Get the root of the app and
|
|
4575
4573
|
* add the overlay there.
|
|
4576
4574
|
*/
|
|
4577
|
-
const
|
|
4575
|
+
const appRootClass = config.get('appRootClass', 'ion-app');
|
|
4576
|
+
const app = document.querySelector(`ion-app, ${appRootClass}`) || document.body;
|
|
4578
4577
|
/**
|
|
4579
4578
|
* Create a placeholder comment so that
|
|
4580
4579
|
* we can return this component to where
|
|
@@ -5170,7 +5169,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
5170
5169
|
return true;
|
|
5171
5170
|
};
|
|
5172
5171
|
const getAppRoot = (doc) => {
|
|
5173
|
-
return doc.querySelector('ion-app') || doc.body;
|
|
5172
|
+
return doc.querySelector('ion-app, .ion-app') || doc.body;
|
|
5174
5173
|
};
|
|
5175
5174
|
const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
|
|
5176
5175
|
// Make overlay visible in case it's hidden
|
|
@@ -7299,6 +7298,84 @@ const buttonClass$2 = (button) => {
|
|
|
7299
7298
|
return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
7300
7299
|
};
|
|
7301
7300
|
|
|
7301
|
+
const ION_FOCUSED = 'ion-focused';
|
|
7302
|
+
const ION_FOCUSABLE = 'ion-focusable';
|
|
7303
|
+
const FOCUS_KEYS = [
|
|
7304
|
+
'Tab',
|
|
7305
|
+
'ArrowDown',
|
|
7306
|
+
'Space',
|
|
7307
|
+
'Escape',
|
|
7308
|
+
' ',
|
|
7309
|
+
'Shift',
|
|
7310
|
+
'Enter',
|
|
7311
|
+
'ArrowLeft',
|
|
7312
|
+
'ArrowRight',
|
|
7313
|
+
'ArrowUp',
|
|
7314
|
+
'Home',
|
|
7315
|
+
'End',
|
|
7316
|
+
];
|
|
7317
|
+
let focusVisibleUtility = null;
|
|
7318
|
+
const getOrInitFocusVisibleUtility = () => {
|
|
7319
|
+
if (!focusVisibleUtility) {
|
|
7320
|
+
focusVisibleUtility = startFocusVisible();
|
|
7321
|
+
}
|
|
7322
|
+
return focusVisibleUtility;
|
|
7323
|
+
};
|
|
7324
|
+
const startFocusVisible = (rootEl) => {
|
|
7325
|
+
let currentFocus = [];
|
|
7326
|
+
let keyboardMode = true;
|
|
7327
|
+
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
7328
|
+
const root = rootEl ? rootEl : document.body;
|
|
7329
|
+
const setFocus = (elements) => {
|
|
7330
|
+
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
7331
|
+
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
7332
|
+
currentFocus = elements;
|
|
7333
|
+
};
|
|
7334
|
+
const pointerDown = () => {
|
|
7335
|
+
keyboardMode = false;
|
|
7336
|
+
setFocus([]);
|
|
7337
|
+
};
|
|
7338
|
+
const onKeydown = (ev) => {
|
|
7339
|
+
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
7340
|
+
if (!keyboardMode) {
|
|
7341
|
+
setFocus([]);
|
|
7342
|
+
}
|
|
7343
|
+
};
|
|
7344
|
+
const onFocusin = (ev) => {
|
|
7345
|
+
if (keyboardMode && ev.composedPath !== undefined) {
|
|
7346
|
+
const toFocus = ev.composedPath().filter((el) => {
|
|
7347
|
+
// TODO(FW-2832): type
|
|
7348
|
+
if (el.classList) {
|
|
7349
|
+
return el.classList.contains(ION_FOCUSABLE);
|
|
7350
|
+
}
|
|
7351
|
+
return false;
|
|
7352
|
+
});
|
|
7353
|
+
setFocus(toFocus);
|
|
7354
|
+
}
|
|
7355
|
+
};
|
|
7356
|
+
const onFocusout = () => {
|
|
7357
|
+
if (ref.activeElement === root) {
|
|
7358
|
+
setFocus([]);
|
|
7359
|
+
}
|
|
7360
|
+
};
|
|
7361
|
+
ref.addEventListener('keydown', onKeydown);
|
|
7362
|
+
ref.addEventListener('focusin', onFocusin);
|
|
7363
|
+
ref.addEventListener('focusout', onFocusout);
|
|
7364
|
+
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
7365
|
+
ref.addEventListener('mousedown', pointerDown);
|
|
7366
|
+
const destroy = () => {
|
|
7367
|
+
ref.removeEventListener('keydown', onKeydown);
|
|
7368
|
+
ref.removeEventListener('focusin', onFocusin);
|
|
7369
|
+
ref.removeEventListener('focusout', onFocusout);
|
|
7370
|
+
ref.removeEventListener('touchstart', pointerDown);
|
|
7371
|
+
ref.removeEventListener('mousedown', pointerDown);
|
|
7372
|
+
};
|
|
7373
|
+
return {
|
|
7374
|
+
destroy,
|
|
7375
|
+
setFocus,
|
|
7376
|
+
};
|
|
7377
|
+
};
|
|
7378
|
+
|
|
7302
7379
|
const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";
|
|
7303
7380
|
var IonAppStyle0 = appCss;
|
|
7304
7381
|
|
|
@@ -7306,8 +7383,6 @@ class App {
|
|
|
7306
7383
|
constructor(hostRef) {
|
|
7307
7384
|
registerInstance(this, hostRef);
|
|
7308
7385
|
}
|
|
7309
|
-
componentDidLoad() {
|
|
7310
|
-
}
|
|
7311
7386
|
/**
|
|
7312
7387
|
* @internal
|
|
7313
7388
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -7319,13 +7394,12 @@ class App {
|
|
|
7319
7394
|
* presented as a result of keyboard action.)
|
|
7320
7395
|
*/
|
|
7321
7396
|
async setFocus(elements) {
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
}
|
|
7397
|
+
const focusVisible = getOrInitFocusVisibleUtility();
|
|
7398
|
+
focusVisible.setFocus(elements);
|
|
7325
7399
|
}
|
|
7326
7400
|
render() {
|
|
7327
7401
|
const mode = getIonMode$1(this);
|
|
7328
|
-
return (hAsync(Host, { key: '
|
|
7402
|
+
return (hAsync(Host, { key: '4773923a95e44577ff634c0ae6f1a56f41b54088', class: {
|
|
7329
7403
|
[mode]: true,
|
|
7330
7404
|
'ion-page': true,
|
|
7331
7405
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -9097,7 +9171,7 @@ const getPageElement = (el) => {
|
|
|
9097
9171
|
* between the popover and the edges of the screen. But if the popover contains
|
|
9098
9172
|
* its own page element, we should use that instead.
|
|
9099
9173
|
*/
|
|
9100
|
-
const page = el.closest('ion-app, ion-page, .ion-page, page-inner, .popover-content');
|
|
9174
|
+
const page = el.closest('ion-app, .ion-app, ion-page, .ion-page, page-inner, .popover-content');
|
|
9101
9175
|
if (page) {
|
|
9102
9176
|
return page;
|
|
9103
9177
|
}
|
|
@@ -9131,77 +9205,6 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
9131
9205
|
}
|
|
9132
9206
|
};
|
|
9133
9207
|
|
|
9134
|
-
const ION_FOCUSED = 'ion-focused';
|
|
9135
|
-
const ION_FOCUSABLE = 'ion-focusable';
|
|
9136
|
-
const FOCUS_KEYS = [
|
|
9137
|
-
'Tab',
|
|
9138
|
-
'ArrowDown',
|
|
9139
|
-
'Space',
|
|
9140
|
-
'Escape',
|
|
9141
|
-
' ',
|
|
9142
|
-
'Shift',
|
|
9143
|
-
'Enter',
|
|
9144
|
-
'ArrowLeft',
|
|
9145
|
-
'ArrowRight',
|
|
9146
|
-
'ArrowUp',
|
|
9147
|
-
'Home',
|
|
9148
|
-
'End',
|
|
9149
|
-
];
|
|
9150
|
-
const startFocusVisible = (rootEl) => {
|
|
9151
|
-
let currentFocus = [];
|
|
9152
|
-
let keyboardMode = true;
|
|
9153
|
-
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
9154
|
-
const root = rootEl ? rootEl : document.body;
|
|
9155
|
-
const setFocus = (elements) => {
|
|
9156
|
-
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
9157
|
-
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
9158
|
-
currentFocus = elements;
|
|
9159
|
-
};
|
|
9160
|
-
const pointerDown = () => {
|
|
9161
|
-
keyboardMode = false;
|
|
9162
|
-
setFocus([]);
|
|
9163
|
-
};
|
|
9164
|
-
const onKeydown = (ev) => {
|
|
9165
|
-
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
9166
|
-
if (!keyboardMode) {
|
|
9167
|
-
setFocus([]);
|
|
9168
|
-
}
|
|
9169
|
-
};
|
|
9170
|
-
const onFocusin = (ev) => {
|
|
9171
|
-
if (keyboardMode && ev.composedPath !== undefined) {
|
|
9172
|
-
const toFocus = ev.composedPath().filter((el) => {
|
|
9173
|
-
// TODO(FW-2832): type
|
|
9174
|
-
if (el.classList) {
|
|
9175
|
-
return el.classList.contains(ION_FOCUSABLE);
|
|
9176
|
-
}
|
|
9177
|
-
return false;
|
|
9178
|
-
});
|
|
9179
|
-
setFocus(toFocus);
|
|
9180
|
-
}
|
|
9181
|
-
};
|
|
9182
|
-
const onFocusout = () => {
|
|
9183
|
-
if (ref.activeElement === root) {
|
|
9184
|
-
setFocus([]);
|
|
9185
|
-
}
|
|
9186
|
-
};
|
|
9187
|
-
ref.addEventListener('keydown', onKeydown);
|
|
9188
|
-
ref.addEventListener('focusin', onFocusin);
|
|
9189
|
-
ref.addEventListener('focusout', onFocusout);
|
|
9190
|
-
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
9191
|
-
ref.addEventListener('mousedown', pointerDown);
|
|
9192
|
-
const destroy = () => {
|
|
9193
|
-
ref.removeEventListener('keydown', onKeydown);
|
|
9194
|
-
ref.removeEventListener('focusin', onFocusin);
|
|
9195
|
-
ref.removeEventListener('focusout', onFocusout);
|
|
9196
|
-
ref.removeEventListener('touchstart', pointerDown);
|
|
9197
|
-
ref.removeEventListener('mousedown', pointerDown);
|
|
9198
|
-
};
|
|
9199
|
-
return {
|
|
9200
|
-
destroy,
|
|
9201
|
-
setFocus,
|
|
9202
|
-
};
|
|
9203
|
-
};
|
|
9204
|
-
|
|
9205
9208
|
/**
|
|
9206
9209
|
* Returns true if the selected day is equal to the reference day
|
|
9207
9210
|
*/
|
|
@@ -13432,7 +13435,7 @@ const getResizeContainer = (resizeMode) => {
|
|
|
13432
13435
|
* on that. In the event `ion-app` is not available then
|
|
13433
13436
|
* we can fall back to `body`.
|
|
13434
13437
|
*/
|
|
13435
|
-
const ionApp = doc.querySelector('ion-app');
|
|
13438
|
+
const ionApp = doc.querySelector('ion-app, .ion-app');
|
|
13436
13439
|
return ionApp !== null && ionApp !== void 0 ? ionApp : doc.body;
|
|
13437
13440
|
};
|
|
13438
13441
|
/**
|
|
@@ -13619,7 +13622,7 @@ class Footer {
|
|
|
13619
13622
|
const hasFade = collapse === 'fade';
|
|
13620
13623
|
this.destroyCollapsibleFooter();
|
|
13621
13624
|
if (hasFade) {
|
|
13622
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
13625
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
13623
13626
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
13624
13627
|
if (!contentEl) {
|
|
13625
13628
|
printIonContentErrorMsg(this.el);
|
|
@@ -13678,7 +13681,7 @@ class Footer {
|
|
|
13678
13681
|
const mode = getIonMode$1(this);
|
|
13679
13682
|
const tabs = this.el.closest('ion-tabs');
|
|
13680
13683
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
13681
|
-
return (hAsync(Host, { key: '
|
|
13684
|
+
return (hAsync(Host, { key: '1ccb49da6f7c9f1f883904ae4b931fac5f341216', role: "contentinfo", class: {
|
|
13682
13685
|
[mode]: true,
|
|
13683
13686
|
// Used internally for styling
|
|
13684
13687
|
[`footer-${mode}`]: true,
|
|
@@ -13686,7 +13689,7 @@ class Footer {
|
|
|
13686
13689
|
[`footer-translucent-${mode}`]: translucent,
|
|
13687
13690
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
13688
13691
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
13689
|
-
} }, mode === 'ios' && translucent && hAsync("div", { key: '
|
|
13692
|
+
} }, mode === 'ios' && translucent && hAsync("div", { key: 'a910070df4e5faee7b135d10364510c612cd2587', class: "footer-background" }), hAsync("slot", { key: '1507567059072ecf7243d6a304079c52eb58455f' })));
|
|
13690
13693
|
}
|
|
13691
13694
|
get el() { return getElement(this); }
|
|
13692
13695
|
static get style() { return {
|
|
@@ -13960,7 +13963,7 @@ class Header {
|
|
|
13960
13963
|
const hasFade = collapse === 'fade';
|
|
13961
13964
|
this.destroyCollapsibleHeader();
|
|
13962
13965
|
if (hasCondense) {
|
|
13963
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
13966
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
13964
13967
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
13965
13968
|
// Cloned elements are always needed in iOS transition
|
|
13966
13969
|
writeTask(() => {
|
|
@@ -13971,7 +13974,7 @@ class Header {
|
|
|
13971
13974
|
await this.setupCondenseHeader(contentEl, pageEl);
|
|
13972
13975
|
}
|
|
13973
13976
|
else if (hasFade) {
|
|
13974
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
13977
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
13975
13978
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
13976
13979
|
if (!contentEl) {
|
|
13977
13980
|
printIonContentErrorMsg(this.el);
|
|
@@ -14051,14 +14054,14 @@ class Header {
|
|
|
14051
14054
|
const collapse = this.collapse || 'none';
|
|
14052
14055
|
// banner role must be at top level, so remove role if inside a menu
|
|
14053
14056
|
const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
|
|
14054
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
14057
|
+
return (hAsync(Host, Object.assign({ key: '6a248ea9b21b1122084069ba99477cdde3322158', role: roleType, class: {
|
|
14055
14058
|
[mode]: true,
|
|
14056
14059
|
// Used internally for styling
|
|
14057
14060
|
[`header-${mode}`]: true,
|
|
14058
14061
|
[`header-translucent`]: this.translucent,
|
|
14059
14062
|
[`header-collapse-${collapse}`]: true,
|
|
14060
14063
|
[`header-translucent-${mode}`]: this.translucent,
|
|
14061
|
-
} }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { key: '
|
|
14064
|
+
} }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { key: 'c3e8bc6dfacd2df1a2611a660dcabc3b876dd3f9', class: "header-background" }), hAsync("slot", { key: '6f4829f92a05b97ae7d6e1ac2141934ee6041c4a' })));
|
|
14062
14065
|
}
|
|
14063
14066
|
get el() { return getElement(this); }
|
|
14064
14067
|
static get style() { return {
|
|
@@ -33260,105 +33263,8 @@ exports.hydrateApp = hydrateApp;
|
|
|
33260
33263
|
hydrateAppClosure($stencilWindow);
|
|
33261
33264
|
}
|
|
33262
33265
|
|
|
33263
|
-
// src/app-data/index.ts
|
|
33264
|
-
var BUILD = {
|
|
33265
|
-
allRenderFn: false,
|
|
33266
|
-
cmpDidLoad: true,
|
|
33267
|
-
cmpDidUnload: false,
|
|
33268
|
-
cmpDidUpdate: true,
|
|
33269
|
-
cmpDidRender: true,
|
|
33270
|
-
cmpWillLoad: true,
|
|
33271
|
-
cmpWillUpdate: true,
|
|
33272
|
-
cmpWillRender: true,
|
|
33273
|
-
connectedCallback: true,
|
|
33274
|
-
disconnectedCallback: true,
|
|
33275
|
-
element: true,
|
|
33276
|
-
event: true,
|
|
33277
|
-
hasRenderFn: true,
|
|
33278
|
-
lifecycle: true,
|
|
33279
|
-
hostListener: true,
|
|
33280
|
-
hostListenerTargetWindow: true,
|
|
33281
|
-
hostListenerTargetDocument: true,
|
|
33282
|
-
hostListenerTargetBody: true,
|
|
33283
|
-
hostListenerTargetParent: false,
|
|
33284
|
-
hostListenerTarget: true,
|
|
33285
|
-
member: true,
|
|
33286
|
-
method: true,
|
|
33287
|
-
mode: true,
|
|
33288
|
-
observeAttribute: true,
|
|
33289
|
-
prop: true,
|
|
33290
|
-
propMutable: true,
|
|
33291
|
-
reflect: true,
|
|
33292
|
-
scoped: true,
|
|
33293
|
-
shadowDom: true,
|
|
33294
|
-
slot: true,
|
|
33295
|
-
cssAnnotations: true,
|
|
33296
|
-
state: true,
|
|
33297
|
-
style: true,
|
|
33298
|
-
formAssociated: false,
|
|
33299
|
-
svg: true,
|
|
33300
|
-
updatable: true,
|
|
33301
|
-
vdomAttribute: true,
|
|
33302
|
-
vdomXlink: true,
|
|
33303
|
-
vdomClass: true,
|
|
33304
|
-
vdomFunctional: true,
|
|
33305
|
-
vdomKey: true,
|
|
33306
|
-
vdomListener: true,
|
|
33307
|
-
vdomRef: true,
|
|
33308
|
-
vdomPropOrAttr: true,
|
|
33309
|
-
vdomRender: true,
|
|
33310
|
-
vdomStyle: true,
|
|
33311
|
-
vdomText: true,
|
|
33312
|
-
watchCallback: true,
|
|
33313
|
-
taskQueue: true,
|
|
33314
|
-
hotModuleReplacement: false,
|
|
33315
|
-
isDebug: false,
|
|
33316
|
-
isDev: false,
|
|
33317
|
-
isTesting: false,
|
|
33318
|
-
hydrateServerSide: false,
|
|
33319
|
-
hydrateClientSide: false,
|
|
33320
|
-
lifecycleDOMEvents: false,
|
|
33321
|
-
lazyLoad: false,
|
|
33322
|
-
profile: false,
|
|
33323
|
-
slotRelocation: true,
|
|
33324
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33325
|
-
appendChildSlotFix: false,
|
|
33326
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33327
|
-
cloneNodeFix: false,
|
|
33328
|
-
hydratedAttribute: false,
|
|
33329
|
-
hydratedClass: true,
|
|
33330
|
-
// TODO(STENCIL-1305): remove this option
|
|
33331
|
-
scriptDataOpts: false,
|
|
33332
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33333
|
-
scopedSlotTextContentFix: false,
|
|
33334
|
-
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
33335
|
-
shadowDomShim: false,
|
|
33336
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33337
|
-
slotChildNodesFix: false,
|
|
33338
|
-
invisiblePrehydration: true,
|
|
33339
|
-
propBoolean: true,
|
|
33340
|
-
propNumber: true,
|
|
33341
|
-
propString: true,
|
|
33342
|
-
constructableCSS: true,
|
|
33343
|
-
cmpShouldUpdate: true,
|
|
33344
|
-
devTools: false,
|
|
33345
|
-
shadowDelegatesFocus: true,
|
|
33346
|
-
initializeNextTick: false,
|
|
33347
|
-
asyncLoading: true,
|
|
33348
|
-
asyncQueue: false,
|
|
33349
|
-
transformTagName: false,
|
|
33350
|
-
attachStyles: true,
|
|
33351
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33352
|
-
experimentalSlotFixes: false
|
|
33353
|
-
};
|
|
33354
|
-
var Env = {};
|
|
33355
|
-
var NAMESPACE = (
|
|
33356
|
-
/* default */
|
|
33357
|
-
"app"
|
|
33358
|
-
);
|
|
33359
|
-
|
|
33360
33266
|
/*
|
|
33361
|
-
Stencil Hydrate Runner v4.21.0
|
|
33267
|
+
Stencil Hydrate Runner v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
33362
33268
|
*/
|
|
33363
33269
|
var __defProp = Object.defineProperty;
|
|
33364
33270
|
var __export = (target, all) => {
|
|
@@ -33679,8 +33585,8 @@ function jsCaseToCssCase(str) {
|
|
|
33679
33585
|
|
|
33680
33586
|
// src/mock-doc/custom-element-registry.ts
|
|
33681
33587
|
var MockCustomElementRegistry = class {
|
|
33682
|
-
constructor(
|
|
33683
|
-
this.win =
|
|
33588
|
+
constructor(win) {
|
|
33589
|
+
this.win = win;
|
|
33684
33590
|
}
|
|
33685
33591
|
define(tagName, cstr, options) {
|
|
33686
33592
|
if (tagName.toLowerCase() !== tagName) {
|
|
@@ -33702,19 +33608,19 @@ var MockCustomElementRegistry = class {
|
|
|
33702
33608
|
this.__whenDefined.delete(tagName);
|
|
33703
33609
|
}
|
|
33704
33610
|
}
|
|
33705
|
-
const
|
|
33706
|
-
if (
|
|
33707
|
-
const hosts =
|
|
33611
|
+
const doc = this.win.document;
|
|
33612
|
+
if (doc != null) {
|
|
33613
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
33708
33614
|
hosts.forEach((host) => {
|
|
33709
33615
|
if (upgradedElements.has(host) === false) {
|
|
33710
|
-
tempDisableCallbacks.add(
|
|
33711
|
-
const upgradedCmp = createCustomElement(this,
|
|
33616
|
+
tempDisableCallbacks.add(doc);
|
|
33617
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
33712
33618
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
33713
33619
|
const childNode = host.childNodes[i];
|
|
33714
33620
|
childNode.remove();
|
|
33715
33621
|
upgradedCmp.appendChild(childNode);
|
|
33716
33622
|
}
|
|
33717
|
-
tempDisableCallbacks.delete(
|
|
33623
|
+
tempDisableCallbacks.delete(doc);
|
|
33718
33624
|
if (proxyElements.has(host)) {
|
|
33719
33625
|
proxyElements.set(host, upgradedCmp);
|
|
33720
33626
|
}
|
|
@@ -33768,8 +33674,8 @@ var MockCustomElementRegistry = class {
|
|
|
33768
33674
|
});
|
|
33769
33675
|
}
|
|
33770
33676
|
};
|
|
33771
|
-
function createCustomElement(
|
|
33772
|
-
const Cstr =
|
|
33677
|
+
function createCustomElement(customElements, ownerDocument, tagName) {
|
|
33678
|
+
const Cstr = customElements.get(tagName);
|
|
33773
33679
|
if (Cstr != null) {
|
|
33774
33680
|
const cmp = new Cstr(ownerDocument);
|
|
33775
33681
|
cmp.nodeName = tagName.toUpperCase();
|
|
@@ -33817,8 +33723,8 @@ function connectNode(ownerDocument, node) {
|
|
|
33817
33723
|
node.ownerDocument = ownerDocument;
|
|
33818
33724
|
if (node.nodeType === 1 /* ELEMENT_NODE */) {
|
|
33819
33725
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
33820
|
-
const
|
|
33821
|
-
if (
|
|
33726
|
+
const win = ownerDocument.defaultView;
|
|
33727
|
+
if (win != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
33822
33728
|
fireConnectedCallback(node);
|
|
33823
33729
|
}
|
|
33824
33730
|
const shadowRoot = node.shadowRoot;
|
|
@@ -38226,7 +38132,7 @@ var OpenElementStack = class {
|
|
|
38226
38132
|
get currentTmplContentOrNode() {
|
|
38227
38133
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
38228
38134
|
}
|
|
38229
|
-
constructor(
|
|
38135
|
+
constructor(document, treeAdapter, handler) {
|
|
38230
38136
|
this.treeAdapter = treeAdapter;
|
|
38231
38137
|
this.handler = handler;
|
|
38232
38138
|
this.items = [];
|
|
@@ -38234,7 +38140,7 @@ var OpenElementStack = class {
|
|
|
38234
38140
|
this.stackTop = -1;
|
|
38235
38141
|
this.tmplCount = 0;
|
|
38236
38142
|
this.currentTagId = TAG_ID.UNKNOWN;
|
|
38237
|
-
this.current =
|
|
38143
|
+
this.current = document;
|
|
38238
38144
|
}
|
|
38239
38145
|
//Index of element
|
|
38240
38146
|
_indexOf(element) {
|
|
@@ -38651,8 +38557,8 @@ var defaultTreeAdapter = {
|
|
|
38651
38557
|
getTemplateContent(templateElement) {
|
|
38652
38558
|
return templateElement.content;
|
|
38653
38559
|
},
|
|
38654
|
-
setDocumentType(
|
|
38655
|
-
const doctypeNode =
|
|
38560
|
+
setDocumentType(document, name, publicId, systemId) {
|
|
38561
|
+
const doctypeNode = document.childNodes.find((node) => node.nodeName === "#documentType");
|
|
38656
38562
|
if (doctypeNode) {
|
|
38657
38563
|
doctypeNode.name = name;
|
|
38658
38564
|
doctypeNode.publicId = publicId;
|
|
@@ -38665,14 +38571,14 @@ var defaultTreeAdapter = {
|
|
|
38665
38571
|
systemId,
|
|
38666
38572
|
parentNode: null
|
|
38667
38573
|
};
|
|
38668
|
-
defaultTreeAdapter.appendChild(
|
|
38574
|
+
defaultTreeAdapter.appendChild(document, node);
|
|
38669
38575
|
}
|
|
38670
38576
|
},
|
|
38671
|
-
setDocumentMode(
|
|
38672
|
-
|
|
38577
|
+
setDocumentMode(document, mode) {
|
|
38578
|
+
document.mode = mode;
|
|
38673
38579
|
},
|
|
38674
|
-
getDocumentMode(
|
|
38675
|
-
return
|
|
38580
|
+
getDocumentMode(document) {
|
|
38581
|
+
return document.mode;
|
|
38676
38582
|
},
|
|
38677
38583
|
detachNode(node) {
|
|
38678
38584
|
if (node.parentNode) {
|
|
@@ -39153,7 +39059,7 @@ var defaultParserOptions = {
|
|
|
39153
39059
|
onParseError: null
|
|
39154
39060
|
};
|
|
39155
39061
|
var Parser = class {
|
|
39156
|
-
constructor(options,
|
|
39062
|
+
constructor(options, document, fragmentContext = null, scriptHandler = null) {
|
|
39157
39063
|
this.fragmentContext = fragmentContext;
|
|
39158
39064
|
this.scriptHandler = scriptHandler;
|
|
39159
39065
|
this.currentToken = null;
|
|
@@ -39178,7 +39084,7 @@ var Parser = class {
|
|
|
39178
39084
|
if (this.onParseError) {
|
|
39179
39085
|
this.options.sourceCodeLocationInfo = true;
|
|
39180
39086
|
}
|
|
39181
|
-
this.document =
|
|
39087
|
+
this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
|
|
39182
39088
|
this.tokenizer = new Tokenizer(this.options, this);
|
|
39183
39089
|
this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
|
|
39184
39090
|
this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
|
|
@@ -42155,11 +42061,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
42155
42061
|
// src/mock-doc/parse-util.ts
|
|
42156
42062
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
42157
42063
|
function parseDocumentUtil(ownerDocument, html) {
|
|
42158
|
-
const
|
|
42159
|
-
|
|
42160
|
-
|
|
42161
|
-
|
|
42162
|
-
return
|
|
42064
|
+
const doc = parse(html.trim(), getParser(ownerDocument));
|
|
42065
|
+
doc.documentElement = doc.firstElementChild;
|
|
42066
|
+
doc.head = doc.documentElement.firstElementChild;
|
|
42067
|
+
doc.body = doc.head.nextElementSibling;
|
|
42068
|
+
return doc;
|
|
42163
42069
|
}
|
|
42164
42070
|
function parseFragmentUtil(ownerDocument, html) {
|
|
42165
42071
|
if (typeof html === "string") {
|
|
@@ -42177,9 +42083,9 @@ function getParser(ownerDocument) {
|
|
|
42177
42083
|
}
|
|
42178
42084
|
const treeAdapter = {
|
|
42179
42085
|
createDocument() {
|
|
42180
|
-
const
|
|
42181
|
-
|
|
42182
|
-
return
|
|
42086
|
+
const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
42087
|
+
doc["x-mode"] = "no-quirks";
|
|
42088
|
+
return doc;
|
|
42183
42089
|
},
|
|
42184
42090
|
setNodeSourceCodeLocation(node, location2) {
|
|
42185
42091
|
node.sourceCodeLocation = location2;
|
|
@@ -42217,22 +42123,22 @@ function getParser(ownerDocument) {
|
|
|
42217
42123
|
getTemplateContent(templateElement) {
|
|
42218
42124
|
return templateElement.content;
|
|
42219
42125
|
},
|
|
42220
|
-
setDocumentType(
|
|
42221
|
-
let doctypeNode =
|
|
42126
|
+
setDocumentType(doc, name, publicId, systemId) {
|
|
42127
|
+
let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
42222
42128
|
if (doctypeNode == null) {
|
|
42223
42129
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
42224
|
-
|
|
42130
|
+
doc.insertBefore(doctypeNode, doc.firstChild);
|
|
42225
42131
|
}
|
|
42226
42132
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
42227
42133
|
doctypeNode["x-name"] = name;
|
|
42228
42134
|
doctypeNode["x-publicId"] = publicId;
|
|
42229
42135
|
doctypeNode["x-systemId"] = systemId;
|
|
42230
42136
|
},
|
|
42231
|
-
setDocumentMode(
|
|
42232
|
-
|
|
42137
|
+
setDocumentMode(doc, mode) {
|
|
42138
|
+
doc["x-mode"] = mode;
|
|
42233
42139
|
},
|
|
42234
|
-
getDocumentMode(
|
|
42235
|
-
return
|
|
42140
|
+
getDocumentMode(doc) {
|
|
42141
|
+
return doc["x-mode"];
|
|
42236
42142
|
},
|
|
42237
42143
|
detachNode(node) {
|
|
42238
42144
|
node.remove();
|
|
@@ -42364,9 +42270,9 @@ var jquery_default = (
|
|
|
42364
42270
|
nodeName: "HTML"
|
|
42365
42271
|
}
|
|
42366
42272
|
}
|
|
42367
|
-
}, function(
|
|
42273
|
+
}, function(window, noGlobal) {
|
|
42368
42274
|
"use strict";
|
|
42369
|
-
if (!
|
|
42275
|
+
if (!window.document) {
|
|
42370
42276
|
throw new Error("jQuery requires a window with a document");
|
|
42371
42277
|
}
|
|
42372
42278
|
var arr = [];
|
|
@@ -42401,16 +42307,16 @@ var jquery_default = (
|
|
|
42401
42307
|
}
|
|
42402
42308
|
return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
|
|
42403
42309
|
}
|
|
42404
|
-
var
|
|
42310
|
+
var document = window.document;
|
|
42405
42311
|
var preservedScriptAttributes = {
|
|
42406
42312
|
type: true,
|
|
42407
42313
|
src: true,
|
|
42408
42314
|
nonce: true,
|
|
42409
42315
|
noModule: true
|
|
42410
42316
|
};
|
|
42411
|
-
function DOMEval(code, node,
|
|
42412
|
-
|
|
42413
|
-
var i2, script =
|
|
42317
|
+
function DOMEval(code, node, doc) {
|
|
42318
|
+
doc = doc || document;
|
|
42319
|
+
var i2, script = doc.createElement("script");
|
|
42414
42320
|
script.text = code;
|
|
42415
42321
|
if (node) {
|
|
42416
42322
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -42419,7 +42325,7 @@ var jquery_default = (
|
|
|
42419
42325
|
}
|
|
42420
42326
|
}
|
|
42421
42327
|
}
|
|
42422
|
-
|
|
42328
|
+
doc.head.appendChild(script).parentNode.removeChild(script);
|
|
42423
42329
|
}
|
|
42424
42330
|
const jQuery = {};
|
|
42425
42331
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -42556,8 +42462,8 @@ var jquery_default = (
|
|
|
42556
42462
|
},
|
|
42557
42463
|
// Evaluates a script in a provided context; falls back to the global one
|
|
42558
42464
|
// if not specified.
|
|
42559
|
-
globalEval: function(code, options,
|
|
42560
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
42465
|
+
globalEval: function(code, options, doc) {
|
|
42466
|
+
DOMEval(code, { nonce: options && options.nonce }, doc);
|
|
42561
42467
|
},
|
|
42562
42468
|
each: function(obj, callback) {
|
|
42563
42469
|
var length, i2 = 0;
|
|
@@ -42684,9 +42590,9 @@ var jquery_default = (
|
|
|
42684
42590
|
}
|
|
42685
42591
|
var pop = arr.pop;
|
|
42686
42592
|
var whitespace = "[\\x20\\t\\r\\n\\f]";
|
|
42687
|
-
var isIE =
|
|
42593
|
+
var isIE = document.documentMode;
|
|
42688
42594
|
try {
|
|
42689
|
-
|
|
42595
|
+
document.querySelector(":has(*,:jqfake)");
|
|
42690
42596
|
support.cssHas = false;
|
|
42691
42597
|
} catch (e) {
|
|
42692
42598
|
support.cssHas = true;
|
|
@@ -42718,7 +42624,7 @@ var jquery_default = (
|
|
|
42718
42624
|
var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
|
|
42719
42625
|
var rdescend = new RegExp(whitespace + "|>");
|
|
42720
42626
|
var rsibling = /[+~]/;
|
|
42721
|
-
var documentElement =
|
|
42627
|
+
var documentElement = document.documentElement;
|
|
42722
42628
|
var matches2 = documentElement.matches || documentElement.msMatchesSelector;
|
|
42723
42629
|
function createCache() {
|
|
42724
42630
|
var keys = [];
|
|
@@ -42887,10 +42793,10 @@ var jquery_default = (
|
|
|
42887
42793
|
1
|
|
42888
42794
|
);
|
|
42889
42795
|
if (compare & 1) {
|
|
42890
|
-
if (a ==
|
|
42796
|
+
if (a == document || a.ownerDocument == document && jQuery.contains(document, a)) {
|
|
42891
42797
|
return -1;
|
|
42892
42798
|
}
|
|
42893
|
-
if (b ==
|
|
42799
|
+
if (b == document || b.ownerDocument == document && jQuery.contains(document, b)) {
|
|
42894
42800
|
return 1;
|
|
42895
42801
|
}
|
|
42896
42802
|
return 0;
|
|
@@ -43046,14 +42952,14 @@ var jquery_default = (
|
|
|
43046
42952
|
});
|
|
43047
42953
|
}
|
|
43048
42954
|
function setDocument(node) {
|
|
43049
|
-
var subWindow,
|
|
43050
|
-
if (
|
|
42955
|
+
var subWindow, doc = node ? node.ownerDocument || node : document;
|
|
42956
|
+
if (doc == document$1 || doc.nodeType !== 9) {
|
|
43051
42957
|
return;
|
|
43052
42958
|
}
|
|
43053
|
-
document$1 =
|
|
42959
|
+
document$1 = doc;
|
|
43054
42960
|
documentElement$1 = document$1.documentElement;
|
|
43055
42961
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
43056
|
-
if (isIE &&
|
|
42962
|
+
if (isIE && document != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
43057
42963
|
subWindow.addEventListener("unload", unloadHandler);
|
|
43058
42964
|
}
|
|
43059
42965
|
}
|
|
@@ -43284,7 +43190,7 @@ var jquery_default = (
|
|
|
43284
43190
|
}),
|
|
43285
43191
|
// Miscellaneous
|
|
43286
43192
|
target: function(elem) {
|
|
43287
|
-
var hash =
|
|
43193
|
+
var hash = window.location && window.location.hash;
|
|
43288
43194
|
return hash && hash.slice(1) === elem.id;
|
|
43289
43195
|
},
|
|
43290
43196
|
root: function(elem) {
|
|
@@ -45274,9 +45180,9 @@ function createElement(ownerDocument, tagName) {
|
|
|
45274
45180
|
return new MockUListElement(ownerDocument);
|
|
45275
45181
|
}
|
|
45276
45182
|
if (ownerDocument != null && tagName.includes("-")) {
|
|
45277
|
-
const
|
|
45278
|
-
if (
|
|
45279
|
-
return createCustomElement(
|
|
45183
|
+
const win = ownerDocument.defaultView;
|
|
45184
|
+
if (win != null && win.customElements != null) {
|
|
45185
|
+
return createCustomElement(win.customElements, ownerDocument, tagName);
|
|
45280
45186
|
}
|
|
45281
45187
|
}
|
|
45282
45188
|
return new MockHTMLElement(ownerDocument, tagName);
|
|
@@ -45698,9 +45604,9 @@ var CanvasRenderingContext = class {
|
|
|
45698
45604
|
}
|
|
45699
45605
|
clearRect() {
|
|
45700
45606
|
}
|
|
45701
|
-
getImageData(_, __, w,
|
|
45607
|
+
getImageData(_, __, w, h) {
|
|
45702
45608
|
return {
|
|
45703
|
-
data: new Array(w *
|
|
45609
|
+
data: new Array(w * h * 4)
|
|
45704
45610
|
};
|
|
45705
45611
|
}
|
|
45706
45612
|
toDataURL() {
|
|
@@ -45762,9 +45668,9 @@ var MockCanvasElement = class extends MockHTMLElement {
|
|
|
45762
45668
|
function fullUrl(elm, attrName) {
|
|
45763
45669
|
const val = elm.getAttribute(attrName) || "";
|
|
45764
45670
|
if (elm.ownerDocument != null) {
|
|
45765
|
-
const
|
|
45766
|
-
if (
|
|
45767
|
-
const loc =
|
|
45671
|
+
const win = elm.ownerDocument.defaultView;
|
|
45672
|
+
if (win != null) {
|
|
45673
|
+
const loc = win.location;
|
|
45768
45674
|
if (loc != null) {
|
|
45769
45675
|
try {
|
|
45770
45676
|
const url = new URL(val, loc.href);
|
|
@@ -46469,10 +46375,10 @@ var MockWindow = class {
|
|
|
46469
46375
|
}
|
|
46470
46376
|
get Document() {
|
|
46471
46377
|
if (this.__docCstr == null) {
|
|
46472
|
-
const
|
|
46378
|
+
const win = this;
|
|
46473
46379
|
this.__docCstr = class extends MockDocument {
|
|
46474
46380
|
constructor() {
|
|
46475
|
-
super(false,
|
|
46381
|
+
super(false, win);
|
|
46476
46382
|
throw new Error("Illegal constructor: cannot construct Document");
|
|
46477
46383
|
}
|
|
46478
46384
|
};
|
|
@@ -46989,14 +46895,14 @@ var MockWindow = class {
|
|
|
46989
46895
|
}
|
|
46990
46896
|
};
|
|
46991
46897
|
addGlobalsToWindowPrototype(MockWindow.prototype);
|
|
46992
|
-
function resetWindowDefaults(
|
|
46993
|
-
|
|
46994
|
-
|
|
46995
|
-
|
|
46996
|
-
|
|
46997
|
-
|
|
46998
|
-
|
|
46999
|
-
|
|
46898
|
+
function resetWindowDefaults(win) {
|
|
46899
|
+
win.__clearInterval = nativeClearInterval;
|
|
46900
|
+
win.__clearTimeout = nativeClearTimeout;
|
|
46901
|
+
win.__setInterval = nativeSetInterval;
|
|
46902
|
+
win.__setTimeout = nativeSetTimeout;
|
|
46903
|
+
win.__maxTimeout = 3e4;
|
|
46904
|
+
win.__allowInterval = true;
|
|
46905
|
+
win.URL = nativeURL;
|
|
47000
46906
|
}
|
|
47001
46907
|
function cloneWindow(srcWin, opts = {}) {
|
|
47002
46908
|
if (srcWin == null) {
|
|
@@ -47015,72 +46921,72 @@ function cloneWindow(srcWin, opts = {}) {
|
|
|
47015
46921
|
}
|
|
47016
46922
|
return clonedWin;
|
|
47017
46923
|
}
|
|
47018
|
-
function constrainTimeouts(
|
|
47019
|
-
|
|
47020
|
-
|
|
46924
|
+
function constrainTimeouts(win) {
|
|
46925
|
+
win.__allowInterval = false;
|
|
46926
|
+
win.__maxTimeout = 0;
|
|
47021
46927
|
}
|
|
47022
|
-
function resetWindow(
|
|
47023
|
-
if (
|
|
47024
|
-
if (
|
|
47025
|
-
|
|
46928
|
+
function resetWindow(win) {
|
|
46929
|
+
if (win != null) {
|
|
46930
|
+
if (win.__timeouts) {
|
|
46931
|
+
win.__timeouts.forEach((timeoutId) => {
|
|
47026
46932
|
nativeClearInterval(timeoutId);
|
|
47027
46933
|
nativeClearTimeout(timeoutId);
|
|
47028
46934
|
});
|
|
47029
|
-
|
|
46935
|
+
win.__timeouts.clear();
|
|
47030
46936
|
}
|
|
47031
|
-
if (
|
|
47032
|
-
|
|
46937
|
+
if (win.customElements && win.customElements.clear) {
|
|
46938
|
+
win.customElements.clear();
|
|
47033
46939
|
}
|
|
47034
|
-
resetDocument(
|
|
47035
|
-
resetPerformance(
|
|
47036
|
-
for (const key in
|
|
47037
|
-
if (
|
|
47038
|
-
delete
|
|
46940
|
+
resetDocument(win.document);
|
|
46941
|
+
resetPerformance(win.performance);
|
|
46942
|
+
for (const key in win) {
|
|
46943
|
+
if (win.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
|
|
46944
|
+
delete win[key];
|
|
47039
46945
|
}
|
|
47040
46946
|
}
|
|
47041
|
-
resetWindowDefaults(
|
|
47042
|
-
resetWindowDimensions(
|
|
47043
|
-
resetEventListeners(
|
|
47044
|
-
if (
|
|
46947
|
+
resetWindowDefaults(win);
|
|
46948
|
+
resetWindowDimensions(win);
|
|
46949
|
+
resetEventListeners(win);
|
|
46950
|
+
if (win.document != null) {
|
|
47045
46951
|
try {
|
|
47046
|
-
|
|
46952
|
+
win.document.defaultView = win;
|
|
47047
46953
|
} catch (e) {
|
|
47048
46954
|
}
|
|
47049
46955
|
}
|
|
47050
|
-
|
|
47051
|
-
|
|
47052
|
-
|
|
47053
|
-
|
|
47054
|
-
|
|
46956
|
+
win.fetch = null;
|
|
46957
|
+
win.Headers = null;
|
|
46958
|
+
win.Request = null;
|
|
46959
|
+
win.Response = null;
|
|
46960
|
+
win.FetchError = null;
|
|
47055
46961
|
}
|
|
47056
46962
|
}
|
|
47057
|
-
function resetWindowDimensions(
|
|
46963
|
+
function resetWindowDimensions(win) {
|
|
47058
46964
|
try {
|
|
47059
|
-
|
|
47060
|
-
|
|
47061
|
-
|
|
47062
|
-
|
|
47063
|
-
|
|
47064
|
-
|
|
47065
|
-
|
|
47066
|
-
|
|
47067
|
-
|
|
47068
|
-
|
|
47069
|
-
|
|
47070
|
-
|
|
47071
|
-
availHeight:
|
|
46965
|
+
win.devicePixelRatio = 1;
|
|
46966
|
+
win.innerHeight = 768;
|
|
46967
|
+
win.innerWidth = 1366;
|
|
46968
|
+
win.pageXOffset = 0;
|
|
46969
|
+
win.pageYOffset = 0;
|
|
46970
|
+
win.screenLeft = 0;
|
|
46971
|
+
win.screenTop = 0;
|
|
46972
|
+
win.screenX = 0;
|
|
46973
|
+
win.screenY = 0;
|
|
46974
|
+
win.scrollX = 0;
|
|
46975
|
+
win.scrollY = 0;
|
|
46976
|
+
win.screen = {
|
|
46977
|
+
availHeight: win.innerHeight,
|
|
47072
46978
|
availLeft: 0,
|
|
47073
46979
|
availTop: 0,
|
|
47074
|
-
availWidth:
|
|
46980
|
+
availWidth: win.innerWidth,
|
|
47075
46981
|
colorDepth: 24,
|
|
47076
|
-
height:
|
|
46982
|
+
height: win.innerHeight,
|
|
47077
46983
|
keepAwake: false,
|
|
47078
46984
|
orientation: {
|
|
47079
46985
|
angle: 0,
|
|
47080
46986
|
type: "portrait-primary"
|
|
47081
46987
|
},
|
|
47082
46988
|
pixelDepth: 24,
|
|
47083
|
-
width:
|
|
46989
|
+
width: win.innerWidth
|
|
47084
46990
|
};
|
|
47085
46991
|
} catch (e) {
|
|
47086
46992
|
}
|
|
@@ -47088,11 +46994,11 @@ function resetWindowDimensions(win2) {
|
|
|
47088
46994
|
|
|
47089
46995
|
// src/mock-doc/document.ts
|
|
47090
46996
|
var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
47091
|
-
constructor(html = null,
|
|
46997
|
+
constructor(html = null, win = null) {
|
|
47092
46998
|
super(null, null);
|
|
47093
46999
|
this.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47094
47000
|
this.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47095
|
-
this.defaultView =
|
|
47001
|
+
this.defaultView = win;
|
|
47096
47002
|
this.cookie = "";
|
|
47097
47003
|
this.referrer = "";
|
|
47098
47004
|
this.appendChild(this.createDocumentTypeNode());
|
|
@@ -47239,10 +47145,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47239
47145
|
}
|
|
47240
47146
|
createElement(tagName) {
|
|
47241
47147
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
47242
|
-
const
|
|
47243
|
-
|
|
47244
|
-
|
|
47245
|
-
return
|
|
47148
|
+
const doc = new _MockDocument(false);
|
|
47149
|
+
doc.nodeName = tagName;
|
|
47150
|
+
doc.parentNode = null;
|
|
47151
|
+
return doc;
|
|
47246
47152
|
}
|
|
47247
47153
|
return createElement(this, tagName);
|
|
47248
47154
|
}
|
|
@@ -47282,10 +47188,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47282
47188
|
title.textContent = value;
|
|
47283
47189
|
}
|
|
47284
47190
|
};
|
|
47285
|
-
function resetDocument(
|
|
47286
|
-
if (
|
|
47287
|
-
resetEventListeners(
|
|
47288
|
-
const documentElement =
|
|
47191
|
+
function resetDocument(doc) {
|
|
47192
|
+
if (doc != null) {
|
|
47193
|
+
resetEventListeners(doc);
|
|
47194
|
+
const documentElement = doc.documentElement;
|
|
47289
47195
|
if (documentElement != null) {
|
|
47290
47196
|
resetElement(documentElement);
|
|
47291
47197
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -47294,25 +47200,25 @@ function resetDocument(doc2) {
|
|
|
47294
47200
|
childNode.childNodes.length = 0;
|
|
47295
47201
|
}
|
|
47296
47202
|
}
|
|
47297
|
-
for (const key in
|
|
47298
|
-
if (
|
|
47299
|
-
delete
|
|
47203
|
+
for (const key in doc) {
|
|
47204
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
47205
|
+
delete doc[key];
|
|
47300
47206
|
}
|
|
47301
47207
|
}
|
|
47302
47208
|
try {
|
|
47303
|
-
|
|
47209
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47304
47210
|
} catch (e) {
|
|
47305
47211
|
}
|
|
47306
47212
|
try {
|
|
47307
|
-
|
|
47213
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47308
47214
|
} catch (e) {
|
|
47309
47215
|
}
|
|
47310
47216
|
try {
|
|
47311
|
-
|
|
47217
|
+
doc.cookie = "";
|
|
47312
47218
|
} catch (e) {
|
|
47313
47219
|
}
|
|
47314
47220
|
try {
|
|
47315
|
-
|
|
47221
|
+
doc.referrer = "";
|
|
47316
47222
|
} catch (e) {
|
|
47317
47223
|
}
|
|
47318
47224
|
}
|
|
@@ -47368,33 +47274,9 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
47368
47274
|
templateWindow = new MockWindow(templateHtml);
|
|
47369
47275
|
templateWindows.set(uniqueId, templateWindow);
|
|
47370
47276
|
}
|
|
47371
|
-
const
|
|
47372
|
-
return
|
|
47277
|
+
const win = cloneWindow(templateWindow);
|
|
47278
|
+
return win;
|
|
47373
47279
|
}
|
|
47374
|
-
var Build = {
|
|
47375
|
-
isDev: BUILD.isDev ? true : false,
|
|
47376
|
-
isBrowser: true,
|
|
47377
|
-
isServer: false,
|
|
47378
|
-
isTesting: BUILD.isTesting ? true : false
|
|
47379
|
-
};
|
|
47380
|
-
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
47381
|
-
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
47382
|
-
"%cstencil",
|
|
47383
|
-
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
47384
|
-
];
|
|
47385
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
47386
|
-
var doc = win.document || { head: {} };
|
|
47387
|
-
var H = win.HTMLElement || class {
|
|
47388
|
-
};
|
|
47389
|
-
var supportsShadow = BUILD.shadowDom;
|
|
47390
|
-
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
47391
|
-
try {
|
|
47392
|
-
new CSSStyleSheet();
|
|
47393
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
47394
|
-
} catch (e) {
|
|
47395
|
-
}
|
|
47396
|
-
return false;
|
|
47397
|
-
})() : false;
|
|
47398
47280
|
|
|
47399
47281
|
// src/utils/helpers.ts
|
|
47400
47282
|
var isString = (v) => typeof v === "string";
|
|
@@ -47486,20 +47368,15 @@ var unwrapErr = (result) => {
|
|
|
47486
47368
|
}
|
|
47487
47369
|
};
|
|
47488
47370
|
|
|
47489
|
-
// src/runtime/mode.ts
|
|
47490
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
47491
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
47492
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
47493
|
-
|
|
47494
47371
|
// src/compiler/html/canonical-link.ts
|
|
47495
|
-
var updateCanonicalLink = (
|
|
47372
|
+
var updateCanonicalLink = (doc, href) => {
|
|
47496
47373
|
var _a2;
|
|
47497
|
-
let canonicalLinkElm =
|
|
47374
|
+
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
47498
47375
|
if (typeof href === "string") {
|
|
47499
47376
|
if (canonicalLinkElm == null) {
|
|
47500
|
-
canonicalLinkElm =
|
|
47377
|
+
canonicalLinkElm = doc.createElement("link");
|
|
47501
47378
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
47502
|
-
|
|
47379
|
+
doc.head.appendChild(canonicalLinkElm);
|
|
47503
47380
|
}
|
|
47504
47381
|
canonicalLinkElm.setAttribute("href", href);
|
|
47505
47382
|
} else {
|
|
@@ -47513,11 +47390,11 @@ var updateCanonicalLink = (doc2, href) => {
|
|
|
47513
47390
|
};
|
|
47514
47391
|
|
|
47515
47392
|
// src/compiler/html/relocate-meta-charset.ts
|
|
47516
|
-
var relocateMetaCharset = (
|
|
47517
|
-
const head =
|
|
47393
|
+
var relocateMetaCharset = (doc) => {
|
|
47394
|
+
const head = doc.head;
|
|
47518
47395
|
let charsetElm = head.querySelector("meta[charset]");
|
|
47519
47396
|
if (charsetElm == null) {
|
|
47520
|
-
charsetElm =
|
|
47397
|
+
charsetElm = doc.createElement("meta");
|
|
47521
47398
|
charsetElm.setAttribute("charset", "utf-8");
|
|
47522
47399
|
} else {
|
|
47523
47400
|
charsetElm.remove();
|
|
@@ -47792,13 +47669,13 @@ var parseCss = (css, filePath) => {
|
|
|
47792
47669
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
47793
47670
|
if (!m) return null;
|
|
47794
47671
|
const vendor = trim(m[1]);
|
|
47795
|
-
const
|
|
47672
|
+
const doc = trim(m[2]);
|
|
47796
47673
|
if (!open()) return error(`@document missing '{'`);
|
|
47797
47674
|
const style = comments().concat(rules());
|
|
47798
47675
|
if (!close()) return error(`@document missing '}'`);
|
|
47799
47676
|
return pos({
|
|
47800
47677
|
type: 3 /* Document */,
|
|
47801
|
-
document:
|
|
47678
|
+
document: doc,
|
|
47802
47679
|
vendor,
|
|
47803
47680
|
rules: style
|
|
47804
47681
|
});
|
|
@@ -48124,11 +48001,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
48124
48001
|
};
|
|
48125
48002
|
var serializeCssDocument = (opts, node) => {
|
|
48126
48003
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
48127
|
-
const
|
|
48004
|
+
const doc = "@" + (node.vendor || "") + "document " + node.document;
|
|
48128
48005
|
if (documentCss === "") {
|
|
48129
48006
|
return "";
|
|
48130
48007
|
}
|
|
48131
|
-
return
|
|
48008
|
+
return doc + "{" + documentCss + "}";
|
|
48132
48009
|
};
|
|
48133
48010
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
48134
48011
|
let rtn = "";
|
|
@@ -48226,12 +48103,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
48226
48103
|
};
|
|
48227
48104
|
|
|
48228
48105
|
// src/compiler/html/remove-unused-styles.ts
|
|
48229
|
-
var removeUnusedStyles = (
|
|
48106
|
+
var removeUnusedStyles = (doc, diagnostics) => {
|
|
48230
48107
|
try {
|
|
48231
|
-
const styleElms =
|
|
48108
|
+
const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
|
|
48232
48109
|
const styleLen = styleElms.length;
|
|
48233
48110
|
if (styleLen > 0) {
|
|
48234
|
-
const usedSelectors = getUsedSelectors(
|
|
48111
|
+
const usedSelectors = getUsedSelectors(doc.documentElement);
|
|
48235
48112
|
for (let i = 0; i < styleLen; i++) {
|
|
48236
48113
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
48237
48114
|
}
|
|
@@ -48364,49 +48241,49 @@ function collectAttributes(node) {
|
|
|
48364
48241
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
48365
48242
|
|
|
48366
48243
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
48367
|
-
function patchDomImplementation(
|
|
48368
|
-
let
|
|
48369
|
-
if (
|
|
48244
|
+
function patchDomImplementation(doc, opts) {
|
|
48245
|
+
let win;
|
|
48246
|
+
if (doc.defaultView != null) {
|
|
48370
48247
|
opts.destroyWindow = true;
|
|
48371
|
-
patchWindow(
|
|
48372
|
-
|
|
48248
|
+
patchWindow(doc.defaultView);
|
|
48249
|
+
win = doc.defaultView;
|
|
48373
48250
|
} else {
|
|
48374
48251
|
opts.destroyWindow = true;
|
|
48375
48252
|
opts.destroyDocument = false;
|
|
48376
|
-
|
|
48253
|
+
win = new MockWindow(false);
|
|
48377
48254
|
}
|
|
48378
|
-
if (
|
|
48379
|
-
|
|
48255
|
+
if (win.document !== doc) {
|
|
48256
|
+
win.document = doc;
|
|
48380
48257
|
}
|
|
48381
|
-
if (
|
|
48382
|
-
|
|
48258
|
+
if (doc.defaultView !== win) {
|
|
48259
|
+
doc.defaultView = win;
|
|
48383
48260
|
}
|
|
48384
|
-
const
|
|
48385
|
-
if (typeof
|
|
48386
|
-
const elm =
|
|
48261
|
+
const HTMLElement = doc.documentElement.constructor.prototype;
|
|
48262
|
+
if (typeof HTMLElement.getRootNode !== "function") {
|
|
48263
|
+
const elm = doc.createElement("unknown-element");
|
|
48387
48264
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
48388
48265
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
48389
48266
|
}
|
|
48390
|
-
if (typeof
|
|
48391
|
-
const
|
|
48392
|
-
if (
|
|
48393
|
-
|
|
48267
|
+
if (typeof doc.createEvent === "function") {
|
|
48268
|
+
const CustomEvent = doc.createEvent("CustomEvent").constructor;
|
|
48269
|
+
if (win.CustomEvent !== CustomEvent) {
|
|
48270
|
+
win.CustomEvent = CustomEvent;
|
|
48394
48271
|
}
|
|
48395
48272
|
}
|
|
48396
48273
|
try {
|
|
48397
|
-
|
|
48274
|
+
win.__stencil_baseURI = doc.baseURI;
|
|
48398
48275
|
} catch (e) {
|
|
48399
|
-
Object.defineProperty(
|
|
48276
|
+
Object.defineProperty(doc, "baseURI", {
|
|
48400
48277
|
get() {
|
|
48401
|
-
const baseElm =
|
|
48278
|
+
const baseElm = doc.querySelector("base[href]");
|
|
48402
48279
|
if (baseElm) {
|
|
48403
|
-
return new URL(baseElm.getAttribute("href"),
|
|
48280
|
+
return new URL(baseElm.getAttribute("href"), win.location.href).href;
|
|
48404
48281
|
}
|
|
48405
|
-
return
|
|
48282
|
+
return win.location.href;
|
|
48406
48283
|
}
|
|
48407
48284
|
});
|
|
48408
48285
|
}
|
|
48409
|
-
return
|
|
48286
|
+
return win;
|
|
48410
48287
|
}
|
|
48411
48288
|
function getRootNode(opts) {
|
|
48412
48289
|
const isComposed = opts != null && opts.composed === true;
|
|
@@ -48559,10 +48436,10 @@ function renderCatchError(results, err2) {
|
|
|
48559
48436
|
}
|
|
48560
48437
|
|
|
48561
48438
|
// src/hydrate/runner/runtime-log.ts
|
|
48562
|
-
function runtimeLogging(
|
|
48439
|
+
function runtimeLogging(win, opts, results) {
|
|
48563
48440
|
try {
|
|
48564
|
-
const pathname =
|
|
48565
|
-
|
|
48441
|
+
const pathname = win.location.pathname;
|
|
48442
|
+
win.console.error = (...msgs) => {
|
|
48566
48443
|
const errMsg = msgs.reduce((errMsg2, m) => {
|
|
48567
48444
|
if (m) {
|
|
48568
48445
|
if (m.stack != null) {
|
|
@@ -48582,7 +48459,7 @@ function runtimeLogging(win2, opts, results) {
|
|
|
48582
48459
|
}
|
|
48583
48460
|
}
|
|
48584
48461
|
};
|
|
48585
|
-
|
|
48462
|
+
win.console.debug = (...msgs) => {
|
|
48586
48463
|
renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
|
|
48587
48464
|
if (opts.runtimeLogging) {
|
|
48588
48465
|
runtimeLog(pathname, "debug", msgs);
|
|
@@ -48590,7 +48467,7 @@ function runtimeLogging(win2, opts, results) {
|
|
|
48590
48467
|
};
|
|
48591
48468
|
if (opts.runtimeLogging) {
|
|
48592
48469
|
["log", "warn", "assert", "info", "trace"].forEach((type) => {
|
|
48593
|
-
|
|
48470
|
+
win.console[type] = (...msgs) => {
|
|
48594
48471
|
runtimeLog(pathname, type, msgs);
|
|
48595
48472
|
};
|
|
48596
48473
|
});
|
|
@@ -48604,58 +48481,58 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
48604
48481
|
}
|
|
48605
48482
|
|
|
48606
48483
|
// src/hydrate/runner/window-initialize.ts
|
|
48607
|
-
function initializeWindow(
|
|
48484
|
+
function initializeWindow(win, doc, opts, results) {
|
|
48608
48485
|
if (typeof opts.url === "string") {
|
|
48609
48486
|
try {
|
|
48610
|
-
|
|
48487
|
+
win.location.href = opts.url;
|
|
48611
48488
|
} catch (e) {
|
|
48612
48489
|
}
|
|
48613
48490
|
}
|
|
48614
48491
|
if (typeof opts.userAgent === "string") {
|
|
48615
48492
|
try {
|
|
48616
|
-
|
|
48493
|
+
win.navigator.userAgent = opts.userAgent;
|
|
48617
48494
|
} catch (e) {
|
|
48618
48495
|
}
|
|
48619
48496
|
}
|
|
48620
48497
|
if (typeof opts.cookie === "string") {
|
|
48621
48498
|
try {
|
|
48622
|
-
|
|
48499
|
+
doc.cookie = opts.cookie;
|
|
48623
48500
|
} catch (e) {
|
|
48624
48501
|
}
|
|
48625
48502
|
}
|
|
48626
48503
|
if (typeof opts.referrer === "string") {
|
|
48627
48504
|
try {
|
|
48628
|
-
|
|
48505
|
+
doc.referrer = opts.referrer;
|
|
48629
48506
|
} catch (e) {
|
|
48630
48507
|
}
|
|
48631
48508
|
}
|
|
48632
48509
|
if (typeof opts.direction === "string") {
|
|
48633
48510
|
try {
|
|
48634
|
-
|
|
48511
|
+
doc.documentElement.setAttribute("dir", opts.direction);
|
|
48635
48512
|
} catch (e) {
|
|
48636
48513
|
}
|
|
48637
48514
|
}
|
|
48638
48515
|
if (typeof opts.language === "string") {
|
|
48639
48516
|
try {
|
|
48640
|
-
|
|
48517
|
+
doc.documentElement.setAttribute("lang", opts.language);
|
|
48641
48518
|
} catch (e) {
|
|
48642
48519
|
}
|
|
48643
48520
|
}
|
|
48644
48521
|
if (typeof opts.buildId === "string") {
|
|
48645
48522
|
try {
|
|
48646
|
-
|
|
48523
|
+
doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
48647
48524
|
} catch (e) {
|
|
48648
48525
|
}
|
|
48649
48526
|
}
|
|
48650
48527
|
try {
|
|
48651
|
-
|
|
48528
|
+
win.customElements = null;
|
|
48652
48529
|
} catch (e) {
|
|
48653
48530
|
}
|
|
48654
48531
|
if (opts.constrainTimeouts) {
|
|
48655
|
-
constrainTimeouts(
|
|
48532
|
+
constrainTimeouts(win);
|
|
48656
48533
|
}
|
|
48657
|
-
runtimeLogging(
|
|
48658
|
-
return
|
|
48534
|
+
runtimeLogging(win, opts, results);
|
|
48535
|
+
return win;
|
|
48659
48536
|
}
|
|
48660
48537
|
|
|
48661
48538
|
// src/hydrate/runner/render.ts
|
|
@@ -48672,44 +48549,44 @@ function renderToString(html, options, asStream) {
|
|
|
48672
48549
|
opts.constrainTimeouts = false;
|
|
48673
48550
|
return hydrateDocument(html, opts, asStream);
|
|
48674
48551
|
}
|
|
48675
|
-
function hydrateDocument(
|
|
48552
|
+
function hydrateDocument(doc, options, asStream) {
|
|
48676
48553
|
const opts = normalizeHydrateOptions(options);
|
|
48677
|
-
let
|
|
48554
|
+
let win = null;
|
|
48678
48555
|
const results = generateHydrateResults(opts);
|
|
48679
48556
|
if (hasError(results.diagnostics)) {
|
|
48680
48557
|
return Promise.resolve(results);
|
|
48681
48558
|
}
|
|
48682
|
-
if (typeof
|
|
48559
|
+
if (typeof doc === "string") {
|
|
48683
48560
|
try {
|
|
48684
48561
|
opts.destroyWindow = true;
|
|
48685
48562
|
opts.destroyDocument = true;
|
|
48686
|
-
|
|
48563
|
+
win = new MockWindow(doc);
|
|
48687
48564
|
if (!asStream) {
|
|
48688
|
-
return render(
|
|
48565
|
+
return render(win, opts, results).then(() => results);
|
|
48689
48566
|
}
|
|
48690
|
-
return renderStream(
|
|
48567
|
+
return renderStream(win, opts, results);
|
|
48691
48568
|
} catch (e) {
|
|
48692
|
-
if (
|
|
48693
|
-
|
|
48569
|
+
if (win && win.close) {
|
|
48570
|
+
win.close();
|
|
48694
48571
|
}
|
|
48695
|
-
|
|
48572
|
+
win = null;
|
|
48696
48573
|
renderCatchError(results, e);
|
|
48697
48574
|
return Promise.resolve(results);
|
|
48698
48575
|
}
|
|
48699
48576
|
}
|
|
48700
|
-
if (isValidDocument(
|
|
48577
|
+
if (isValidDocument(doc)) {
|
|
48701
48578
|
try {
|
|
48702
48579
|
opts.destroyDocument = false;
|
|
48703
|
-
|
|
48580
|
+
win = patchDomImplementation(doc, opts);
|
|
48704
48581
|
if (!asStream) {
|
|
48705
|
-
return render(
|
|
48582
|
+
return render(win, opts, results).then(() => results);
|
|
48706
48583
|
}
|
|
48707
|
-
return renderStream(
|
|
48584
|
+
return renderStream(win, opts, results);
|
|
48708
48585
|
} catch (e) {
|
|
48709
|
-
if (
|
|
48710
|
-
|
|
48586
|
+
if (win && win.close) {
|
|
48587
|
+
win.close();
|
|
48711
48588
|
}
|
|
48712
|
-
|
|
48589
|
+
win = null;
|
|
48713
48590
|
renderCatchError(results, e);
|
|
48714
48591
|
return Promise.resolve(results);
|
|
48715
48592
|
}
|
|
@@ -48717,81 +48594,75 @@ function hydrateDocument(doc2, options, asStream) {
|
|
|
48717
48594
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
48718
48595
|
return Promise.resolve(results);
|
|
48719
48596
|
}
|
|
48720
|
-
async function render(
|
|
48597
|
+
async function render(win, opts, results) {
|
|
48721
48598
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
48722
48599
|
process.__stencilErrors = true;
|
|
48723
48600
|
process.on("unhandledRejection", (e) => {
|
|
48724
48601
|
console.log("unhandledRejection", e);
|
|
48725
48602
|
});
|
|
48726
48603
|
}
|
|
48727
|
-
initializeWindow(
|
|
48604
|
+
initializeWindow(win, win.document, opts, results);
|
|
48728
48605
|
const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
|
|
48729
48606
|
try {
|
|
48730
|
-
await Promise.resolve(beforeHydrateFn(
|
|
48731
|
-
return new Promise((resolve) =>
|
|
48732
|
-
if (Array.isArray(opts.modes)) {
|
|
48733
|
-
modeResolutionChain.length = 0;
|
|
48734
|
-
opts.modes.forEach((mode) => setMode(mode));
|
|
48735
|
-
}
|
|
48736
|
-
return hydrateFactory(win2, opts, results, afterHydrate, resolve);
|
|
48737
|
-
});
|
|
48607
|
+
await Promise.resolve(beforeHydrateFn(win.document));
|
|
48608
|
+
return new Promise((resolve) => hydrateFactory(win, opts, results, afterHydrate, resolve));
|
|
48738
48609
|
} catch (e) {
|
|
48739
48610
|
renderCatchError(results, e);
|
|
48740
|
-
return finalizeHydrate(
|
|
48611
|
+
return finalizeHydrate(win, win.document, opts, results);
|
|
48741
48612
|
}
|
|
48742
48613
|
}
|
|
48743
|
-
function renderStream(
|
|
48614
|
+
function renderStream(win, opts, results) {
|
|
48744
48615
|
async function* processRender() {
|
|
48745
|
-
const renderResult = await render(
|
|
48616
|
+
const renderResult = await render(win, opts, results);
|
|
48746
48617
|
yield renderResult.html;
|
|
48747
48618
|
}
|
|
48748
48619
|
return Readable.from(processRender());
|
|
48749
48620
|
}
|
|
48750
|
-
async function afterHydrate(
|
|
48621
|
+
async function afterHydrate(win, opts, results, resolve) {
|
|
48751
48622
|
const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
|
|
48752
48623
|
try {
|
|
48753
|
-
await Promise.resolve(afterHydrateFn(
|
|
48754
|
-
return resolve(finalizeHydrate(
|
|
48624
|
+
await Promise.resolve(afterHydrateFn(win.document));
|
|
48625
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
48755
48626
|
} catch (e) {
|
|
48756
48627
|
renderCatchError(results, e);
|
|
48757
|
-
return resolve(finalizeHydrate(
|
|
48628
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
48758
48629
|
}
|
|
48759
48630
|
}
|
|
48760
|
-
function finalizeHydrate(
|
|
48631
|
+
function finalizeHydrate(win, doc, opts, results) {
|
|
48761
48632
|
try {
|
|
48762
|
-
inspectElement(results,
|
|
48633
|
+
inspectElement(results, doc.documentElement, 0);
|
|
48763
48634
|
if (opts.removeUnusedStyles !== false) {
|
|
48764
48635
|
try {
|
|
48765
|
-
removeUnusedStyles(
|
|
48636
|
+
removeUnusedStyles(doc, results.diagnostics);
|
|
48766
48637
|
} catch (e) {
|
|
48767
48638
|
renderCatchError(results, e);
|
|
48768
48639
|
}
|
|
48769
48640
|
}
|
|
48770
48641
|
if (typeof opts.title === "string") {
|
|
48771
48642
|
try {
|
|
48772
|
-
|
|
48643
|
+
doc.title = opts.title;
|
|
48773
48644
|
} catch (e) {
|
|
48774
48645
|
renderCatchError(results, e);
|
|
48775
48646
|
}
|
|
48776
48647
|
}
|
|
48777
|
-
results.title =
|
|
48648
|
+
results.title = doc.title;
|
|
48778
48649
|
if (opts.removeScripts) {
|
|
48779
|
-
removeScripts(
|
|
48650
|
+
removeScripts(doc.documentElement);
|
|
48780
48651
|
}
|
|
48781
48652
|
try {
|
|
48782
|
-
updateCanonicalLink(
|
|
48653
|
+
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
48783
48654
|
} catch (e) {
|
|
48784
48655
|
renderCatchError(results, e);
|
|
48785
48656
|
}
|
|
48786
48657
|
try {
|
|
48787
|
-
relocateMetaCharset(
|
|
48658
|
+
relocateMetaCharset(doc);
|
|
48788
48659
|
} catch (e) {
|
|
48789
48660
|
}
|
|
48790
48661
|
if (!hasError(results.diagnostics)) {
|
|
48791
48662
|
results.httpStatus = 200;
|
|
48792
48663
|
}
|
|
48793
48664
|
try {
|
|
48794
|
-
const metaStatus =
|
|
48665
|
+
const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
|
|
48795
48666
|
if (metaStatus != null) {
|
|
48796
48667
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
48797
48668
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -48801,35 +48672,35 @@ function finalizeHydrate(win2, doc2, opts, results) {
|
|
|
48801
48672
|
} catch (e) {
|
|
48802
48673
|
}
|
|
48803
48674
|
if (opts.clientHydrateAnnotations) {
|
|
48804
|
-
|
|
48675
|
+
doc.documentElement.classList.add("hydrated");
|
|
48805
48676
|
}
|
|
48806
48677
|
if (opts.serializeToHtml) {
|
|
48807
|
-
results.html = serializeDocumentToString(
|
|
48678
|
+
results.html = serializeDocumentToString(doc, opts);
|
|
48808
48679
|
}
|
|
48809
48680
|
} catch (e) {
|
|
48810
48681
|
renderCatchError(results, e);
|
|
48811
48682
|
}
|
|
48812
|
-
destroyWindow(
|
|
48683
|
+
destroyWindow(win, doc, opts, results);
|
|
48813
48684
|
return results;
|
|
48814
48685
|
}
|
|
48815
|
-
function destroyWindow(
|
|
48686
|
+
function destroyWindow(win, doc, opts, results) {
|
|
48816
48687
|
if (!opts.destroyWindow) {
|
|
48817
48688
|
return;
|
|
48818
48689
|
}
|
|
48819
48690
|
try {
|
|
48820
48691
|
if (!opts.destroyDocument) {
|
|
48821
|
-
|
|
48822
|
-
|
|
48692
|
+
win.document = null;
|
|
48693
|
+
doc.defaultView = null;
|
|
48823
48694
|
}
|
|
48824
|
-
if (
|
|
48825
|
-
|
|
48695
|
+
if (win.close) {
|
|
48696
|
+
win.close();
|
|
48826
48697
|
}
|
|
48827
48698
|
} catch (e) {
|
|
48828
48699
|
renderCatchError(results, e);
|
|
48829
48700
|
}
|
|
48830
48701
|
}
|
|
48831
|
-
function serializeDocumentToString(
|
|
48832
|
-
return serializeNodeToHtml(
|
|
48702
|
+
function serializeDocumentToString(doc, opts) {
|
|
48703
|
+
return serializeNodeToHtml(doc, {
|
|
48833
48704
|
approximateLineWidth: opts.approximateLineWidth,
|
|
48834
48705
|
outerHtml: false,
|
|
48835
48706
|
prettyHtml: opts.prettyHtml,
|
|
@@ -48841,8 +48712,8 @@ function serializeDocumentToString(doc2, opts) {
|
|
|
48841
48712
|
fullDocument: opts.fullDocument
|
|
48842
48713
|
});
|
|
48843
48714
|
}
|
|
48844
|
-
function isValidDocument(
|
|
48845
|
-
return
|
|
48715
|
+
function isValidDocument(doc) {
|
|
48716
|
+
return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
|
|
48846
48717
|
}
|
|
48847
48718
|
function removeScripts(elm) {
|
|
48848
48719
|
const children = elm.children;
|