@ionic/core 8.5.4-dev.11744209290.123af9eb → 8.5.4-dev.11744406052.1d9f8ea6
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 +1 -1
- 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 +53 -126
- 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 +20 -44
- 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-Di9ZJzjm.js → app-globals-dd592863.js} +1 -1
- package/dist/cjs/{button-active-BlMN9Iyq.js → button-active-43e2b419.js} +3 -3
- package/dist/cjs/{capacitor-DmA66EwP.js → capacitor-c04564bf.js} +1 -1
- package/dist/cjs/{data-DlPf8ZXm.js → data-27cc2c9c.js} +1 -1
- 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-lTgcqUpk.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-BVfbh2cJ.js → index-2e236a04.js} +668 -1375
- package/dist/cjs/{index-rYFHa7ZR.js → index-48b2a28e.js} +1 -1
- package/dist/cjs/{index-CXThGkw7.js → index-4b70187a.js} +9 -9
- package/dist/cjs/{index-CquwaYOd.js → index-509ca0d3.js} +3 -3
- package/dist/cjs/{index-B4SdCKIQ.js → index-e36bd277.js} +2 -2
- package/dist/cjs/{index-BE9YH63j.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-DA_nJulF.js → input-shims-22a9973f.js} +8 -8
- package/dist/cjs/{input.utils-UHOCoNWM.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 +94 -182
- 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 +31 -53
- package/dist/cjs/{ionic-global-AdqEvgj6.js → ionic-global-acb665ad.js} +1 -1
- package/dist/cjs/ionic.cjs.js +8 -8
- package/dist/cjs/{ios.transition-B8HcmmPx.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-54O0AjJC.js → md.transition-26003e25.js} +7 -7
- package/dist/cjs/{notch-controller-DNfj7cO6.js → notch-controller-ae03a497.js} +2 -2
- package/dist/cjs/{overlays-CSyZW4m0.js → overlays-32e1b66b.js} +7 -7
- package/dist/cjs/{status-tap-B1Kcv7yf.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.js +72 -211
- 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 +58 -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 +25 -75
- package/dist/collection/components/toolbar/toolbar.js +2 -3
- package/dist/docs.d.ts +0 -8
- package/dist/docs.json +584 -1799
- package/dist/esm/{animation-CCtpQcsN.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-CispSZgz.js → app-globals-7b6cbf1a.js} +1 -1
- package/dist/esm/{button-active-D92yWoWC.js → button-active-90f1dbc4.js} +3 -3
- package/dist/esm/{capacitor-CFERIeaU.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-Dq3-TN9Z.js → data-174ad5e0.js} +2 -2
- 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-CRemSDoj.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-C5UXyyFe.js → index-527b9e34.js} +648 -1375
- package/dist/esm/{index-PfJyigSK.js → index-738d7504.js} +2 -2
- package/dist/esm/{index-BLV6ykCk.js → index-e2cf2ceb.js} +1 -2
- package/dist/esm/{index-DWiwgv23.js → index-e919e353.js} +3 -3
- package/dist/esm/{index-DYJvRcE0.js → index-ecb55b8d.js} +6 -6
- package/dist/esm/{index-DZLiflRE.js → index-f9f5d018.js} +6 -6
- package/dist/esm/index.js +18 -18
- package/dist/esm/{input-shims-BL_oixbH.js → input-shims-7dc1f6dc.js} +8 -8
- package/dist/esm/{input.utils-Bd73EHpQ.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 +92 -182
- 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 +29 -53
- package/dist/esm/{ionic-global-GkM1xiqt.js → ionic-global-ca86cf32.js} +1 -1
- package/dist/esm/ionic.js +6 -7
- package/dist/esm/{ios.transition-BcTzvx5_.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-DYGWIgPE.js → md.transition-8dc58b46.js} +7 -7
- package/dist/esm/{notch-controller-PoOhjO4o.js → notch-controller-00d92e89.js} +2 -2
- package/dist/esm/{overlays-BuSzwtlC.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-BPk7Ddsi.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 -212
- 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-CdWpy93z.js → p-22bc235f.js} +1 -1
- package/dist/ionic/{p-b8a159eb.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-CeCT60rb.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-44ff75ea.js +4 -0
- 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-XWSYNdC9.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-C3eOXAUO.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-lw61HGQ-.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-d3ee5846.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-aef8249f.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-dcf2e017.entry.js → p-b87a9f1d.entry.js} +1 -1
- package/dist/ionic/p-b8a461f5.system.entry.js +4 -0
- package/dist/ionic/p-b964c34e.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-879a7b00.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-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-6f5d9223.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-B3UoCFcu.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-CdKu7oC9.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/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/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 +2194 -4548
- package/hydrate/index.mjs +2193 -4547
- 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-06d06c2f.entry.js +0 -4
- package/dist/ionic/p-10e11b67.entry.js +0 -4
- package/dist/ionic/p-10f11601.entry.js +0 -4
- package/dist/ionic/p-171d5d3e.entry.js +0 -4
- package/dist/ionic/p-210385cd.entry.js +0 -4
- package/dist/ionic/p-2469206a.entry.js +0 -4
- package/dist/ionic/p-261e3a47.entry.js +0 -4
- package/dist/ionic/p-2a2ab89d.entry.js +0 -4
- package/dist/ionic/p-2f416d26.entry.js +0 -4
- package/dist/ionic/p-3628b1f7.entry.js +0 -4
- package/dist/ionic/p-3bd766ca.entry.js +0 -4
- package/dist/ionic/p-414f60f0.entry.js +0 -4
- package/dist/ionic/p-49419ffd.entry.js +0 -4
- package/dist/ionic/p-49b72347.entry.js +0 -4
- package/dist/ionic/p-52eca165.entry.js +0 -4
- package/dist/ionic/p-6a8928b1.entry.js +0 -4
- package/dist/ionic/p-6d4f1c6e.entry.js +0 -4
- package/dist/ionic/p-72d7dd7c.entry.js +0 -4
- package/dist/ionic/p-75959e43.entry.js +0 -4
- package/dist/ionic/p-76878c5f.entry.js +0 -4
- package/dist/ionic/p-7deacfed.entry.js +0 -4
- package/dist/ionic/p-841761ee.entry.js +0 -4
- package/dist/ionic/p-85d22d84.entry.js +0 -4
- package/dist/ionic/p-8ca2b22c.entry.js +0 -4
- package/dist/ionic/p-8e57bbf1.entry.js +0 -4
- package/dist/ionic/p-92aed080.entry.js +0 -4
- package/dist/ionic/p-930ec949.entry.js +0 -4
- package/dist/ionic/p-9ca05f27.entry.js +0 -4
- package/dist/ionic/p-9d7d6758.entry.js +0 -4
- package/dist/ionic/p-9d8be89a.entry.js +0 -4
- package/dist/ionic/p-9eeaBrnk.js +0 -4
- package/dist/ionic/p-B1sP_kPm.js +0 -4
- package/dist/ionic/p-B61pJgh5.js +0 -4
- package/dist/ionic/p-B8iLKNde.js +0 -4
- package/dist/ionic/p-BBmUb2In.js +0 -4
- package/dist/ionic/p-BTEIaRld.js +0 -4
- package/dist/ionic/p-BwAZiDRk.js +0 -4
- package/dist/ionic/p-C5UXyyFe.js +0 -5
- package/dist/ionic/p-CIGNaXM1.js +0 -4
- package/dist/ionic/p-CiN6q3Lh.js +0 -4
- package/dist/ionic/p-Cl0B-RWe.js +0 -4
- package/dist/ionic/p-CtWGkNnJ.js +0 -4
- package/dist/ionic/p-DFllLYu2.js +0 -4
- package/dist/ionic/p-DYo1kLGy.js +0 -4
- package/dist/ionic/p-Di6ciXLG.js +0 -4
- package/dist/ionic/p-a1581941.entry.js +0 -4
- package/dist/ionic/p-a1767652.entry.js +0 -4
- package/dist/ionic/p-a3ec5708.entry.js +0 -4
- package/dist/ionic/p-a8506291.entry.js +0 -4
- package/dist/ionic/p-a951373a.entry.js +0 -4
- package/dist/ionic/p-b3485dee.entry.js +0 -4
- package/dist/ionic/p-bb3cf0f1.entry.js +0 -4
- package/dist/ionic/p-c0634ff3.entry.js +0 -4
- package/dist/ionic/p-ccbc5737.entry.js +0 -4
- package/dist/ionic/p-d6a3361a.entry.js +0 -4
- package/dist/ionic/p-d7a76cd0.entry.js +0 -4
- package/dist/ionic/p-d85dfc51.entry.js +0 -4
- package/dist/ionic/p-ddc1c497.entry.js +0 -4
- package/dist/ionic/p-e01503b2.entry.js +0 -4
- package/dist/ionic/p-f9c55d46.entry.js +0 -4
- package/dist/ionic/p-fc3eb210.entry.js +0 -4
- package/dist/ionic/p-umtghMQY.js +0 -4
- package/dist/ionic/p-yluxF5qo.js +0 -4
- package/dist/ionic/p-zEz12j4K.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,114 +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/remote-value.ts
|
|
223
|
-
var RemoteValue = class _RemoteValue {
|
|
224
|
-
/**
|
|
225
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
226
|
-
*
|
|
227
|
-
* @param serialized The serialized LocalValue object
|
|
228
|
-
* @returns The original JavaScript value/object
|
|
229
|
-
*/
|
|
230
|
-
static fromLocalValue(serialized) {
|
|
231
|
-
const type = serialized[TYPE_CONSTANT];
|
|
232
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
233
|
-
switch (type) {
|
|
234
|
-
case "string" /* String */:
|
|
235
|
-
return value;
|
|
236
|
-
case "boolean" /* Boolean */:
|
|
237
|
-
return value;
|
|
238
|
-
case "bigint" /* BigInt */:
|
|
239
|
-
return BigInt(value);
|
|
240
|
-
case "undefined" /* Undefined */:
|
|
241
|
-
return void 0;
|
|
242
|
-
case "null" /* Null */:
|
|
243
|
-
return null;
|
|
244
|
-
case "number" /* Number */:
|
|
245
|
-
if (value === "NaN") return NaN;
|
|
246
|
-
if (value === "-0") return -0;
|
|
247
|
-
if (value === "Infinity") return Infinity;
|
|
248
|
-
if (value === "-Infinity") return -Infinity;
|
|
249
|
-
return value;
|
|
250
|
-
case "array" /* Array */:
|
|
251
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
252
|
-
case "date" /* Date */:
|
|
253
|
-
return new Date(value);
|
|
254
|
-
case "map" /* Map */:
|
|
255
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
256
|
-
for (const [key, val] of value) {
|
|
257
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
258
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
259
|
-
map2.set(deserializedKey, deserializedValue);
|
|
260
|
-
}
|
|
261
|
-
return map2;
|
|
262
|
-
case "object" /* Object */:
|
|
263
|
-
const obj = {};
|
|
264
|
-
for (const [key, val] of value) {
|
|
265
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
266
|
-
}
|
|
267
|
-
return obj;
|
|
268
|
-
case "regexp" /* RegularExpression */:
|
|
269
|
-
const { pattern, flags } = value;
|
|
270
|
-
return new RegExp(pattern, flags);
|
|
271
|
-
case "set" /* Set */:
|
|
272
|
-
const set = /* @__PURE__ */ new Set();
|
|
273
|
-
for (const item of value) {
|
|
274
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
275
|
-
}
|
|
276
|
-
return set;
|
|
277
|
-
case "symbol" /* Symbol */:
|
|
278
|
-
return Symbol(value);
|
|
279
|
-
default:
|
|
280
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
285
|
-
*
|
|
286
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
287
|
-
* @returns Array of deserialized JavaScript values
|
|
288
|
-
*/
|
|
289
|
-
static fromLocalValueArray(serializedValues) {
|
|
290
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
294
|
-
*
|
|
295
|
-
* @param obj Object to verify
|
|
296
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
297
|
-
*/
|
|
298
|
-
static isLocalValueObject(obj) {
|
|
299
|
-
if (typeof obj !== "object" || obj === null) {
|
|
300
|
-
return false;
|
|
301
|
-
}
|
|
302
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
const type = obj[TYPE_CONSTANT];
|
|
306
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
307
|
-
if (!hasTypeProperty) {
|
|
308
|
-
return false;
|
|
309
|
-
}
|
|
310
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
311
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
312
|
-
}
|
|
313
|
-
return true;
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
|
|
317
186
|
// src/utils/result.ts
|
|
318
187
|
var result_exports = {};
|
|
319
188
|
__export(result_exports, {
|
|
@@ -362,527 +231,6 @@ var unwrapErr = (result) => {
|
|
|
362
231
|
throw result.value;
|
|
363
232
|
}
|
|
364
233
|
};
|
|
365
|
-
|
|
366
|
-
// src/utils/serialize.ts
|
|
367
|
-
function deserializeProperty(value) {
|
|
368
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
369
|
-
return value;
|
|
370
|
-
}
|
|
371
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
372
|
-
}
|
|
373
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
374
|
-
const childNodes = internalCall(elm, "childNodes");
|
|
375
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
376
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
377
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
378
|
-
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
379
|
-
slotNode.hidden = true;
|
|
380
|
-
} else {
|
|
381
|
-
slotNode.hidden = false;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
let i2 = 0;
|
|
387
|
-
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
388
|
-
const childNode = childNodes[i2];
|
|
389
|
-
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
390
|
-
updateFallbackSlotVisibility(childNode);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
var getSlottedChildNodes = (childNodes) => {
|
|
395
|
-
const result = [];
|
|
396
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
397
|
-
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
398
|
-
if (slottedNode && slottedNode.isConnected) {
|
|
399
|
-
result.push(slottedNode);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
return result;
|
|
403
|
-
};
|
|
404
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
405
|
-
let i2 = 0;
|
|
406
|
-
let slottedNodes = [];
|
|
407
|
-
let childNode;
|
|
408
|
-
for (; i2 < childNodes.length; i2++) {
|
|
409
|
-
childNode = childNodes[i2];
|
|
410
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
411
|
-
slottedNodes.push(childNode);
|
|
412
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
413
|
-
}
|
|
414
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
415
|
-
}
|
|
416
|
-
return slottedNodes;
|
|
417
|
-
}
|
|
418
|
-
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
419
|
-
const childNodes = [];
|
|
420
|
-
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
421
|
-
let node = slot;
|
|
422
|
-
while (node = node.nextSibling) {
|
|
423
|
-
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
424
|
-
}
|
|
425
|
-
return childNodes;
|
|
426
|
-
};
|
|
427
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
428
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
429
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
430
|
-
return true;
|
|
431
|
-
}
|
|
432
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
433
|
-
return true;
|
|
434
|
-
}
|
|
435
|
-
return false;
|
|
436
|
-
}
|
|
437
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
438
|
-
return true;
|
|
439
|
-
}
|
|
440
|
-
return slotName === "";
|
|
441
|
-
};
|
|
442
|
-
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
443
|
-
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
const slottedNodeLocation = document.createTextNode("");
|
|
447
|
-
slottedNodeLocation["s-nr"] = newChild;
|
|
448
|
-
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
449
|
-
const parent = slotNode["s-cr"].parentNode;
|
|
450
|
-
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
451
|
-
if (typeof position !== "undefined") {
|
|
452
|
-
slottedNodeLocation["s-oo"] = position;
|
|
453
|
-
const childNodes = internalCall(parent, "childNodes");
|
|
454
|
-
const slotRelocateNodes = [slottedNodeLocation];
|
|
455
|
-
childNodes.forEach((n) => {
|
|
456
|
-
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
457
|
-
});
|
|
458
|
-
slotRelocateNodes.sort((a, b) => {
|
|
459
|
-
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
460
|
-
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
461
|
-
return 0;
|
|
462
|
-
});
|
|
463
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
464
|
-
} else {
|
|
465
|
-
appendMethod.call(parent, slottedNodeLocation);
|
|
466
|
-
}
|
|
467
|
-
newChild["s-ol"] = slottedNodeLocation;
|
|
468
|
-
newChild["s-sh"] = slotNode["s-hn"];
|
|
469
|
-
};
|
|
470
|
-
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
471
|
-
function patchSlotNode(node) {
|
|
472
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
473
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
474
|
-
const toReturn = [];
|
|
475
|
-
const slotName = this["s-sn"];
|
|
476
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
477
|
-
console.error(`
|
|
478
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
479
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
480
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
481
|
-
`);
|
|
482
|
-
}
|
|
483
|
-
const parent = this["s-cr"].parentElement;
|
|
484
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
485
|
-
slottedNodes.forEach((n) => {
|
|
486
|
-
if (slotName === getSlotName(n)) {
|
|
487
|
-
toReturn.push(n);
|
|
488
|
-
}
|
|
489
|
-
});
|
|
490
|
-
if (elementsOnly) {
|
|
491
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
492
|
-
}
|
|
493
|
-
return toReturn;
|
|
494
|
-
}).bind(node);
|
|
495
|
-
node.assignedElements = assignedFactory(true);
|
|
496
|
-
node.assignedNodes = assignedFactory(false);
|
|
497
|
-
}
|
|
498
|
-
function dispatchSlotChangeEvent(elm) {
|
|
499
|
-
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
500
|
-
}
|
|
501
|
-
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
502
|
-
var _a;
|
|
503
|
-
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
504
|
-
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
505
|
-
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
506
|
-
const childNodes = internalCall(parentHost, "childNodes");
|
|
507
|
-
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
508
|
-
return { slotNode, slotName };
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// src/runtime/dom-extras.ts
|
|
512
|
-
var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
513
|
-
patchCloneNode(hostElementPrototype);
|
|
514
|
-
patchSlotAppendChild(hostElementPrototype);
|
|
515
|
-
patchSlotAppend(hostElementPrototype);
|
|
516
|
-
patchSlotPrepend(hostElementPrototype);
|
|
517
|
-
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
518
|
-
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
519
|
-
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
520
|
-
patchInsertBefore(hostElementPrototype);
|
|
521
|
-
patchTextContent(hostElementPrototype);
|
|
522
|
-
patchChildSlotNodes(hostElementPrototype);
|
|
523
|
-
patchSlotRemoveChild(hostElementPrototype);
|
|
524
|
-
};
|
|
525
|
-
var patchCloneNode = (HostElementPrototype) => {
|
|
526
|
-
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
527
|
-
HostElementPrototype.cloneNode = function(deep) {
|
|
528
|
-
const srcNode = this;
|
|
529
|
-
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
530
|
-
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
531
|
-
if (!isShadowDom && deep) {
|
|
532
|
-
let i2 = 0;
|
|
533
|
-
let slotted, nonStencilNode;
|
|
534
|
-
const stencilPrivates = [
|
|
535
|
-
"s-id",
|
|
536
|
-
"s-cr",
|
|
537
|
-
"s-lr",
|
|
538
|
-
"s-rc",
|
|
539
|
-
"s-sc",
|
|
540
|
-
"s-p",
|
|
541
|
-
"s-cn",
|
|
542
|
-
"s-sr",
|
|
543
|
-
"s-sn",
|
|
544
|
-
"s-hn",
|
|
545
|
-
"s-ol",
|
|
546
|
-
"s-nr",
|
|
547
|
-
"s-si",
|
|
548
|
-
"s-rf",
|
|
549
|
-
"s-scs"
|
|
550
|
-
];
|
|
551
|
-
const childNodes = this.__childNodes || this.childNodes;
|
|
552
|
-
for (; i2 < childNodes.length; i2++) {
|
|
553
|
-
slotted = childNodes[i2]["s-nr"];
|
|
554
|
-
nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
|
|
555
|
-
if (slotted) {
|
|
556
|
-
if (clonedNode.__appendChild) {
|
|
557
|
-
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
558
|
-
} else {
|
|
559
|
-
clonedNode.appendChild(slotted.cloneNode(true));
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
if (nonStencilNode) {
|
|
563
|
-
clonedNode.appendChild(childNodes[i2].cloneNode(true));
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
return clonedNode;
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
571
|
-
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
572
|
-
HostElementPrototype.appendChild = function(newChild) {
|
|
573
|
-
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
574
|
-
if (slotNode) {
|
|
575
|
-
addSlotRelocateNode(newChild, slotNode);
|
|
576
|
-
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
577
|
-
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
578
|
-
const parent = internalCall(appendAfter, "parentNode");
|
|
579
|
-
const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
|
|
580
|
-
dispatchSlotChangeEvent(slotNode);
|
|
581
|
-
updateFallbackSlotVisibility(this);
|
|
582
|
-
return insertedNode;
|
|
583
|
-
}
|
|
584
|
-
return this.__appendChild(newChild);
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
588
|
-
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
589
|
-
ElementPrototype.removeChild = function(toRemove) {
|
|
590
|
-
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
591
|
-
const childNodes = this.__childNodes || this.childNodes;
|
|
592
|
-
const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
|
|
593
|
-
if (slotNode && toRemove.isConnected) {
|
|
594
|
-
toRemove.remove();
|
|
595
|
-
updateFallbackSlotVisibility(this);
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
return this.__removeChild(toRemove);
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
var patchSlotPrepend = (HostElementPrototype) => {
|
|
603
|
-
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
604
|
-
HostElementPrototype.prepend = function(...newChildren) {
|
|
605
|
-
newChildren.forEach((newChild) => {
|
|
606
|
-
if (typeof newChild === "string") {
|
|
607
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
608
|
-
}
|
|
609
|
-
const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
|
|
610
|
-
const childNodes = internalCall(this, "childNodes");
|
|
611
|
-
const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
|
|
612
|
-
if (slotNode) {
|
|
613
|
-
addSlotRelocateNode(newChild, slotNode, true);
|
|
614
|
-
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
615
|
-
const appendAfter = slotChildNodes[0];
|
|
616
|
-
const parent = internalCall(appendAfter, "parentNode");
|
|
617
|
-
const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
|
|
618
|
-
dispatchSlotChangeEvent(slotNode);
|
|
619
|
-
return toReturn;
|
|
620
|
-
}
|
|
621
|
-
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
622
|
-
newChild.hidden = true;
|
|
623
|
-
}
|
|
624
|
-
return HostElementPrototype.__prepend(newChild);
|
|
625
|
-
});
|
|
626
|
-
};
|
|
627
|
-
};
|
|
628
|
-
var patchSlotAppend = (HostElementPrototype) => {
|
|
629
|
-
HostElementPrototype.__append = HostElementPrototype.append;
|
|
630
|
-
HostElementPrototype.append = function(...newChildren) {
|
|
631
|
-
newChildren.forEach((newChild) => {
|
|
632
|
-
if (typeof newChild === "string") {
|
|
633
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
634
|
-
}
|
|
635
|
-
this.appendChild(newChild);
|
|
636
|
-
});
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
640
|
-
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
641
|
-
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
642
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
643
|
-
return originalInsertAdjacentHtml.call(this, position, text);
|
|
644
|
-
}
|
|
645
|
-
const container = this.ownerDocument.createElement("_");
|
|
646
|
-
let node;
|
|
647
|
-
container.innerHTML = text;
|
|
648
|
-
if (position === "afterbegin") {
|
|
649
|
-
while (node = container.firstChild) {
|
|
650
|
-
this.prepend(node);
|
|
651
|
-
}
|
|
652
|
-
} else if (position === "beforeend") {
|
|
653
|
-
while (node = container.firstChild) {
|
|
654
|
-
this.append(node);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
660
|
-
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
661
|
-
this.insertAdjacentHTML(position, text);
|
|
662
|
-
};
|
|
663
|
-
};
|
|
664
|
-
var patchInsertBefore = (HostElementPrototype) => {
|
|
665
|
-
const eleProto = HostElementPrototype;
|
|
666
|
-
if (eleProto.__insertBefore) return;
|
|
667
|
-
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
668
|
-
HostElementPrototype.insertBefore = function(newChild, currentChild) {
|
|
669
|
-
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
670
|
-
const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
671
|
-
if (slotNode) {
|
|
672
|
-
let found = false;
|
|
673
|
-
slottedNodes.forEach((childNode) => {
|
|
674
|
-
if (childNode === currentChild || currentChild === null) {
|
|
675
|
-
found = true;
|
|
676
|
-
if (currentChild === null || slotName !== currentChild["s-sn"]) {
|
|
677
|
-
this.appendChild(newChild);
|
|
678
|
-
return;
|
|
679
|
-
}
|
|
680
|
-
if (slotName === currentChild["s-sn"]) {
|
|
681
|
-
addSlotRelocateNode(newChild, slotNode);
|
|
682
|
-
const parent = internalCall(currentChild, "parentNode");
|
|
683
|
-
internalCall(parent, "insertBefore")(newChild, currentChild);
|
|
684
|
-
dispatchSlotChangeEvent(slotNode);
|
|
685
|
-
}
|
|
686
|
-
return;
|
|
687
|
-
}
|
|
688
|
-
});
|
|
689
|
-
if (found) return newChild;
|
|
690
|
-
}
|
|
691
|
-
const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
|
|
692
|
-
if (parentNode && !this.isSameNode(parentNode)) {
|
|
693
|
-
return this.appendChild(newChild);
|
|
694
|
-
}
|
|
695
|
-
return this.__insertBefore(newChild, currentChild);
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
|
-
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
699
|
-
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
700
|
-
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
701
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
702
|
-
return originalInsertAdjacentElement.call(this, position, element);
|
|
703
|
-
}
|
|
704
|
-
if (position === "afterbegin") {
|
|
705
|
-
this.prepend(element);
|
|
706
|
-
return element;
|
|
707
|
-
} else if (position === "beforeend") {
|
|
708
|
-
this.append(element);
|
|
709
|
-
return element;
|
|
710
|
-
}
|
|
711
|
-
return element;
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
var patchTextContent = (hostElementPrototype) => {
|
|
715
|
-
patchHostOriginalAccessor("textContent", hostElementPrototype);
|
|
716
|
-
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
717
|
-
get: function() {
|
|
718
|
-
let text = "";
|
|
719
|
-
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
720
|
-
childNodes.forEach((node) => text += node.textContent || "");
|
|
721
|
-
return text;
|
|
722
|
-
},
|
|
723
|
-
set: function(value) {
|
|
724
|
-
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
725
|
-
childNodes.forEach((node) => {
|
|
726
|
-
if (node["s-ol"]) node["s-ol"].remove();
|
|
727
|
-
node.remove();
|
|
728
|
-
});
|
|
729
|
-
this.insertAdjacentHTML("beforeend", value);
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
};
|
|
733
|
-
var patchChildSlotNodes = (elm) => {
|
|
734
|
-
class FakeNodeList extends Array {
|
|
735
|
-
item(n) {
|
|
736
|
-
return this[n];
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
patchHostOriginalAccessor("children", elm);
|
|
740
|
-
Object.defineProperty(elm, "children", {
|
|
741
|
-
get() {
|
|
742
|
-
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
743
|
-
}
|
|
744
|
-
});
|
|
745
|
-
Object.defineProperty(elm, "childElementCount", {
|
|
746
|
-
get() {
|
|
747
|
-
return this.children.length;
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
patchHostOriginalAccessor("firstChild", elm);
|
|
751
|
-
Object.defineProperty(elm, "firstChild", {
|
|
752
|
-
get() {
|
|
753
|
-
return this.childNodes[0];
|
|
754
|
-
}
|
|
755
|
-
});
|
|
756
|
-
patchHostOriginalAccessor("lastChild", elm);
|
|
757
|
-
Object.defineProperty(elm, "lastChild", {
|
|
758
|
-
get() {
|
|
759
|
-
return this.childNodes[this.childNodes.length - 1];
|
|
760
|
-
}
|
|
761
|
-
});
|
|
762
|
-
patchHostOriginalAccessor("childNodes", elm);
|
|
763
|
-
Object.defineProperty(elm, "childNodes", {
|
|
764
|
-
get() {
|
|
765
|
-
const result = new FakeNodeList();
|
|
766
|
-
result.push(...getSlottedChildNodes(this.__childNodes));
|
|
767
|
-
return result;
|
|
768
|
-
}
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
var patchSlottedNode = (node) => {
|
|
772
|
-
if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
|
|
773
|
-
patchNextSibling(node);
|
|
774
|
-
patchPreviousSibling(node);
|
|
775
|
-
patchParentNode(node);
|
|
776
|
-
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
777
|
-
patchNextElementSibling(node);
|
|
778
|
-
patchPreviousElementSibling(node);
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
var patchNextSibling = (node) => {
|
|
782
|
-
if (!node || node.__nextSibling) return;
|
|
783
|
-
patchHostOriginalAccessor("nextSibling", node);
|
|
784
|
-
Object.defineProperty(node, "nextSibling", {
|
|
785
|
-
get: function() {
|
|
786
|
-
var _a;
|
|
787
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
788
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
789
|
-
if (parentNodes && index > -1) {
|
|
790
|
-
return parentNodes[index + 1];
|
|
791
|
-
}
|
|
792
|
-
return this.__nextSibling;
|
|
793
|
-
}
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
var patchNextElementSibling = (element) => {
|
|
797
|
-
if (!element || element.__nextElementSibling) return;
|
|
798
|
-
patchHostOriginalAccessor("nextElementSibling", element);
|
|
799
|
-
Object.defineProperty(element, "nextElementSibling", {
|
|
800
|
-
get: function() {
|
|
801
|
-
var _a;
|
|
802
|
-
const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
803
|
-
const index = parentEles == null ? void 0 : parentEles.indexOf(this);
|
|
804
|
-
if (parentEles && index > -1) {
|
|
805
|
-
return parentEles[index + 1];
|
|
806
|
-
}
|
|
807
|
-
return this.__nextElementSibling;
|
|
808
|
-
}
|
|
809
|
-
});
|
|
810
|
-
};
|
|
811
|
-
var patchPreviousSibling = (node) => {
|
|
812
|
-
if (!node || node.__previousSibling) return;
|
|
813
|
-
patchHostOriginalAccessor("previousSibling", node);
|
|
814
|
-
Object.defineProperty(node, "previousSibling", {
|
|
815
|
-
get: function() {
|
|
816
|
-
var _a;
|
|
817
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
818
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
819
|
-
if (parentNodes && index > -1) {
|
|
820
|
-
return parentNodes[index - 1];
|
|
821
|
-
}
|
|
822
|
-
return this.__previousSibling;
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
};
|
|
826
|
-
var patchPreviousElementSibling = (element) => {
|
|
827
|
-
if (!element || element.__previousElementSibling) return;
|
|
828
|
-
patchHostOriginalAccessor("previousElementSibling", element);
|
|
829
|
-
Object.defineProperty(element, "previousElementSibling", {
|
|
830
|
-
get: function() {
|
|
831
|
-
var _a;
|
|
832
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
833
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
834
|
-
if (parentNodes && index > -1) {
|
|
835
|
-
return parentNodes[index - 1];
|
|
836
|
-
}
|
|
837
|
-
return this.__previousElementSibling;
|
|
838
|
-
}
|
|
839
|
-
});
|
|
840
|
-
};
|
|
841
|
-
var patchParentNode = (node) => {
|
|
842
|
-
if (!node || node.__parentNode) return;
|
|
843
|
-
patchHostOriginalAccessor("parentNode", node);
|
|
844
|
-
Object.defineProperty(node, "parentNode", {
|
|
845
|
-
get: function() {
|
|
846
|
-
var _a;
|
|
847
|
-
return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
|
|
848
|
-
},
|
|
849
|
-
set: function(value) {
|
|
850
|
-
this.__parentNode = value;
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
|
-
};
|
|
854
|
-
var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
|
|
855
|
-
var validNodesPatches = [
|
|
856
|
-
"childNodes",
|
|
857
|
-
"firstChild",
|
|
858
|
-
"lastChild",
|
|
859
|
-
"nextSibling",
|
|
860
|
-
"previousSibling",
|
|
861
|
-
"textContent",
|
|
862
|
-
"parentNode"
|
|
863
|
-
];
|
|
864
|
-
function patchHostOriginalAccessor(accessorName, node) {
|
|
865
|
-
let accessor;
|
|
866
|
-
if (validElementPatches.includes(accessorName)) {
|
|
867
|
-
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
868
|
-
} else if (validNodesPatches.includes(accessorName)) {
|
|
869
|
-
accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
|
|
870
|
-
}
|
|
871
|
-
if (!accessor) {
|
|
872
|
-
accessor = Object.getOwnPropertyDescriptor(node, accessorName);
|
|
873
|
-
}
|
|
874
|
-
if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
|
|
875
|
-
}
|
|
876
|
-
function internalCall(node, method) {
|
|
877
|
-
if ("__" + method in node) {
|
|
878
|
-
const toReturn = node["__" + method];
|
|
879
|
-
if (typeof toReturn !== "function") return toReturn;
|
|
880
|
-
return toReturn.bind(node);
|
|
881
|
-
} else {
|
|
882
|
-
if (typeof node[method] !== "function") return node[method];
|
|
883
|
-
return node[method].bind(node);
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
234
|
var createTime = (fnName, tagName = "") => {
|
|
887
235
|
{
|
|
888
236
|
return () => {
|
|
@@ -1011,166 +359,54 @@ var convertToPrivate = (node) => {
|
|
|
1011
359
|
|
|
1012
360
|
// src/runtime/client-hydrate.ts
|
|
1013
361
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1014
|
-
var _a;
|
|
1015
362
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1016
363
|
const shadowRoot = hostElm.shadowRoot;
|
|
1017
364
|
const childRenderNodes = [];
|
|
1018
365
|
const slotNodes = [];
|
|
1019
|
-
const slottedNodes = [];
|
|
1020
366
|
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1021
|
-
const vnode = newVNode(tagName, null);
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
1025
|
-
var _a2;
|
|
1026
|
-
if (!(memberFlags & 31 /* Prop */)) {
|
|
1027
|
-
return;
|
|
1028
|
-
}
|
|
1029
|
-
const attributeName = metaAttributeName || memberName;
|
|
1030
|
-
const attrVal = hostElm.getAttribute(attributeName);
|
|
1031
|
-
if (attrVal !== null) {
|
|
1032
|
-
const attrPropVal = parsePropertyValue(attrVal, memberFlags);
|
|
1033
|
-
(_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
let scopeId2;
|
|
1037
|
-
{
|
|
1038
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1039
|
-
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
1040
|
-
scopeId2 = hostElm["s-sc"];
|
|
1041
|
-
hostElm.classList.add(scopeId2 + "-h");
|
|
1042
|
-
} else if (hostElm["s-sc"]) {
|
|
1043
|
-
delete hostElm["s-sc"];
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
1047
|
-
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());
|
|
1048
370
|
}
|
|
1049
371
|
hostElm[HYDRATE_ID] = hostId;
|
|
1050
372
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
slotNodes,
|
|
1055
|
-
shadowRootNodes,
|
|
1056
|
-
hostElm,
|
|
1057
|
-
hostElm,
|
|
1058
|
-
hostId,
|
|
1059
|
-
slottedNodes
|
|
1060
|
-
);
|
|
1061
|
-
let crIndex = 0;
|
|
1062
|
-
const crLength = childRenderNodes.length;
|
|
1063
|
-
let childRenderNode;
|
|
1064
|
-
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1065
|
-
childRenderNode = childRenderNodes[crIndex];
|
|
1066
|
-
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$;
|
|
1067
376
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1068
|
-
const node =
|
|
1069
|
-
if (
|
|
1070
|
-
node
|
|
1071
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1072
|
-
node["s-cr"] = hostElm["s-cr"];
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1076
|
-
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
1077
|
-
if (childRenderNode.$children$) {
|
|
1078
|
-
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
1079
|
-
if (!childRenderNode.$elm$.childNodes.length) {
|
|
1080
|
-
childRenderNode.$children$.forEach((c) => {
|
|
1081
|
-
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
} else {
|
|
1085
|
-
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
1086
|
-
}
|
|
377
|
+
const node = c.$elm$;
|
|
378
|
+
if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
|
|
379
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1087
380
|
}
|
|
1088
|
-
if (
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
if (!shadowRoot) {
|
|
1094
|
-
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;
|
|
1095
386
|
}
|
|
1096
387
|
}
|
|
1097
388
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
let snGroupIdx;
|
|
1104
|
-
let snGroupLen;
|
|
1105
|
-
let slottedItem;
|
|
1106
|
-
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1107
|
-
slotGroup = slottedNodes[snIndex];
|
|
1108
|
-
if (!slotGroup || !slotGroup.length) continue;
|
|
1109
|
-
snGroupLen = slotGroup.length;
|
|
1110
|
-
snGroupIdx = 0;
|
|
1111
|
-
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1112
|
-
slottedItem = slotGroup[snGroupIdx];
|
|
1113
|
-
if (!hosts[slottedItem.hostId]) {
|
|
1114
|
-
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1115
|
-
}
|
|
1116
|
-
if (!hosts[slottedItem.hostId]) continue;
|
|
1117
|
-
const hostEle = hosts[slottedItem.hostId];
|
|
1118
|
-
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1119
|
-
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1120
|
-
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1121
|
-
slottedItem.slot["s-cr"] = hostEle;
|
|
1122
|
-
} else {
|
|
1123
|
-
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1124
|
-
}
|
|
1125
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1126
|
-
{
|
|
1127
|
-
patchSlottedNode(slottedItem.node);
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1131
|
-
hostEle.appendChild(slottedItem.node);
|
|
389
|
+
});
|
|
390
|
+
if (shadowRoot) {
|
|
391
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
392
|
+
if (shadowRootNode) {
|
|
393
|
+
shadowRoot.appendChild(shadowRootNode);
|
|
1132
394
|
}
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
if (scopeId2 && slotNodes.length) {
|
|
1136
|
-
slotNodes.forEach((slot) => {
|
|
1137
|
-
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1138
395
|
});
|
|
1139
396
|
}
|
|
1140
|
-
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
1141
|
-
let rnIdex = 0;
|
|
1142
|
-
const rnLen = shadowRootNodes.length;
|
|
1143
|
-
if (rnLen) {
|
|
1144
|
-
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1145
|
-
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
1146
|
-
}
|
|
1147
|
-
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1148
|
-
if (typeof node["s-sn"] !== "string") {
|
|
1149
|
-
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1150
|
-
node.removeAttribute("hidden");
|
|
1151
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1152
|
-
node.parentNode.removeChild(node);
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
});
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1159
|
-
hostRef.$hostElement$ = hostElm;
|
|
1160
397
|
endHydrate();
|
|
1161
398
|
};
|
|
1162
|
-
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId
|
|
399
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
|
|
1163
400
|
let childNodeType;
|
|
1164
401
|
let childIdSplt;
|
|
1165
402
|
let childVNode;
|
|
1166
403
|
let i2;
|
|
1167
|
-
const scopeId2 = hostElm["s-sc"];
|
|
1168
404
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1169
405
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1170
406
|
if (childNodeType) {
|
|
1171
407
|
childIdSplt = childNodeType.split(".");
|
|
1172
408
|
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1173
|
-
childVNode =
|
|
409
|
+
childVNode = {
|
|
1174
410
|
$flags$: 0,
|
|
1175
411
|
$hostId$: childIdSplt[0],
|
|
1176
412
|
$nodeId$: childIdSplt[1],
|
|
@@ -1178,43 +414,18 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1178
414
|
$index$: childIdSplt[3],
|
|
1179
415
|
$tag$: node.tagName.toLowerCase(),
|
|
1180
416
|
$elm$: node,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
$
|
|
1184
|
-
|
|
417
|
+
$attrs$: null,
|
|
418
|
+
$children$: null,
|
|
419
|
+
$key$: null,
|
|
420
|
+
$name$: null,
|
|
421
|
+
$text$: null
|
|
422
|
+
};
|
|
1185
423
|
childRenderNodes.push(childVNode);
|
|
1186
424
|
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1187
425
|
if (!parentVNode.$children$) {
|
|
1188
426
|
parentVNode.$children$ = [];
|
|
1189
427
|
}
|
|
1190
|
-
|
|
1191
|
-
node["s-si"] = scopeId2;
|
|
1192
|
-
childVNode.$attrs$.class += " " + scopeId2;
|
|
1193
|
-
}
|
|
1194
|
-
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1195
|
-
if (typeof slotName === "string") {
|
|
1196
|
-
if (childVNode.$tag$ === "slot-fb") {
|
|
1197
|
-
addSlot(
|
|
1198
|
-
slotName,
|
|
1199
|
-
childIdSplt[2],
|
|
1200
|
-
childVNode,
|
|
1201
|
-
node,
|
|
1202
|
-
parentVNode,
|
|
1203
|
-
childRenderNodes,
|
|
1204
|
-
slotNodes,
|
|
1205
|
-
shadowRootNodes,
|
|
1206
|
-
slottedNodes
|
|
1207
|
-
);
|
|
1208
|
-
if (scopeId2) {
|
|
1209
|
-
node.classList.add(scopeId2);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
childVNode.$elm$["s-sn"] = slotName;
|
|
1213
|
-
childVNode.$elm$.removeAttribute("s-sn");
|
|
1214
|
-
}
|
|
1215
|
-
if (childVNode.$index$ !== void 0) {
|
|
1216
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1217
|
-
}
|
|
428
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1218
429
|
parentVNode = childVNode;
|
|
1219
430
|
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1220
431
|
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
@@ -1230,33 +441,31 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1230
441
|
shadowRootNodes,
|
|
1231
442
|
hostElm,
|
|
1232
443
|
node.shadowRoot.childNodes[i2],
|
|
1233
|
-
hostId
|
|
1234
|
-
slottedNodes
|
|
444
|
+
hostId
|
|
1235
445
|
);
|
|
1236
446
|
}
|
|
1237
447
|
}
|
|
1238
|
-
|
|
1239
|
-
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
448
|
+
for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1240
449
|
clientHydrate(
|
|
1241
450
|
parentVNode,
|
|
1242
451
|
childRenderNodes,
|
|
1243
452
|
slotNodes,
|
|
1244
453
|
shadowRootNodes,
|
|
1245
454
|
hostElm,
|
|
1246
|
-
|
|
1247
|
-
hostId
|
|
1248
|
-
slottedNodes
|
|
455
|
+
node.childNodes[i2],
|
|
456
|
+
hostId
|
|
1249
457
|
);
|
|
1250
458
|
}
|
|
1251
459
|
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1252
460
|
childIdSplt = node.nodeValue.split(".");
|
|
1253
461
|
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1254
462
|
childNodeType = childIdSplt[0];
|
|
1255
|
-
childVNode =
|
|
463
|
+
childVNode = {
|
|
464
|
+
$flags$: 0,
|
|
1256
465
|
$hostId$: childIdSplt[1],
|
|
1257
466
|
$nodeId$: childIdSplt[2],
|
|
1258
467
|
$depth$: childIdSplt[3],
|
|
1259
|
-
$index$: childIdSplt[4]
|
|
468
|
+
$index$: childIdSplt[4],
|
|
1260
469
|
$elm$: node,
|
|
1261
470
|
$attrs$: null,
|
|
1262
471
|
$children$: null,
|
|
@@ -1264,43 +473,46 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1264
473
|
$name$: null,
|
|
1265
474
|
$tag$: null,
|
|
1266
475
|
$text$: null
|
|
1267
|
-
}
|
|
476
|
+
};
|
|
1268
477
|
if (childNodeType === TEXT_NODE_ID) {
|
|
1269
|
-
childVNode.$elm$ =
|
|
478
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1270
479
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1271
480
|
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1272
481
|
childRenderNodes.push(childVNode);
|
|
1273
482
|
node.remove();
|
|
1274
|
-
if (
|
|
1275
|
-
|
|
1276
|
-
parentVNode.$children$ = [];
|
|
1277
|
-
}
|
|
1278
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
483
|
+
if (!parentVNode.$children$) {
|
|
484
|
+
parentVNode.$children$ = [];
|
|
1279
485
|
}
|
|
486
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1280
487
|
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1281
488
|
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1282
489
|
}
|
|
1283
490
|
}
|
|
1284
|
-
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1285
|
-
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
1286
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1287
|
-
childRenderNodes.push(childVNode);
|
|
1288
|
-
node.remove();
|
|
1289
|
-
}
|
|
1290
491
|
} else if (childVNode.$hostId$ === hostId) {
|
|
1291
492
|
if (childNodeType === SLOT_NODE_ID) {
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
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;
|
|
1304
516
|
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1305
517
|
if (shadowRootNodes) {
|
|
1306
518
|
node.remove();
|
|
@@ -1316,28 +528,18 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1316
528
|
vnode.$elm$ = node;
|
|
1317
529
|
vnode.$index$ = "0";
|
|
1318
530
|
parentVNode.$children$ = [vnode];
|
|
1319
|
-
} else {
|
|
1320
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1321
|
-
node.remove();
|
|
1322
|
-
}
|
|
1323
531
|
}
|
|
1324
|
-
return parentVNode;
|
|
1325
532
|
};
|
|
1326
533
|
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1327
534
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1328
|
-
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1329
|
-
if (componentId) {
|
|
1330
|
-
orgLocNodes.set(componentId, node);
|
|
1331
|
-
}
|
|
1332
535
|
let i2 = 0;
|
|
1333
536
|
if (node.shadowRoot) {
|
|
1334
537
|
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1335
538
|
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1336
539
|
}
|
|
1337
540
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
541
|
+
for (i2 = 0; i2 < node.childNodes.length; i2++) {
|
|
542
|
+
initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
|
|
1341
543
|
}
|
|
1342
544
|
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1343
545
|
const childIdSplt = node.nodeValue.split(".");
|
|
@@ -1348,98 +550,18 @@ var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
1348
550
|
}
|
|
1349
551
|
}
|
|
1350
552
|
};
|
|
1351
|
-
var createSimpleVNode = (vnode) => {
|
|
1352
|
-
const defaultVNode = {
|
|
1353
|
-
$flags$: 0,
|
|
1354
|
-
$hostId$: null,
|
|
1355
|
-
$nodeId$: null,
|
|
1356
|
-
$depth$: null,
|
|
1357
|
-
$index$: "0",
|
|
1358
|
-
$elm$: null,
|
|
1359
|
-
$attrs$: null,
|
|
1360
|
-
$children$: null,
|
|
1361
|
-
$key$: null,
|
|
1362
|
-
$name$: null,
|
|
1363
|
-
$tag$: null,
|
|
1364
|
-
$text$: null
|
|
1365
|
-
};
|
|
1366
|
-
return { ...defaultVNode, ...vnode };
|
|
1367
|
-
};
|
|
1368
|
-
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1369
|
-
node["s-sr"] = true;
|
|
1370
|
-
childVNode.$name$ = slotName || null;
|
|
1371
|
-
childVNode.$tag$ = "slot";
|
|
1372
|
-
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1373
|
-
if (shadowRootNodes && win.document) {
|
|
1374
|
-
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1375
|
-
if (childVNode.$name$) {
|
|
1376
|
-
childVNode.$elm$.setAttribute("name", slotName);
|
|
1377
|
-
}
|
|
1378
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1379
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1380
|
-
} else {
|
|
1381
|
-
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
1382
|
-
}
|
|
1383
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1384
|
-
node.remove();
|
|
1385
|
-
if (childVNode.$depth$ === "0") {
|
|
1386
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1387
|
-
}
|
|
1388
|
-
} else {
|
|
1389
|
-
const slot = childVNode.$elm$;
|
|
1390
|
-
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1391
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1392
|
-
patchSlotNode(node);
|
|
1393
|
-
if (shouldMove) {
|
|
1394
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1395
|
-
}
|
|
1396
|
-
childRenderNodes.push(childVNode);
|
|
1397
|
-
}
|
|
1398
|
-
slotNodes.push(childVNode);
|
|
1399
|
-
if (!parentVNode.$children$) {
|
|
1400
|
-
parentVNode.$children$ = [];
|
|
1401
|
-
}
|
|
1402
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1403
|
-
}
|
|
1404
|
-
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1405
|
-
let slottedNode = slotNode.nextSibling;
|
|
1406
|
-
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1407
|
-
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 */))) {
|
|
1408
|
-
slottedNode["s-sn"] = slotName;
|
|
1409
|
-
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1410
|
-
slottedNode = slottedNode.nextSibling;
|
|
1411
|
-
}
|
|
1412
|
-
};
|
|
1413
|
-
var findCorrespondingNode = (node, type) => {
|
|
1414
|
-
let sibling = node;
|
|
1415
|
-
do {
|
|
1416
|
-
sibling = sibling.nextSibling;
|
|
1417
|
-
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1418
|
-
return sibling;
|
|
1419
|
-
};
|
|
1420
553
|
|
|
1421
554
|
// src/runtime/mode.ts
|
|
1422
555
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
1423
556
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
1424
557
|
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
1425
558
|
var parsePropertyValue = (propValue, propType) => {
|
|
1426
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1427
|
-
try {
|
|
1428
|
-
propValue = JSON.parse(propValue);
|
|
1429
|
-
return propValue;
|
|
1430
|
-
} catch (e) {
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1434
|
-
propValue = deserializeProperty(propValue);
|
|
1435
|
-
return propValue;
|
|
1436
|
-
}
|
|
1437
559
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1438
560
|
if (propType & 4 /* Boolean */) {
|
|
1439
561
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1440
562
|
}
|
|
1441
563
|
if (propType & 2 /* Number */) {
|
|
1442
|
-
return
|
|
564
|
+
return parseFloat(propValue);
|
|
1443
565
|
}
|
|
1444
566
|
if (propType & 1 /* String */) {
|
|
1445
567
|
return String(propValue);
|
|
@@ -1488,10 +610,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1488
610
|
var _a;
|
|
1489
611
|
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1490
612
|
const style = styles.get(scopeId2);
|
|
1491
|
-
|
|
1492
|
-
return scopeId2;
|
|
1493
|
-
}
|
|
1494
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
613
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
1495
614
|
if (style) {
|
|
1496
615
|
if (typeof style === "string") {
|
|
1497
616
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1504,39 +623,23 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1504
623
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1505
624
|
styleElm.innerHTML = style;
|
|
1506
625
|
} else {
|
|
1507
|
-
styleElm =
|
|
626
|
+
styleElm = doc.createElement("style");
|
|
1508
627
|
styleElm.innerHTML = style;
|
|
1509
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
628
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
1510
629
|
if (nonce != null) {
|
|
1511
630
|
styleElm.setAttribute("nonce", nonce);
|
|
1512
631
|
}
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
stylesheet.replaceSync(style);
|
|
1525
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1526
|
-
} else {
|
|
1527
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1528
|
-
if (existingStyleContainer) {
|
|
1529
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1530
|
-
} else {
|
|
1531
|
-
styleContainerNode.prepend(styleElm);
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
} else {
|
|
1535
|
-
styleContainerNode.append(styleElm);
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1539
|
-
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"));
|
|
1540
643
|
}
|
|
1541
644
|
}
|
|
1542
645
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -1562,177 +665,131 @@ var attachStyles = (hostRef) => {
|
|
|
1562
665
|
cmpMeta,
|
|
1563
666
|
hostRef.$modeName$
|
|
1564
667
|
);
|
|
1565
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
668
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1566
669
|
elm["s-sc"] = scopeId2;
|
|
1567
670
|
elm.classList.add(scopeId2 + "-h");
|
|
671
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
672
|
+
elm.classList.add(scopeId2 + "-s");
|
|
673
|
+
}
|
|
1568
674
|
}
|
|
1569
675
|
endAttachStyles();
|
|
1570
676
|
};
|
|
1571
677
|
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1572
|
-
var
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1584
|
-
if (oldValue === newValue) {
|
|
1585
|
-
return;
|
|
1586
|
-
}
|
|
1587
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
1588
|
-
let ln = memberName.toLowerCase();
|
|
1589
|
-
if (memberName === "class") {
|
|
1590
|
-
const classList = elm.classList;
|
|
1591
|
-
const oldClasses = parseClassList(oldValue);
|
|
1592
|
-
let newClasses = parseClassList(newValue);
|
|
1593
|
-
if (elm["s-si"] && initialRender) {
|
|
1594
|
-
newClasses.push(elm["s-si"]);
|
|
1595
|
-
oldClasses.forEach((c) => {
|
|
1596
|
-
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
1597
|
-
});
|
|
1598
|
-
newClasses = [...new Set(newClasses)];
|
|
1599
|
-
classList.add(...newClasses);
|
|
1600
|
-
} 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);
|
|
1601
686
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1602
687
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
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]) {
|
|
1608
702
|
if (prop.includes("-")) {
|
|
1609
|
-
elm.style.
|
|
703
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
1610
704
|
} else {
|
|
1611
|
-
elm.style[prop] =
|
|
705
|
+
elm.style[prop] = newValue[prop];
|
|
1612
706
|
}
|
|
1613
707
|
}
|
|
1614
708
|
}
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
if (prop.includes("-")) {
|
|
1619
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
1620
|
-
} else {
|
|
1621
|
-
elm.style[prop] = newValue[prop];
|
|
1622
|
-
}
|
|
709
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
710
|
+
if (newValue) {
|
|
711
|
+
newValue(elm);
|
|
1623
712
|
}
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
memberName = memberName.slice(3);
|
|
1632
|
-
} else if (isMemberInElement(win, ln)) {
|
|
1633
|
-
memberName = ln.slice(2);
|
|
1634
|
-
} else {
|
|
1635
|
-
memberName = ln[2] + memberName.slice(3);
|
|
1636
|
-
}
|
|
1637
|
-
if (oldValue || newValue) {
|
|
1638
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
1639
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
1640
|
-
if (oldValue) {
|
|
1641
|
-
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);
|
|
1642
720
|
}
|
|
1643
|
-
if (newValue) {
|
|
1644
|
-
|
|
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
|
+
}
|
|
1645
730
|
}
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
1656
|
-
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) {
|
|
1657
740
|
elm[memberName] = n;
|
|
1658
|
-
} else {
|
|
1659
|
-
elm.setAttribute(memberName, n);
|
|
1660
741
|
}
|
|
742
|
+
} else {
|
|
743
|
+
elm[memberName] = newValue;
|
|
1661
744
|
}
|
|
1662
|
-
}
|
|
1663
|
-
elm[memberName] = newValue;
|
|
745
|
+
} catch (e) {
|
|
1664
746
|
}
|
|
1665
|
-
} catch (e) {
|
|
1666
747
|
}
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
748
|
+
let xlink = false;
|
|
749
|
+
{
|
|
750
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
751
|
+
memberName = ln;
|
|
752
|
+
xlink = true;
|
|
753
|
+
}
|
|
1673
754
|
}
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
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;
|
|
1677
765
|
if (xlink) {
|
|
1678
|
-
elm.
|
|
766
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1679
767
|
} else {
|
|
1680
|
-
elm.
|
|
768
|
+
elm.setAttribute(memberName, newValue);
|
|
1681
769
|
}
|
|
1682
770
|
}
|
|
1683
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
1684
|
-
newValue = newValue === true ? "" : newValue;
|
|
1685
|
-
if (xlink) {
|
|
1686
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1687
|
-
} else {
|
|
1688
|
-
elm.setAttribute(memberName, newValue);
|
|
1689
|
-
}
|
|
1690
771
|
}
|
|
1691
772
|
}
|
|
1692
773
|
};
|
|
1693
774
|
var parseClassListRegex = /\s/;
|
|
1694
|
-
var parseClassList = (value) =>
|
|
1695
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
1696
|
-
value = value.baseVal;
|
|
1697
|
-
}
|
|
1698
|
-
if (!value || typeof value !== "string") {
|
|
1699
|
-
return [];
|
|
1700
|
-
}
|
|
1701
|
-
return value.split(parseClassListRegex);
|
|
1702
|
-
};
|
|
775
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
1703
776
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
1704
777
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
1705
778
|
|
|
1706
779
|
// src/runtime/vdom/update-element.ts
|
|
1707
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
780
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
1708
781
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1709
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
1710
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
782
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
783
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
1711
784
|
{
|
|
1712
785
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1713
786
|
if (!(memberName in newVnodeAttrs)) {
|
|
1714
|
-
setAccessor(
|
|
1715
|
-
elm,
|
|
1716
|
-
memberName,
|
|
1717
|
-
oldVnodeAttrs[memberName],
|
|
1718
|
-
void 0,
|
|
1719
|
-
isSvgMode2,
|
|
1720
|
-
newVnode.$flags$,
|
|
1721
|
-
isInitialRender
|
|
1722
|
-
);
|
|
787
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
1723
788
|
}
|
|
1724
789
|
}
|
|
1725
790
|
}
|
|
1726
791
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
1727
|
-
setAccessor(
|
|
1728
|
-
elm,
|
|
1729
|
-
memberName,
|
|
1730
|
-
oldVnodeAttrs[memberName],
|
|
1731
|
-
newVnodeAttrs[memberName],
|
|
1732
|
-
isSvgMode2,
|
|
1733
|
-
newVnode.$flags$,
|
|
1734
|
-
isInitialRender
|
|
1735
|
-
);
|
|
792
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
1736
793
|
}
|
|
1737
794
|
};
|
|
1738
795
|
function sortedAttrNames(attrNames) {
|
|
@@ -1753,7 +810,7 @@ var useNativeShadowDom = false;
|
|
|
1753
810
|
var checkSlotFallbackVisibility = false;
|
|
1754
811
|
var checkSlotRelocate = false;
|
|
1755
812
|
var isSvgMode = false;
|
|
1756
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
813
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
1757
814
|
var _a;
|
|
1758
815
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
1759
816
|
let i2 = 0;
|
|
@@ -1763,6 +820,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1763
820
|
if (!useNativeShadowDom) {
|
|
1764
821
|
checkSlotRelocate = true;
|
|
1765
822
|
if (newVNode2.$tag$ === "slot") {
|
|
823
|
+
if (scopeId) {
|
|
824
|
+
parentElm.classList.add(scopeId + "-s");
|
|
825
|
+
}
|
|
1766
826
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
1767
827
|
// slot element has fallback content
|
|
1768
828
|
// still create an element that "mocks" the slot element
|
|
@@ -1776,22 +836,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1776
836
|
}
|
|
1777
837
|
}
|
|
1778
838
|
if (newVNode2.$text$ !== null) {
|
|
1779
|
-
elm = newVNode2.$elm$ =
|
|
839
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1780
840
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1781
|
-
elm = newVNode2.$elm$ =
|
|
1782
|
-
{
|
|
1783
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
1784
|
-
}
|
|
841
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
1785
842
|
} else {
|
|
1786
843
|
if (!isSvgMode) {
|
|
1787
844
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1788
845
|
}
|
|
1789
|
-
|
|
1790
|
-
throw new Error(
|
|
1791
|
-
"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."
|
|
1792
|
-
);
|
|
1793
|
-
}
|
|
1794
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
846
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
1795
847
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1796
848
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1797
849
|
) ;
|
|
@@ -1801,12 +853,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1801
853
|
{
|
|
1802
854
|
updateElement(null, newVNode2, isSvgMode);
|
|
1803
855
|
}
|
|
1804
|
-
|
|
856
|
+
const rootNode = elm.getRootNode();
|
|
857
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
858
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1805
859
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
1806
860
|
}
|
|
861
|
+
{
|
|
862
|
+
updateElementScopeIds(elm, parentElm);
|
|
863
|
+
}
|
|
1807
864
|
if (newVNode2.$children$) {
|
|
1808
865
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1809
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
866
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
1810
867
|
if (childNode) {
|
|
1811
868
|
elm.appendChild(childNode);
|
|
1812
869
|
}
|
|
@@ -1827,16 +884,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1827
884
|
elm["s-cr"] = contentRef;
|
|
1828
885
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1829
886
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1830
|
-
patchSlotNode(elm);
|
|
1831
887
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1832
888
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1833
889
|
{
|
|
1834
890
|
relocateToHostRoot(oldParentVNode.$elm$);
|
|
1835
891
|
}
|
|
1836
892
|
}
|
|
1837
|
-
{
|
|
1838
|
-
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
1839
|
-
}
|
|
1840
893
|
}
|
|
1841
894
|
}
|
|
1842
895
|
return elm;
|
|
@@ -1845,12 +898,8 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
1845
898
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1846
899
|
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
1847
900
|
if (host != null) {
|
|
1848
|
-
const contentRefNode = Array.from(host.
|
|
1849
|
-
|
|
1850
|
-
);
|
|
1851
|
-
const childNodeArray = Array.from(
|
|
1852
|
-
parentElm.__childNodes || parentElm.childNodes
|
|
1853
|
-
);
|
|
901
|
+
const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
|
|
902
|
+
const childNodeArray = Array.from(parentElm.childNodes);
|
|
1854
903
|
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
1855
904
|
if (childNode["s-sh"] != null) {
|
|
1856
905
|
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
@@ -1859,11 +908,11 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
1859
908
|
}
|
|
1860
909
|
}
|
|
1861
910
|
}
|
|
1862
|
-
plt.$flags$ &=
|
|
911
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1863
912
|
};
|
|
1864
913
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1865
914
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1866
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
915
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
1867
916
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
1868
917
|
let node = parentElm;
|
|
1869
918
|
while (node = node.nextSibling) {
|
|
@@ -1875,7 +924,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1875
924
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
1876
925
|
const childNode = oldSlotChildNodes[i2];
|
|
1877
926
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
1878
|
-
insertBefore(
|
|
927
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
1879
928
|
childNode["s-ol"].remove();
|
|
1880
929
|
childNode["s-ol"] = void 0;
|
|
1881
930
|
childNode["s-sh"] = void 0;
|
|
@@ -1885,7 +934,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1885
934
|
putBackInOriginalLocation(childNode, recursive);
|
|
1886
935
|
}
|
|
1887
936
|
}
|
|
1888
|
-
plt.$flags$ &=
|
|
937
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1889
938
|
};
|
|
1890
939
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1891
940
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -1895,7 +944,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1895
944
|
}
|
|
1896
945
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
1897
946
|
if (vnodes[startIdx]) {
|
|
1898
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
947
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1899
948
|
if (childNode) {
|
|
1900
949
|
vnodes[startIdx].$elm$ = childNode;
|
|
1901
950
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -1982,7 +1031,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1982
1031
|
if (idxInOld >= 0) {
|
|
1983
1032
|
elmToMove = oldCh[idxInOld];
|
|
1984
1033
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1985
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
1034
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
1986
1035
|
} else {
|
|
1987
1036
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1988
1037
|
oldCh[idxInOld] = void 0;
|
|
@@ -1990,16 +1039,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1990
1039
|
}
|
|
1991
1040
|
newStartVnode = newCh[++newStartIdx];
|
|
1992
1041
|
} else {
|
|
1993
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
1042
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
1994
1043
|
newStartVnode = newCh[++newStartIdx];
|
|
1995
1044
|
}
|
|
1996
1045
|
if (node) {
|
|
1997
1046
|
{
|
|
1998
|
-
insertBefore(
|
|
1999
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
2000
|
-
node,
|
|
2001
|
-
referenceNode(oldStartVnode.$elm$)
|
|
2002
|
-
);
|
|
1047
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
2003
1048
|
}
|
|
2004
1049
|
}
|
|
2005
1050
|
}
|
|
@@ -2020,19 +1065,28 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2020
1065
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
2021
1066
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
2022
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
|
+
}
|
|
2023
1077
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
2024
1078
|
}
|
|
2025
1079
|
if (!isInitialRender) {
|
|
2026
1080
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
2027
1081
|
}
|
|
2028
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
2029
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
2030
|
-
}
|
|
2031
1082
|
return true;
|
|
2032
1083
|
}
|
|
2033
1084
|
return false;
|
|
2034
1085
|
};
|
|
2035
|
-
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;
|
|
2036
1090
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
2037
1091
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
2038
1092
|
const oldChildren = oldVNode.$children$;
|
|
@@ -2050,8 +1104,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2050
1104
|
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
2051
1105
|
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
2052
1106
|
}
|
|
1107
|
+
} else {
|
|
1108
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
2053
1109
|
}
|
|
2054
|
-
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
2055
1110
|
}
|
|
2056
1111
|
if (oldChildren !== null && newChildren !== null) {
|
|
2057
1112
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -2075,15 +1130,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2075
1130
|
elm.data = text;
|
|
2076
1131
|
}
|
|
2077
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
|
+
};
|
|
2078
1160
|
var relocateNodes = [];
|
|
2079
1161
|
var markSlotContentForRelocation = (elm) => {
|
|
2080
1162
|
let node;
|
|
2081
1163
|
let hostContentNodes;
|
|
2082
1164
|
let j;
|
|
2083
|
-
const
|
|
2084
|
-
for (const childNode of children) {
|
|
1165
|
+
for (const childNode of elm.childNodes) {
|
|
2085
1166
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
2086
|
-
hostContentNodes = node.parentNode.
|
|
1167
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
2087
1168
|
const slotName = childNode["s-sn"];
|
|
2088
1169
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2089
1170
|
node = hostContentNodes[j];
|
|
@@ -2125,6 +1206,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2125
1206
|
}
|
|
2126
1207
|
}
|
|
2127
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
|
+
};
|
|
2128
1224
|
var nullifyVNodeRefs = (vNode) => {
|
|
2129
1225
|
{
|
|
2130
1226
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -2132,51 +1228,44 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
2132
1228
|
}
|
|
2133
1229
|
};
|
|
2134
1230
|
var insertBefore = (parent, newNode, reference) => {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
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
|
+
);
|
|
2150
1246
|
}
|
|
1247
|
+
return scopeIds;
|
|
2151
1248
|
};
|
|
2152
|
-
|
|
2153
|
-
var _a
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
let found = false;
|
|
2162
|
-
while (child) {
|
|
2163
|
-
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
2164
|
-
found = true;
|
|
2165
|
-
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);
|
|
2166
1258
|
}
|
|
2167
|
-
child = child.nextSibling;
|
|
2168
1259
|
}
|
|
2169
|
-
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
2170
1260
|
}
|
|
2171
1261
|
}
|
|
2172
|
-
}
|
|
1262
|
+
};
|
|
2173
1263
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
2174
1264
|
var _a, _b, _c, _d, _e;
|
|
2175
1265
|
const hostElm = hostRef.$hostElement$;
|
|
2176
1266
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2177
1267
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2178
|
-
const
|
|
2179
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1268
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
2180
1269
|
hostTagName = hostElm.tagName;
|
|
2181
1270
|
if (cmpMeta.$attrsToReflect$) {
|
|
2182
1271
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -2198,7 +1287,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2198
1287
|
{
|
|
2199
1288
|
scopeId = hostElm["s-sc"];
|
|
2200
1289
|
}
|
|
2201
|
-
useNativeShadowDom =
|
|
1290
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
2202
1291
|
{
|
|
2203
1292
|
contentRef = hostElm["s-cr"];
|
|
2204
1293
|
checkSlotFallbackVisibility = false;
|
|
@@ -2210,8 +1299,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2210
1299
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
2211
1300
|
for (const relocateData of relocateNodes) {
|
|
2212
1301
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2213
|
-
if (!nodeToRelocate["s-ol"]
|
|
2214
|
-
const orgLocationNode =
|
|
1302
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1303
|
+
const orgLocationNode = doc.createTextNode("");
|
|
2215
1304
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2216
1305
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
2217
1306
|
}
|
|
@@ -2222,11 +1311,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2222
1311
|
if (slotRefNode) {
|
|
2223
1312
|
const parentNodeRef = slotRefNode.parentNode;
|
|
2224
1313
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
2225
|
-
if (
|
|
1314
|
+
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
2226
1315
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
2227
1316
|
while (orgLocationNode) {
|
|
2228
1317
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
2229
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1318
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
2230
1319
|
refNode = refNode.nextSibling;
|
|
2231
1320
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
2232
1321
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -2239,17 +1328,15 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2239
1328
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
2240
1329
|
}
|
|
2241
1330
|
}
|
|
2242
|
-
|
|
2243
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
2244
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1331
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
2245
1332
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
2246
1333
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
2247
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1334
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
2248
1335
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
2249
1336
|
}
|
|
2250
1337
|
}
|
|
2251
1338
|
}
|
|
2252
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1339
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
2253
1340
|
} else {
|
|
2254
1341
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
2255
1342
|
if (isInitialLoad) {
|
|
@@ -2263,12 +1350,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2263
1350
|
if (checkSlotFallbackVisibility) {
|
|
2264
1351
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
2265
1352
|
}
|
|
2266
|
-
plt.$flags$ &=
|
|
1353
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
2267
1354
|
relocateNodes.length = 0;
|
|
2268
1355
|
}
|
|
2269
1356
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2270
|
-
const
|
|
2271
|
-
for (const childNode of children) {
|
|
1357
|
+
for (const childNode of rootVnode.$elm$.childNodes) {
|
|
2272
1358
|
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
2273
1359
|
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
2274
1360
|
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
@@ -2283,14 +1369,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2283
1369
|
// src/runtime/update-component.ts
|
|
2284
1370
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
2285
1371
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
2286
|
-
|
|
2287
|
-
new Promise(
|
|
2288
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
2289
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
2290
|
-
r();
|
|
2291
|
-
}
|
|
2292
|
-
)
|
|
2293
|
-
);
|
|
1372
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
2294
1373
|
}
|
|
2295
1374
|
};
|
|
2296
1375
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -2319,15 +1398,17 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2319
1398
|
{
|
|
2320
1399
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2321
1400
|
if (hostRef.$queuedListeners$) {
|
|
2322
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1401
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
2323
1402
|
hostRef.$queuedListeners$ = void 0;
|
|
2324
1403
|
}
|
|
2325
1404
|
}
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
1405
|
+
{
|
|
1406
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
{
|
|
1410
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
2329
1411
|
}
|
|
2330
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2331
1412
|
endSchedule();
|
|
2332
1413
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
2333
1414
|
};
|
|
@@ -2370,7 +1451,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2370
1451
|
try {
|
|
2371
1452
|
instance = instance.render && instance.render();
|
|
2372
1453
|
{
|
|
2373
|
-
hostRef.$flags$ &=
|
|
1454
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
2374
1455
|
}
|
|
2375
1456
|
{
|
|
2376
1457
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -2393,13 +1474,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2393
1474
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
2394
1475
|
const instance = hostRef.$lazyInstance$ ;
|
|
2395
1476
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2396
|
-
|
|
1477
|
+
{
|
|
1478
|
+
safeCall(instance, "componentDidRender");
|
|
1479
|
+
}
|
|
2397
1480
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
2398
1481
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
2399
1482
|
{
|
|
2400
1483
|
addHydratedFlag(elm);
|
|
2401
1484
|
}
|
|
2402
|
-
|
|
1485
|
+
{
|
|
1486
|
+
safeCall(instance, "componentDidLoad");
|
|
1487
|
+
}
|
|
2403
1488
|
endPostUpdate();
|
|
2404
1489
|
{
|
|
2405
1490
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -2408,7 +1493,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2408
1493
|
}
|
|
2409
1494
|
}
|
|
2410
1495
|
} else {
|
|
2411
|
-
|
|
1496
|
+
{
|
|
1497
|
+
safeCall(instance, "componentDidUpdate");
|
|
1498
|
+
}
|
|
2412
1499
|
endPostUpdate();
|
|
2413
1500
|
}
|
|
2414
1501
|
{
|
|
@@ -2422,7 +1509,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2422
1509
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
2423
1510
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
2424
1511
|
}
|
|
2425
|
-
hostRef.$flags$ &=
|
|
1512
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
2426
1513
|
}
|
|
2427
1514
|
};
|
|
2428
1515
|
var forceUpdate = (ref) => {
|
|
@@ -2436,14 +1523,17 @@ var forceUpdate = (ref) => {
|
|
|
2436
1523
|
}
|
|
2437
1524
|
};
|
|
2438
1525
|
var appDidLoad = (who) => {
|
|
1526
|
+
{
|
|
1527
|
+
addHydratedFlag(doc.documentElement);
|
|
1528
|
+
}
|
|
2439
1529
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2440
1530
|
};
|
|
2441
|
-
var safeCall = (instance, method, arg
|
|
1531
|
+
var safeCall = (instance, method, arg) => {
|
|
2442
1532
|
if (instance && instance[method]) {
|
|
2443
1533
|
try {
|
|
2444
1534
|
return instance[method](arg);
|
|
2445
1535
|
} catch (e) {
|
|
2446
|
-
consoleError(e
|
|
1536
|
+
consoleError(e);
|
|
2447
1537
|
}
|
|
2448
1538
|
}
|
|
2449
1539
|
return void 0;
|
|
@@ -2459,7 +1549,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2459
1549
|
const hostRef = getHostRef(ref);
|
|
2460
1550
|
if (!hostRef) {
|
|
2461
1551
|
throw new Error(
|
|
2462
|
-
`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).`
|
|
2463
1553
|
);
|
|
2464
1554
|
}
|
|
2465
1555
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -2485,11 +1575,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2485
1575
|
}
|
|
2486
1576
|
}
|
|
2487
1577
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2488
|
-
if (instance.componentShouldUpdate) {
|
|
2489
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
2490
|
-
return;
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
1578
|
scheduleUpdate(hostRef, false);
|
|
2494
1579
|
}
|
|
2495
1580
|
}
|
|
@@ -2507,68 +1592,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2507
1592
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2508
1593
|
members.map(([memberName, [memberFlags]]) => {
|
|
2509
1594
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
2510
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
2511
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
2512
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
2513
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
2514
|
-
Object.defineProperty(prototype, memberName, {
|
|
2515
|
-
get() {
|
|
2516
|
-
{
|
|
2517
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
2518
|
-
return getValue(this, memberName);
|
|
2519
|
-
}
|
|
2520
|
-
const ref = getHostRef(this);
|
|
2521
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
2522
|
-
if (!instance) return;
|
|
2523
|
-
return instance[memberName];
|
|
2524
|
-
}
|
|
2525
|
-
},
|
|
2526
|
-
configurable: true,
|
|
2527
|
-
enumerable: true
|
|
2528
|
-
});
|
|
2529
|
-
}
|
|
2530
1595
|
Object.defineProperty(prototype, memberName, {
|
|
1596
|
+
get() {
|
|
1597
|
+
return getValue(this, memberName);
|
|
1598
|
+
},
|
|
2531
1599
|
set(newValue) {
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
2537
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2538
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2539
|
-
}
|
|
2540
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
2541
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2542
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
2543
|
-
return;
|
|
2544
|
-
}
|
|
2545
|
-
{
|
|
2546
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
2547
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
2548
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
2549
|
-
ref.$onReadyPromise$.then(() => {
|
|
2550
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
2551
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
2552
|
-
}
|
|
2553
|
-
});
|
|
2554
|
-
}
|
|
2555
|
-
return;
|
|
2556
|
-
}
|
|
2557
|
-
const setterSetVal = () => {
|
|
2558
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
2559
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2560
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2561
|
-
}
|
|
2562
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
2563
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2564
|
-
};
|
|
2565
|
-
if (ref.$lazyInstance$) {
|
|
2566
|
-
setterSetVal();
|
|
2567
|
-
} else {
|
|
2568
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2569
|
-
}
|
|
2570
|
-
}
|
|
2571
|
-
}
|
|
1600
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1601
|
+
},
|
|
1602
|
+
configurable: true,
|
|
1603
|
+
enumerable: true
|
|
2572
1604
|
});
|
|
2573
1605
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
2574
1606
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -2589,7 +1621,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2589
1621
|
plt.jmp(() => {
|
|
2590
1622
|
var _a2;
|
|
2591
1623
|
const propName = attrNameToPropName.get(attrName);
|
|
2592
|
-
if (this.hasOwnProperty(propName)
|
|
1624
|
+
if (this.hasOwnProperty(propName)) {
|
|
2593
1625
|
newValue = this[propName];
|
|
2594
1626
|
delete this[propName];
|
|
2595
1627
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -2609,11 +1641,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2609
1641
|
}
|
|
2610
1642
|
return;
|
|
2611
1643
|
}
|
|
2612
|
-
|
|
2613
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2614
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
2615
|
-
this[propName] = newValue;
|
|
2616
|
-
}
|
|
1644
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2617
1645
|
});
|
|
2618
1646
|
};
|
|
2619
1647
|
Cstr.observedAttributes = Array.from(
|
|
@@ -2642,7 +1670,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2642
1670
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2643
1671
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2644
1672
|
if (bundleId) {
|
|
2645
|
-
const CstrImport = loadModule(cmpMeta
|
|
1673
|
+
const CstrImport = loadModule(cmpMeta);
|
|
2646
1674
|
if (CstrImport && "then" in CstrImport) {
|
|
2647
1675
|
const endLoad = uniqueTime();
|
|
2648
1676
|
Cstr = await CstrImport;
|
|
@@ -2667,16 +1695,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2667
1695
|
try {
|
|
2668
1696
|
new Cstr(hostRef);
|
|
2669
1697
|
} catch (e) {
|
|
2670
|
-
consoleError(e
|
|
1698
|
+
consoleError(e);
|
|
2671
1699
|
}
|
|
2672
1700
|
{
|
|
2673
|
-
hostRef.$flags$ &=
|
|
1701
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
2674
1702
|
}
|
|
2675
1703
|
{
|
|
2676
1704
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2677
1705
|
}
|
|
2678
1706
|
endNewInstance();
|
|
2679
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1707
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2680
1708
|
} else {
|
|
2681
1709
|
Cstr = elm.constructor;
|
|
2682
1710
|
const cmpTag = elm.localName;
|
|
@@ -2708,9 +1736,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2708
1736
|
schedule();
|
|
2709
1737
|
}
|
|
2710
1738
|
};
|
|
2711
|
-
var fireConnectedCallback = (instance
|
|
1739
|
+
var fireConnectedCallback = (instance) => {
|
|
2712
1740
|
{
|
|
2713
|
-
safeCall(instance, "connectedCallback"
|
|
1741
|
+
safeCall(instance, "connectedCallback");
|
|
2714
1742
|
}
|
|
2715
1743
|
};
|
|
2716
1744
|
|
|
@@ -2729,9 +1757,6 @@ var connectedCallback = (elm) => {
|
|
|
2729
1757
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2730
1758
|
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
|
|
2731
1759
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2732
|
-
} else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2733
|
-
const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
|
|
2734
|
-
elm["s-sc"] = scopeId2;
|
|
2735
1760
|
}
|
|
2736
1761
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2737
1762
|
}
|
|
@@ -2766,27 +1791,24 @@ var connectedCallback = (elm) => {
|
|
|
2766
1791
|
} else {
|
|
2767
1792
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
2768
1793
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2769
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1794
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2770
1795
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2771
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1796
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
2772
1797
|
}
|
|
2773
1798
|
}
|
|
2774
1799
|
endConnected();
|
|
2775
1800
|
}
|
|
2776
1801
|
};
|
|
2777
1802
|
var setContentReference = (elm) => {
|
|
2778
|
-
|
|
2779
|
-
return;
|
|
2780
|
-
}
|
|
2781
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1803
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
2782
1804
|
""
|
|
2783
1805
|
);
|
|
2784
1806
|
contentRefElm["s-cn"] = true;
|
|
2785
1807
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2786
1808
|
};
|
|
2787
|
-
var disconnectInstance = (instance
|
|
1809
|
+
var disconnectInstance = (instance) => {
|
|
2788
1810
|
{
|
|
2789
|
-
safeCall(instance, "disconnectedCallback"
|
|
1811
|
+
safeCall(instance, "disconnectedCallback");
|
|
2790
1812
|
}
|
|
2791
1813
|
};
|
|
2792
1814
|
var disconnectedCallback = async (elm) => {
|
|
@@ -2799,44 +1821,312 @@ var disconnectedCallback = async (elm) => {
|
|
|
2799
1821
|
}
|
|
2800
1822
|
}
|
|
2801
1823
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2802
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1824
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
2803
1825
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2804
|
-
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);
|
|
2805
2083
|
}
|
|
2084
|
+
slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
|
|
2806
2085
|
}
|
|
2807
|
-
|
|
2808
|
-
|
|
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
|
+
}
|
|
2809
2101
|
}
|
|
2810
|
-
|
|
2811
|
-
|
|
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);
|
|
2812
2108
|
}
|
|
2109
|
+
return childNodes;
|
|
2813
2110
|
};
|
|
2814
2111
|
|
|
2815
2112
|
// src/runtime/bootstrap-lazy.ts
|
|
2816
2113
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2817
2114
|
var _a;
|
|
2818
|
-
if (!win.document) {
|
|
2819
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
2820
|
-
return;
|
|
2821
|
-
}
|
|
2822
2115
|
const endBootstrap = createTime();
|
|
2823
2116
|
const cmpTags = [];
|
|
2824
2117
|
const exclude = options.exclude || [];
|
|
2825
2118
|
const customElements2 = win.customElements;
|
|
2826
|
-
const head =
|
|
2119
|
+
const head = doc.head;
|
|
2827
2120
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
2828
|
-
const dataStyles = /* @__PURE__ */
|
|
2121
|
+
const dataStyles = /* @__PURE__ */ doc.createElement("style");
|
|
2829
2122
|
const deferredConnectedCallbacks = [];
|
|
2830
2123
|
let appLoadFallback;
|
|
2831
2124
|
let isBootstrapping = true;
|
|
2832
2125
|
Object.assign(plt, options);
|
|
2833
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
2126
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
2834
2127
|
{
|
|
2835
2128
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2836
2129
|
}
|
|
2837
|
-
{
|
|
2838
|
-
hydrateScopedToShadow();
|
|
2839
|
-
}
|
|
2840
2130
|
let hasSlotRelocation = false;
|
|
2841
2131
|
lazyBundles.map((lazyBundle) => {
|
|
2842
2132
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -2907,17 +2197,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2907
2197
|
}
|
|
2908
2198
|
disconnectedCallback() {
|
|
2909
2199
|
plt.jmp(() => disconnectedCallback(this));
|
|
2910
|
-
plt.raf(() => {
|
|
2911
|
-
var _a3;
|
|
2912
|
-
const hostRef = getHostRef(this);
|
|
2913
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2914
|
-
if (i2 > -1) {
|
|
2915
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
2916
|
-
}
|
|
2917
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
2918
|
-
delete hostRef.$vnode$.$elm$;
|
|
2919
|
-
}
|
|
2920
|
-
});
|
|
2921
2200
|
}
|
|
2922
2201
|
componentOnReady() {
|
|
2923
2202
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -2925,7 +2204,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2925
2204
|
};
|
|
2926
2205
|
{
|
|
2927
2206
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2928
|
-
patchPseudoShadowDom(HostElement.prototype);
|
|
2207
|
+
patchPseudoShadowDom(HostElement.prototype, cmpMeta);
|
|
2929
2208
|
}
|
|
2930
2209
|
}
|
|
2931
2210
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2947,7 +2226,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2947
2226
|
}
|
|
2948
2227
|
if (dataStyles.innerHTML.length) {
|
|
2949
2228
|
dataStyles.setAttribute("data-styles", "");
|
|
2950
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
2229
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
2951
2230
|
if (nonce != null) {
|
|
2952
2231
|
dataStyles.setAttribute("nonce", nonce);
|
|
2953
2232
|
}
|
|
@@ -2965,9 +2244,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2965
2244
|
endBootstrap();
|
|
2966
2245
|
};
|
|
2967
2246
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2968
|
-
if (listeners
|
|
2247
|
+
if (listeners) {
|
|
2969
2248
|
listeners.map(([flags, name, method]) => {
|
|
2970
|
-
const target = getHostListenerTarget(
|
|
2249
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2971
2250
|
const handler = hostListenerProxy(hostRef, method);
|
|
2972
2251
|
const opts = hostListenerOpts(flags);
|
|
2973
2252
|
plt.ael(target, name, handler, opts);
|
|
@@ -2986,19 +2265,13 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2986
2265
|
}
|
|
2987
2266
|
}
|
|
2988
2267
|
} catch (e) {
|
|
2989
|
-
consoleError(e
|
|
2268
|
+
consoleError(e);
|
|
2990
2269
|
}
|
|
2991
2270
|
};
|
|
2992
|
-
var getHostListenerTarget = (
|
|
2993
|
-
if (flags & 4 /* TargetDocument */)
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
if (flags & 8 /* TargetWindow */) {
|
|
2997
|
-
return win;
|
|
2998
|
-
}
|
|
2999
|
-
if (flags & 16 /* TargetBody */) {
|
|
3000
|
-
return doc.body;
|
|
3001
|
-
}
|
|
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;
|
|
3002
2275
|
return elm;
|
|
3003
2276
|
};
|
|
3004
2277
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -3009,4 +2282,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
3009
2282
|
// src/runtime/nonce.ts
|
|
3010
2283
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
3011
2284
|
|
|
3012
|
-
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 };
|