@ionic/core 8.4.2-dev.11734347773.16e58dbd → 8.4.2-dev.11736265112.120bf7af
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 +8 -13
- package/components/alert.js +10 -15
- package/components/animation.js +1 -1
- package/components/backdrop.js +6 -10
- package/components/button.js +11 -41
- package/components/buttons.js +7 -11
- package/components/capacitor.js +1 -1
- package/components/checkbox.js +12 -30
- package/components/content.js +12 -14
- package/components/data.js +4 -4
- package/components/focus-visible.js +1 -8
- package/components/framework-delegate.js +1 -3
- package/components/hardware-back-button.js +115 -0
- package/components/header.js +15 -24
- package/components/helpers.js +1 -4
- package/components/index2.js +2 -2
- package/components/index4.js +9 -8
- package/components/index5.js +3 -27
- package/components/index6.js +20 -114
- package/components/index7.js +27 -163
- package/components/index8.js +128 -0
- package/{dist/esm/index-62b4a18b.js → components/index9.js} +2 -4
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -1
- package/components/ion-accordion-group.js +6 -25
- package/components/ion-accordion.js +17 -36
- package/components/ion-app.js +77 -9
- package/components/ion-avatar.js +3 -52
- package/components/ion-back-button.js +19 -29
- package/components/ion-badge.js +8 -44
- package/components/ion-breadcrumb.js +11 -45
- package/components/ion-breadcrumbs.js +5 -9
- package/components/ion-card-content.js +7 -11
- package/components/ion-card-header.js +5 -9
- package/components/ion-card-subtitle.js +5 -9
- package/components/ion-card-title.js +5 -9
- package/components/ion-card.js +9 -17
- package/components/ion-chip.js +8 -45
- package/components/ion-col.js +5 -5
- package/components/ion-datetime-button.js +6 -9
- package/components/ion-datetime.js +21 -99
- package/components/ion-fab-button.js +10 -33
- package/components/ion-fab-list.js +5 -5
- package/components/ion-fab.js +6 -6
- package/components/ion-footer.js +12 -18
- package/components/ion-grid.js +5 -5
- package/components/ion-img.js +2 -5
- package/components/ion-infinite-scroll-content.js +8 -13
- package/components/ion-infinite-scroll.js +5 -5
- package/components/ion-input-password-toggle.js +14 -53
- package/components/ion-input.js +20 -118
- package/components/ion-item-divider.js +5 -9
- package/components/ion-item-group.js +5 -9
- package/components/ion-item-option.js +8 -28
- package/components/ion-item-options.js +5 -9
- package/components/ion-item-sliding.js +5 -5
- package/components/ion-loading.js +8 -13
- package/components/ion-menu-button.js +10 -28
- package/components/ion-menu-toggle.js +5 -5
- package/components/ion-menu.js +8 -12
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +6 -8
- package/components/ion-note.js +5 -9
- package/components/ion-picker-legacy.js +8 -7
- package/components/ion-progress-bar.js +6 -11
- package/components/ion-range.js +10 -13
- package/components/ion-refresher-content.js +9 -28
- package/components/ion-refresher.js +7 -11
- package/components/ion-reorder-group.js +5 -5
- package/components/ion-reorder.js +5 -31
- package/components/ion-router-link.js +6 -6
- package/components/ion-router-outlet.js +3 -4
- package/components/ion-row.js +2 -5
- package/components/ion-searchbar.js +16 -93
- package/components/ion-segment-button.js +7 -11
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -6
- package/components/ion-segment.js +8 -11
- package/components/ion-select-option.js +2 -5
- package/components/ion-select.js +31 -118
- package/components/ion-skeleton-text.js +5 -6
- package/components/ion-split-pane.js +8 -12
- package/components/ion-tab-bar.js +8 -31
- package/components/ion-tab-button.js +7 -28
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +2 -2
- package/components/ion-text.js +5 -5
- package/components/ion-textarea.js +11 -38
- package/components/ion-thumbnail.js +2 -5
- package/components/ion-toast.js +11 -30
- package/components/ion-toggle.js +18 -77
- package/components/ionic-global.js +84 -374
- package/components/ios.transition.js +0 -1
- package/components/item.js +11 -41
- package/components/keyboard-controller.js +2 -4
- package/components/label.js +5 -9
- package/components/list-header.js +5 -9
- package/components/list.js +6 -29
- package/components/modal.js +21 -51
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +5 -4
- package/components/picker-column-option.js +5 -9
- package/components/picker-column.js +8 -7
- package/components/picker-column2.js +4 -4
- package/components/picker.js +4 -8
- package/components/popover.js +8 -11
- package/components/radio-group.js +3 -5
- package/components/radio.js +8 -12
- package/components/ripple-effect.js +8 -18
- package/components/select-modal.js +3 -3
- package/components/select-popover.js +2 -9
- package/components/spinner.js +9 -36
- package/components/status-tap.js +1 -1
- package/components/title.js +7 -11
- package/components/toolbar.js +7 -11
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{animation-58015a44.js → animation-b4fdf128.js} +2 -2
- package/dist/cjs/{app-globals-d64148d3.js → app-globals-16893c1e.js} +1 -1
- package/dist/cjs/{button-active-ec1fd1d8.js → button-active-ec3d9ca2.js} +2 -2
- package/dist/cjs/{capacitor-454dd071.js → capacitor-c04564bf.js} +3 -3
- package/dist/cjs/{data-b726dbee.js → data-21dc0f81.js} +6 -6
- package/dist/{esm/focus-visible-501aff19.js → cjs/focus-visible-7a0ce04f.js} +3 -8
- package/dist/cjs/{framework-delegate-32f1a0e4.js → framework-delegate-55f5683a.js} +2 -4
- package/dist/cjs/{haptic-7c25be74.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/hardware-back-button-5a19da86.js +122 -0
- package/dist/cjs/{helpers-4e2936d2.js → helpers-afaa9001.js} +1 -4
- package/dist/cjs/{index-8f975cf4.js → index-29ad8b24.js} +12 -12
- package/dist/cjs/{index-03fbee1d.js → index-2b28acc8.js} +15 -14
- package/dist/cjs/{index-73f75efb.js → index-55b6245a.js} +1117 -744
- package/dist/cjs/index-5915f9b3.js +38 -0
- package/dist/cjs/{index-604c36ae.js → index-5b6a7459.js} +3 -3
- package/dist/cjs/{index-0e0c6196.js → index-9509ecad.js} +7 -9
- package/dist/cjs/index-c8d52405.js +10 -0
- package/dist/cjs/index.cjs.js +13 -11
- package/dist/cjs/{input-shims-4b4d2251.js → input-shims-9e59ef62.js} +17 -18
- package/dist/cjs/{input.utils-fb1debe4.js → input.utils-611cde0b.js} +5 -4
- package/dist/cjs/ion-accordion_2.cjs.entry.js +25 -62
- package/dist/cjs/ion-action-sheet.cjs.entry.js +19 -22
- package/dist/cjs/ion-alert.cjs.entry.js +24 -26
- package/dist/cjs/ion-app_8.cjs.entry.js +153 -109
- package/dist/cjs/ion-avatar_3.cjs.entry.js +10 -94
- package/dist/cjs/ion-back-button.cjs.entry.js +22 -32
- package/dist/cjs/ion-backdrop.cjs.entry.js +7 -12
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +16 -54
- package/dist/cjs/ion-button_2.cjs.entry.js +16 -47
- package/dist/cjs/ion-card_5.cjs.entry.js +29 -53
- package/dist/cjs/ion-checkbox.cjs.entry.js +14 -31
- package/dist/cjs/ion-chip.cjs.entry.js +8 -44
- package/dist/cjs/ion-col_3.cjs.entry.js +11 -15
- package/dist/cjs/ion-datetime-button.cjs.entry.js +13 -17
- package/dist/cjs/ion-datetime_3.cjs.entry.js +115 -191
- package/dist/cjs/ion-fab_3.cjs.entry.js +20 -43
- package/dist/cjs/ion-img.cjs.entry.js +4 -8
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +18 -22
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +17 -56
- package/dist/cjs/ion-input.cjs.entry.js +24 -119
- package/dist/cjs/ion-item-option_3.cjs.entry.js +18 -41
- package/dist/cjs/ion-item_8.cjs.entry.js +42 -114
- package/dist/cjs/ion-loading.cjs.entry.js +19 -21
- package/dist/cjs/ion-menu_3.cjs.entry.js +30 -49
- package/dist/cjs/ion-modal.cjs.entry.js +67 -95
- package/dist/cjs/ion-nav_2.cjs.entry.js +14 -16
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +7 -12
- package/dist/cjs/ion-picker-column.cjs.entry.js +13 -13
- package/dist/cjs/ion-picker.cjs.entry.js +6 -11
- package/dist/cjs/ion-popover.cjs.entry.js +19 -21
- package/dist/cjs/ion-progress-bar.cjs.entry.js +9 -14
- package/dist/cjs/ion-radio_2.cjs.entry.js +12 -19
- package/dist/cjs/ion-range.cjs.entry.js +17 -21
- package/dist/cjs/ion-refresher_2.cjs.entry.js +24 -45
- package/dist/cjs/ion-reorder_2.cjs.entry.js +14 -38
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +8 -19
- package/dist/cjs/ion-route_4.cjs.entry.js +8 -9
- package/dist/cjs/ion-searchbar.cjs.entry.js +18 -95
- package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment-view.cjs.entry.js +3 -7
- package/dist/cjs/ion-segment_2.cjs.entry.js +16 -24
- package/dist/cjs/ion-select-modal.cjs.entry.js +11 -9
- package/dist/cjs/ion-select_3.cjs.entry.js +40 -133
- package/dist/cjs/ion-spinner.cjs.entry.js +10 -36
- package/dist/cjs/ion-split-pane.cjs.entry.js +9 -14
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +21 -61
- package/dist/cjs/ion-tab_2.cjs.entry.js +7 -8
- package/dist/cjs/ion-text.cjs.entry.js +6 -7
- package/dist/cjs/ion-textarea.cjs.entry.js +17 -42
- package/dist/cjs/ion-toast.cjs.entry.js +42 -59
- package/dist/cjs/ion-toggle.cjs.entry.js +23 -81
- package/dist/cjs/ionic-global-aa46b97c.js +237 -0
- package/dist/cjs/ionic.cjs.js +5 -6
- package/dist/cjs/{ios.transition-2bb0f7d5.js → ios.transition-9820d3dc.js} +7 -7
- package/dist/cjs/{keyboard-53c12a15.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-0a5d46dd.js → keyboard-af1bb365.js} +3 -5
- package/dist/cjs/{keyboard-controller-102bad3e.js → keyboard-controller-c05e747a.js} +9 -11
- package/dist/cjs/loader.cjs.js +4 -5
- package/dist/cjs/{md.transition-cf600117.js → md.transition-a35e0839.js} +7 -6
- package/dist/cjs/{notch-controller-ea70e230.js → notch-controller-d69150f5.js} +4 -4
- package/dist/cjs/{overlays-542a90b3.js → overlays-43ae7e1d.js} +20 -19
- package/dist/cjs/{status-tap-aa97d209.js → status-tap-f98e43a0.js} +4 -5
- package/dist/cjs/{swipe-back-27975274.js → swipe-back-0303a5e4.js} +1 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.ios.css +58 -73
- package/dist/collection/components/accordion/accordion.js +31 -37
- package/dist/collection/components/accordion/accordion.md.css +59 -67
- package/dist/collection/components/accordion-group/accordion-group.ios.css +4 -16
- package/dist/collection/components/accordion-group/accordion-group.js +20 -43
- package/dist/collection/components/accordion-group/accordion-group.md.css +4 -22
- package/dist/collection/components/action-sheet/action-sheet.ios.css +6 -18
- package/dist/collection/components/action-sheet/action-sheet.js +46 -18
- package/dist/collection/components/action-sheet/action-sheet.md.css +5 -17
- package/dist/collection/components/alert/alert.ios.css +1 -19
- package/dist/collection/components/alert/alert.js +52 -19
- package/dist/collection/components/alert/alert.md.css +1 -19
- package/dist/collection/components/app/app.js +78 -12
- package/dist/collection/components/avatar/avatar.ios.css +0 -12
- package/dist/collection/components/avatar/avatar.js +4 -92
- package/dist/collection/components/avatar/avatar.md.css +0 -12
- package/dist/collection/components/back-button/back-button.ios.css +48 -60
- package/dist/collection/components/back-button/back-button.js +34 -28
- package/dist/collection/components/back-button/back-button.md.css +48 -60
- package/dist/collection/components/backdrop/backdrop.ios.css +1 -13
- package/dist/collection/components/backdrop/backdrop.js +12 -12
- package/dist/collection/components/backdrop/backdrop.md.css +1 -13
- package/dist/collection/components/badge/badge.ios.css +3 -106
- package/dist/collection/components/badge/badge.js +10 -75
- package/dist/collection/components/badge/badge.md.css +3 -106
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +8 -20
- package/dist/collection/components/breadcrumb/breadcrumb.js +38 -44
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +8 -20
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -6
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +17 -11
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -6
- package/dist/collection/components/button/button.ios.css +36 -129
- package/dist/collection/components/button/button.js +49 -47
- package/dist/collection/components/button/button.md.css +40 -120
- package/dist/collection/components/buttons/buttons.ios.css +7 -59
- package/dist/collection/components/buttons/buttons.js +10 -14
- package/dist/collection/components/buttons/buttons.md.css +3 -55
- package/dist/collection/components/card/card.ios.css +14 -65
- package/dist/collection/components/card/card.js +30 -34
- package/dist/collection/components/card/card.md.css +14 -65
- package/dist/collection/components/card-content/card-content.ios.css +1 -16
- package/dist/collection/components/card-content/card-content.js +8 -11
- package/dist/collection/components/card-content/card-content.md.css +1 -16
- package/dist/collection/components/card-header/card-header.ios.css +15 -27
- package/dist/collection/components/card-header/card-header.js +13 -12
- package/dist/collection/components/card-header/card-header.md.css +15 -27
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -12
- package/dist/collection/components/card-subtitle/card-subtitle.js +10 -11
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -12
- package/dist/collection/components/card-title/card-title.ios.css +0 -73
- package/dist/collection/components/card-title/card-title.js +10 -11
- package/dist/collection/components/card-title/card-title.md.css +0 -73
- package/dist/collection/components/checkbox/checkbox.ios.css +2 -20
- package/dist/collection/components/checkbox/checkbox.js +32 -64
- package/dist/collection/components/checkbox/checkbox.md.css +3 -21
- package/dist/collection/components/chip/chip.ios.css +1 -20
- package/dist/collection/components/chip/chip.js +14 -77
- package/dist/collection/components/chip/chip.md.css +1 -20
- package/dist/collection/components/col/col.css +0 -12
- package/dist/collection/components/col/col.js +53 -9
- package/dist/collection/components/content/content.css +2 -8
- package/dist/collection/components/content/content.js +25 -16
- package/dist/collection/components/datetime/datetime.ios.css +86 -237
- package/dist/collection/components/datetime/datetime.js +84 -102
- package/dist/collection/components/datetime/datetime.md.css +86 -237
- package/dist/collection/components/datetime/utils/data.js +3 -3
- package/dist/collection/components/datetime-button/datetime-button.ios.css +0 -6
- package/dist/collection/components/datetime-button/datetime-button.js +14 -11
- package/dist/collection/components/datetime-button/datetime-button.md.css +0 -6
- package/dist/collection/components/fab/fab.css +1 -25
- package/dist/collection/components/fab/fab.js +13 -9
- package/dist/collection/components/fab-button/fab-button.ios.css +6 -18
- package/dist/collection/components/fab-button/fab-button.js +44 -37
- package/dist/collection/components/fab-button/fab-button.md.css +8 -20
- package/dist/collection/components/fab-list/fab-list.css +0 -12
- package/dist/collection/components/fab-list/fab-list.js +9 -9
- package/dist/collection/components/footer/footer.ios.css +2 -14
- package/dist/collection/components/footer/footer.js +19 -20
- package/dist/collection/components/footer/footer.md.css +0 -12
- package/dist/collection/components/grid/grid.css +0 -12
- package/dist/collection/components/grid/grid.js +7 -9
- package/dist/collection/components/header/header.ios.css +10 -25
- package/dist/collection/components/header/header.js +21 -42
- package/dist/collection/components/header/header.md.css +8 -23
- package/dist/collection/components/img/img.js +6 -8
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +10 -8
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -12
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +14 -16
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -12
- package/dist/collection/components/input/input.ios.css +2 -21
- package/dist/collection/components/input/input.js +99 -145
- package/dist/collection/components/input/input.md.css +4 -43
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +20 -48
- package/dist/collection/components/item/item.ios.css +69 -109
- package/dist/collection/components/item/item.js +43 -45
- package/dist/collection/components/item/item.md.css +68 -120
- package/dist/collection/components/item-divider/item-divider.ios.css +0 -18
- package/dist/collection/components/item-divider/item-divider.js +12 -11
- package/dist/collection/components/item-divider/item-divider.md.css +0 -18
- package/dist/collection/components/item-group/item-group.ios.css +0 -12
- package/dist/collection/components/item-group/item-group.js +7 -13
- package/dist/collection/components/item-group/item-group.md.css +0 -12
- package/dist/collection/components/item-option/item-option.ios.css +2 -14
- package/dist/collection/components/item-option/item-option.js +24 -43
- package/dist/collection/components/item-option/item-option.md.css +2 -14
- package/dist/collection/components/item-options/item-options.ios.css +0 -18
- package/dist/collection/components/item-options/item-options.js +9 -13
- package/dist/collection/components/item-options/item-options.md.css +0 -18
- package/dist/collection/components/item-sliding/item-sliding.css +0 -6
- package/dist/collection/components/item-sliding/item-sliding.js +6 -8
- package/dist/collection/components/label/label.ios.css +0 -18
- package/dist/collection/components/label/label.js +12 -11
- package/dist/collection/components/label/label.md.css +0 -18
- package/dist/collection/components/list/list.ios.css +0 -18
- package/dist/collection/components/list/list.js +13 -47
- package/dist/collection/components/list/list.md.css +2 -20
- package/dist/collection/components/list-header/list-header.ios.css +0 -18
- package/dist/collection/components/list-header/list-header.js +12 -11
- package/dist/collection/components/list-header/list-header.md.css +0 -18
- package/dist/collection/components/loading/loading.ios.css +1 -13
- package/dist/collection/components/loading/loading.js +48 -17
- package/dist/collection/components/loading/loading.md.css +1 -13
- package/dist/collection/components/menu/menu.ios.css +3 -15
- package/dist/collection/components/menu/menu.js +21 -12
- package/dist/collection/components/menu/menu.md.css +3 -15
- package/dist/collection/components/menu-button/menu-button.ios.css +14 -48
- package/dist/collection/components/menu-button/menu-button.js +20 -26
- package/dist/collection/components/menu-button/menu-button.md.css +15 -49
- package/dist/collection/components/menu-toggle/menu-toggle.js +9 -8
- package/dist/collection/components/modal/animations/sheet.js +2 -8
- package/dist/collection/components/modal/gestures/sheet.js +6 -10
- package/dist/collection/components/modal/modal.ios.css +63 -106
- package/dist/collection/components/modal/modal.js +66 -54
- package/dist/collection/components/modal/modal.md.css +63 -106
- package/dist/collection/components/nav/nav.css +1 -7
- package/dist/collection/components/nav/nav.js +20 -14
- package/dist/collection/components/nav-link/nav-link.js +11 -7
- package/dist/collection/components/note/note.ios.css +0 -12
- package/dist/collection/components/note/note.js +10 -11
- package/dist/collection/components/note/note.md.css +0 -12
- package/dist/collection/components/picker/picker.ios.css +3 -15
- package/dist/collection/components/picker/picker.js +5 -8
- package/dist/collection/components/picker/picker.md.css +3 -15
- package/dist/collection/components/picker-column/picker-column.css +2 -9
- package/dist/collection/components/picker-column/picker-column.js +15 -8
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +0 -6
- package/dist/collection/components/picker-column-option/picker-column-option.js +13 -13
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +0 -6
- package/dist/collection/components/picker-legacy/picker.ios.css +1 -13
- package/dist/collection/components/picker-legacy/picker.js +42 -11
- package/dist/collection/components/picker-legacy/picker.md.css +1 -13
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -12
- package/dist/collection/components/picker-legacy-column/picker-column.js +7 -5
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -12
- package/dist/collection/components/popover/popover.ios.css +1 -13
- package/dist/collection/components/popover/popover.js +71 -20
- package/dist/collection/components/popover/popover.md.css +1 -13
- package/dist/collection/components/progress-bar/progress-bar.ios.css +2 -8
- package/dist/collection/components/progress-bar/progress-bar.js +17 -10
- package/dist/collection/components/progress-bar/progress-bar.md.css +2 -8
- package/dist/collection/components/radio/radio.ios.css +91 -134
- package/dist/collection/components/radio/radio.js +23 -12
- package/dist/collection/components/radio/radio.md.css +91 -134
- package/dist/collection/components/radio-group/radio-group.js +11 -9
- package/dist/collection/components/range/range.ios.css +85 -128
- package/dist/collection/components/range/range.js +41 -12
- package/dist/collection/components/range/range.md.css +85 -128
- package/dist/collection/components/refresher/refresher.ios.css +1 -14
- package/dist/collection/components/refresher/refresher.js +20 -11
- package/dist/collection/components/refresher/refresher.md.css +2 -15
- package/dist/collection/components/refresher-content/refresher-content.js +15 -28
- package/dist/collection/components/reorder/reorder.ios.css +0 -6
- package/dist/collection/components/reorder/reorder.js +6 -33
- package/dist/collection/components/reorder/reorder.md.css +0 -6
- package/dist/collection/components/reorder-group/reorder-group.css +0 -6
- package/dist/collection/components/reorder-group/reorder-group.js +6 -8
- package/dist/collection/components/ripple-effect/{ripple-effect.common.css → ripple-effect.css} +1 -7
- package/dist/collection/components/ripple-effect/ripple-effect.js +8 -14
- package/dist/collection/components/route/route.js +13 -7
- package/dist/collection/components/route-redirect/route-redirect.js +4 -0
- package/dist/collection/components/router/router.js +4 -4
- package/dist/collection/components/router-link/router-link.css +2 -8
- package/dist/collection/components/router-link/router-link.js +18 -10
- package/dist/collection/components/router-outlet/router-outlet.css +1 -7
- package/dist/collection/components/router-outlet/router-outlet.js +15 -8
- package/dist/collection/components/row/row.css +0 -12
- package/dist/collection/components/row/row.js +2 -9
- package/dist/collection/components/searchbar/searchbar.ios.css +18 -56
- package/dist/collection/components/searchbar/searchbar.js +69 -97
- package/dist/collection/components/searchbar/searchbar.md.css +18 -56
- package/dist/collection/components/segment/segment.ios.css +2 -45
- package/dist/collection/components/segment/segment.js +21 -11
- package/dist/collection/components/segment/segment.md.css +2 -45
- package/dist/collection/components/segment-button/segment-button.ios.css +105 -146
- package/dist/collection/components/segment-button/segment-button.js +18 -11
- package/dist/collection/components/segment-button/segment-button.md.css +107 -148
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.ios.css +0 -6
- package/dist/collection/components/segment-view/segment-view.js +6 -6
- package/dist/collection/components/segment-view/segment-view.md.css +0 -6
- package/dist/collection/components/select/select.ios.css +102 -168
- package/dist/collection/components/select/select.js +75 -139
- package/dist/collection/components/select/select.md.css +206 -164
- package/dist/collection/components/select-modal/select-modal.js +9 -3
- package/dist/collection/components/select-modal/select-modal.md.css +3 -7
- package/dist/collection/components/select-option/select-option.js +6 -9
- package/dist/collection/components/select-popover/select-popover.ios.css +0 -18
- package/dist/collection/components/select-popover/select-popover.js +14 -12
- package/dist/collection/components/select-popover/select-popover.md.css +0 -18
- package/dist/collection/components/skeleton-text/skeleton-text.css +0 -6
- package/dist/collection/components/skeleton-text/skeleton-text.js +7 -9
- package/dist/collection/components/spinner/{spinner.ionic.css → spinner.css} +0 -63
- package/dist/collection/components/spinner/spinner.js +14 -46
- package/dist/collection/components/split-pane/split-pane.ios.css +2 -20
- package/dist/collection/components/split-pane/split-pane.js +14 -14
- package/dist/collection/components/split-pane/split-pane.md.css +2 -20
- package/dist/collection/components/tab/tab.js +11 -7
- package/dist/collection/components/tab-bar/tab-bar.ios.css +43 -71
- package/dist/collection/components/tab-bar/tab-bar.js +16 -65
- package/dist/collection/components/tab-bar/tab-bar.md.css +43 -71
- package/dist/collection/components/tab-button/tab-button.ios.css +88 -103
- package/dist/collection/components/tab-button/tab-button.js +24 -43
- package/dist/collection/components/tab-button/tab-button.md.css +88 -103
- package/dist/collection/components/tabs/tabs.css +1 -7
- package/dist/collection/components/tabs/tabs.js +3 -4
- package/dist/collection/components/text/text.css +0 -6
- package/dist/collection/components/text/text.js +8 -7
- package/dist/collection/components/textarea/textarea.ios.css +96 -201
- package/dist/collection/components/textarea/textarea.js +73 -60
- package/dist/collection/components/textarea/textarea.md.css +97 -214
- package/dist/collection/components/thumbnail/thumbnail.css +0 -6
- package/dist/collection/components/thumbnail/thumbnail.js +2 -9
- package/dist/collection/components/title/title.ios.css +4 -32
- package/dist/collection/components/title/title.js +11 -13
- package/dist/collection/components/title/title.md.css +4 -32
- package/dist/collection/components/toast/animations/utils.js +1 -1
- package/dist/collection/components/toast/toast.ios.css +35 -74
- package/dist/collection/components/toast/toast.js +59 -50
- package/dist/collection/components/toast/toast.md.css +35 -74
- package/dist/collection/components/toggle/toggle.ios.css +120 -166
- package/dist/collection/components/toggle/toggle.js +36 -73
- package/dist/collection/components/toggle/toggle.md.css +120 -163
- package/dist/collection/components/toolbar/toolbar.ios.css +47 -90
- package/dist/collection/components/toolbar/toolbar.js +12 -13
- package/dist/collection/components/toolbar/toolbar.md.css +47 -90
- package/dist/collection/global/ionic-global.js +13 -229
- package/dist/collection/utils/focus-visible.js +0 -7
- package/dist/collection/utils/framework-delegate.js +1 -3
- package/dist/collection/utils/helpers.js +1 -3
- package/dist/collection/utils/keyboard/keyboard-controller.js +1 -3
- package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
- package/dist/collection/utils/menu-controller/animations/push.js +1 -2
- package/dist/collection/utils/menu-controller/animations/reveal.js +1 -2
- package/dist/collection/utils/overlays.js +1 -2
- package/dist/collection/utils/test/playwright/generator.js +23 -48
- package/dist/collection/utils/test/playwright/page/utils/goto.js +5 -14
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +2 -16
- package/dist/collection/utils/transition/ios.transition.js +0 -1
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +2219 -7864
- package/dist/esm/{animation-f1a88600.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-eceadabb.js → app-globals-32740a0d.js} +1 -1
- package/dist/esm/{button-active-321f0dba.js → button-active-0e590bc4.js} +2 -2
- package/dist/esm/{capacitor-6b0341c8.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-a753c96a.js → data-ae11fd43.js} +4 -4
- package/dist/{cjs/focus-visible-9aa87fa3.js → esm/focus-visible-dd40d69f.js} +1 -11
- package/dist/esm/{framework-delegate-3e4a8c9f.js → framework-delegate-63d1a679.js} +2 -4
- package/dist/esm/{haptic-dd6c0ea9.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm/hardware-back-button-18d38325.js +116 -0
- package/dist/esm/{helpers-f08d15bd.js → helpers-da915de8.js} +1 -4
- package/dist/esm/{index-723c0e5d.js → index-0f61352c.js} +1118 -745
- package/dist/esm/{index-59f81cb8.js → index-4f0570f4.js} +6 -6
- package/dist/esm/{index-7bd160c2.js → index-5cc724f3.js} +2 -2
- package/dist/esm/index-79b30591.js +167 -0
- package/dist/esm/{index-31109e63.js → index-7bdf1ee6.js} +11 -10
- package/dist/esm/index-9b0d46f4.js +34 -0
- package/dist/esm/index-a5d50daf.js +7 -0
- package/dist/esm/{index-d997525d.js → index-e2cf2ceb.js} +1 -1
- package/dist/esm/index.js +13 -11
- package/dist/esm/{input-shims-6be83e59.js → input-shims-0314bbe5.js} +6 -7
- package/dist/esm/{input.utils-67459bae.js → input.utils-09c71bc7.js} +3 -2
- package/dist/esm/ion-accordion_2.entry.js +24 -61
- package/dist/esm/ion-action-sheet.entry.js +19 -22
- package/dist/esm/ion-alert.entry.js +21 -23
- package/dist/esm/ion-app_8.entry.js +140 -96
- package/dist/esm/ion-avatar_3.entry.js +10 -94
- package/dist/esm/ion-back-button.entry.js +21 -31
- package/dist/esm/ion-backdrop.entry.js +7 -12
- package/dist/esm/ion-breadcrumb_2.entry.js +17 -55
- package/dist/esm/ion-button_2.entry.js +13 -44
- package/dist/esm/ion-card_5.entry.js +29 -53
- package/dist/esm/ion-checkbox.entry.js +14 -31
- package/dist/esm/ion-chip.entry.js +8 -44
- package/dist/esm/ion-col_3.entry.js +11 -15
- package/dist/esm/ion-datetime-button.entry.js +9 -13
- package/dist/esm/ion-datetime_3.entry.js +41 -117
- package/dist/esm/ion-fab_3.entry.js +21 -44
- package/dist/esm/ion-img.entry.js +4 -8
- package/dist/esm/ion-infinite-scroll_2.entry.js +15 -19
- package/dist/esm/ion-input-password-toggle.entry.js +15 -54
- package/dist/esm/ion-input.entry.js +25 -120
- package/dist/esm/ion-item-option_3.entry.js +18 -41
- package/dist/esm/ion-item_8.entry.js +42 -114
- package/dist/esm/ion-loading.entry.js +16 -18
- package/dist/esm/ion-menu_3.entry.js +29 -48
- package/dist/esm/ion-modal.entry.js +31 -59
- package/dist/esm/ion-nav_2.entry.js +12 -14
- package/dist/esm/ion-picker-column-option.entry.js +7 -12
- package/dist/esm/ion-picker-column.entry.js +12 -12
- package/dist/esm/ion-picker.entry.js +6 -11
- package/dist/esm/ion-popover.entry.js +16 -18
- package/dist/esm/ion-progress-bar.entry.js +8 -13
- package/dist/esm/ion-radio_2.entry.js +12 -19
- package/dist/esm/ion-range.entry.js +12 -16
- package/dist/esm/ion-refresher_2.entry.js +21 -42
- package/dist/esm/ion-reorder_2.entry.js +15 -39
- package/dist/esm/ion-ripple-effect.entry.js +8 -19
- package/dist/esm/ion-route_4.entry.js +8 -9
- package/dist/esm/ion-searchbar.entry.js +18 -95
- package/dist/esm/ion-segment-content.entry.js +2 -2
- package/dist/esm/ion-segment-view.entry.js +3 -7
- package/dist/esm/ion-segment_2.entry.js +16 -24
- package/dist/esm/ion-select-modal.entry.js +11 -9
- package/dist/esm/ion-select_3.entry.js +41 -134
- package/dist/esm/ion-spinner.entry.js +8 -34
- package/dist/esm/ion-split-pane.entry.js +9 -14
- package/dist/esm/ion-tab-bar_2.entry.js +20 -60
- package/dist/esm/ion-tab_2.entry.js +7 -8
- package/dist/esm/ion-text.entry.js +6 -7
- package/dist/esm/ion-textarea.entry.js +17 -42
- package/dist/esm/ion-toast.entry.js +17 -34
- package/dist/esm/ion-toggle.entry.js +23 -81
- package/dist/esm/ionic-global-35cabcff.js +231 -0
- package/dist/esm/ionic.js +6 -7
- package/dist/esm/{ios.transition-06b78ea0.js → ios.transition-72ec83a8.js} +7 -7
- package/dist/esm/{keyboard-5b1b354d.js → keyboard-52278bd7.js} +3 -5
- package/dist/esm/{keyboard-9bbd546a.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-aff395fd.js → keyboard-controller-ec5c2bfa.js} +3 -5
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{md.transition-e5712bda.js → md.transition-1f612b9f.js} +7 -6
- package/dist/esm/{notch-controller-c0bd22ff.js → notch-controller-55b09e11.js} +2 -2
- package/dist/esm/{overlays-66cb5522.js → overlays-cba25d39.js} +7 -6
- package/dist/esm/{status-tap-edf9f395.js → status-tap-a7026a46.js} +4 -5
- package/dist/esm/{swipe-back-17c42610.js → swipe-back-e5394307.js} +1 -2
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-32740a0d.js +4 -0
- package/dist/esm-es5/{button-active-321f0dba.js → button-active-0e590bc4.js} +1 -1
- package/dist/esm-es5/capacitor-59395cbd.js +4 -0
- package/dist/esm-es5/data-ae11fd43.js +4 -0
- package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/framework-delegate-63d1a679.js +4 -0
- package/dist/esm-es5/{haptic-dd6c0ea9.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm-es5/hardware-back-button-18d38325.js +4 -0
- package/dist/esm-es5/helpers-da915de8.js +4 -0
- package/dist/esm-es5/index-0f61352c.js +5 -0
- package/dist/esm-es5/index-4f0570f4.js +4 -0
- package/dist/esm-es5/index-5cc724f3.js +4 -0
- package/dist/esm-es5/{index-62b4a18b.js → index-79b30591.js} +1 -1
- package/dist/esm-es5/index-7bdf1ee6.js +4 -0
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index-a5d50daf.js +4 -0
- package/dist/esm-es5/{index-d997525d.js → index-e2cf2ceb.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
- package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-35cabcff.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-72ec83a8.js +4 -0
- package/dist/esm-es5/{keyboard-5b1b354d.js → keyboard-52278bd7.js} +1 -1
- package/dist/esm-es5/{keyboard-9bbd546a.js → keyboard-73175e24.js} +1 -1
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-1f612b9f.js +4 -0
- package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
- package/dist/esm-es5/overlays-cba25d39.js +4 -0
- package/dist/esm-es5/status-tap-a7026a46.js +4 -0
- package/dist/esm-es5/swipe-back-e5394307.js +4 -0
- package/dist/html.html-data.json +203 -2341
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/p-00751c2a.system.entry.js +4 -0
- package/dist/ionic/p-024da823.js +4 -0
- package/dist/ionic/p-047eabc5.entry.js +4 -0
- package/dist/ionic/{p-f193945e.system.js → p-04f14c79.system.js} +1 -1
- package/dist/ionic/p-05562a80.entry.js +4 -0
- package/dist/ionic/p-06e58c4e.js +4 -0
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-07d1dbe2.system.entry.js +4 -0
- package/dist/ionic/{p-86e9a917.system.entry.js → p-085dbcb4.system.entry.js} +1 -1
- package/dist/ionic/p-08c16f05.system.entry.js +4 -0
- package/dist/ionic/p-0ba102ec.system.entry.js +4 -0
- package/dist/ionic/p-0c06e09b.system.js +4 -0
- package/dist/ionic/p-0c093fae.system.entry.js +4 -0
- package/dist/ionic/p-0c64a077.entry.js +4 -0
- package/dist/ionic/p-11330967.entry.js +4 -0
- package/dist/ionic/p-1179c304.entry.js +4 -0
- package/dist/ionic/p-12f711f4.system.entry.js +4 -0
- package/dist/ionic/p-17290742.entry.js +4 -0
- package/dist/ionic/p-18094a7c.system.entry.js +4 -0
- package/dist/ionic/p-19bfac92.js +4 -0
- package/dist/ionic/{p-dbd39afd.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/p-1dfc11b3.system.js +4 -0
- package/dist/ionic/p-1e4371bd.js +4 -0
- package/dist/ionic/{p-115d74cd.system.js → p-1e955a45.system.js} +1 -1
- package/dist/ionic/p-255d9087.system.entry.js +4 -0
- package/dist/ionic/{p-41c19986.system.js → p-2564d9b9.system.js} +1 -1
- package/dist/ionic/p-265d65cb.entry.js +4 -0
- package/dist/ionic/p-2690b1de.js +4 -0
- package/dist/ionic/{p-93e47936.js → p-27281edd.js} +1 -1
- package/dist/ionic/p-27e81076.system.entry.js +4 -0
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/p-2e396991.system.entry.js +4 -0
- package/dist/ionic/p-2e520289.entry.js +4 -0
- package/dist/ionic/p-2e78561b.js +5 -0
- package/dist/ionic/{p-f8c63ac0.system.js → p-2f9f5bea.system.js} +2 -2
- package/dist/ionic/p-30019f0b.system.js +4 -0
- package/dist/ionic/p-32e1825e.entry.js +4 -0
- package/dist/ionic/{p-12d6df53.js → p-34b11c24.js} +1 -1
- package/dist/ionic/p-35f02a74.entry.js +4 -0
- package/dist/ionic/p-38dac839.system.entry.js +4 -0
- package/dist/ionic/p-39539749.js +4 -0
- package/dist/ionic/p-3ad285e3.system.js +4 -0
- package/dist/ionic/p-3cc276f4.js +4 -0
- package/dist/ionic/p-3e2c05a8.entry.js +4 -0
- package/dist/ionic/p-41cabce4.entry.js +4 -0
- package/dist/ionic/p-43679a42.entry.js +4 -0
- package/dist/ionic/p-43febc77.system.entry.js +4 -0
- package/dist/ionic/p-45e4a1e3.system.entry.js +4 -0
- package/dist/ionic/p-4a57dd17.entry.js +4 -0
- package/dist/ionic/p-4ab93cfa.entry.js +4 -0
- package/dist/ionic/p-4c2d5b80.system.js +4 -0
- package/dist/ionic/p-52f6a5cc.system.entry.js +4 -0
- package/dist/ionic/p-53ad8ff4.system.entry.js +4 -0
- package/dist/ionic/p-56667886.system.entry.js +4 -0
- package/dist/ionic/p-57f92640.entry.js +4 -0
- package/dist/ionic/p-5ae14e75.entry.js +4 -0
- package/dist/ionic/p-64b0068b.entry.js +4 -0
- package/dist/ionic/p-65774bef.system.entry.js +4 -0
- package/dist/ionic/p-67d3729b.system.entry.js +4 -0
- package/dist/ionic/p-6828136c.entry.js +4 -0
- package/dist/ionic/p-6a131e4b.system.entry.js +4 -0
- package/dist/ionic/p-6b6ccc63.entry.js +4 -0
- package/dist/ionic/p-6c29e51f.entry.js +4 -0
- package/dist/ionic/p-6d350e1f.entry.js +4 -0
- package/dist/ionic/p-6d7a98cc.system.entry.js +4 -0
- package/dist/ionic/p-6d9fa95e.system.entry.js +4 -0
- package/dist/ionic/p-6e1c1cf1.system.entry.js +4 -0
- package/dist/ionic/p-6f04bf2f.system.js +4 -0
- package/dist/ionic/{p-82cb4235.js → p-711fd7fc.js} +1 -1
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/p-72bc8a1c.js +4 -0
- package/dist/ionic/p-735f093b.system.entry.js +4 -0
- package/dist/ionic/p-75be4567.entry.js +4 -0
- package/dist/ionic/p-779acec8.entry.js +4 -0
- package/dist/ionic/p-78067282.system.js +4 -0
- package/dist/ionic/p-78841a31.entry.js +4 -0
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/p-7b30edcc.js +4 -0
- package/dist/ionic/p-7fa854a7.entry.js +4 -0
- package/dist/ionic/p-81494564.system.entry.js +4 -0
- package/dist/ionic/p-84827719.system.entry.js +4 -0
- package/dist/ionic/p-84a6d0da.system.entry.js +4 -0
- package/dist/ionic/p-8635f5e6.system.js +4 -0
- package/dist/ionic/p-86bc3e6f.entry.js +4 -0
- package/dist/ionic/p-876d7e0d.entry.js +4 -0
- package/dist/ionic/{p-4626fb32.system.js → p-8985cdb6.system.js} +1 -1
- package/dist/ionic/p-89b075f4.system.entry.js +4 -0
- package/dist/ionic/{p-4c275462.js → p-89b61afc.js} +1 -1
- package/dist/ionic/p-8b2d8ddb.system.js +4 -0
- package/dist/ionic/p-8c9954a1.entry.js +4 -0
- package/dist/ionic/p-8ceead8f.system.js +4 -0
- package/dist/ionic/p-8e8839c4.system.js +5 -0
- package/dist/ionic/{p-62887754.system.js → p-9146695e.system.js} +1 -1
- package/dist/ionic/p-938a029f.js +4 -0
- package/dist/ionic/p-93bc2080.entry.js +4 -0
- package/dist/ionic/p-96cc4814.js +4 -0
- package/dist/ionic/p-979f352d.system.entry.js +4 -0
- package/dist/ionic/p-99658fa2.entry.js +4 -0
- package/dist/ionic/p-99c5a3a0.entry.js +4 -0
- package/dist/ionic/p-9c4f4367.system.entry.js +4 -0
- package/dist/ionic/{p-3e91ea3a.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a2e5c294.system.entry.js +4 -0
- package/dist/ionic/p-a3bea030.system.entry.js +4 -0
- package/dist/ionic/p-a64f199d.system.entry.js +4 -0
- package/dist/ionic/p-a772be95.js +4 -0
- package/dist/ionic/p-a8cf7e93.system.entry.js +4 -0
- package/dist/ionic/p-a915830c.system.entry.js +4 -0
- package/dist/ionic/{p-94816e7a.system.js → p-a93873de.system.js} +1 -1
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/p-add1b61c.system.entry.js +4 -0
- package/dist/ionic/p-ae2e0f50.entry.js +4 -0
- package/dist/ionic/p-afe932a1.system.entry.js +4 -0
- package/dist/ionic/{p-18f86177.system.js → p-b06ac4a5.system.js} +1 -1
- package/dist/ionic/p-b2ef1bb0.entry.js +4 -0
- package/dist/ionic/p-b2f788b9.system.entry.js +4 -0
- package/dist/ionic/p-b50c6cd6.system.entry.js +4 -0
- package/dist/ionic/p-b51e4004.js +4 -0
- package/dist/ionic/p-b52ddc18.system.entry.js +4 -0
- package/dist/ionic/p-b6c8f5dc.system.js +4 -0
- package/dist/ionic/p-b7027235.entry.js +4 -0
- package/dist/ionic/p-bb750ac0.system.js +4 -0
- package/dist/ionic/p-bf9210c7.system.entry.js +4 -0
- package/dist/ionic/p-c2496925.system.entry.js +4 -0
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/p-c4dc27a0.system.entry.js +4 -0
- package/dist/ionic/p-c505bde7.system.entry.js +4 -0
- package/dist/ionic/p-c60e41c7.entry.js +4 -0
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/{p-11266916.js → p-c7e16491.js} +1 -1
- package/dist/ionic/p-cb37f97d.entry.js +4 -0
- package/dist/ionic/p-ce32a54b.system.entry.js +4 -0
- package/dist/ionic/p-cf110b0b.system.js +4 -0
- package/dist/ionic/p-d09b25f9.system.entry.js +4 -0
- package/dist/ionic/p-d18dc399.entry.js +4 -0
- package/dist/ionic/{p-58aa8a36.system.js → p-d37524be.system.js} +1 -1
- package/dist/ionic/p-d47265c8.js +4 -0
- package/dist/ionic/{p-aaccbb95.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d737a7d9.entry.js +4 -0
- package/dist/ionic/p-d83d0d32.system.entry.js +4 -0
- package/dist/ionic/p-d8d37758.entry.js +4 -0
- package/dist/ionic/{p-58f16ef6.js → p-da2b833b.js} +1 -1
- package/dist/ionic/p-dcad1a3d.system.entry.js +4 -0
- package/dist/ionic/p-dddb317f.entry.js +4 -0
- package/dist/ionic/{p-a510e9c0.js → p-de758235.js} +1 -1
- package/dist/ionic/p-dfb78785.system.js +4 -0
- package/dist/ionic/p-e11ef2b7.entry.js +4 -0
- package/dist/ionic/p-e3c8fb01.entry.js +4 -0
- package/dist/ionic/p-e3f626ea.system.entry.js +4 -0
- package/dist/ionic/p-e46ba5cd.js +4 -0
- package/dist/ionic/p-e4966716.entry.js +4 -0
- package/dist/ionic/p-e5c69948.entry.js +4 -0
- package/dist/ionic/p-e837530a.entry.js +4 -0
- package/dist/ionic/p-e85e6e02.js +4 -0
- package/dist/ionic/p-e8784b73.entry.js +4 -0
- package/dist/ionic/p-e896891b.system.entry.js +4 -0
- package/dist/ionic/p-e9bd3df9.js +4 -0
- package/dist/ionic/p-ea2ee20f.entry.js +4 -0
- package/dist/ionic/p-eb717568.entry.js +4 -0
- package/dist/ionic/p-f2986b60.entry.js +4 -0
- package/dist/ionic/{p-44ad86d7.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-f8a8295c.system.entry.js +4 -0
- package/dist/ionic/p-fb7b7319.entry.js +4 -0
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +3 -5
- package/dist/types/components/accordion-group/accordion-group.d.ts +1 -12
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +7 -3
- package/dist/types/components/action-sheet/action-sheet.d.ts +2 -3
- package/dist/types/components/alert/alert-interface.d.ts +7 -3
- package/dist/types/components/alert/alert.d.ts +2 -3
- package/dist/types/components/app/app.d.ts +2 -4
- package/dist/types/components/avatar/avatar.d.ts +0 -28
- package/dist/types/components/back-button/back-button.d.ts +1 -2
- package/dist/types/components/backdrop/backdrop.d.ts +0 -4
- package/dist/types/components/badge/badge.d.ts +1 -23
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -4
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +4 -15
- package/dist/types/components/buttons/buttons.d.ts +1 -5
- package/dist/types/components/card/card.d.ts +1 -8
- package/dist/types/components/card-content/card-content.d.ts +1 -2
- package/dist/types/components/card-header/card-header.d.ts +2 -3
- package/dist/types/components/card-subtitle/card-subtitle.d.ts +1 -2
- package/dist/types/components/card-title/card-title.d.ts +1 -2
- package/dist/types/components/checkbox/checkbox.d.ts +4 -14
- package/dist/types/components/chip/chip.d.ts +1 -19
- package/dist/types/components/col/col.d.ts +0 -4
- package/dist/types/components/content/content.d.ts +0 -3
- package/dist/types/components/datetime/datetime.d.ts +1 -26
- package/dist/types/components/datetime/utils/data.d.ts +3 -3
- package/dist/types/components/datetime-button/datetime-button.d.ts +1 -2
- package/dist/types/components/fab/fab.d.ts +0 -4
- package/dist/types/components/fab-button/fab-button.d.ts +3 -5
- package/dist/types/components/fab-list/fab-list.d.ts +0 -4
- package/dist/types/components/footer/footer.d.ts +3 -4
- package/dist/types/components/grid/grid.d.ts +0 -4
- package/dist/types/components/header/header.d.ts +3 -9
- package/dist/types/components/img/img.d.ts +0 -3
- package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +0 -4
- package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +0 -4
- package/dist/types/components/input/input.d.ts +5 -31
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +0 -2
- package/dist/types/components/item/item.d.ts +4 -11
- package/dist/types/components/item-divider/item-divider.d.ts +1 -2
- package/dist/types/components/item-group/item-group.d.ts +0 -4
- package/dist/types/components/item-option/item-option.d.ts +1 -11
- package/dist/types/components/item-options/item-options.d.ts +0 -4
- package/dist/types/components/item-sliding/item-sliding.d.ts +0 -4
- package/dist/types/components/label/label.d.ts +1 -2
- package/dist/types/components/list/list.d.ts +1 -15
- package/dist/types/components/list-header/list-header.d.ts +1 -2
- package/dist/types/components/loading/loading-interface.d.ts +7 -2
- package/dist/types/components/loading/loading.d.ts +2 -3
- package/dist/types/components/menu/menu.d.ts +0 -3
- package/dist/types/components/menu-button/menu-button.d.ts +1 -3
- package/dist/types/components/menu-toggle/menu-toggle.d.ts +0 -3
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +7 -4
- package/dist/types/components/modal/modal.d.ts +1 -11
- package/dist/types/components/nav/nav-interface.d.ts +1 -9
- package/dist/types/components/nav/nav.d.ts +1 -5
- package/dist/types/components/nav-link/nav-link.d.ts +0 -4
- package/dist/types/components/note/note.d.ts +1 -2
- package/dist/types/components/picker/picker.d.ts +1 -2
- package/dist/types/components/picker-column/picker-column.d.ts +1 -2
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +0 -4
- package/dist/types/components/picker-legacy/picker.d.ts +1 -2
- package/dist/types/components/popover/popover-interface.d.ts +6 -3
- package/dist/types/components/popover/popover.d.ts +5 -6
- package/dist/types/components/progress-bar/progress-bar.d.ts +1 -2
- package/dist/types/components/radio/radio.d.ts +1 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -4
- package/dist/types/components/range/range.d.ts +1 -2
- package/dist/types/components/refresher/refresher.d.ts +1 -2
- package/dist/types/components/refresher-content/refresher-content.d.ts +0 -4
- package/dist/types/components/reorder/reorder.d.ts +0 -9
- package/dist/types/components/reorder-group/reorder-group.d.ts +0 -4
- package/dist/types/components/ripple-effect/ripple-effect.d.ts +0 -4
- package/dist/types/components/route/route.d.ts +0 -4
- package/dist/types/components/router/router.d.ts +0 -4
- package/dist/types/components/router-link/router-link.d.ts +0 -4
- package/dist/types/components/router-outlet/router-outlet.d.ts +1 -4
- package/dist/types/components/row/row.d.ts +0 -4
- package/dist/types/components/searchbar/searchbar.d.ts +8 -30
- package/dist/types/components/segment/segment.d.ts +1 -2
- package/dist/types/components/segment-button/segment-button.d.ts +1 -2
- package/dist/types/components/select/select.d.ts +7 -35
- package/dist/types/components/select-option/select-option.d.ts +0 -4
- package/dist/types/components/select-popover/select-popover.d.ts +0 -3
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +0 -4
- package/dist/types/components/spinner/spinner.d.ts +0 -15
- package/dist/types/components/split-pane/split-pane.d.ts +0 -4
- package/dist/types/components/tab/tab.d.ts +0 -4
- package/dist/types/components/tab-bar/tab-bar.d.ts +2 -22
- package/dist/types/components/tab-button/tab-button.d.ts +1 -11
- package/dist/types/components/tabs/tabs.d.ts +0 -3
- package/dist/types/components/text/text.d.ts +1 -2
- package/dist/types/components/textarea/textarea.d.ts +4 -16
- package/dist/types/components/thumbnail/thumbnail.d.ts +0 -4
- package/dist/types/components/title/title.d.ts +0 -4
- package/dist/types/components/toast/animations/utils.d.ts +2 -2
- package/dist/types/components/toast/toast-interface.d.ts +7 -3
- package/dist/types/components/toast/toast.d.ts +2 -12
- package/dist/types/components/toggle/toggle.d.ts +1 -15
- package/dist/types/components/toolbar/toolbar.d.ts +3 -4
- package/dist/types/components.d.ts +183 -1383
- package/dist/types/global/ionic-global.d.ts +2 -27
- package/dist/types/interface.d.ts +0 -3
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/config.d.ts +2 -106
- package/dist/types/utils/focus-visible.d.ts +0 -1
- package/dist/types/utils/overlays-interface.d.ts +1 -31
- package/dist/types/utils/test/playwright/generator.d.ts +2 -31
- package/hydrate/index.d.ts +10 -4
- package/hydrate/index.js +2176 -3042
- package/hydrate/index.mjs +2176 -3042
- package/package.json +6 -11
- package/components/caret-down.js +0 -6
- package/components/caret-left.js +0 -6
- package/components/caret-right.js +0 -6
- package/components/config2.js +0 -79
- package/components/list2.js +0 -6
- package/components/x.js +0 -6
- package/css/ionic/bundle.ionic.css +0 -1
- package/css/ionic/bundle.ionic.css.map +0 -1
- package/css/ionic/core.ionic.css +0 -1
- package/css/ionic/core.ionic.css.map +0 -1
- package/css/ionic/global.bundle.ionic.css +0 -1
- package/css/ionic/global.bundle.ionic.css.map +0 -1
- package/css/ionic/ionic-swiper.ionic.css +0 -1
- package/css/ionic/ionic-swiper.ionic.css.map +0 -1
- package/css/ionic/link.ionic.css +0 -1
- package/css/ionic/link.ionic.css.map +0 -1
- package/css/ionic/structure.ionic.css +0 -1
- package/css/ionic/structure.ionic.css.map +0 -1
- package/css/ionic/typography.ionic.css +0 -1
- package/css/ionic/typography.ionic.css.map +0 -1
- package/css/ionic/utils.bundle.ionic.css +0 -1
- package/css/ionic/utils.bundle.ionic.css.map +0 -1
- package/dist/cjs/caret-down-3c215cff.js +0 -8
- package/dist/cjs/caret-left-2bb66970.js +0 -8
- package/dist/cjs/caret-right-88e03970.js +0 -8
- package/dist/cjs/config-aff4ff52.js +0 -84
- package/dist/cjs/ionic-global-14af9c21.js +0 -535
- package/dist/cjs/list-2930c629.js +0 -8
- package/dist/cjs/x-81a8f51c.js +0 -8
- package/dist/collection/components/accordion/accordion.ionic.css +0 -197
- package/dist/collection/components/accordion-group/accordion-group.ionic.css +0 -95
- package/dist/collection/components/avatar/avatar.ionic.css +0 -268
- package/dist/collection/components/backdrop/backdrop.ionic.css +0 -151
- package/dist/collection/components/badge/badge.ionic.css +0 -249
- package/dist/collection/components/button/button.ionic.css +0 -589
- package/dist/collection/components/buttons/buttons.ionic.css +0 -100
- package/dist/collection/components/card/card.ionic.css +0 -137
- package/dist/collection/components/card-content/card-content.ionic.css +0 -90
- package/dist/collection/components/card-header/card-header.ionic.css +0 -87
- package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +0 -146
- package/dist/collection/components/checkbox/checkbox.ionic.css +0 -402
- package/dist/collection/components/chip/chip.ionic.css +0 -160
- package/dist/collection/components/datetime/datetime.ionic.css +0 -673
- package/dist/collection/components/header/header.ionic.css +0 -86
- package/dist/collection/components/input/input.ionic.css +0 -1096
- package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +0 -61
- package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +0 -141
- package/dist/collection/components/item/item.ionic.css +0 -497
- package/dist/collection/components/item-option/item-option.ionic.css +0 -332
- package/dist/collection/components/item-options/item-options.ionic.css +0 -259
- package/dist/collection/components/list/list.ionic.css +0 -192
- package/dist/collection/components/list-header/list-header.ionic.css +0 -236
- package/dist/collection/components/menu-button/menu-button.ionic.css +0 -238
- package/dist/collection/components/modal/modal.ionic.css +0 -239
- package/dist/collection/components/radio/radio.ionic.css +0 -424
- package/dist/collection/components/range/range.ionic.css +0 -555
- package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +0 -154
- package/dist/collection/components/searchbar/searchbar.ionic.css +0 -345
- package/dist/collection/components/segment/segment.ionic.css +0 -117
- package/dist/collection/components/segment-button/segment-button.ionic.css +0 -355
- package/dist/collection/components/select/select.ionic.css +0 -711
- package/dist/collection/components/select-modal/select-modal.ionic.css +0 -121
- package/dist/collection/components/spinner/spinner.common.css +0 -199
- package/dist/collection/components/tab-bar/tab-bar.ionic.css +0 -188
- package/dist/collection/components/tab-button/tab-button.ionic.css +0 -282
- package/dist/collection/components/textarea/textarea.ionic.css +0 -834
- package/dist/collection/components/title/title.ionic.css +0 -145
- package/dist/collection/components/toast/toast.ionic.css +0 -377
- package/dist/collection/components/toggle/toggle.ionic.css +0 -419
- package/dist/collection/components/toolbar/toolbar.ionic.css +0 -233
- package/dist/esm/caret-down-3eaad1cc.js +0 -6
- package/dist/esm/caret-left-33424bb0.js +0 -6
- package/dist/esm/caret-right-68d856ad.js +0 -6
- package/dist/esm/config-84eb9670.js +0 -79
- package/dist/esm/ionic-global-3c97a4aa.js +0 -521
- package/dist/esm/list-6524700c.js +0 -6
- package/dist/esm/x-a64bcd9f.js +0 -6
- package/dist/esm-es5/animation-f1a88600.js +0 -4
- package/dist/esm-es5/app-globals-eceadabb.js +0 -4
- package/dist/esm-es5/capacitor-6b0341c8.js +0 -4
- package/dist/esm-es5/caret-down-3eaad1cc.js +0 -4
- package/dist/esm-es5/caret-left-33424bb0.js +0 -4
- package/dist/esm-es5/caret-right-68d856ad.js +0 -4
- package/dist/esm-es5/config-84eb9670.js +0 -4
- package/dist/esm-es5/data-a753c96a.js +0 -4
- package/dist/esm-es5/focus-visible-501aff19.js +0 -4
- package/dist/esm-es5/framework-delegate-3e4a8c9f.js +0 -4
- package/dist/esm-es5/helpers-f08d15bd.js +0 -4
- package/dist/esm-es5/index-31109e63.js +0 -4
- package/dist/esm-es5/index-59f81cb8.js +0 -4
- package/dist/esm-es5/index-723c0e5d.js +0 -5
- package/dist/esm-es5/index-7bd160c2.js +0 -4
- package/dist/esm-es5/input-shims-6be83e59.js +0 -4
- package/dist/esm-es5/input.utils-67459bae.js +0 -4
- package/dist/esm-es5/ionic-global-3c97a4aa.js +0 -4
- package/dist/esm-es5/ios.transition-06b78ea0.js +0 -4
- package/dist/esm-es5/keyboard-controller-aff395fd.js +0 -4
- package/dist/esm-es5/list-6524700c.js +0 -4
- package/dist/esm-es5/md.transition-e5712bda.js +0 -4
- package/dist/esm-es5/notch-controller-c0bd22ff.js +0 -4
- package/dist/esm-es5/overlays-66cb5522.js +0 -4
- package/dist/esm-es5/status-tap-edf9f395.js +0 -4
- package/dist/esm-es5/swipe-back-17c42610.js +0 -4
- package/dist/esm-es5/x-a64bcd9f.js +0 -4
- package/dist/ionic/p-01d80901.system.js +0 -4
- package/dist/ionic/p-038a6294.js +0 -4
- package/dist/ionic/p-06ec4706.js +0 -4
- package/dist/ionic/p-06f2f110.system.entry.js +0 -4
- package/dist/ionic/p-09125f4f.entry.js +0 -4
- package/dist/ionic/p-096e5f6d.system.entry.js +0 -4
- package/dist/ionic/p-09c6b5e4.js +0 -4
- package/dist/ionic/p-0a0ce78f.system.entry.js +0 -4
- package/dist/ionic/p-0ae8c3eb.entry.js +0 -4
- package/dist/ionic/p-0fa218e9.system.js +0 -5
- package/dist/ionic/p-101ccd60.system.entry.js +0 -4
- package/dist/ionic/p-112120d7.system.js +0 -4
- package/dist/ionic/p-12337305.system.entry.js +0 -4
- package/dist/ionic/p-156d17cd.js +0 -4
- package/dist/ionic/p-18892506.entry.js +0 -4
- package/dist/ionic/p-1abd1c99.entry.js +0 -4
- package/dist/ionic/p-1cf1141c.system.entry.js +0 -4
- package/dist/ionic/p-1dd2b0af.entry.js +0 -4
- package/dist/ionic/p-1eeb9796.entry.js +0 -4
- package/dist/ionic/p-1efa63f2.js +0 -4
- package/dist/ionic/p-23b31425.entry.js +0 -4
- package/dist/ionic/p-243adf8c.js +0 -4
- package/dist/ionic/p-24f15ce4.system.entry.js +0 -4
- package/dist/ionic/p-25cc2477.entry.js +0 -4
- package/dist/ionic/p-27258d5a.entry.js +0 -4
- package/dist/ionic/p-29ca4da2.entry.js +0 -4
- package/dist/ionic/p-2e35a770.system.js +0 -4
- package/dist/ionic/p-2ef115ec.system.entry.js +0 -4
- package/dist/ionic/p-2fe21cb8.system.entry.js +0 -4
- package/dist/ionic/p-3238b3db.entry.js +0 -4
- package/dist/ionic/p-330e703e.entry.js +0 -4
- package/dist/ionic/p-33dc4514.js +0 -4
- package/dist/ionic/p-346c67b0.js +0 -4
- package/dist/ionic/p-3583dd40.system.entry.js +0 -4
- package/dist/ionic/p-3608e72b.entry.js +0 -4
- package/dist/ionic/p-398b00a5.system.entry.js +0 -4
- package/dist/ionic/p-3c4c73f9.system.entry.js +0 -4
- package/dist/ionic/p-3ce95a91.entry.js +0 -4
- package/dist/ionic/p-3d61263b.system.entry.js +0 -4
- package/dist/ionic/p-3d7eb7bf.system.entry.js +0 -4
- package/dist/ionic/p-41f06734.entry.js +0 -4
- package/dist/ionic/p-4219582c.system.js +0 -4
- package/dist/ionic/p-429dd2b5.system.js +0 -4
- package/dist/ionic/p-4385e3fb.system.entry.js +0 -4
- package/dist/ionic/p-4459a66e.system.js +0 -4
- package/dist/ionic/p-46787abb.system.js +0 -4
- package/dist/ionic/p-47fd935c.system.js +0 -4
- package/dist/ionic/p-4a39ba11.entry.js +0 -4
- package/dist/ionic/p-4a6d4288.entry.js +0 -4
- package/dist/ionic/p-4a869870.entry.js +0 -4
- package/dist/ionic/p-4ac4f52a.system.entry.js +0 -4
- package/dist/ionic/p-4b4e4592.system.entry.js +0 -4
- package/dist/ionic/p-4bbfa162.system.entry.js +0 -4
- package/dist/ionic/p-4c9e1b2c.js +0 -4
- package/dist/ionic/p-51371e21.system.js +0 -4
- package/dist/ionic/p-530c591a.entry.js +0 -4
- package/dist/ionic/p-55546d77.system.entry.js +0 -4
- package/dist/ionic/p-556778bd.system.js +0 -4
- package/dist/ionic/p-5684893b.system.entry.js +0 -4
- package/dist/ionic/p-57de8d54.system.entry.js +0 -4
- package/dist/ionic/p-58c64779.system.entry.js +0 -4
- package/dist/ionic/p-5a6b3c0d.entry.js +0 -4
- package/dist/ionic/p-5a6d245d.system.entry.js +0 -4
- package/dist/ionic/p-5b57d327.system.js +0 -4
- package/dist/ionic/p-5ce35a03.js +0 -4
- package/dist/ionic/p-5eb8561f.system.entry.js +0 -4
- package/dist/ionic/p-607c9c33.js +0 -4
- package/dist/ionic/p-60d21ee9.system.entry.js +0 -4
- package/dist/ionic/p-63fde7fe.entry.js +0 -4
- package/dist/ionic/p-6433742e.system.entry.js +0 -4
- package/dist/ionic/p-67b6e18d.entry.js +0 -4
- package/dist/ionic/p-6a0dd6bc.js +0 -4
- package/dist/ionic/p-6bc2795b.entry.js +0 -4
- package/dist/ionic/p-6bd1c0ee.system.entry.js +0 -4
- package/dist/ionic/p-6caa76ec.js +0 -4
- package/dist/ionic/p-6cbca6c5.system.entry.js +0 -4
- package/dist/ionic/p-6dc32e8b.entry.js +0 -4
- package/dist/ionic/p-6e53290f.system.entry.js +0 -4
- package/dist/ionic/p-7071d7ca.js +0 -4
- package/dist/ionic/p-70e5bb40.entry.js +0 -4
- package/dist/ionic/p-72cbf799.system.entry.js +0 -4
- package/dist/ionic/p-74d76684.js +0 -4
- package/dist/ionic/p-7607d8ba.system.entry.js +0 -4
- package/dist/ionic/p-78ed8923.js +0 -4
- package/dist/ionic/p-7a858bae.system.js +0 -4
- package/dist/ionic/p-7d36cf9f.system.entry.js +0 -4
- package/dist/ionic/p-80917a19.system.entry.js +0 -4
- package/dist/ionic/p-815f649a.system.entry.js +0 -4
- package/dist/ionic/p-81b72701.entry.js +0 -4
- package/dist/ionic/p-822e47a9.system.js +0 -4
- package/dist/ionic/p-83948e48.js +0 -5
- package/dist/ionic/p-8463212e.js +0 -4
- package/dist/ionic/p-84667060.entry.js +0 -4
- package/dist/ionic/p-857ba8d4.entry.js +0 -4
- package/dist/ionic/p-86d98446.system.entry.js +0 -4
- package/dist/ionic/p-871f4046.entry.js +0 -4
- package/dist/ionic/p-8956f9a8.system.entry.js +0 -4
- package/dist/ionic/p-8b0f0a87.entry.js +0 -4
- package/dist/ionic/p-8dbfae64.entry.js +0 -4
- package/dist/ionic/p-903c544a.js +0 -4
- package/dist/ionic/p-916bc9ed.system.entry.js +0 -4
- package/dist/ionic/p-92646426.js +0 -4
- package/dist/ionic/p-94fc2104.system.entry.js +0 -4
- package/dist/ionic/p-986855d6.js +0 -4
- package/dist/ionic/p-9abb7d9b.entry.js +0 -4
- package/dist/ionic/p-9ac1a506.system.js +0 -4
- package/dist/ionic/p-a1cdc742.js +0 -4
- package/dist/ionic/p-a2814291.system.js +0 -4
- package/dist/ionic/p-a538ab98.js +0 -4
- package/dist/ionic/p-a5a9206f.entry.js +0 -4
- package/dist/ionic/p-a685da08.system.entry.js +0 -4
- package/dist/ionic/p-a98061d0.entry.js +0 -4
- package/dist/ionic/p-a9af4103.js +0 -4
- package/dist/ionic/p-ac1c2b6a.js +0 -4
- package/dist/ionic/p-b18c52cd.entry.js +0 -4
- package/dist/ionic/p-b517144d.system.entry.js +0 -4
- package/dist/ionic/p-b5dc9a32.system.entry.js +0 -4
- package/dist/ionic/p-b79f3ded.entry.js +0 -4
- package/dist/ionic/p-b80582fe.system.entry.js +0 -4
- package/dist/ionic/p-b8b89651.system.entry.js +0 -4
- package/dist/ionic/p-bbcec459.system.js +0 -4
- package/dist/ionic/p-bcdd3eaf.entry.js +0 -4
- package/dist/ionic/p-be87ec25.entry.js +0 -4
- package/dist/ionic/p-bf68cda6.entry.js +0 -4
- package/dist/ionic/p-c248c88d.system.js +0 -4
- package/dist/ionic/p-c373eebd.system.js +0 -4
- package/dist/ionic/p-c9d5da01.entry.js +0 -4
- package/dist/ionic/p-cdff6a80.system.entry.js +0 -4
- package/dist/ionic/p-cea92c46.system.js +0 -4
- package/dist/ionic/p-d4862803.entry.js +0 -4
- package/dist/ionic/p-d9edb291.entry.js +0 -4
- package/dist/ionic/p-dc286a59.entry.js +0 -4
- package/dist/ionic/p-df09db21.entry.js +0 -4
- package/dist/ionic/p-e3b70846.system.js +0 -4
- package/dist/ionic/p-ea3ca474.system.js +0 -4
- package/dist/ionic/p-eb4ba253.entry.js +0 -4
- package/dist/ionic/p-ebd641e4.system.entry.js +0 -4
- package/dist/ionic/p-ebe94d15.entry.js +0 -4
- package/dist/ionic/p-eda736d7.entry.js +0 -4
- package/dist/ionic/p-ee17be82.entry.js +0 -4
- package/dist/ionic/p-eee899d5.system.entry.js +0 -4
- package/dist/ionic/p-f116fb3f.system.js +0 -4
- package/dist/ionic/p-f1e11e93.entry.js +0 -4
- package/dist/ionic/p-f25ad420.system.entry.js +0 -4
- package/dist/ionic/p-f44c9c6e.system.entry.js +0 -4
- package/dist/ionic/p-f5be97b8.entry.js +0 -4
- package/dist/ionic/p-f8123284.entry.js +0 -4
- package/dist/ionic/p-f99cf3f7.system.entry.js +0 -4
- package/dist/ionic/p-fff78cd2.system.entry.js +0 -4
- /package/dist/collection/components/{refresher-content/refresher-content.css → input-password-toggle/input-password-toggle.css} +0 -0
|
@@ -5,7 +5,7 @@ const NAMESPACE = 'ionic';
|
|
|
5
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.23.0-dev.1735628762.fb8335e | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -19,8 +19,13 @@ var Build = {
|
|
|
19
19
|
isTesting: false
|
|
20
20
|
};
|
|
21
21
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
var hostRefKeys = [];
|
|
22
23
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
23
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
24
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
25
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
26
|
+
hostRefKeys.push(lazyInstance);
|
|
27
|
+
return hostRefs.set(lazyInstance, hostRef);
|
|
28
|
+
};
|
|
24
29
|
var registerHost = (hostElement, cmpMeta) => {
|
|
25
30
|
const hostRef = {
|
|
26
31
|
$flags$: 0,
|
|
@@ -36,9 +41,29 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
36
41
|
hostElement["s-p"] = [];
|
|
37
42
|
hostElement["s-rc"] = [];
|
|
38
43
|
}
|
|
44
|
+
hostRefKeys.push(hostElement);
|
|
39
45
|
return hostRefs.set(hostElement, hostRef);
|
|
40
46
|
};
|
|
41
47
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
48
|
+
function isNodeAttached(node) {
|
|
49
|
+
return node === document || node === document.documentElement || document.contains(node);
|
|
50
|
+
}
|
|
51
|
+
var hostRefCleanup = () => {
|
|
52
|
+
const keysToRemove = [];
|
|
53
|
+
for (const key of hostRefKeys) {
|
|
54
|
+
if (key instanceof Node && !isNodeAttached(key)) {
|
|
55
|
+
keysToRemove.push(key);
|
|
56
|
+
}
|
|
57
|
+
const elem = hostRefs.get(key);
|
|
58
|
+
if (elem && (elem.$hostElement$ && !isNodeAttached(elem.$hostElement$) || elem.$ancestorComponent$ && !isNodeAttached(elem.$ancestorComponent$))) {
|
|
59
|
+
keysToRemove.push(key);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
for (const key of keysToRemove) {
|
|
63
|
+
hostRefs.delete(key);
|
|
64
|
+
hostRefKeys.splice(hostRefKeys.indexOf(key), 1);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
42
67
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
43
68
|
|
|
44
69
|
// src/client/client-load-module.ts
|
|
@@ -77,6 +102,7 @@ var CONTENT_REF_ID = "r";
|
|
|
77
102
|
var ORG_LOCATION_ID = "o";
|
|
78
103
|
var SLOT_NODE_ID = "s";
|
|
79
104
|
var TEXT_NODE_ID = "t";
|
|
105
|
+
var COMMENT_NODE_ID = "c";
|
|
80
106
|
var HYDRATE_ID = "s-id";
|
|
81
107
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
82
108
|
var HYDRATE_CHILD_ID = "c-id";
|
|
@@ -234,20 +260,6 @@ var unwrapErr = (result) => {
|
|
|
234
260
|
throw result.value;
|
|
235
261
|
}
|
|
236
262
|
};
|
|
237
|
-
var createTime = (fnName, tagName = "") => {
|
|
238
|
-
{
|
|
239
|
-
return () => {
|
|
240
|
-
return;
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
var uniqueTime = (key, measureText) => {
|
|
245
|
-
{
|
|
246
|
-
return () => {
|
|
247
|
-
return;
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
263
|
var h = (nodeName, vnodeData, ...children) => {
|
|
252
264
|
let child = null;
|
|
253
265
|
let key = null;
|
|
@@ -359,436 +371,132 @@ var convertToPrivate = (node) => {
|
|
|
359
371
|
vnode.$name$ = node.vname;
|
|
360
372
|
return vnode;
|
|
361
373
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
373
|
-
}
|
|
374
|
-
hostElm[HYDRATE_ID] = hostId;
|
|
375
|
-
hostElm.removeAttribute(HYDRATE_ID);
|
|
376
|
-
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
377
|
-
childRenderNodes.map((c) => {
|
|
378
|
-
const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
|
|
379
|
-
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
380
|
-
const node = c.$elm$;
|
|
381
|
-
if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
|
|
382
|
-
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
383
|
-
}
|
|
384
|
-
if (!shadowRoot) {
|
|
385
|
-
node["s-hn"] = tagName;
|
|
386
|
-
if (orgLocationNode) {
|
|
387
|
-
node["s-ol"] = orgLocationNode;
|
|
388
|
-
node["s-ol"]["s-nr"] = node;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
plt.$orgLocNodes$.delete(orgLocationId);
|
|
392
|
-
});
|
|
393
|
-
if (shadowRoot) {
|
|
394
|
-
shadowRootNodes.map((shadowRootNode) => {
|
|
395
|
-
if (shadowRootNode) {
|
|
396
|
-
shadowRoot.appendChild(shadowRootNode);
|
|
374
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
375
|
+
if (oldValue !== newValue) {
|
|
376
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
377
|
+
let ln = memberName.toLowerCase();
|
|
378
|
+
if (memberName === "class") {
|
|
379
|
+
const classList = elm.classList;
|
|
380
|
+
const oldClasses = parseClassList(oldValue);
|
|
381
|
+
const newClasses = parseClassList(newValue);
|
|
382
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
383
|
+
newClasses.push(elm["s-si"]);
|
|
397
384
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
childIdSplt = childNodeType.split(".");
|
|
411
|
-
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
412
|
-
childVNode = {
|
|
413
|
-
$flags$: 0,
|
|
414
|
-
$hostId$: childIdSplt[0],
|
|
415
|
-
$nodeId$: childIdSplt[1],
|
|
416
|
-
$depth$: childIdSplt[2],
|
|
417
|
-
$index$: childIdSplt[3],
|
|
418
|
-
$tag$: node.tagName.toLowerCase(),
|
|
419
|
-
$elm$: node,
|
|
420
|
-
$attrs$: null,
|
|
421
|
-
$children$: null,
|
|
422
|
-
$key$: null,
|
|
423
|
-
$name$: null,
|
|
424
|
-
$text$: null
|
|
425
|
-
};
|
|
426
|
-
childRenderNodes.push(childVNode);
|
|
427
|
-
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
428
|
-
if (!parentVNode.$children$) {
|
|
429
|
-
parentVNode.$children$ = [];
|
|
385
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
386
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
387
|
+
} else if (memberName === "style") {
|
|
388
|
+
{
|
|
389
|
+
for (const prop in oldValue) {
|
|
390
|
+
if (!newValue || newValue[prop] == null) {
|
|
391
|
+
if (prop.includes("-")) {
|
|
392
|
+
elm.style.removeProperty(prop);
|
|
393
|
+
} else {
|
|
394
|
+
elm.style[prop] = "";
|
|
395
|
+
}
|
|
396
|
+
}
|
|
430
397
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
if (
|
|
434
|
-
|
|
398
|
+
}
|
|
399
|
+
for (const prop in newValue) {
|
|
400
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
401
|
+
if (prop.includes("-")) {
|
|
402
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
403
|
+
} else {
|
|
404
|
+
elm.style[prop] = newValue[prop];
|
|
405
|
+
}
|
|
435
406
|
}
|
|
436
407
|
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
clientHydrate(
|
|
441
|
-
parentVNode,
|
|
442
|
-
childRenderNodes,
|
|
443
|
-
slotNodes,
|
|
444
|
-
shadowRootNodes,
|
|
445
|
-
hostElm,
|
|
446
|
-
node.shadowRoot.childNodes[i2],
|
|
447
|
-
hostId
|
|
448
|
-
);
|
|
408
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
409
|
+
if (newValue) {
|
|
410
|
+
newValue(elm);
|
|
449
411
|
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
childIdSplt = node.nodeValue.split(".");
|
|
464
|
-
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
465
|
-
childNodeType = childIdSplt[0];
|
|
466
|
-
childVNode = {
|
|
467
|
-
$flags$: 0,
|
|
468
|
-
$hostId$: childIdSplt[1],
|
|
469
|
-
$nodeId$: childIdSplt[2],
|
|
470
|
-
$depth$: childIdSplt[3],
|
|
471
|
-
$index$: childIdSplt[4],
|
|
472
|
-
$elm$: node,
|
|
473
|
-
$attrs$: null,
|
|
474
|
-
$children$: null,
|
|
475
|
-
$key$: null,
|
|
476
|
-
$name$: null,
|
|
477
|
-
$tag$: null,
|
|
478
|
-
$text$: null
|
|
479
|
-
};
|
|
480
|
-
if (childNodeType === TEXT_NODE_ID) {
|
|
481
|
-
childVNode.$elm$ = node.nextSibling;
|
|
482
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
483
|
-
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
484
|
-
childRenderNodes.push(childVNode);
|
|
485
|
-
node.remove();
|
|
486
|
-
if (!parentVNode.$children$) {
|
|
487
|
-
parentVNode.$children$ = [];
|
|
488
|
-
}
|
|
489
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
490
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
491
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
492
|
-
}
|
|
412
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
413
|
+
if (memberName[2] === "-") {
|
|
414
|
+
memberName = memberName.slice(3);
|
|
415
|
+
} else if (isMemberInElement(win, ln)) {
|
|
416
|
+
memberName = ln.slice(2);
|
|
417
|
+
} else {
|
|
418
|
+
memberName = ln[2] + memberName.slice(3);
|
|
419
|
+
}
|
|
420
|
+
if (oldValue || newValue) {
|
|
421
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
422
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
423
|
+
if (oldValue) {
|
|
424
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
493
425
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
426
|
+
if (newValue) {
|
|
427
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
} else {
|
|
431
|
+
const isComplex = isComplexType(newValue);
|
|
432
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
433
|
+
try {
|
|
434
|
+
if (!elm.tagName.includes("-")) {
|
|
435
|
+
const n = newValue == null ? "" : newValue;
|
|
436
|
+
if (memberName === "list") {
|
|
437
|
+
isProp = false;
|
|
438
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
439
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
440
|
+
elm[memberName] = n;
|
|
441
|
+
} else {
|
|
442
|
+
elm.setAttribute(memberName, n);
|
|
443
|
+
}
|
|
512
444
|
}
|
|
445
|
+
} else {
|
|
446
|
+
elm[memberName] = newValue;
|
|
513
447
|
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
448
|
+
} catch (e) {
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
let xlink = false;
|
|
452
|
+
{
|
|
453
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
454
|
+
memberName = ln;
|
|
455
|
+
xlink = true;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (newValue == null || newValue === false) {
|
|
459
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
460
|
+
if (xlink) {
|
|
461
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
522
462
|
} else {
|
|
523
|
-
|
|
524
|
-
node["s-cn"] = true;
|
|
463
|
+
elm.removeAttribute(memberName);
|
|
525
464
|
}
|
|
526
465
|
}
|
|
466
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
467
|
+
newValue = newValue === true ? "" : newValue;
|
|
468
|
+
if (xlink) {
|
|
469
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
470
|
+
} else {
|
|
471
|
+
elm.setAttribute(memberName, newValue);
|
|
472
|
+
}
|
|
527
473
|
}
|
|
528
474
|
}
|
|
529
|
-
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
530
|
-
const vnode = newVNode(null, node.textContent);
|
|
531
|
-
vnode.$elm$ = node;
|
|
532
|
-
vnode.$index$ = "0";
|
|
533
|
-
parentVNode.$children$ = [vnode];
|
|
534
475
|
}
|
|
535
476
|
};
|
|
536
|
-
var
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
for (i2 = 0; i2 < node.childNodes.length; i2++) {
|
|
545
|
-
initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
|
|
546
|
-
}
|
|
547
|
-
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
548
|
-
const childIdSplt = node.nodeValue.split(".");
|
|
549
|
-
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
550
|
-
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
551
|
-
node.nodeValue = "";
|
|
552
|
-
node["s-en"] = childIdSplt[3];
|
|
553
|
-
}
|
|
477
|
+
var parseClassListRegex = /\s/;
|
|
478
|
+
var parseClassList = (value) => {
|
|
479
|
+
if (typeof value === "object" && "baseVal" in value) {
|
|
480
|
+
value = value.baseVal;
|
|
481
|
+
}
|
|
482
|
+
if (!value) {
|
|
483
|
+
return [];
|
|
554
484
|
}
|
|
485
|
+
return value.split(parseClassListRegex);
|
|
555
486
|
};
|
|
487
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
488
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
556
489
|
|
|
557
|
-
// src/runtime/
|
|
558
|
-
var
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
return parseFloat(propValue);
|
|
568
|
-
}
|
|
569
|
-
if (propType & 1 /* String */) {
|
|
570
|
-
return String(propValue);
|
|
571
|
-
}
|
|
572
|
-
return propValue;
|
|
573
|
-
}
|
|
574
|
-
return propValue;
|
|
575
|
-
};
|
|
576
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
577
|
-
|
|
578
|
-
// src/runtime/event-emitter.ts
|
|
579
|
-
var createEvent = (ref, name, flags) => {
|
|
580
|
-
const elm = getElement(ref);
|
|
581
|
-
return {
|
|
582
|
-
emit: (detail) => {
|
|
583
|
-
return emitEvent(elm, name, {
|
|
584
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
585
|
-
composed: !!(flags & 2 /* Composed */),
|
|
586
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
587
|
-
detail
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
var emitEvent = (elm, name, opts) => {
|
|
593
|
-
const ev = plt.ce(name, opts);
|
|
594
|
-
elm.dispatchEvent(ev);
|
|
595
|
-
return ev;
|
|
596
|
-
};
|
|
597
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
598
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
599
|
-
let style = styles.get(scopeId2);
|
|
600
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
601
|
-
style = style || new CSSStyleSheet();
|
|
602
|
-
if (typeof style === "string") {
|
|
603
|
-
style = cssText;
|
|
604
|
-
} else {
|
|
605
|
-
style.replaceSync(cssText);
|
|
606
|
-
}
|
|
607
|
-
} else {
|
|
608
|
-
style = cssText;
|
|
609
|
-
}
|
|
610
|
-
styles.set(scopeId2, style);
|
|
611
|
-
};
|
|
612
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
613
|
-
var _a;
|
|
614
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
615
|
-
const style = styles.get(scopeId2);
|
|
616
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
617
|
-
if (style) {
|
|
618
|
-
if (typeof style === "string") {
|
|
619
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
620
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
621
|
-
let styleElm;
|
|
622
|
-
if (!appliedStyles) {
|
|
623
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
624
|
-
}
|
|
625
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
626
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
627
|
-
styleElm.innerHTML = style;
|
|
628
|
-
} else {
|
|
629
|
-
styleElm = doc.createElement("style");
|
|
630
|
-
styleElm.innerHTML = style;
|
|
631
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
632
|
-
if (nonce != null) {
|
|
633
|
-
styleElm.setAttribute("nonce", nonce);
|
|
634
|
-
}
|
|
635
|
-
const injectStyle = (
|
|
636
|
-
/**
|
|
637
|
-
* we render a scoped component
|
|
638
|
-
*/
|
|
639
|
-
!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
|
|
640
|
-
* we are using shadow dom and render the style tag within the shadowRoot
|
|
641
|
-
*/
|
|
642
|
-
cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
|
|
643
|
-
);
|
|
644
|
-
if (injectStyle) {
|
|
645
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
649
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
650
|
-
}
|
|
651
|
-
if (appliedStyles) {
|
|
652
|
-
appliedStyles.add(scopeId2);
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
656
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
return scopeId2;
|
|
660
|
-
};
|
|
661
|
-
var attachStyles = (hostRef) => {
|
|
662
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
663
|
-
const elm = hostRef.$hostElement$;
|
|
664
|
-
const flags = cmpMeta.$flags$;
|
|
665
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
666
|
-
const scopeId2 = addStyle(
|
|
667
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
668
|
-
cmpMeta,
|
|
669
|
-
hostRef.$modeName$
|
|
670
|
-
);
|
|
671
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
672
|
-
elm["s-sc"] = scopeId2;
|
|
673
|
-
elm.classList.add(scopeId2 + "-h");
|
|
674
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
675
|
-
elm.classList.add(scopeId2 + "-s");
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
endAttachStyles();
|
|
679
|
-
};
|
|
680
|
-
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
681
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
682
|
-
if (oldValue !== newValue) {
|
|
683
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
684
|
-
let ln = memberName.toLowerCase();
|
|
685
|
-
if (memberName === "class") {
|
|
686
|
-
const classList = elm.classList;
|
|
687
|
-
const oldClasses = parseClassList(oldValue);
|
|
688
|
-
const newClasses = parseClassList(newValue);
|
|
689
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
690
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
691
|
-
} else if (memberName === "style") {
|
|
692
|
-
{
|
|
693
|
-
for (const prop in oldValue) {
|
|
694
|
-
if (!newValue || newValue[prop] == null) {
|
|
695
|
-
if (prop.includes("-")) {
|
|
696
|
-
elm.style.removeProperty(prop);
|
|
697
|
-
} else {
|
|
698
|
-
elm.style[prop] = "";
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
for (const prop in newValue) {
|
|
704
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
705
|
-
if (prop.includes("-")) {
|
|
706
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
707
|
-
} else {
|
|
708
|
-
elm.style[prop] = newValue[prop];
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
713
|
-
if (newValue) {
|
|
714
|
-
newValue(elm);
|
|
715
|
-
}
|
|
716
|
-
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
717
|
-
if (memberName[2] === "-") {
|
|
718
|
-
memberName = memberName.slice(3);
|
|
719
|
-
} else if (isMemberInElement(win, ln)) {
|
|
720
|
-
memberName = ln.slice(2);
|
|
721
|
-
} else {
|
|
722
|
-
memberName = ln[2] + memberName.slice(3);
|
|
723
|
-
}
|
|
724
|
-
if (oldValue || newValue) {
|
|
725
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
726
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
727
|
-
if (oldValue) {
|
|
728
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
729
|
-
}
|
|
730
|
-
if (newValue) {
|
|
731
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
} else {
|
|
735
|
-
const isComplex = isComplexType(newValue);
|
|
736
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
737
|
-
try {
|
|
738
|
-
if (!elm.tagName.includes("-")) {
|
|
739
|
-
const n = newValue == null ? "" : newValue;
|
|
740
|
-
if (memberName === "list") {
|
|
741
|
-
isProp = false;
|
|
742
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
743
|
-
elm[memberName] = n;
|
|
744
|
-
}
|
|
745
|
-
} else {
|
|
746
|
-
elm[memberName] = newValue;
|
|
747
|
-
}
|
|
748
|
-
} catch (e) {
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
let xlink = false;
|
|
752
|
-
{
|
|
753
|
-
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
754
|
-
memberName = ln;
|
|
755
|
-
xlink = true;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
if (newValue == null || newValue === false) {
|
|
759
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
760
|
-
if (xlink) {
|
|
761
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
762
|
-
} else {
|
|
763
|
-
elm.removeAttribute(memberName);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
767
|
-
newValue = newValue === true ? "" : newValue;
|
|
768
|
-
if (xlink) {
|
|
769
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
770
|
-
} else {
|
|
771
|
-
elm.setAttribute(memberName, newValue);
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
var parseClassListRegex = /\s/;
|
|
778
|
-
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
779
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
780
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
781
|
-
|
|
782
|
-
// src/runtime/vdom/update-element.ts
|
|
783
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
784
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
785
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
786
|
-
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
787
|
-
{
|
|
788
|
-
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
789
|
-
if (!(memberName in newVnodeAttrs)) {
|
|
790
|
-
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
791
|
-
}
|
|
490
|
+
// src/runtime/vdom/update-element.ts
|
|
491
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
492
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
493
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
494
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
495
|
+
{
|
|
496
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
497
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
498
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
499
|
+
}
|
|
792
500
|
}
|
|
793
501
|
}
|
|
794
502
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
@@ -901,8 +609,12 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
901
609
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
902
610
|
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
903
611
|
if (host != null) {
|
|
904
|
-
const contentRefNode = Array.from(host.childNodes).find(
|
|
905
|
-
|
|
612
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
613
|
+
(ref) => ref["s-cr"]
|
|
614
|
+
);
|
|
615
|
+
const childNodeArray = Array.from(
|
|
616
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
617
|
+
);
|
|
906
618
|
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
907
619
|
if (childNode["s-sh"] != null) {
|
|
908
620
|
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
@@ -915,7 +627,7 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
915
627
|
};
|
|
916
628
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
917
629
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
918
|
-
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
630
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
919
631
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
920
632
|
let node = parentElm;
|
|
921
633
|
while (node = node.nextSibling) {
|
|
@@ -1134,7 +846,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1134
846
|
}
|
|
1135
847
|
};
|
|
1136
848
|
var updateFallbackSlotVisibility = (elm) => {
|
|
1137
|
-
const childNodes = elm.childNodes;
|
|
849
|
+
const childNodes = elm.__childNodes || elm.childNodes;
|
|
1138
850
|
for (const childNode of childNodes) {
|
|
1139
851
|
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1140
852
|
if (childNode["s-sr"]) {
|
|
@@ -1147,7 +859,7 @@ var updateFallbackSlotVisibility = (elm) => {
|
|
|
1147
859
|
childNode.hidden = true;
|
|
1148
860
|
break;
|
|
1149
861
|
}
|
|
1150
|
-
} else {
|
|
862
|
+
} else if (slotName === siblingNode["s-sn"]) {
|
|
1151
863
|
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
1152
864
|
childNode.hidden = true;
|
|
1153
865
|
break;
|
|
@@ -1165,9 +877,10 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1165
877
|
let node;
|
|
1166
878
|
let hostContentNodes;
|
|
1167
879
|
let j;
|
|
1168
|
-
|
|
880
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
881
|
+
for (const childNode of children) {
|
|
1169
882
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1170
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
883
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1171
884
|
const slotName = childNode["s-sn"];
|
|
1172
885
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1173
886
|
node = hostContentNodes[j];
|
|
@@ -1254,9 +967,9 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
1254
967
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1255
968
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1256
969
|
if (scopeIds.size) {
|
|
1257
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
970
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
1258
971
|
if (element["s-ol"] || iterateChildNodes) {
|
|
1259
|
-
for (const childNode of Array.from(element.childNodes)) {
|
|
972
|
+
for (const childNode of Array.from(element.__childNodes || element.childNodes)) {
|
|
1260
973
|
updateElementScopeIds(childNode, element, true);
|
|
1261
974
|
}
|
|
1262
975
|
}
|
|
@@ -1345,29 +1058,906 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1345
1058
|
if (isInitialLoad) {
|
|
1346
1059
|
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1347
1060
|
}
|
|
1348
|
-
nodeToRelocate.hidden = true;
|
|
1061
|
+
nodeToRelocate.hidden = true;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
if (checkSlotFallbackVisibility) {
|
|
1067
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1068
|
+
}
|
|
1069
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1070
|
+
relocateNodes.length = 0;
|
|
1071
|
+
}
|
|
1072
|
+
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1073
|
+
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1074
|
+
for (const childNode of children) {
|
|
1075
|
+
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1076
|
+
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1077
|
+
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1078
|
+
}
|
|
1079
|
+
childNode.hidden = true;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
contentRef = void 0;
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
// src/runtime/dom-extras.ts
|
|
1087
|
+
var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
1088
|
+
patchCloneNode(hostElementPrototype);
|
|
1089
|
+
patchSlotAppendChild(hostElementPrototype);
|
|
1090
|
+
patchSlotAppend(hostElementPrototype);
|
|
1091
|
+
patchSlotPrepend(hostElementPrototype);
|
|
1092
|
+
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
1093
|
+
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
1094
|
+
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
1095
|
+
patchTextContent(hostElementPrototype);
|
|
1096
|
+
patchChildSlotNodes(hostElementPrototype);
|
|
1097
|
+
patchSlotRemoveChild(hostElementPrototype);
|
|
1098
|
+
};
|
|
1099
|
+
var patchCloneNode = (HostElementPrototype) => {
|
|
1100
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1101
|
+
HostElementPrototype.cloneNode = function(deep) {
|
|
1102
|
+
const srcNode = this;
|
|
1103
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1104
|
+
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1105
|
+
if (!isShadowDom && deep) {
|
|
1106
|
+
let i2 = 0;
|
|
1107
|
+
let slotted, nonStencilNode;
|
|
1108
|
+
const stencilPrivates = [
|
|
1109
|
+
"s-id",
|
|
1110
|
+
"s-cr",
|
|
1111
|
+
"s-lr",
|
|
1112
|
+
"s-rc",
|
|
1113
|
+
"s-sc",
|
|
1114
|
+
"s-p",
|
|
1115
|
+
"s-cn",
|
|
1116
|
+
"s-sr",
|
|
1117
|
+
"s-sn",
|
|
1118
|
+
"s-hn",
|
|
1119
|
+
"s-ol",
|
|
1120
|
+
"s-nr",
|
|
1121
|
+
"s-si",
|
|
1122
|
+
"s-rf",
|
|
1123
|
+
"s-scs"
|
|
1124
|
+
];
|
|
1125
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
1126
|
+
for (; i2 < childNodes.length; i2++) {
|
|
1127
|
+
slotted = childNodes[i2]["s-nr"];
|
|
1128
|
+
nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
|
|
1129
|
+
if (slotted) {
|
|
1130
|
+
if (clonedNode.__appendChild) {
|
|
1131
|
+
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
1132
|
+
} else {
|
|
1133
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
if (nonStencilNode) {
|
|
1137
|
+
clonedNode.appendChild(childNodes[i2].cloneNode(true));
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
return clonedNode;
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
1145
|
+
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
1146
|
+
HostElementPrototype.appendChild = function(newChild) {
|
|
1147
|
+
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
1148
|
+
const slotNode = getHostSlotNode(this.__childNodes || this.childNodes, slotName, this.tagName);
|
|
1149
|
+
if (slotNode) {
|
|
1150
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
1151
|
+
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
1152
|
+
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
1153
|
+
const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
1154
|
+
updateFallbackSlotVisibility(this);
|
|
1155
|
+
return insertedNode;
|
|
1156
|
+
}
|
|
1157
|
+
return this.__appendChild(newChild);
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
1161
|
+
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
1162
|
+
ElementPrototype.removeChild = function(toRemove) {
|
|
1163
|
+
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
1164
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
1165
|
+
const slotNode = getHostSlotNode(childNodes, toRemove["s-sn"], this.tagName);
|
|
1166
|
+
if (slotNode && toRemove.isConnected) {
|
|
1167
|
+
toRemove.remove();
|
|
1168
|
+
updateFallbackSlotVisibility(this);
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
return this.__removeChild(toRemove);
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
var patchSlotPrepend = (HostElementPrototype) => {
|
|
1176
|
+
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
1177
|
+
HostElementPrototype.prepend = function(...newChildren) {
|
|
1178
|
+
newChildren.forEach((newChild) => {
|
|
1179
|
+
if (typeof newChild === "string") {
|
|
1180
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
1181
|
+
}
|
|
1182
|
+
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
1183
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
1184
|
+
const slotNode = getHostSlotNode(childNodes, slotName, this.tagName);
|
|
1185
|
+
if (slotNode) {
|
|
1186
|
+
addSlotRelocateNode(newChild, slotNode, true);
|
|
1187
|
+
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
1188
|
+
const appendAfter = slotChildNodes[0];
|
|
1189
|
+
return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
1190
|
+
}
|
|
1191
|
+
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
1192
|
+
newChild.hidden = true;
|
|
1193
|
+
}
|
|
1194
|
+
return HostElementPrototype.__prepend(newChild);
|
|
1195
|
+
});
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
var patchSlotAppend = (HostElementPrototype) => {
|
|
1199
|
+
HostElementPrototype.__append = HostElementPrototype.append;
|
|
1200
|
+
HostElementPrototype.append = function(...newChildren) {
|
|
1201
|
+
newChildren.forEach((newChild) => {
|
|
1202
|
+
if (typeof newChild === "string") {
|
|
1203
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
1204
|
+
}
|
|
1205
|
+
this.appendChild(newChild);
|
|
1206
|
+
});
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
1210
|
+
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
1211
|
+
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
1212
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
1213
|
+
return originalInsertAdjacentHtml.call(this, position, text);
|
|
1214
|
+
}
|
|
1215
|
+
const container = this.ownerDocument.createElement("_");
|
|
1216
|
+
let node;
|
|
1217
|
+
container.innerHTML = text;
|
|
1218
|
+
if (position === "afterbegin") {
|
|
1219
|
+
while (node = container.firstChild) {
|
|
1220
|
+
this.prepend(node);
|
|
1221
|
+
}
|
|
1222
|
+
} else if (position === "beforeend") {
|
|
1223
|
+
while (node = container.firstChild) {
|
|
1224
|
+
this.append(node);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
1230
|
+
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
1231
|
+
this.insertAdjacentHTML(position, text);
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
1235
|
+
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
1236
|
+
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
1237
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
1238
|
+
return originalInsertAdjacentElement.call(this, position, element);
|
|
1239
|
+
}
|
|
1240
|
+
if (position === "afterbegin") {
|
|
1241
|
+
this.prepend(element);
|
|
1242
|
+
return element;
|
|
1243
|
+
} else if (position === "beforeend") {
|
|
1244
|
+
this.append(element);
|
|
1245
|
+
return element;
|
|
1246
|
+
}
|
|
1247
|
+
return element;
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
var patchTextContent = (hostElementPrototype) => {
|
|
1251
|
+
patchHostOriginalAccessor("textContent", hostElementPrototype);
|
|
1252
|
+
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
1253
|
+
get: function() {
|
|
1254
|
+
let text = "";
|
|
1255
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
1256
|
+
childNodes.forEach((node) => text += node.textContent || "");
|
|
1257
|
+
return text;
|
|
1258
|
+
},
|
|
1259
|
+
set: function(value) {
|
|
1260
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
1261
|
+
childNodes.forEach((node) => {
|
|
1262
|
+
if (node["s-ol"]) node["s-ol"].remove();
|
|
1263
|
+
node.remove();
|
|
1264
|
+
});
|
|
1265
|
+
this.insertAdjacentHTML("beforeend", value);
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
var patchChildSlotNodes = (elm) => {
|
|
1270
|
+
class FakeNodeList extends Array {
|
|
1271
|
+
item(n) {
|
|
1272
|
+
return this[n];
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
patchHostOriginalAccessor("children", elm);
|
|
1276
|
+
Object.defineProperty(elm, "children", {
|
|
1277
|
+
get() {
|
|
1278
|
+
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
1279
|
+
}
|
|
1280
|
+
});
|
|
1281
|
+
Object.defineProperty(elm, "childElementCount", {
|
|
1282
|
+
get() {
|
|
1283
|
+
return this.children.length;
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
patchHostOriginalAccessor("firstChild", elm);
|
|
1287
|
+
Object.defineProperty(elm, "firstChild", {
|
|
1288
|
+
get() {
|
|
1289
|
+
return this.childNodes[0];
|
|
1290
|
+
}
|
|
1291
|
+
});
|
|
1292
|
+
patchHostOriginalAccessor("lastChild", elm);
|
|
1293
|
+
Object.defineProperty(elm, "lastChild", {
|
|
1294
|
+
get() {
|
|
1295
|
+
return this.childNodes[this.childNodes.length - 1];
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
patchHostOriginalAccessor("childNodes", elm);
|
|
1299
|
+
Object.defineProperty(elm, "childNodes", {
|
|
1300
|
+
get() {
|
|
1301
|
+
var _a, _b;
|
|
1302
|
+
if (!plt.$flags$ || !((_a = getHostRef(this)) == null ? void 0 : _a.$flags$) || (plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && ((_b = getHostRef(this)) == null ? void 0 : _b.$flags$) & 2 /* hasRendered */) {
|
|
1303
|
+
const result = new FakeNodeList();
|
|
1304
|
+
const nodes = getSlottedChildNodes(this.__childNodes);
|
|
1305
|
+
result.push(...nodes);
|
|
1306
|
+
return result;
|
|
1307
|
+
}
|
|
1308
|
+
return FakeNodeList.from(this.__childNodes);
|
|
1309
|
+
}
|
|
1310
|
+
});
|
|
1311
|
+
};
|
|
1312
|
+
var patchNextPrev = (node) => {
|
|
1313
|
+
if (!node || node.__nextSibling || !globalThis.Node) return;
|
|
1314
|
+
patchNextSibling(node);
|
|
1315
|
+
patchPreviousSibling(node);
|
|
1316
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
1317
|
+
patchNextElementSibling(node);
|
|
1318
|
+
patchPreviousElementSibling(node);
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
var patchNextSibling = (node) => {
|
|
1322
|
+
if (!node || node.__nextSibling) return;
|
|
1323
|
+
patchHostOriginalAccessor("nextSibling", node);
|
|
1324
|
+
Object.defineProperty(node, "nextSibling", {
|
|
1325
|
+
get: function() {
|
|
1326
|
+
var _a;
|
|
1327
|
+
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
1328
|
+
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
1329
|
+
if (parentNodes && index > -1) {
|
|
1330
|
+
return parentNodes[index + 1];
|
|
1331
|
+
}
|
|
1332
|
+
return this.__nextSibling;
|
|
1333
|
+
}
|
|
1334
|
+
});
|
|
1335
|
+
};
|
|
1336
|
+
var patchNextElementSibling = (element) => {
|
|
1337
|
+
if (!element || element.__nextElementSibling) return;
|
|
1338
|
+
patchHostOriginalAccessor("nextElementSibling", element);
|
|
1339
|
+
Object.defineProperty(element, "nextElementSibling", {
|
|
1340
|
+
get: function() {
|
|
1341
|
+
var _a;
|
|
1342
|
+
const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
1343
|
+
const index = parentEles == null ? void 0 : parentEles.indexOf(this);
|
|
1344
|
+
if (parentEles && index > -1) {
|
|
1345
|
+
return parentEles[index + 1];
|
|
1346
|
+
}
|
|
1347
|
+
return this.__nextElementSibling;
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1350
|
+
};
|
|
1351
|
+
var patchPreviousSibling = (node) => {
|
|
1352
|
+
if (!node || node.__previousSibling) return;
|
|
1353
|
+
patchHostOriginalAccessor("previousSibling", node);
|
|
1354
|
+
Object.defineProperty(node, "previousSibling", {
|
|
1355
|
+
get: function() {
|
|
1356
|
+
var _a;
|
|
1357
|
+
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
1358
|
+
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
1359
|
+
if (parentNodes && index > -1) {
|
|
1360
|
+
return parentNodes[index - 1];
|
|
1361
|
+
}
|
|
1362
|
+
return this.__previousSibling;
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
};
|
|
1366
|
+
var patchPreviousElementSibling = (element) => {
|
|
1367
|
+
if (!element || element.__previousElementSibling) return;
|
|
1368
|
+
patchHostOriginalAccessor("previousElementSibling", element);
|
|
1369
|
+
Object.defineProperty(element, "previousElementSibling", {
|
|
1370
|
+
get: function() {
|
|
1371
|
+
var _a;
|
|
1372
|
+
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
1373
|
+
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
1374
|
+
if (parentNodes && index > -1) {
|
|
1375
|
+
return parentNodes[index - 1];
|
|
1376
|
+
}
|
|
1377
|
+
return this.__previousElementSibling;
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
};
|
|
1381
|
+
var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
|
|
1382
|
+
var validNodesPatches = [
|
|
1383
|
+
"childNodes",
|
|
1384
|
+
"firstChild",
|
|
1385
|
+
"lastChild",
|
|
1386
|
+
"nextSibling",
|
|
1387
|
+
"previousSibling",
|
|
1388
|
+
"textContent"
|
|
1389
|
+
];
|
|
1390
|
+
function patchHostOriginalAccessor(accessorName, node) {
|
|
1391
|
+
let accessor;
|
|
1392
|
+
if (validElementPatches.includes(accessorName)) {
|
|
1393
|
+
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
1394
|
+
} else if (validNodesPatches.includes(accessorName)) {
|
|
1395
|
+
accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
|
|
1396
|
+
}
|
|
1397
|
+
if (!accessor) {
|
|
1398
|
+
accessor = Object.getOwnPropertyDescriptor(node, accessorName);
|
|
1399
|
+
}
|
|
1400
|
+
if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
|
|
1401
|
+
}
|
|
1402
|
+
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
1403
|
+
let slottedNodeLocation;
|
|
1404
|
+
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
1405
|
+
slottedNodeLocation = newChild["s-ol"];
|
|
1406
|
+
} else {
|
|
1407
|
+
slottedNodeLocation = document.createTextNode("");
|
|
1408
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
1409
|
+
}
|
|
1410
|
+
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
1411
|
+
const parent = slotNode["s-cr"].parentNode;
|
|
1412
|
+
const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
|
|
1413
|
+
if (typeof position !== "undefined") {
|
|
1414
|
+
{
|
|
1415
|
+
slottedNodeLocation["s-oo"] = position;
|
|
1416
|
+
const childNodes = parent.__childNodes || parent.childNodes;
|
|
1417
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
1418
|
+
childNodes.forEach((n) => {
|
|
1419
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
1420
|
+
});
|
|
1421
|
+
slotRelocateNodes.sort((a, b) => {
|
|
1422
|
+
if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
|
|
1423
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
1424
|
+
return 0;
|
|
1425
|
+
});
|
|
1426
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
1427
|
+
}
|
|
1428
|
+
} else {
|
|
1429
|
+
appendMethod.call(parent, slottedNodeLocation);
|
|
1430
|
+
}
|
|
1431
|
+
newChild["s-ol"] = slottedNodeLocation;
|
|
1432
|
+
newChild["s-sh"] = slotNode["s-hn"];
|
|
1433
|
+
};
|
|
1434
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
1435
|
+
const result = [];
|
|
1436
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
1437
|
+
const slottedNode = childNodes[i2]["s-nr"];
|
|
1438
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
1439
|
+
result.push(slottedNode);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
return result;
|
|
1443
|
+
};
|
|
1444
|
+
var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
|
|
1445
|
+
var getHostSlotNode = (childNodes, slotName, hostName) => {
|
|
1446
|
+
let i2 = 0;
|
|
1447
|
+
let childNode;
|
|
1448
|
+
for (; i2 < childNodes.length; i2++) {
|
|
1449
|
+
childNode = childNodes[i2];
|
|
1450
|
+
if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
|
|
1451
|
+
return childNode;
|
|
1452
|
+
}
|
|
1453
|
+
childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
|
|
1454
|
+
if (childNode) {
|
|
1455
|
+
return childNode;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
return null;
|
|
1459
|
+
};
|
|
1460
|
+
var getHostSlotChildNodes = (n, slotName) => {
|
|
1461
|
+
const childNodes = [n];
|
|
1462
|
+
while ((n = n.nextSibling) && n["s-sn"] === slotName) {
|
|
1463
|
+
childNodes.push(n);
|
|
1464
|
+
}
|
|
1465
|
+
return childNodes;
|
|
1466
|
+
};
|
|
1467
|
+
var createTime = (fnName, tagName = "") => {
|
|
1468
|
+
{
|
|
1469
|
+
return () => {
|
|
1470
|
+
return;
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
};
|
|
1474
|
+
var uniqueTime = (key, measureText) => {
|
|
1475
|
+
{
|
|
1476
|
+
return () => {
|
|
1477
|
+
return;
|
|
1478
|
+
};
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
// src/runtime/client-hydrate.ts
|
|
1483
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1484
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
1485
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
1486
|
+
const childRenderNodes = [];
|
|
1487
|
+
const slotNodes = [];
|
|
1488
|
+
const slottedNodes = [];
|
|
1489
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1490
|
+
const vnode = newVNode(tagName, null);
|
|
1491
|
+
vnode.$elm$ = hostElm;
|
|
1492
|
+
if (!plt.$orgLocNodes$) {
|
|
1493
|
+
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1494
|
+
}
|
|
1495
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
1496
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
1497
|
+
hostRef.$vnode$ = clientHydrate(
|
|
1498
|
+
vnode,
|
|
1499
|
+
childRenderNodes,
|
|
1500
|
+
slotNodes,
|
|
1501
|
+
shadowRootNodes,
|
|
1502
|
+
hostElm,
|
|
1503
|
+
hostElm,
|
|
1504
|
+
hostId,
|
|
1505
|
+
slottedNodes
|
|
1506
|
+
);
|
|
1507
|
+
let crIndex = 0;
|
|
1508
|
+
const crLength = childRenderNodes.length;
|
|
1509
|
+
let childRenderNode;
|
|
1510
|
+
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1511
|
+
childRenderNode = childRenderNodes[crIndex];
|
|
1512
|
+
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
1513
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1514
|
+
const node = childRenderNode.$elm$;
|
|
1515
|
+
if (!shadowRoot) {
|
|
1516
|
+
node["s-hn"] = tagName.toUpperCase();
|
|
1517
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
1518
|
+
node["s-cr"] = hostElm["s-cr"];
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1522
|
+
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1523
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1524
|
+
}
|
|
1525
|
+
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
1526
|
+
if (!shadowRoot) {
|
|
1527
|
+
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1531
|
+
}
|
|
1532
|
+
const hosts = [];
|
|
1533
|
+
let snIndex = 0;
|
|
1534
|
+
const snLen = slottedNodes.length;
|
|
1535
|
+
let slotGroup;
|
|
1536
|
+
let snGroupIdx;
|
|
1537
|
+
let snGroupLen;
|
|
1538
|
+
let slottedItem;
|
|
1539
|
+
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1540
|
+
slotGroup = slottedNodes[snIndex];
|
|
1541
|
+
if (!slotGroup || !slotGroup.length) continue;
|
|
1542
|
+
snGroupLen = slotGroup.length;
|
|
1543
|
+
snGroupIdx = 0;
|
|
1544
|
+
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1545
|
+
slottedItem = slotGroup[snGroupIdx];
|
|
1546
|
+
if (!hosts[slottedItem.hostId]) {
|
|
1547
|
+
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1548
|
+
}
|
|
1549
|
+
if (!hosts[slottedItem.hostId]) continue;
|
|
1550
|
+
const hostEle = hosts[slottedItem.hostId];
|
|
1551
|
+
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1552
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1553
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1554
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1555
|
+
} else {
|
|
1556
|
+
const hostChildren = hostEle.__childNodes || hostEle.childNodes;
|
|
1557
|
+
slottedItem.slot["s-cr"] = hostChildren[0];
|
|
1558
|
+
}
|
|
1559
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1560
|
+
{
|
|
1561
|
+
patchNextPrev(slottedItem.node);
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1565
|
+
hostEle.appendChild(slottedItem.node);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
if (shadowRoot) {
|
|
1570
|
+
let rnIdex = 0;
|
|
1571
|
+
const rnLen = shadowRootNodes.length;
|
|
1572
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1573
|
+
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
1574
|
+
}
|
|
1575
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1576
|
+
if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
|
|
1577
|
+
node.parentNode.removeChild(node);
|
|
1578
|
+
}
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
hostRef.$hostElement$ = hostElm;
|
|
1582
|
+
endHydrate();
|
|
1583
|
+
};
|
|
1584
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
1585
|
+
let childNodeType;
|
|
1586
|
+
let childIdSplt;
|
|
1587
|
+
let childVNode;
|
|
1588
|
+
let i2;
|
|
1589
|
+
const scopeId2 = hostElm["s-sc"];
|
|
1590
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1591
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1592
|
+
if (childNodeType) {
|
|
1593
|
+
childIdSplt = childNodeType.split(".");
|
|
1594
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1595
|
+
childVNode = createSimpleVNode({
|
|
1596
|
+
$flags$: 0,
|
|
1597
|
+
$hostId$: childIdSplt[0],
|
|
1598
|
+
$nodeId$: childIdSplt[1],
|
|
1599
|
+
$depth$: childIdSplt[2],
|
|
1600
|
+
$index$: childIdSplt[3],
|
|
1601
|
+
$tag$: node.tagName.toLowerCase(),
|
|
1602
|
+
$elm$: node,
|
|
1603
|
+
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
|
|
1604
|
+
// client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
|
|
1605
|
+
$attrs$: { class: node.className }
|
|
1606
|
+
});
|
|
1607
|
+
childRenderNodes.push(childVNode);
|
|
1608
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1609
|
+
if (!parentVNode.$children$) {
|
|
1610
|
+
parentVNode.$children$ = [];
|
|
1611
|
+
}
|
|
1612
|
+
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1613
|
+
if (typeof slotName === "string") {
|
|
1614
|
+
if (childVNode.$tag$ === "slot-fb") {
|
|
1615
|
+
addSlot(
|
|
1616
|
+
slotName,
|
|
1617
|
+
childIdSplt[2],
|
|
1618
|
+
childVNode,
|
|
1619
|
+
node,
|
|
1620
|
+
parentVNode,
|
|
1621
|
+
childRenderNodes,
|
|
1622
|
+
slotNodes,
|
|
1623
|
+
shadowRootNodes,
|
|
1624
|
+
slottedNodes
|
|
1625
|
+
);
|
|
1626
|
+
}
|
|
1627
|
+
childVNode.$elm$["s-sn"] = slotName;
|
|
1628
|
+
childVNode.$elm$.removeAttribute("s-sn");
|
|
1629
|
+
}
|
|
1630
|
+
if (childVNode.$index$ !== void 0) {
|
|
1631
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1632
|
+
}
|
|
1633
|
+
if (scopeId2) node["s-si"] = scopeId2;
|
|
1634
|
+
parentVNode = childVNode;
|
|
1635
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1636
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
if (node.shadowRoot) {
|
|
1641
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1642
|
+
clientHydrate(
|
|
1643
|
+
parentVNode,
|
|
1644
|
+
childRenderNodes,
|
|
1645
|
+
slotNodes,
|
|
1646
|
+
shadowRootNodes,
|
|
1647
|
+
hostElm,
|
|
1648
|
+
node.shadowRoot.childNodes[i2],
|
|
1649
|
+
hostId,
|
|
1650
|
+
slottedNodes
|
|
1651
|
+
);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1655
|
+
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
1656
|
+
clientHydrate(
|
|
1657
|
+
parentVNode,
|
|
1658
|
+
childRenderNodes,
|
|
1659
|
+
slotNodes,
|
|
1660
|
+
shadowRootNodes,
|
|
1661
|
+
hostElm,
|
|
1662
|
+
nonShadowNodes[i2],
|
|
1663
|
+
hostId,
|
|
1664
|
+
slottedNodes
|
|
1665
|
+
);
|
|
1666
|
+
}
|
|
1667
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1668
|
+
childIdSplt = node.nodeValue.split(".");
|
|
1669
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1670
|
+
childNodeType = childIdSplt[0];
|
|
1671
|
+
childVNode = createSimpleVNode({
|
|
1672
|
+
$hostId$: childIdSplt[1],
|
|
1673
|
+
$nodeId$: childIdSplt[2],
|
|
1674
|
+
$depth$: childIdSplt[3],
|
|
1675
|
+
$index$: childIdSplt[4] || "0",
|
|
1676
|
+
$elm$: node,
|
|
1677
|
+
$attrs$: null,
|
|
1678
|
+
$children$: null,
|
|
1679
|
+
$key$: null,
|
|
1680
|
+
$name$: null,
|
|
1681
|
+
$tag$: null,
|
|
1682
|
+
$text$: null
|
|
1683
|
+
});
|
|
1684
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
1685
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1686
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1687
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1688
|
+
childRenderNodes.push(childVNode);
|
|
1689
|
+
node.remove();
|
|
1690
|
+
if (hostId === childVNode.$hostId$) {
|
|
1691
|
+
if (!parentVNode.$children$) {
|
|
1692
|
+
parentVNode.$children$ = [];
|
|
1693
|
+
}
|
|
1694
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1695
|
+
}
|
|
1696
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1697
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1701
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1702
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1703
|
+
childRenderNodes.push(childVNode);
|
|
1704
|
+
node.remove();
|
|
1705
|
+
}
|
|
1706
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
1707
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
1708
|
+
childVNode.$tag$ = "slot";
|
|
1709
|
+
const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
|
|
1710
|
+
addSlot(
|
|
1711
|
+
slotName,
|
|
1712
|
+
childIdSplt[2],
|
|
1713
|
+
childVNode,
|
|
1714
|
+
node,
|
|
1715
|
+
parentVNode,
|
|
1716
|
+
childRenderNodes,
|
|
1717
|
+
slotNodes,
|
|
1718
|
+
shadowRootNodes,
|
|
1719
|
+
slottedNodes
|
|
1720
|
+
);
|
|
1721
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1722
|
+
if (shadowRootNodes) {
|
|
1723
|
+
node.remove();
|
|
1724
|
+
} else {
|
|
1725
|
+
hostElm["s-cr"] = node;
|
|
1726
|
+
node["s-cn"] = true;
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1732
|
+
const vnode = newVNode(null, node.textContent);
|
|
1733
|
+
vnode.$elm$ = node;
|
|
1734
|
+
vnode.$index$ = "0";
|
|
1735
|
+
parentVNode.$children$ = [vnode];
|
|
1736
|
+
}
|
|
1737
|
+
return parentVNode;
|
|
1738
|
+
};
|
|
1739
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1740
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1741
|
+
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1742
|
+
if (componentId) {
|
|
1743
|
+
orgLocNodes.set(componentId, node);
|
|
1744
|
+
}
|
|
1745
|
+
let i2 = 0;
|
|
1746
|
+
if (node.shadowRoot) {
|
|
1747
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1748
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1752
|
+
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1753
|
+
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1754
|
+
}
|
|
1755
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1756
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
1757
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1758
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1759
|
+
node.nodeValue = "";
|
|
1760
|
+
node["s-en"] = childIdSplt[3];
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
};
|
|
1764
|
+
var createSimpleVNode = (vnode) => {
|
|
1765
|
+
const defaultVNode = {
|
|
1766
|
+
$flags$: 0,
|
|
1767
|
+
$hostId$: null,
|
|
1768
|
+
$nodeId$: null,
|
|
1769
|
+
$depth$: null,
|
|
1770
|
+
$index$: "0",
|
|
1771
|
+
$elm$: null,
|
|
1772
|
+
$attrs$: null,
|
|
1773
|
+
$children$: null,
|
|
1774
|
+
$key$: null,
|
|
1775
|
+
$name$: null,
|
|
1776
|
+
$tag$: null,
|
|
1777
|
+
$text$: null
|
|
1778
|
+
};
|
|
1779
|
+
return { ...defaultVNode, ...vnode };
|
|
1780
|
+
};
|
|
1781
|
+
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1782
|
+
node["s-sr"] = true;
|
|
1783
|
+
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1784
|
+
if (shadowRootNodes) {
|
|
1785
|
+
const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
1786
|
+
if (childVNode.$name$) {
|
|
1787
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
|
1788
|
+
}
|
|
1789
|
+
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1790
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1791
|
+
} else {
|
|
1792
|
+
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
1793
|
+
}
|
|
1794
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1795
|
+
node.remove();
|
|
1796
|
+
if (childVNode.$depth$ === "0") {
|
|
1797
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1798
|
+
}
|
|
1799
|
+
} else {
|
|
1800
|
+
const slot = childVNode.$elm$;
|
|
1801
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1802
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1803
|
+
if (shouldMove) {
|
|
1804
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1805
|
+
}
|
|
1806
|
+
childRenderNodes.push(childVNode);
|
|
1807
|
+
}
|
|
1808
|
+
slotNodes.push(childVNode);
|
|
1809
|
+
if (!parentVNode.$children$) {
|
|
1810
|
+
parentVNode.$children$ = [];
|
|
1811
|
+
}
|
|
1812
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1813
|
+
}
|
|
1814
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1815
|
+
let slottedNode = slotNode.nextSibling;
|
|
1816
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1817
|
+
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 */))) {
|
|
1818
|
+
slottedNode["s-sn"] = slotName;
|
|
1819
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1820
|
+
slottedNode = slottedNode.nextSibling;
|
|
1821
|
+
}
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
// src/runtime/mode.ts
|
|
1825
|
+
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
1826
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
1827
|
+
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
1828
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
1829
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
1830
|
+
if (propType & 4 /* Boolean */) {
|
|
1831
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1832
|
+
}
|
|
1833
|
+
if (propType & 2 /* Number */) {
|
|
1834
|
+
return parseFloat(propValue);
|
|
1835
|
+
}
|
|
1836
|
+
if (propType & 1 /* String */) {
|
|
1837
|
+
return String(propValue);
|
|
1838
|
+
}
|
|
1839
|
+
return propValue;
|
|
1840
|
+
}
|
|
1841
|
+
return propValue;
|
|
1842
|
+
};
|
|
1843
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1844
|
+
|
|
1845
|
+
// src/runtime/event-emitter.ts
|
|
1846
|
+
var createEvent = (ref, name, flags) => {
|
|
1847
|
+
const elm = getElement(ref);
|
|
1848
|
+
return {
|
|
1849
|
+
emit: (detail) => {
|
|
1850
|
+
return emitEvent(elm, name, {
|
|
1851
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1852
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1853
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1854
|
+
detail
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1859
|
+
var emitEvent = (elm, name, opts) => {
|
|
1860
|
+
const ev = plt.ce(name, opts);
|
|
1861
|
+
elm.dispatchEvent(ev);
|
|
1862
|
+
return ev;
|
|
1863
|
+
};
|
|
1864
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1865
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1866
|
+
let style = styles.get(scopeId2);
|
|
1867
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1868
|
+
style = style || new CSSStyleSheet();
|
|
1869
|
+
if (typeof style === "string") {
|
|
1870
|
+
style = cssText;
|
|
1871
|
+
} else {
|
|
1872
|
+
style.replaceSync(cssText);
|
|
1873
|
+
}
|
|
1874
|
+
} else {
|
|
1875
|
+
style = cssText;
|
|
1876
|
+
}
|
|
1877
|
+
styles.set(scopeId2, style);
|
|
1878
|
+
};
|
|
1879
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1880
|
+
var _a;
|
|
1881
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1882
|
+
const style = styles.get(scopeId2);
|
|
1883
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
1884
|
+
if (style) {
|
|
1885
|
+
if (typeof style === "string") {
|
|
1886
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1887
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1888
|
+
let styleElm;
|
|
1889
|
+
if (!appliedStyles) {
|
|
1890
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1891
|
+
}
|
|
1892
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1893
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1894
|
+
styleElm.innerHTML = style;
|
|
1895
|
+
} else {
|
|
1896
|
+
styleElm = doc.createElement("style");
|
|
1897
|
+
styleElm.innerHTML = style;
|
|
1898
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
1899
|
+
if (nonce != null) {
|
|
1900
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1901
|
+
}
|
|
1902
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1903
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1904
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1905
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1906
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
1907
|
+
} else if ("host" in styleContainerNode) {
|
|
1908
|
+
if (supportsConstructableStylesheets) {
|
|
1909
|
+
const stylesheet = new CSSStyleSheet();
|
|
1910
|
+
stylesheet.replaceSync(style);
|
|
1911
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1912
|
+
} else {
|
|
1913
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1914
|
+
if (existingStyleContainer) {
|
|
1915
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1916
|
+
} else {
|
|
1917
|
+
styleContainerNode.prepend(styleElm);
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
} else {
|
|
1921
|
+
styleContainerNode.append(styleElm);
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
1925
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1349
1926
|
}
|
|
1350
1927
|
}
|
|
1928
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1929
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1930
|
+
}
|
|
1931
|
+
if (appliedStyles) {
|
|
1932
|
+
appliedStyles.add(scopeId2);
|
|
1933
|
+
}
|
|
1351
1934
|
}
|
|
1935
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1936
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1352
1937
|
}
|
|
1353
|
-
if (checkSlotFallbackVisibility) {
|
|
1354
|
-
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1355
|
-
}
|
|
1356
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1357
|
-
relocateNodes.length = 0;
|
|
1358
1938
|
}
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1939
|
+
return scopeId2;
|
|
1940
|
+
};
|
|
1941
|
+
var attachStyles = (hostRef) => {
|
|
1942
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1943
|
+
const elm = hostRef.$hostElement$;
|
|
1944
|
+
const flags = cmpMeta.$flags$;
|
|
1945
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1946
|
+
const scopeId2 = addStyle(
|
|
1947
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1948
|
+
cmpMeta,
|
|
1949
|
+
hostRef.$modeName$
|
|
1950
|
+
);
|
|
1951
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1952
|
+
elm["s-sc"] = scopeId2;
|
|
1953
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1954
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
1955
|
+
elm.classList.add(scopeId2 + "-s");
|
|
1367
1956
|
}
|
|
1368
1957
|
}
|
|
1369
|
-
|
|
1958
|
+
endAttachStyles();
|
|
1370
1959
|
};
|
|
1960
|
+
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1371
1961
|
|
|
1372
1962
|
// src/runtime/update-component.ts
|
|
1373
1963
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -1595,16 +2185,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1595
2185
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1596
2186
|
members.map(([memberName, [memberFlags]]) => {
|
|
1597
2187
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
2188
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
2189
|
+
Object.defineProperty(prototype, memberName, {
|
|
2190
|
+
get() {
|
|
2191
|
+
return getValue(this, memberName);
|
|
2192
|
+
},
|
|
2193
|
+
set(newValue) {
|
|
2194
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
2195
|
+
},
|
|
2196
|
+
configurable: true,
|
|
2197
|
+
enumerable: true
|
|
2198
|
+
});
|
|
2199
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
2200
|
+
{
|
|
2201
|
+
Object.defineProperty(prototype, memberName, {
|
|
2202
|
+
get() {
|
|
2203
|
+
const ref = getHostRef(this);
|
|
2204
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
2205
|
+
if (!instance) return;
|
|
2206
|
+
return instance[memberName];
|
|
2207
|
+
},
|
|
2208
|
+
configurable: true,
|
|
2209
|
+
enumerable: true
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2212
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
2213
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
2214
|
+
Object.defineProperty(prototype, memberName, {
|
|
2215
|
+
set(newValue) {
|
|
2216
|
+
const ref = getHostRef(this);
|
|
2217
|
+
if (origSetter) {
|
|
2218
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
2219
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2220
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
2221
|
+
}
|
|
2222
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
2223
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
2224
|
+
return;
|
|
2225
|
+
}
|
|
2226
|
+
if (!ref) return;
|
|
2227
|
+
const setterSetVal = () => {
|
|
2228
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
2229
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2230
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
2231
|
+
}
|
|
2232
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
2233
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2234
|
+
};
|
|
2235
|
+
if (ref.$lazyInstance$) {
|
|
2236
|
+
setterSetVal();
|
|
2237
|
+
} else {
|
|
2238
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
1608
2244
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1609
2245
|
Object.defineProperty(prototype, memberName, {
|
|
1610
2246
|
value(...args) {
|
|
@@ -1644,7 +2280,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1644
2280
|
}
|
|
1645
2281
|
return;
|
|
1646
2282
|
}
|
|
1647
|
-
|
|
2283
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
2284
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
2285
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2286
|
+
}
|
|
1648
2287
|
});
|
|
1649
2288
|
};
|
|
1650
2289
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1760,6 +2399,9 @@ var connectedCallback = (elm) => {
|
|
|
1760
2399
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1761
2400
|
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
|
|
1762
2401
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2402
|
+
} else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2403
|
+
const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
|
|
2404
|
+
elm["s-sc"] = scopeId2;
|
|
1763
2405
|
}
|
|
1764
2406
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1765
2407
|
}
|
|
@@ -1810,9 +2452,13 @@ var setContentReference = (elm) => {
|
|
|
1810
2452
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1811
2453
|
};
|
|
1812
2454
|
var disconnectInstance = (instance) => {
|
|
2455
|
+
const callbackResult = [];
|
|
1813
2456
|
{
|
|
1814
|
-
safeCall(instance, "disconnectedCallback");
|
|
2457
|
+
callbackResult.push(safeCall(instance, "disconnectedCallback"));
|
|
1815
2458
|
}
|
|
2459
|
+
Promise.all(
|
|
2460
|
+
callbackResult.filter((item) => typeof item === "object").filter((promise) => "then" in promise && typeof promise.then === "function")
|
|
2461
|
+
).finally(() => setTimeout(() => hostRefCleanup()));
|
|
1816
2462
|
};
|
|
1817
2463
|
var disconnectedCallback = async (elm) => {
|
|
1818
2464
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1827,289 +2473,16 @@ var disconnectedCallback = async (elm) => {
|
|
|
1827
2473
|
disconnectInstance(hostRef.$lazyInstance$);
|
|
1828
2474
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1829
2475
|
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
2476
|
+
} else {
|
|
2477
|
+
setTimeout(() => hostRefCleanup());
|
|
1830
2478
|
}
|
|
1831
2479
|
}
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
patchCloneNode(hostElementPrototype);
|
|
1835
|
-
patchSlotAppendChild(hostElementPrototype);
|
|
1836
|
-
patchSlotAppend(hostElementPrototype);
|
|
1837
|
-
patchSlotPrepend(hostElementPrototype);
|
|
1838
|
-
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
1839
|
-
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
1840
|
-
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
1841
|
-
patchTextContent(hostElementPrototype);
|
|
1842
|
-
patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
|
|
1843
|
-
patchSlotRemoveChild(hostElementPrototype);
|
|
1844
|
-
};
|
|
1845
|
-
var patchCloneNode = (HostElementPrototype) => {
|
|
1846
|
-
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1847
|
-
HostElementPrototype.cloneNode = function(deep) {
|
|
1848
|
-
const srcNode = this;
|
|
1849
|
-
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1850
|
-
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1851
|
-
if (!isShadowDom && deep) {
|
|
1852
|
-
let i2 = 0;
|
|
1853
|
-
let slotted, nonStencilNode;
|
|
1854
|
-
const stencilPrivates = [
|
|
1855
|
-
"s-id",
|
|
1856
|
-
"s-cr",
|
|
1857
|
-
"s-lr",
|
|
1858
|
-
"s-rc",
|
|
1859
|
-
"s-sc",
|
|
1860
|
-
"s-p",
|
|
1861
|
-
"s-cn",
|
|
1862
|
-
"s-sr",
|
|
1863
|
-
"s-sn",
|
|
1864
|
-
"s-hn",
|
|
1865
|
-
"s-ol",
|
|
1866
|
-
"s-nr",
|
|
1867
|
-
"s-si",
|
|
1868
|
-
"s-rf",
|
|
1869
|
-
"s-scs"
|
|
1870
|
-
];
|
|
1871
|
-
for (; i2 < srcNode.childNodes.length; i2++) {
|
|
1872
|
-
slotted = srcNode.childNodes[i2]["s-nr"];
|
|
1873
|
-
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
|
|
1874
|
-
if (slotted) {
|
|
1875
|
-
if (clonedNode.__appendChild) {
|
|
1876
|
-
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
1877
|
-
} else {
|
|
1878
|
-
clonedNode.appendChild(slotted.cloneNode(true));
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
if (nonStencilNode) {
|
|
1882
|
-
clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
return clonedNode;
|
|
1887
|
-
};
|
|
1888
|
-
};
|
|
1889
|
-
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
1890
|
-
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
1891
|
-
HostElementPrototype.appendChild = function(newChild) {
|
|
1892
|
-
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
1893
|
-
const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
|
|
1894
|
-
if (slotNode) {
|
|
1895
|
-
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
1896
|
-
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
1897
|
-
const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
1898
|
-
updateFallbackSlotVisibility(this);
|
|
1899
|
-
return insertedNode;
|
|
1900
|
-
}
|
|
1901
|
-
return this.__appendChild(newChild);
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
1905
|
-
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
1906
|
-
ElementPrototype.removeChild = function(toRemove) {
|
|
1907
|
-
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
1908
|
-
const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
|
|
1909
|
-
if (slotNode) {
|
|
1910
|
-
const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
|
|
1911
|
-
const existingNode = slotChildNodes.find((n) => n === toRemove);
|
|
1912
|
-
if (existingNode) {
|
|
1913
|
-
existingNode.remove();
|
|
1914
|
-
updateFallbackSlotVisibility(this);
|
|
1915
|
-
return;
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
return this.__removeChild(toRemove);
|
|
1920
|
-
};
|
|
1921
|
-
};
|
|
1922
|
-
var patchSlotPrepend = (HostElementPrototype) => {
|
|
1923
|
-
const originalPrepend = HostElementPrototype.prepend;
|
|
1924
|
-
HostElementPrototype.prepend = function(...newChildren) {
|
|
1925
|
-
newChildren.forEach((newChild) => {
|
|
1926
|
-
if (typeof newChild === "string") {
|
|
1927
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
1928
|
-
}
|
|
1929
|
-
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
1930
|
-
const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
|
|
1931
|
-
if (slotNode) {
|
|
1932
|
-
const slotPlaceholder = document.createTextNode("");
|
|
1933
|
-
slotPlaceholder["s-nr"] = newChild;
|
|
1934
|
-
slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
|
|
1935
|
-
newChild["s-ol"] = slotPlaceholder;
|
|
1936
|
-
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
1937
|
-
const appendAfter = slotChildNodes[0];
|
|
1938
|
-
return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
1939
|
-
}
|
|
1940
|
-
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
1941
|
-
newChild.hidden = true;
|
|
1942
|
-
}
|
|
1943
|
-
return originalPrepend.call(this, newChild);
|
|
1944
|
-
});
|
|
1945
|
-
};
|
|
1946
|
-
};
|
|
1947
|
-
var patchSlotAppend = (HostElementPrototype) => {
|
|
1948
|
-
HostElementPrototype.append = function(...newChildren) {
|
|
1949
|
-
newChildren.forEach((newChild) => {
|
|
1950
|
-
if (typeof newChild === "string") {
|
|
1951
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
1952
|
-
}
|
|
1953
|
-
this.appendChild(newChild);
|
|
1954
|
-
});
|
|
1955
|
-
};
|
|
1956
|
-
};
|
|
1957
|
-
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
1958
|
-
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
1959
|
-
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
1960
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
1961
|
-
return originalInsertAdjacentHtml.call(this, position, text);
|
|
1962
|
-
}
|
|
1963
|
-
const container = this.ownerDocument.createElement("_");
|
|
1964
|
-
let node;
|
|
1965
|
-
container.innerHTML = text;
|
|
1966
|
-
if (position === "afterbegin") {
|
|
1967
|
-
while (node = container.firstChild) {
|
|
1968
|
-
this.prepend(node);
|
|
1969
|
-
}
|
|
1970
|
-
} else if (position === "beforeend") {
|
|
1971
|
-
while (node = container.firstChild) {
|
|
1972
|
-
this.append(node);
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
|
-
};
|
|
1977
|
-
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
1978
|
-
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
1979
|
-
this.insertAdjacentHTML(position, text);
|
|
1980
|
-
};
|
|
1981
|
-
};
|
|
1982
|
-
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
1983
|
-
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
1984
|
-
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
1985
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
1986
|
-
return originalInsertAdjacentElement.call(this, position, element);
|
|
1987
|
-
}
|
|
1988
|
-
if (position === "afterbegin") {
|
|
1989
|
-
this.prepend(element);
|
|
1990
|
-
return element;
|
|
1991
|
-
} else if (position === "beforeend") {
|
|
1992
|
-
this.append(element);
|
|
1993
|
-
return element;
|
|
1994
|
-
}
|
|
1995
|
-
return element;
|
|
1996
|
-
};
|
|
1997
|
-
};
|
|
1998
|
-
var patchTextContent = (hostElementPrototype) => {
|
|
1999
|
-
const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
|
|
2000
|
-
Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
|
|
2001
|
-
{
|
|
2002
|
-
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
2003
|
-
// To mimic shadow root behavior, we need to return the text content of all
|
|
2004
|
-
// nodes in a slot reference node
|
|
2005
|
-
get() {
|
|
2006
|
-
const slotRefNodes = getAllChildSlotNodes(this.childNodes);
|
|
2007
|
-
const textContent = slotRefNodes.map((node) => {
|
|
2008
|
-
var _a, _b;
|
|
2009
|
-
const text = [];
|
|
2010
|
-
let slotContent = node.nextSibling;
|
|
2011
|
-
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2012
|
-
if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
|
|
2013
|
-
text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
|
|
2014
|
-
}
|
|
2015
|
-
slotContent = slotContent.nextSibling;
|
|
2016
|
-
}
|
|
2017
|
-
return text.filter((ref) => ref !== "").join(" ");
|
|
2018
|
-
}).filter((text) => text !== "").join(" ");
|
|
2019
|
-
return " " + textContent + " ";
|
|
2020
|
-
},
|
|
2021
|
-
// To mimic shadow root behavior, we need to overwrite all nodes in a slot
|
|
2022
|
-
// reference node. If a default slot reference node exists, the text content will be
|
|
2023
|
-
// placed there. Otherwise, the new text node will be hidden
|
|
2024
|
-
set(value) {
|
|
2025
|
-
const slotRefNodes = getAllChildSlotNodes(this.childNodes);
|
|
2026
|
-
slotRefNodes.forEach((node) => {
|
|
2027
|
-
let slotContent = node.nextSibling;
|
|
2028
|
-
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2029
|
-
const tmp = slotContent;
|
|
2030
|
-
slotContent = slotContent.nextSibling;
|
|
2031
|
-
tmp.remove();
|
|
2032
|
-
}
|
|
2033
|
-
if (node["s-sn"] === "") {
|
|
2034
|
-
const textNode = this.ownerDocument.createTextNode(value);
|
|
2035
|
-
textNode["s-sn"] = "";
|
|
2036
|
-
insertBefore(node.parentElement, textNode, node.nextSibling);
|
|
2037
|
-
} else {
|
|
2038
|
-
node.remove();
|
|
2039
|
-
}
|
|
2040
|
-
});
|
|
2041
|
-
}
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
};
|
|
2045
|
-
var patchChildSlotNodes = (elm, cmpMeta) => {
|
|
2046
|
-
class FakeNodeList extends Array {
|
|
2047
|
-
item(n) {
|
|
2048
|
-
return this[n];
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
2052
|
-
const childNodesFn = elm.__lookupGetter__("childNodes");
|
|
2053
|
-
Object.defineProperty(elm, "children", {
|
|
2054
|
-
get() {
|
|
2055
|
-
return this.childNodes.map((n) => n.nodeType === 1);
|
|
2056
|
-
}
|
|
2057
|
-
});
|
|
2058
|
-
Object.defineProperty(elm, "childElementCount", {
|
|
2059
|
-
get() {
|
|
2060
|
-
return elm.children.length;
|
|
2061
|
-
}
|
|
2062
|
-
});
|
|
2063
|
-
Object.defineProperty(elm, "childNodes", {
|
|
2064
|
-
get() {
|
|
2065
|
-
const childNodes = childNodesFn.call(this);
|
|
2066
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
2067
|
-
const result = new FakeNodeList();
|
|
2068
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
2069
|
-
const slot = childNodes[i2]["s-nr"];
|
|
2070
|
-
if (slot) {
|
|
2071
|
-
result.push(slot);
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
return result;
|
|
2075
|
-
}
|
|
2076
|
-
return FakeNodeList.from(childNodes);
|
|
2077
|
-
}
|
|
2078
|
-
});
|
|
2079
|
-
}
|
|
2080
|
-
};
|
|
2081
|
-
var getAllChildSlotNodes = (childNodes) => {
|
|
2082
|
-
const slotRefNodes = [];
|
|
2083
|
-
for (const childNode of Array.from(childNodes)) {
|
|
2084
|
-
if (childNode["s-sr"]) {
|
|
2085
|
-
slotRefNodes.push(childNode);
|
|
2086
|
-
}
|
|
2087
|
-
slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
|
|
2088
|
-
}
|
|
2089
|
-
return slotRefNodes;
|
|
2090
|
-
};
|
|
2091
|
-
var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
|
|
2092
|
-
var getHostSlotNode = (childNodes, slotName, hostName) => {
|
|
2093
|
-
let i2 = 0;
|
|
2094
|
-
let childNode;
|
|
2095
|
-
for (; i2 < childNodes.length; i2++) {
|
|
2096
|
-
childNode = childNodes[i2];
|
|
2097
|
-
if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
|
|
2098
|
-
return childNode;
|
|
2099
|
-
}
|
|
2100
|
-
childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
|
|
2101
|
-
if (childNode) {
|
|
2102
|
-
return childNode;
|
|
2103
|
-
}
|
|
2480
|
+
if (rootAppliedStyles.has(elm)) {
|
|
2481
|
+
rootAppliedStyles.delete(elm);
|
|
2104
2482
|
}
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
var getHostSlotChildNodes = (n, slotName) => {
|
|
2108
|
-
const childNodes = [n];
|
|
2109
|
-
while ((n = n.nextSibling) && n["s-sn"] === slotName) {
|
|
2110
|
-
childNodes.push(n);
|
|
2483
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
2484
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
2111
2485
|
}
|
|
2112
|
-
return childNodes;
|
|
2113
2486
|
};
|
|
2114
2487
|
|
|
2115
2488
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -2207,7 +2580,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2207
2580
|
};
|
|
2208
2581
|
{
|
|
2209
2582
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2210
|
-
patchPseudoShadowDom(HostElement.prototype
|
|
2583
|
+
patchPseudoShadowDom(HostElement.prototype);
|
|
2211
2584
|
}
|
|
2212
2585
|
}
|
|
2213
2586
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2285,4 +2658,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2285
2658
|
// src/runtime/nonce.ts
|
|
2286
2659
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2287
2660
|
|
|
2288
|
-
export { Build as B, H, setPlatformHelpers as a, bootstrapLazy as b,
|
|
2661
|
+
export { Build as B, H, setPlatformHelpers as a, bootstrapLazy as b, setMode as c, createEvent as d, readTask as e, Host as f, getMode as g, h, getElement as i, forceUpdate as j, getAssetPath as k, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };
|