@ionic/core 8.5.4-dev.11744646756.1244bf71 → 8.5.4-dev.11744657992.1bb14c4f
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 +23 -37
- package/components/alert.js +25 -41
- package/components/animation.js +1 -1
- package/components/backdrop.js +4 -11
- package/components/button-active.js +1 -1
- package/components/button.js +23 -29
- package/components/buttons.js +4 -14
- package/components/capacitor.js +1 -1
- package/components/checkbox.js +16 -40
- package/components/content.js +5 -24
- package/components/data.js +5 -30
- package/components/gesture-controller.js +1 -1
- package/components/haptic.js +1 -1
- package/components/hardware-back-button.js +1 -1
- package/components/header.js +7 -12
- package/components/helpers.js +5 -2
- package/components/icon.js +2 -1
- package/components/index3.js +5 -3
- package/components/index4.js +1 -1
- package/components/index5.js +3 -28
- package/components/index7.js +27 -163
- package/components/index8.js +1 -1
- package/components/index9.js +163 -3
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +1 -1
- package/components/ion-accordion-group.js +6 -19
- package/components/ion-accordion.js +14 -32
- package/components/ion-app.js +4 -3
- package/components/ion-avatar.js +4 -2
- package/components/ion-back-button.js +13 -12
- package/components/ion-badge.js +5 -2
- package/components/ion-breadcrumb.js +20 -22
- package/components/ion-breadcrumbs.js +10 -14
- package/components/ion-card-content.js +4 -2
- package/components/ion-card-header.js +5 -7
- package/components/ion-card-subtitle.js +5 -2
- package/components/ion-card-title.js +5 -2
- package/components/ion-card.js +11 -16
- package/components/ion-chip.js +5 -8
- package/components/ion-col.js +26 -1
- package/components/ion-datetime-button.js +13 -15
- package/components/ion-datetime.js +81 -196
- package/components/ion-fab-button.js +20 -37
- package/components/ion-fab-list.js +2 -7
- package/components/ion-fab.js +4 -10
- package/components/ion-footer.js +8 -13
- package/components/ion-grid.js +2 -4
- package/components/ion-img.js +6 -1
- package/components/ion-infinite-scroll-content.js +6 -2
- package/components/ion-infinite-scroll.js +6 -27
- package/components/ion-input-password-toggle.js +9 -7
- package/components/ion-input.js +44 -72
- package/components/ion-item-divider.js +5 -9
- package/components/ion-item-group.js +4 -2
- package/components/ion-item-option.js +12 -14
- package/components/ion-item-options.js +4 -6
- package/components/ion-item-sliding.js +2 -4
- package/components/ion-loading.js +19 -36
- package/components/ion-menu-button.js +10 -15
- package/components/ion-menu-toggle.js +5 -9
- package/components/ion-menu.js +9 -25
- package/components/ion-nav-link.js +6 -6
- package/components/ion-nav.js +10 -7
- package/components/ion-note.js +5 -2
- package/components/ion-picker-legacy.js +24 -44
- package/components/ion-progress-bar.js +6 -19
- package/components/ion-range.js +25 -65
- package/components/ion-refresher-content.js +5 -1
- package/components/ion-refresher.js +6 -54
- package/components/ion-reorder-group.js +4 -6
- package/components/ion-reorder.js +5 -3
- package/components/ion-route-redirect.js +2 -0
- package/components/ion-route.js +7 -9
- package/components/ion-router-link.js +9 -7
- package/components/ion-router-outlet.js +8 -10
- package/components/ion-router.js +0 -18
- package/components/ion-row.js +2 -1
- package/components/ion-searchbar.js +29 -78
- package/components/ion-segment-button.js +10 -19
- package/components/ion-segment-content.js +2 -1
- package/components/ion-segment-view.js +5 -5
- package/components/ion-segment.js +11 -22
- package/components/ion-select-option.js +3 -4
- package/components/ion-select.js +41 -61
- package/components/ion-skeleton-text.js +2 -4
- package/components/ion-split-pane.js +5 -10
- package/components/ion-tab-bar.js +6 -7
- package/components/ion-tab-button.js +12 -10
- package/components/ion-tab.js +5 -2
- package/components/ion-tabs.js +4 -3
- package/components/ion-text.js +3 -1
- package/components/ion-textarea.js +36 -64
- package/components/ion-thumbnail.js +2 -1
- package/components/ion-toast.js +32 -55
- package/components/ion-toggle.js +24 -55
- package/components/item.js +14 -20
- package/components/keyboard-controller.js +2 -2
- package/components/keyboard.js +69 -134
- package/components/keyboard2.js +134 -69
- package/components/label.js +6 -2
- package/components/list-header.js +6 -2
- package/components/list.js +5 -5
- package/components/modal.js +39 -117
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +2 -2
- package/components/picker-column-option.js +5 -18
- package/components/picker-column.js +10 -25
- package/components/picker-column2.js +8 -5
- package/components/picker.js +4 -2
- package/components/popover.js +37 -129
- package/components/radio-group.js +10 -10
- package/components/radio.js +13 -27
- package/components/refresher.utils.js +2 -2
- package/components/ripple-effect.js +2 -10
- package/components/select-modal.js +8 -3
- package/components/select-popover.js +8 -5
- package/components/spinner.js +5 -4
- package/components/swipe-back.js +1 -1
- package/components/title.js +6 -2
- package/components/toolbar.js +5 -2
- package/css/global.bundle.css +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/structure.css +1 -1
- package/css/structure.css.map +1 -1
- package/dist/cjs/{animation-Bz5ImL40.js → animation-b4fdf128.js} +1 -1
- package/dist/cjs/{app-globals-CSpnImi2.js → app-globals-dd592863.js} +1 -1
- package/dist/cjs/{button-active-BzpKQ5zN.js → button-active-43e2b419.js} +3 -3
- package/dist/cjs/{capacitor-DmA66EwP.js → capacitor-c04564bf.js} +1 -1
- package/dist/cjs/{data-BQSLLJwc.js → data-27cc2c9c.js} +5 -30
- package/dist/cjs/{framework-delegate-B0-bTZ_Y.js → framework-delegate-50a86d56.js} +1 -1
- package/dist/cjs/{gesture-controller-dtqlP_q4.js → gesture-controller-9436f482.js} +1 -1
- package/dist/cjs/{haptic-ClPPQ_PS.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/{hardware-back-button-B0yu2YGK.js → hardware-back-button-5a99001f.js} +3 -3
- package/dist/cjs/{helpers-CLmZlPvl.js → helpers-3a248559.js} +4 -1
- package/dist/cjs/{index-CPbAsnJK.js → index-073c7cdc.js} +0 -1
- package/dist/cjs/{index-qOuhvt-6.js → index-2e236a04.js} +668 -1392
- package/dist/cjs/{index-D7kGM2E_.js → index-48b2a28e.js} +1 -1
- package/dist/cjs/{index-BjVGGb_k.js → index-4b70187a.js} +9 -9
- package/dist/cjs/{index-3N0K8CTt.js → index-509ca0d3.js} +3 -3
- package/dist/cjs/{index-B4SdCKIQ.js → index-e36bd277.js} +2 -2
- package/dist/cjs/{index-04WNNW0S.js → index-e630fd95.js} +6 -6
- package/dist/cjs/{index-CAvQ7Tka.js → index-ee07ed59.js} +4 -3
- package/dist/cjs/index.cjs.js +20 -18
- package/dist/cjs/{input-shims-B23RZ_yw.js → input-shims-22a9973f.js} +8 -8
- package/dist/cjs/{input.utils-BvrpMdKU.js → input.utils-e82b8ed0.js} +3 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +25 -54
- package/dist/cjs/ion-action-sheet.cjs.entry.js +38 -50
- package/dist/cjs/ion-alert.cjs.entry.js +41 -55
- package/dist/cjs/ion-app_8.cjs.entry.js +65 -96
- package/dist/cjs/ion-avatar_3.cjs.entry.js +16 -8
- package/dist/cjs/ion-back-button.cjs.entry.js +18 -15
- package/dist/cjs/ion-backdrop.cjs.entry.js +8 -13
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +34 -38
- package/dist/cjs/ion-button_2.cjs.entry.js +30 -33
- package/dist/cjs/ion-card_5.cjs.entry.js +35 -32
- package/dist/cjs/ion-checkbox.cjs.entry.js +22 -44
- package/dist/cjs/ion-chip.cjs.entry.js +10 -11
- package/dist/cjs/ion-col_3.cjs.entry.js +34 -8
- package/dist/cjs/ion-datetime-button.cjs.entry.js +20 -20
- package/dist/cjs/ion-datetime_3.cjs.entry.js +122 -251
- package/dist/cjs/ion-fab_3.cjs.entry.js +31 -57
- package/dist/cjs/ion-img.cjs.entry.js +11 -4
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +20 -35
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +15 -11
- package/dist/cjs/ion-input.cjs.entry.js +53 -79
- package/dist/cjs/ion-item-option_3.cjs.entry.js +28 -32
- package/dist/cjs/ion-item_8.cjs.entry.js +52 -49
- package/dist/cjs/ion-loading.cjs.entry.js +31 -46
- package/dist/cjs/ion-menu_3.cjs.entry.js +39 -62
- package/dist/cjs/ion-modal.cjs.entry.js +52 -128
- package/dist/cjs/ion-nav_2.cjs.entry.js +22 -17
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +11 -22
- package/dist/cjs/ion-picker-column.cjs.entry.js +17 -30
- package/dist/cjs/ion-picker.cjs.entry.js +8 -4
- package/dist/cjs/ion-popover.cjs.entry.js +47 -137
- package/dist/cjs/ion-progress-bar.cjs.entry.js +11 -22
- package/dist/cjs/ion-radio_2.cjs.entry.js +30 -42
- package/dist/cjs/ion-range.cjs.entry.js +33 -71
- package/dist/cjs/ion-refresher_2.cjs.entry.js +26 -68
- package/dist/cjs/ion-reorder_2.cjs.entry.js +19 -17
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +6 -12
- package/dist/cjs/ion-route_4.cjs.entry.js +20 -34
- package/dist/cjs/ion-searchbar.cjs.entry.js +36 -83
- package/dist/cjs/ion-segment-content.cjs.entry.js +5 -2
- package/dist/cjs/ion-segment-view.cjs.entry.js +8 -6
- package/dist/cjs/ion-segment_2.cjs.entry.js +29 -47
- package/dist/cjs/ion-select-modal.cjs.entry.js +20 -13
- package/dist/cjs/ion-select_3.cjs.entry.js +65 -82
- package/dist/cjs/ion-spinner.cjs.entry.js +11 -8
- package/dist/cjs/ion-split-pane.cjs.entry.js +9 -12
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +28 -25
- package/dist/cjs/ion-tab_2.cjs.entry.js +14 -8
- package/dist/cjs/ion-text.cjs.entry.js +8 -4
- package/dist/cjs/ion-textarea.cjs.entry.js +45 -71
- package/dist/cjs/ion-toast.cjs.entry.js +44 -65
- package/dist/cjs/ion-toggle.cjs.entry.js +34 -63
- package/dist/cjs/{ionic-global-D0fKFhpt.js → ionic-global-acb665ad.js} +1 -1
- package/dist/cjs/ionic.cjs.js +8 -8
- package/dist/cjs/{ios.transition-Cyrk-CkT.js → ios.transition-ae7afca9.js} +7 -7
- package/dist/cjs/{keyboard-UuAS4D_9.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-hHzlEQpk.js → keyboard-af1bb365.js} +3 -3
- package/dist/cjs/{keyboard-controller-GXBiBRKS.js → keyboard-controller-c05e747a.js} +2 -2
- package/dist/cjs/loader.cjs.js +6 -4
- package/dist/cjs/{md.transition-Bh2J94f4.js → md.transition-26003e25.js} +7 -7
- package/dist/cjs/{notch-controller-DNfj7cO6.js → notch-controller-ae03a497.js} +2 -2
- package/dist/cjs/{overlays-hvRku41m.js → overlays-32e1b66b.js} +7 -7
- package/dist/cjs/{status-tap-EJ9Sb5hb.js → status-tap-03023755.js} +5 -5
- package/dist/cjs/{swipe-back-Di-t3rsI.js → swipe-back-cd0d9f77.js} +4 -4
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.js +13 -43
- package/dist/collection/components/accordion-group/accordion-group.js +8 -35
- package/dist/collection/components/action-sheet/action-sheet.js +31 -84
- package/dist/collection/components/alert/alert.js +34 -94
- package/dist/collection/components/back-button/back-button.js +14 -30
- package/dist/collection/components/backdrop/backdrop.js +3 -18
- package/dist/collection/components/badge/badge.js +4 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js +26 -57
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +10 -24
- package/dist/collection/components/button/button.js +33 -74
- package/dist/collection/components/buttons/buttons.js +1 -15
- package/dist/collection/components/card/card.js +16 -44
- package/dist/collection/components/card-header/card-header.js +3 -11
- package/dist/collection/components/card-subtitle/card-subtitle.js +4 -3
- package/dist/collection/components/card-title/card-title.js +4 -3
- package/dist/collection/components/checkbox/checkbox.js +24 -74
- package/dist/collection/components/chip/chip.js +4 -15
- package/dist/collection/components/col/col.js +50 -72
- package/dist/collection/components/content/content.js +9 -43
- package/dist/collection/components/datetime/datetime.ios.css +2 -7
- package/dist/collection/components/datetime/datetime.js +98 -298
- package/dist/collection/components/datetime/datetime.md.css +3 -9
- package/dist/collection/components/datetime/utils/data.js +4 -29
- package/dist/collection/components/datetime-button/datetime-button.js +11 -21
- package/dist/collection/components/fab/fab.js +6 -21
- package/dist/collection/components/fab-button/fab-button.js +28 -76
- package/dist/collection/components/fab-list/fab-list.js +2 -12
- package/dist/collection/components/footer/footer.js +5 -16
- package/dist/collection/components/grid/grid.js +1 -6
- package/dist/collection/components/header/header.js +4 -15
- package/dist/collection/components/img/img.js +6 -6
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +7 -35
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +4 -6
- package/dist/collection/components/input/input.js +72 -171
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +8 -16
- package/dist/collection/components/item/item.js +21 -56
- package/dist/collection/components/item-divider/item-divider.js +3 -13
- package/dist/collection/components/item-option/item-option.js +16 -36
- package/dist/collection/components/item-options/item-options.js +1 -7
- package/dist/collection/components/item-sliding/item-sliding.js +1 -6
- package/dist/collection/components/label/label.js +4 -6
- package/dist/collection/components/list/list.js +3 -9
- package/dist/collection/components/list-header/list-header.js +6 -6
- package/dist/collection/components/loading/loading.js +29 -86
- package/dist/collection/components/menu/menu.js +10 -42
- package/dist/collection/components/menu-button/menu-button.js +10 -27
- package/dist/collection/components/menu-toggle/menu-toggle.js +5 -14
- package/dist/collection/components/modal/modal.js +51 -188
- package/dist/collection/components/nav/nav.js +11 -24
- package/dist/collection/components/nav-link/nav-link.js +8 -18
- package/dist/collection/components/note/note.js +4 -3
- package/dist/collection/components/picker-column/picker-column.js +10 -34
- package/dist/collection/components/picker-column-option/picker-column-option.js +4 -25
- package/dist/collection/components/picker-legacy/picker.js +31 -91
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -4
- package/dist/collection/components/popover/popover.js +55 -208
- package/dist/collection/components/progress-bar/progress-bar.js +6 -31
- package/dist/collection/components/radio/radio.js +16 -46
- package/dist/collection/components/radio-group/radio-group.js +12 -26
- package/dist/collection/components/range/range.js +34 -109
- package/dist/collection/components/refresher/refresher.js +6 -68
- package/dist/collection/components/refresher-content/refresher-content.js +8 -12
- package/dist/collection/components/reorder-group/reorder-group.js +1 -6
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -12
- package/dist/collection/components/route/route.js +9 -24
- package/dist/collection/components/route-redirect/route-redirect.js +6 -6
- package/dist/collection/components/router/router.js +2 -24
- package/dist/collection/components/router-link/router-link.js +12 -24
- package/dist/collection/components/router-outlet/router-outlet.js +8 -24
- package/dist/collection/components/searchbar/searchbar.js +46 -141
- package/dist/collection/components/segment/segment.js +13 -38
- package/dist/collection/components/segment-button/segment-button.js +11 -32
- package/dist/collection/components/segment-view/segment-view.js +2 -6
- package/dist/collection/components/select/select.ios.css +5 -3
- package/dist/collection/components/select/select.js +55 -121
- package/dist/collection/components/select/select.md.css +61 -16
- package/dist/collection/components/select-modal/select-modal.js +4 -9
- package/dist/collection/components/select-option/select-option.js +3 -9
- package/dist/collection/components/select-popover/select-popover.js +8 -18
- package/dist/collection/components/skeleton-text/skeleton-text.js +1 -6
- package/dist/collection/components/spinner/spinner.js +7 -15
- package/dist/collection/components/split-pane/split-pane.js +4 -17
- package/dist/collection/components/tab/tab.js +7 -14
- package/dist/collection/components/tab-bar/tab-bar.js +5 -14
- package/dist/collection/components/tab-button/tab-button.js +16 -32
- package/dist/collection/components/tabs/tabs.js +3 -5
- package/dist/collection/components/text/text.js +4 -3
- package/dist/collection/components/textarea/textarea.js +59 -146
- package/dist/collection/components/title/title.js +6 -6
- package/dist/collection/components/toast/toast.js +45 -119
- package/dist/collection/components/toggle/toggle.js +28 -86
- package/dist/collection/components/toolbar/toolbar.js +2 -3
- package/dist/docs.d.ts +0 -8
- package/dist/docs.json +584 -1823
- package/dist/esm/{animation-CCtpQcsN.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-C0a0o4Av.js → app-globals-7b6cbf1a.js} +1 -1
- package/dist/esm/{button-active-BQqkZ_sm.js → button-active-90f1dbc4.js} +3 -3
- package/dist/esm/{capacitor-CFERIeaU.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-omKWOMer.js → data-174ad5e0.js} +6 -31
- package/dist/esm/{framework-delegate-D3CI7y6x.js → framework-delegate-2eea1763.js} +1 -1
- package/dist/esm/{gesture-controller-BTEOs1at.js → gesture-controller-314a54f6.js} +1 -1
- package/dist/esm/{haptic-DzAMWJuk.js → haptic-ac164e4c.js} +2 -2
- package/dist/esm/{hardware-back-button-RMajLSrZ.js → hardware-back-button-864101a3.js} +3 -3
- package/dist/esm/{helpers-Di6ciXLG.js → helpers-78efeec3.js} +5 -2
- package/dist/esm/{index-CfgBF1SE.js → index-39782642.js} +6 -4
- package/dist/esm/{index-B2_fY2up.js → index-40894f4b.js} +2 -2
- package/dist/esm/{index-EP3pwcdb.js → index-527b9e34.js} +648 -1392
- package/dist/esm/{index-DR2njD_q.js → index-738d7504.js} +2 -2
- package/dist/esm/{index-BLV6ykCk.js → index-e2cf2ceb.js} +1 -2
- package/dist/esm/{index-CDohRbVJ.js → index-e919e353.js} +3 -3
- package/dist/esm/{index-BKfOgUuW.js → index-ecb55b8d.js} +6 -6
- package/dist/esm/{index-C7r3mIlB.js → index-f9f5d018.js} +6 -6
- package/dist/esm/index.js +18 -18
- package/dist/esm/{input-shims-Clcc9pEO.js → input-shims-7dc1f6dc.js} +8 -8
- package/dist/esm/{input.utils-BeGXuyDm.js → input.utils-28bf4ef0.js} +3 -3
- package/dist/esm/ion-accordion_2.entry.js +23 -54
- package/dist/esm/ion-action-sheet.entry.js +36 -50
- package/dist/esm/ion-alert.entry.js +39 -55
- package/dist/esm/ion-app_8.entry.js +63 -96
- package/dist/esm/ion-avatar_3.entry.js +14 -8
- package/dist/esm/ion-back-button.entry.js +16 -15
- package/dist/esm/ion-backdrop.entry.js +6 -13
- package/dist/esm/ion-breadcrumb_2.entry.js +32 -38
- package/dist/esm/ion-button_2.entry.js +28 -33
- package/dist/esm/ion-card_5.entry.js +33 -32
- package/dist/esm/ion-checkbox.entry.js +20 -44
- package/dist/esm/ion-chip.entry.js +8 -11
- package/dist/esm/ion-col_3.entry.js +32 -8
- package/dist/esm/ion-datetime-button.entry.js +18 -20
- package/dist/esm/ion-datetime_3.entry.js +120 -251
- package/dist/esm/ion-fab_3.entry.js +29 -57
- package/dist/esm/ion-img.entry.js +9 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +18 -35
- package/dist/esm/ion-input-password-toggle.entry.js +13 -11
- package/dist/esm/ion-input.entry.js +51 -79
- package/dist/esm/ion-item-option_3.entry.js +26 -32
- package/dist/esm/ion-item_8.entry.js +50 -49
- package/dist/esm/ion-loading.entry.js +29 -46
- package/dist/esm/ion-menu_3.entry.js +37 -62
- package/dist/esm/ion-modal.entry.js +50 -128
- package/dist/esm/ion-nav_2.entry.js +20 -17
- package/dist/esm/ion-picker-column-option.entry.js +9 -22
- package/dist/esm/ion-picker-column.entry.js +15 -30
- package/dist/esm/ion-picker.entry.js +6 -4
- package/dist/esm/ion-popover.entry.js +45 -137
- package/dist/esm/ion-progress-bar.entry.js +9 -22
- package/dist/esm/ion-radio_2.entry.js +28 -42
- package/dist/esm/ion-range.entry.js +31 -71
- package/dist/esm/ion-refresher_2.entry.js +24 -68
- package/dist/esm/ion-reorder_2.entry.js +17 -17
- package/dist/esm/ion-ripple-effect.entry.js +4 -12
- package/dist/esm/ion-route_4.entry.js +18 -34
- package/dist/esm/ion-searchbar.entry.js +34 -83
- package/dist/esm/ion-segment-content.entry.js +3 -2
- package/dist/esm/ion-segment-view.entry.js +6 -6
- package/dist/esm/ion-segment_2.entry.js +27 -47
- package/dist/esm/ion-select-modal.entry.js +18 -13
- package/dist/esm/ion-select_3.entry.js +63 -82
- package/dist/esm/ion-spinner.entry.js +9 -8
- package/dist/esm/ion-split-pane.entry.js +7 -12
- package/dist/esm/ion-tab-bar_2.entry.js +26 -25
- package/dist/esm/ion-tab_2.entry.js +12 -8
- package/dist/esm/ion-text.entry.js +6 -4
- package/dist/esm/ion-textarea.entry.js +43 -71
- package/dist/esm/ion-toast.entry.js +42 -65
- package/dist/esm/ion-toggle.entry.js +32 -63
- package/dist/esm/{ionic-global-CrB2BPUW.js → ionic-global-ca86cf32.js} +1 -1
- package/dist/esm/ionic.js +6 -7
- package/dist/esm/{ios.transition-BObaMu_w.js → ios.transition-7fe5dbea.js} +7 -7
- package/dist/esm/{keyboard-ywgs5efA.js → keyboard-52278bd7.js} +3 -3
- package/dist/esm/{keyboard-CUw4ekVy.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-BaaVITYt.js → keyboard-controller-ec5c2bfa.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-BYk9oj5T.js → md.transition-8dc58b46.js} +7 -7
- package/dist/esm/{notch-controller-PoOhjO4o.js → notch-controller-00d92e89.js} +2 -2
- package/dist/esm/{overlays-DUDTB6a2.js → overlays-41a5d51b.js} +7 -7
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/{status-tap-Az5SFsVV.js → status-tap-f6d08e9e.js} +5 -5
- package/dist/esm/{swipe-back-Df75PJ2J.js → swipe-back-07df2095.js} +4 -4
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-7b6cbf1a.js +4 -0
- package/dist/esm-es5/button-active-90f1dbc4.js +4 -0
- package/dist/esm-es5/capacitor-59395cbd.js +4 -0
- package/dist/esm-es5/compare-with-utils-a96ff2ea.js +4 -0
- package/dist/esm-es5/config-49c88215.js +4 -0
- package/dist/esm-es5/cubic-bezier-fe2083dc.js +4 -0
- package/dist/esm-es5/data-174ad5e0.js +4 -0
- package/dist/esm-es5/dir-babeabeb.js +4 -0
- package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/framework-delegate-2eea1763.js +4 -0
- package/dist/esm-es5/gesture-controller-314a54f6.js +4 -0
- package/dist/esm-es5/haptic-ac164e4c.js +4 -0
- package/dist/esm-es5/hardware-back-button-864101a3.js +4 -0
- package/dist/esm-es5/helpers-78efeec3.js +4 -0
- package/dist/esm-es5/index-39782642.js +4 -0
- package/dist/esm-es5/index-40894f4b.js +4 -0
- package/dist/esm-es5/index-527b9e34.js +5 -0
- package/dist/esm-es5/index-738d7504.js +4 -0
- package/dist/esm-es5/index-a5d50daf.js +4 -0
- package/dist/esm-es5/index-e2cf2ceb.js +4 -0
- package/dist/esm-es5/index-e919e353.js +4 -0
- package/dist/esm-es5/index-ecb55b8d.js +4 -0
- package/dist/esm-es5/index-f9f5d018.js +4 -0
- package/dist/esm-es5/index.js +4 -0
- package/dist/esm-es5/input-shims-7dc1f6dc.js +4 -0
- package/dist/esm-es5/input.utils-28bf4ef0.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +4 -0
- package/dist/esm-es5/ion-action-sheet.entry.js +4 -0
- package/dist/esm-es5/ion-alert.entry.js +4 -0
- package/dist/esm-es5/ion-app_8.entry.js +4 -0
- package/dist/esm-es5/ion-avatar_3.entry.js +4 -0
- package/dist/esm-es5/ion-back-button.entry.js +4 -0
- package/dist/esm-es5/ion-backdrop.entry.js +4 -0
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +4 -0
- package/dist/esm-es5/ion-button_2.entry.js +4 -0
- package/dist/esm-es5/ion-card_5.entry.js +4 -0
- package/dist/esm-es5/ion-checkbox.entry.js +4 -0
- package/dist/esm-es5/ion-chip.entry.js +4 -0
- package/dist/esm-es5/ion-col_3.entry.js +4 -0
- package/dist/esm-es5/ion-datetime-button.entry.js +4 -0
- package/dist/esm-es5/ion-datetime_3.entry.js +4 -0
- package/dist/esm-es5/ion-fab_3.entry.js +4 -0
- package/dist/esm-es5/ion-img.entry.js +4 -0
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +4 -0
- package/dist/esm-es5/ion-input-password-toggle.entry.js +4 -0
- package/dist/esm-es5/ion-input.entry.js +4 -0
- package/dist/esm-es5/ion-item-option_3.entry.js +4 -0
- package/dist/esm-es5/ion-item_8.entry.js +4 -0
- package/dist/esm-es5/ion-loading.entry.js +4 -0
- package/dist/esm-es5/ion-menu_3.entry.js +4 -0
- package/dist/esm-es5/ion-modal.entry.js +4 -0
- package/dist/esm-es5/ion-nav_2.entry.js +4 -0
- package/dist/esm-es5/ion-picker-column-option.entry.js +4 -0
- package/dist/esm-es5/ion-picker-column.entry.js +4 -0
- package/dist/esm-es5/ion-picker.entry.js +4 -0
- package/dist/esm-es5/ion-popover.entry.js +4 -0
- package/dist/esm-es5/ion-progress-bar.entry.js +4 -0
- package/dist/esm-es5/ion-radio_2.entry.js +4 -0
- package/dist/esm-es5/ion-range.entry.js +4 -0
- package/dist/esm-es5/ion-refresher_2.entry.js +4 -0
- package/dist/esm-es5/ion-reorder_2.entry.js +4 -0
- package/dist/esm-es5/ion-ripple-effect.entry.js +4 -0
- package/dist/esm-es5/ion-route_4.entry.js +4 -0
- package/dist/esm-es5/ion-searchbar.entry.js +4 -0
- package/dist/esm-es5/ion-segment-content.entry.js +4 -0
- package/dist/esm-es5/ion-segment-view.entry.js +4 -0
- package/dist/esm-es5/ion-segment_2.entry.js +4 -0
- package/dist/esm-es5/ion-select-modal.entry.js +4 -0
- package/dist/esm-es5/ion-select_3.entry.js +4 -0
- package/dist/esm-es5/ion-spinner.entry.js +4 -0
- package/dist/esm-es5/ion-split-pane.entry.js +4 -0
- package/dist/esm-es5/ion-tab-bar_2.entry.js +4 -0
- package/dist/esm-es5/ion-tab_2.entry.js +4 -0
- package/dist/esm-es5/ion-text.entry.js +4 -0
- package/dist/esm-es5/ion-textarea.entry.js +4 -0
- package/dist/esm-es5/ion-toast.entry.js +4 -0
- package/dist/esm-es5/ion-toggle.entry.js +4 -0
- package/dist/esm-es5/ionic-global-ca86cf32.js +4 -0
- package/dist/esm-es5/ionic.js +4 -0
- package/dist/esm-es5/ios.transition-7fe5dbea.js +4 -0
- package/dist/esm-es5/keyboard-52278bd7.js +4 -0
- package/dist/esm-es5/keyboard-73175e24.js +4 -0
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
- package/dist/esm-es5/loader.js +4 -0
- package/dist/esm-es5/lock-controller-316928be.js +4 -0
- package/dist/esm-es5/md.transition-8dc58b46.js +4 -0
- package/dist/esm-es5/notch-controller-00d92e89.js +4 -0
- package/dist/esm-es5/overlays-41a5d51b.js +4 -0
- package/dist/esm-es5/spinner-configs-964f7cf3.js +4 -0
- package/dist/esm-es5/status-tap-f6d08e9e.js +4 -0
- package/dist/esm-es5/swipe-back-07df2095.js +4 -0
- package/dist/esm-es5/theme-01f3f29c.js +4 -0
- package/dist/esm-es5/watch-options-c2911ace.js +4 -0
- package/dist/html.html-data.json +0 -216
- package/dist/index.js +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +127 -0
- package/dist/ionic/p-012c3ceb.system.js +4 -0
- package/dist/ionic/p-027a48f1.entry.js +4 -0
- package/dist/ionic/p-058b7f35.js +4 -0
- package/dist/ionic/p-05b65d7a.entry.js +4 -0
- package/dist/ionic/p-08e01816.system.js +4 -0
- package/dist/ionic/p-09d185ff.system.js +4 -0
- package/dist/ionic/p-0a456b7f.entry.js +4 -0
- package/dist/ionic/p-0adb6909.system.entry.js +4 -0
- package/dist/ionic/p-0bedc891.system.entry.js +4 -0
- package/dist/ionic/p-0c8386d3.entry.js +4 -0
- package/dist/ionic/p-0d1be7c9.system.entry.js +4 -0
- package/dist/ionic/p-0ec5b7cf.system.js +4 -0
- package/dist/ionic/p-14114a59.system.entry.js +4 -0
- package/dist/ionic/p-14e041cd.system.entry.js +4 -0
- package/dist/ionic/p-15bb1dde.system.js +4 -0
- package/dist/ionic/p-180b4f9a.entry.js +4 -0
- package/dist/ionic/p-19c32a76.entry.js +4 -0
- package/dist/ionic/p-1b0b2210.entry.js +4 -0
- package/dist/ionic/p-1bf5ec17.system.js +4 -0
- package/dist/ionic/p-1c1d781d.system.entry.js +4 -0
- package/dist/ionic/p-1c8b3ac9.entry.js +4 -0
- package/dist/ionic/p-1de5dfcd.system.entry.js +4 -0
- package/dist/ionic/p-1dfc11b3.system.js +4 -0
- package/dist/ionic/p-1e4371bd.js +4 -0
- package/dist/ionic/p-1e955a45.system.js +4 -0
- package/dist/ionic/p-20d469d0.system.js +4 -0
- package/dist/ionic/p-21891ead.js +4 -0
- package/dist/ionic/{p-CwbsDRzJ.js → p-22bc235f.js} +1 -1
- package/dist/ionic/{p-9cac4dc7.entry.js → p-2567237c.entry.js} +1 -1
- package/dist/ionic/{p-D13Eaw-8.js → p-27281edd.js} +1 -1
- package/dist/ionic/p-28c81576.entry.js +4 -0
- package/dist/ionic/p-29a5b4e4.entry.js +4 -0
- package/dist/ionic/p-2a2c6bf4.system.entry.js +4 -0
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/p-33518a04.entry.js +4 -0
- package/dist/ionic/p-35f14792.entry.js +4 -0
- package/dist/ionic/p-383a6058.entry.js +4 -0
- package/dist/ionic/p-3855fef7.system.js +4 -0
- package/dist/ionic/p-38eaf9cf.system.entry.js +4 -0
- package/dist/ionic/p-3ba2a2cd.system.js +4 -0
- package/dist/ionic/p-3e1e14d9.system.js +4 -0
- package/dist/ionic/{p-C-oNjncL.js → p-3f4327f7.js} +1 -1
- package/dist/ionic/p-41e70fa2.entry.js +4 -0
- package/dist/ionic/p-44fde7d5.system.entry.js +4 -0
- package/dist/ionic/{p-uzIBoXdl.js → p-44ff75ea.js} +1 -1
- package/dist/ionic/p-455cd7cc.system.js +4 -0
- package/dist/ionic/p-4609d030.system.js +4 -0
- package/dist/ionic/p-4630688e.system.entry.js +4 -0
- package/dist/ionic/p-4662a25c.system.entry.js +4 -0
- package/dist/ionic/p-49d53551.system.entry.js +4 -0
- package/dist/ionic/p-4b07c60a.system.js +4 -0
- package/dist/ionic/p-4c7e6fec.system.entry.js +4 -0
- package/dist/ionic/p-4d5bce60.system.entry.js +4 -0
- package/dist/ionic/p-4ea4c73a.system.entry.js +4 -0
- package/dist/ionic/p-4eeca839.system.entry.js +4 -0
- package/dist/ionic/p-4f255d5a.system.js +4 -0
- package/dist/ionic/p-50e0ce13.entry.js +4 -0
- package/dist/ionic/p-51479be0.system.entry.js +4 -0
- package/dist/ionic/p-5578033e.system.entry.js +4 -0
- package/dist/ionic/{p-HRylM0tf.js → p-597ff9af.js} +1 -1
- package/dist/ionic/p-5fb1321f.entry.js +4 -0
- package/dist/ionic/p-607aa181.entry.js +4 -0
- package/dist/ionic/p-61373098.js +4 -0
- package/dist/ionic/p-6155027f.system.entry.js +4 -0
- package/dist/ionic/p-61e794fb.entry.js +4 -0
- package/dist/ionic/{p-RyPJq84W.js → p-624ecf03.js} +1 -1
- package/dist/ionic/p-64d8ac48.js +4 -0
- package/dist/ionic/p-657ada6a.entry.js +4 -0
- package/dist/ionic/p-65943bec.system.entry.js +4 -0
- package/dist/ionic/p-65e732b9.entry.js +4 -0
- package/dist/ionic/p-66a5d6a8.js +5 -0
- package/dist/ionic/p-69a96be9.system.entry.js +4 -0
- package/dist/ionic/p-6c044a1d.system.js +4 -0
- package/dist/ionic/p-7058a5e4.system.entry.js +4 -0
- package/dist/ionic/p-705fda69.system.js +4 -0
- package/dist/ionic/p-707408c5.system.entry.js +4 -0
- package/dist/ionic/p-70abb1f2.system.entry.js +4 -0
- package/dist/ionic/p-747f9517.entry.js +4 -0
- package/dist/ionic/{p-DSMkBmnY.js → p-756e4559.js} +1 -1
- package/dist/ionic/p-772d1657.system.js +4 -0
- package/dist/ionic/p-77aa5fef.system.entry.js +4 -0
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/p-7c9daa6f.entry.js +4 -0
- package/dist/ionic/p-7cc33a9a.system.js +4 -0
- package/dist/ionic/p-7e3b5638.system.entry.js +4 -0
- package/dist/ionic/p-7f49a9c4.entry.js +4 -0
- package/dist/ionic/p-843ac05d.system.entry.js +4 -0
- package/dist/ionic/p-87b0d2c9.entry.js +4 -0
- package/dist/ionic/p-8985cdb6.system.js +4 -0
- package/dist/ionic/{p-CKvCXMs9.js → p-89b61afc.js} +1 -1
- package/dist/ionic/p-8b1c1fd7.entry.js +4 -0
- package/dist/ionic/p-8b22be32.system.entry.js +4 -0
- package/dist/ionic/p-8d98e2bb.entry.js +4 -0
- package/dist/ionic/p-8ededb41.js +4 -0
- package/dist/ionic/p-9146695e.system.js +4 -0
- package/dist/ionic/p-959cf042.system.entry.js +4 -0
- package/dist/ionic/p-96eec056.entry.js +4 -0
- package/dist/ionic/p-978bdf4c.system.js +4 -0
- package/dist/ionic/p-979d4f5c.system.js +4 -0
- package/dist/ionic/p-9870728f.js +4 -0
- package/dist/ionic/p-99803283.entry.js +4 -0
- package/dist/ionic/p-9af7f110.js +4 -0
- package/dist/ionic/{p-7cdee842.entry.js → p-9b069739.entry.js} +1 -1
- package/dist/ionic/p-9e45532a.system.js +4 -0
- package/dist/ionic/p-a26d7667.system.entry.js +4 -0
- package/dist/ionic/p-a3c931ad.system.js +4 -0
- package/dist/ionic/p-a4866e3e.system.js +4 -0
- package/dist/ionic/p-a520973b.entry.js +4 -0
- package/dist/ionic/p-a6625de8.system.js +4 -0
- package/dist/ionic/p-a75a9e5a.system.entry.js +4 -0
- package/dist/ionic/p-a768ae50.entry.js +4 -0
- package/dist/ionic/p-a7830ff8.entry.js +4 -0
- package/dist/ionic/p-a9198501.system.entry.js +4 -0
- package/dist/ionic/p-a93873de.system.js +4 -0
- package/dist/ionic/p-ab7337e1.entry.js +4 -0
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/p-ac09b6e9.system.entry.js +4 -0
- package/dist/ionic/p-ac58d726.system.entry.js +4 -0
- package/dist/ionic/p-b06ac4a5.system.js +4 -0
- package/dist/ionic/p-b1673667.entry.js +4 -0
- package/dist/ionic/p-b1f9fbe8.system.entry.js +4 -0
- package/dist/ionic/p-b2ee0628.system.entry.js +4 -0
- package/dist/ionic/{p-f1f6326a.entry.js → p-b87a9f1d.entry.js} +1 -1
- package/dist/ionic/p-b8a461f5.system.entry.js +4 -0
- package/dist/ionic/{p-mxKP5hf-.js → p-b9fa7882.js} +1 -1
- package/dist/ionic/p-ba29521b.entry.js +4 -0
- package/dist/ionic/p-bf64af90.system.js +4 -0
- package/dist/ionic/{p-189c7fe9.entry.js → p-c005cc37.entry.js} +1 -1
- package/dist/ionic/p-c27c57ea.system.entry.js +4 -0
- package/dist/ionic/p-c3f9d9fe.js +4 -0
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/p-c53c414d.system.entry.js +4 -0
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/p-c63d8dc1.js +4 -0
- package/dist/ionic/p-c7e16491.js +4 -0
- package/dist/ionic/p-ccb740ea.entry.js +4 -0
- package/dist/ionic/p-cec54707.system.entry.js +4 -0
- package/dist/ionic/p-cfc08422.entry.js +4 -0
- package/dist/ionic/p-cff4f96c.entry.js +4 -0
- package/dist/ionic/p-d40f2b7a.js +4 -0
- package/dist/ionic/p-d70a9e6d.system.js +4 -0
- package/dist/ionic/p-d882f1e2.system.entry.js +4 -0
- package/dist/ionic/p-d8d84afa.system.js +4 -0
- package/dist/ionic/{p-BLV6ykCk.js → p-da2b833b.js} +1 -1
- package/dist/ionic/p-dcc0d747.entry.js +4 -0
- package/dist/ionic/p-e0b7569c.system.entry.js +4 -0
- package/dist/ionic/p-e11ff516.entry.js +4 -0
- package/dist/ionic/p-e29c5aab.system.entry.js +4 -0
- package/dist/ionic/p-e2ce5f8b.entry.js +4 -0
- package/dist/ionic/p-e3284879.system.entry.js +4 -0
- package/dist/ionic/p-e3e4eed7.entry.js +4 -0
- package/dist/ionic/p-e4683bfd.system.entry.js +4 -0
- package/dist/ionic/p-e4d2c281.entry.js +4 -0
- package/dist/ionic/p-e65b8460.entry.js +4 -0
- package/dist/ionic/p-e673a0a2.system.js +4 -0
- package/dist/ionic/p-e6cdfa96.system.entry.js +4 -0
- package/dist/ionic/{p-46f82b82.entry.js → p-e8245753.entry.js} +1 -1
- package/dist/ionic/p-ece78e7b.js +4 -0
- package/dist/ionic/p-ee86cfff.system.js +4 -0
- package/dist/ionic/p-f11a9436.system.js +5 -0
- package/dist/ionic/p-f201b53a.system.js +4 -0
- package/dist/ionic/p-f23124c4.system.js +4 -0
- package/dist/ionic/p-f233f1e0.system.js +4 -0
- package/dist/ionic/p-f387b3c6.system.entry.js +4 -0
- package/dist/ionic/{p-D_2UPtUV.js → p-f53ee2e7.js} +1 -1
- package/dist/ionic/p-f5a04e5e.system.entry.js +4 -0
- package/dist/ionic/p-f6bb9be7.system.entry.js +4 -0
- package/dist/ionic/p-f70fc14a.entry.js +4 -0
- package/dist/ionic/{p-Cg19OPuo.js → p-f7ce606e.js} +1 -1
- package/dist/ionic/p-f834322a.entry.js +4 -0
- package/dist/ionic/p-f896194a.system.entry.js +4 -0
- package/dist/ionic/p-fa70eaab.entry.js +4 -0
- package/dist/ionic/p-ffa3ba3c.js +4 -0
- package/dist/types/components/datetime/datetime-interface.d.ts +0 -1
- package/dist/types/components/datetime/datetime.d.ts +0 -6
- package/dist/types/components/datetime/utils/data.d.ts +1 -3
- package/dist/types/components/datetime/utils/manipulation.d.ts +0 -1
- package/dist/types/components/input/input.d.ts +8 -0
- package/dist/types/components/select/select.d.ts +9 -0
- package/dist/types/components/textarea/textarea.d.ts +8 -0
- package/dist/types/components.d.ts +0 -8
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -9
- package/hydrate/index.d.ts +5 -40
- package/hydrate/index.js +2229 -4687
- package/hydrate/index.mjs +2228 -4686
- package/loader/cdn.js +2 -1
- package/loader/index.cjs.js +2 -1
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -1
- package/loader/package.json +11 -0
- package/package.json +2 -2
- package/dist/ionic/p-006975c7.entry.js +0 -4
- package/dist/ionic/p-00acbe36.entry.js +0 -4
- package/dist/ionic/p-03abd858.entry.js +0 -4
- package/dist/ionic/p-141822bc.entry.js +0 -4
- package/dist/ionic/p-17e8ff6b.entry.js +0 -4
- package/dist/ionic/p-18b4709f.entry.js +0 -4
- package/dist/ionic/p-1bea6291.entry.js +0 -4
- package/dist/ionic/p-1f3d9d38.entry.js +0 -4
- package/dist/ionic/p-20b45b04.entry.js +0 -4
- package/dist/ionic/p-2959ef70.entry.js +0 -4
- package/dist/ionic/p-2b9a91c2.entry.js +0 -4
- package/dist/ionic/p-2c58164d.entry.js +0 -4
- package/dist/ionic/p-2d142503.entry.js +0 -4
- package/dist/ionic/p-3129a2c6.entry.js +0 -4
- package/dist/ionic/p-3a5bc7b1.entry.js +0 -4
- package/dist/ionic/p-40e55257.entry.js +0 -4
- package/dist/ionic/p-45f3c7d9.entry.js +0 -4
- package/dist/ionic/p-47ccb59d.entry.js +0 -4
- package/dist/ionic/p-4bd5bd61.entry.js +0 -4
- package/dist/ionic/p-52043361.entry.js +0 -4
- package/dist/ionic/p-527660e0.entry.js +0 -4
- package/dist/ionic/p-601f0d27.entry.js +0 -4
- package/dist/ionic/p-644759cb.entry.js +0 -4
- package/dist/ionic/p-657e9085.entry.js +0 -4
- package/dist/ionic/p-67178c9b.entry.js +0 -4
- package/dist/ionic/p-67b4c53d.entry.js +0 -4
- package/dist/ionic/p-6cab60b7.entry.js +0 -4
- package/dist/ionic/p-6ceef433.entry.js +0 -4
- package/dist/ionic/p-6d8983d1.entry.js +0 -4
- package/dist/ionic/p-79851759.entry.js +0 -4
- package/dist/ionic/p-7d026411.entry.js +0 -4
- package/dist/ionic/p-7d4b2506.entry.js +0 -4
- package/dist/ionic/p-8b6eb546.entry.js +0 -4
- package/dist/ionic/p-8fc1959d.entry.js +0 -4
- package/dist/ionic/p-9092b7fb.entry.js +0 -4
- package/dist/ionic/p-9eeaBrnk.js +0 -4
- package/dist/ionic/p-9fe56809.entry.js +0 -4
- package/dist/ionic/p-BBmUb2In.js +0 -4
- package/dist/ionic/p-C-xl6pej.js +0 -4
- package/dist/ionic/p-C5Aon1Kb.js +0 -4
- package/dist/ionic/p-CIGNaXM1.js +0 -4
- package/dist/ionic/p-Cl0B-RWe.js +0 -4
- package/dist/ionic/p-CtWGkNnJ.js +0 -4
- package/dist/ionic/p-D0SqsSaH.js +0 -4
- package/dist/ionic/p-DCi8BSH3.js +0 -4
- package/dist/ionic/p-DFllLYu2.js +0 -4
- package/dist/ionic/p-DGw3g412.js +0 -4
- package/dist/ionic/p-Di6ciXLG.js +0 -4
- package/dist/ionic/p-DonNC93r.js +0 -4
- package/dist/ionic/p-EP3pwcdb.js +0 -5
- package/dist/ionic/p-Uz6zKimy.js +0 -4
- package/dist/ionic/p-a5570370.entry.js +0 -4
- package/dist/ionic/p-a5ee3eb8.entry.js +0 -4
- package/dist/ionic/p-a92657fc.entry.js +0 -4
- package/dist/ionic/p-a9997b1b.entry.js +0 -4
- package/dist/ionic/p-b1f3c158.entry.js +0 -4
- package/dist/ionic/p-be19e061.entry.js +0 -4
- package/dist/ionic/p-c5157026.entry.js +0 -4
- package/dist/ionic/p-c6e0f544.entry.js +0 -4
- package/dist/ionic/p-e116bb40.entry.js +0 -4
- package/dist/ionic/p-e8526b09.entry.js +0 -4
- package/dist/ionic/p-umtghMQY.js +0 -4
- package/dist/ionic/p-yluxF5qo.js +0 -4
- /package/dist/cjs/{compare-with-utils-DSicavqM.js → compare-with-utils-df1001d7.js} +0 -0
- /package/dist/cjs/{config-BHiHGeHc.js → config-4f60b98a.js} +0 -0
- /package/dist/cjs/{cubic-bezier-DAjy1V-e.js → cubic-bezier-f2dccc53.js} +0 -0
- /package/dist/cjs/{dir-Cn0z1rJH.js → dir-94c21456.js} +0 -0
- /package/dist/cjs/{focus-visible-CCvKiLh3.js → focus-visible-7a0ce04f.js} +0 -0
- /package/dist/cjs/{index-DkNv4J_i.js → index-c8d52405.js} +0 -0
- /package/dist/cjs/{lock-controller-aDB9wrEf.js → lock-controller-6585a42a.js} +0 -0
- /package/dist/cjs/{spinner-configs-DxHKnd3-.js → spinner-configs-282fd50a.js} +0 -0
- /package/dist/cjs/{theme-CeDs6Hcv.js → theme-d1c573d2.js} +0 -0
- /package/dist/cjs/{watch-options-CviOsrTS.js → watch-options-f5f3e158.js} +0 -0
- /package/dist/esm/{compare-with-utils-sObYyvOy.js → compare-with-utils-a96ff2ea.js} +0 -0
- /package/dist/esm/{config-O8NobGs3.js → config-49c88215.js} +0 -0
- /package/dist/esm/{cubic-bezier-hHmYLOfE.js → cubic-bezier-fe2083dc.js} +0 -0
- /package/dist/esm/{dir-C53feagD.js → dir-babeabeb.js} +0 -0
- /package/dist/esm/{focus-visible-BmVRXR1y.js → focus-visible-dd40d69f.js} +0 -0
- /package/dist/esm/{index-ZjP4CjeZ.js → index-a5d50daf.js} +0 -0
- /package/dist/esm/{lock-controller-B-hirT0v.js → lock-controller-316928be.js} +0 -0
- /package/dist/esm/{spinner-configs-D4RIp70E.js → spinner-configs-964f7cf3.js} +0 -0
- /package/dist/esm/{theme-DiVJyqlX.js → theme-01f3f29c.js} +0 -0
- /package/dist/esm/{watch-options-Dtdm8lKC.js → watch-options-c2911ace.js} +0 -0
- /package/dist/ionic/{p-hHmYLOfE.js → p-2408c236.js} +0 -0
- /package/dist/ionic/{p-O8NobGs3.js → p-41d5544e.js} +0 -0
- /package/dist/ionic/{p-Dtdm8lKC.js → p-459d13d5.js} +0 -0
- /package/dist/ionic/{p-DiVJyqlX.js → p-47794def.js} +0 -0
- /package/dist/ionic/{p-ZjP4CjeZ.js → p-7b30edcc.js} +0 -0
- /package/dist/ionic/{p-BTEOs1at.js → p-9b97df10.js} +0 -0
- /package/dist/ionic/{p-B-hirT0v.js → p-ccd02320.js} +0 -0
- /package/dist/ionic/{p-BmVRXR1y.js → p-d47265c8.js} +0 -0
- /package/dist/ionic/{p-sObYyvOy.js → p-de756e5c.js} +0 -0
- /package/dist/ionic/{p-D4RIp70E.js → p-f0c2a614.js} +0 -0
- /package/dist/ionic/{p-C53feagD.js → p-fb813dab.js} +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
const NAMESPACE = 'ionic';
|
|
5
|
-
const BUILD = /* ionic */ { experimentalSlotFixes: true, hydratedSelectorName: "hydrated", lazyLoad: true, shadowDom: true, slotRelocation: true, updatable: true};
|
|
5
|
+
const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: true, experimentalSlotFixes: true, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -13,47 +13,14 @@ var __export = (target, all) => {
|
|
|
13
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
14
|
};
|
|
15
15
|
var Build = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
PrimitiveType2["String"] = "string";
|
|
25
|
-
PrimitiveType2["Number"] = "number";
|
|
26
|
-
PrimitiveType2["SpecialNumber"] = "number";
|
|
27
|
-
PrimitiveType2["Boolean"] = "boolean";
|
|
28
|
-
PrimitiveType2["BigInt"] = "bigint";
|
|
29
|
-
return PrimitiveType2;
|
|
30
|
-
})(PrimitiveType || {});
|
|
31
|
-
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
32
|
-
NonPrimitiveType2["Array"] = "array";
|
|
33
|
-
NonPrimitiveType2["Date"] = "date";
|
|
34
|
-
NonPrimitiveType2["Map"] = "map";
|
|
35
|
-
NonPrimitiveType2["Object"] = "object";
|
|
36
|
-
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
37
|
-
NonPrimitiveType2["Set"] = "set";
|
|
38
|
-
NonPrimitiveType2["Channel"] = "channel";
|
|
39
|
-
NonPrimitiveType2["Symbol"] = "symbol";
|
|
40
|
-
return NonPrimitiveType2;
|
|
41
|
-
})(NonPrimitiveType || {});
|
|
42
|
-
var TYPE_CONSTANT = "type";
|
|
43
|
-
var VALUE_CONSTANT = "value";
|
|
44
|
-
var SERIALIZED_PREFIX = "serialized:";
|
|
45
|
-
|
|
46
|
-
// src/client/client-host-ref.ts
|
|
47
|
-
var getHostRef = (ref) => {
|
|
48
|
-
if (ref.__stencil__getHostRef) {
|
|
49
|
-
return ref.__stencil__getHostRef();
|
|
50
|
-
}
|
|
51
|
-
return void 0;
|
|
52
|
-
};
|
|
53
|
-
var registerInstance = (lazyInstance, hostRef) => {
|
|
54
|
-
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
55
|
-
hostRef.$lazyInstance$ = lazyInstance;
|
|
56
|
-
};
|
|
16
|
+
isDev: false,
|
|
17
|
+
isBrowser: true,
|
|
18
|
+
isServer: false,
|
|
19
|
+
isTesting: false
|
|
20
|
+
};
|
|
21
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
23
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
57
24
|
var registerHost = (hostElement, cmpMeta) => {
|
|
58
25
|
const hostRef = {
|
|
59
26
|
$flags$: 0,
|
|
@@ -69,9 +36,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
69
36
|
hostElement["s-p"] = [];
|
|
70
37
|
hostElement["s-rc"] = [];
|
|
71
38
|
}
|
|
72
|
-
|
|
73
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
74
|
-
return ref;
|
|
39
|
+
return hostRefs.set(hostElement, hostRef);
|
|
75
40
|
};
|
|
76
41
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
77
42
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -95,17 +60,12 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
95
60
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
96
61
|
/* webpackMode: "lazy" */
|
|
97
62
|
`./${bundleId}.entry.js${""}`
|
|
98
|
-
).then(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
cmpModules.set(bundleId, importedModule);
|
|
102
|
-
}
|
|
103
|
-
return importedModule[exportName];
|
|
104
|
-
},
|
|
105
|
-
(e) => {
|
|
106
|
-
consoleError(e, hostRef.$hostElement$);
|
|
63
|
+
).then((importedModule) => {
|
|
64
|
+
{
|
|
65
|
+
cmpModules.set(bundleId, importedModule);
|
|
107
66
|
}
|
|
108
|
-
|
|
67
|
+
return importedModule[exportName];
|
|
68
|
+
}, consoleError);
|
|
109
69
|
};
|
|
110
70
|
|
|
111
71
|
// src/client/client-style.ts
|
|
@@ -117,7 +77,6 @@ var CONTENT_REF_ID = "r";
|
|
|
117
77
|
var ORG_LOCATION_ID = "o";
|
|
118
78
|
var SLOT_NODE_ID = "s";
|
|
119
79
|
var TEXT_NODE_ID = "t";
|
|
120
|
-
var COMMENT_NODE_ID = "c";
|
|
121
80
|
var HYDRATE_ID = "s-id";
|
|
122
81
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
123
82
|
var HYDRATE_CHILD_ID = "c-id";
|
|
@@ -125,6 +84,7 @@ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
|
125
84
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
126
85
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
127
86
|
var win = typeof window !== "undefined" ? window : {};
|
|
87
|
+
var doc = win.document || { head: {} };
|
|
128
88
|
var H = win.HTMLElement || class {
|
|
129
89
|
};
|
|
130
90
|
var plt = {
|
|
@@ -138,10 +98,9 @@ var plt = {
|
|
|
138
98
|
};
|
|
139
99
|
var supportsShadow = BUILD.shadowDom;
|
|
140
100
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
141
|
-
var _a;
|
|
142
101
|
let supportsListenerOptions2 = false;
|
|
143
102
|
try {
|
|
144
|
-
|
|
103
|
+
doc.addEventListener(
|
|
145
104
|
"e",
|
|
146
105
|
null,
|
|
147
106
|
Object.defineProperty({}, "passive", {
|
|
@@ -206,119 +165,24 @@ var getAssetPath = (path) => {
|
|
|
206
165
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
207
166
|
};
|
|
208
167
|
|
|
168
|
+
// src/utils/constants.ts
|
|
169
|
+
var EMPTY_OBJ = {};
|
|
170
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
171
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
172
|
+
|
|
209
173
|
// src/utils/helpers.ts
|
|
210
|
-
var isDef = (v) => v != null
|
|
174
|
+
var isDef = (v) => v != null;
|
|
211
175
|
var isComplexType = (o) => {
|
|
212
176
|
o = typeof o;
|
|
213
177
|
return o === "object" || o === "function";
|
|
214
178
|
};
|
|
215
179
|
|
|
216
180
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
217
|
-
function queryNonceMetaTagContent(
|
|
181
|
+
function queryNonceMetaTagContent(doc2) {
|
|
218
182
|
var _a, _b, _c;
|
|
219
|
-
return (_c = (_b = (_a =
|
|
183
|
+
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
220
184
|
}
|
|
221
185
|
|
|
222
|
-
// src/utils/regular-expression.ts
|
|
223
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
224
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
// src/utils/remote-value.ts
|
|
228
|
-
var RemoteValue = class _RemoteValue {
|
|
229
|
-
/**
|
|
230
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
231
|
-
*
|
|
232
|
-
* @param serialized The serialized LocalValue object
|
|
233
|
-
* @returns The original JavaScript value/object
|
|
234
|
-
*/
|
|
235
|
-
static fromLocalValue(serialized) {
|
|
236
|
-
const type = serialized[TYPE_CONSTANT];
|
|
237
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
238
|
-
switch (type) {
|
|
239
|
-
case "string" /* String */:
|
|
240
|
-
return value;
|
|
241
|
-
case "boolean" /* Boolean */:
|
|
242
|
-
return value;
|
|
243
|
-
case "bigint" /* BigInt */:
|
|
244
|
-
return BigInt(value);
|
|
245
|
-
case "undefined" /* Undefined */:
|
|
246
|
-
return void 0;
|
|
247
|
-
case "null" /* Null */:
|
|
248
|
-
return null;
|
|
249
|
-
case "number" /* Number */:
|
|
250
|
-
if (value === "NaN") return NaN;
|
|
251
|
-
if (value === "-0") return -0;
|
|
252
|
-
if (value === "Infinity") return Infinity;
|
|
253
|
-
if (value === "-Infinity") return -Infinity;
|
|
254
|
-
return value;
|
|
255
|
-
case "array" /* Array */:
|
|
256
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
257
|
-
case "date" /* Date */:
|
|
258
|
-
return new Date(value);
|
|
259
|
-
case "map" /* Map */:
|
|
260
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
261
|
-
for (const [key, val] of value) {
|
|
262
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
263
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
264
|
-
map2.set(deserializedKey, deserializedValue);
|
|
265
|
-
}
|
|
266
|
-
return map2;
|
|
267
|
-
case "object" /* Object */:
|
|
268
|
-
const obj = {};
|
|
269
|
-
for (const [key, val] of value) {
|
|
270
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
271
|
-
}
|
|
272
|
-
return obj;
|
|
273
|
-
case "regexp" /* RegularExpression */:
|
|
274
|
-
const { pattern, flags } = value;
|
|
275
|
-
return new RegExp(pattern, flags);
|
|
276
|
-
case "set" /* Set */:
|
|
277
|
-
const set = /* @__PURE__ */ new Set();
|
|
278
|
-
for (const item of value) {
|
|
279
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
280
|
-
}
|
|
281
|
-
return set;
|
|
282
|
-
case "symbol" /* Symbol */:
|
|
283
|
-
return Symbol(value);
|
|
284
|
-
default:
|
|
285
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
290
|
-
*
|
|
291
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
292
|
-
* @returns Array of deserialized JavaScript values
|
|
293
|
-
*/
|
|
294
|
-
static fromLocalValueArray(serializedValues) {
|
|
295
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
299
|
-
*
|
|
300
|
-
* @param obj Object to verify
|
|
301
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
302
|
-
*/
|
|
303
|
-
static isLocalValueObject(obj) {
|
|
304
|
-
if (typeof obj !== "object" || obj === null) {
|
|
305
|
-
return false;
|
|
306
|
-
}
|
|
307
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
308
|
-
return false;
|
|
309
|
-
}
|
|
310
|
-
const type = obj[TYPE_CONSTANT];
|
|
311
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
312
|
-
if (!hasTypeProperty) {
|
|
313
|
-
return false;
|
|
314
|
-
}
|
|
315
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
316
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
317
|
-
}
|
|
318
|
-
return true;
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
|
|
322
186
|
// src/utils/result.ts
|
|
323
187
|
var result_exports = {};
|
|
324
188
|
__export(result_exports, {
|
|
@@ -367,527 +231,6 @@ var unwrapErr = (result) => {
|
|
|
367
231
|
throw result.value;
|
|
368
232
|
}
|
|
369
233
|
};
|
|
370
|
-
|
|
371
|
-
// src/utils/serialize.ts
|
|
372
|
-
function deserializeProperty(value) {
|
|
373
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
374
|
-
return value;
|
|
375
|
-
}
|
|
376
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
377
|
-
}
|
|
378
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
379
|
-
const childNodes = internalCall(elm, "childNodes");
|
|
380
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
381
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
382
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
383
|
-
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
384
|
-
slotNode.hidden = true;
|
|
385
|
-
} else {
|
|
386
|
-
slotNode.hidden = false;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
let i2 = 0;
|
|
392
|
-
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
393
|
-
const childNode = childNodes[i2];
|
|
394
|
-
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
395
|
-
updateFallbackSlotVisibility(childNode);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
var getSlottedChildNodes = (childNodes) => {
|
|
400
|
-
const result = [];
|
|
401
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
402
|
-
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
403
|
-
if (slottedNode && slottedNode.isConnected) {
|
|
404
|
-
result.push(slottedNode);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return result;
|
|
408
|
-
};
|
|
409
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
410
|
-
let i2 = 0;
|
|
411
|
-
let slottedNodes = [];
|
|
412
|
-
let childNode;
|
|
413
|
-
for (; i2 < childNodes.length; i2++) {
|
|
414
|
-
childNode = childNodes[i2];
|
|
415
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
416
|
-
slottedNodes.push(childNode);
|
|
417
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
418
|
-
}
|
|
419
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
420
|
-
}
|
|
421
|
-
return slottedNodes;
|
|
422
|
-
}
|
|
423
|
-
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
424
|
-
const childNodes = [];
|
|
425
|
-
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
426
|
-
let node = slot;
|
|
427
|
-
while (node = node.nextSibling) {
|
|
428
|
-
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
429
|
-
}
|
|
430
|
-
return childNodes;
|
|
431
|
-
};
|
|
432
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
433
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
434
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
435
|
-
return true;
|
|
436
|
-
}
|
|
437
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
438
|
-
return true;
|
|
439
|
-
}
|
|
440
|
-
return false;
|
|
441
|
-
}
|
|
442
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
443
|
-
return true;
|
|
444
|
-
}
|
|
445
|
-
return slotName === "";
|
|
446
|
-
};
|
|
447
|
-
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
448
|
-
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
const slottedNodeLocation = document.createTextNode("");
|
|
452
|
-
slottedNodeLocation["s-nr"] = newChild;
|
|
453
|
-
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
454
|
-
const parent = slotNode["s-cr"].parentNode;
|
|
455
|
-
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
456
|
-
if (typeof position !== "undefined") {
|
|
457
|
-
slottedNodeLocation["s-oo"] = position;
|
|
458
|
-
const childNodes = internalCall(parent, "childNodes");
|
|
459
|
-
const slotRelocateNodes = [slottedNodeLocation];
|
|
460
|
-
childNodes.forEach((n) => {
|
|
461
|
-
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
462
|
-
});
|
|
463
|
-
slotRelocateNodes.sort((a, b) => {
|
|
464
|
-
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
465
|
-
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
466
|
-
return 0;
|
|
467
|
-
});
|
|
468
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
469
|
-
} else {
|
|
470
|
-
appendMethod.call(parent, slottedNodeLocation);
|
|
471
|
-
}
|
|
472
|
-
newChild["s-ol"] = slottedNodeLocation;
|
|
473
|
-
newChild["s-sh"] = slotNode["s-hn"];
|
|
474
|
-
};
|
|
475
|
-
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
476
|
-
function patchSlotNode(node) {
|
|
477
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
478
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
479
|
-
const toReturn = [];
|
|
480
|
-
const slotName = this["s-sn"];
|
|
481
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
482
|
-
console.error(`
|
|
483
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
484
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
485
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
486
|
-
`);
|
|
487
|
-
}
|
|
488
|
-
const parent = this["s-cr"].parentElement;
|
|
489
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
490
|
-
slottedNodes.forEach((n) => {
|
|
491
|
-
if (slotName === getSlotName(n)) {
|
|
492
|
-
toReturn.push(n);
|
|
493
|
-
}
|
|
494
|
-
});
|
|
495
|
-
if (elementsOnly) {
|
|
496
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
497
|
-
}
|
|
498
|
-
return toReturn;
|
|
499
|
-
}).bind(node);
|
|
500
|
-
node.assignedElements = assignedFactory(true);
|
|
501
|
-
node.assignedNodes = assignedFactory(false);
|
|
502
|
-
}
|
|
503
|
-
function dispatchSlotChangeEvent(elm) {
|
|
504
|
-
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
505
|
-
}
|
|
506
|
-
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
507
|
-
var _a;
|
|
508
|
-
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
509
|
-
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
510
|
-
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
511
|
-
const childNodes = internalCall(parentHost, "childNodes");
|
|
512
|
-
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
513
|
-
return { slotNode, slotName };
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// src/runtime/dom-extras.ts
|
|
517
|
-
var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
518
|
-
patchCloneNode(hostElementPrototype);
|
|
519
|
-
patchSlotAppendChild(hostElementPrototype);
|
|
520
|
-
patchSlotAppend(hostElementPrototype);
|
|
521
|
-
patchSlotPrepend(hostElementPrototype);
|
|
522
|
-
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
523
|
-
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
524
|
-
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
525
|
-
patchInsertBefore(hostElementPrototype);
|
|
526
|
-
patchTextContent(hostElementPrototype);
|
|
527
|
-
patchChildSlotNodes(hostElementPrototype);
|
|
528
|
-
patchSlotRemoveChild(hostElementPrototype);
|
|
529
|
-
};
|
|
530
|
-
var patchCloneNode = (HostElementPrototype) => {
|
|
531
|
-
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
532
|
-
HostElementPrototype.cloneNode = function(deep) {
|
|
533
|
-
const srcNode = this;
|
|
534
|
-
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
535
|
-
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
536
|
-
if (!isShadowDom && deep) {
|
|
537
|
-
let i2 = 0;
|
|
538
|
-
let slotted, nonStencilNode;
|
|
539
|
-
const stencilPrivates = [
|
|
540
|
-
"s-id",
|
|
541
|
-
"s-cr",
|
|
542
|
-
"s-lr",
|
|
543
|
-
"s-rc",
|
|
544
|
-
"s-sc",
|
|
545
|
-
"s-p",
|
|
546
|
-
"s-cn",
|
|
547
|
-
"s-sr",
|
|
548
|
-
"s-sn",
|
|
549
|
-
"s-hn",
|
|
550
|
-
"s-ol",
|
|
551
|
-
"s-nr",
|
|
552
|
-
"s-si",
|
|
553
|
-
"s-rf",
|
|
554
|
-
"s-scs"
|
|
555
|
-
];
|
|
556
|
-
const childNodes = this.__childNodes || this.childNodes;
|
|
557
|
-
for (; i2 < childNodes.length; i2++) {
|
|
558
|
-
slotted = childNodes[i2]["s-nr"];
|
|
559
|
-
nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
|
|
560
|
-
if (slotted) {
|
|
561
|
-
if (clonedNode.__appendChild) {
|
|
562
|
-
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
563
|
-
} else {
|
|
564
|
-
clonedNode.appendChild(slotted.cloneNode(true));
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
if (nonStencilNode) {
|
|
568
|
-
clonedNode.appendChild(childNodes[i2].cloneNode(true));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
return clonedNode;
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
576
|
-
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
577
|
-
HostElementPrototype.appendChild = function(newChild) {
|
|
578
|
-
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
579
|
-
if (slotNode) {
|
|
580
|
-
addSlotRelocateNode(newChild, slotNode);
|
|
581
|
-
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
582
|
-
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
583
|
-
const parent = internalCall(appendAfter, "parentNode");
|
|
584
|
-
const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
|
|
585
|
-
dispatchSlotChangeEvent(slotNode);
|
|
586
|
-
updateFallbackSlotVisibility(this);
|
|
587
|
-
return insertedNode;
|
|
588
|
-
}
|
|
589
|
-
return this.__appendChild(newChild);
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
593
|
-
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
594
|
-
ElementPrototype.removeChild = function(toRemove) {
|
|
595
|
-
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
596
|
-
const childNodes = this.__childNodes || this.childNodes;
|
|
597
|
-
const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
|
|
598
|
-
if (slotNode && toRemove.isConnected) {
|
|
599
|
-
toRemove.remove();
|
|
600
|
-
updateFallbackSlotVisibility(this);
|
|
601
|
-
return;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
return this.__removeChild(toRemove);
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
var patchSlotPrepend = (HostElementPrototype) => {
|
|
608
|
-
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
609
|
-
HostElementPrototype.prepend = function(...newChildren) {
|
|
610
|
-
newChildren.forEach((newChild) => {
|
|
611
|
-
if (typeof newChild === "string") {
|
|
612
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
613
|
-
}
|
|
614
|
-
const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
|
|
615
|
-
const childNodes = internalCall(this, "childNodes");
|
|
616
|
-
const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
|
|
617
|
-
if (slotNode) {
|
|
618
|
-
addSlotRelocateNode(newChild, slotNode, true);
|
|
619
|
-
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
620
|
-
const appendAfter = slotChildNodes[0];
|
|
621
|
-
const parent = internalCall(appendAfter, "parentNode");
|
|
622
|
-
const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
|
|
623
|
-
dispatchSlotChangeEvent(slotNode);
|
|
624
|
-
return toReturn;
|
|
625
|
-
}
|
|
626
|
-
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
627
|
-
newChild.hidden = true;
|
|
628
|
-
}
|
|
629
|
-
return HostElementPrototype.__prepend(newChild);
|
|
630
|
-
});
|
|
631
|
-
};
|
|
632
|
-
};
|
|
633
|
-
var patchSlotAppend = (HostElementPrototype) => {
|
|
634
|
-
HostElementPrototype.__append = HostElementPrototype.append;
|
|
635
|
-
HostElementPrototype.append = function(...newChildren) {
|
|
636
|
-
newChildren.forEach((newChild) => {
|
|
637
|
-
if (typeof newChild === "string") {
|
|
638
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
639
|
-
}
|
|
640
|
-
this.appendChild(newChild);
|
|
641
|
-
});
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
|
-
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
645
|
-
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
646
|
-
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
647
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
648
|
-
return originalInsertAdjacentHtml.call(this, position, text);
|
|
649
|
-
}
|
|
650
|
-
const container = this.ownerDocument.createElement("_");
|
|
651
|
-
let node;
|
|
652
|
-
container.innerHTML = text;
|
|
653
|
-
if (position === "afterbegin") {
|
|
654
|
-
while (node = container.firstChild) {
|
|
655
|
-
this.prepend(node);
|
|
656
|
-
}
|
|
657
|
-
} else if (position === "beforeend") {
|
|
658
|
-
while (node = container.firstChild) {
|
|
659
|
-
this.append(node);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
};
|
|
664
|
-
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
665
|
-
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
666
|
-
this.insertAdjacentHTML(position, text);
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
var patchInsertBefore = (HostElementPrototype) => {
|
|
670
|
-
const eleProto = HostElementPrototype;
|
|
671
|
-
if (eleProto.__insertBefore) return;
|
|
672
|
-
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
673
|
-
HostElementPrototype.insertBefore = function(newChild, currentChild) {
|
|
674
|
-
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
675
|
-
const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
676
|
-
if (slotNode) {
|
|
677
|
-
let found = false;
|
|
678
|
-
slottedNodes.forEach((childNode) => {
|
|
679
|
-
if (childNode === currentChild || currentChild === null) {
|
|
680
|
-
found = true;
|
|
681
|
-
if (currentChild === null || slotName !== currentChild["s-sn"]) {
|
|
682
|
-
this.appendChild(newChild);
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
if (slotName === currentChild["s-sn"]) {
|
|
686
|
-
addSlotRelocateNode(newChild, slotNode);
|
|
687
|
-
const parent = internalCall(currentChild, "parentNode");
|
|
688
|
-
internalCall(parent, "insertBefore")(newChild, currentChild);
|
|
689
|
-
dispatchSlotChangeEvent(slotNode);
|
|
690
|
-
}
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
});
|
|
694
|
-
if (found) return newChild;
|
|
695
|
-
}
|
|
696
|
-
const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
|
|
697
|
-
if (parentNode && !this.isSameNode(parentNode)) {
|
|
698
|
-
return this.appendChild(newChild);
|
|
699
|
-
}
|
|
700
|
-
return this.__insertBefore(newChild, currentChild);
|
|
701
|
-
};
|
|
702
|
-
};
|
|
703
|
-
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
704
|
-
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
705
|
-
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
706
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
707
|
-
return originalInsertAdjacentElement.call(this, position, element);
|
|
708
|
-
}
|
|
709
|
-
if (position === "afterbegin") {
|
|
710
|
-
this.prepend(element);
|
|
711
|
-
return element;
|
|
712
|
-
} else if (position === "beforeend") {
|
|
713
|
-
this.append(element);
|
|
714
|
-
return element;
|
|
715
|
-
}
|
|
716
|
-
return element;
|
|
717
|
-
};
|
|
718
|
-
};
|
|
719
|
-
var patchTextContent = (hostElementPrototype) => {
|
|
720
|
-
patchHostOriginalAccessor("textContent", hostElementPrototype);
|
|
721
|
-
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
722
|
-
get: function() {
|
|
723
|
-
let text = "";
|
|
724
|
-
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
725
|
-
childNodes.forEach((node) => text += node.textContent || "");
|
|
726
|
-
return text;
|
|
727
|
-
},
|
|
728
|
-
set: function(value) {
|
|
729
|
-
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
730
|
-
childNodes.forEach((node) => {
|
|
731
|
-
if (node["s-ol"]) node["s-ol"].remove();
|
|
732
|
-
node.remove();
|
|
733
|
-
});
|
|
734
|
-
this.insertAdjacentHTML("beforeend", value);
|
|
735
|
-
}
|
|
736
|
-
});
|
|
737
|
-
};
|
|
738
|
-
var patchChildSlotNodes = (elm) => {
|
|
739
|
-
class FakeNodeList extends Array {
|
|
740
|
-
item(n) {
|
|
741
|
-
return this[n];
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
patchHostOriginalAccessor("children", elm);
|
|
745
|
-
Object.defineProperty(elm, "children", {
|
|
746
|
-
get() {
|
|
747
|
-
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
Object.defineProperty(elm, "childElementCount", {
|
|
751
|
-
get() {
|
|
752
|
-
return this.children.length;
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
|
-
patchHostOriginalAccessor("firstChild", elm);
|
|
756
|
-
Object.defineProperty(elm, "firstChild", {
|
|
757
|
-
get() {
|
|
758
|
-
return this.childNodes[0];
|
|
759
|
-
}
|
|
760
|
-
});
|
|
761
|
-
patchHostOriginalAccessor("lastChild", elm);
|
|
762
|
-
Object.defineProperty(elm, "lastChild", {
|
|
763
|
-
get() {
|
|
764
|
-
return this.childNodes[this.childNodes.length - 1];
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
patchHostOriginalAccessor("childNodes", elm);
|
|
768
|
-
Object.defineProperty(elm, "childNodes", {
|
|
769
|
-
get() {
|
|
770
|
-
const result = new FakeNodeList();
|
|
771
|
-
result.push(...getSlottedChildNodes(this.__childNodes));
|
|
772
|
-
return result;
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
};
|
|
776
|
-
var patchSlottedNode = (node) => {
|
|
777
|
-
if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
|
|
778
|
-
patchNextSibling(node);
|
|
779
|
-
patchPreviousSibling(node);
|
|
780
|
-
patchParentNode(node);
|
|
781
|
-
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
782
|
-
patchNextElementSibling(node);
|
|
783
|
-
patchPreviousElementSibling(node);
|
|
784
|
-
}
|
|
785
|
-
};
|
|
786
|
-
var patchNextSibling = (node) => {
|
|
787
|
-
if (!node || node.__nextSibling) return;
|
|
788
|
-
patchHostOriginalAccessor("nextSibling", node);
|
|
789
|
-
Object.defineProperty(node, "nextSibling", {
|
|
790
|
-
get: function() {
|
|
791
|
-
var _a;
|
|
792
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
793
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
794
|
-
if (parentNodes && index > -1) {
|
|
795
|
-
return parentNodes[index + 1];
|
|
796
|
-
}
|
|
797
|
-
return this.__nextSibling;
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
};
|
|
801
|
-
var patchNextElementSibling = (element) => {
|
|
802
|
-
if (!element || element.__nextElementSibling) return;
|
|
803
|
-
patchHostOriginalAccessor("nextElementSibling", element);
|
|
804
|
-
Object.defineProperty(element, "nextElementSibling", {
|
|
805
|
-
get: function() {
|
|
806
|
-
var _a;
|
|
807
|
-
const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
808
|
-
const index = parentEles == null ? void 0 : parentEles.indexOf(this);
|
|
809
|
-
if (parentEles && index > -1) {
|
|
810
|
-
return parentEles[index + 1];
|
|
811
|
-
}
|
|
812
|
-
return this.__nextElementSibling;
|
|
813
|
-
}
|
|
814
|
-
});
|
|
815
|
-
};
|
|
816
|
-
var patchPreviousSibling = (node) => {
|
|
817
|
-
if (!node || node.__previousSibling) return;
|
|
818
|
-
patchHostOriginalAccessor("previousSibling", node);
|
|
819
|
-
Object.defineProperty(node, "previousSibling", {
|
|
820
|
-
get: function() {
|
|
821
|
-
var _a;
|
|
822
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
823
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
824
|
-
if (parentNodes && index > -1) {
|
|
825
|
-
return parentNodes[index - 1];
|
|
826
|
-
}
|
|
827
|
-
return this.__previousSibling;
|
|
828
|
-
}
|
|
829
|
-
});
|
|
830
|
-
};
|
|
831
|
-
var patchPreviousElementSibling = (element) => {
|
|
832
|
-
if (!element || element.__previousElementSibling) return;
|
|
833
|
-
patchHostOriginalAccessor("previousElementSibling", element);
|
|
834
|
-
Object.defineProperty(element, "previousElementSibling", {
|
|
835
|
-
get: function() {
|
|
836
|
-
var _a;
|
|
837
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
838
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
839
|
-
if (parentNodes && index > -1) {
|
|
840
|
-
return parentNodes[index - 1];
|
|
841
|
-
}
|
|
842
|
-
return this.__previousElementSibling;
|
|
843
|
-
}
|
|
844
|
-
});
|
|
845
|
-
};
|
|
846
|
-
var patchParentNode = (node) => {
|
|
847
|
-
if (!node || node.__parentNode) return;
|
|
848
|
-
patchHostOriginalAccessor("parentNode", node);
|
|
849
|
-
Object.defineProperty(node, "parentNode", {
|
|
850
|
-
get: function() {
|
|
851
|
-
var _a;
|
|
852
|
-
return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
|
|
853
|
-
},
|
|
854
|
-
set: function(value) {
|
|
855
|
-
this.__parentNode = value;
|
|
856
|
-
}
|
|
857
|
-
});
|
|
858
|
-
};
|
|
859
|
-
var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
|
|
860
|
-
var validNodesPatches = [
|
|
861
|
-
"childNodes",
|
|
862
|
-
"firstChild",
|
|
863
|
-
"lastChild",
|
|
864
|
-
"nextSibling",
|
|
865
|
-
"previousSibling",
|
|
866
|
-
"textContent",
|
|
867
|
-
"parentNode"
|
|
868
|
-
];
|
|
869
|
-
function patchHostOriginalAccessor(accessorName, node) {
|
|
870
|
-
let accessor;
|
|
871
|
-
if (validElementPatches.includes(accessorName)) {
|
|
872
|
-
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
873
|
-
} else if (validNodesPatches.includes(accessorName)) {
|
|
874
|
-
accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
|
|
875
|
-
}
|
|
876
|
-
if (!accessor) {
|
|
877
|
-
accessor = Object.getOwnPropertyDescriptor(node, accessorName);
|
|
878
|
-
}
|
|
879
|
-
if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
|
|
880
|
-
}
|
|
881
|
-
function internalCall(node, method) {
|
|
882
|
-
if ("__" + method in node) {
|
|
883
|
-
const toReturn = node["__" + method];
|
|
884
|
-
if (typeof toReturn !== "function") return toReturn;
|
|
885
|
-
return toReturn.bind(node);
|
|
886
|
-
} else {
|
|
887
|
-
if (typeof node[method] !== "function") return node[method];
|
|
888
|
-
return node[method].bind(node);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
234
|
var createTime = (fnName, tagName = "") => {
|
|
892
235
|
{
|
|
893
236
|
return () => {
|
|
@@ -1016,166 +359,54 @@ var convertToPrivate = (node) => {
|
|
|
1016
359
|
|
|
1017
360
|
// src/runtime/client-hydrate.ts
|
|
1018
361
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1019
|
-
var _a;
|
|
1020
362
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1021
363
|
const shadowRoot = hostElm.shadowRoot;
|
|
1022
364
|
const childRenderNodes = [];
|
|
1023
365
|
const slotNodes = [];
|
|
1024
|
-
const slottedNodes = [];
|
|
1025
366
|
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1026
|
-
const vnode = newVNode(tagName, null);
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
1030
|
-
var _a2;
|
|
1031
|
-
if (!(memberFlags & 31 /* Prop */)) {
|
|
1032
|
-
return;
|
|
1033
|
-
}
|
|
1034
|
-
const attributeName = metaAttributeName || memberName;
|
|
1035
|
-
const attrVal = hostElm.getAttribute(attributeName);
|
|
1036
|
-
if (attrVal !== null) {
|
|
1037
|
-
const attrPropVal = parsePropertyValue(attrVal, memberFlags);
|
|
1038
|
-
(_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
|
|
1039
|
-
}
|
|
1040
|
-
});
|
|
1041
|
-
let scopeId2;
|
|
1042
|
-
{
|
|
1043
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1044
|
-
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
1045
|
-
scopeId2 = hostElm["s-sc"];
|
|
1046
|
-
hostElm.classList.add(scopeId2 + "-h");
|
|
1047
|
-
} else if (hostElm["s-sc"]) {
|
|
1048
|
-
delete hostElm["s-sc"];
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
1052
|
-
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
367
|
+
const vnode = hostRef.$vnode$ = newVNode(tagName, null);
|
|
368
|
+
if (!plt.$orgLocNodes$) {
|
|
369
|
+
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1053
370
|
}
|
|
1054
371
|
hostElm[HYDRATE_ID] = hostId;
|
|
1055
372
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
slotNodes,
|
|
1060
|
-
shadowRootNodes,
|
|
1061
|
-
hostElm,
|
|
1062
|
-
hostElm,
|
|
1063
|
-
hostId,
|
|
1064
|
-
slottedNodes
|
|
1065
|
-
);
|
|
1066
|
-
let crIndex = 0;
|
|
1067
|
-
const crLength = childRenderNodes.length;
|
|
1068
|
-
let childRenderNode;
|
|
1069
|
-
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1070
|
-
childRenderNode = childRenderNodes[crIndex];
|
|
1071
|
-
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
373
|
+
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
374
|
+
childRenderNodes.map((c) => {
|
|
375
|
+
const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
|
|
1072
376
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1073
|
-
const node =
|
|
1074
|
-
if (
|
|
1075
|
-
node
|
|
1076
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1077
|
-
node["s-cr"] = hostElm["s-cr"];
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1081
|
-
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
1082
|
-
if (childRenderNode.$children$) {
|
|
1083
|
-
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
1084
|
-
if (!childRenderNode.$elm$.childNodes.length) {
|
|
1085
|
-
childRenderNode.$children$.forEach((c) => {
|
|
1086
|
-
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
} else {
|
|
1090
|
-
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
1091
|
-
}
|
|
377
|
+
const node = c.$elm$;
|
|
378
|
+
if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
|
|
379
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1092
380
|
}
|
|
1093
|
-
if (
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
if (!shadowRoot) {
|
|
1099
|
-
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
381
|
+
if (!shadowRoot) {
|
|
382
|
+
node["s-hn"] = tagName;
|
|
383
|
+
if (orgLocationNode) {
|
|
384
|
+
node["s-ol"] = orgLocationNode;
|
|
385
|
+
node["s-ol"]["s-nr"] = node;
|
|
1100
386
|
}
|
|
1101
387
|
}
|
|
1102
388
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
let snGroupIdx;
|
|
1109
|
-
let snGroupLen;
|
|
1110
|
-
let slottedItem;
|
|
1111
|
-
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1112
|
-
slotGroup = slottedNodes[snIndex];
|
|
1113
|
-
if (!slotGroup || !slotGroup.length) continue;
|
|
1114
|
-
snGroupLen = slotGroup.length;
|
|
1115
|
-
snGroupIdx = 0;
|
|
1116
|
-
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1117
|
-
slottedItem = slotGroup[snGroupIdx];
|
|
1118
|
-
if (!hosts[slottedItem.hostId]) {
|
|
1119
|
-
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1120
|
-
}
|
|
1121
|
-
if (!hosts[slottedItem.hostId]) continue;
|
|
1122
|
-
const hostEle = hosts[slottedItem.hostId];
|
|
1123
|
-
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1124
|
-
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1125
|
-
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1126
|
-
slottedItem.slot["s-cr"] = hostEle;
|
|
1127
|
-
} else {
|
|
1128
|
-
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1129
|
-
}
|
|
1130
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1131
|
-
{
|
|
1132
|
-
patchSlottedNode(slottedItem.node);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1136
|
-
hostEle.appendChild(slottedItem.node);
|
|
389
|
+
});
|
|
390
|
+
if (shadowRoot) {
|
|
391
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
392
|
+
if (shadowRootNode) {
|
|
393
|
+
shadowRoot.appendChild(shadowRootNode);
|
|
1137
394
|
}
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
if (scopeId2 && slotNodes.length) {
|
|
1141
|
-
slotNodes.forEach((slot) => {
|
|
1142
|
-
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1143
395
|
});
|
|
1144
396
|
}
|
|
1145
|
-
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
1146
|
-
let rnIdex = 0;
|
|
1147
|
-
const rnLen = shadowRootNodes.length;
|
|
1148
|
-
if (rnLen) {
|
|
1149
|
-
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1150
|
-
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
1151
|
-
}
|
|
1152
|
-
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1153
|
-
if (typeof node["s-sn"] !== "string") {
|
|
1154
|
-
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1155
|
-
node.removeAttribute("hidden");
|
|
1156
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1157
|
-
node.parentNode.removeChild(node);
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1164
|
-
hostRef.$hostElement$ = hostElm;
|
|
1165
397
|
endHydrate();
|
|
1166
398
|
};
|
|
1167
|
-
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId
|
|
399
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
|
|
1168
400
|
let childNodeType;
|
|
1169
401
|
let childIdSplt;
|
|
1170
402
|
let childVNode;
|
|
1171
403
|
let i2;
|
|
1172
|
-
const scopeId2 = hostElm["s-sc"];
|
|
1173
404
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1174
405
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1175
406
|
if (childNodeType) {
|
|
1176
407
|
childIdSplt = childNodeType.split(".");
|
|
1177
408
|
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1178
|
-
childVNode =
|
|
409
|
+
childVNode = {
|
|
1179
410
|
$flags$: 0,
|
|
1180
411
|
$hostId$: childIdSplt[0],
|
|
1181
412
|
$nodeId$: childIdSplt[1],
|
|
@@ -1183,43 +414,18 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1183
414
|
$index$: childIdSplt[3],
|
|
1184
415
|
$tag$: node.tagName.toLowerCase(),
|
|
1185
416
|
$elm$: node,
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
$
|
|
1189
|
-
|
|
417
|
+
$attrs$: null,
|
|
418
|
+
$children$: null,
|
|
419
|
+
$key$: null,
|
|
420
|
+
$name$: null,
|
|
421
|
+
$text$: null
|
|
422
|
+
};
|
|
1190
423
|
childRenderNodes.push(childVNode);
|
|
1191
424
|
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1192
425
|
if (!parentVNode.$children$) {
|
|
1193
426
|
parentVNode.$children$ = [];
|
|
1194
427
|
}
|
|
1195
|
-
|
|
1196
|
-
node["s-si"] = scopeId2;
|
|
1197
|
-
childVNode.$attrs$.class += " " + scopeId2;
|
|
1198
|
-
}
|
|
1199
|
-
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1200
|
-
if (typeof slotName === "string") {
|
|
1201
|
-
if (childVNode.$tag$ === "slot-fb") {
|
|
1202
|
-
addSlot(
|
|
1203
|
-
slotName,
|
|
1204
|
-
childIdSplt[2],
|
|
1205
|
-
childVNode,
|
|
1206
|
-
node,
|
|
1207
|
-
parentVNode,
|
|
1208
|
-
childRenderNodes,
|
|
1209
|
-
slotNodes,
|
|
1210
|
-
shadowRootNodes,
|
|
1211
|
-
slottedNodes
|
|
1212
|
-
);
|
|
1213
|
-
if (scopeId2) {
|
|
1214
|
-
node.classList.add(scopeId2);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
childVNode.$elm$["s-sn"] = slotName;
|
|
1218
|
-
childVNode.$elm$.removeAttribute("s-sn");
|
|
1219
|
-
}
|
|
1220
|
-
if (childVNode.$index$ !== void 0) {
|
|
1221
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1222
|
-
}
|
|
428
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1223
429
|
parentVNode = childVNode;
|
|
1224
430
|
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1225
431
|
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
@@ -1235,33 +441,31 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1235
441
|
shadowRootNodes,
|
|
1236
442
|
hostElm,
|
|
1237
443
|
node.shadowRoot.childNodes[i2],
|
|
1238
|
-
hostId
|
|
1239
|
-
slottedNodes
|
|
444
|
+
hostId
|
|
1240
445
|
);
|
|
1241
446
|
}
|
|
1242
447
|
}
|
|
1243
|
-
|
|
1244
|
-
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
448
|
+
for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1245
449
|
clientHydrate(
|
|
1246
450
|
parentVNode,
|
|
1247
451
|
childRenderNodes,
|
|
1248
452
|
slotNodes,
|
|
1249
453
|
shadowRootNodes,
|
|
1250
454
|
hostElm,
|
|
1251
|
-
|
|
1252
|
-
hostId
|
|
1253
|
-
slottedNodes
|
|
455
|
+
node.childNodes[i2],
|
|
456
|
+
hostId
|
|
1254
457
|
);
|
|
1255
458
|
}
|
|
1256
459
|
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1257
460
|
childIdSplt = node.nodeValue.split(".");
|
|
1258
461
|
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1259
462
|
childNodeType = childIdSplt[0];
|
|
1260
|
-
childVNode =
|
|
463
|
+
childVNode = {
|
|
464
|
+
$flags$: 0,
|
|
1261
465
|
$hostId$: childIdSplt[1],
|
|
1262
466
|
$nodeId$: childIdSplt[2],
|
|
1263
467
|
$depth$: childIdSplt[3],
|
|
1264
|
-
$index$: childIdSplt[4]
|
|
468
|
+
$index$: childIdSplt[4],
|
|
1265
469
|
$elm$: node,
|
|
1266
470
|
$attrs$: null,
|
|
1267
471
|
$children$: null,
|
|
@@ -1269,43 +473,46 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1269
473
|
$name$: null,
|
|
1270
474
|
$tag$: null,
|
|
1271
475
|
$text$: null
|
|
1272
|
-
}
|
|
476
|
+
};
|
|
1273
477
|
if (childNodeType === TEXT_NODE_ID) {
|
|
1274
|
-
childVNode.$elm$ =
|
|
478
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1275
479
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1276
480
|
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1277
481
|
childRenderNodes.push(childVNode);
|
|
1278
482
|
node.remove();
|
|
1279
|
-
if (
|
|
1280
|
-
|
|
1281
|
-
parentVNode.$children$ = [];
|
|
1282
|
-
}
|
|
1283
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
483
|
+
if (!parentVNode.$children$) {
|
|
484
|
+
parentVNode.$children$ = [];
|
|
1284
485
|
}
|
|
486
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1285
487
|
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1286
488
|
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1287
489
|
}
|
|
1288
490
|
}
|
|
1289
|
-
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1290
|
-
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
1291
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1292
|
-
childRenderNodes.push(childVNode);
|
|
1293
|
-
node.remove();
|
|
1294
|
-
}
|
|
1295
491
|
} else if (childVNode.$hostId$ === hostId) {
|
|
1296
492
|
if (childNodeType === SLOT_NODE_ID) {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
493
|
+
childVNode.$tag$ = "slot";
|
|
494
|
+
if (childIdSplt[5]) {
|
|
495
|
+
node["s-sn"] = childVNode.$name$ = childIdSplt[5];
|
|
496
|
+
} else {
|
|
497
|
+
node["s-sn"] = "";
|
|
498
|
+
}
|
|
499
|
+
node["s-sr"] = true;
|
|
500
|
+
if (shadowRootNodes) {
|
|
501
|
+
childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
502
|
+
if (childVNode.$name$) {
|
|
503
|
+
childVNode.$elm$.setAttribute("name", childVNode.$name$);
|
|
504
|
+
}
|
|
505
|
+
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
506
|
+
node.remove();
|
|
507
|
+
if (childVNode.$depth$ === "0") {
|
|
508
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
slotNodes.push(childVNode);
|
|
512
|
+
if (!parentVNode.$children$) {
|
|
513
|
+
parentVNode.$children$ = [];
|
|
514
|
+
}
|
|
515
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1309
516
|
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1310
517
|
if (shadowRootNodes) {
|
|
1311
518
|
node.remove();
|
|
@@ -1321,28 +528,18 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1321
528
|
vnode.$elm$ = node;
|
|
1322
529
|
vnode.$index$ = "0";
|
|
1323
530
|
parentVNode.$children$ = [vnode];
|
|
1324
|
-
} else {
|
|
1325
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1326
|
-
node.remove();
|
|
1327
|
-
}
|
|
1328
531
|
}
|
|
1329
|
-
return parentVNode;
|
|
1330
532
|
};
|
|
1331
533
|
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1332
534
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1333
|
-
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1334
|
-
if (componentId) {
|
|
1335
|
-
orgLocNodes.set(componentId, node);
|
|
1336
|
-
}
|
|
1337
535
|
let i2 = 0;
|
|
1338
536
|
if (node.shadowRoot) {
|
|
1339
537
|
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1340
538
|
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1341
539
|
}
|
|
1342
540
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
541
|
+
for (i2 = 0; i2 < node.childNodes.length; i2++) {
|
|
542
|
+
initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
|
|
1346
543
|
}
|
|
1347
544
|
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1348
545
|
const childIdSplt = node.nodeValue.split(".");
|
|
@@ -1353,110 +550,18 @@ var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
1353
550
|
}
|
|
1354
551
|
}
|
|
1355
552
|
};
|
|
1356
|
-
var createSimpleVNode = (vnode) => {
|
|
1357
|
-
const defaultVNode = {
|
|
1358
|
-
$flags$: 0,
|
|
1359
|
-
$hostId$: null,
|
|
1360
|
-
$nodeId$: null,
|
|
1361
|
-
$depth$: null,
|
|
1362
|
-
$index$: "0",
|
|
1363
|
-
$elm$: null,
|
|
1364
|
-
$attrs$: null,
|
|
1365
|
-
$children$: null,
|
|
1366
|
-
$key$: null,
|
|
1367
|
-
$name$: null,
|
|
1368
|
-
$tag$: null,
|
|
1369
|
-
$text$: null
|
|
1370
|
-
};
|
|
1371
|
-
return { ...defaultVNode, ...vnode };
|
|
1372
|
-
};
|
|
1373
|
-
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1374
|
-
node["s-sr"] = true;
|
|
1375
|
-
childVNode.$name$ = slotName || null;
|
|
1376
|
-
childVNode.$tag$ = "slot";
|
|
1377
|
-
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1378
|
-
if (shadowRootNodes && win.document) {
|
|
1379
|
-
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1380
|
-
if (childVNode.$name$) {
|
|
1381
|
-
childVNode.$elm$.setAttribute("name", slotName);
|
|
1382
|
-
}
|
|
1383
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1384
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1385
|
-
} else {
|
|
1386
|
-
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
1387
|
-
}
|
|
1388
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1389
|
-
node.remove();
|
|
1390
|
-
if (childVNode.$depth$ === "0") {
|
|
1391
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1392
|
-
}
|
|
1393
|
-
} else {
|
|
1394
|
-
const slot = childVNode.$elm$;
|
|
1395
|
-
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1396
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1397
|
-
patchSlotNode(node);
|
|
1398
|
-
if (shouldMove) {
|
|
1399
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1400
|
-
}
|
|
1401
|
-
childRenderNodes.push(childVNode);
|
|
1402
|
-
}
|
|
1403
|
-
slotNodes.push(childVNode);
|
|
1404
|
-
if (!parentVNode.$children$) {
|
|
1405
|
-
parentVNode.$children$ = [];
|
|
1406
|
-
}
|
|
1407
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1408
|
-
}
|
|
1409
|
-
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1410
|
-
let slottedNode = slotNode.nextSibling;
|
|
1411
|
-
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1412
|
-
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 */))) {
|
|
1413
|
-
slottedNode["s-sn"] = slotName;
|
|
1414
|
-
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1415
|
-
slottedNode = slottedNode.nextSibling;
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
|
-
var findCorrespondingNode = (node, type) => {
|
|
1419
|
-
let sibling = node;
|
|
1420
|
-
do {
|
|
1421
|
-
sibling = sibling.nextSibling;
|
|
1422
|
-
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1423
|
-
return sibling;
|
|
1424
|
-
};
|
|
1425
|
-
var createSupportsRuleRe = (selector) => {
|
|
1426
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
1427
|
-
return new RegExp(
|
|
1428
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
1429
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
1430
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
1431
|
-
"g"
|
|
1432
|
-
);
|
|
1433
|
-
};
|
|
1434
|
-
createSupportsRuleRe("::slotted");
|
|
1435
|
-
createSupportsRuleRe(":host");
|
|
1436
|
-
createSupportsRuleRe(":host-context");
|
|
1437
553
|
|
|
1438
554
|
// src/runtime/mode.ts
|
|
1439
555
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
1440
556
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
1441
557
|
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
1442
558
|
var parsePropertyValue = (propValue, propType) => {
|
|
1443
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1444
|
-
try {
|
|
1445
|
-
propValue = JSON.parse(propValue);
|
|
1446
|
-
return propValue;
|
|
1447
|
-
} catch (e) {
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1451
|
-
propValue = deserializeProperty(propValue);
|
|
1452
|
-
return propValue;
|
|
1453
|
-
}
|
|
1454
559
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1455
560
|
if (propType & 4 /* Boolean */) {
|
|
1456
561
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1457
562
|
}
|
|
1458
563
|
if (propType & 2 /* Number */) {
|
|
1459
|
-
return
|
|
564
|
+
return parseFloat(propValue);
|
|
1460
565
|
}
|
|
1461
566
|
if (propType & 1 /* String */) {
|
|
1462
567
|
return String(propValue);
|
|
@@ -1505,10 +610,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1505
610
|
var _a;
|
|
1506
611
|
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1507
612
|
const style = styles.get(scopeId2);
|
|
1508
|
-
|
|
1509
|
-
return scopeId2;
|
|
1510
|
-
}
|
|
1511
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
613
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
1512
614
|
if (style) {
|
|
1513
615
|
if (typeof style === "string") {
|
|
1514
616
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1521,39 +623,23 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1521
623
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1522
624
|
styleElm.innerHTML = style;
|
|
1523
625
|
} else {
|
|
1524
|
-
styleElm =
|
|
626
|
+
styleElm = doc.createElement("style");
|
|
1525
627
|
styleElm.innerHTML = style;
|
|
1526
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
628
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
1527
629
|
if (nonce != null) {
|
|
1528
630
|
styleElm.setAttribute("nonce", nonce);
|
|
1529
631
|
}
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
stylesheet.replaceSync(style);
|
|
1542
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1543
|
-
} else {
|
|
1544
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1545
|
-
if (existingStyleContainer) {
|
|
1546
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1547
|
-
} else {
|
|
1548
|
-
styleContainerNode.prepend(styleElm);
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
} else {
|
|
1552
|
-
styleContainerNode.append(styleElm);
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1556
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
632
|
+
const injectStyle = (
|
|
633
|
+
/**
|
|
634
|
+
* we render a scoped component
|
|
635
|
+
*/
|
|
636
|
+
!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
|
|
637
|
+
* we are using shadow dom and render the style tag within the shadowRoot
|
|
638
|
+
*/
|
|
639
|
+
cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
|
|
640
|
+
);
|
|
641
|
+
if (injectStyle) {
|
|
642
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
1557
643
|
}
|
|
1558
644
|
}
|
|
1559
645
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -1579,177 +665,131 @@ var attachStyles = (hostRef) => {
|
|
|
1579
665
|
cmpMeta,
|
|
1580
666
|
hostRef.$modeName$
|
|
1581
667
|
);
|
|
1582
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
668
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1583
669
|
elm["s-sc"] = scopeId2;
|
|
1584
670
|
elm.classList.add(scopeId2 + "-h");
|
|
671
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
672
|
+
elm.classList.add(scopeId2 + "-s");
|
|
673
|
+
}
|
|
1585
674
|
}
|
|
1586
675
|
endAttachStyles();
|
|
1587
676
|
};
|
|
1588
677
|
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1589
|
-
var
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1601
|
-
if (oldValue === newValue) {
|
|
1602
|
-
return;
|
|
1603
|
-
}
|
|
1604
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
1605
|
-
let ln = memberName.toLowerCase();
|
|
1606
|
-
if (memberName === "class") {
|
|
1607
|
-
const classList = elm.classList;
|
|
1608
|
-
const oldClasses = parseClassList(oldValue);
|
|
1609
|
-
let newClasses = parseClassList(newValue);
|
|
1610
|
-
if (elm["s-si"] && initialRender) {
|
|
1611
|
-
newClasses.push(elm["s-si"]);
|
|
1612
|
-
oldClasses.forEach((c) => {
|
|
1613
|
-
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
1614
|
-
});
|
|
1615
|
-
newClasses = [...new Set(newClasses)];
|
|
1616
|
-
classList.add(...newClasses);
|
|
1617
|
-
} else {
|
|
678
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
679
|
+
if (oldValue !== newValue) {
|
|
680
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
681
|
+
let ln = memberName.toLowerCase();
|
|
682
|
+
if (memberName === "class") {
|
|
683
|
+
const classList = elm.classList;
|
|
684
|
+
const oldClasses = parseClassList(oldValue);
|
|
685
|
+
const newClasses = parseClassList(newValue);
|
|
1618
686
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1619
687
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
688
|
+
} else if (memberName === "style") {
|
|
689
|
+
{
|
|
690
|
+
for (const prop in oldValue) {
|
|
691
|
+
if (!newValue || newValue[prop] == null) {
|
|
692
|
+
if (prop.includes("-")) {
|
|
693
|
+
elm.style.removeProperty(prop);
|
|
694
|
+
} else {
|
|
695
|
+
elm.style[prop] = "";
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
for (const prop in newValue) {
|
|
701
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1625
702
|
if (prop.includes("-")) {
|
|
1626
|
-
elm.style.
|
|
703
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
1627
704
|
} else {
|
|
1628
|
-
elm.style[prop] =
|
|
705
|
+
elm.style[prop] = newValue[prop];
|
|
1629
706
|
}
|
|
1630
707
|
}
|
|
1631
708
|
}
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
if (prop.includes("-")) {
|
|
1636
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
1637
|
-
} else {
|
|
1638
|
-
elm.style[prop] = newValue[prop];
|
|
1639
|
-
}
|
|
709
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
710
|
+
if (newValue) {
|
|
711
|
+
newValue(elm);
|
|
1640
712
|
}
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
memberName = memberName.slice(3);
|
|
1649
|
-
} else if (isMemberInElement(win, ln)) {
|
|
1650
|
-
memberName = ln.slice(2);
|
|
1651
|
-
} else {
|
|
1652
|
-
memberName = ln[2] + memberName.slice(3);
|
|
1653
|
-
}
|
|
1654
|
-
if (oldValue || newValue) {
|
|
1655
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
1656
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
1657
|
-
if (oldValue) {
|
|
1658
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
713
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
714
|
+
if (memberName[2] === "-") {
|
|
715
|
+
memberName = memberName.slice(3);
|
|
716
|
+
} else if (isMemberInElement(win, ln)) {
|
|
717
|
+
memberName = ln.slice(2);
|
|
718
|
+
} else {
|
|
719
|
+
memberName = ln[2] + memberName.slice(3);
|
|
1659
720
|
}
|
|
1660
|
-
if (newValue) {
|
|
1661
|
-
|
|
721
|
+
if (oldValue || newValue) {
|
|
722
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
723
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
724
|
+
if (oldValue) {
|
|
725
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
726
|
+
}
|
|
727
|
+
if (newValue) {
|
|
728
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
729
|
+
}
|
|
1662
730
|
}
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
1673
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
731
|
+
} else {
|
|
732
|
+
const isComplex = isComplexType(newValue);
|
|
733
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
734
|
+
try {
|
|
735
|
+
if (!elm.tagName.includes("-")) {
|
|
736
|
+
const n = newValue == null ? "" : newValue;
|
|
737
|
+
if (memberName === "list") {
|
|
738
|
+
isProp = false;
|
|
739
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
1674
740
|
elm[memberName] = n;
|
|
1675
|
-
} else {
|
|
1676
|
-
elm.setAttribute(memberName, n);
|
|
1677
741
|
}
|
|
742
|
+
} else {
|
|
743
|
+
elm[memberName] = newValue;
|
|
1678
744
|
}
|
|
1679
|
-
}
|
|
1680
|
-
elm[memberName] = newValue;
|
|
745
|
+
} catch (e) {
|
|
1681
746
|
}
|
|
1682
|
-
} catch (e) {
|
|
1683
747
|
}
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
748
|
+
let xlink = false;
|
|
749
|
+
{
|
|
750
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
751
|
+
memberName = ln;
|
|
752
|
+
xlink = true;
|
|
753
|
+
}
|
|
1690
754
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
755
|
+
if (newValue == null || newValue === false) {
|
|
756
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
757
|
+
if (xlink) {
|
|
758
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
759
|
+
} else {
|
|
760
|
+
elm.removeAttribute(memberName);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
764
|
+
newValue = newValue === true ? "" : newValue;
|
|
1694
765
|
if (xlink) {
|
|
1695
|
-
elm.
|
|
766
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1696
767
|
} else {
|
|
1697
|
-
elm.
|
|
768
|
+
elm.setAttribute(memberName, newValue);
|
|
1698
769
|
}
|
|
1699
770
|
}
|
|
1700
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
1701
|
-
newValue = newValue === true ? "" : newValue;
|
|
1702
|
-
if (xlink) {
|
|
1703
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1704
|
-
} else {
|
|
1705
|
-
elm.setAttribute(memberName, newValue);
|
|
1706
|
-
}
|
|
1707
771
|
}
|
|
1708
772
|
}
|
|
1709
773
|
};
|
|
1710
774
|
var parseClassListRegex = /\s/;
|
|
1711
|
-
var parseClassList = (value) =>
|
|
1712
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
1713
|
-
value = value.baseVal;
|
|
1714
|
-
}
|
|
1715
|
-
if (!value || typeof value !== "string") {
|
|
1716
|
-
return [];
|
|
1717
|
-
}
|
|
1718
|
-
return value.split(parseClassListRegex);
|
|
1719
|
-
};
|
|
775
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
1720
776
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
1721
777
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
1722
778
|
|
|
1723
779
|
// src/runtime/vdom/update-element.ts
|
|
1724
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
780
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
1725
781
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1726
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
1727
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
782
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
783
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
1728
784
|
{
|
|
1729
785
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1730
786
|
if (!(memberName in newVnodeAttrs)) {
|
|
1731
|
-
setAccessor(
|
|
1732
|
-
elm,
|
|
1733
|
-
memberName,
|
|
1734
|
-
oldVnodeAttrs[memberName],
|
|
1735
|
-
void 0,
|
|
1736
|
-
isSvgMode2,
|
|
1737
|
-
newVnode.$flags$,
|
|
1738
|
-
isInitialRender
|
|
1739
|
-
);
|
|
787
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
1740
788
|
}
|
|
1741
789
|
}
|
|
1742
790
|
}
|
|
1743
791
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
1744
|
-
setAccessor(
|
|
1745
|
-
elm,
|
|
1746
|
-
memberName,
|
|
1747
|
-
oldVnodeAttrs[memberName],
|
|
1748
|
-
newVnodeAttrs[memberName],
|
|
1749
|
-
isSvgMode2,
|
|
1750
|
-
newVnode.$flags$,
|
|
1751
|
-
isInitialRender
|
|
1752
|
-
);
|
|
792
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
1753
793
|
}
|
|
1754
794
|
};
|
|
1755
795
|
function sortedAttrNames(attrNames) {
|
|
@@ -1770,7 +810,7 @@ var useNativeShadowDom = false;
|
|
|
1770
810
|
var checkSlotFallbackVisibility = false;
|
|
1771
811
|
var checkSlotRelocate = false;
|
|
1772
812
|
var isSvgMode = false;
|
|
1773
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
813
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
1774
814
|
var _a;
|
|
1775
815
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
1776
816
|
let i2 = 0;
|
|
@@ -1780,6 +820,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1780
820
|
if (!useNativeShadowDom) {
|
|
1781
821
|
checkSlotRelocate = true;
|
|
1782
822
|
if (newVNode2.$tag$ === "slot") {
|
|
823
|
+
if (scopeId) {
|
|
824
|
+
parentElm.classList.add(scopeId + "-s");
|
|
825
|
+
}
|
|
1783
826
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
1784
827
|
// slot element has fallback content
|
|
1785
828
|
// still create an element that "mocks" the slot element
|
|
@@ -1793,22 +836,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1793
836
|
}
|
|
1794
837
|
}
|
|
1795
838
|
if (newVNode2.$text$ !== null) {
|
|
1796
|
-
elm = newVNode2.$elm$ =
|
|
839
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1797
840
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1798
|
-
elm = newVNode2.$elm$ =
|
|
1799
|
-
{
|
|
1800
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
1801
|
-
}
|
|
841
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
1802
842
|
} else {
|
|
1803
843
|
if (!isSvgMode) {
|
|
1804
844
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1805
845
|
}
|
|
1806
|
-
|
|
1807
|
-
throw new Error(
|
|
1808
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1809
|
-
);
|
|
1810
|
-
}
|
|
1811
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
846
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
1812
847
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1813
848
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1814
849
|
) ;
|
|
@@ -1818,12 +853,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1818
853
|
{
|
|
1819
854
|
updateElement(null, newVNode2, isSvgMode);
|
|
1820
855
|
}
|
|
1821
|
-
|
|
856
|
+
const rootNode = elm.getRootNode();
|
|
857
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
858
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1822
859
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
1823
860
|
}
|
|
861
|
+
{
|
|
862
|
+
updateElementScopeIds(elm, parentElm);
|
|
863
|
+
}
|
|
1824
864
|
if (newVNode2.$children$) {
|
|
1825
865
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1826
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
866
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
1827
867
|
if (childNode) {
|
|
1828
868
|
elm.appendChild(childNode);
|
|
1829
869
|
}
|
|
@@ -1844,16 +884,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1844
884
|
elm["s-cr"] = contentRef;
|
|
1845
885
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1846
886
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1847
|
-
patchSlotNode(elm);
|
|
1848
887
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1849
888
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1850
889
|
{
|
|
1851
890
|
relocateToHostRoot(oldParentVNode.$elm$);
|
|
1852
891
|
}
|
|
1853
892
|
}
|
|
1854
|
-
{
|
|
1855
|
-
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
1856
|
-
}
|
|
1857
893
|
}
|
|
1858
894
|
}
|
|
1859
895
|
return elm;
|
|
@@ -1862,12 +898,8 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
1862
898
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1863
899
|
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
1864
900
|
if (host != null) {
|
|
1865
|
-
const contentRefNode = Array.from(host.
|
|
1866
|
-
|
|
1867
|
-
);
|
|
1868
|
-
const childNodeArray = Array.from(
|
|
1869
|
-
parentElm.__childNodes || parentElm.childNodes
|
|
1870
|
-
);
|
|
901
|
+
const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
|
|
902
|
+
const childNodeArray = Array.from(parentElm.childNodes);
|
|
1871
903
|
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
1872
904
|
if (childNode["s-sh"] != null) {
|
|
1873
905
|
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
@@ -1876,11 +908,11 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
1876
908
|
}
|
|
1877
909
|
}
|
|
1878
910
|
}
|
|
1879
|
-
plt.$flags$ &=
|
|
911
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1880
912
|
};
|
|
1881
913
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1882
914
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1883
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
915
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
1884
916
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
1885
917
|
let node = parentElm;
|
|
1886
918
|
while (node = node.nextSibling) {
|
|
@@ -1892,7 +924,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1892
924
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
1893
925
|
const childNode = oldSlotChildNodes[i2];
|
|
1894
926
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
1895
|
-
insertBefore(
|
|
927
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
1896
928
|
childNode["s-ol"].remove();
|
|
1897
929
|
childNode["s-ol"] = void 0;
|
|
1898
930
|
childNode["s-sh"] = void 0;
|
|
@@ -1902,7 +934,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1902
934
|
putBackInOriginalLocation(childNode, recursive);
|
|
1903
935
|
}
|
|
1904
936
|
}
|
|
1905
|
-
plt.$flags$ &=
|
|
937
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1906
938
|
};
|
|
1907
939
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1908
940
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -1912,7 +944,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1912
944
|
}
|
|
1913
945
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
1914
946
|
if (vnodes[startIdx]) {
|
|
1915
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
947
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1916
948
|
if (childNode) {
|
|
1917
949
|
vnodes[startIdx].$elm$ = childNode;
|
|
1918
950
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -1999,7 +1031,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1999
1031
|
if (idxInOld >= 0) {
|
|
2000
1032
|
elmToMove = oldCh[idxInOld];
|
|
2001
1033
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
2002
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
1034
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
2003
1035
|
} else {
|
|
2004
1036
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
2005
1037
|
oldCh[idxInOld] = void 0;
|
|
@@ -2007,16 +1039,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2007
1039
|
}
|
|
2008
1040
|
newStartVnode = newCh[++newStartIdx];
|
|
2009
1041
|
} else {
|
|
2010
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
1042
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
2011
1043
|
newStartVnode = newCh[++newStartIdx];
|
|
2012
1044
|
}
|
|
2013
1045
|
if (node) {
|
|
2014
1046
|
{
|
|
2015
|
-
insertBefore(
|
|
2016
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
2017
|
-
node,
|
|
2018
|
-
referenceNode(oldStartVnode.$elm$)
|
|
2019
|
-
);
|
|
1047
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
2020
1048
|
}
|
|
2021
1049
|
}
|
|
2022
1050
|
}
|
|
@@ -2037,19 +1065,28 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2037
1065
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
2038
1066
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
2039
1067
|
if (leftVNode.$tag$ === "slot") {
|
|
1068
|
+
if (
|
|
1069
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
1070
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
1071
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
1072
|
+
// hydration comments to be removed
|
|
1073
|
+
leftVNode.$elm$.nodeType !== 8
|
|
1074
|
+
) {
|
|
1075
|
+
return false;
|
|
1076
|
+
}
|
|
2040
1077
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
2041
1078
|
}
|
|
2042
1079
|
if (!isInitialRender) {
|
|
2043
1080
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
2044
1081
|
}
|
|
2045
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
2046
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
2047
|
-
}
|
|
2048
1082
|
return true;
|
|
2049
1083
|
}
|
|
2050
1084
|
return false;
|
|
2051
1085
|
};
|
|
2052
|
-
var referenceNode = (node) =>
|
|
1086
|
+
var referenceNode = (node) => {
|
|
1087
|
+
return node && node["s-ol"] || node;
|
|
1088
|
+
};
|
|
1089
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
2053
1090
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
2054
1091
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
2055
1092
|
const oldChildren = oldVNode.$children$;
|
|
@@ -2067,8 +1104,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2067
1104
|
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
2068
1105
|
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
2069
1106
|
}
|
|
1107
|
+
} else {
|
|
1108
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
2070
1109
|
}
|
|
2071
|
-
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
2072
1110
|
}
|
|
2073
1111
|
if (oldChildren !== null && newChildren !== null) {
|
|
2074
1112
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -2092,15 +1130,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2092
1130
|
elm.data = text;
|
|
2093
1131
|
}
|
|
2094
1132
|
};
|
|
1133
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
1134
|
+
const childNodes = elm.childNodes;
|
|
1135
|
+
for (const childNode of childNodes) {
|
|
1136
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1137
|
+
if (childNode["s-sr"]) {
|
|
1138
|
+
const slotName = childNode["s-sn"];
|
|
1139
|
+
childNode.hidden = false;
|
|
1140
|
+
for (const siblingNode of childNodes) {
|
|
1141
|
+
if (siblingNode !== childNode) {
|
|
1142
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
1143
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
1144
|
+
childNode.hidden = true;
|
|
1145
|
+
break;
|
|
1146
|
+
}
|
|
1147
|
+
} else {
|
|
1148
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
1149
|
+
childNode.hidden = true;
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
updateFallbackSlotVisibility(childNode);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
2095
1160
|
var relocateNodes = [];
|
|
2096
1161
|
var markSlotContentForRelocation = (elm) => {
|
|
2097
1162
|
let node;
|
|
2098
1163
|
let hostContentNodes;
|
|
2099
1164
|
let j;
|
|
2100
|
-
const
|
|
2101
|
-
for (const childNode of children) {
|
|
1165
|
+
for (const childNode of elm.childNodes) {
|
|
2102
1166
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
2103
|
-
hostContentNodes = node.parentNode.
|
|
1167
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
2104
1168
|
const slotName = childNode["s-sn"];
|
|
2105
1169
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2106
1170
|
node = hostContentNodes[j];
|
|
@@ -2142,6 +1206,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2142
1206
|
}
|
|
2143
1207
|
}
|
|
2144
1208
|
};
|
|
1209
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
1210
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1211
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
1212
|
+
return true;
|
|
1213
|
+
}
|
|
1214
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
1215
|
+
return true;
|
|
1216
|
+
}
|
|
1217
|
+
return false;
|
|
1218
|
+
}
|
|
1219
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
1220
|
+
return true;
|
|
1221
|
+
}
|
|
1222
|
+
return slotName === "";
|
|
1223
|
+
};
|
|
2145
1224
|
var nullifyVNodeRefs = (vNode) => {
|
|
2146
1225
|
{
|
|
2147
1226
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -2149,51 +1228,44 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
2149
1228
|
}
|
|
2150
1229
|
};
|
|
2151
1230
|
var insertBefore = (parent, newNode, reference) => {
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
1231
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1232
|
+
{
|
|
1233
|
+
updateElementScopeIds(newNode, parent);
|
|
1234
|
+
}
|
|
1235
|
+
return inserted;
|
|
1236
|
+
};
|
|
1237
|
+
var findScopeIds = (element) => {
|
|
1238
|
+
const scopeIds = [];
|
|
1239
|
+
if (element) {
|
|
1240
|
+
scopeIds.push(
|
|
1241
|
+
...element["s-scs"] || [],
|
|
1242
|
+
element["s-si"],
|
|
1243
|
+
element["s-sc"],
|
|
1244
|
+
...findScopeIds(element.parentElement)
|
|
1245
|
+
);
|
|
2167
1246
|
}
|
|
1247
|
+
return scopeIds;
|
|
2168
1248
|
};
|
|
2169
|
-
|
|
2170
|
-
var _a
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
let found = false;
|
|
2179
|
-
while (child) {
|
|
2180
|
-
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
2181
|
-
found = true;
|
|
2182
|
-
break;
|
|
1249
|
+
var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
1250
|
+
var _a;
|
|
1251
|
+
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1252
|
+
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1253
|
+
if (scopeIds.size) {
|
|
1254
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
|
|
1255
|
+
if (element["s-ol"] || iterateChildNodes) {
|
|
1256
|
+
for (const childNode of Array.from(element.childNodes)) {
|
|
1257
|
+
updateElementScopeIds(childNode, element, true);
|
|
2183
1258
|
}
|
|
2184
|
-
child = child.nextSibling;
|
|
2185
1259
|
}
|
|
2186
|
-
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
2187
1260
|
}
|
|
2188
1261
|
}
|
|
2189
|
-
}
|
|
1262
|
+
};
|
|
2190
1263
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
2191
1264
|
var _a, _b, _c, _d, _e;
|
|
2192
1265
|
const hostElm = hostRef.$hostElement$;
|
|
2193
1266
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2194
1267
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2195
|
-
const
|
|
2196
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1268
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
2197
1269
|
hostTagName = hostElm.tagName;
|
|
2198
1270
|
if (cmpMeta.$attrsToReflect$) {
|
|
2199
1271
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -2215,7 +1287,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2215
1287
|
{
|
|
2216
1288
|
scopeId = hostElm["s-sc"];
|
|
2217
1289
|
}
|
|
2218
|
-
useNativeShadowDom =
|
|
1290
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
2219
1291
|
{
|
|
2220
1292
|
contentRef = hostElm["s-cr"];
|
|
2221
1293
|
checkSlotFallbackVisibility = false;
|
|
@@ -2227,8 +1299,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2227
1299
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
2228
1300
|
for (const relocateData of relocateNodes) {
|
|
2229
1301
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2230
|
-
if (!nodeToRelocate["s-ol"]
|
|
2231
|
-
const orgLocationNode =
|
|
1302
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1303
|
+
const orgLocationNode = doc.createTextNode("");
|
|
2232
1304
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2233
1305
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
2234
1306
|
}
|
|
@@ -2239,11 +1311,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2239
1311
|
if (slotRefNode) {
|
|
2240
1312
|
const parentNodeRef = slotRefNode.parentNode;
|
|
2241
1313
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
2242
|
-
if (
|
|
1314
|
+
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
2243
1315
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
2244
1316
|
while (orgLocationNode) {
|
|
2245
1317
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
2246
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1318
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
2247
1319
|
refNode = refNode.nextSibling;
|
|
2248
1320
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
2249
1321
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -2256,17 +1328,15 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2256
1328
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
2257
1329
|
}
|
|
2258
1330
|
}
|
|
2259
|
-
|
|
2260
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
2261
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1331
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
2262
1332
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
2263
1333
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
2264
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1334
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
2265
1335
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
2266
1336
|
}
|
|
2267
1337
|
}
|
|
2268
1338
|
}
|
|
2269
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1339
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
2270
1340
|
} else {
|
|
2271
1341
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
2272
1342
|
if (isInitialLoad) {
|
|
@@ -2280,12 +1350,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2280
1350
|
if (checkSlotFallbackVisibility) {
|
|
2281
1351
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
2282
1352
|
}
|
|
2283
|
-
plt.$flags$ &=
|
|
1353
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
2284
1354
|
relocateNodes.length = 0;
|
|
2285
1355
|
}
|
|
2286
1356
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2287
|
-
const
|
|
2288
|
-
for (const childNode of children) {
|
|
1357
|
+
for (const childNode of rootVnode.$elm$.childNodes) {
|
|
2289
1358
|
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
2290
1359
|
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
2291
1360
|
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
@@ -2300,14 +1369,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2300
1369
|
// src/runtime/update-component.ts
|
|
2301
1370
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
2302
1371
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
2303
|
-
|
|
2304
|
-
new Promise(
|
|
2305
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
2306
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
2307
|
-
r();
|
|
2308
|
-
}
|
|
2309
|
-
)
|
|
2310
|
-
);
|
|
1372
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
2311
1373
|
}
|
|
2312
1374
|
};
|
|
2313
1375
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -2336,15 +1398,17 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2336
1398
|
{
|
|
2337
1399
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2338
1400
|
if (hostRef.$queuedListeners$) {
|
|
2339
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1401
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
2340
1402
|
hostRef.$queuedListeners$ = void 0;
|
|
2341
1403
|
}
|
|
2342
1404
|
}
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
1405
|
+
{
|
|
1406
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
{
|
|
1410
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
2346
1411
|
}
|
|
2347
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2348
1412
|
endSchedule();
|
|
2349
1413
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
2350
1414
|
};
|
|
@@ -2387,7 +1451,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2387
1451
|
try {
|
|
2388
1452
|
instance = instance.render && instance.render();
|
|
2389
1453
|
{
|
|
2390
|
-
hostRef.$flags$ &=
|
|
1454
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
2391
1455
|
}
|
|
2392
1456
|
{
|
|
2393
1457
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -2410,13 +1474,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2410
1474
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
2411
1475
|
const instance = hostRef.$lazyInstance$ ;
|
|
2412
1476
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2413
|
-
|
|
1477
|
+
{
|
|
1478
|
+
safeCall(instance, "componentDidRender");
|
|
1479
|
+
}
|
|
2414
1480
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
2415
1481
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
2416
1482
|
{
|
|
2417
1483
|
addHydratedFlag(elm);
|
|
2418
1484
|
}
|
|
2419
|
-
|
|
1485
|
+
{
|
|
1486
|
+
safeCall(instance, "componentDidLoad");
|
|
1487
|
+
}
|
|
2420
1488
|
endPostUpdate();
|
|
2421
1489
|
{
|
|
2422
1490
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -2425,7 +1493,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2425
1493
|
}
|
|
2426
1494
|
}
|
|
2427
1495
|
} else {
|
|
2428
|
-
|
|
1496
|
+
{
|
|
1497
|
+
safeCall(instance, "componentDidUpdate");
|
|
1498
|
+
}
|
|
2429
1499
|
endPostUpdate();
|
|
2430
1500
|
}
|
|
2431
1501
|
{
|
|
@@ -2439,7 +1509,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2439
1509
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
2440
1510
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
2441
1511
|
}
|
|
2442
|
-
hostRef.$flags$ &=
|
|
1512
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
2443
1513
|
}
|
|
2444
1514
|
};
|
|
2445
1515
|
var forceUpdate = (ref) => {
|
|
@@ -2453,14 +1523,17 @@ var forceUpdate = (ref) => {
|
|
|
2453
1523
|
}
|
|
2454
1524
|
};
|
|
2455
1525
|
var appDidLoad = (who) => {
|
|
1526
|
+
{
|
|
1527
|
+
addHydratedFlag(doc.documentElement);
|
|
1528
|
+
}
|
|
2456
1529
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2457
1530
|
};
|
|
2458
|
-
var safeCall = (instance, method, arg
|
|
1531
|
+
var safeCall = (instance, method, arg) => {
|
|
2459
1532
|
if (instance && instance[method]) {
|
|
2460
1533
|
try {
|
|
2461
1534
|
return instance[method](arg);
|
|
2462
1535
|
} catch (e) {
|
|
2463
|
-
consoleError(e
|
|
1536
|
+
consoleError(e);
|
|
2464
1537
|
}
|
|
2465
1538
|
}
|
|
2466
1539
|
return void 0;
|
|
@@ -2476,7 +1549,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2476
1549
|
const hostRef = getHostRef(ref);
|
|
2477
1550
|
if (!hostRef) {
|
|
2478
1551
|
throw new Error(
|
|
2479
|
-
`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/
|
|
1552
|
+
`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/ionic-team/stencil/issues/5457).`
|
|
2480
1553
|
);
|
|
2481
1554
|
}
|
|
2482
1555
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -2502,11 +1575,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2502
1575
|
}
|
|
2503
1576
|
}
|
|
2504
1577
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2505
|
-
if (instance.componentShouldUpdate) {
|
|
2506
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
2507
|
-
return;
|
|
2508
|
-
}
|
|
2509
|
-
}
|
|
2510
1578
|
scheduleUpdate(hostRef, false);
|
|
2511
1579
|
}
|
|
2512
1580
|
}
|
|
@@ -2524,68 +1592,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2524
1592
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2525
1593
|
members.map(([memberName, [memberFlags]]) => {
|
|
2526
1594
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
2527
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
2528
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
2529
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
2530
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
2531
|
-
Object.defineProperty(prototype, memberName, {
|
|
2532
|
-
get() {
|
|
2533
|
-
{
|
|
2534
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
2535
|
-
return getValue(this, memberName);
|
|
2536
|
-
}
|
|
2537
|
-
const ref = getHostRef(this);
|
|
2538
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
2539
|
-
if (!instance) return;
|
|
2540
|
-
return instance[memberName];
|
|
2541
|
-
}
|
|
2542
|
-
},
|
|
2543
|
-
configurable: true,
|
|
2544
|
-
enumerable: true
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
1595
|
Object.defineProperty(prototype, memberName, {
|
|
1596
|
+
get() {
|
|
1597
|
+
return getValue(this, memberName);
|
|
1598
|
+
},
|
|
2548
1599
|
set(newValue) {
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
2554
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2555
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2556
|
-
}
|
|
2557
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
2558
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2559
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
2560
|
-
return;
|
|
2561
|
-
}
|
|
2562
|
-
{
|
|
2563
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
2564
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
2565
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
2566
|
-
ref.$onReadyPromise$.then(() => {
|
|
2567
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
2568
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
2569
|
-
}
|
|
2570
|
-
});
|
|
2571
|
-
}
|
|
2572
|
-
return;
|
|
2573
|
-
}
|
|
2574
|
-
const setterSetVal = () => {
|
|
2575
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
2576
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2577
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2578
|
-
}
|
|
2579
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
2580
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2581
|
-
};
|
|
2582
|
-
if (ref.$lazyInstance$) {
|
|
2583
|
-
setterSetVal();
|
|
2584
|
-
} else {
|
|
2585
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
1600
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1601
|
+
},
|
|
1602
|
+
configurable: true,
|
|
1603
|
+
enumerable: true
|
|
2589
1604
|
});
|
|
2590
1605
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
2591
1606
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -2606,7 +1621,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2606
1621
|
plt.jmp(() => {
|
|
2607
1622
|
var _a2;
|
|
2608
1623
|
const propName = attrNameToPropName.get(attrName);
|
|
2609
|
-
if (this.hasOwnProperty(propName)
|
|
1624
|
+
if (this.hasOwnProperty(propName)) {
|
|
2610
1625
|
newValue = this[propName];
|
|
2611
1626
|
delete this[propName];
|
|
2612
1627
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -2626,11 +1641,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2626
1641
|
}
|
|
2627
1642
|
return;
|
|
2628
1643
|
}
|
|
2629
|
-
|
|
2630
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2631
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
2632
|
-
this[propName] = newValue;
|
|
2633
|
-
}
|
|
1644
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2634
1645
|
});
|
|
2635
1646
|
};
|
|
2636
1647
|
Cstr.observedAttributes = Array.from(
|
|
@@ -2659,7 +1670,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2659
1670
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2660
1671
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2661
1672
|
if (bundleId) {
|
|
2662
|
-
const CstrImport = loadModule(cmpMeta
|
|
1673
|
+
const CstrImport = loadModule(cmpMeta);
|
|
2663
1674
|
if (CstrImport && "then" in CstrImport) {
|
|
2664
1675
|
const endLoad = uniqueTime();
|
|
2665
1676
|
Cstr = await CstrImport;
|
|
@@ -2684,16 +1695,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2684
1695
|
try {
|
|
2685
1696
|
new Cstr(hostRef);
|
|
2686
1697
|
} catch (e) {
|
|
2687
|
-
consoleError(e
|
|
1698
|
+
consoleError(e);
|
|
2688
1699
|
}
|
|
2689
1700
|
{
|
|
2690
|
-
hostRef.$flags$ &=
|
|
1701
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
2691
1702
|
}
|
|
2692
1703
|
{
|
|
2693
1704
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2694
1705
|
}
|
|
2695
1706
|
endNewInstance();
|
|
2696
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1707
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2697
1708
|
} else {
|
|
2698
1709
|
Cstr = elm.constructor;
|
|
2699
1710
|
const cmpTag = elm.localName;
|
|
@@ -2725,9 +1736,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2725
1736
|
schedule();
|
|
2726
1737
|
}
|
|
2727
1738
|
};
|
|
2728
|
-
var fireConnectedCallback = (instance
|
|
1739
|
+
var fireConnectedCallback = (instance) => {
|
|
2729
1740
|
{
|
|
2730
|
-
safeCall(instance, "connectedCallback"
|
|
1741
|
+
safeCall(instance, "connectedCallback");
|
|
2731
1742
|
}
|
|
2732
1743
|
};
|
|
2733
1744
|
|
|
@@ -2746,9 +1757,6 @@ var connectedCallback = (elm) => {
|
|
|
2746
1757
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2747
1758
|
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
|
|
2748
1759
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2749
|
-
} else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2750
|
-
const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
|
|
2751
|
-
elm["s-sc"] = scopeId2;
|
|
2752
1760
|
}
|
|
2753
1761
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2754
1762
|
}
|
|
@@ -2783,27 +1791,24 @@ var connectedCallback = (elm) => {
|
|
|
2783
1791
|
} else {
|
|
2784
1792
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
2785
1793
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2786
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1794
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2787
1795
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2788
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1796
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
2789
1797
|
}
|
|
2790
1798
|
}
|
|
2791
1799
|
endConnected();
|
|
2792
1800
|
}
|
|
2793
1801
|
};
|
|
2794
1802
|
var setContentReference = (elm) => {
|
|
2795
|
-
|
|
2796
|
-
return;
|
|
2797
|
-
}
|
|
2798
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1803
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
2799
1804
|
""
|
|
2800
1805
|
);
|
|
2801
1806
|
contentRefElm["s-cn"] = true;
|
|
2802
1807
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2803
1808
|
};
|
|
2804
|
-
var disconnectInstance = (instance
|
|
1809
|
+
var disconnectInstance = (instance) => {
|
|
2805
1810
|
{
|
|
2806
|
-
safeCall(instance, "disconnectedCallback"
|
|
1811
|
+
safeCall(instance, "disconnectedCallback");
|
|
2807
1812
|
}
|
|
2808
1813
|
};
|
|
2809
1814
|
var disconnectedCallback = async (elm) => {
|
|
@@ -2816,44 +1821,312 @@ var disconnectedCallback = async (elm) => {
|
|
|
2816
1821
|
}
|
|
2817
1822
|
}
|
|
2818
1823
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2819
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1824
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
2820
1825
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2821
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1826
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
};
|
|
1830
|
+
var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
|
|
1831
|
+
patchCloneNode(hostElementPrototype);
|
|
1832
|
+
patchSlotAppendChild(hostElementPrototype);
|
|
1833
|
+
patchSlotAppend(hostElementPrototype);
|
|
1834
|
+
patchSlotPrepend(hostElementPrototype);
|
|
1835
|
+
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
1836
|
+
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
1837
|
+
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
1838
|
+
patchTextContent(hostElementPrototype);
|
|
1839
|
+
patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
|
|
1840
|
+
patchSlotRemoveChild(hostElementPrototype);
|
|
1841
|
+
};
|
|
1842
|
+
var patchCloneNode = (HostElementPrototype) => {
|
|
1843
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1844
|
+
HostElementPrototype.cloneNode = function(deep) {
|
|
1845
|
+
const srcNode = this;
|
|
1846
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1847
|
+
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1848
|
+
if (!isShadowDom && deep) {
|
|
1849
|
+
let i2 = 0;
|
|
1850
|
+
let slotted, nonStencilNode;
|
|
1851
|
+
const stencilPrivates = [
|
|
1852
|
+
"s-id",
|
|
1853
|
+
"s-cr",
|
|
1854
|
+
"s-lr",
|
|
1855
|
+
"s-rc",
|
|
1856
|
+
"s-sc",
|
|
1857
|
+
"s-p",
|
|
1858
|
+
"s-cn",
|
|
1859
|
+
"s-sr",
|
|
1860
|
+
"s-sn",
|
|
1861
|
+
"s-hn",
|
|
1862
|
+
"s-ol",
|
|
1863
|
+
"s-nr",
|
|
1864
|
+
"s-si",
|
|
1865
|
+
"s-rf",
|
|
1866
|
+
"s-scs"
|
|
1867
|
+
];
|
|
1868
|
+
for (; i2 < srcNode.childNodes.length; i2++) {
|
|
1869
|
+
slotted = srcNode.childNodes[i2]["s-nr"];
|
|
1870
|
+
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
|
|
1871
|
+
if (slotted) {
|
|
1872
|
+
if (clonedNode.__appendChild) {
|
|
1873
|
+
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
1874
|
+
} else {
|
|
1875
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
if (nonStencilNode) {
|
|
1879
|
+
clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
return clonedNode;
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1886
|
+
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
1887
|
+
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
1888
|
+
HostElementPrototype.appendChild = function(newChild) {
|
|
1889
|
+
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
1890
|
+
const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
|
|
1891
|
+
if (slotNode) {
|
|
1892
|
+
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
1893
|
+
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
1894
|
+
const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
1895
|
+
updateFallbackSlotVisibility(this);
|
|
1896
|
+
return insertedNode;
|
|
1897
|
+
}
|
|
1898
|
+
return this.__appendChild(newChild);
|
|
1899
|
+
};
|
|
1900
|
+
};
|
|
1901
|
+
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
1902
|
+
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
1903
|
+
ElementPrototype.removeChild = function(toRemove) {
|
|
1904
|
+
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
1905
|
+
const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
|
|
1906
|
+
if (slotNode) {
|
|
1907
|
+
const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
|
|
1908
|
+
const existingNode = slotChildNodes.find((n) => n === toRemove);
|
|
1909
|
+
if (existingNode) {
|
|
1910
|
+
existingNode.remove();
|
|
1911
|
+
updateFallbackSlotVisibility(this);
|
|
1912
|
+
return;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
return this.__removeChild(toRemove);
|
|
1917
|
+
};
|
|
1918
|
+
};
|
|
1919
|
+
var patchSlotPrepend = (HostElementPrototype) => {
|
|
1920
|
+
const originalPrepend = HostElementPrototype.prepend;
|
|
1921
|
+
HostElementPrototype.prepend = function(...newChildren) {
|
|
1922
|
+
newChildren.forEach((newChild) => {
|
|
1923
|
+
if (typeof newChild === "string") {
|
|
1924
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
1925
|
+
}
|
|
1926
|
+
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
1927
|
+
const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
|
|
1928
|
+
if (slotNode) {
|
|
1929
|
+
const slotPlaceholder = document.createTextNode("");
|
|
1930
|
+
slotPlaceholder["s-nr"] = newChild;
|
|
1931
|
+
slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
|
|
1932
|
+
newChild["s-ol"] = slotPlaceholder;
|
|
1933
|
+
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
1934
|
+
const appendAfter = slotChildNodes[0];
|
|
1935
|
+
return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
1936
|
+
}
|
|
1937
|
+
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
1938
|
+
newChild.hidden = true;
|
|
1939
|
+
}
|
|
1940
|
+
return originalPrepend.call(this, newChild);
|
|
1941
|
+
});
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
var patchSlotAppend = (HostElementPrototype) => {
|
|
1945
|
+
HostElementPrototype.append = function(...newChildren) {
|
|
1946
|
+
newChildren.forEach((newChild) => {
|
|
1947
|
+
if (typeof newChild === "string") {
|
|
1948
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
1949
|
+
}
|
|
1950
|
+
this.appendChild(newChild);
|
|
1951
|
+
});
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
1955
|
+
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
1956
|
+
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
1957
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
1958
|
+
return originalInsertAdjacentHtml.call(this, position, text);
|
|
1959
|
+
}
|
|
1960
|
+
const container = this.ownerDocument.createElement("_");
|
|
1961
|
+
let node;
|
|
1962
|
+
container.innerHTML = text;
|
|
1963
|
+
if (position === "afterbegin") {
|
|
1964
|
+
while (node = container.firstChild) {
|
|
1965
|
+
this.prepend(node);
|
|
1966
|
+
}
|
|
1967
|
+
} else if (position === "beforeend") {
|
|
1968
|
+
while (node = container.firstChild) {
|
|
1969
|
+
this.append(node);
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
1975
|
+
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
1976
|
+
this.insertAdjacentHTML(position, text);
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
1980
|
+
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
1981
|
+
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
1982
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
1983
|
+
return originalInsertAdjacentElement.call(this, position, element);
|
|
1984
|
+
}
|
|
1985
|
+
if (position === "afterbegin") {
|
|
1986
|
+
this.prepend(element);
|
|
1987
|
+
return element;
|
|
1988
|
+
} else if (position === "beforeend") {
|
|
1989
|
+
this.append(element);
|
|
1990
|
+
return element;
|
|
1991
|
+
}
|
|
1992
|
+
return element;
|
|
1993
|
+
};
|
|
1994
|
+
};
|
|
1995
|
+
var patchTextContent = (hostElementPrototype) => {
|
|
1996
|
+
const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
|
|
1997
|
+
Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
|
|
1998
|
+
{
|
|
1999
|
+
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
2000
|
+
// To mimic shadow root behavior, we need to return the text content of all
|
|
2001
|
+
// nodes in a slot reference node
|
|
2002
|
+
get() {
|
|
2003
|
+
const slotRefNodes = getAllChildSlotNodes(this.childNodes);
|
|
2004
|
+
const textContent = slotRefNodes.map((node) => {
|
|
2005
|
+
var _a, _b;
|
|
2006
|
+
const text = [];
|
|
2007
|
+
let slotContent = node.nextSibling;
|
|
2008
|
+
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2009
|
+
if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
|
|
2010
|
+
text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
|
|
2011
|
+
}
|
|
2012
|
+
slotContent = slotContent.nextSibling;
|
|
2013
|
+
}
|
|
2014
|
+
return text.filter((ref) => ref !== "").join(" ");
|
|
2015
|
+
}).filter((text) => text !== "").join(" ");
|
|
2016
|
+
return " " + textContent + " ";
|
|
2017
|
+
},
|
|
2018
|
+
// To mimic shadow root behavior, we need to overwrite all nodes in a slot
|
|
2019
|
+
// reference node. If a default slot reference node exists, the text content will be
|
|
2020
|
+
// placed there. Otherwise, the new text node will be hidden
|
|
2021
|
+
set(value) {
|
|
2022
|
+
const slotRefNodes = getAllChildSlotNodes(this.childNodes);
|
|
2023
|
+
slotRefNodes.forEach((node) => {
|
|
2024
|
+
let slotContent = node.nextSibling;
|
|
2025
|
+
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2026
|
+
const tmp = slotContent;
|
|
2027
|
+
slotContent = slotContent.nextSibling;
|
|
2028
|
+
tmp.remove();
|
|
2029
|
+
}
|
|
2030
|
+
if (node["s-sn"] === "") {
|
|
2031
|
+
const textNode = this.ownerDocument.createTextNode(value);
|
|
2032
|
+
textNode["s-sn"] = "";
|
|
2033
|
+
insertBefore(node.parentElement, textNode, node.nextSibling);
|
|
2034
|
+
} else {
|
|
2035
|
+
node.remove();
|
|
2036
|
+
}
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
2040
|
+
}
|
|
2041
|
+
};
|
|
2042
|
+
var patchChildSlotNodes = (elm, cmpMeta) => {
|
|
2043
|
+
class FakeNodeList extends Array {
|
|
2044
|
+
item(n) {
|
|
2045
|
+
return this[n];
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
2049
|
+
const childNodesFn = elm.__lookupGetter__("childNodes");
|
|
2050
|
+
Object.defineProperty(elm, "children", {
|
|
2051
|
+
get() {
|
|
2052
|
+
return this.childNodes.map((n) => n.nodeType === 1);
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2055
|
+
Object.defineProperty(elm, "childElementCount", {
|
|
2056
|
+
get() {
|
|
2057
|
+
return elm.children.length;
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
Object.defineProperty(elm, "childNodes", {
|
|
2061
|
+
get() {
|
|
2062
|
+
const childNodes = childNodesFn.call(this);
|
|
2063
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
2064
|
+
const result = new FakeNodeList();
|
|
2065
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
2066
|
+
const slot = childNodes[i2]["s-nr"];
|
|
2067
|
+
if (slot) {
|
|
2068
|
+
result.push(slot);
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
return result;
|
|
2072
|
+
}
|
|
2073
|
+
return FakeNodeList.from(childNodes);
|
|
2074
|
+
}
|
|
2075
|
+
});
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
var getAllChildSlotNodes = (childNodes) => {
|
|
2079
|
+
const slotRefNodes = [];
|
|
2080
|
+
for (const childNode of Array.from(childNodes)) {
|
|
2081
|
+
if (childNode["s-sr"]) {
|
|
2082
|
+
slotRefNodes.push(childNode);
|
|
2822
2083
|
}
|
|
2084
|
+
slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
|
|
2823
2085
|
}
|
|
2824
|
-
|
|
2825
|
-
|
|
2086
|
+
return slotRefNodes;
|
|
2087
|
+
};
|
|
2088
|
+
var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
|
|
2089
|
+
var getHostSlotNode = (childNodes, slotName, hostName) => {
|
|
2090
|
+
let i2 = 0;
|
|
2091
|
+
let childNode;
|
|
2092
|
+
for (; i2 < childNodes.length; i2++) {
|
|
2093
|
+
childNode = childNodes[i2];
|
|
2094
|
+
if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
|
|
2095
|
+
return childNode;
|
|
2096
|
+
}
|
|
2097
|
+
childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
|
|
2098
|
+
if (childNode) {
|
|
2099
|
+
return childNode;
|
|
2100
|
+
}
|
|
2826
2101
|
}
|
|
2827
|
-
|
|
2828
|
-
|
|
2102
|
+
return null;
|
|
2103
|
+
};
|
|
2104
|
+
var getHostSlotChildNodes = (n, slotName) => {
|
|
2105
|
+
const childNodes = [n];
|
|
2106
|
+
while ((n = n.nextSibling) && n["s-sn"] === slotName) {
|
|
2107
|
+
childNodes.push(n);
|
|
2829
2108
|
}
|
|
2109
|
+
return childNodes;
|
|
2830
2110
|
};
|
|
2831
2111
|
|
|
2832
2112
|
// src/runtime/bootstrap-lazy.ts
|
|
2833
2113
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2834
2114
|
var _a;
|
|
2835
|
-
if (!win.document) {
|
|
2836
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
2837
|
-
return;
|
|
2838
|
-
}
|
|
2839
2115
|
const endBootstrap = createTime();
|
|
2840
2116
|
const cmpTags = [];
|
|
2841
2117
|
const exclude = options.exclude || [];
|
|
2842
2118
|
const customElements2 = win.customElements;
|
|
2843
|
-
const head =
|
|
2119
|
+
const head = doc.head;
|
|
2844
2120
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
2845
|
-
const dataStyles = /* @__PURE__ */
|
|
2121
|
+
const dataStyles = /* @__PURE__ */ doc.createElement("style");
|
|
2846
2122
|
const deferredConnectedCallbacks = [];
|
|
2847
2123
|
let appLoadFallback;
|
|
2848
2124
|
let isBootstrapping = true;
|
|
2849
2125
|
Object.assign(plt, options);
|
|
2850
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
2126
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
2851
2127
|
{
|
|
2852
2128
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2853
2129
|
}
|
|
2854
|
-
{
|
|
2855
|
-
hydrateScopedToShadow();
|
|
2856
|
-
}
|
|
2857
2130
|
let hasSlotRelocation = false;
|
|
2858
2131
|
lazyBundles.map((lazyBundle) => {
|
|
2859
2132
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -2924,17 +2197,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2924
2197
|
}
|
|
2925
2198
|
disconnectedCallback() {
|
|
2926
2199
|
plt.jmp(() => disconnectedCallback(this));
|
|
2927
|
-
plt.raf(() => {
|
|
2928
|
-
var _a3;
|
|
2929
|
-
const hostRef = getHostRef(this);
|
|
2930
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2931
|
-
if (i2 > -1) {
|
|
2932
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
2933
|
-
}
|
|
2934
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
2935
|
-
delete hostRef.$vnode$.$elm$;
|
|
2936
|
-
}
|
|
2937
|
-
});
|
|
2938
2200
|
}
|
|
2939
2201
|
componentOnReady() {
|
|
2940
2202
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -2942,7 +2204,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2942
2204
|
};
|
|
2943
2205
|
{
|
|
2944
2206
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2945
|
-
patchPseudoShadowDom(HostElement.prototype);
|
|
2207
|
+
patchPseudoShadowDom(HostElement.prototype, cmpMeta);
|
|
2946
2208
|
}
|
|
2947
2209
|
}
|
|
2948
2210
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2964,7 +2226,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2964
2226
|
}
|
|
2965
2227
|
if (dataStyles.innerHTML.length) {
|
|
2966
2228
|
dataStyles.setAttribute("data-styles", "");
|
|
2967
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
2229
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
2968
2230
|
if (nonce != null) {
|
|
2969
2231
|
dataStyles.setAttribute("nonce", nonce);
|
|
2970
2232
|
}
|
|
@@ -2982,9 +2244,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2982
2244
|
endBootstrap();
|
|
2983
2245
|
};
|
|
2984
2246
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2985
|
-
if (listeners
|
|
2247
|
+
if (listeners) {
|
|
2986
2248
|
listeners.map(([flags, name, method]) => {
|
|
2987
|
-
const target = getHostListenerTarget(
|
|
2249
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2988
2250
|
const handler = hostListenerProxy(hostRef, method);
|
|
2989
2251
|
const opts = hostListenerOpts(flags);
|
|
2990
2252
|
plt.ael(target, name, handler, opts);
|
|
@@ -3003,19 +2265,13 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
3003
2265
|
}
|
|
3004
2266
|
}
|
|
3005
2267
|
} catch (e) {
|
|
3006
|
-
consoleError(e
|
|
2268
|
+
consoleError(e);
|
|
3007
2269
|
}
|
|
3008
2270
|
};
|
|
3009
|
-
var getHostListenerTarget = (
|
|
3010
|
-
if (flags & 4 /* TargetDocument */)
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
if (flags & 8 /* TargetWindow */) {
|
|
3014
|
-
return win;
|
|
3015
|
-
}
|
|
3016
|
-
if (flags & 16 /* TargetBody */) {
|
|
3017
|
-
return doc.body;
|
|
3018
|
-
}
|
|
2271
|
+
var getHostListenerTarget = (elm, flags) => {
|
|
2272
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
2273
|
+
if (flags & 8 /* TargetWindow */) return win;
|
|
2274
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
|
3019
2275
|
return elm;
|
|
3020
2276
|
};
|
|
3021
2277
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -3026,4 +2282,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
3026
2282
|
// src/runtime/nonce.ts
|
|
3027
2283
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
3028
2284
|
|
|
3029
|
-
export { Build as B, H,
|
|
2285
|
+
export { Build as B, H, setMode as a, bootstrapLazy as b, createEvent as c, readTask as d, Host as e, getElement as f, getMode as g, h, forceUpdate as i, getAssetPath as j, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };
|