@ionic/core 8.7.1-nightly.20250731 → 8.7.1
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 +5 -5
- 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-0T7gKwOt.js → animation-ZJ1lAkZD.js} +1 -1
- package/dist/cjs/app-globals-77ZfuXXk.js +10 -0
- package/dist/cjs/{button-active-C-4ud7Ht.js → button-active-BzZenWWH.js} +1 -1
- package/dist/cjs/{config-U7OAuj53.js → config-CKhELRRu.js} +1 -1
- package/dist/cjs/{data-DRqa6oM4.js → data-DW6ofvJ8.js} +1 -1
- package/dist/cjs/{framework-delegate-C7sIJyT5.js → framework-delegate-WkyjrnCx.js} +1 -1
- package/dist/cjs/{hardware-back-button-D90qZxju.js → hardware-back-button-BxdNu76F.js} +1 -1
- package/dist/cjs/{helpers-BITAzJfi.js → helpers-DgwmcYAu.js} +1 -1
- package/dist/cjs/{index-y0QaNtCi.js → index-BzEyuIww.js} +4 -4
- package/dist/cjs/{index-CVa6JE57.js → index-Cc5PNMyz.js} +2 -2
- package/dist/cjs/{index-CxfLS2mX.js → index-D24wggHR.js} +12 -11
- package/dist/cjs/{index-DODXXb_r.js → index-DNh170BW.js} +274 -319
- package/dist/cjs/{index-BDBT0u4l.js → index-bGpoPC4u.js} +2 -2
- package/dist/cjs/index.cjs.js +16 -15
- package/dist/cjs/{input-shims-D1Mfgd4s.js → input-shims-CLI_OrmU.js} +3 -3
- package/dist/cjs/{input.utils-DSoBEyUu.js → input.utils-B2hZ5tX6.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +5 -4
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -9
- package/dist/cjs/ion-alert.cjs.entry.js +13 -12
- package/dist/cjs/ion-app_8.cjs.entry.js +28 -27
- package/dist/cjs/ion-avatar_3.cjs.entry.js +5 -4
- package/dist/cjs/ion-back-button.cjs.entry.js +6 -5
- package/dist/cjs/ion-backdrop.cjs.entry.js +3 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +5 -4
- package/dist/cjs/ion-button_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-card_5.cjs.entry.js +8 -7
- package/dist/cjs/ion-checkbox.cjs.entry.js +4 -3
- package/dist/cjs/ion-chip.cjs.entry.js +3 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +5 -4
- package/dist/cjs/ion-datetime-button.cjs.entry.js +5 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +13 -12
- package/dist/cjs/ion-fab_3.cjs.entry.js +6 -5
- package/dist/cjs/ion-img.cjs.entry.js +4 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +8 -7
- package/dist/cjs/ion-input-otp.cjs.entry.js +4 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +3 -2
- package/dist/cjs/ion-input.cjs.entry.js +7 -6
- package/dist/cjs/ion-item-option_3.cjs.entry.js +7 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -10
- package/dist/cjs/ion-loading.cjs.entry.js +10 -9
- package/dist/cjs/ion-menu_3.cjs.entry.js +14 -13
- package/dist/cjs/ion-modal.cjs.entry.js +16 -15
- package/dist/cjs/ion-nav_2.cjs.entry.js +8 -7
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +6 -5
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +11 -10
- package/dist/cjs/ion-progress-bar.cjs.entry.js +4 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +5 -4
- package/dist/cjs/ion-range.cjs.entry.js +5 -4
- package/dist/cjs/ion-refresher_2.cjs.entry.js +14 -13
- package/dist/cjs/ion-reorder_2.cjs.entry.js +10 -9
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +5 -4
- 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 +5 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +9 -8
- package/dist/cjs/ion-select_3.cjs.entry.js +17 -16
- package/dist/cjs/ion-spinner.cjs.entry.js +4 -3
- package/dist/cjs/ion-split-pane.cjs.entry.js +3 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +5 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +3 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +7 -6
- package/dist/cjs/ion-toast.cjs.entry.js +11 -10
- package/dist/cjs/ion-toggle.cjs.entry.js +6 -5
- package/dist/cjs/ionic-global-UI5YPSi-.js +151 -0
- package/dist/cjs/ionic.cjs.js +6 -4
- package/dist/cjs/{ios.transition-baEy2tr4.js → ios.transition-DEitrLlG.js} +4 -4
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{md.transition-Bvc-JrM5.js → md.transition-BHtGC-Wg.js} +4 -4
- package/dist/cjs/{notch-controller-BAbqGXRi.js → notch-controller-Bf5Rr4R5.js} +1 -1
- package/dist/cjs/{overlays-DRDumz2b.js → overlays-CglR7j-u.js} +8 -7
- package/dist/cjs/{status-tap-Db3WeCkO.js → status-tap-D9YPr62n.js} +3 -3
- package/dist/cjs/{swipe-back-D_VN6H9r.js → swipe-back-C1wRtoww.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +4 -4
- package/dist/docs.json +2 -2
- package/dist/esm/{animation-BWcUKtbn.js → animation-BvhAtgca.js} +1 -1
- package/dist/esm/app-globals-CvLYUxE9.js +8 -0
- package/dist/esm/{button-active-Bxcnevju.js → button-active-DBUPuLNw.js} +1 -1
- package/dist/esm/{config-AaTyISnm.js → config-Dx_6wPIJ.js} +1 -1
- package/dist/esm/{data-GIsHsYIB.js → data-CKHMWxfe.js} +1 -1
- package/dist/esm/{framework-delegate-DxcnWic_.js → framework-delegate-BLEBgH06.js} +1 -1
- package/dist/esm/{hardware-back-button-DcH0BbDp.js → hardware-back-button-Dhbd-23H.js} +1 -1
- package/dist/esm/{helpers-1O4D2b7y.js → helpers-8KSQQGQy.js} +1 -1
- package/dist/esm/{index-B_U9CtaY.js → index-4DxY6_gG.js} +270 -315
- package/dist/esm/{index-BlJTBdxG.js → index-7UbSlv7N.js} +2 -2
- package/dist/esm/{index-CWbP1eJz.js → index-C6WeRr09.js} +2 -2
- package/dist/esm/{index-D8sncTHY.js → index-CXSTcaAW.js} +5 -4
- package/dist/esm/{index-DfBA5ztX.js → index-Dp7GXH1z.js} +4 -4
- package/dist/esm/index.js +12 -11
- package/dist/esm/{input-shims-C3lNp93k.js → input-shims-C4KDnhxb.js} +3 -3
- package/dist/esm/{input.utils-zWijNCrx.js → input.utils-be4gBvVY.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +3 -2
- package/dist/esm/ion-action-sheet.entry.js +8 -7
- package/dist/esm/ion-alert.entry.js +9 -8
- package/dist/esm/ion-app_8.entry.js +12 -11
- package/dist/esm/ion-avatar_3.entry.js +2 -1
- package/dist/esm/ion-back-button.entry.js +3 -2
- package/dist/esm/ion-backdrop.entry.js +2 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +3 -2
- package/dist/esm/ion-button_2.entry.js +3 -2
- package/dist/esm/ion-card_5.entry.js +3 -2
- package/dist/esm/ion-checkbox.entry.js +3 -2
- package/dist/esm/ion-chip.entry.js +2 -1
- package/dist/esm/ion-col_3.entry.js +2 -1
- package/dist/esm/ion-datetime-button.entry.js +4 -3
- package/dist/esm/ion-datetime_3.entry.js +8 -7
- package/dist/esm/ion-fab_3.entry.js +3 -2
- package/dist/esm/ion-img.entry.js +3 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -4
- package/dist/esm/ion-input-otp.entry.js +3 -2
- package/dist/esm/ion-input-password-toggle.entry.js +2 -1
- package/dist/esm/ion-input.entry.js +5 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -3
- package/dist/esm/ion-item_8.entry.js +3 -2
- package/dist/esm/ion-loading.entry.js +8 -7
- package/dist/esm/ion-menu_3.entry.js +8 -7
- package/dist/esm/ion-modal.entry.js +9 -8
- package/dist/esm/ion-nav_2.entry.js +6 -5
- package/dist/esm/ion-picker-column-option.entry.js +3 -2
- package/dist/esm/ion-picker-column.entry.js +3 -2
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -7
- package/dist/esm/ion-progress-bar.entry.js +3 -2
- package/dist/esm/ion-radio_2.entry.js +3 -2
- package/dist/esm/ion-range.entry.js +4 -3
- package/dist/esm/ion-refresher_2.entry.js +6 -5
- package/dist/esm/ion-reorder_2.entry.js +8 -7
- package/dist/esm/ion-ripple-effect.entry.js +2 -1
- package/dist/esm/ion-route_4.entry.js +3 -2
- package/dist/esm/ion-searchbar.entry.js +3 -2
- 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 +3 -2
- package/dist/esm/ion-select-modal.entry.js +8 -7
- package/dist/esm/ion-select_3.entry.js +8 -7
- package/dist/esm/ion-spinner.entry.js +2 -1
- package/dist/esm/ion-split-pane.entry.js +2 -1
- package/dist/esm/ion-tab-bar_2.entry.js +3 -2
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -1
- package/dist/esm/ion-textarea.entry.js +5 -4
- package/dist/esm/ion-toast.entry.js +8 -7
- package/dist/esm/ion-toggle.entry.js +3 -2
- package/dist/esm/ionic-global-CTSyufhF.js +146 -0
- package/dist/esm/ionic.js +6 -4
- package/dist/esm/{ios.transition-BmXtMRXZ.js → ios.transition-eAEkgVAv.js} +4 -4
- package/dist/esm/loader.js +5 -3
- package/dist/esm/{md.transition-CLI683c7.js → md.transition-D8TeJ_Pz.js} +4 -4
- package/dist/esm/{notch-controller-C5LPspO8.js → notch-controller-lb417-kU.js} +1 -1
- package/dist/esm/{overlays-8Y2rA-ps.js → overlays-ZX_4-t_r.js} +5 -4
- package/dist/esm/{status-tap-7t9T91bG.js → status-tap-pATNXEtr.js} +3 -3
- package/dist/esm/{swipe-back-VdaUzLWy.js → swipe-back-B2YfOHRM.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0f396661.entry.js +4 -0
- package/dist/ionic/p-1191a2d9.entry.js +4 -0
- package/dist/ionic/p-1488b7cc.entry.js +4 -0
- package/dist/ionic/p-148bdf18.entry.js +4 -0
- package/dist/ionic/p-16116947.entry.js +4 -0
- package/dist/ionic/p-19f80390.entry.js +4 -0
- package/dist/ionic/p-1bbd0a23.entry.js +4 -0
- package/dist/ionic/p-1d5b934a.entry.js +4 -0
- package/dist/ionic/p-29032e49.entry.js +4 -0
- package/dist/ionic/p-2cb0f39f.entry.js +4 -0
- package/dist/ionic/p-349fc921.entry.js +4 -0
- package/dist/ionic/p-3624b640.entry.js +4 -0
- package/dist/ionic/p-36a54836.entry.js +4 -0
- package/dist/ionic/p-39ed3212.entry.js +4 -0
- package/dist/ionic/{p-73d7ad90.entry.js → p-3e426ddc.entry.js} +1 -1
- package/dist/ionic/p-40d56a51.entry.js +4 -0
- package/dist/ionic/p-4DxY6_gG.js +5 -0
- package/dist/ionic/p-4f2c5845.entry.js +4 -0
- package/dist/ionic/p-528af4e6.entry.js +4 -0
- package/dist/ionic/p-54dec9b1.entry.js +4 -0
- package/dist/ionic/p-5c976c00.entry.js +4 -0
- package/dist/ionic/p-6383afc2.entry.js +4 -0
- package/dist/ionic/p-6d26651e.entry.js +4 -0
- package/dist/ionic/p-7a53f04c.entry.js +4 -0
- package/dist/ionic/p-7bac2c5f.entry.js +4 -0
- package/dist/ionic/p-7da05504.entry.js +4 -0
- package/dist/ionic/p-8d96a0cd.entry.js +4 -0
- package/dist/ionic/p-91d6ccb0.entry.js +4 -0
- package/dist/ionic/p-92e8f208.entry.js +4 -0
- package/dist/ionic/p-982fe1c4.entry.js +4 -0
- package/dist/ionic/{p-9b46b31b.entry.js → p-9ddf2620.entry.js} +1 -1
- package/dist/ionic/p-B1xocg0A.js +4 -0
- package/dist/ionic/{p-BmQduG8c.js → p-B5MDSrGg.js} +1 -1
- package/dist/ionic/{p-CRiGyYOA.js → p-BB-JoKGB.js} +1 -1
- package/dist/ionic/{p-DCfS5Jk_.js → p-BHGXdud8.js} +1 -1
- package/dist/ionic/{p-QwEXyOze.js → p-BhNEp2QP.js} +1 -1
- package/dist/ionic/p-Br3vSlYh.js +4 -0
- package/dist/ionic/{p-Do-uqmtX.js → p-C-Cct-6D.js} +1 -1
- package/dist/ionic/p-C4I6B3uV.js +4 -0
- package/dist/ionic/p-C87oPMMF.js +4 -0
- package/dist/ionic/p-C8d2ebIg.js +4 -0
- package/dist/ionic/p-CSwZyt05.js +4 -0
- package/dist/ionic/{p-CPgXVSua.js → p-CWvl4RPO.js} +1 -1
- package/dist/ionic/p-CvaZMP6T.js +4 -0
- package/dist/ionic/{p-DgdWETCP.js → p-D2fQU_qK.js} +1 -1
- package/dist/ionic/p-DAfH9Iif.js +4 -0
- package/dist/ionic/p-DCuOL88l.js +4 -0
- package/dist/ionic/p-DJKvq7vb.js +4 -0
- package/dist/ionic/{p-7qk7mxdr.js → p-DiZPU8BH.js} +1 -1
- package/dist/ionic/p-Dm_oBkW1.js +4 -0
- package/dist/ionic/{p-CbI9XwwW.js → p-EnaLTYYj.js} +1 -1
- package/dist/ionic/{p-B1MNHTYX.js → p-LaGjiAVo.js} +1 -1
- package/dist/ionic/p-a81be128.entry.js +4 -0
- package/dist/ionic/p-ab33ef20.entry.js +4 -0
- package/dist/ionic/p-ac2be9d6.entry.js +4 -0
- package/dist/ionic/p-ac434970.entry.js +4 -0
- package/dist/ionic/p-afeb9df6.entry.js +4 -0
- package/dist/ionic/p-bc9f9032.entry.js +4 -0
- package/dist/ionic/p-bf81a468.entry.js +4 -0
- package/dist/ionic/{p-8a8ef46b.entry.js → p-c0d58c8e.entry.js} +1 -1
- package/dist/ionic/p-c5210d3e.entry.js +4 -0
- package/dist/ionic/p-c575e7ce.entry.js +4 -0
- package/dist/ionic/p-c836e1a2.entry.js +4 -0
- package/dist/ionic/p-cde6d39b.entry.js +4 -0
- package/dist/ionic/p-d04d66fc.entry.js +4 -0
- package/dist/ionic/{p-fb74fc38.entry.js → p-d3df6032.entry.js} +1 -1
- package/dist/ionic/p-dbba38cf.entry.js +4 -0
- package/dist/ionic/p-e6c465ff.entry.js +4 -0
- package/dist/ionic/p-ec76fec4.entry.js +4 -0
- package/dist/ionic/p-ee2e35a6.entry.js +4 -0
- package/dist/ionic/p-f2884bc2.entry.js +4 -0
- package/dist/ionic/p-f456d176.entry.js +4 -0
- package/dist/ionic/p-f7db572a.entry.js +4 -0
- package/dist/ionic/p-f9eb54ee.entry.js +4 -0
- package/dist/types/components/reorder-group/reorder-group.d.ts +2 -1
- package/dist/types/components/router/utils/interface.d.ts +1 -4
- package/dist/types/interface.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/dist/types/utils/element-interface.d.ts +10 -0
- package/hydrate/index.js +444 -254
- package/hydrate/index.mjs +444 -254
- package/package.json +2 -2
- package/dist/ionic/p-002c9faa.entry.js +0 -4
- package/dist/ionic/p-03d21728.entry.js +0 -4
- package/dist/ionic/p-0d131a02.entry.js +0 -4
- package/dist/ionic/p-0dbadc36.entry.js +0 -4
- package/dist/ionic/p-0fc6fc38.entry.js +0 -4
- package/dist/ionic/p-1739f5f2.entry.js +0 -4
- package/dist/ionic/p-18f1813b.entry.js +0 -4
- package/dist/ionic/p-1ee1c669.entry.js +0 -4
- package/dist/ionic/p-2da6a16b.entry.js +0 -4
- package/dist/ionic/p-2dca6aac.entry.js +0 -4
- package/dist/ionic/p-35c4a63f.entry.js +0 -4
- package/dist/ionic/p-3c855fa9.entry.js +0 -4
- package/dist/ionic/p-4b7d1f35.entry.js +0 -4
- package/dist/ionic/p-4d61f20b.entry.js +0 -4
- package/dist/ionic/p-5312de45.entry.js +0 -4
- package/dist/ionic/p-5859c343.entry.js +0 -4
- package/dist/ionic/p-5f671887.entry.js +0 -4
- package/dist/ionic/p-69f91268.entry.js +0 -4
- package/dist/ionic/p-7134656b.entry.js +0 -4
- package/dist/ionic/p-80661108.entry.js +0 -4
- package/dist/ionic/p-8205cc46.entry.js +0 -4
- package/dist/ionic/p-8957540a.entry.js +0 -4
- package/dist/ionic/p-8c674371.entry.js +0 -4
- package/dist/ionic/p-8f2f76e0.entry.js +0 -4
- package/dist/ionic/p-97667b9c.entry.js +0 -4
- package/dist/ionic/p-99774467.entry.js +0 -4
- package/dist/ionic/p-B3XSxWNQ.js +0 -4
- package/dist/ionic/p-BROiNJRB.js +0 -4
- package/dist/ionic/p-B_U9CtaY.js +0 -5
- package/dist/ionic/p-BhLqfMrf.js +0 -4
- package/dist/ionic/p-CL-KfWxq.js +0 -4
- package/dist/ionic/p-D-7TeYC4.js +0 -4
- package/dist/ionic/p-DzH0J0yi.js +0 -4
- package/dist/ionic/p-a6282370.entry.js +0 -4
- package/dist/ionic/p-a92bfa13.entry.js +0 -4
- package/dist/ionic/p-a9ac80bd.entry.js +0 -4
- package/dist/ionic/p-aIxOGKys.js +0 -4
- package/dist/ionic/p-aa8956c2.entry.js +0 -4
- package/dist/ionic/p-bNmY-WfR.js +0 -4
- package/dist/ionic/p-bc01c127.entry.js +0 -4
- package/dist/ionic/p-be241bf3.entry.js +0 -4
- package/dist/ionic/p-c0335397.entry.js +0 -4
- package/dist/ionic/p-c4912ca5.entry.js +0 -4
- package/dist/ionic/p-c768da1d.entry.js +0 -4
- package/dist/ionic/p-d47b85ea.entry.js +0 -4
- package/dist/ionic/p-d8429eb4.entry.js +0 -4
- package/dist/ionic/p-d8ed5df0.entry.js +0 -4
- package/dist/ionic/p-e107e3b2.entry.js +0 -4
- package/dist/ionic/p-e1260ed5.entry.js +0 -4
- package/dist/ionic/p-e37d6c67.entry.js +0 -4
- package/dist/ionic/p-ec29fd07.entry.js +0 -4
- package/dist/ionic/p-ei_RiGrl.js +0 -4
- package/dist/ionic/p-f0fa9af1.entry.js +0 -4
- package/dist/ionic/p-f48ec2e0.entry.js +0 -4
- package/dist/ionic/p-f6be584a.entry.js +0 -4
- package/dist/ionic/p-f83db8cd.entry.js +0 -4
- package/dist/ionic/p-fbc5481b.entry.js +0 -4
- package/dist/ionic/p-fcc7437b.entry.js +0 -4
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +0 -143
|
@@ -123,151 +123,8 @@ 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
|
-
|
|
269
126
|
/*
|
|
270
|
-
Stencil Client Platform v4.
|
|
127
|
+
Stencil Client Platform v4.36.2 | MIT Licensed | https://stenciljs.com
|
|
271
128
|
*/
|
|
272
129
|
var __defProp = Object.defineProperty;
|
|
273
130
|
var __export = (target, all) => {
|
|
@@ -425,6 +282,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
425
282
|
}
|
|
426
283
|
return false;
|
|
427
284
|
})() ;
|
|
285
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
428
286
|
var queuePending = false;
|
|
429
287
|
var queueDomReads = [];
|
|
430
288
|
var queueDomWrites = [];
|
|
@@ -637,15 +495,27 @@ function deserializeProperty(value) {
|
|
|
637
495
|
}
|
|
638
496
|
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
639
497
|
}
|
|
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;
|
|
640
506
|
function createShadowRoot(cmpMeta) {
|
|
507
|
+
var _a;
|
|
641
508
|
const shadowRoot = this.attachShadow({
|
|
642
509
|
mode: "open",
|
|
643
510
|
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
644
511
|
}) ;
|
|
645
|
-
if (
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
512
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
513
|
+
if (globalStyleSheet) {
|
|
514
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
515
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
516
|
+
} else {
|
|
517
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
518
|
+
}
|
|
649
519
|
}
|
|
650
520
|
}
|
|
651
521
|
var updateFallbackSlotVisibility = (elm) => {
|
|
@@ -753,7 +623,7 @@ function patchSlotNode(node) {
|
|
|
753
623
|
const slotName = this["s-sn"];
|
|
754
624
|
if (opts == null ? void 0 : opts.flatten) {
|
|
755
625
|
console.error(`
|
|
756
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
626
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
757
627
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
758
628
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
759
629
|
`);
|
|
@@ -1140,6 +1010,9 @@ var validNodesPatches = [
|
|
|
1140
1010
|
"parentNode"
|
|
1141
1011
|
];
|
|
1142
1012
|
function patchHostOriginalAccessor(accessorName, node) {
|
|
1013
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1143
1016
|
let accessor;
|
|
1144
1017
|
if (validElementPatches.includes(accessorName)) {
|
|
1145
1018
|
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
@@ -1175,6 +1048,125 @@ var uniqueTime = (key, measureText) => {
|
|
|
1175
1048
|
};
|
|
1176
1049
|
}
|
|
1177
1050
|
};
|
|
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
|
+
};
|
|
1178
1170
|
var h = (nodeName, vnodeData, ...children) => {
|
|
1179
1171
|
let child = null;
|
|
1180
1172
|
let key = null;
|
|
@@ -1289,7 +1281,7 @@ var convertToPrivate = (node) => {
|
|
|
1289
1281
|
|
|
1290
1282
|
// src/runtime/client-hydrate.ts
|
|
1291
1283
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1292
|
-
var _a;
|
|
1284
|
+
var _a, _b, _c;
|
|
1293
1285
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1294
1286
|
const shadowRoot = hostElm.shadowRoot;
|
|
1295
1287
|
const childRenderNodes = [];
|
|
@@ -1300,15 +1292,17 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1300
1292
|
vnode.$elm$ = hostElm;
|
|
1301
1293
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
1302
1294
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
1303
|
-
var
|
|
1295
|
+
var _b2;
|
|
1304
1296
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
1305
1297
|
return;
|
|
1306
1298
|
}
|
|
1307
1299
|
const attributeName = metaAttributeName || memberName;
|
|
1308
1300
|
const attrVal = hostElm.getAttribute(attributeName);
|
|
1309
1301
|
if (attrVal !== null) {
|
|
1310
|
-
const attrPropVal = parsePropertyValue(
|
|
1311
|
-
|
|
1302
|
+
const attrPropVal = parsePropertyValue(
|
|
1303
|
+
attrVal,
|
|
1304
|
+
memberFlags);
|
|
1305
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
1312
1306
|
}
|
|
1313
1307
|
});
|
|
1314
1308
|
let scopeId2;
|
|
@@ -1349,6 +1343,18 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1349
1343
|
if (childRenderNode.$tag$ === "slot") {
|
|
1350
1344
|
node["s-cr"] = hostElm["s-cr"];
|
|
1351
1345
|
}
|
|
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
|
+
}
|
|
1352
1358
|
}
|
|
1353
1359
|
if (childRenderNode.$tag$ === "slot") {
|
|
1354
1360
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1364,7 +1370,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1364
1370
|
}
|
|
1365
1371
|
}
|
|
1366
1372
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1367
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1373
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1368
1374
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1369
1375
|
}
|
|
1370
1376
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1372,7 +1378,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1372
1378
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1373
1379
|
}
|
|
1374
1380
|
}
|
|
1375
|
-
|
|
1381
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1382
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1383
|
+
}
|
|
1376
1384
|
}
|
|
1377
1385
|
const hosts = [];
|
|
1378
1386
|
const snLen = slottedNodes.length;
|
|
@@ -1393,21 +1401,26 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1393
1401
|
}
|
|
1394
1402
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1395
1403
|
const hostEle = hosts[slottedItem.hostId];
|
|
1404
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1405
|
+
hostEle.appendChild(slottedItem.node);
|
|
1406
|
+
}
|
|
1396
1407
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1397
|
-
slottedItem.slot["s-cr"]
|
|
1398
|
-
|
|
1399
|
-
slottedItem.slot["s-cr"]
|
|
1400
|
-
|
|
1401
|
-
|
|
1408
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1409
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1410
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1411
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1412
|
+
} else {
|
|
1413
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1414
|
+
}
|
|
1402
1415
|
}
|
|
1403
1416
|
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
|
+
}
|
|
1404
1420
|
{
|
|
1405
1421
|
patchSlottedNode(slottedItem.node);
|
|
1406
1422
|
}
|
|
1407
1423
|
}
|
|
1408
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1409
|
-
hostEle.appendChild(slottedItem.node);
|
|
1410
|
-
}
|
|
1411
1424
|
}
|
|
1412
1425
|
}
|
|
1413
1426
|
if (scopeId2 && slotNodes.length) {
|
|
@@ -1415,25 +1428,27 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1415
1428
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1416
1429
|
});
|
|
1417
1430
|
}
|
|
1418
|
-
if (shadowRoot
|
|
1431
|
+
if (shadowRoot) {
|
|
1419
1432
|
let rnIdex = 0;
|
|
1420
1433
|
const rnLen = shadowRootNodes.length;
|
|
1421
1434
|
if (rnLen) {
|
|
1422
1435
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1423
|
-
|
|
1436
|
+
const node = shadowRootNodes[rnIdex];
|
|
1437
|
+
if (node) {
|
|
1438
|
+
shadowRoot.appendChild(node);
|
|
1439
|
+
}
|
|
1424
1440
|
}
|
|
1425
1441
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1426
|
-
if (typeof node["s-sn"] !== "string") {
|
|
1442
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1427
1443
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1428
1444
|
node.removeAttribute("hidden");
|
|
1429
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1445
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1430
1446
|
node.parentNode.removeChild(node);
|
|
1431
1447
|
}
|
|
1432
1448
|
}
|
|
1433
1449
|
});
|
|
1434
1450
|
}
|
|
1435
1451
|
}
|
|
1436
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1437
1452
|
hostRef.$hostElement$ = hostElm;
|
|
1438
1453
|
endHydrate();
|
|
1439
1454
|
};
|
|
@@ -1465,7 +1480,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1465
1480
|
if (!parentVNode.$children$) {
|
|
1466
1481
|
parentVNode.$children$ = [];
|
|
1467
1482
|
}
|
|
1468
|
-
if (scopeId2) {
|
|
1483
|
+
if (scopeId2 && childIdSplt[0] === hostId) {
|
|
1469
1484
|
node["s-si"] = scopeId2;
|
|
1470
1485
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
1471
1486
|
}
|
|
@@ -1595,7 +1610,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1595
1610
|
vnode.$index$ = "0";
|
|
1596
1611
|
parentVNode.$children$ = [vnode];
|
|
1597
1612
|
} else {
|
|
1598
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1613
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
1599
1614
|
node.remove();
|
|
1600
1615
|
}
|
|
1601
1616
|
}
|
|
@@ -1653,10 +1668,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1653
1668
|
if (childVNode.$name$) {
|
|
1654
1669
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
1655
1670
|
}
|
|
1656
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1657
|
-
parentVNode.$elm
|
|
1671
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1672
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1658
1673
|
} else {
|
|
1659
|
-
node
|
|
1674
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1660
1675
|
}
|
|
1661
1676
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1662
1677
|
node.remove();
|
|
@@ -1671,8 +1686,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1671
1686
|
if (shouldMove) {
|
|
1672
1687
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1673
1688
|
}
|
|
1674
|
-
childRenderNodes.push(childVNode);
|
|
1675
1689
|
}
|
|
1690
|
+
childRenderNodes.push(childVNode);
|
|
1676
1691
|
slotNodes.push(childVNode);
|
|
1677
1692
|
if (!parentVNode.$children$) {
|
|
1678
1693
|
parentVNode.$children$ = [];
|
|
@@ -1680,13 +1695,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1680
1695
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1681
1696
|
}
|
|
1682
1697
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1698
|
+
var _a, _b;
|
|
1683
1699
|
let slottedNode = slotNode.nextSibling;
|
|
1684
1700
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1701
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1702
|
+
do {
|
|
1703
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1704
|
+
slottedNode["s-sn"] = slotName;
|
|
1705
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1706
|
+
}
|
|
1707
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1708
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1690
1709
|
};
|
|
1691
1710
|
var findCorrespondingNode = (node, type) => {
|
|
1692
1711
|
let sibling = node;
|
|
@@ -1711,22 +1730,26 @@ createSupportsRuleRe(":host-context");
|
|
|
1711
1730
|
// src/runtime/mode.ts
|
|
1712
1731
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
1713
1732
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
1714
|
-
var getMode = (ref) =>
|
|
1715
|
-
var
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
return propValue;
|
|
1720
|
-
} catch (e) {
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1733
|
+
var getMode = (ref) => {
|
|
1734
|
+
var _a;
|
|
1735
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
1736
|
+
};
|
|
1737
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1723
1738
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1724
1739
|
propValue = deserializeProperty(propValue);
|
|
1725
1740
|
return propValue;
|
|
1726
1741
|
}
|
|
1742
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1743
|
+
try {
|
|
1744
|
+
return JSON.parse(propValue);
|
|
1745
|
+
} catch (e) {
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1727
1748
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1728
1749
|
if (propType & 4 /* Boolean */) {
|
|
1729
|
-
|
|
1750
|
+
{
|
|
1751
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1752
|
+
}
|
|
1730
1753
|
}
|
|
1731
1754
|
if (propType & 2 /* Number */) {
|
|
1732
1755
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -1738,7 +1761,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
1738
1761
|
}
|
|
1739
1762
|
return propValue;
|
|
1740
1763
|
};
|
|
1741
|
-
var getElement = (ref) =>
|
|
1764
|
+
var getElement = (ref) => {
|
|
1765
|
+
var _a;
|
|
1766
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1767
|
+
};
|
|
1742
1768
|
|
|
1743
1769
|
// src/runtime/event-emitter.ts
|
|
1744
1770
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1759,117 +1785,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1759
1785
|
elm.dispatchEvent(ev);
|
|
1760
1786
|
return ev;
|
|
1761
1787
|
};
|
|
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
|
-
};
|
|
1873
1788
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1874
1789
|
if (oldValue === newValue) {
|
|
1875
1790
|
return;
|
|
@@ -1880,12 +1795,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1880
1795
|
const classList = elm.classList;
|
|
1881
1796
|
const oldClasses = parseClassList(oldValue);
|
|
1882
1797
|
let newClasses = parseClassList(newValue);
|
|
1883
|
-
if (elm["s-si"] && initialRender) {
|
|
1884
|
-
|
|
1798
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1799
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1800
|
+
newClasses.push(scopeId2);
|
|
1885
1801
|
oldClasses.forEach((c) => {
|
|
1886
|
-
if (c.startsWith(
|
|
1802
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1887
1803
|
});
|
|
1888
|
-
newClasses = [...new Set(newClasses)];
|
|
1804
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1889
1805
|
classList.add(...newClasses);
|
|
1890
1806
|
} else {
|
|
1891
1807
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -2355,6 +2271,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2355
2271
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2356
2272
|
) {
|
|
2357
2273
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2274
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2275
|
+
newVNode2.$children$ = oldChildren;
|
|
2358
2276
|
}
|
|
2359
2277
|
if (isSvgMode && tag === "svg") {
|
|
2360
2278
|
isSvgMode = false;
|
|
@@ -2593,6 +2511,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2593
2511
|
}
|
|
2594
2512
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2595
2513
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2514
|
+
if (isInitialLoad) {
|
|
2515
|
+
queueMicrotask(() => {
|
|
2516
|
+
dispatch();
|
|
2517
|
+
});
|
|
2518
|
+
return;
|
|
2519
|
+
}
|
|
2596
2520
|
return writeTask(dispatch) ;
|
|
2597
2521
|
};
|
|
2598
2522
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2716,9 +2640,10 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2716
2640
|
}
|
|
2717
2641
|
};
|
|
2718
2642
|
var forceUpdate = (ref) => {
|
|
2643
|
+
var _a;
|
|
2719
2644
|
{
|
|
2720
2645
|
const hostRef = getHostRef(ref);
|
|
2721
|
-
const isConnected = hostRef.$hostElement
|
|
2646
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
2722
2647
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2723
2648
|
scheduleUpdate(hostRef, false);
|
|
2724
2649
|
}
|
|
@@ -2726,7 +2651,13 @@ var forceUpdate = (ref) => {
|
|
|
2726
2651
|
}
|
|
2727
2652
|
};
|
|
2728
2653
|
var appDidLoad = (who) => {
|
|
2654
|
+
var _a;
|
|
2729
2655
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2656
|
+
{
|
|
2657
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2658
|
+
plt.$orgLocNodes$.clear();
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2730
2661
|
};
|
|
2731
2662
|
var safeCall = (instance, method, arg, elm) => {
|
|
2732
2663
|
if (instance && instance[method]) {
|
|
@@ -2747,6 +2678,9 @@ var addHydratedFlag = (elm) => {
|
|
|
2747
2678
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2748
2679
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2749
2680
|
const hostRef = getHostRef(ref);
|
|
2681
|
+
if (!hostRef) {
|
|
2682
|
+
return;
|
|
2683
|
+
}
|
|
2750
2684
|
if (!hostRef) {
|
|
2751
2685
|
throw new Error(
|
|
2752
2686
|
`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).`
|
|
@@ -2756,7 +2690,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2756
2690
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2757
2691
|
const flags = hostRef.$flags$;
|
|
2758
2692
|
const instance = hostRef.$lazyInstance$ ;
|
|
2759
|
-
newVal = parsePropertyValue(
|
|
2693
|
+
newVal = parsePropertyValue(
|
|
2694
|
+
newVal,
|
|
2695
|
+
cmpMeta.$members$[propName][0]);
|
|
2760
2696
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2761
2697
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2762
2698
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2820,6 +2756,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2820
2756
|
Object.defineProperty(prototype, memberName, {
|
|
2821
2757
|
set(newValue) {
|
|
2822
2758
|
const ref = getHostRef(this);
|
|
2759
|
+
if (!ref) {
|
|
2760
|
+
return;
|
|
2761
|
+
}
|
|
2823
2762
|
if (origSetter) {
|
|
2824
2763
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2825
2764
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2827,7 +2766,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2827
2766
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2828
2767
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2829
2768
|
}
|
|
2830
|
-
origSetter.apply(this, [
|
|
2769
|
+
origSetter.apply(this, [
|
|
2770
|
+
parsePropertyValue(
|
|
2771
|
+
newValue,
|
|
2772
|
+
memberFlags)
|
|
2773
|
+
]);
|
|
2831
2774
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2832
2775
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2833
2776
|
return;
|
|
@@ -2849,7 +2792,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2849
2792
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2850
2793
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2851
2794
|
}
|
|
2852
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2795
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2796
|
+
newValue,
|
|
2797
|
+
memberFlags);
|
|
2853
2798
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2854
2799
|
};
|
|
2855
2800
|
if (ref.$lazyInstance$) {
|
|
@@ -2888,7 +2833,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2888
2833
|
} else if (propName == null) {
|
|
2889
2834
|
const hostRef = getHostRef(this);
|
|
2890
2835
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2891
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2836
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2892
2837
|
const instance = hostRef.$lazyInstance$ ;
|
|
2893
2838
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2894
2839
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -3008,6 +2953,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
3008
2953
|
var connectedCallback = (elm) => {
|
|
3009
2954
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3010
2955
|
const hostRef = getHostRef(elm);
|
|
2956
|
+
if (!hostRef) {
|
|
2957
|
+
return;
|
|
2958
|
+
}
|
|
3011
2959
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
3012
2960
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
3013
2961
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -3083,7 +3031,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
3083
3031
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3084
3032
|
const hostRef = getHostRef(elm);
|
|
3085
3033
|
{
|
|
3086
|
-
if (hostRef.$rmListeners$) {
|
|
3034
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
3087
3035
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
3088
3036
|
hostRef.$rmListeners$ = void 0;
|
|
3089
3037
|
}
|
|
@@ -3176,6 +3124,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3176
3124
|
}
|
|
3177
3125
|
connectedCallback() {
|
|
3178
3126
|
const hostRef = getHostRef(this);
|
|
3127
|
+
if (!hostRef) {
|
|
3128
|
+
return;
|
|
3129
|
+
}
|
|
3179
3130
|
if (!this.hasRegisteredEventListeners) {
|
|
3180
3131
|
this.hasRegisteredEventListeners = true;
|
|
3181
3132
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -3195,6 +3146,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3195
3146
|
plt.raf(() => {
|
|
3196
3147
|
var _a3;
|
|
3197
3148
|
const hostRef = getHostRef(this);
|
|
3149
|
+
if (!hostRef) {
|
|
3150
|
+
return;
|
|
3151
|
+
}
|
|
3198
3152
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
3199
3153
|
if (i2 > -1) {
|
|
3200
3154
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -3205,11 +3159,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3205
3159
|
});
|
|
3206
3160
|
}
|
|
3207
3161
|
componentOnReady() {
|
|
3208
|
-
|
|
3162
|
+
var _a3;
|
|
3163
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
3209
3164
|
}
|
|
3210
3165
|
};
|
|
3211
|
-
{
|
|
3212
|
-
|
|
3166
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasRenderFn */) {
|
|
3167
|
+
{
|
|
3213
3168
|
patchPseudoShadowDom(HostElement.prototype);
|
|
3214
3169
|
}
|
|
3215
3170
|
}
|
|
@@ -3303,21 +3258,21 @@ exports.H = H;
|
|
|
3303
3258
|
exports.Host = Host;
|
|
3304
3259
|
exports.bootstrapLazy = bootstrapLazy;
|
|
3305
3260
|
exports.config = config;
|
|
3261
|
+
exports.configFromSession = configFromSession;
|
|
3262
|
+
exports.configFromURL = configFromURL;
|
|
3306
3263
|
exports.createEvent = createEvent;
|
|
3307
3264
|
exports.forceUpdate = forceUpdate;
|
|
3308
3265
|
exports.getAssetPath = getAssetPath;
|
|
3309
3266
|
exports.getElement = getElement;
|
|
3310
|
-
exports.
|
|
3311
|
-
exports.getPlatforms = getPlatforms;
|
|
3312
|
-
exports.globalScripts = globalScripts;
|
|
3267
|
+
exports.getMode = getMode;
|
|
3313
3268
|
exports.h = h;
|
|
3314
|
-
exports.initialize = initialize;
|
|
3315
|
-
exports.isPlatform = isPlatform;
|
|
3316
3269
|
exports.printIonError = printIonError;
|
|
3317
3270
|
exports.printIonWarning = printIonWarning;
|
|
3318
3271
|
exports.printRequiredElementError = printRequiredElementError;
|
|
3319
3272
|
exports.promiseResolve = promiseResolve;
|
|
3320
3273
|
exports.readTask = readTask;
|
|
3321
3274
|
exports.registerInstance = registerInstance;
|
|
3275
|
+
exports.saveConfig = saveConfig;
|
|
3276
|
+
exports.setMode = setMode;
|
|
3322
3277
|
exports.setNonce = setNonce;
|
|
3323
3278
|
exports.writeTask = writeTask;
|