@ionic/core 8.6.6-nightly.20250730 → 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-XYevt1wa.js → animation-0T7gKwOt.js} +1 -1
- package/dist/cjs/{button-active-CtsK6nsF.js → button-active-C-4ud7Ht.js} +1 -1
- package/dist/cjs/{config-CL-H56f3.js → config-U7OAuj53.js} +1 -1
- package/dist/cjs/{data-DWBiAqUs.js → data-DRqa6oM4.js} +1 -1
- package/dist/cjs/{framework-delegate-BF-OZXpV.js → framework-delegate-C7sIJyT5.js} +1 -1
- package/dist/cjs/{hardware-back-button-DnWryw5c.js → hardware-back-button-D90qZxju.js} +1 -1
- package/dist/cjs/{helpers-CcnxTxWT.js → helpers-BITAzJfi.js} +1 -1
- package/dist/cjs/{index-eD_U1Xu6.js → index-BDBT0u4l.js} +2 -2
- package/dist/cjs/{index-D-3rOTXO.js → index-CVa6JE57.js} +2 -2
- package/dist/cjs/{index-Ca9vS1Xt.js → index-CxfLS2mX.js} +11 -12
- package/dist/cjs/{index-x_dcYwA8.js → index-DODXXb_r.js} +312 -268
- package/dist/cjs/{index-COuUak1x.js → index-y0QaNtCi.js} +4 -4
- package/dist/cjs/index.cjs.js +15 -16
- package/dist/cjs/{input-shims-DhWwro6A.js → input-shims-D1Mfgd4s.js} +3 -3
- package/dist/cjs/{input.utils-BZ3JGNpc.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-Bw_73IEQ.js → ios.transition-baEy2tr4.js} +4 -4
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/{md.transition-DryAwJW5.js → md.transition-Bvc-JrM5.js} +4 -4
- package/dist/cjs/{notch-controller-E3QvLyhg.js → notch-controller-BAbqGXRi.js} +1 -1
- package/dist/cjs/{overlays-BM7JbbAs.js → overlays-DRDumz2b.js} +7 -8
- package/dist/cjs/{status-tap-Imri3Mpt.js → status-tap-Db3WeCkO.js} +3 -3
- package/dist/cjs/{swipe-back-CEykXbOe.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-BS59y2NL.js → animation-BWcUKtbn.js} +1 -1
- package/dist/esm/{button-active-CWXgfodw.js → button-active-Bxcnevju.js} +1 -1
- package/dist/esm/{config-DyoQGQna.js → config-AaTyISnm.js} +1 -1
- package/dist/esm/{data-B-ZrmfZP.js → data-GIsHsYIB.js} +1 -1
- package/dist/esm/{framework-delegate-CKVK4R5V.js → framework-delegate-DxcnWic_.js} +1 -1
- package/dist/esm/{hardware-back-button-BNotKjr5.js → hardware-back-button-DcH0BbDp.js} +1 -1
- package/dist/esm/{helpers-DLtFjGUB.js → helpers-1O4D2b7y.js} +1 -1
- package/dist/esm/{index-DZRjPyEN.js → index-B_U9CtaY.js} +308 -264
- package/dist/esm/{index-CwqLgovv.js → index-BlJTBdxG.js} +2 -2
- package/dist/esm/{index-Ba-KSZP9.js → index-CWbP1eJz.js} +2 -2
- package/dist/esm/{index--9Sw7njj.js → index-D8sncTHY.js} +4 -5
- package/dist/esm/{index-CAwGFJX6.js → index-DfBA5ztX.js} +4 -4
- package/dist/esm/index.js +11 -12
- package/dist/esm/{input-shims-DXydFLhg.js → input-shims-C3lNp93k.js} +3 -3
- package/dist/esm/{input.utils-CpDXAdvB.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-D-zBWMgu.js → ios.transition-BmXtMRXZ.js} +4 -4
- package/dist/esm/loader.js +3 -5
- package/dist/esm/{md.transition-wf0wMCW7.js → md.transition-CLI683c7.js} +4 -4
- package/dist/esm/{notch-controller-C1Cl5tHe.js → notch-controller-C5LPspO8.js} +1 -1
- package/dist/esm/{overlays-BbivuWde.js → overlays-8Y2rA-ps.js} +4 -5
- package/dist/esm/{status-tap-TV7NSBkB.js → status-tap-7t9T91bG.js} +3 -3
- package/dist/esm/{swipe-back-DD0YGgCO.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-1d4e5b16.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-Cb97fUFJ.js → p-7qk7mxdr.js} +1 -1
- package/dist/ionic/p-8957540a.entry.js +4 -0
- package/dist/ionic/{p-a5b8079e.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-b78f7994.entry.js → p-9b46b31b.entry.js} +1 -1
- package/dist/ionic/{p-Cyaipfhf.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-euYcT0Or.js → p-BhLqfMrf.js} +1 -1
- package/dist/ionic/{p-BxdKg9Ys.js → p-BmQduG8c.js} +1 -1
- package/dist/ionic/p-CL-KfWxq.js +4 -0
- package/dist/ionic/{p-Cdr8xg00.js → p-CPgXVSua.js} +1 -1
- package/dist/ionic/{p-pIwaxUVT.js → p-CRiGyYOA.js} +1 -1
- package/dist/ionic/{p-C-IwLCBH.js → p-CbI9XwwW.js} +1 -1
- package/dist/ionic/p-D-7TeYC4.js +4 -0
- package/dist/ionic/{p-CKlW5psD.js → p-DCfS5Jk_.js} +1 -1
- package/dist/ionic/{p-DeTy4sUp.js → p-DgdWETCP.js} +1 -1
- package/dist/ionic/{p-BU9IcFXd.js → p-Do-uqmtX.js} +1 -1
- package/dist/ionic/p-DzH0J0yi.js +4 -0
- package/dist/ionic/{p-DzyidlS8.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-CALG0o0g.js → p-ei_RiGrl.js} +1 -1
- package/dist/ionic/p-f83db8cd.entry.js +4 -0
- package/dist/ionic/{p-7dc66762.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 +243 -434
- package/hydrate/index.mjs +243 -434
- package/package.json +2 -2
- package/dist/cjs/app-globals-CM9gdJ6v.js +0 -10
- package/dist/cjs/ionic-global-DYBe-0e_.js +0 -151
- package/dist/esm/app-globals-BYdhRZlY.js +0 -8
- package/dist/esm/ionic-global-Iur0JYYQ.js +0 -146
- package/dist/ionic/p--MDPVtWX.js +0 -4
- package/dist/ionic/p-006bf92c.entry.js +0 -4
- package/dist/ionic/p-02dee07f.entry.js +0 -4
- package/dist/ionic/p-03971b3b.entry.js +0 -4
- package/dist/ionic/p-04ad944f.entry.js +0 -4
- package/dist/ionic/p-0509b1ce.entry.js +0 -4
- package/dist/ionic/p-072dc0e7.entry.js +0 -4
- package/dist/ionic/p-09f6c98b.entry.js +0 -4
- package/dist/ionic/p-0bdca275.entry.js +0 -4
- package/dist/ionic/p-17fe29b2.entry.js +0 -4
- package/dist/ionic/p-1a6cafeb.entry.js +0 -4
- package/dist/ionic/p-1dfcbda0.entry.js +0 -4
- package/dist/ionic/p-1i8luSQ5.js +0 -4
- package/dist/ionic/p-203f3f84.entry.js +0 -4
- package/dist/ionic/p-309ed247.entry.js +0 -4
- package/dist/ionic/p-3f6ed1d7.entry.js +0 -4
- package/dist/ionic/p-44bef346.entry.js +0 -4
- package/dist/ionic/p-4a980bde.entry.js +0 -4
- package/dist/ionic/p-55e89342.entry.js +0 -4
- package/dist/ionic/p-5a3d2189.entry.js +0 -4
- package/dist/ionic/p-6184e7ab.entry.js +0 -4
- package/dist/ionic/p-657968a3.entry.js +0 -4
- package/dist/ionic/p-6b12d15b.entry.js +0 -4
- package/dist/ionic/p-6d979e4e.entry.js +0 -4
- package/dist/ionic/p-6f192cfc.entry.js +0 -4
- package/dist/ionic/p-729ce5ad.entry.js +0 -4
- package/dist/ionic/p-729f386b.entry.js +0 -4
- package/dist/ionic/p-780a49da.entry.js +0 -4
- package/dist/ionic/p-7ffa1f9c.entry.js +0 -4
- package/dist/ionic/p-90bf6857.entry.js +0 -4
- package/dist/ionic/p-999bd58c.entry.js +0 -4
- package/dist/ionic/p-BD_0N3nC.js +0 -4
- package/dist/ionic/p-Bnx9Rq50.js +0 -4
- package/dist/ionic/p-DIcImXbc.js +0 -4
- package/dist/ionic/p-DZRjPyEN.js +0 -5
- package/dist/ionic/p-DgCUq9t_.js +0 -4
- package/dist/ionic/p-DtVLENwv.js +0 -4
- package/dist/ionic/p-GRiIJ6SF.js +0 -4
- package/dist/ionic/p-Utke9zkr.js +0 -4
- package/dist/ionic/p-a2db8ba9.entry.js +0 -4
- package/dist/ionic/p-a4cf7ee2.entry.js +0 -4
- package/dist/ionic/p-ab891812.entry.js +0 -4
- package/dist/ionic/p-ae03bb9f.entry.js +0 -4
- package/dist/ionic/p-b6797f95.entry.js +0 -4
- package/dist/ionic/p-bff7d24b.entry.js +0 -4
- package/dist/ionic/p-c7d600ae.entry.js +0 -4
- package/dist/ionic/p-cc08abac.entry.js +0 -4
- package/dist/ionic/p-cff0203e.entry.js +0 -4
- package/dist/ionic/p-d507eb67.entry.js +0 -4
- package/dist/ionic/p-e140990e.entry.js +0 -4
- package/dist/ionic/p-e845a197.entry.js +0 -4
- package/dist/ionic/p-efa554b0.entry.js +0 -4
- package/dist/ionic/p-f3511c1f.entry.js +0 -4
- package/dist/ionic/p-f6867ab8.entry.js +0 -4
- package/dist/ionic/p-f7b8ff9a.entry.js +0 -4
- package/dist/ionic/p-f8a6781d.entry.js +0 -4
- package/dist/ionic/p-f937483d.entry.js +0 -4
- package/dist/ionic/p-fff59ec4.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,11 +1711,8 @@ 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
|
-
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
1736
|
-
};
|
|
1737
|
-
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1714
|
+
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
1715
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
1738
1716
|
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1739
1717
|
try {
|
|
1740
1718
|
propValue = JSON.parse(propValue);
|
|
@@ -1748,9 +1726,7 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1748
1726
|
}
|
|
1749
1727
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1750
1728
|
if (propType & 4 /* Boolean */) {
|
|
1751
|
-
|
|
1752
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1753
|
-
}
|
|
1729
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1754
1730
|
}
|
|
1755
1731
|
if (propType & 2 /* Number */) {
|
|
1756
1732
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -1762,10 +1738,7 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1762
1738
|
}
|
|
1763
1739
|
return propValue;
|
|
1764
1740
|
};
|
|
1765
|
-
var getElement = (ref) =>
|
|
1766
|
-
var _a;
|
|
1767
|
-
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1768
|
-
};
|
|
1741
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1769
1742
|
|
|
1770
1743
|
// src/runtime/event-emitter.ts
|
|
1771
1744
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1786,6 +1759,117 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1786
1759
|
elm.dispatchEvent(ev);
|
|
1787
1760
|
return ev;
|
|
1788
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
|
+
};
|
|
1789
1873
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1790
1874
|
if (oldValue === newValue) {
|
|
1791
1875
|
return;
|
|
@@ -1796,13 +1880,12 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1796
1880
|
const classList = elm.classList;
|
|
1797
1881
|
const oldClasses = parseClassList(oldValue);
|
|
1798
1882
|
let newClasses = parseClassList(newValue);
|
|
1799
|
-
if (
|
|
1800
|
-
|
|
1801
|
-
newClasses.push(scopeId2);
|
|
1883
|
+
if (elm["s-si"] && initialRender) {
|
|
1884
|
+
newClasses.push(elm["s-si"]);
|
|
1802
1885
|
oldClasses.forEach((c) => {
|
|
1803
|
-
if (c.startsWith(
|
|
1886
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
1804
1887
|
});
|
|
1805
|
-
newClasses = [...new Set(newClasses)]
|
|
1888
|
+
newClasses = [...new Set(newClasses)];
|
|
1806
1889
|
classList.add(...newClasses);
|
|
1807
1890
|
} else {
|
|
1808
1891
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -2272,8 +2355,6 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2272
2355
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2273
2356
|
) {
|
|
2274
2357
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2275
|
-
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2276
|
-
newVNode2.$children$ = oldChildren;
|
|
2277
2358
|
}
|
|
2278
2359
|
if (isSvgMode && tag === "svg") {
|
|
2279
2360
|
isSvgMode = false;
|
|
@@ -2512,12 +2593,6 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2512
2593
|
}
|
|
2513
2594
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2514
2595
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2515
|
-
if (isInitialLoad) {
|
|
2516
|
-
queueMicrotask(() => {
|
|
2517
|
-
dispatch();
|
|
2518
|
-
});
|
|
2519
|
-
return;
|
|
2520
|
-
}
|
|
2521
2596
|
return writeTask(dispatch) ;
|
|
2522
2597
|
};
|
|
2523
2598
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2641,10 +2716,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2641
2716
|
}
|
|
2642
2717
|
};
|
|
2643
2718
|
var forceUpdate = (ref) => {
|
|
2644
|
-
var _a;
|
|
2645
2719
|
{
|
|
2646
2720
|
const hostRef = getHostRef(ref);
|
|
2647
|
-
const isConnected =
|
|
2721
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
2648
2722
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2649
2723
|
scheduleUpdate(hostRef, false);
|
|
2650
2724
|
}
|
|
@@ -2652,13 +2726,7 @@ var forceUpdate = (ref) => {
|
|
|
2652
2726
|
}
|
|
2653
2727
|
};
|
|
2654
2728
|
var appDidLoad = (who) => {
|
|
2655
|
-
var _a;
|
|
2656
2729
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2657
|
-
{
|
|
2658
|
-
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2659
|
-
plt.$orgLocNodes$.clear();
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
2730
|
};
|
|
2663
2731
|
var safeCall = (instance, method, arg, elm) => {
|
|
2664
2732
|
if (instance && instance[method]) {
|
|
@@ -2679,9 +2747,6 @@ var addHydratedFlag = (elm) => {
|
|
|
2679
2747
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2680
2748
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2681
2749
|
const hostRef = getHostRef(ref);
|
|
2682
|
-
if (!hostRef) {
|
|
2683
|
-
return;
|
|
2684
|
-
}
|
|
2685
2750
|
if (!hostRef) {
|
|
2686
2751
|
throw new Error(
|
|
2687
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).`
|
|
@@ -2691,9 +2756,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2691
2756
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2692
2757
|
const flags = hostRef.$flags$;
|
|
2693
2758
|
const instance = hostRef.$lazyInstance$ ;
|
|
2694
|
-
newVal = parsePropertyValue(
|
|
2695
|
-
newVal,
|
|
2696
|
-
cmpMeta.$members$[propName][0]);
|
|
2759
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
2697
2760
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2698
2761
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2699
2762
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2757,9 +2820,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2757
2820
|
Object.defineProperty(prototype, memberName, {
|
|
2758
2821
|
set(newValue) {
|
|
2759
2822
|
const ref = getHostRef(this);
|
|
2760
|
-
if (!ref) {
|
|
2761
|
-
return;
|
|
2762
|
-
}
|
|
2763
2823
|
if (origSetter) {
|
|
2764
2824
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2765
2825
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2767,11 +2827,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2767
2827
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2768
2828
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2769
2829
|
}
|
|
2770
|
-
origSetter.apply(this, [
|
|
2771
|
-
parsePropertyValue(
|
|
2772
|
-
newValue,
|
|
2773
|
-
memberFlags)
|
|
2774
|
-
]);
|
|
2830
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
2775
2831
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2776
2832
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2777
2833
|
return;
|
|
@@ -2793,9 +2849,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2793
2849
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2794
2850
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2795
2851
|
}
|
|
2796
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2797
|
-
newValue,
|
|
2798
|
-
memberFlags);
|
|
2852
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
2799
2853
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2800
2854
|
};
|
|
2801
2855
|
if (ref.$lazyInstance$) {
|
|
@@ -2834,7 +2888,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2834
2888
|
} else if (propName == null) {
|
|
2835
2889
|
const hostRef = getHostRef(this);
|
|
2836
2890
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2837
|
-
if (
|
|
2891
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2838
2892
|
const instance = hostRef.$lazyInstance$ ;
|
|
2839
2893
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2840
2894
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2954,9 +3008,6 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2954
3008
|
var connectedCallback = (elm) => {
|
|
2955
3009
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2956
3010
|
const hostRef = getHostRef(elm);
|
|
2957
|
-
if (!hostRef) {
|
|
2958
|
-
return;
|
|
2959
|
-
}
|
|
2960
3011
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2961
3012
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2962
3013
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -3032,7 +3083,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
3032
3083
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3033
3084
|
const hostRef = getHostRef(elm);
|
|
3034
3085
|
{
|
|
3035
|
-
if (hostRef
|
|
3086
|
+
if (hostRef.$rmListeners$) {
|
|
3036
3087
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
3037
3088
|
hostRef.$rmListeners$ = void 0;
|
|
3038
3089
|
}
|
|
@@ -3125,9 +3176,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3125
3176
|
}
|
|
3126
3177
|
connectedCallback() {
|
|
3127
3178
|
const hostRef = getHostRef(this);
|
|
3128
|
-
if (!hostRef) {
|
|
3129
|
-
return;
|
|
3130
|
-
}
|
|
3131
3179
|
if (!this.hasRegisteredEventListeners) {
|
|
3132
3180
|
this.hasRegisteredEventListeners = true;
|
|
3133
3181
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -3147,9 +3195,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3147
3195
|
plt.raf(() => {
|
|
3148
3196
|
var _a3;
|
|
3149
3197
|
const hostRef = getHostRef(this);
|
|
3150
|
-
if (!hostRef) {
|
|
3151
|
-
return;
|
|
3152
|
-
}
|
|
3153
3198
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
3154
3199
|
if (i2 > -1) {
|
|
3155
3200
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -3160,12 +3205,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3160
3205
|
});
|
|
3161
3206
|
}
|
|
3162
3207
|
componentOnReady() {
|
|
3163
|
-
|
|
3164
|
-
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
3208
|
+
return getHostRef(this).$onReadyPromise$;
|
|
3165
3209
|
}
|
|
3166
3210
|
};
|
|
3167
|
-
|
|
3168
|
-
{
|
|
3211
|
+
{
|
|
3212
|
+
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3169
3213
|
patchPseudoShadowDom(HostElement.prototype);
|
|
3170
3214
|
}
|
|
3171
3215
|
}
|
|
@@ -3259,21 +3303,21 @@ exports.H = H;
|
|
|
3259
3303
|
exports.Host = Host;
|
|
3260
3304
|
exports.bootstrapLazy = bootstrapLazy;
|
|
3261
3305
|
exports.config = config;
|
|
3262
|
-
exports.configFromSession = configFromSession;
|
|
3263
|
-
exports.configFromURL = configFromURL;
|
|
3264
3306
|
exports.createEvent = createEvent;
|
|
3265
3307
|
exports.forceUpdate = forceUpdate;
|
|
3266
3308
|
exports.getAssetPath = getAssetPath;
|
|
3267
3309
|
exports.getElement = getElement;
|
|
3268
|
-
exports.
|
|
3310
|
+
exports.getIonMode = getIonMode;
|
|
3311
|
+
exports.getPlatforms = getPlatforms;
|
|
3312
|
+
exports.globalScripts = globalScripts;
|
|
3269
3313
|
exports.h = h;
|
|
3314
|
+
exports.initialize = initialize;
|
|
3315
|
+
exports.isPlatform = isPlatform;
|
|
3270
3316
|
exports.printIonError = printIonError;
|
|
3271
3317
|
exports.printIonWarning = printIonWarning;
|
|
3272
3318
|
exports.printRequiredElementError = printRequiredElementError;
|
|
3273
3319
|
exports.promiseResolve = promiseResolve;
|
|
3274
3320
|
exports.readTask = readTask;
|
|
3275
3321
|
exports.registerInstance = registerInstance;
|
|
3276
|
-
exports.saveConfig = saveConfig;
|
|
3277
|
-
exports.setMode = setMode;
|
|
3278
3322
|
exports.setNonce = setNonce;
|
|
3279
3323
|
exports.writeTask = writeTask;
|