@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.js
CHANGED
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
7
7
|
|
|
8
8
|
var stream = require('stream');
|
|
9
9
|
|
|
10
|
-
const modeResolutionChain = [];
|
|
11
|
-
|
|
12
10
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
13
11
|
var globalThis = $stencilWindow;
|
|
14
12
|
var self = $stencilWindow;
|
|
@@ -132,7 +130,7 @@ const NAMESPACE = 'ionic';
|
|
|
132
130
|
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 };
|
|
133
131
|
|
|
134
132
|
/*
|
|
135
|
-
Stencil Hydrate Platform v4.21.0
|
|
133
|
+
Stencil Hydrate Platform v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
136
134
|
*/
|
|
137
135
|
var __defProp = Object.defineProperty;
|
|
138
136
|
var __export = (target, all) => {
|
|
@@ -613,7 +611,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
613
611
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
614
612
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
615
613
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
616
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
614
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
|
|
617
615
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
618
616
|
} else if ("host" in styleContainerNode) {
|
|
619
617
|
styleContainerNode.prepend(styleElm);
|
|
@@ -2374,7 +2372,7 @@ var Build = {
|
|
|
2374
2372
|
isTesting: false
|
|
2375
2373
|
};
|
|
2376
2374
|
var styles = /* @__PURE__ */ new Map();
|
|
2377
|
-
|
|
2375
|
+
var modeResolutionChain = [];
|
|
2378
2376
|
|
|
2379
2377
|
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
2380
2378
|
return new Promise((resolve) => {
|
|
@@ -2616,7 +2614,7 @@ const focusVisibleElement = (el) => {
|
|
|
2616
2614
|
* which will let us explicitly set the elements to focus.
|
|
2617
2615
|
*/
|
|
2618
2616
|
if (el.classList.contains('ion-focusable')) {
|
|
2619
|
-
const app = el.closest('ion-app');
|
|
2617
|
+
const app = el.closest('ion-app, .ion-app');
|
|
2620
2618
|
if (app) {
|
|
2621
2619
|
app.setFocus([el]);
|
|
2622
2620
|
}
|
|
@@ -2778,6 +2776,55 @@ class Config {
|
|
|
2778
2776
|
}
|
|
2779
2777
|
const config = /*@__PURE__*/ new Config();
|
|
2780
2778
|
|
|
2779
|
+
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
2780
|
+
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* CloseWatcher is a newer API that lets
|
|
2784
|
+
* use detect the hardware back button event
|
|
2785
|
+
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
2786
|
+
* However, not every browser supports it yet.
|
|
2787
|
+
*
|
|
2788
|
+
* This needs to be a function so that we can
|
|
2789
|
+
* check the config once it has been set.
|
|
2790
|
+
* Otherwise, this code would be evaluated the
|
|
2791
|
+
* moment this file is evaluated which could be
|
|
2792
|
+
* before the config is set.
|
|
2793
|
+
*/
|
|
2794
|
+
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
2795
|
+
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
2796
|
+
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* Logs a warning to the console with an Ionic prefix
|
|
2800
|
+
* to indicate the library that is warning the developer.
|
|
2801
|
+
*
|
|
2802
|
+
* @param message - The string message to be logged to the console.
|
|
2803
|
+
*/
|
|
2804
|
+
const printIonWarning = (message, ...params) => {
|
|
2805
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
2806
|
+
};
|
|
2807
|
+
/*
|
|
2808
|
+
* Logs an error to the console with an Ionic prefix
|
|
2809
|
+
* to indicate the library that is warning the developer.
|
|
2810
|
+
*
|
|
2811
|
+
* @param message - The string message to be logged to the console.
|
|
2812
|
+
* @param params - Additional arguments to supply to the console.error.
|
|
2813
|
+
*/
|
|
2814
|
+
const printIonError = (message, ...params) => {
|
|
2815
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
2816
|
+
};
|
|
2817
|
+
/**
|
|
2818
|
+
* Prints an error informing developers that an implementation requires an element to be used
|
|
2819
|
+
* within a specific selector.
|
|
2820
|
+
*
|
|
2821
|
+
* @param el The web component element this is requiring the element.
|
|
2822
|
+
* @param targetSelectors The selector or selectors that were not found.
|
|
2823
|
+
*/
|
|
2824
|
+
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
2825
|
+
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2781
2828
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
2782
2829
|
const isPlatform = (winOrPlatform, platform) => {
|
|
2783
2830
|
if (typeof winOrPlatform === 'string') {
|
|
@@ -3218,36 +3265,6 @@ class Accordion {
|
|
|
3218
3265
|
}
|
|
3219
3266
|
let accordionIds = 0;
|
|
3220
3267
|
|
|
3221
|
-
/**
|
|
3222
|
-
* Logs a warning to the console with an Ionic prefix
|
|
3223
|
-
* to indicate the library that is warning the developer.
|
|
3224
|
-
*
|
|
3225
|
-
* @param message - The string message to be logged to the console.
|
|
3226
|
-
*/
|
|
3227
|
-
const printIonWarning = (message, ...params) => {
|
|
3228
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3229
|
-
};
|
|
3230
|
-
/*
|
|
3231
|
-
* Logs an error to the console with an Ionic prefix
|
|
3232
|
-
* to indicate the library that is warning the developer.
|
|
3233
|
-
*
|
|
3234
|
-
* @param message - The string message to be logged to the console.
|
|
3235
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
3236
|
-
*/
|
|
3237
|
-
const printIonError = (message, ...params) => {
|
|
3238
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3239
|
-
};
|
|
3240
|
-
/**
|
|
3241
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
3242
|
-
* within a specific selector.
|
|
3243
|
-
*
|
|
3244
|
-
* @param el The web component element this is requiring the element.
|
|
3245
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
3246
|
-
*/
|
|
3247
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
3248
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
3249
|
-
};
|
|
3250
|
-
|
|
3251
3268
|
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}";
|
|
3252
3269
|
var IonAccordionGroupIosStyle0 = accordionGroupIosCss;
|
|
3253
3270
|
|
|
@@ -3486,9 +3503,6 @@ class AccordionGroup {
|
|
|
3486
3503
|
}; }
|
|
3487
3504
|
}
|
|
3488
3505
|
|
|
3489
|
-
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
3490
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
3491
|
-
|
|
3492
3506
|
const getCapacitor = () => {
|
|
3493
3507
|
if (win$1 !== undefined) {
|
|
3494
3508
|
return win$1.Capacitor;
|
|
@@ -4463,22 +4477,6 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
|
|
|
4463
4477
|
}
|
|
4464
4478
|
};
|
|
4465
4479
|
|
|
4466
|
-
/**
|
|
4467
|
-
* CloseWatcher is a newer API that lets
|
|
4468
|
-
* use detect the hardware back button event
|
|
4469
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
4470
|
-
* However, not every browser supports it yet.
|
|
4471
|
-
*
|
|
4472
|
-
* This needs to be a function so that we can
|
|
4473
|
-
* check the config once it has been set.
|
|
4474
|
-
* Otherwise, this code would be evaluated the
|
|
4475
|
-
* moment this file is evaluated which could be
|
|
4476
|
-
* before the config is set.
|
|
4477
|
-
*/
|
|
4478
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
4479
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
4480
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
4481
|
-
|
|
4482
4480
|
// TODO(FW-2832): types
|
|
4483
4481
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
4484
4482
|
var _a;
|
|
@@ -4578,7 +4576,8 @@ const CoreDelegate = () => {
|
|
|
4578
4576
|
* Get the root of the app and
|
|
4579
4577
|
* add the overlay there.
|
|
4580
4578
|
*/
|
|
4581
|
-
const
|
|
4579
|
+
const appRootClass = config.get('appRootClass', 'ion-app');
|
|
4580
|
+
const app = document.querySelector(`ion-app, ${appRootClass}`) || document.body;
|
|
4582
4581
|
/**
|
|
4583
4582
|
* Create a placeholder comment so that
|
|
4584
4583
|
* we can return this component to where
|
|
@@ -5174,7 +5173,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
5174
5173
|
return true;
|
|
5175
5174
|
};
|
|
5176
5175
|
const getAppRoot = (doc) => {
|
|
5177
|
-
return doc.querySelector('ion-app') || doc.body;
|
|
5176
|
+
return doc.querySelector('ion-app, .ion-app') || doc.body;
|
|
5178
5177
|
};
|
|
5179
5178
|
const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
|
|
5180
5179
|
// Make overlay visible in case it's hidden
|
|
@@ -7303,6 +7302,84 @@ const buttonClass$2 = (button) => {
|
|
|
7303
7302
|
return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
7304
7303
|
};
|
|
7305
7304
|
|
|
7305
|
+
const ION_FOCUSED = 'ion-focused';
|
|
7306
|
+
const ION_FOCUSABLE = 'ion-focusable';
|
|
7307
|
+
const FOCUS_KEYS = [
|
|
7308
|
+
'Tab',
|
|
7309
|
+
'ArrowDown',
|
|
7310
|
+
'Space',
|
|
7311
|
+
'Escape',
|
|
7312
|
+
' ',
|
|
7313
|
+
'Shift',
|
|
7314
|
+
'Enter',
|
|
7315
|
+
'ArrowLeft',
|
|
7316
|
+
'ArrowRight',
|
|
7317
|
+
'ArrowUp',
|
|
7318
|
+
'Home',
|
|
7319
|
+
'End',
|
|
7320
|
+
];
|
|
7321
|
+
let focusVisibleUtility = null;
|
|
7322
|
+
const getOrInitFocusVisibleUtility = () => {
|
|
7323
|
+
if (!focusVisibleUtility) {
|
|
7324
|
+
focusVisibleUtility = startFocusVisible();
|
|
7325
|
+
}
|
|
7326
|
+
return focusVisibleUtility;
|
|
7327
|
+
};
|
|
7328
|
+
const startFocusVisible = (rootEl) => {
|
|
7329
|
+
let currentFocus = [];
|
|
7330
|
+
let keyboardMode = true;
|
|
7331
|
+
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
7332
|
+
const root = rootEl ? rootEl : document.body;
|
|
7333
|
+
const setFocus = (elements) => {
|
|
7334
|
+
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
7335
|
+
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
7336
|
+
currentFocus = elements;
|
|
7337
|
+
};
|
|
7338
|
+
const pointerDown = () => {
|
|
7339
|
+
keyboardMode = false;
|
|
7340
|
+
setFocus([]);
|
|
7341
|
+
};
|
|
7342
|
+
const onKeydown = (ev) => {
|
|
7343
|
+
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
7344
|
+
if (!keyboardMode) {
|
|
7345
|
+
setFocus([]);
|
|
7346
|
+
}
|
|
7347
|
+
};
|
|
7348
|
+
const onFocusin = (ev) => {
|
|
7349
|
+
if (keyboardMode && ev.composedPath !== undefined) {
|
|
7350
|
+
const toFocus = ev.composedPath().filter((el) => {
|
|
7351
|
+
// TODO(FW-2832): type
|
|
7352
|
+
if (el.classList) {
|
|
7353
|
+
return el.classList.contains(ION_FOCUSABLE);
|
|
7354
|
+
}
|
|
7355
|
+
return false;
|
|
7356
|
+
});
|
|
7357
|
+
setFocus(toFocus);
|
|
7358
|
+
}
|
|
7359
|
+
};
|
|
7360
|
+
const onFocusout = () => {
|
|
7361
|
+
if (ref.activeElement === root) {
|
|
7362
|
+
setFocus([]);
|
|
7363
|
+
}
|
|
7364
|
+
};
|
|
7365
|
+
ref.addEventListener('keydown', onKeydown);
|
|
7366
|
+
ref.addEventListener('focusin', onFocusin);
|
|
7367
|
+
ref.addEventListener('focusout', onFocusout);
|
|
7368
|
+
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
7369
|
+
ref.addEventListener('mousedown', pointerDown);
|
|
7370
|
+
const destroy = () => {
|
|
7371
|
+
ref.removeEventListener('keydown', onKeydown);
|
|
7372
|
+
ref.removeEventListener('focusin', onFocusin);
|
|
7373
|
+
ref.removeEventListener('focusout', onFocusout);
|
|
7374
|
+
ref.removeEventListener('touchstart', pointerDown);
|
|
7375
|
+
ref.removeEventListener('mousedown', pointerDown);
|
|
7376
|
+
};
|
|
7377
|
+
return {
|
|
7378
|
+
destroy,
|
|
7379
|
+
setFocus,
|
|
7380
|
+
};
|
|
7381
|
+
};
|
|
7382
|
+
|
|
7306
7383
|
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}";
|
|
7307
7384
|
var IonAppStyle0 = appCss;
|
|
7308
7385
|
|
|
@@ -7310,8 +7387,6 @@ class App {
|
|
|
7310
7387
|
constructor(hostRef) {
|
|
7311
7388
|
registerInstance(this, hostRef);
|
|
7312
7389
|
}
|
|
7313
|
-
componentDidLoad() {
|
|
7314
|
-
}
|
|
7315
7390
|
/**
|
|
7316
7391
|
* @internal
|
|
7317
7392
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -7323,13 +7398,12 @@ class App {
|
|
|
7323
7398
|
* presented as a result of keyboard action.)
|
|
7324
7399
|
*/
|
|
7325
7400
|
async setFocus(elements) {
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
}
|
|
7401
|
+
const focusVisible = getOrInitFocusVisibleUtility();
|
|
7402
|
+
focusVisible.setFocus(elements);
|
|
7329
7403
|
}
|
|
7330
7404
|
render() {
|
|
7331
7405
|
const mode = getIonMode$1(this);
|
|
7332
|
-
return (hAsync(Host, { key: '
|
|
7406
|
+
return (hAsync(Host, { key: '4773923a95e44577ff634c0ae6f1a56f41b54088', class: {
|
|
7333
7407
|
[mode]: true,
|
|
7334
7408
|
'ion-page': true,
|
|
7335
7409
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -9101,7 +9175,7 @@ const getPageElement = (el) => {
|
|
|
9101
9175
|
* between the popover and the edges of the screen. But if the popover contains
|
|
9102
9176
|
* its own page element, we should use that instead.
|
|
9103
9177
|
*/
|
|
9104
|
-
const page = el.closest('ion-app, ion-page, .ion-page, page-inner, .popover-content');
|
|
9178
|
+
const page = el.closest('ion-app, .ion-app, ion-page, .ion-page, page-inner, .popover-content');
|
|
9105
9179
|
if (page) {
|
|
9106
9180
|
return page;
|
|
9107
9181
|
}
|
|
@@ -9135,77 +9209,6 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
9135
9209
|
}
|
|
9136
9210
|
};
|
|
9137
9211
|
|
|
9138
|
-
const ION_FOCUSED = 'ion-focused';
|
|
9139
|
-
const ION_FOCUSABLE = 'ion-focusable';
|
|
9140
|
-
const FOCUS_KEYS = [
|
|
9141
|
-
'Tab',
|
|
9142
|
-
'ArrowDown',
|
|
9143
|
-
'Space',
|
|
9144
|
-
'Escape',
|
|
9145
|
-
' ',
|
|
9146
|
-
'Shift',
|
|
9147
|
-
'Enter',
|
|
9148
|
-
'ArrowLeft',
|
|
9149
|
-
'ArrowRight',
|
|
9150
|
-
'ArrowUp',
|
|
9151
|
-
'Home',
|
|
9152
|
-
'End',
|
|
9153
|
-
];
|
|
9154
|
-
const startFocusVisible = (rootEl) => {
|
|
9155
|
-
let currentFocus = [];
|
|
9156
|
-
let keyboardMode = true;
|
|
9157
|
-
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
9158
|
-
const root = rootEl ? rootEl : document.body;
|
|
9159
|
-
const setFocus = (elements) => {
|
|
9160
|
-
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
9161
|
-
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
9162
|
-
currentFocus = elements;
|
|
9163
|
-
};
|
|
9164
|
-
const pointerDown = () => {
|
|
9165
|
-
keyboardMode = false;
|
|
9166
|
-
setFocus([]);
|
|
9167
|
-
};
|
|
9168
|
-
const onKeydown = (ev) => {
|
|
9169
|
-
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
9170
|
-
if (!keyboardMode) {
|
|
9171
|
-
setFocus([]);
|
|
9172
|
-
}
|
|
9173
|
-
};
|
|
9174
|
-
const onFocusin = (ev) => {
|
|
9175
|
-
if (keyboardMode && ev.composedPath !== undefined) {
|
|
9176
|
-
const toFocus = ev.composedPath().filter((el) => {
|
|
9177
|
-
// TODO(FW-2832): type
|
|
9178
|
-
if (el.classList) {
|
|
9179
|
-
return el.classList.contains(ION_FOCUSABLE);
|
|
9180
|
-
}
|
|
9181
|
-
return false;
|
|
9182
|
-
});
|
|
9183
|
-
setFocus(toFocus);
|
|
9184
|
-
}
|
|
9185
|
-
};
|
|
9186
|
-
const onFocusout = () => {
|
|
9187
|
-
if (ref.activeElement === root) {
|
|
9188
|
-
setFocus([]);
|
|
9189
|
-
}
|
|
9190
|
-
};
|
|
9191
|
-
ref.addEventListener('keydown', onKeydown);
|
|
9192
|
-
ref.addEventListener('focusin', onFocusin);
|
|
9193
|
-
ref.addEventListener('focusout', onFocusout);
|
|
9194
|
-
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
9195
|
-
ref.addEventListener('mousedown', pointerDown);
|
|
9196
|
-
const destroy = () => {
|
|
9197
|
-
ref.removeEventListener('keydown', onKeydown);
|
|
9198
|
-
ref.removeEventListener('focusin', onFocusin);
|
|
9199
|
-
ref.removeEventListener('focusout', onFocusout);
|
|
9200
|
-
ref.removeEventListener('touchstart', pointerDown);
|
|
9201
|
-
ref.removeEventListener('mousedown', pointerDown);
|
|
9202
|
-
};
|
|
9203
|
-
return {
|
|
9204
|
-
destroy,
|
|
9205
|
-
setFocus,
|
|
9206
|
-
};
|
|
9207
|
-
};
|
|
9208
|
-
|
|
9209
9212
|
/**
|
|
9210
9213
|
* Returns true if the selected day is equal to the reference day
|
|
9211
9214
|
*/
|
|
@@ -13436,7 +13439,7 @@ const getResizeContainer = (resizeMode) => {
|
|
|
13436
13439
|
* on that. In the event `ion-app` is not available then
|
|
13437
13440
|
* we can fall back to `body`.
|
|
13438
13441
|
*/
|
|
13439
|
-
const ionApp = doc.querySelector('ion-app');
|
|
13442
|
+
const ionApp = doc.querySelector('ion-app, .ion-app');
|
|
13440
13443
|
return ionApp !== null && ionApp !== void 0 ? ionApp : doc.body;
|
|
13441
13444
|
};
|
|
13442
13445
|
/**
|
|
@@ -13623,7 +13626,7 @@ class Footer {
|
|
|
13623
13626
|
const hasFade = collapse === 'fade';
|
|
13624
13627
|
this.destroyCollapsibleFooter();
|
|
13625
13628
|
if (hasFade) {
|
|
13626
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
13629
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
13627
13630
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
13628
13631
|
if (!contentEl) {
|
|
13629
13632
|
printIonContentErrorMsg(this.el);
|
|
@@ -13682,7 +13685,7 @@ class Footer {
|
|
|
13682
13685
|
const mode = getIonMode$1(this);
|
|
13683
13686
|
const tabs = this.el.closest('ion-tabs');
|
|
13684
13687
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
13685
|
-
return (hAsync(Host, { key: '
|
|
13688
|
+
return (hAsync(Host, { key: '1ccb49da6f7c9f1f883904ae4b931fac5f341216', role: "contentinfo", class: {
|
|
13686
13689
|
[mode]: true,
|
|
13687
13690
|
// Used internally for styling
|
|
13688
13691
|
[`footer-${mode}`]: true,
|
|
@@ -13690,7 +13693,7 @@ class Footer {
|
|
|
13690
13693
|
[`footer-translucent-${mode}`]: translucent,
|
|
13691
13694
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
13692
13695
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
13693
|
-
} }, mode === 'ios' && translucent && hAsync("div", { key: '
|
|
13696
|
+
} }, mode === 'ios' && translucent && hAsync("div", { key: 'a910070df4e5faee7b135d10364510c612cd2587', class: "footer-background" }), hAsync("slot", { key: '1507567059072ecf7243d6a304079c52eb58455f' })));
|
|
13694
13697
|
}
|
|
13695
13698
|
get el() { return getElement(this); }
|
|
13696
13699
|
static get style() { return {
|
|
@@ -13964,7 +13967,7 @@ class Header {
|
|
|
13964
13967
|
const hasFade = collapse === 'fade';
|
|
13965
13968
|
this.destroyCollapsibleHeader();
|
|
13966
13969
|
if (hasCondense) {
|
|
13967
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
13970
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
13968
13971
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
13969
13972
|
// Cloned elements are always needed in iOS transition
|
|
13970
13973
|
writeTask(() => {
|
|
@@ -13975,7 +13978,7 @@ class Header {
|
|
|
13975
13978
|
await this.setupCondenseHeader(contentEl, pageEl);
|
|
13976
13979
|
}
|
|
13977
13980
|
else if (hasFade) {
|
|
13978
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
13981
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
13979
13982
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
13980
13983
|
if (!contentEl) {
|
|
13981
13984
|
printIonContentErrorMsg(this.el);
|
|
@@ -14055,14 +14058,14 @@ class Header {
|
|
|
14055
14058
|
const collapse = this.collapse || 'none';
|
|
14056
14059
|
// banner role must be at top level, so remove role if inside a menu
|
|
14057
14060
|
const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
|
|
14058
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
14061
|
+
return (hAsync(Host, Object.assign({ key: '6a248ea9b21b1122084069ba99477cdde3322158', role: roleType, class: {
|
|
14059
14062
|
[mode]: true,
|
|
14060
14063
|
// Used internally for styling
|
|
14061
14064
|
[`header-${mode}`]: true,
|
|
14062
14065
|
[`header-translucent`]: this.translucent,
|
|
14063
14066
|
[`header-collapse-${collapse}`]: true,
|
|
14064
14067
|
[`header-translucent-${mode}`]: this.translucent,
|
|
14065
|
-
} }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { key: '
|
|
14068
|
+
} }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { key: 'c3e8bc6dfacd2df1a2611a660dcabc3b876dd3f9', class: "header-background" }), hAsync("slot", { key: '6f4829f92a05b97ae7d6e1ac2141934ee6041c4a' })));
|
|
14066
14069
|
}
|
|
14067
14070
|
get el() { return getElement(this); }
|
|
14068
14071
|
static get style() { return {
|
|
@@ -33264,105 +33267,8 @@ exports.hydrateApp = hydrateApp;
|
|
|
33264
33267
|
hydrateAppClosure($stencilWindow);
|
|
33265
33268
|
}
|
|
33266
33269
|
|
|
33267
|
-
// src/app-data/index.ts
|
|
33268
|
-
var BUILD = {
|
|
33269
|
-
allRenderFn: false,
|
|
33270
|
-
cmpDidLoad: true,
|
|
33271
|
-
cmpDidUnload: false,
|
|
33272
|
-
cmpDidUpdate: true,
|
|
33273
|
-
cmpDidRender: true,
|
|
33274
|
-
cmpWillLoad: true,
|
|
33275
|
-
cmpWillUpdate: true,
|
|
33276
|
-
cmpWillRender: true,
|
|
33277
|
-
connectedCallback: true,
|
|
33278
|
-
disconnectedCallback: true,
|
|
33279
|
-
element: true,
|
|
33280
|
-
event: true,
|
|
33281
|
-
hasRenderFn: true,
|
|
33282
|
-
lifecycle: true,
|
|
33283
|
-
hostListener: true,
|
|
33284
|
-
hostListenerTargetWindow: true,
|
|
33285
|
-
hostListenerTargetDocument: true,
|
|
33286
|
-
hostListenerTargetBody: true,
|
|
33287
|
-
hostListenerTargetParent: false,
|
|
33288
|
-
hostListenerTarget: true,
|
|
33289
|
-
member: true,
|
|
33290
|
-
method: true,
|
|
33291
|
-
mode: true,
|
|
33292
|
-
observeAttribute: true,
|
|
33293
|
-
prop: true,
|
|
33294
|
-
propMutable: true,
|
|
33295
|
-
reflect: true,
|
|
33296
|
-
scoped: true,
|
|
33297
|
-
shadowDom: true,
|
|
33298
|
-
slot: true,
|
|
33299
|
-
cssAnnotations: true,
|
|
33300
|
-
state: true,
|
|
33301
|
-
style: true,
|
|
33302
|
-
formAssociated: false,
|
|
33303
|
-
svg: true,
|
|
33304
|
-
updatable: true,
|
|
33305
|
-
vdomAttribute: true,
|
|
33306
|
-
vdomXlink: true,
|
|
33307
|
-
vdomClass: true,
|
|
33308
|
-
vdomFunctional: true,
|
|
33309
|
-
vdomKey: true,
|
|
33310
|
-
vdomListener: true,
|
|
33311
|
-
vdomRef: true,
|
|
33312
|
-
vdomPropOrAttr: true,
|
|
33313
|
-
vdomRender: true,
|
|
33314
|
-
vdomStyle: true,
|
|
33315
|
-
vdomText: true,
|
|
33316
|
-
watchCallback: true,
|
|
33317
|
-
taskQueue: true,
|
|
33318
|
-
hotModuleReplacement: false,
|
|
33319
|
-
isDebug: false,
|
|
33320
|
-
isDev: false,
|
|
33321
|
-
isTesting: false,
|
|
33322
|
-
hydrateServerSide: false,
|
|
33323
|
-
hydrateClientSide: false,
|
|
33324
|
-
lifecycleDOMEvents: false,
|
|
33325
|
-
lazyLoad: false,
|
|
33326
|
-
profile: false,
|
|
33327
|
-
slotRelocation: true,
|
|
33328
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33329
|
-
appendChildSlotFix: false,
|
|
33330
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33331
|
-
cloneNodeFix: false,
|
|
33332
|
-
hydratedAttribute: false,
|
|
33333
|
-
hydratedClass: true,
|
|
33334
|
-
// TODO(STENCIL-1305): remove this option
|
|
33335
|
-
scriptDataOpts: false,
|
|
33336
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33337
|
-
scopedSlotTextContentFix: false,
|
|
33338
|
-
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
33339
|
-
shadowDomShim: false,
|
|
33340
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33341
|
-
slotChildNodesFix: false,
|
|
33342
|
-
invisiblePrehydration: true,
|
|
33343
|
-
propBoolean: true,
|
|
33344
|
-
propNumber: true,
|
|
33345
|
-
propString: true,
|
|
33346
|
-
constructableCSS: true,
|
|
33347
|
-
cmpShouldUpdate: true,
|
|
33348
|
-
devTools: false,
|
|
33349
|
-
shadowDelegatesFocus: true,
|
|
33350
|
-
initializeNextTick: false,
|
|
33351
|
-
asyncLoading: true,
|
|
33352
|
-
asyncQueue: false,
|
|
33353
|
-
transformTagName: false,
|
|
33354
|
-
attachStyles: true,
|
|
33355
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33356
|
-
experimentalSlotFixes: false
|
|
33357
|
-
};
|
|
33358
|
-
var Env = {};
|
|
33359
|
-
var NAMESPACE = (
|
|
33360
|
-
/* default */
|
|
33361
|
-
"app"
|
|
33362
|
-
);
|
|
33363
|
-
|
|
33364
33270
|
/*
|
|
33365
|
-
Stencil Hydrate Runner v4.21.0
|
|
33271
|
+
Stencil Hydrate Runner v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
33366
33272
|
*/
|
|
33367
33273
|
var __defProp = Object.defineProperty;
|
|
33368
33274
|
var __export = (target, all) => {
|
|
@@ -33683,8 +33589,8 @@ function jsCaseToCssCase(str) {
|
|
|
33683
33589
|
|
|
33684
33590
|
// src/mock-doc/custom-element-registry.ts
|
|
33685
33591
|
var MockCustomElementRegistry = class {
|
|
33686
|
-
constructor(
|
|
33687
|
-
this.win =
|
|
33592
|
+
constructor(win) {
|
|
33593
|
+
this.win = win;
|
|
33688
33594
|
}
|
|
33689
33595
|
define(tagName, cstr, options) {
|
|
33690
33596
|
if (tagName.toLowerCase() !== tagName) {
|
|
@@ -33706,19 +33612,19 @@ var MockCustomElementRegistry = class {
|
|
|
33706
33612
|
this.__whenDefined.delete(tagName);
|
|
33707
33613
|
}
|
|
33708
33614
|
}
|
|
33709
|
-
const
|
|
33710
|
-
if (
|
|
33711
|
-
const hosts =
|
|
33615
|
+
const doc = this.win.document;
|
|
33616
|
+
if (doc != null) {
|
|
33617
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
33712
33618
|
hosts.forEach((host) => {
|
|
33713
33619
|
if (upgradedElements.has(host) === false) {
|
|
33714
|
-
tempDisableCallbacks.add(
|
|
33715
|
-
const upgradedCmp = createCustomElement(this,
|
|
33620
|
+
tempDisableCallbacks.add(doc);
|
|
33621
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
33716
33622
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
33717
33623
|
const childNode = host.childNodes[i];
|
|
33718
33624
|
childNode.remove();
|
|
33719
33625
|
upgradedCmp.appendChild(childNode);
|
|
33720
33626
|
}
|
|
33721
|
-
tempDisableCallbacks.delete(
|
|
33627
|
+
tempDisableCallbacks.delete(doc);
|
|
33722
33628
|
if (proxyElements.has(host)) {
|
|
33723
33629
|
proxyElements.set(host, upgradedCmp);
|
|
33724
33630
|
}
|
|
@@ -33772,8 +33678,8 @@ var MockCustomElementRegistry = class {
|
|
|
33772
33678
|
});
|
|
33773
33679
|
}
|
|
33774
33680
|
};
|
|
33775
|
-
function createCustomElement(
|
|
33776
|
-
const Cstr =
|
|
33681
|
+
function createCustomElement(customElements, ownerDocument, tagName) {
|
|
33682
|
+
const Cstr = customElements.get(tagName);
|
|
33777
33683
|
if (Cstr != null) {
|
|
33778
33684
|
const cmp = new Cstr(ownerDocument);
|
|
33779
33685
|
cmp.nodeName = tagName.toUpperCase();
|
|
@@ -33821,8 +33727,8 @@ function connectNode(ownerDocument, node) {
|
|
|
33821
33727
|
node.ownerDocument = ownerDocument;
|
|
33822
33728
|
if (node.nodeType === 1 /* ELEMENT_NODE */) {
|
|
33823
33729
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
33824
|
-
const
|
|
33825
|
-
if (
|
|
33730
|
+
const win = ownerDocument.defaultView;
|
|
33731
|
+
if (win != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
33826
33732
|
fireConnectedCallback(node);
|
|
33827
33733
|
}
|
|
33828
33734
|
const shadowRoot = node.shadowRoot;
|
|
@@ -38230,7 +38136,7 @@ var OpenElementStack = class {
|
|
|
38230
38136
|
get currentTmplContentOrNode() {
|
|
38231
38137
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
38232
38138
|
}
|
|
38233
|
-
constructor(
|
|
38139
|
+
constructor(document, treeAdapter, handler) {
|
|
38234
38140
|
this.treeAdapter = treeAdapter;
|
|
38235
38141
|
this.handler = handler;
|
|
38236
38142
|
this.items = [];
|
|
@@ -38238,7 +38144,7 @@ var OpenElementStack = class {
|
|
|
38238
38144
|
this.stackTop = -1;
|
|
38239
38145
|
this.tmplCount = 0;
|
|
38240
38146
|
this.currentTagId = TAG_ID.UNKNOWN;
|
|
38241
|
-
this.current =
|
|
38147
|
+
this.current = document;
|
|
38242
38148
|
}
|
|
38243
38149
|
//Index of element
|
|
38244
38150
|
_indexOf(element) {
|
|
@@ -38655,8 +38561,8 @@ var defaultTreeAdapter = {
|
|
|
38655
38561
|
getTemplateContent(templateElement) {
|
|
38656
38562
|
return templateElement.content;
|
|
38657
38563
|
},
|
|
38658
|
-
setDocumentType(
|
|
38659
|
-
const doctypeNode =
|
|
38564
|
+
setDocumentType(document, name, publicId, systemId) {
|
|
38565
|
+
const doctypeNode = document.childNodes.find((node) => node.nodeName === "#documentType");
|
|
38660
38566
|
if (doctypeNode) {
|
|
38661
38567
|
doctypeNode.name = name;
|
|
38662
38568
|
doctypeNode.publicId = publicId;
|
|
@@ -38669,14 +38575,14 @@ var defaultTreeAdapter = {
|
|
|
38669
38575
|
systemId,
|
|
38670
38576
|
parentNode: null
|
|
38671
38577
|
};
|
|
38672
|
-
defaultTreeAdapter.appendChild(
|
|
38578
|
+
defaultTreeAdapter.appendChild(document, node);
|
|
38673
38579
|
}
|
|
38674
38580
|
},
|
|
38675
|
-
setDocumentMode(
|
|
38676
|
-
|
|
38581
|
+
setDocumentMode(document, mode) {
|
|
38582
|
+
document.mode = mode;
|
|
38677
38583
|
},
|
|
38678
|
-
getDocumentMode(
|
|
38679
|
-
return
|
|
38584
|
+
getDocumentMode(document) {
|
|
38585
|
+
return document.mode;
|
|
38680
38586
|
},
|
|
38681
38587
|
detachNode(node) {
|
|
38682
38588
|
if (node.parentNode) {
|
|
@@ -39157,7 +39063,7 @@ var defaultParserOptions = {
|
|
|
39157
39063
|
onParseError: null
|
|
39158
39064
|
};
|
|
39159
39065
|
var Parser = class {
|
|
39160
|
-
constructor(options,
|
|
39066
|
+
constructor(options, document, fragmentContext = null, scriptHandler = null) {
|
|
39161
39067
|
this.fragmentContext = fragmentContext;
|
|
39162
39068
|
this.scriptHandler = scriptHandler;
|
|
39163
39069
|
this.currentToken = null;
|
|
@@ -39182,7 +39088,7 @@ var Parser = class {
|
|
|
39182
39088
|
if (this.onParseError) {
|
|
39183
39089
|
this.options.sourceCodeLocationInfo = true;
|
|
39184
39090
|
}
|
|
39185
|
-
this.document =
|
|
39091
|
+
this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
|
|
39186
39092
|
this.tokenizer = new Tokenizer(this.options, this);
|
|
39187
39093
|
this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
|
|
39188
39094
|
this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
|
|
@@ -42159,11 +42065,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
42159
42065
|
// src/mock-doc/parse-util.ts
|
|
42160
42066
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
42161
42067
|
function parseDocumentUtil(ownerDocument, html) {
|
|
42162
|
-
const
|
|
42163
|
-
|
|
42164
|
-
|
|
42165
|
-
|
|
42166
|
-
return
|
|
42068
|
+
const doc = parse(html.trim(), getParser(ownerDocument));
|
|
42069
|
+
doc.documentElement = doc.firstElementChild;
|
|
42070
|
+
doc.head = doc.documentElement.firstElementChild;
|
|
42071
|
+
doc.body = doc.head.nextElementSibling;
|
|
42072
|
+
return doc;
|
|
42167
42073
|
}
|
|
42168
42074
|
function parseFragmentUtil(ownerDocument, html) {
|
|
42169
42075
|
if (typeof html === "string") {
|
|
@@ -42181,9 +42087,9 @@ function getParser(ownerDocument) {
|
|
|
42181
42087
|
}
|
|
42182
42088
|
const treeAdapter = {
|
|
42183
42089
|
createDocument() {
|
|
42184
|
-
const
|
|
42185
|
-
|
|
42186
|
-
return
|
|
42090
|
+
const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
42091
|
+
doc["x-mode"] = "no-quirks";
|
|
42092
|
+
return doc;
|
|
42187
42093
|
},
|
|
42188
42094
|
setNodeSourceCodeLocation(node, location2) {
|
|
42189
42095
|
node.sourceCodeLocation = location2;
|
|
@@ -42221,22 +42127,22 @@ function getParser(ownerDocument) {
|
|
|
42221
42127
|
getTemplateContent(templateElement) {
|
|
42222
42128
|
return templateElement.content;
|
|
42223
42129
|
},
|
|
42224
|
-
setDocumentType(
|
|
42225
|
-
let doctypeNode =
|
|
42130
|
+
setDocumentType(doc, name, publicId, systemId) {
|
|
42131
|
+
let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
42226
42132
|
if (doctypeNode == null) {
|
|
42227
42133
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
42228
|
-
|
|
42134
|
+
doc.insertBefore(doctypeNode, doc.firstChild);
|
|
42229
42135
|
}
|
|
42230
42136
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
42231
42137
|
doctypeNode["x-name"] = name;
|
|
42232
42138
|
doctypeNode["x-publicId"] = publicId;
|
|
42233
42139
|
doctypeNode["x-systemId"] = systemId;
|
|
42234
42140
|
},
|
|
42235
|
-
setDocumentMode(
|
|
42236
|
-
|
|
42141
|
+
setDocumentMode(doc, mode) {
|
|
42142
|
+
doc["x-mode"] = mode;
|
|
42237
42143
|
},
|
|
42238
|
-
getDocumentMode(
|
|
42239
|
-
return
|
|
42144
|
+
getDocumentMode(doc) {
|
|
42145
|
+
return doc["x-mode"];
|
|
42240
42146
|
},
|
|
42241
42147
|
detachNode(node) {
|
|
42242
42148
|
node.remove();
|
|
@@ -42368,9 +42274,9 @@ var jquery_default = (
|
|
|
42368
42274
|
nodeName: "HTML"
|
|
42369
42275
|
}
|
|
42370
42276
|
}
|
|
42371
|
-
}, function(
|
|
42277
|
+
}, function(window, noGlobal) {
|
|
42372
42278
|
"use strict";
|
|
42373
|
-
if (!
|
|
42279
|
+
if (!window.document) {
|
|
42374
42280
|
throw new Error("jQuery requires a window with a document");
|
|
42375
42281
|
}
|
|
42376
42282
|
var arr = [];
|
|
@@ -42405,16 +42311,16 @@ var jquery_default = (
|
|
|
42405
42311
|
}
|
|
42406
42312
|
return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
|
|
42407
42313
|
}
|
|
42408
|
-
var
|
|
42314
|
+
var document = window.document;
|
|
42409
42315
|
var preservedScriptAttributes = {
|
|
42410
42316
|
type: true,
|
|
42411
42317
|
src: true,
|
|
42412
42318
|
nonce: true,
|
|
42413
42319
|
noModule: true
|
|
42414
42320
|
};
|
|
42415
|
-
function DOMEval(code, node,
|
|
42416
|
-
|
|
42417
|
-
var i2, script =
|
|
42321
|
+
function DOMEval(code, node, doc) {
|
|
42322
|
+
doc = doc || document;
|
|
42323
|
+
var i2, script = doc.createElement("script");
|
|
42418
42324
|
script.text = code;
|
|
42419
42325
|
if (node) {
|
|
42420
42326
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -42423,7 +42329,7 @@ var jquery_default = (
|
|
|
42423
42329
|
}
|
|
42424
42330
|
}
|
|
42425
42331
|
}
|
|
42426
|
-
|
|
42332
|
+
doc.head.appendChild(script).parentNode.removeChild(script);
|
|
42427
42333
|
}
|
|
42428
42334
|
const jQuery = {};
|
|
42429
42335
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -42560,8 +42466,8 @@ var jquery_default = (
|
|
|
42560
42466
|
},
|
|
42561
42467
|
// Evaluates a script in a provided context; falls back to the global one
|
|
42562
42468
|
// if not specified.
|
|
42563
|
-
globalEval: function(code, options,
|
|
42564
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
42469
|
+
globalEval: function(code, options, doc) {
|
|
42470
|
+
DOMEval(code, { nonce: options && options.nonce }, doc);
|
|
42565
42471
|
},
|
|
42566
42472
|
each: function(obj, callback) {
|
|
42567
42473
|
var length, i2 = 0;
|
|
@@ -42688,9 +42594,9 @@ var jquery_default = (
|
|
|
42688
42594
|
}
|
|
42689
42595
|
var pop = arr.pop;
|
|
42690
42596
|
var whitespace = "[\\x20\\t\\r\\n\\f]";
|
|
42691
|
-
var isIE =
|
|
42597
|
+
var isIE = document.documentMode;
|
|
42692
42598
|
try {
|
|
42693
|
-
|
|
42599
|
+
document.querySelector(":has(*,:jqfake)");
|
|
42694
42600
|
support.cssHas = false;
|
|
42695
42601
|
} catch (e) {
|
|
42696
42602
|
support.cssHas = true;
|
|
@@ -42722,7 +42628,7 @@ var jquery_default = (
|
|
|
42722
42628
|
var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
|
|
42723
42629
|
var rdescend = new RegExp(whitespace + "|>");
|
|
42724
42630
|
var rsibling = /[+~]/;
|
|
42725
|
-
var documentElement =
|
|
42631
|
+
var documentElement = document.documentElement;
|
|
42726
42632
|
var matches2 = documentElement.matches || documentElement.msMatchesSelector;
|
|
42727
42633
|
function createCache() {
|
|
42728
42634
|
var keys = [];
|
|
@@ -42891,10 +42797,10 @@ var jquery_default = (
|
|
|
42891
42797
|
1
|
|
42892
42798
|
);
|
|
42893
42799
|
if (compare & 1) {
|
|
42894
|
-
if (a ==
|
|
42800
|
+
if (a == document || a.ownerDocument == document && jQuery.contains(document, a)) {
|
|
42895
42801
|
return -1;
|
|
42896
42802
|
}
|
|
42897
|
-
if (b ==
|
|
42803
|
+
if (b == document || b.ownerDocument == document && jQuery.contains(document, b)) {
|
|
42898
42804
|
return 1;
|
|
42899
42805
|
}
|
|
42900
42806
|
return 0;
|
|
@@ -43050,14 +42956,14 @@ var jquery_default = (
|
|
|
43050
42956
|
});
|
|
43051
42957
|
}
|
|
43052
42958
|
function setDocument(node) {
|
|
43053
|
-
var subWindow,
|
|
43054
|
-
if (
|
|
42959
|
+
var subWindow, doc = node ? node.ownerDocument || node : document;
|
|
42960
|
+
if (doc == document$1 || doc.nodeType !== 9) {
|
|
43055
42961
|
return;
|
|
43056
42962
|
}
|
|
43057
|
-
document$1 =
|
|
42963
|
+
document$1 = doc;
|
|
43058
42964
|
documentElement$1 = document$1.documentElement;
|
|
43059
42965
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
43060
|
-
if (isIE &&
|
|
42966
|
+
if (isIE && document != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
43061
42967
|
subWindow.addEventListener("unload", unloadHandler);
|
|
43062
42968
|
}
|
|
43063
42969
|
}
|
|
@@ -43288,7 +43194,7 @@ var jquery_default = (
|
|
|
43288
43194
|
}),
|
|
43289
43195
|
// Miscellaneous
|
|
43290
43196
|
target: function(elem) {
|
|
43291
|
-
var hash =
|
|
43197
|
+
var hash = window.location && window.location.hash;
|
|
43292
43198
|
return hash && hash.slice(1) === elem.id;
|
|
43293
43199
|
},
|
|
43294
43200
|
root: function(elem) {
|
|
@@ -45278,9 +45184,9 @@ function createElement(ownerDocument, tagName) {
|
|
|
45278
45184
|
return new MockUListElement(ownerDocument);
|
|
45279
45185
|
}
|
|
45280
45186
|
if (ownerDocument != null && tagName.includes("-")) {
|
|
45281
|
-
const
|
|
45282
|
-
if (
|
|
45283
|
-
return createCustomElement(
|
|
45187
|
+
const win = ownerDocument.defaultView;
|
|
45188
|
+
if (win != null && win.customElements != null) {
|
|
45189
|
+
return createCustomElement(win.customElements, ownerDocument, tagName);
|
|
45284
45190
|
}
|
|
45285
45191
|
}
|
|
45286
45192
|
return new MockHTMLElement(ownerDocument, tagName);
|
|
@@ -45702,9 +45608,9 @@ var CanvasRenderingContext = class {
|
|
|
45702
45608
|
}
|
|
45703
45609
|
clearRect() {
|
|
45704
45610
|
}
|
|
45705
|
-
getImageData(_, __, w,
|
|
45611
|
+
getImageData(_, __, w, h) {
|
|
45706
45612
|
return {
|
|
45707
|
-
data: new Array(w *
|
|
45613
|
+
data: new Array(w * h * 4)
|
|
45708
45614
|
};
|
|
45709
45615
|
}
|
|
45710
45616
|
toDataURL() {
|
|
@@ -45766,9 +45672,9 @@ var MockCanvasElement = class extends MockHTMLElement {
|
|
|
45766
45672
|
function fullUrl(elm, attrName) {
|
|
45767
45673
|
const val = elm.getAttribute(attrName) || "";
|
|
45768
45674
|
if (elm.ownerDocument != null) {
|
|
45769
|
-
const
|
|
45770
|
-
if (
|
|
45771
|
-
const loc =
|
|
45675
|
+
const win = elm.ownerDocument.defaultView;
|
|
45676
|
+
if (win != null) {
|
|
45677
|
+
const loc = win.location;
|
|
45772
45678
|
if (loc != null) {
|
|
45773
45679
|
try {
|
|
45774
45680
|
const url = new URL(val, loc.href);
|
|
@@ -46473,10 +46379,10 @@ var MockWindow = class {
|
|
|
46473
46379
|
}
|
|
46474
46380
|
get Document() {
|
|
46475
46381
|
if (this.__docCstr == null) {
|
|
46476
|
-
const
|
|
46382
|
+
const win = this;
|
|
46477
46383
|
this.__docCstr = class extends MockDocument {
|
|
46478
46384
|
constructor() {
|
|
46479
|
-
super(false,
|
|
46385
|
+
super(false, win);
|
|
46480
46386
|
throw new Error("Illegal constructor: cannot construct Document");
|
|
46481
46387
|
}
|
|
46482
46388
|
};
|
|
@@ -46993,14 +46899,14 @@ var MockWindow = class {
|
|
|
46993
46899
|
}
|
|
46994
46900
|
};
|
|
46995
46901
|
addGlobalsToWindowPrototype(MockWindow.prototype);
|
|
46996
|
-
function resetWindowDefaults(
|
|
46997
|
-
|
|
46998
|
-
|
|
46999
|
-
|
|
47000
|
-
|
|
47001
|
-
|
|
47002
|
-
|
|
47003
|
-
|
|
46902
|
+
function resetWindowDefaults(win) {
|
|
46903
|
+
win.__clearInterval = nativeClearInterval;
|
|
46904
|
+
win.__clearTimeout = nativeClearTimeout;
|
|
46905
|
+
win.__setInterval = nativeSetInterval;
|
|
46906
|
+
win.__setTimeout = nativeSetTimeout;
|
|
46907
|
+
win.__maxTimeout = 3e4;
|
|
46908
|
+
win.__allowInterval = true;
|
|
46909
|
+
win.URL = nativeURL;
|
|
47004
46910
|
}
|
|
47005
46911
|
function cloneWindow(srcWin, opts = {}) {
|
|
47006
46912
|
if (srcWin == null) {
|
|
@@ -47019,72 +46925,72 @@ function cloneWindow(srcWin, opts = {}) {
|
|
|
47019
46925
|
}
|
|
47020
46926
|
return clonedWin;
|
|
47021
46927
|
}
|
|
47022
|
-
function constrainTimeouts(
|
|
47023
|
-
|
|
47024
|
-
|
|
46928
|
+
function constrainTimeouts(win) {
|
|
46929
|
+
win.__allowInterval = false;
|
|
46930
|
+
win.__maxTimeout = 0;
|
|
47025
46931
|
}
|
|
47026
|
-
function resetWindow(
|
|
47027
|
-
if (
|
|
47028
|
-
if (
|
|
47029
|
-
|
|
46932
|
+
function resetWindow(win) {
|
|
46933
|
+
if (win != null) {
|
|
46934
|
+
if (win.__timeouts) {
|
|
46935
|
+
win.__timeouts.forEach((timeoutId) => {
|
|
47030
46936
|
nativeClearInterval(timeoutId);
|
|
47031
46937
|
nativeClearTimeout(timeoutId);
|
|
47032
46938
|
});
|
|
47033
|
-
|
|
46939
|
+
win.__timeouts.clear();
|
|
47034
46940
|
}
|
|
47035
|
-
if (
|
|
47036
|
-
|
|
46941
|
+
if (win.customElements && win.customElements.clear) {
|
|
46942
|
+
win.customElements.clear();
|
|
47037
46943
|
}
|
|
47038
|
-
resetDocument(
|
|
47039
|
-
resetPerformance(
|
|
47040
|
-
for (const key in
|
|
47041
|
-
if (
|
|
47042
|
-
delete
|
|
46944
|
+
resetDocument(win.document);
|
|
46945
|
+
resetPerformance(win.performance);
|
|
46946
|
+
for (const key in win) {
|
|
46947
|
+
if (win.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
|
|
46948
|
+
delete win[key];
|
|
47043
46949
|
}
|
|
47044
46950
|
}
|
|
47045
|
-
resetWindowDefaults(
|
|
47046
|
-
resetWindowDimensions(
|
|
47047
|
-
resetEventListeners(
|
|
47048
|
-
if (
|
|
46951
|
+
resetWindowDefaults(win);
|
|
46952
|
+
resetWindowDimensions(win);
|
|
46953
|
+
resetEventListeners(win);
|
|
46954
|
+
if (win.document != null) {
|
|
47049
46955
|
try {
|
|
47050
|
-
|
|
46956
|
+
win.document.defaultView = win;
|
|
47051
46957
|
} catch (e) {
|
|
47052
46958
|
}
|
|
47053
46959
|
}
|
|
47054
|
-
|
|
47055
|
-
|
|
47056
|
-
|
|
47057
|
-
|
|
47058
|
-
|
|
46960
|
+
win.fetch = null;
|
|
46961
|
+
win.Headers = null;
|
|
46962
|
+
win.Request = null;
|
|
46963
|
+
win.Response = null;
|
|
46964
|
+
win.FetchError = null;
|
|
47059
46965
|
}
|
|
47060
46966
|
}
|
|
47061
|
-
function resetWindowDimensions(
|
|
46967
|
+
function resetWindowDimensions(win) {
|
|
47062
46968
|
try {
|
|
47063
|
-
|
|
47064
|
-
|
|
47065
|
-
|
|
47066
|
-
|
|
47067
|
-
|
|
47068
|
-
|
|
47069
|
-
|
|
47070
|
-
|
|
47071
|
-
|
|
47072
|
-
|
|
47073
|
-
|
|
47074
|
-
|
|
47075
|
-
availHeight:
|
|
46969
|
+
win.devicePixelRatio = 1;
|
|
46970
|
+
win.innerHeight = 768;
|
|
46971
|
+
win.innerWidth = 1366;
|
|
46972
|
+
win.pageXOffset = 0;
|
|
46973
|
+
win.pageYOffset = 0;
|
|
46974
|
+
win.screenLeft = 0;
|
|
46975
|
+
win.screenTop = 0;
|
|
46976
|
+
win.screenX = 0;
|
|
46977
|
+
win.screenY = 0;
|
|
46978
|
+
win.scrollX = 0;
|
|
46979
|
+
win.scrollY = 0;
|
|
46980
|
+
win.screen = {
|
|
46981
|
+
availHeight: win.innerHeight,
|
|
47076
46982
|
availLeft: 0,
|
|
47077
46983
|
availTop: 0,
|
|
47078
|
-
availWidth:
|
|
46984
|
+
availWidth: win.innerWidth,
|
|
47079
46985
|
colorDepth: 24,
|
|
47080
|
-
height:
|
|
46986
|
+
height: win.innerHeight,
|
|
47081
46987
|
keepAwake: false,
|
|
47082
46988
|
orientation: {
|
|
47083
46989
|
angle: 0,
|
|
47084
46990
|
type: "portrait-primary"
|
|
47085
46991
|
},
|
|
47086
46992
|
pixelDepth: 24,
|
|
47087
|
-
width:
|
|
46993
|
+
width: win.innerWidth
|
|
47088
46994
|
};
|
|
47089
46995
|
} catch (e) {
|
|
47090
46996
|
}
|
|
@@ -47092,11 +46998,11 @@ function resetWindowDimensions(win2) {
|
|
|
47092
46998
|
|
|
47093
46999
|
// src/mock-doc/document.ts
|
|
47094
47000
|
var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
47095
|
-
constructor(html = null,
|
|
47001
|
+
constructor(html = null, win = null) {
|
|
47096
47002
|
super(null, null);
|
|
47097
47003
|
this.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47098
47004
|
this.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47099
|
-
this.defaultView =
|
|
47005
|
+
this.defaultView = win;
|
|
47100
47006
|
this.cookie = "";
|
|
47101
47007
|
this.referrer = "";
|
|
47102
47008
|
this.appendChild(this.createDocumentTypeNode());
|
|
@@ -47243,10 +47149,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47243
47149
|
}
|
|
47244
47150
|
createElement(tagName) {
|
|
47245
47151
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
47246
|
-
const
|
|
47247
|
-
|
|
47248
|
-
|
|
47249
|
-
return
|
|
47152
|
+
const doc = new _MockDocument(false);
|
|
47153
|
+
doc.nodeName = tagName;
|
|
47154
|
+
doc.parentNode = null;
|
|
47155
|
+
return doc;
|
|
47250
47156
|
}
|
|
47251
47157
|
return createElement(this, tagName);
|
|
47252
47158
|
}
|
|
@@ -47286,10 +47192,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47286
47192
|
title.textContent = value;
|
|
47287
47193
|
}
|
|
47288
47194
|
};
|
|
47289
|
-
function resetDocument(
|
|
47290
|
-
if (
|
|
47291
|
-
resetEventListeners(
|
|
47292
|
-
const documentElement =
|
|
47195
|
+
function resetDocument(doc) {
|
|
47196
|
+
if (doc != null) {
|
|
47197
|
+
resetEventListeners(doc);
|
|
47198
|
+
const documentElement = doc.documentElement;
|
|
47293
47199
|
if (documentElement != null) {
|
|
47294
47200
|
resetElement(documentElement);
|
|
47295
47201
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -47298,25 +47204,25 @@ function resetDocument(doc2) {
|
|
|
47298
47204
|
childNode.childNodes.length = 0;
|
|
47299
47205
|
}
|
|
47300
47206
|
}
|
|
47301
|
-
for (const key in
|
|
47302
|
-
if (
|
|
47303
|
-
delete
|
|
47207
|
+
for (const key in doc) {
|
|
47208
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
47209
|
+
delete doc[key];
|
|
47304
47210
|
}
|
|
47305
47211
|
}
|
|
47306
47212
|
try {
|
|
47307
|
-
|
|
47213
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47308
47214
|
} catch (e) {
|
|
47309
47215
|
}
|
|
47310
47216
|
try {
|
|
47311
|
-
|
|
47217
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47312
47218
|
} catch (e) {
|
|
47313
47219
|
}
|
|
47314
47220
|
try {
|
|
47315
|
-
|
|
47221
|
+
doc.cookie = "";
|
|
47316
47222
|
} catch (e) {
|
|
47317
47223
|
}
|
|
47318
47224
|
try {
|
|
47319
|
-
|
|
47225
|
+
doc.referrer = "";
|
|
47320
47226
|
} catch (e) {
|
|
47321
47227
|
}
|
|
47322
47228
|
}
|
|
@@ -47372,33 +47278,9 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
47372
47278
|
templateWindow = new MockWindow(templateHtml);
|
|
47373
47279
|
templateWindows.set(uniqueId, templateWindow);
|
|
47374
47280
|
}
|
|
47375
|
-
const
|
|
47376
|
-
return
|
|
47281
|
+
const win = cloneWindow(templateWindow);
|
|
47282
|
+
return win;
|
|
47377
47283
|
}
|
|
47378
|
-
var Build = {
|
|
47379
|
-
isDev: BUILD.isDev ? true : false,
|
|
47380
|
-
isBrowser: true,
|
|
47381
|
-
isServer: false,
|
|
47382
|
-
isTesting: BUILD.isTesting ? true : false
|
|
47383
|
-
};
|
|
47384
|
-
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
47385
|
-
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
47386
|
-
"%cstencil",
|
|
47387
|
-
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
47388
|
-
];
|
|
47389
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
47390
|
-
var doc = win.document || { head: {} };
|
|
47391
|
-
var H = win.HTMLElement || class {
|
|
47392
|
-
};
|
|
47393
|
-
var supportsShadow = BUILD.shadowDom;
|
|
47394
|
-
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
47395
|
-
try {
|
|
47396
|
-
new CSSStyleSheet();
|
|
47397
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
47398
|
-
} catch (e) {
|
|
47399
|
-
}
|
|
47400
|
-
return false;
|
|
47401
|
-
})() : false;
|
|
47402
47284
|
|
|
47403
47285
|
// src/utils/helpers.ts
|
|
47404
47286
|
var isString = (v) => typeof v === "string";
|
|
@@ -47490,20 +47372,15 @@ var unwrapErr = (result) => {
|
|
|
47490
47372
|
}
|
|
47491
47373
|
};
|
|
47492
47374
|
|
|
47493
|
-
// src/runtime/mode.ts
|
|
47494
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
47495
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
47496
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
47497
|
-
|
|
47498
47375
|
// src/compiler/html/canonical-link.ts
|
|
47499
|
-
var updateCanonicalLink = (
|
|
47376
|
+
var updateCanonicalLink = (doc, href) => {
|
|
47500
47377
|
var _a2;
|
|
47501
|
-
let canonicalLinkElm =
|
|
47378
|
+
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
47502
47379
|
if (typeof href === "string") {
|
|
47503
47380
|
if (canonicalLinkElm == null) {
|
|
47504
|
-
canonicalLinkElm =
|
|
47381
|
+
canonicalLinkElm = doc.createElement("link");
|
|
47505
47382
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
47506
|
-
|
|
47383
|
+
doc.head.appendChild(canonicalLinkElm);
|
|
47507
47384
|
}
|
|
47508
47385
|
canonicalLinkElm.setAttribute("href", href);
|
|
47509
47386
|
} else {
|
|
@@ -47517,11 +47394,11 @@ var updateCanonicalLink = (doc2, href) => {
|
|
|
47517
47394
|
};
|
|
47518
47395
|
|
|
47519
47396
|
// src/compiler/html/relocate-meta-charset.ts
|
|
47520
|
-
var relocateMetaCharset = (
|
|
47521
|
-
const head =
|
|
47397
|
+
var relocateMetaCharset = (doc) => {
|
|
47398
|
+
const head = doc.head;
|
|
47522
47399
|
let charsetElm = head.querySelector("meta[charset]");
|
|
47523
47400
|
if (charsetElm == null) {
|
|
47524
|
-
charsetElm =
|
|
47401
|
+
charsetElm = doc.createElement("meta");
|
|
47525
47402
|
charsetElm.setAttribute("charset", "utf-8");
|
|
47526
47403
|
} else {
|
|
47527
47404
|
charsetElm.remove();
|
|
@@ -47796,13 +47673,13 @@ var parseCss = (css, filePath) => {
|
|
|
47796
47673
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
47797
47674
|
if (!m) return null;
|
|
47798
47675
|
const vendor = trim(m[1]);
|
|
47799
|
-
const
|
|
47676
|
+
const doc = trim(m[2]);
|
|
47800
47677
|
if (!open()) return error(`@document missing '{'`);
|
|
47801
47678
|
const style = comments().concat(rules());
|
|
47802
47679
|
if (!close()) return error(`@document missing '}'`);
|
|
47803
47680
|
return pos({
|
|
47804
47681
|
type: 3 /* Document */,
|
|
47805
|
-
document:
|
|
47682
|
+
document: doc,
|
|
47806
47683
|
vendor,
|
|
47807
47684
|
rules: style
|
|
47808
47685
|
});
|
|
@@ -48128,11 +48005,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
48128
48005
|
};
|
|
48129
48006
|
var serializeCssDocument = (opts, node) => {
|
|
48130
48007
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
48131
|
-
const
|
|
48008
|
+
const doc = "@" + (node.vendor || "") + "document " + node.document;
|
|
48132
48009
|
if (documentCss === "") {
|
|
48133
48010
|
return "";
|
|
48134
48011
|
}
|
|
48135
|
-
return
|
|
48012
|
+
return doc + "{" + documentCss + "}";
|
|
48136
48013
|
};
|
|
48137
48014
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
48138
48015
|
let rtn = "";
|
|
@@ -48230,12 +48107,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
48230
48107
|
};
|
|
48231
48108
|
|
|
48232
48109
|
// src/compiler/html/remove-unused-styles.ts
|
|
48233
|
-
var removeUnusedStyles = (
|
|
48110
|
+
var removeUnusedStyles = (doc, diagnostics) => {
|
|
48234
48111
|
try {
|
|
48235
|
-
const styleElms =
|
|
48112
|
+
const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
|
|
48236
48113
|
const styleLen = styleElms.length;
|
|
48237
48114
|
if (styleLen > 0) {
|
|
48238
|
-
const usedSelectors = getUsedSelectors(
|
|
48115
|
+
const usedSelectors = getUsedSelectors(doc.documentElement);
|
|
48239
48116
|
for (let i = 0; i < styleLen; i++) {
|
|
48240
48117
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
48241
48118
|
}
|
|
@@ -48368,49 +48245,49 @@ function collectAttributes(node) {
|
|
|
48368
48245
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
48369
48246
|
|
|
48370
48247
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
48371
|
-
function patchDomImplementation(
|
|
48372
|
-
let
|
|
48373
|
-
if (
|
|
48248
|
+
function patchDomImplementation(doc, opts) {
|
|
48249
|
+
let win;
|
|
48250
|
+
if (doc.defaultView != null) {
|
|
48374
48251
|
opts.destroyWindow = true;
|
|
48375
|
-
patchWindow(
|
|
48376
|
-
|
|
48252
|
+
patchWindow(doc.defaultView);
|
|
48253
|
+
win = doc.defaultView;
|
|
48377
48254
|
} else {
|
|
48378
48255
|
opts.destroyWindow = true;
|
|
48379
48256
|
opts.destroyDocument = false;
|
|
48380
|
-
|
|
48257
|
+
win = new MockWindow(false);
|
|
48381
48258
|
}
|
|
48382
|
-
if (
|
|
48383
|
-
|
|
48259
|
+
if (win.document !== doc) {
|
|
48260
|
+
win.document = doc;
|
|
48384
48261
|
}
|
|
48385
|
-
if (
|
|
48386
|
-
|
|
48262
|
+
if (doc.defaultView !== win) {
|
|
48263
|
+
doc.defaultView = win;
|
|
48387
48264
|
}
|
|
48388
|
-
const
|
|
48389
|
-
if (typeof
|
|
48390
|
-
const elm =
|
|
48265
|
+
const HTMLElement = doc.documentElement.constructor.prototype;
|
|
48266
|
+
if (typeof HTMLElement.getRootNode !== "function") {
|
|
48267
|
+
const elm = doc.createElement("unknown-element");
|
|
48391
48268
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
48392
48269
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
48393
48270
|
}
|
|
48394
|
-
if (typeof
|
|
48395
|
-
const
|
|
48396
|
-
if (
|
|
48397
|
-
|
|
48271
|
+
if (typeof doc.createEvent === "function") {
|
|
48272
|
+
const CustomEvent = doc.createEvent("CustomEvent").constructor;
|
|
48273
|
+
if (win.CustomEvent !== CustomEvent) {
|
|
48274
|
+
win.CustomEvent = CustomEvent;
|
|
48398
48275
|
}
|
|
48399
48276
|
}
|
|
48400
48277
|
try {
|
|
48401
|
-
|
|
48278
|
+
win.__stencil_baseURI = doc.baseURI;
|
|
48402
48279
|
} catch (e) {
|
|
48403
|
-
Object.defineProperty(
|
|
48280
|
+
Object.defineProperty(doc, "baseURI", {
|
|
48404
48281
|
get() {
|
|
48405
|
-
const baseElm =
|
|
48282
|
+
const baseElm = doc.querySelector("base[href]");
|
|
48406
48283
|
if (baseElm) {
|
|
48407
|
-
return new URL(baseElm.getAttribute("href"),
|
|
48284
|
+
return new URL(baseElm.getAttribute("href"), win.location.href).href;
|
|
48408
48285
|
}
|
|
48409
|
-
return
|
|
48286
|
+
return win.location.href;
|
|
48410
48287
|
}
|
|
48411
48288
|
});
|
|
48412
48289
|
}
|
|
48413
|
-
return
|
|
48290
|
+
return win;
|
|
48414
48291
|
}
|
|
48415
48292
|
function getRootNode(opts) {
|
|
48416
48293
|
const isComposed = opts != null && opts.composed === true;
|
|
@@ -48563,10 +48440,10 @@ function renderCatchError(results, err2) {
|
|
|
48563
48440
|
}
|
|
48564
48441
|
|
|
48565
48442
|
// src/hydrate/runner/runtime-log.ts
|
|
48566
|
-
function runtimeLogging(
|
|
48443
|
+
function runtimeLogging(win, opts, results) {
|
|
48567
48444
|
try {
|
|
48568
|
-
const pathname =
|
|
48569
|
-
|
|
48445
|
+
const pathname = win.location.pathname;
|
|
48446
|
+
win.console.error = (...msgs) => {
|
|
48570
48447
|
const errMsg = msgs.reduce((errMsg2, m) => {
|
|
48571
48448
|
if (m) {
|
|
48572
48449
|
if (m.stack != null) {
|
|
@@ -48586,7 +48463,7 @@ function runtimeLogging(win2, opts, results) {
|
|
|
48586
48463
|
}
|
|
48587
48464
|
}
|
|
48588
48465
|
};
|
|
48589
|
-
|
|
48466
|
+
win.console.debug = (...msgs) => {
|
|
48590
48467
|
renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
|
|
48591
48468
|
if (opts.runtimeLogging) {
|
|
48592
48469
|
runtimeLog(pathname, "debug", msgs);
|
|
@@ -48594,7 +48471,7 @@ function runtimeLogging(win2, opts, results) {
|
|
|
48594
48471
|
};
|
|
48595
48472
|
if (opts.runtimeLogging) {
|
|
48596
48473
|
["log", "warn", "assert", "info", "trace"].forEach((type) => {
|
|
48597
|
-
|
|
48474
|
+
win.console[type] = (...msgs) => {
|
|
48598
48475
|
runtimeLog(pathname, type, msgs);
|
|
48599
48476
|
};
|
|
48600
48477
|
});
|
|
@@ -48608,58 +48485,58 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
48608
48485
|
}
|
|
48609
48486
|
|
|
48610
48487
|
// src/hydrate/runner/window-initialize.ts
|
|
48611
|
-
function initializeWindow(
|
|
48488
|
+
function initializeWindow(win, doc, opts, results) {
|
|
48612
48489
|
if (typeof opts.url === "string") {
|
|
48613
48490
|
try {
|
|
48614
|
-
|
|
48491
|
+
win.location.href = opts.url;
|
|
48615
48492
|
} catch (e) {
|
|
48616
48493
|
}
|
|
48617
48494
|
}
|
|
48618
48495
|
if (typeof opts.userAgent === "string") {
|
|
48619
48496
|
try {
|
|
48620
|
-
|
|
48497
|
+
win.navigator.userAgent = opts.userAgent;
|
|
48621
48498
|
} catch (e) {
|
|
48622
48499
|
}
|
|
48623
48500
|
}
|
|
48624
48501
|
if (typeof opts.cookie === "string") {
|
|
48625
48502
|
try {
|
|
48626
|
-
|
|
48503
|
+
doc.cookie = opts.cookie;
|
|
48627
48504
|
} catch (e) {
|
|
48628
48505
|
}
|
|
48629
48506
|
}
|
|
48630
48507
|
if (typeof opts.referrer === "string") {
|
|
48631
48508
|
try {
|
|
48632
|
-
|
|
48509
|
+
doc.referrer = opts.referrer;
|
|
48633
48510
|
} catch (e) {
|
|
48634
48511
|
}
|
|
48635
48512
|
}
|
|
48636
48513
|
if (typeof opts.direction === "string") {
|
|
48637
48514
|
try {
|
|
48638
|
-
|
|
48515
|
+
doc.documentElement.setAttribute("dir", opts.direction);
|
|
48639
48516
|
} catch (e) {
|
|
48640
48517
|
}
|
|
48641
48518
|
}
|
|
48642
48519
|
if (typeof opts.language === "string") {
|
|
48643
48520
|
try {
|
|
48644
|
-
|
|
48521
|
+
doc.documentElement.setAttribute("lang", opts.language);
|
|
48645
48522
|
} catch (e) {
|
|
48646
48523
|
}
|
|
48647
48524
|
}
|
|
48648
48525
|
if (typeof opts.buildId === "string") {
|
|
48649
48526
|
try {
|
|
48650
|
-
|
|
48527
|
+
doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
48651
48528
|
} catch (e) {
|
|
48652
48529
|
}
|
|
48653
48530
|
}
|
|
48654
48531
|
try {
|
|
48655
|
-
|
|
48532
|
+
win.customElements = null;
|
|
48656
48533
|
} catch (e) {
|
|
48657
48534
|
}
|
|
48658
48535
|
if (opts.constrainTimeouts) {
|
|
48659
|
-
constrainTimeouts(
|
|
48536
|
+
constrainTimeouts(win);
|
|
48660
48537
|
}
|
|
48661
|
-
runtimeLogging(
|
|
48662
|
-
return
|
|
48538
|
+
runtimeLogging(win, opts, results);
|
|
48539
|
+
return win;
|
|
48663
48540
|
}
|
|
48664
48541
|
|
|
48665
48542
|
// src/hydrate/runner/render.ts
|
|
@@ -48676,44 +48553,44 @@ function renderToString(html, options, asStream) {
|
|
|
48676
48553
|
opts.constrainTimeouts = false;
|
|
48677
48554
|
return hydrateDocument(html, opts, asStream);
|
|
48678
48555
|
}
|
|
48679
|
-
function hydrateDocument(
|
|
48556
|
+
function hydrateDocument(doc, options, asStream) {
|
|
48680
48557
|
const opts = normalizeHydrateOptions(options);
|
|
48681
|
-
let
|
|
48558
|
+
let win = null;
|
|
48682
48559
|
const results = generateHydrateResults(opts);
|
|
48683
48560
|
if (hasError(results.diagnostics)) {
|
|
48684
48561
|
return Promise.resolve(results);
|
|
48685
48562
|
}
|
|
48686
|
-
if (typeof
|
|
48563
|
+
if (typeof doc === "string") {
|
|
48687
48564
|
try {
|
|
48688
48565
|
opts.destroyWindow = true;
|
|
48689
48566
|
opts.destroyDocument = true;
|
|
48690
|
-
|
|
48567
|
+
win = new MockWindow(doc);
|
|
48691
48568
|
if (!asStream) {
|
|
48692
|
-
return render(
|
|
48569
|
+
return render(win, opts, results).then(() => results);
|
|
48693
48570
|
}
|
|
48694
|
-
return renderStream(
|
|
48571
|
+
return renderStream(win, opts, results);
|
|
48695
48572
|
} catch (e) {
|
|
48696
|
-
if (
|
|
48697
|
-
|
|
48573
|
+
if (win && win.close) {
|
|
48574
|
+
win.close();
|
|
48698
48575
|
}
|
|
48699
|
-
|
|
48576
|
+
win = null;
|
|
48700
48577
|
renderCatchError(results, e);
|
|
48701
48578
|
return Promise.resolve(results);
|
|
48702
48579
|
}
|
|
48703
48580
|
}
|
|
48704
|
-
if (isValidDocument(
|
|
48581
|
+
if (isValidDocument(doc)) {
|
|
48705
48582
|
try {
|
|
48706
48583
|
opts.destroyDocument = false;
|
|
48707
|
-
|
|
48584
|
+
win = patchDomImplementation(doc, opts);
|
|
48708
48585
|
if (!asStream) {
|
|
48709
|
-
return render(
|
|
48586
|
+
return render(win, opts, results).then(() => results);
|
|
48710
48587
|
}
|
|
48711
|
-
return renderStream(
|
|
48588
|
+
return renderStream(win, opts, results);
|
|
48712
48589
|
} catch (e) {
|
|
48713
|
-
if (
|
|
48714
|
-
|
|
48590
|
+
if (win && win.close) {
|
|
48591
|
+
win.close();
|
|
48715
48592
|
}
|
|
48716
|
-
|
|
48593
|
+
win = null;
|
|
48717
48594
|
renderCatchError(results, e);
|
|
48718
48595
|
return Promise.resolve(results);
|
|
48719
48596
|
}
|
|
@@ -48721,81 +48598,75 @@ function hydrateDocument(doc2, options, asStream) {
|
|
|
48721
48598
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
48722
48599
|
return Promise.resolve(results);
|
|
48723
48600
|
}
|
|
48724
|
-
async function render(
|
|
48601
|
+
async function render(win, opts, results) {
|
|
48725
48602
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
48726
48603
|
process.__stencilErrors = true;
|
|
48727
48604
|
process.on("unhandledRejection", (e) => {
|
|
48728
48605
|
console.log("unhandledRejection", e);
|
|
48729
48606
|
});
|
|
48730
48607
|
}
|
|
48731
|
-
initializeWindow(
|
|
48608
|
+
initializeWindow(win, win.document, opts, results);
|
|
48732
48609
|
const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
|
|
48733
48610
|
try {
|
|
48734
|
-
await Promise.resolve(beforeHydrateFn(
|
|
48735
|
-
return new Promise((resolve) =>
|
|
48736
|
-
if (Array.isArray(opts.modes)) {
|
|
48737
|
-
modeResolutionChain.length = 0;
|
|
48738
|
-
opts.modes.forEach((mode) => setMode(mode));
|
|
48739
|
-
}
|
|
48740
|
-
return hydrateFactory(win2, opts, results, afterHydrate, resolve);
|
|
48741
|
-
});
|
|
48611
|
+
await Promise.resolve(beforeHydrateFn(win.document));
|
|
48612
|
+
return new Promise((resolve) => hydrateFactory(win, opts, results, afterHydrate, resolve));
|
|
48742
48613
|
} catch (e) {
|
|
48743
48614
|
renderCatchError(results, e);
|
|
48744
|
-
return finalizeHydrate(
|
|
48615
|
+
return finalizeHydrate(win, win.document, opts, results);
|
|
48745
48616
|
}
|
|
48746
48617
|
}
|
|
48747
|
-
function renderStream(
|
|
48618
|
+
function renderStream(win, opts, results) {
|
|
48748
48619
|
async function* processRender() {
|
|
48749
|
-
const renderResult = await render(
|
|
48620
|
+
const renderResult = await render(win, opts, results);
|
|
48750
48621
|
yield renderResult.html;
|
|
48751
48622
|
}
|
|
48752
48623
|
return stream.Readable.from(processRender());
|
|
48753
48624
|
}
|
|
48754
|
-
async function afterHydrate(
|
|
48625
|
+
async function afterHydrate(win, opts, results, resolve) {
|
|
48755
48626
|
const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
|
|
48756
48627
|
try {
|
|
48757
|
-
await Promise.resolve(afterHydrateFn(
|
|
48758
|
-
return resolve(finalizeHydrate(
|
|
48628
|
+
await Promise.resolve(afterHydrateFn(win.document));
|
|
48629
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
48759
48630
|
} catch (e) {
|
|
48760
48631
|
renderCatchError(results, e);
|
|
48761
|
-
return resolve(finalizeHydrate(
|
|
48632
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
48762
48633
|
}
|
|
48763
48634
|
}
|
|
48764
|
-
function finalizeHydrate(
|
|
48635
|
+
function finalizeHydrate(win, doc, opts, results) {
|
|
48765
48636
|
try {
|
|
48766
|
-
inspectElement(results,
|
|
48637
|
+
inspectElement(results, doc.documentElement, 0);
|
|
48767
48638
|
if (opts.removeUnusedStyles !== false) {
|
|
48768
48639
|
try {
|
|
48769
|
-
removeUnusedStyles(
|
|
48640
|
+
removeUnusedStyles(doc, results.diagnostics);
|
|
48770
48641
|
} catch (e) {
|
|
48771
48642
|
renderCatchError(results, e);
|
|
48772
48643
|
}
|
|
48773
48644
|
}
|
|
48774
48645
|
if (typeof opts.title === "string") {
|
|
48775
48646
|
try {
|
|
48776
|
-
|
|
48647
|
+
doc.title = opts.title;
|
|
48777
48648
|
} catch (e) {
|
|
48778
48649
|
renderCatchError(results, e);
|
|
48779
48650
|
}
|
|
48780
48651
|
}
|
|
48781
|
-
results.title =
|
|
48652
|
+
results.title = doc.title;
|
|
48782
48653
|
if (opts.removeScripts) {
|
|
48783
|
-
removeScripts(
|
|
48654
|
+
removeScripts(doc.documentElement);
|
|
48784
48655
|
}
|
|
48785
48656
|
try {
|
|
48786
|
-
updateCanonicalLink(
|
|
48657
|
+
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
48787
48658
|
} catch (e) {
|
|
48788
48659
|
renderCatchError(results, e);
|
|
48789
48660
|
}
|
|
48790
48661
|
try {
|
|
48791
|
-
relocateMetaCharset(
|
|
48662
|
+
relocateMetaCharset(doc);
|
|
48792
48663
|
} catch (e) {
|
|
48793
48664
|
}
|
|
48794
48665
|
if (!hasError(results.diagnostics)) {
|
|
48795
48666
|
results.httpStatus = 200;
|
|
48796
48667
|
}
|
|
48797
48668
|
try {
|
|
48798
|
-
const metaStatus =
|
|
48669
|
+
const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
|
|
48799
48670
|
if (metaStatus != null) {
|
|
48800
48671
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
48801
48672
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -48805,35 +48676,35 @@ function finalizeHydrate(win2, doc2, opts, results) {
|
|
|
48805
48676
|
} catch (e) {
|
|
48806
48677
|
}
|
|
48807
48678
|
if (opts.clientHydrateAnnotations) {
|
|
48808
|
-
|
|
48679
|
+
doc.documentElement.classList.add("hydrated");
|
|
48809
48680
|
}
|
|
48810
48681
|
if (opts.serializeToHtml) {
|
|
48811
|
-
results.html = serializeDocumentToString(
|
|
48682
|
+
results.html = serializeDocumentToString(doc, opts);
|
|
48812
48683
|
}
|
|
48813
48684
|
} catch (e) {
|
|
48814
48685
|
renderCatchError(results, e);
|
|
48815
48686
|
}
|
|
48816
|
-
destroyWindow(
|
|
48687
|
+
destroyWindow(win, doc, opts, results);
|
|
48817
48688
|
return results;
|
|
48818
48689
|
}
|
|
48819
|
-
function destroyWindow(
|
|
48690
|
+
function destroyWindow(win, doc, opts, results) {
|
|
48820
48691
|
if (!opts.destroyWindow) {
|
|
48821
48692
|
return;
|
|
48822
48693
|
}
|
|
48823
48694
|
try {
|
|
48824
48695
|
if (!opts.destroyDocument) {
|
|
48825
|
-
|
|
48826
|
-
|
|
48696
|
+
win.document = null;
|
|
48697
|
+
doc.defaultView = null;
|
|
48827
48698
|
}
|
|
48828
|
-
if (
|
|
48829
|
-
|
|
48699
|
+
if (win.close) {
|
|
48700
|
+
win.close();
|
|
48830
48701
|
}
|
|
48831
48702
|
} catch (e) {
|
|
48832
48703
|
renderCatchError(results, e);
|
|
48833
48704
|
}
|
|
48834
48705
|
}
|
|
48835
|
-
function serializeDocumentToString(
|
|
48836
|
-
return serializeNodeToHtml(
|
|
48706
|
+
function serializeDocumentToString(doc, opts) {
|
|
48707
|
+
return serializeNodeToHtml(doc, {
|
|
48837
48708
|
approximateLineWidth: opts.approximateLineWidth,
|
|
48838
48709
|
outerHtml: false,
|
|
48839
48710
|
prettyHtml: opts.prettyHtml,
|
|
@@ -48845,8 +48716,8 @@ function serializeDocumentToString(doc2, opts) {
|
|
|
48845
48716
|
fullDocument: opts.fullDocument
|
|
48846
48717
|
});
|
|
48847
48718
|
}
|
|
48848
|
-
function isValidDocument(
|
|
48849
|
-
return
|
|
48719
|
+
function isValidDocument(doc) {
|
|
48720
|
+
return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
|
|
48850
48721
|
}
|
|
48851
48722
|
function removeScripts(elm) {
|
|
48852
48723
|
const children = elm.children;
|