@ionic/core 8.6.6 → 8.6.7
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/action-sheet.js +1 -1
- package/components/alert.js +1 -1
- package/components/backdrop.js +1 -1
- package/components/button.js +1 -1
- package/components/buttons.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/content.js +1 -1
- package/components/header.js +1 -1
- package/components/icon.js +1 -1
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-avatar.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-badge.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-breadcrumbs.js +1 -1
- package/components/ion-card-content.js +1 -1
- package/components/ion-card-header.js +1 -1
- package/components/ion-card-subtitle.js +1 -1
- package/components/ion-card-title.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-col.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-fab-list.js +1 -1
- package/components/ion-fab.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-grid.js +1 -1
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-otp.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-divider.js +1 -1
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +1 -1
- package/components/ion-picker-legacy.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- 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-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/item.js +1 -1
- package/components/label.js +1 -1
- package/components/list-header.js +1 -1
- package/components/list.js +1 -1
- package/components/modal.js +1 -1
- package/components/picker-column-option.js +1 -1
- package/components/picker-column.js +1 -1
- package/components/picker-column2.js +1 -1
- package/components/picker.js +1 -1
- package/components/popover.js +1 -1
- package/components/radio-group.js +1 -1
- package/components/radio.js +1 -1
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +3 -3
- package/components/select-popover.js +2 -2
- package/components/spinner.js +1 -1
- package/components/title.js +1 -1
- package/components/toolbar.js +1 -1
- package/dist/cjs/{animation-ZJ1lAkZD.js → animation-0T7gKwOt.js} +1 -1
- package/dist/cjs/{button-active-BzZenWWH.js → button-active-C-4ud7Ht.js} +1 -1
- package/dist/cjs/{config-CKhELRRu.js → config-U7OAuj53.js} +1 -1
- package/dist/cjs/{data-DW6ofvJ8.js → data-DRqa6oM4.js} +1 -1
- package/dist/cjs/{framework-delegate-WkyjrnCx.js → framework-delegate-C7sIJyT5.js} +1 -1
- package/dist/cjs/{hardware-back-button-BxdNu76F.js → hardware-back-button-D90qZxju.js} +1 -1
- package/dist/cjs/{helpers-DgwmcYAu.js → helpers-BITAzJfi.js} +1 -1
- package/dist/cjs/{index-bGpoPC4u.js → index-BDBT0u4l.js} +2 -2
- package/dist/cjs/{index-Cc5PNMyz.js → index-CVa6JE57.js} +2 -2
- package/dist/cjs/{index-D24wggHR.js → index-CxfLS2mX.js} +11 -12
- package/dist/cjs/{index-DNh170BW.js → index-DODXXb_r.js} +319 -274
- package/dist/cjs/{index-BzEyuIww.js → index-y0QaNtCi.js} +4 -4
- package/dist/cjs/index.cjs.js +15 -16
- package/dist/cjs/{input-shims-CLI_OrmU.js → input-shims-D1Mfgd4s.js} +3 -3
- package/dist/cjs/{input.utils-B2hZ5tX6.js → input.utils-DSoBEyUu.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-action-sheet.cjs.entry.js +9 -10
- package/dist/cjs/ion-alert.cjs.entry.js +12 -13
- package/dist/cjs/ion-app_8.cjs.entry.js +27 -28
- package/dist/cjs/ion-avatar_3.cjs.entry.js +4 -5
- package/dist/cjs/ion-back-button.cjs.entry.js +5 -6
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -3
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-button_2.cjs.entry.js +3 -4
- package/dist/cjs/ion-card_5.cjs.entry.js +7 -8
- package/dist/cjs/ion-checkbox.cjs.entry.js +3 -4
- package/dist/cjs/ion-chip.cjs.entry.js +2 -3
- package/dist/cjs/ion-col_3.cjs.entry.js +4 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -5
- package/dist/cjs/ion-datetime_3.cjs.entry.js +12 -13
- package/dist/cjs/ion-fab_3.cjs.entry.js +5 -6
- package/dist/cjs/ion-img.cjs.entry.js +3 -4
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +7 -8
- package/dist/cjs/ion-input-otp.cjs.entry.js +3 -4
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -3
- package/dist/cjs/ion-input.cjs.entry.js +6 -7
- package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -7
- package/dist/cjs/ion-item_8.cjs.entry.js +10 -11
- package/dist/cjs/ion-loading.cjs.entry.js +9 -10
- package/dist/cjs/ion-menu_3.cjs.entry.js +13 -14
- package/dist/cjs/ion-modal.cjs.entry.js +15 -16
- package/dist/cjs/ion-nav_2.cjs.entry.js +7 -8
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -4
- package/dist/cjs/ion-picker-column.cjs.entry.js +5 -6
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +10 -11
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -4
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-range.cjs.entry.js +4 -5
- package/dist/cjs/ion-refresher_2.cjs.entry.js +13 -14
- package/dist/cjs/ion-reorder_2.cjs.entry.js +5 -6
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -3
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -4
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -5
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-select-modal.cjs.entry.js +8 -9
- package/dist/cjs/ion-select_3.cjs.entry.js +16 -17
- package/dist/cjs/ion-spinner.cjs.entry.js +3 -4
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -3
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +6 -7
- package/dist/cjs/ion-toast.cjs.entry.js +10 -11
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -6
- package/dist/cjs/ionic.cjs.js +4 -6
- package/dist/cjs/{ios.transition-DEitrLlG.js → ios.transition-baEy2tr4.js} +4 -4
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/{md.transition-BHtGC-Wg.js → md.transition-Bvc-JrM5.js} +4 -4
- package/dist/cjs/{notch-controller-Bf5Rr4R5.js → notch-controller-BAbqGXRi.js} +1 -1
- package/dist/cjs/{overlays-CglR7j-u.js → overlays-DRDumz2b.js} +7 -8
- package/dist/cjs/{status-tap-D9YPr62n.js → status-tap-Db3WeCkO.js} +3 -3
- package/dist/cjs/{swipe-back-C1wRtoww.js → swipe-back-D_VN6H9r.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/docs.json +2 -2
- package/dist/esm/{animation-BvhAtgca.js → animation-BWcUKtbn.js} +1 -1
- package/dist/esm/{button-active-DBUPuLNw.js → button-active-Bxcnevju.js} +1 -1
- package/dist/esm/{config-Dx_6wPIJ.js → config-AaTyISnm.js} +1 -1
- package/dist/esm/{data-CKHMWxfe.js → data-GIsHsYIB.js} +1 -1
- package/dist/esm/{framework-delegate-BLEBgH06.js → framework-delegate-DxcnWic_.js} +1 -1
- package/dist/esm/{hardware-back-button-Dhbd-23H.js → hardware-back-button-DcH0BbDp.js} +1 -1
- package/dist/esm/{helpers-8KSQQGQy.js → helpers-1O4D2b7y.js} +1 -1
- package/dist/esm/{index-4DxY6_gG.js → index-B_U9CtaY.js} +315 -270
- package/dist/esm/{index-7UbSlv7N.js → index-BlJTBdxG.js} +2 -2
- package/dist/esm/{index-C6WeRr09.js → index-CWbP1eJz.js} +2 -2
- package/dist/esm/{index-CXSTcaAW.js → index-D8sncTHY.js} +4 -5
- package/dist/esm/{index-Dp7GXH1z.js → index-DfBA5ztX.js} +4 -4
- package/dist/esm/index.js +11 -12
- package/dist/esm/{input-shims-C4KDnhxb.js → input-shims-C3lNp93k.js} +3 -3
- package/dist/esm/{input.utils-be4gBvVY.js → input.utils-zWijNCrx.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +2 -3
- package/dist/esm/ion-action-sheet.entry.js +7 -8
- package/dist/esm/ion-alert.entry.js +8 -9
- package/dist/esm/ion-app_8.entry.js +11 -12
- package/dist/esm/ion-avatar_3.entry.js +1 -2
- package/dist/esm/ion-back-button.entry.js +2 -3
- package/dist/esm/ion-backdrop.entry.js +1 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -3
- package/dist/esm/ion-button_2.entry.js +2 -3
- package/dist/esm/ion-card_5.entry.js +2 -3
- package/dist/esm/ion-checkbox.entry.js +2 -3
- package/dist/esm/ion-chip.entry.js +1 -2
- package/dist/esm/ion-col_3.entry.js +1 -2
- package/dist/esm/ion-datetime-button.entry.js +3 -4
- package/dist/esm/ion-datetime_3.entry.js +7 -8
- package/dist/esm/ion-fab_3.entry.js +2 -3
- package/dist/esm/ion-img.entry.js +2 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -5
- package/dist/esm/ion-input-otp.entry.js +2 -3
- package/dist/esm/ion-input-password-toggle.entry.js +1 -2
- package/dist/esm/ion-input.entry.js +4 -5
- package/dist/esm/ion-item-option_3.entry.js +3 -4
- package/dist/esm/ion-item_8.entry.js +2 -3
- package/dist/esm/ion-loading.entry.js +7 -8
- package/dist/esm/ion-menu_3.entry.js +7 -8
- package/dist/esm/ion-modal.entry.js +8 -9
- package/dist/esm/ion-nav_2.entry.js +5 -6
- package/dist/esm/ion-picker-column-option.entry.js +2 -3
- package/dist/esm/ion-picker-column.entry.js +2 -3
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +7 -8
- package/dist/esm/ion-progress-bar.entry.js +2 -3
- package/dist/esm/ion-radio_2.entry.js +2 -3
- package/dist/esm/ion-range.entry.js +3 -4
- package/dist/esm/ion-refresher_2.entry.js +5 -6
- package/dist/esm/ion-reorder_2.entry.js +3 -4
- package/dist/esm/ion-ripple-effect.entry.js +1 -2
- package/dist/esm/ion-route_4.entry.js +2 -3
- package/dist/esm/ion-searchbar.entry.js +2 -3
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +2 -3
- package/dist/esm/ion-select-modal.entry.js +7 -8
- package/dist/esm/ion-select_3.entry.js +7 -8
- package/dist/esm/ion-spinner.entry.js +1 -2
- package/dist/esm/ion-split-pane.entry.js +1 -2
- package/dist/esm/ion-tab-bar_2.entry.js +2 -3
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +1 -2
- package/dist/esm/ion-textarea.entry.js +4 -5
- package/dist/esm/ion-toast.entry.js +7 -8
- package/dist/esm/ion-toggle.entry.js +2 -3
- package/dist/esm/ionic.js +4 -6
- package/dist/esm/{ios.transition-eAEkgVAv.js → ios.transition-BmXtMRXZ.js} +4 -4
- package/dist/esm/loader.js +3 -5
- package/dist/esm/{md.transition-D8TeJ_Pz.js → md.transition-CLI683c7.js} +4 -4
- package/dist/esm/{notch-controller-lb417-kU.js → notch-controller-C5LPspO8.js} +1 -1
- package/dist/esm/{overlays-ZX_4-t_r.js → overlays-8Y2rA-ps.js} +4 -5
- package/dist/esm/{status-tap-pATNXEtr.js → status-tap-7t9T91bG.js} +3 -3
- package/dist/esm/{swipe-back-B2YfOHRM.js → swipe-back-VdaUzLWy.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-01123ecf.entry.js +4 -0
- package/dist/ionic/p-03d21728.entry.js +4 -0
- package/dist/ionic/p-0d131a02.entry.js +4 -0
- package/dist/ionic/p-0fc6fc38.entry.js +4 -0
- package/dist/ionic/p-1739f5f2.entry.js +4 -0
- package/dist/ionic/p-18f1813b.entry.js +4 -0
- package/dist/ionic/p-2bc871ee.entry.js +4 -0
- package/dist/ionic/p-2c6c6991.entry.js +4 -0
- package/dist/ionic/p-2cfd6b61.entry.js +4 -0
- package/dist/ionic/p-2d0eccfb.entry.js +4 -0
- package/dist/ionic/p-2da6a16b.entry.js +4 -0
- package/dist/ionic/p-2dca6aac.entry.js +4 -0
- package/dist/ionic/p-35c4a63f.entry.js +4 -0
- package/dist/ionic/p-3c855fa9.entry.js +4 -0
- package/dist/ionic/p-4b7d1f35.entry.js +4 -0
- package/dist/ionic/p-4d61f20b.entry.js +4 -0
- package/dist/ionic/p-5f671887.entry.js +4 -0
- package/dist/ionic/p-69f91268.entry.js +4 -0
- package/dist/ionic/{p-3e426ddc.entry.js → p-73d7ad90.entry.js} +1 -1
- package/dist/ionic/p-76b697a3.entry.js +4 -0
- package/dist/ionic/p-7d5cf8c1.entry.js +4 -0
- package/dist/ionic/{p-DiZPU8BH.js → p-7qk7mxdr.js} +1 -1
- package/dist/ionic/p-8957540a.entry.js +4 -0
- package/dist/ionic/{p-c0d58c8e.entry.js → p-8a8ef46b.entry.js} +1 -1
- package/dist/ionic/p-8c674371.entry.js +4 -0
- package/dist/ionic/p-8f2f76e0.entry.js +4 -0
- package/dist/ionic/p-91bde659.entry.js +4 -0
- package/dist/ionic/p-97667b9c.entry.js +4 -0
- package/dist/ionic/p-99774467.entry.js +4 -0
- package/dist/ionic/{p-9ddf2620.entry.js → p-9b46b31b.entry.js} +1 -1
- package/dist/ionic/{p-LaGjiAVo.js → p-B1MNHTYX.js} +1 -1
- package/dist/ionic/p-B3XSxWNQ.js +4 -0
- package/dist/ionic/p-BROiNJRB.js +4 -0
- package/dist/ionic/p-B_U9CtaY.js +5 -0
- package/dist/ionic/p-BhLqfMrf.js +4 -0
- package/dist/ionic/{p-B5MDSrGg.js → p-BmQduG8c.js} +1 -1
- package/dist/ionic/p-CL-KfWxq.js +4 -0
- package/dist/ionic/{p-CWvl4RPO.js → p-CPgXVSua.js} +1 -1
- package/dist/ionic/{p-BB-JoKGB.js → p-CRiGyYOA.js} +1 -1
- package/dist/ionic/{p-EnaLTYYj.js → p-CbI9XwwW.js} +1 -1
- package/dist/ionic/p-D-7TeYC4.js +4 -0
- package/dist/ionic/{p-BHGXdud8.js → p-DCfS5Jk_.js} +1 -1
- package/dist/ionic/{p-D2fQU_qK.js → p-DgdWETCP.js} +1 -1
- package/dist/ionic/{p-C-Cct-6D.js → p-Do-uqmtX.js} +1 -1
- package/dist/ionic/p-DzH0J0yi.js +4 -0
- package/dist/ionic/{p-BhNEp2QP.js → p-QwEXyOze.js} +1 -1
- package/dist/ionic/p-a6282370.entry.js +4 -0
- package/dist/ionic/p-a92bfa13.entry.js +4 -0
- package/dist/ionic/p-a9ac80bd.entry.js +4 -0
- package/dist/ionic/p-a9f99c74.entry.js +4 -0
- package/dist/ionic/p-aIxOGKys.js +4 -0
- package/dist/ionic/p-aa8956c2.entry.js +4 -0
- package/dist/ionic/p-b758a177.entry.js +4 -0
- package/dist/ionic/p-b9ba04ca.entry.js +4 -0
- package/dist/ionic/p-b9f79efc.entry.js +4 -0
- package/dist/ionic/p-bNmY-WfR.js +4 -0
- package/dist/ionic/p-bc01c127.entry.js +4 -0
- package/dist/ionic/p-c0335397.entry.js +4 -0
- package/dist/ionic/p-c4912ca5.entry.js +4 -0
- package/dist/ionic/p-c884d7e3.entry.js +4 -0
- package/dist/ionic/p-cf632ee2.entry.js +4 -0
- package/dist/ionic/p-d47b85ea.entry.js +4 -0
- package/dist/ionic/p-d8429eb4.entry.js +4 -0
- package/dist/ionic/p-d8ed5df0.entry.js +4 -0
- package/dist/ionic/p-e1260ed5.entry.js +4 -0
- package/dist/ionic/p-e37d6c67.entry.js +4 -0
- package/dist/ionic/p-e90652a0.entry.js +4 -0
- package/dist/ionic/p-ei_RiGrl.js +4 -0
- package/dist/ionic/p-f83db8cd.entry.js +4 -0
- package/dist/ionic/{p-d3df6032.entry.js → p-fb74fc38.entry.js} +1 -1
- package/dist/ionic/p-fbc5481b.entry.js +4 -0
- package/dist/ionic/p-fcc7437b.entry.js +4 -0
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +144 -0
- package/dist/types/stencil-public-runtime.d.ts +5 -12
- package/hydrate/index.js +250 -440
- package/hydrate/index.mjs +250 -440
- package/package.json +2 -2
- package/dist/cjs/app-globals-77ZfuXXk.js +0 -10
- package/dist/cjs/ionic-global-UI5YPSi-.js +0 -151
- package/dist/esm/app-globals-CvLYUxE9.js +0 -8
- package/dist/esm/ionic-global-CTSyufhF.js +0 -146
- package/dist/ionic/p-0ec5336d.entry.js +0 -4
- package/dist/ionic/p-0f396661.entry.js +0 -4
- package/dist/ionic/p-1191a2d9.entry.js +0 -4
- package/dist/ionic/p-16116947.entry.js +0 -4
- package/dist/ionic/p-1d5b934a.entry.js +0 -4
- package/dist/ionic/p-20a7e56a.entry.js +0 -4
- package/dist/ionic/p-2cb0f39f.entry.js +0 -4
- package/dist/ionic/p-3624b640.entry.js +0 -4
- package/dist/ionic/p-40d56a51.entry.js +0 -4
- package/dist/ionic/p-4DxY6_gG.js +0 -5
- package/dist/ionic/p-4a4f543a.entry.js +0 -4
- package/dist/ionic/p-4f2c5845.entry.js +0 -4
- package/dist/ionic/p-4f4fed67.entry.js +0 -4
- package/dist/ionic/p-54dec9b1.entry.js +0 -4
- package/dist/ionic/p-5944b332.entry.js +0 -4
- package/dist/ionic/p-66424a88.entry.js +0 -4
- package/dist/ionic/p-7a53f04c.entry.js +0 -4
- package/dist/ionic/p-7bac2c5f.entry.js +0 -4
- package/dist/ionic/p-7da05504.entry.js +0 -4
- package/dist/ionic/p-82cc4aa2.entry.js +0 -4
- package/dist/ionic/p-87b52a3d.entry.js +0 -4
- package/dist/ionic/p-8822db41.entry.js +0 -4
- package/dist/ionic/p-8b21572b.entry.js +0 -4
- package/dist/ionic/p-8d96a0cd.entry.js +0 -4
- package/dist/ionic/p-91d6ccb0.entry.js +0 -4
- package/dist/ionic/p-92e8f208.entry.js +0 -4
- package/dist/ionic/p-B1xocg0A.js +0 -4
- package/dist/ionic/p-Br3vSlYh.js +0 -4
- package/dist/ionic/p-C4I6B3uV.js +0 -4
- package/dist/ionic/p-C87oPMMF.js +0 -4
- package/dist/ionic/p-C8d2ebIg.js +0 -4
- package/dist/ionic/p-CSwZyt05.js +0 -4
- package/dist/ionic/p-CvaZMP6T.js +0 -4
- package/dist/ionic/p-DAfH9Iif.js +0 -4
- package/dist/ionic/p-DCuOL88l.js +0 -4
- package/dist/ionic/p-DJKvq7vb.js +0 -4
- package/dist/ionic/p-Dm_oBkW1.js +0 -4
- package/dist/ionic/p-a28a082f.entry.js +0 -4
- package/dist/ionic/p-a81be128.entry.js +0 -4
- package/dist/ionic/p-ab33ef20.entry.js +0 -4
- package/dist/ionic/p-ac434970.entry.js +0 -4
- package/dist/ionic/p-acd4479f.entry.js +0 -4
- package/dist/ionic/p-afeb9df6.entry.js +0 -4
- package/dist/ionic/p-b3c29eab.entry.js +0 -4
- package/dist/ionic/p-bc9f9032.entry.js +0 -4
- package/dist/ionic/p-be9d091b.entry.js +0 -4
- package/dist/ionic/p-bf81a468.entry.js +0 -4
- package/dist/ionic/p-c5210d3e.entry.js +0 -4
- package/dist/ionic/p-c836e1a2.entry.js +0 -4
- package/dist/ionic/p-cde6d39b.entry.js +0 -4
- package/dist/ionic/p-d04d66fc.entry.js +0 -4
- package/dist/ionic/p-dbba38cf.entry.js +0 -4
- package/dist/ionic/p-e6c465ff.entry.js +0 -4
- package/dist/ionic/p-ec76fec4.entry.js +0 -4
- package/dist/ionic/p-ee2e35a6.entry.js +0 -4
- package/dist/ionic/p-f2884bc2.entry.js +0 -4
- package/dist/ionic/p-f456d176.entry.js +0 -4
- package/dist/ionic/p-f7db572a.entry.js +0 -4
- package/dist/ionic/p-f9eb54ee.entry.js +0 -4
- package/dist/ionic/p-fcd1dba9.entry.js +0 -4
|
@@ -123,8 +123,151 @@ const printRequiredElementError = (el, ...targetSelectors) => {
|
|
|
123
123
|
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
+
const getPlatforms = (win) => setupPlatforms(win);
|
|
127
|
+
const isPlatform = (winOrPlatform, platform) => {
|
|
128
|
+
if (typeof winOrPlatform === 'string') {
|
|
129
|
+
platform = winOrPlatform;
|
|
130
|
+
winOrPlatform = undefined;
|
|
131
|
+
}
|
|
132
|
+
return getPlatforms(winOrPlatform).includes(platform);
|
|
133
|
+
};
|
|
134
|
+
const setupPlatforms = (win = window) => {
|
|
135
|
+
if (typeof win === 'undefined') {
|
|
136
|
+
return [];
|
|
137
|
+
}
|
|
138
|
+
win.Ionic = win.Ionic || {};
|
|
139
|
+
let platforms = win.Ionic.platforms;
|
|
140
|
+
if (platforms == null) {
|
|
141
|
+
platforms = win.Ionic.platforms = detectPlatforms(win);
|
|
142
|
+
platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
|
|
143
|
+
}
|
|
144
|
+
return platforms;
|
|
145
|
+
};
|
|
146
|
+
const detectPlatforms = (win) => {
|
|
147
|
+
const customPlatformMethods = config.get('platform');
|
|
148
|
+
return Object.keys(PLATFORMS_MAP).filter((p) => {
|
|
149
|
+
const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
|
|
150
|
+
return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
154
|
+
const isIpad = (win) => {
|
|
155
|
+
// iOS 12 and below
|
|
156
|
+
if (testUserAgent(win, /iPad/i)) {
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
// iOS 13+
|
|
160
|
+
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
return false;
|
|
164
|
+
};
|
|
165
|
+
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
166
|
+
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
167
|
+
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
168
|
+
const isAndroidTablet = (win) => {
|
|
169
|
+
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
170
|
+
};
|
|
171
|
+
const isPhablet = (win) => {
|
|
172
|
+
const width = win.innerWidth;
|
|
173
|
+
const height = win.innerHeight;
|
|
174
|
+
const smallest = Math.min(width, height);
|
|
175
|
+
const largest = Math.max(width, height);
|
|
176
|
+
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
|
177
|
+
};
|
|
178
|
+
const isTablet = (win) => {
|
|
179
|
+
const width = win.innerWidth;
|
|
180
|
+
const height = win.innerHeight;
|
|
181
|
+
const smallest = Math.min(width, height);
|
|
182
|
+
const largest = Math.max(width, height);
|
|
183
|
+
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
|
184
|
+
};
|
|
185
|
+
const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
|
|
186
|
+
const isDesktop = (win) => !isMobile(win);
|
|
187
|
+
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
188
|
+
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
189
|
+
const isCapacitorNative = (win) => {
|
|
190
|
+
const capacitor = win['Capacitor'];
|
|
191
|
+
// TODO(ROU-11693): Remove when we no longer support Capacitor 2, which does not have isNativePlatform
|
|
192
|
+
return !!((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative) || ((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNativePlatform) && !!capacitor.isNativePlatform()));
|
|
193
|
+
};
|
|
194
|
+
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
195
|
+
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|
|
196
|
+
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
197
|
+
const matchMedia = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
|
|
198
|
+
const PLATFORMS_MAP = {
|
|
199
|
+
ipad: isIpad,
|
|
200
|
+
iphone: isIphone,
|
|
201
|
+
ios: isIOS,
|
|
202
|
+
android: isAndroid,
|
|
203
|
+
phablet: isPhablet,
|
|
204
|
+
tablet: isTablet,
|
|
205
|
+
cordova: isCordova,
|
|
206
|
+
capacitor: isCapacitorNative,
|
|
207
|
+
electron: isElectron,
|
|
208
|
+
pwa: isPWA,
|
|
209
|
+
mobile: isMobile,
|
|
210
|
+
mobileweb: isMobileWeb,
|
|
211
|
+
desktop: isDesktop,
|
|
212
|
+
hybrid: isHybrid,
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// TODO(FW-2832): types
|
|
216
|
+
let defaultMode;
|
|
217
|
+
const getIonMode = (ref) => {
|
|
218
|
+
return (ref && getMode(ref)) || defaultMode;
|
|
219
|
+
};
|
|
220
|
+
const initialize = (userConfig = {}) => {
|
|
221
|
+
if (typeof window === 'undefined') {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
const doc = window.document;
|
|
225
|
+
const win = window;
|
|
226
|
+
const Ionic = (win.Ionic = win.Ionic || {});
|
|
227
|
+
// create the Ionic.config from raw config object (if it exists)
|
|
228
|
+
// and convert Ionic.config into a ConfigApi that has a get() fn
|
|
229
|
+
const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);
|
|
230
|
+
config.reset(configObj);
|
|
231
|
+
if (config.getBoolean('persistConfig')) {
|
|
232
|
+
saveConfig(win, configObj);
|
|
233
|
+
}
|
|
234
|
+
// Setup platforms
|
|
235
|
+
setupPlatforms(win);
|
|
236
|
+
// first see if the mode was set as an attribute on <html>
|
|
237
|
+
// which could have been set by the user, or by pre-rendering
|
|
238
|
+
// otherwise get the mode via config settings, and fallback to md
|
|
239
|
+
Ionic.config = config;
|
|
240
|
+
Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
|
|
241
|
+
config.set('mode', defaultMode);
|
|
242
|
+
doc.documentElement.setAttribute('mode', defaultMode);
|
|
243
|
+
doc.documentElement.classList.add(defaultMode);
|
|
244
|
+
if (config.getBoolean('_testing')) {
|
|
245
|
+
config.set('animated', false);
|
|
246
|
+
}
|
|
247
|
+
const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
|
|
248
|
+
const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);
|
|
249
|
+
setMode((elm) => {
|
|
250
|
+
while (elm) {
|
|
251
|
+
const elmMode = elm.mode || elm.getAttribute('mode');
|
|
252
|
+
if (elmMode) {
|
|
253
|
+
if (isAllowedIonicModeValue(elmMode)) {
|
|
254
|
+
return elmMode;
|
|
255
|
+
}
|
|
256
|
+
else if (isIonicElement(elm)) {
|
|
257
|
+
printIonWarning('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
elm = elm.parentElement;
|
|
261
|
+
}
|
|
262
|
+
return defaultMode;
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const globalScripts = initialize;
|
|
267
|
+
const globalStyles = "";
|
|
268
|
+
|
|
126
269
|
/*
|
|
127
|
-
Stencil Client Platform v4.
|
|
270
|
+
Stencil Client Platform v4.33.1 | MIT Licensed | https://stenciljs.com
|
|
128
271
|
*/
|
|
129
272
|
var __defProp = Object.defineProperty;
|
|
130
273
|
var __export = (target, all) => {
|
|
@@ -282,7 +425,6 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
282
425
|
}
|
|
283
426
|
return false;
|
|
284
427
|
})() ;
|
|
285
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
286
428
|
var queuePending = false;
|
|
287
429
|
var queueDomReads = [];
|
|
288
430
|
var queueDomWrites = [];
|
|
@@ -495,27 +637,15 @@ function deserializeProperty(value) {
|
|
|
495
637
|
}
|
|
496
638
|
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
497
639
|
}
|
|
498
|
-
|
|
499
|
-
// src/utils/style.ts
|
|
500
|
-
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
501
|
-
return void 0;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
// src/utils/shadow-root.ts
|
|
505
|
-
var globalStyleSheet;
|
|
506
640
|
function createShadowRoot(cmpMeta) {
|
|
507
|
-
var _a;
|
|
508
641
|
const shadowRoot = this.attachShadow({
|
|
509
642
|
mode: "open",
|
|
510
643
|
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
511
644
|
}) ;
|
|
512
|
-
if (
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
} else {
|
|
517
|
-
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
518
|
-
}
|
|
645
|
+
if (supportsConstructableStylesheets) {
|
|
646
|
+
const sheet = new CSSStyleSheet();
|
|
647
|
+
sheet.replaceSync(globalStyles);
|
|
648
|
+
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
519
649
|
}
|
|
520
650
|
}
|
|
521
651
|
var updateFallbackSlotVisibility = (elm) => {
|
|
@@ -623,7 +753,7 @@ function patchSlotNode(node) {
|
|
|
623
753
|
const slotName = this["s-sn"];
|
|
624
754
|
if (opts == null ? void 0 : opts.flatten) {
|
|
625
755
|
console.error(`
|
|
626
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
756
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
627
757
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
628
758
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
629
759
|
`);
|
|
@@ -1010,9 +1140,6 @@ var validNodesPatches = [
|
|
|
1010
1140
|
"parentNode"
|
|
1011
1141
|
];
|
|
1012
1142
|
function patchHostOriginalAccessor(accessorName, node) {
|
|
1013
|
-
if (!globalThis.Node || !globalThis.Element) {
|
|
1014
|
-
return;
|
|
1015
|
-
}
|
|
1016
1143
|
let accessor;
|
|
1017
1144
|
if (validElementPatches.includes(accessorName)) {
|
|
1018
1145
|
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
@@ -1048,125 +1175,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
1048
1175
|
};
|
|
1049
1176
|
}
|
|
1050
1177
|
};
|
|
1051
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1052
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1053
|
-
let style = styles.get(scopeId2);
|
|
1054
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1055
|
-
style = style || new CSSStyleSheet();
|
|
1056
|
-
if (typeof style === "string") {
|
|
1057
|
-
style = cssText;
|
|
1058
|
-
} else {
|
|
1059
|
-
style.replaceSync(cssText);
|
|
1060
|
-
}
|
|
1061
|
-
} else {
|
|
1062
|
-
style = cssText;
|
|
1063
|
-
}
|
|
1064
|
-
styles.set(scopeId2, style);
|
|
1065
|
-
};
|
|
1066
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1067
|
-
var _a;
|
|
1068
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1069
|
-
const style = styles.get(scopeId2);
|
|
1070
|
-
if (!win.document) {
|
|
1071
|
-
return scopeId2;
|
|
1072
|
-
}
|
|
1073
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1074
|
-
if (style) {
|
|
1075
|
-
if (typeof style === "string") {
|
|
1076
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1077
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1078
|
-
let styleElm;
|
|
1079
|
-
if (!appliedStyles) {
|
|
1080
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1081
|
-
}
|
|
1082
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1083
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1084
|
-
styleElm.innerHTML = style;
|
|
1085
|
-
} else {
|
|
1086
|
-
styleElm = win.document.createElement("style");
|
|
1087
|
-
styleElm.innerHTML = style;
|
|
1088
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1089
|
-
if (nonce != null) {
|
|
1090
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1091
|
-
}
|
|
1092
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1093
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1094
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1095
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1096
|
-
styleContainerNode.insertBefore(
|
|
1097
|
-
styleElm,
|
|
1098
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1099
|
-
);
|
|
1100
|
-
} else if ("host" in styleContainerNode) {
|
|
1101
|
-
if (supportsConstructableStylesheets) {
|
|
1102
|
-
const stylesheet = new CSSStyleSheet();
|
|
1103
|
-
stylesheet.replaceSync(style);
|
|
1104
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
1105
|
-
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1106
|
-
} else {
|
|
1107
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1108
|
-
}
|
|
1109
|
-
} else {
|
|
1110
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1111
|
-
if (existingStyleContainer) {
|
|
1112
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1113
|
-
} else {
|
|
1114
|
-
styleContainerNode.prepend(styleElm);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
} else {
|
|
1118
|
-
styleContainerNode.append(styleElm);
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1122
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1126
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1127
|
-
}
|
|
1128
|
-
if (appliedStyles) {
|
|
1129
|
-
appliedStyles.add(scopeId2);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1133
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
1134
|
-
styleContainerNode.adoptedStyleSheets.push(style);
|
|
1135
|
-
} else {
|
|
1136
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
return scopeId2;
|
|
1141
|
-
};
|
|
1142
|
-
var attachStyles = (hostRef) => {
|
|
1143
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1144
|
-
const elm = hostRef.$hostElement$;
|
|
1145
|
-
const flags = cmpMeta.$flags$;
|
|
1146
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1147
|
-
const scopeId2 = addStyle(
|
|
1148
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1149
|
-
cmpMeta,
|
|
1150
|
-
hostRef.$modeName$
|
|
1151
|
-
);
|
|
1152
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1153
|
-
elm["s-sc"] = scopeId2;
|
|
1154
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1155
|
-
}
|
|
1156
|
-
endAttachStyles();
|
|
1157
|
-
};
|
|
1158
|
-
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1159
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1160
|
-
var hydrateScopedToShadow = () => {
|
|
1161
|
-
if (!win.document) {
|
|
1162
|
-
return;
|
|
1163
|
-
}
|
|
1164
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1165
|
-
let i2 = 0;
|
|
1166
|
-
for (; i2 < styles2.length; i2++) {
|
|
1167
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
1178
|
var h = (nodeName, vnodeData, ...children) => {
|
|
1171
1179
|
let child = null;
|
|
1172
1180
|
let key = null;
|
|
@@ -1281,7 +1289,7 @@ var convertToPrivate = (node) => {
|
|
|
1281
1289
|
|
|
1282
1290
|
// src/runtime/client-hydrate.ts
|
|
1283
1291
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1284
|
-
var _a
|
|
1292
|
+
var _a;
|
|
1285
1293
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1286
1294
|
const shadowRoot = hostElm.shadowRoot;
|
|
1287
1295
|
const childRenderNodes = [];
|
|
@@ -1292,17 +1300,15 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1292
1300
|
vnode.$elm$ = hostElm;
|
|
1293
1301
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
1294
1302
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
1295
|
-
var
|
|
1303
|
+
var _a2;
|
|
1296
1304
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
1297
1305
|
return;
|
|
1298
1306
|
}
|
|
1299
1307
|
const attributeName = metaAttributeName || memberName;
|
|
1300
1308
|
const attrVal = hostElm.getAttribute(attributeName);
|
|
1301
1309
|
if (attrVal !== null) {
|
|
1302
|
-
const attrPropVal = parsePropertyValue(
|
|
1303
|
-
|
|
1304
|
-
memberFlags);
|
|
1305
|
-
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
1310
|
+
const attrPropVal = parsePropertyValue(attrVal, memberFlags);
|
|
1311
|
+
(_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
|
|
1306
1312
|
}
|
|
1307
1313
|
});
|
|
1308
1314
|
let scopeId2;
|
|
@@ -1343,18 +1349,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1343
1349
|
if (childRenderNode.$tag$ === "slot") {
|
|
1344
1350
|
node["s-cr"] = hostElm["s-cr"];
|
|
1345
1351
|
}
|
|
1346
|
-
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1347
|
-
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1348
|
-
if (cmpMeta) {
|
|
1349
|
-
const scopeId3 = getScopeId(
|
|
1350
|
-
cmpMeta.$cmpMeta$,
|
|
1351
|
-
childRenderNode.$elm$.getAttribute("s-mode")
|
|
1352
|
-
);
|
|
1353
|
-
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1354
|
-
if (styleSheet) {
|
|
1355
|
-
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
1352
|
}
|
|
1359
1353
|
if (childRenderNode.$tag$ === "slot") {
|
|
1360
1354
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1370,7 +1364,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1370
1364
|
}
|
|
1371
1365
|
}
|
|
1372
1366
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1373
|
-
if (
|
|
1367
|
+
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1374
1368
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1375
1369
|
}
|
|
1376
1370
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1378,9 +1372,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1378
1372
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1379
1373
|
}
|
|
1380
1374
|
}
|
|
1381
|
-
|
|
1382
|
-
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1383
|
-
}
|
|
1375
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1384
1376
|
}
|
|
1385
1377
|
const hosts = [];
|
|
1386
1378
|
const snLen = slottedNodes.length;
|
|
@@ -1401,26 +1393,21 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1401
1393
|
}
|
|
1402
1394
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1403
1395
|
const hostEle = hosts[slottedItem.hostId];
|
|
1404
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1405
|
-
hostEle.appendChild(slottedItem.node);
|
|
1406
|
-
}
|
|
1407
1396
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1414
|
-
}
|
|
1397
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1398
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1399
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1400
|
+
} else {
|
|
1401
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1415
1402
|
}
|
|
1416
1403
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1417
|
-
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1418
|
-
slottedItem.node.removeAttribute("slot");
|
|
1419
|
-
}
|
|
1420
1404
|
{
|
|
1421
1405
|
patchSlottedNode(slottedItem.node);
|
|
1422
1406
|
}
|
|
1423
1407
|
}
|
|
1408
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1409
|
+
hostEle.appendChild(slottedItem.node);
|
|
1410
|
+
}
|
|
1424
1411
|
}
|
|
1425
1412
|
}
|
|
1426
1413
|
if (scopeId2 && slotNodes.length) {
|
|
@@ -1428,27 +1415,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1428
1415
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1429
1416
|
});
|
|
1430
1417
|
}
|
|
1431
|
-
if (shadowRoot) {
|
|
1418
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
1432
1419
|
let rnIdex = 0;
|
|
1433
1420
|
const rnLen = shadowRootNodes.length;
|
|
1434
1421
|
if (rnLen) {
|
|
1435
1422
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1436
|
-
|
|
1437
|
-
if (node) {
|
|
1438
|
-
shadowRoot.appendChild(node);
|
|
1439
|
-
}
|
|
1423
|
+
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
1440
1424
|
}
|
|
1441
1425
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1442
|
-
if (typeof node["s-
|
|
1426
|
+
if (typeof node["s-sn"] !== "string") {
|
|
1443
1427
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1444
1428
|
node.removeAttribute("hidden");
|
|
1445
|
-
} else if (node.nodeType === 8 /* CommentNode */
|
|
1429
|
+
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1446
1430
|
node.parentNode.removeChild(node);
|
|
1447
1431
|
}
|
|
1448
1432
|
}
|
|
1449
1433
|
});
|
|
1450
1434
|
}
|
|
1451
1435
|
}
|
|
1436
|
+
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1452
1437
|
hostRef.$hostElement$ = hostElm;
|
|
1453
1438
|
endHydrate();
|
|
1454
1439
|
};
|
|
@@ -1480,7 +1465,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1480
1465
|
if (!parentVNode.$children$) {
|
|
1481
1466
|
parentVNode.$children$ = [];
|
|
1482
1467
|
}
|
|
1483
|
-
if (scopeId2
|
|
1468
|
+
if (scopeId2) {
|
|
1484
1469
|
node["s-si"] = scopeId2;
|
|
1485
1470
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
1486
1471
|
}
|
|
@@ -1610,7 +1595,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1610
1595
|
vnode.$index$ = "0";
|
|
1611
1596
|
parentVNode.$children$ = [vnode];
|
|
1612
1597
|
} else {
|
|
1613
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()
|
|
1598
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1614
1599
|
node.remove();
|
|
1615
1600
|
}
|
|
1616
1601
|
}
|
|
@@ -1668,10 +1653,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1668
1653
|
if (childVNode.$name$) {
|
|
1669
1654
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
1670
1655
|
}
|
|
1671
|
-
if (
|
|
1672
|
-
|
|
1656
|
+
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1657
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1673
1658
|
} else {
|
|
1674
|
-
|
|
1659
|
+
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
1675
1660
|
}
|
|
1676
1661
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1677
1662
|
node.remove();
|
|
@@ -1686,8 +1671,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1686
1671
|
if (shouldMove) {
|
|
1687
1672
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1688
1673
|
}
|
|
1674
|
+
childRenderNodes.push(childVNode);
|
|
1689
1675
|
}
|
|
1690
|
-
childRenderNodes.push(childVNode);
|
|
1691
1676
|
slotNodes.push(childVNode);
|
|
1692
1677
|
if (!parentVNode.$children$) {
|
|
1693
1678
|
parentVNode.$children$ = [];
|
|
@@ -1695,17 +1680,13 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1695
1680
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1696
1681
|
}
|
|
1697
1682
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1698
|
-
var _a, _b;
|
|
1699
1683
|
let slottedNode = slotNode.nextSibling;
|
|
1700
1684
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1707
|
-
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1708
|
-
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1685
|
+
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1686
|
+
slottedNode["s-sn"] = slotName;
|
|
1687
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1688
|
+
slottedNode = slottedNode.nextSibling;
|
|
1689
|
+
}
|
|
1709
1690
|
};
|
|
1710
1691
|
var findCorrespondingNode = (node, type) => {
|
|
1711
1692
|
let sibling = node;
|
|
@@ -1730,26 +1711,22 @@ createSupportsRuleRe(":host-context");
|
|
|
1730
1711
|
// src/runtime/mode.ts
|
|
1731
1712
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
1732
1713
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
1733
|
-
var getMode = (ref) =>
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
};
|
|
1737
|
-
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1738
|
-
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1739
|
-
propValue = deserializeProperty(propValue);
|
|
1740
|
-
return propValue;
|
|
1741
|
-
}
|
|
1742
|
-
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1714
|
+
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
1715
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
1716
|
+
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1743
1717
|
try {
|
|
1744
|
-
|
|
1718
|
+
propValue = JSON.parse(propValue);
|
|
1719
|
+
return propValue;
|
|
1745
1720
|
} catch (e) {
|
|
1746
1721
|
}
|
|
1747
1722
|
}
|
|
1723
|
+
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1724
|
+
propValue = deserializeProperty(propValue);
|
|
1725
|
+
return propValue;
|
|
1726
|
+
}
|
|
1748
1727
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1749
1728
|
if (propType & 4 /* Boolean */) {
|
|
1750
|
-
|
|
1751
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1752
|
-
}
|
|
1729
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1753
1730
|
}
|
|
1754
1731
|
if (propType & 2 /* Number */) {
|
|
1755
1732
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -1761,10 +1738,7 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1761
1738
|
}
|
|
1762
1739
|
return propValue;
|
|
1763
1740
|
};
|
|
1764
|
-
var getElement = (ref) =>
|
|
1765
|
-
var _a;
|
|
1766
|
-
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1767
|
-
};
|
|
1741
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1768
1742
|
|
|
1769
1743
|
// src/runtime/event-emitter.ts
|
|
1770
1744
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1785,6 +1759,117 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1785
1759
|
elm.dispatchEvent(ev);
|
|
1786
1760
|
return ev;
|
|
1787
1761
|
};
|
|
1762
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1763
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1764
|
+
let style = styles.get(scopeId2);
|
|
1765
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1766
|
+
style = style || new CSSStyleSheet();
|
|
1767
|
+
if (typeof style === "string") {
|
|
1768
|
+
style = cssText;
|
|
1769
|
+
} else {
|
|
1770
|
+
style.replaceSync(cssText);
|
|
1771
|
+
}
|
|
1772
|
+
} else {
|
|
1773
|
+
style = cssText;
|
|
1774
|
+
}
|
|
1775
|
+
styles.set(scopeId2, style);
|
|
1776
|
+
};
|
|
1777
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1778
|
+
var _a;
|
|
1779
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1780
|
+
const style = styles.get(scopeId2);
|
|
1781
|
+
if (!win.document) {
|
|
1782
|
+
return scopeId2;
|
|
1783
|
+
}
|
|
1784
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1785
|
+
if (style) {
|
|
1786
|
+
if (typeof style === "string") {
|
|
1787
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1788
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1789
|
+
let styleElm;
|
|
1790
|
+
if (!appliedStyles) {
|
|
1791
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1792
|
+
}
|
|
1793
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1794
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1795
|
+
styleElm.innerHTML = style;
|
|
1796
|
+
} else {
|
|
1797
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1798
|
+
styleElm.innerHTML = style;
|
|
1799
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1800
|
+
if (nonce != null) {
|
|
1801
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1802
|
+
}
|
|
1803
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1804
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1805
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1806
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1807
|
+
styleContainerNode.insertBefore(
|
|
1808
|
+
styleElm,
|
|
1809
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1810
|
+
);
|
|
1811
|
+
} else if ("host" in styleContainerNode) {
|
|
1812
|
+
if (supportsConstructableStylesheets) {
|
|
1813
|
+
const stylesheet = new CSSStyleSheet();
|
|
1814
|
+
stylesheet.replaceSync(style);
|
|
1815
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1816
|
+
} else {
|
|
1817
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1818
|
+
if (existingStyleContainer) {
|
|
1819
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1820
|
+
} else {
|
|
1821
|
+
styleContainerNode.prepend(styleElm);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
} else {
|
|
1825
|
+
styleContainerNode.append(styleElm);
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1829
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1833
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1834
|
+
}
|
|
1835
|
+
if (appliedStyles) {
|
|
1836
|
+
appliedStyles.add(scopeId2);
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1840
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
return scopeId2;
|
|
1844
|
+
};
|
|
1845
|
+
var attachStyles = (hostRef) => {
|
|
1846
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1847
|
+
const elm = hostRef.$hostElement$;
|
|
1848
|
+
const flags = cmpMeta.$flags$;
|
|
1849
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1850
|
+
const scopeId2 = addStyle(
|
|
1851
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1852
|
+
cmpMeta,
|
|
1853
|
+
hostRef.$modeName$
|
|
1854
|
+
);
|
|
1855
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1856
|
+
elm["s-sc"] = scopeId2;
|
|
1857
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1858
|
+
}
|
|
1859
|
+
endAttachStyles();
|
|
1860
|
+
};
|
|
1861
|
+
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1862
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1863
|
+
var hydrateScopedToShadow = () => {
|
|
1864
|
+
if (!win.document) {
|
|
1865
|
+
return;
|
|
1866
|
+
}
|
|
1867
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1868
|
+
let i2 = 0;
|
|
1869
|
+
for (; i2 < styles2.length; i2++) {
|
|
1870
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1871
|
+
}
|
|
1872
|
+
};
|
|
1788
1873
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1789
1874
|
if (oldValue === newValue) {
|
|
1790
1875
|
return;
|
|
@@ -1795,13 +1880,12 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1795
1880
|
const classList = elm.classList;
|
|
1796
1881
|
const oldClasses = parseClassList(oldValue);
|
|
1797
1882
|
let newClasses = parseClassList(newValue);
|
|
1798
|
-
if (
|
|
1799
|
-
|
|
1800
|
-
newClasses.push(scopeId2);
|
|
1883
|
+
if (elm["s-si"] && initialRender) {
|
|
1884
|
+
newClasses.push(elm["s-si"]);
|
|
1801
1885
|
oldClasses.forEach((c) => {
|
|
1802
|
-
if (c.startsWith(
|
|
1886
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
1803
1887
|
});
|
|
1804
|
-
newClasses = [...new Set(newClasses)]
|
|
1888
|
+
newClasses = [...new Set(newClasses)];
|
|
1805
1889
|
classList.add(...newClasses);
|
|
1806
1890
|
} else {
|
|
1807
1891
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -2271,8 +2355,6 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2271
2355
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2272
2356
|
) {
|
|
2273
2357
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2274
|
-
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2275
|
-
newVNode2.$children$ = oldChildren;
|
|
2276
2358
|
}
|
|
2277
2359
|
if (isSvgMode && tag === "svg") {
|
|
2278
2360
|
isSvgMode = false;
|
|
@@ -2511,12 +2593,6 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2511
2593
|
}
|
|
2512
2594
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2513
2595
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2514
|
-
if (isInitialLoad) {
|
|
2515
|
-
queueMicrotask(() => {
|
|
2516
|
-
dispatch();
|
|
2517
|
-
});
|
|
2518
|
-
return;
|
|
2519
|
-
}
|
|
2520
2596
|
return writeTask(dispatch) ;
|
|
2521
2597
|
};
|
|
2522
2598
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2640,10 +2716,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2640
2716
|
}
|
|
2641
2717
|
};
|
|
2642
2718
|
var forceUpdate = (ref) => {
|
|
2643
|
-
var _a;
|
|
2644
2719
|
{
|
|
2645
2720
|
const hostRef = getHostRef(ref);
|
|
2646
|
-
const isConnected =
|
|
2721
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
2647
2722
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2648
2723
|
scheduleUpdate(hostRef, false);
|
|
2649
2724
|
}
|
|
@@ -2651,13 +2726,7 @@ var forceUpdate = (ref) => {
|
|
|
2651
2726
|
}
|
|
2652
2727
|
};
|
|
2653
2728
|
var appDidLoad = (who) => {
|
|
2654
|
-
var _a;
|
|
2655
2729
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2656
|
-
{
|
|
2657
|
-
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2658
|
-
plt.$orgLocNodes$.clear();
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
2730
|
};
|
|
2662
2731
|
var safeCall = (instance, method, arg, elm) => {
|
|
2663
2732
|
if (instance && instance[method]) {
|
|
@@ -2678,9 +2747,6 @@ var addHydratedFlag = (elm) => {
|
|
|
2678
2747
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2679
2748
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2680
2749
|
const hostRef = getHostRef(ref);
|
|
2681
|
-
if (!hostRef) {
|
|
2682
|
-
return;
|
|
2683
|
-
}
|
|
2684
2750
|
if (!hostRef) {
|
|
2685
2751
|
throw new Error(
|
|
2686
2752
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -2690,9 +2756,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2690
2756
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2691
2757
|
const flags = hostRef.$flags$;
|
|
2692
2758
|
const instance = hostRef.$lazyInstance$ ;
|
|
2693
|
-
newVal = parsePropertyValue(
|
|
2694
|
-
newVal,
|
|
2695
|
-
cmpMeta.$members$[propName][0]);
|
|
2759
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
2696
2760
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2697
2761
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2698
2762
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2756,9 +2820,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2756
2820
|
Object.defineProperty(prototype, memberName, {
|
|
2757
2821
|
set(newValue) {
|
|
2758
2822
|
const ref = getHostRef(this);
|
|
2759
|
-
if (!ref) {
|
|
2760
|
-
return;
|
|
2761
|
-
}
|
|
2762
2823
|
if (origSetter) {
|
|
2763
2824
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2764
2825
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2766,11 +2827,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2766
2827
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2767
2828
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2768
2829
|
}
|
|
2769
|
-
origSetter.apply(this, [
|
|
2770
|
-
parsePropertyValue(
|
|
2771
|
-
newValue,
|
|
2772
|
-
memberFlags)
|
|
2773
|
-
]);
|
|
2830
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
2774
2831
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2775
2832
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2776
2833
|
return;
|
|
@@ -2792,9 +2849,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2792
2849
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2793
2850
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2794
2851
|
}
|
|
2795
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2796
|
-
newValue,
|
|
2797
|
-
memberFlags);
|
|
2852
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
2798
2853
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2799
2854
|
};
|
|
2800
2855
|
if (ref.$lazyInstance$) {
|
|
@@ -2833,7 +2888,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2833
2888
|
} else if (propName == null) {
|
|
2834
2889
|
const hostRef = getHostRef(this);
|
|
2835
2890
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2836
|
-
if (
|
|
2891
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2837
2892
|
const instance = hostRef.$lazyInstance$ ;
|
|
2838
2893
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2839
2894
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2953,9 +3008,6 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2953
3008
|
var connectedCallback = (elm) => {
|
|
2954
3009
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2955
3010
|
const hostRef = getHostRef(elm);
|
|
2956
|
-
if (!hostRef) {
|
|
2957
|
-
return;
|
|
2958
|
-
}
|
|
2959
3011
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2960
3012
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2961
3013
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -3031,7 +3083,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
3031
3083
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3032
3084
|
const hostRef = getHostRef(elm);
|
|
3033
3085
|
{
|
|
3034
|
-
if (hostRef
|
|
3086
|
+
if (hostRef.$rmListeners$) {
|
|
3035
3087
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
3036
3088
|
hostRef.$rmListeners$ = void 0;
|
|
3037
3089
|
}
|
|
@@ -3124,9 +3176,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3124
3176
|
}
|
|
3125
3177
|
connectedCallback() {
|
|
3126
3178
|
const hostRef = getHostRef(this);
|
|
3127
|
-
if (!hostRef) {
|
|
3128
|
-
return;
|
|
3129
|
-
}
|
|
3130
3179
|
if (!this.hasRegisteredEventListeners) {
|
|
3131
3180
|
this.hasRegisteredEventListeners = true;
|
|
3132
3181
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -3146,9 +3195,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3146
3195
|
plt.raf(() => {
|
|
3147
3196
|
var _a3;
|
|
3148
3197
|
const hostRef = getHostRef(this);
|
|
3149
|
-
if (!hostRef) {
|
|
3150
|
-
return;
|
|
3151
|
-
}
|
|
3152
3198
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
3153
3199
|
if (i2 > -1) {
|
|
3154
3200
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -3159,12 +3205,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3159
3205
|
});
|
|
3160
3206
|
}
|
|
3161
3207
|
componentOnReady() {
|
|
3162
|
-
|
|
3163
|
-
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
3208
|
+
return getHostRef(this).$onReadyPromise$;
|
|
3164
3209
|
}
|
|
3165
3210
|
};
|
|
3166
|
-
|
|
3167
|
-
{
|
|
3211
|
+
{
|
|
3212
|
+
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3168
3213
|
patchPseudoShadowDom(HostElement.prototype);
|
|
3169
3214
|
}
|
|
3170
3215
|
}
|
|
@@ -3258,21 +3303,21 @@ exports.H = H;
|
|
|
3258
3303
|
exports.Host = Host;
|
|
3259
3304
|
exports.bootstrapLazy = bootstrapLazy;
|
|
3260
3305
|
exports.config = config;
|
|
3261
|
-
exports.configFromSession = configFromSession;
|
|
3262
|
-
exports.configFromURL = configFromURL;
|
|
3263
3306
|
exports.createEvent = createEvent;
|
|
3264
3307
|
exports.forceUpdate = forceUpdate;
|
|
3265
3308
|
exports.getAssetPath = getAssetPath;
|
|
3266
3309
|
exports.getElement = getElement;
|
|
3267
|
-
exports.
|
|
3310
|
+
exports.getIonMode = getIonMode;
|
|
3311
|
+
exports.getPlatforms = getPlatforms;
|
|
3312
|
+
exports.globalScripts = globalScripts;
|
|
3268
3313
|
exports.h = h;
|
|
3314
|
+
exports.initialize = initialize;
|
|
3315
|
+
exports.isPlatform = isPlatform;
|
|
3269
3316
|
exports.printIonError = printIonError;
|
|
3270
3317
|
exports.printIonWarning = printIonWarning;
|
|
3271
3318
|
exports.printRequiredElementError = printRequiredElementError;
|
|
3272
3319
|
exports.promiseResolve = promiseResolve;
|
|
3273
3320
|
exports.readTask = readTask;
|
|
3274
3321
|
exports.registerInstance = registerInstance;
|
|
3275
|
-
exports.saveConfig = saveConfig;
|
|
3276
|
-
exports.setMode = setMode;
|
|
3277
3322
|
exports.setNonce = setNonce;
|
|
3278
3323
|
exports.writeTask = writeTask;
|