@cloudflare/realtimekit-ui 2.0.1 → 2.0.2-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/ChatHead-DzH-mYX1.js +11 -0
- package/dist/cjs/{TextMessage-492778db.js → TextMessage-5iqcrDk9.js} +9 -11
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/breakout-rooms-46jWgGiL.js +72 -0
- package/dist/cjs/breakout-rooms-manager-Bgk5FEK1.js +303 -0
- package/dist/cjs/{chat-4f5c28ca.js → chat-CiRLOYTj.js} +1 -1
- package/dist/cjs/{config-705c8f2c.js → config-Dr-kt-RY.js} +6 -5
- package/dist/cjs/debounce-BgZ6dvDk.js +659 -0
- package/dist/cjs/{debounce-7fa6354d.js → debounce-padcVDRF.js} +4 -6
- package/dist/cjs/{file-0b9afa34.js → file-BfaJmhHW.js} +1 -1
- package/dist/cjs/{floating-ui.dom.esm-9d940028.js → floating-ui.dom-D8vZii24.js} +3 -310
- package/dist/cjs/hark-qJk9qiLr.js +322 -0
- package/dist/cjs/{index-4366eb3b.js → index-BOQMsbCN.js} +2 -2
- package/dist/cjs/{index-2e5758b6.js → index-Bi2L8zQ7.js} +1202 -555
- package/dist/cjs/{index-6f8c1928.js → index-Ck9E7Wf2.js} +22 -31
- package/dist/cjs/index.cjs.js +14 -13
- package/dist/cjs/livestream-B1z1fq_f.js +78 -0
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/{merge-79537b1d.js → merge-CSoi4R44.js} +136 -17
- package/dist/cjs/{notification-8f4db150.js → notification-BM6CUHyL.js} +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +7 -7
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +15 -14
- package/dist/cjs/rtk-ai_3.cjs.entry.js +19 -17
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +12 -10
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +13 -10
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +26 -23
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +120 -123
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +33 -27
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +38 -41
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +11 -11
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +20 -15
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +11 -9
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +9 -9
- package/dist/cjs/rtk-chat-message.cjs.entry.js +8 -8
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +16 -12
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +8 -8
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +9 -9
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-clock.cjs.entry.js +11 -10
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +5 -8
- package/dist/cjs/rtk-controlbar.cjs.entry.js +9 -9
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +42 -48
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +5 -8
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +9 -10
- package/dist/cjs/rtk-dialog.cjs.entry.js +5 -8
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +11 -9
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +8 -8
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +11 -14
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +6 -9
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +17 -15
- package/dist/cjs/rtk-grid.cjs.entry.js +28 -19
- package/dist/cjs/rtk-header.cjs.entry.js +9 -9
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +14 -10
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +7 -10
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/rtk-leave-button.cjs.entry.js +5 -8
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +41 -52
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +10 -10
- package/dist/cjs/rtk-logo.cjs.entry.js +14 -10
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +5 -8
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +12 -10
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +16 -13
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -8
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +11 -9
- package/dist/cjs/rtk-name-tag.cjs.entry.js +9 -10
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +11 -9
- package/dist/cjs/rtk-notification.cjs.entry.js +13 -12
- package/dist/cjs/rtk-notifications.cjs.entry.js +22 -16
- package/dist/cjs/rtk-participant-count.cjs.entry.js +11 -11
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +14 -10
- package/dist/cjs/rtk-participant_2.cjs.entry.js +29 -28
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +11 -11
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +33 -24
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-participants.cjs.entry.js +15 -11
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +11 -9
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +11 -13
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-poll_2.cjs.entry.js +8 -12
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +8 -9
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +9 -10
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +10 -12
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +5 -8
- package/dist/cjs/rtk-settings.cjs.entry.js +8 -9
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +11 -12
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +11 -9
- package/dist/cjs/rtk-sidebar.cjs.entry.js +17 -13
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +11 -12
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +7 -10
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +8 -9
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +11 -9
- package/dist/cjs/rtk-stage.cjs.entry.js +5 -8
- package/dist/cjs/rtk-transcript.cjs.entry.js +8 -9
- package/dist/cjs/rtk-transcripts.cjs.entry.js +14 -10
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +28 -18
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +8 -8
- package/dist/cjs/{sidebar-3d8abb05.js → sidebar-CaEYxWaS.js} +2 -2
- package/dist/cjs/{ui-store-b1ac9e83.js → ui-store-CTof0Q5V.js} +100 -813
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/rtk-ai/rtk-ai.js +16 -10
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +18 -11
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +9 -5
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +16 -10
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +18 -11
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +15 -11
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +15 -10
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +18 -13
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +7 -4
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +19 -12
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +12 -7
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +11 -6
- package/dist/collection/components/rtk-button/rtk-button.js +9 -8
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +12 -8
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +16 -10
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +20 -12
- package/dist/collection/components/rtk-chat/rtk-chat.js +19 -11
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -11
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +16 -14
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +34 -26
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +20 -14
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +24 -14
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +11 -8
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +20 -12
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +10 -8
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +18 -11
- package/dist/collection/components/rtk-clock/rtk-clock.js +8 -5
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +11 -6
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +17 -11
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +16 -14
- package/dist/collection/components/rtk-counter/rtk-counter.js +12 -9
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +15 -9
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +13 -8
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +13 -8
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +13 -8
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +18 -11
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +13 -8
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +18 -12
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +17 -10
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +5 -3
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +6 -4
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +7 -5
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +15 -9
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +5 -3
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +9 -6
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +8 -7
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +13 -10
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +16 -10
- package/dist/collection/components/rtk-grid/rtk-grid.js +22 -15
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +14 -9
- package/dist/collection/components/rtk-header/rtk-header.js +17 -11
- package/dist/collection/components/rtk-icon/rtk-icon.js +6 -5
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +11 -6
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +11 -7
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +7 -5
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +11 -7
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +17 -10
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +14 -9
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +11 -6
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +11 -7
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +11 -7
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +16 -10
- package/dist/collection/components/rtk-logo/rtk-logo.js +9 -6
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +4 -4
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +27 -19
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +7 -4
- package/dist/collection/components/rtk-menu/rtk-menu.js +13 -9
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +10 -7
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +6 -4
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +5 -4
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +19 -17
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +16 -10
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +12 -8
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +31 -19
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +13 -8
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +16 -10
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +11 -6
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +16 -11
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +11 -7
- package/dist/collection/components/rtk-notification/rtk-notification.js +13 -9
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +15 -9
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +11 -6
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +14 -11
- package/dist/collection/components/rtk-participant/rtk-participant.js +15 -9
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +11 -7
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +19 -13
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +26 -17
- package/dist/collection/components/rtk-participants/rtk-participants.js +18 -11
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +7 -4
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +20 -13
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +16 -10
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +18 -11
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +18 -12
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +16 -10
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +11 -6
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +9 -5
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +20 -12
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +10 -6
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +15 -9
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +18 -11
- package/dist/collection/components/rtk-poll/rtk-poll.js +12 -8
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +7 -4
- package/dist/collection/components/rtk-polls/rtk-polls.js +13 -8
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +18 -11
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +11 -7
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +15 -10
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +18 -11
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +21 -14
- package/dist/collection/components/rtk-settings/rtk-settings.js +15 -9
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +15 -9
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +16 -10
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +15 -9
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +17 -10
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +23 -14
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +9 -8
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +19 -12
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +14 -9
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +5 -3
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +27 -17
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +11 -7
- package/dist/collection/components/rtk-stage/rtk-stage.js +7 -4
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +18 -11
- package/dist/collection/components/rtk-switch/rtk-switch.js +8 -6
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +18 -11
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +13 -11
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +9 -6
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +3 -3
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +13 -11
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +5 -3
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +9 -5
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +18 -11
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +8 -5
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +6 -4
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +9 -5
- package/dist/collection/utils/livestream.js +1 -1
- package/dist/collection/utils/sync-with-store/ui-store.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -247
- package/dist/components/p-1sLF61J1.js +1 -0
- package/dist/components/p-7zlNLqpS.js +1 -0
- package/dist/components/p-B-k80wnP.js +1 -0
- package/dist/components/p-B1SWgSTZ.js +1 -0
- package/dist/components/p-B1wrArJr.js +1 -0
- package/dist/components/p-B4TnXODX.js +1 -0
- package/dist/components/p-B5-LNbkp.js +1 -0
- package/dist/components/p-B9MPybze.js +1 -0
- package/dist/components/p-BA_UY9k8.js +1 -0
- package/dist/components/p-BBHQOrFK.js +2 -0
- package/dist/{realtimekit-ui/p-598b792e.js → components/p-BCuMxcZN.js} +1 -1
- package/dist/components/p-BEOq_QN5.js +1 -0
- package/dist/components/p-BFTU3MAI.js +1 -0
- package/dist/components/p-BJKSFJeB.js +1 -0
- package/dist/components/p-BOYkqKBb.js +1 -0
- package/dist/components/p-BRbb3tLk.js +1 -0
- package/dist/components/p-BWNToYSb.js +1 -0
- package/dist/components/p-BYIBbfJ8.js +1 -0
- package/dist/components/p-BbJzI1u1.js +1 -0
- package/dist/components/p-BcCYogfR.js +1 -0
- package/dist/components/p-Bf4LuZWa.js +1 -0
- package/dist/{realtimekit-ui/p-1e62d63b.js → components/p-Bj1kNPpe.js} +1 -1
- package/dist/components/p-BjF9F_tX.js +1 -0
- package/dist/components/p-BoGbJ5PX.js +1 -0
- package/dist/components/p-BuZhKlht.js +1 -0
- package/dist/{realtimekit-ui/p-fa9759f4.js → components/p-Bx38FZhs.js} +1 -1
- package/dist/components/p-C-OVY3ug.js +1 -0
- package/dist/components/p-C0H4DNJM.js +1 -0
- package/dist/components/p-C0vp-Q7v.js +1 -0
- package/dist/components/p-C3Z3GLQh.js +1 -0
- package/dist/components/p-C4IJ0f9O.js +1 -0
- package/dist/components/p-C9EBo56b.js +1 -0
- package/dist/components/p-CABfszIM.js +1 -0
- package/dist/components/p-CB5hzEOM.js +1 -0
- package/dist/components/p-CBJjerDR.js +1 -0
- package/dist/components/p-CBLUz_2s.js +1 -0
- package/dist/components/p-CJsXePY3.js +1 -0
- package/dist/components/p-CKX6X8es.js +1 -0
- package/dist/components/p-COEreDeR.js +1 -0
- package/dist/components/p-COZSdc5O.js +1 -0
- package/dist/components/p-CQAMoQlr.js +1 -0
- package/dist/components/p-Cd-WpR0J.js +1 -0
- package/dist/components/p-CdV0xzjB.js +1 -0
- package/dist/components/p-Ce-9kgl0.js +1 -0
- package/dist/components/p-ChuKD7QS.js +1 -0
- package/dist/components/p-Cj44pA_c.js +1 -0
- package/dist/components/p-Cmu_4ZYL.js +1 -0
- package/dist/components/p-CnJQLwM-.js +1 -0
- package/dist/components/p-CpOL3OJd.js +1 -0
- package/dist/components/p-CphAED3J.js +1 -0
- package/dist/components/p-CqEcYX16.js +1 -0
- package/dist/components/p-CrExxJHe.js +1 -0
- package/dist/components/p-D0bZYAmS.js +1 -0
- package/dist/components/p-D1zAGrQ9.js +1 -0
- package/dist/components/p-D6vw6bT2.js +1 -0
- package/dist/{realtimekit-ui/p-6befaf17.js → components/p-D9HGXWKc.js} +1 -1
- package/dist/components/p-DBjcFAtV.js +1 -0
- package/dist/components/p-DCEjf6bL.js +1 -0
- package/dist/components/p-DD3_OTZn.js +1 -0
- package/dist/{realtimekit-ui/p-40be18ee.js → components/p-DDaHXyCC.js} +1 -1
- package/dist/components/p-DEOaS443.js +1 -0
- package/dist/components/p-DHSRRtn3.js +1 -0
- package/dist/components/p-DKjr_UXt.js +1 -0
- package/dist/components/p-DLocSBO3.js +1 -0
- package/dist/components/p-DNkzP2hS.js +1 -0
- package/dist/components/p-DP4RUNa1.js +1 -0
- package/dist/components/p-DU5mNJqK.js +1 -0
- package/dist/components/p-DY8ll5IU.js +1 -0
- package/dist/components/p-DZC8m5f_.js +1 -0
- package/dist/components/p-Daj_55_i.js +1 -0
- package/dist/components/p-DbHOlaHU.js +1 -0
- package/dist/components/p-De8YQHVd.js +1 -0
- package/dist/components/p-Deo_3EhX.js +1 -0
- package/dist/components/p-Df2S0-LE.js +1 -0
- package/dist/components/p-DfWuSKCq.js +1 -0
- package/dist/components/p-Dguuxuf6.js +1 -0
- package/dist/components/p-Dkd2PDJ-.js +1 -0
- package/dist/components/p-DlKMnwxL.js +1 -0
- package/dist/components/p-DmVA5ArE.js +1 -0
- package/dist/components/p-DnQYtb0h.js +1 -0
- package/dist/components/p-DuOnRaMu.js +1 -0
- package/dist/components/p-DxDYE5-a.js +1 -0
- package/dist/components/p-EuNHmu13.js +1 -0
- package/dist/components/p-FVFlyS1y.js +1 -0
- package/dist/components/p-FdeAvICb.js +1 -0
- package/dist/components/p-J1kxEVHe.js +1 -0
- package/dist/components/p-JyC3dswA.js +1 -0
- package/dist/components/p-KpmupjxR.js +1 -0
- package/dist/components/p-L9yK33Cu.js +1 -0
- package/dist/components/p-PXVZ-Szx.js +1 -0
- package/dist/components/p-ViKGg-Ct.js +1 -0
- package/dist/components/p-aS2wpIc0.js +1 -0
- package/dist/components/p-ak2clYhw.js +1 -0
- package/dist/components/p-e-OVL-Mg.js +1 -0
- package/dist/components/p-j2J2Tn1F.js +1 -0
- package/dist/components/p-oXrlIvqH.js +1 -0
- package/dist/components/p-pb5wDMuJ.js +1 -0
- package/dist/components/p-s-jAl7lc.js +1 -0
- package/dist/components/p-sSs7a3Ms.js +1 -0
- package/dist/components/p-t72veIFj.js +1 -0
- package/dist/components/p-uOh9MOi7.js +1 -0
- package/dist/components/p-wemYeTS7.js +1 -0
- package/dist/components/p-wl6GEzgG.js +1 -0
- package/dist/components/p-zBoy9v8V.js +1 -0
- package/dist/components/rtk-ai-toggle.js +1 -122
- package/dist/components/rtk-ai-transcriptions.js +1 -6
- package/dist/components/rtk-ai.js +1 -6
- package/dist/components/rtk-audio-grid.js +1 -145
- package/dist/components/rtk-audio-tile.js +1 -184
- package/dist/components/rtk-audio-visualizer.js +1 -6
- package/dist/components/rtk-avatar.js +1 -6
- package/dist/components/rtk-breakout-room-manager.js +1 -6
- package/dist/components/rtk-breakout-room-participants.js +1 -6
- package/dist/components/rtk-breakout-rooms-manager.js +1 -6
- package/dist/components/rtk-breakout-rooms-toggle.js +1 -128
- package/dist/components/rtk-broadcast-message-modal.js +1 -6
- package/dist/components/rtk-button.js +1 -6
- package/dist/components/rtk-camera-selector.js +1 -6
- package/dist/components/rtk-camera-toggle.js +1 -236
- package/dist/components/rtk-caption-toggle.js +1 -131
- package/dist/components/rtk-chat-composer-ui.js +1 -363
- package/dist/components/rtk-chat-composer-view.js +1 -6
- package/dist/components/rtk-chat-header.js +1 -6
- package/dist/components/rtk-chat-message.js +1 -6
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -6
- package/dist/components/rtk-chat-messages-ui.js +1 -313
- package/dist/components/rtk-chat-search-results.js +1 -147
- package/dist/components/rtk-chat-selector-ui.js +1 -108
- package/dist/components/rtk-chat-selector.js +1 -6
- package/dist/components/rtk-chat-toggle.js +1 -181
- package/dist/components/rtk-chat.js +1 -6
- package/dist/components/rtk-clock.js +1 -128
- package/dist/components/rtk-confirmation-modal.js +1 -6
- package/dist/components/rtk-controlbar-button.js +1 -6
- package/dist/components/rtk-controlbar.js +1 -91
- package/dist/components/rtk-counter.js +1 -6
- package/dist/components/rtk-debugger-audio.js +1 -6
- package/dist/components/rtk-debugger-screenshare.js +1 -6
- package/dist/components/rtk-debugger-system.js +1 -6
- package/dist/components/rtk-debugger-toggle.js +1 -98
- package/dist/components/rtk-debugger-video.js +1 -6
- package/dist/components/rtk-debugger.js +1 -6
- package/dist/components/rtk-dialog-manager.js +1 -310
- package/dist/components/rtk-dialog.js +1 -6
- package/dist/components/rtk-draft-attachment-view.js +1 -6
- package/dist/components/rtk-emoji-picker-button.js +1 -6
- package/dist/components/rtk-emoji-picker.js +1 -6
- package/dist/components/rtk-ended-screen.js +1 -150
- package/dist/components/rtk-file-dropzone.js +1 -87
- package/dist/components/rtk-file-message-view.js +1 -6
- package/dist/components/rtk-file-message.js +1 -6
- package/dist/components/rtk-file-picker-button.js +1 -6
- package/dist/components/rtk-fullscreen-toggle.js +1 -6
- package/dist/components/rtk-grid-pagination.js +1 -206
- package/dist/components/rtk-grid.js +1 -468
- package/dist/components/rtk-header.js +1 -91
- package/dist/components/rtk-icon.js +1 -6
- package/dist/components/rtk-idle-screen.js +1 -139
- package/dist/components/rtk-image-message-view.js +1 -6
- package/dist/components/rtk-image-message.js +1 -6
- package/dist/components/rtk-image-viewer.js +1 -91
- package/dist/components/rtk-information-tooltip.js +1 -61
- package/dist/components/rtk-join-stage.js +1 -6
- package/dist/components/rtk-leave-button.js +1 -87
- package/dist/components/rtk-leave-meeting.js +1 -6
- package/dist/components/rtk-livestream-indicator.js +1 -6
- package/dist/components/rtk-livestream-player.js +1 -6
- package/dist/components/rtk-livestream-toggle.js +1 -181
- package/dist/components/rtk-logo.js +1 -6
- package/dist/components/rtk-markdown-view.js +1 -6
- package/dist/components/rtk-meeting-title.js +1 -74
- package/dist/components/rtk-meeting.js +1 -533
- package/dist/components/rtk-menu-item.js +1 -6
- package/dist/components/rtk-menu-list.js +1 -6
- package/dist/components/rtk-menu.js +1 -6
- package/dist/components/rtk-message-list-view.js +1 -324
- package/dist/components/rtk-message-view.js +1 -6
- package/dist/components/rtk-mic-toggle.js +1 -234
- package/dist/components/rtk-microphone-selector.js +1 -6
- package/dist/components/rtk-mixed-grid.js +1 -300
- package/dist/components/rtk-more-toggle.js +1 -112
- package/dist/components/rtk-mute-all-button.js +1 -127
- package/dist/components/rtk-mute-all-confirmation.js +1 -6
- package/dist/components/rtk-name-tag.js +1 -6
- package/dist/components/rtk-network-indicator.js +1 -117
- package/dist/components/rtk-notification.js +1 -6
- package/dist/components/rtk-notifications.js +1 -637
- package/dist/components/rtk-overlay-modal.js +1 -6
- package/dist/components/rtk-paginated-list.js +1 -6
- package/dist/components/rtk-participant-count.js +1 -118
- package/dist/components/rtk-participant-setup.js +1 -149
- package/dist/components/rtk-participant-tile.js +1 -6
- package/dist/components/rtk-participant.js +1 -6
- package/dist/components/rtk-participants-audio.js +1 -249
- package/dist/components/rtk-participants-stage-list.js +1 -6
- package/dist/components/rtk-participants-stage-queue.js +1 -6
- package/dist/components/rtk-participants-toggle.js +1 -195
- package/dist/components/rtk-participants-viewer-list.js +1 -6
- package/dist/components/rtk-participants-waiting-list.js +1 -6
- package/dist/components/rtk-participants.js +1 -306
- package/dist/components/rtk-permissions-message.js +1 -6
- package/dist/components/rtk-pinned-message-selector.js +1 -6
- package/dist/components/rtk-pip-toggle.js +1 -135
- package/dist/components/rtk-plugin-main.js +1 -6
- package/dist/components/rtk-plugins-toggle.js +1 -148
- package/dist/components/rtk-plugins.js +1 -6
- package/dist/components/rtk-poll-form.js +1 -6
- package/dist/components/rtk-poll.js +1 -6
- package/dist/components/rtk-polls-toggle.js +1 -160
- package/dist/components/rtk-polls.js +1 -6
- package/dist/components/rtk-recording-indicator.js +1 -96
- package/dist/components/rtk-recording-toggle.js +1 -203
- package/dist/components/rtk-screen-share-toggle.js +1 -317
- package/dist/components/rtk-screenshare-view.js +1 -194
- package/dist/components/rtk-settings-audio.js +1 -6
- package/dist/components/rtk-settings-toggle.js +1 -93
- package/dist/components/rtk-settings-video.js +1 -6
- package/dist/components/rtk-settings.js +1 -208
- package/dist/components/rtk-setup-screen.js +1 -215
- package/dist/components/rtk-sidebar-ui.js +1 -6
- package/dist/components/rtk-sidebar.js +1 -253
- package/dist/components/rtk-simple-grid.js +1 -149
- package/dist/components/rtk-speaker-selector.js +1 -6
- package/dist/components/rtk-spinner.js +1 -6
- package/dist/components/rtk-spotlight-grid.js +1 -135
- package/dist/components/rtk-spotlight-indicator.js +1 -6
- package/dist/components/rtk-stage-toggle.js +1 -195
- package/dist/components/rtk-stage.js +1 -61
- package/dist/components/rtk-switch.js +1 -6
- package/dist/components/rtk-tab-bar.js +1 -6
- package/dist/components/rtk-text-composer-view.js +1 -6
- package/dist/components/rtk-text-message-view.js +1 -6
- package/dist/components/rtk-text-message.js +1 -6
- package/dist/components/rtk-tooltip.js +1 -6
- package/dist/components/rtk-transcript.js +1 -6
- package/dist/components/rtk-transcripts.js +1 -199
- package/dist/components/rtk-ui-provider.js +1 -281
- package/dist/components/rtk-viewer-count.js +1 -6
- package/dist/components/rtk-virtualized-participant-list.js +1 -6
- package/dist/components/rtk-waiting-screen.js +1 -77
- package/dist/docs/docs-components.d.ts +37 -0
- package/dist/docs/docs-components.json +5693 -3069
- package/dist/docs/docs-vscode.json +78 -78
- package/dist/esm/ChatHead-BV_pLIJ6.js +9 -0
- package/dist/{components/p-1a950769.js → esm/TextMessage-DRvjfMBy.js} +9 -11
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/breakout-rooms-Daj_55_i.js +64 -0
- package/dist/esm/breakout-rooms-manager-B1Qky9zO.js +301 -0
- package/dist/esm/{chat-1107a64f.js → chat-Zou036qQ.js} +1 -1
- package/dist/{components/p-9f0c9162.js → esm/config-BYcrCEso.js} +5 -4
- package/dist/esm/debounce-BLQbB67V.js +657 -0
- package/dist/{components/p-1dca17d1.js → esm/debounce-BYqYBLuN.js} +4 -6
- package/dist/{components/p-47314bc7.js → esm/file-6Fkktc2w.js} +1 -1
- package/dist/esm/{floating-ui.dom.esm-78a1e61c.js → floating-ui.dom-B1SWgSTZ.js} +3 -310
- package/dist/esm/hark-Dwnntwzh.js +320 -0
- package/dist/{components/p-bd10fae6.js → esm/index-7w76SzJW.js} +2 -2
- package/dist/{components/p-88bd1053.js → esm/index-BUsisVB6.js} +22 -31
- package/dist/esm/{index-55463a54.js → index-gJCRRBX0.js} +1198 -549
- package/dist/esm/index.js +13 -10
- package/dist/esm/livestream-C0vp-Q7v.js +73 -0
- package/dist/esm/loader.js +3614 -2781
- package/dist/{components/p-556de366.js → esm/merge-CiWMx7_3.js} +133 -15
- package/dist/{components/p-598b792e.js → esm/notification-DcR6dHfn.js} +1 -1
- package/dist/esm/realtimekit-ui.js +6 -5
- package/dist/esm/rtk-ai-toggle.entry.js +8 -7
- package/dist/esm/rtk-ai-transcriptions.entry.js +15 -12
- package/dist/esm/rtk-ai_3.entry.js +19 -15
- package/dist/esm/rtk-audio-grid.entry.js +12 -8
- package/dist/esm/rtk-audio-tile.entry.js +13 -8
- package/dist/esm/rtk-audio-visualizer_4.entry.js +26 -21
- package/dist/esm/rtk-avatar_26.entry.js +116 -117
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +25 -17
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +33 -34
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +9 -7
- package/dist/esm/rtk-camera-selector_2.entry.js +20 -13
- package/dist/esm/rtk-camera-toggle.entry.js +8 -7
- package/dist/esm/rtk-caption-toggle.entry.js +11 -7
- package/dist/esm/rtk-chat-composer-ui.entry.js +9 -7
- package/dist/esm/rtk-chat-message.entry.js +8 -6
- package/dist/esm/rtk-chat-messages-ui.entry.js +16 -10
- package/dist/esm/rtk-chat-search-results.entry.js +8 -6
- package/dist/esm/rtk-chat-selector-ui.entry.js +9 -7
- package/dist/esm/rtk-chat-toggle.entry.js +16 -10
- package/dist/esm/rtk-clock.entry.js +11 -8
- package/dist/esm/rtk-controlbar-button.entry.js +5 -6
- package/dist/esm/rtk-controlbar.entry.js +9 -7
- package/dist/esm/rtk-debugger-audio_4.entry.js +42 -46
- package/dist/esm/rtk-debugger-toggle.entry.js +5 -6
- package/dist/esm/rtk-dialog-manager.entry.js +9 -8
- package/dist/esm/rtk-dialog.entry.js +5 -6
- package/dist/esm/rtk-ended-screen.entry.js +11 -7
- package/dist/esm/rtk-file-dropzone.entry.js +8 -6
- package/dist/esm/rtk-file-message_3.entry.js +11 -12
- package/dist/esm/rtk-fullscreen-toggle.entry.js +6 -7
- package/dist/esm/rtk-grid-pagination.entry.js +17 -13
- package/dist/esm/rtk-grid.entry.js +27 -16
- package/dist/esm/rtk-header.entry.js +9 -7
- package/dist/esm/rtk-idle-screen.entry.js +14 -8
- package/dist/esm/rtk-image-viewer.entry.js +7 -8
- package/dist/esm/rtk-information-tooltip.entry.js +8 -6
- package/dist/esm/rtk-leave-button.entry.js +5 -6
- package/dist/esm/rtk-livestream-indicator_3.entry.js +26 -35
- package/dist/esm/rtk-livestream-toggle.entry.js +9 -7
- package/dist/esm/rtk-logo.entry.js +14 -8
- package/dist/esm/rtk-meeting-title.entry.js +5 -6
- package/dist/esm/rtk-message-list-view.entry.js +12 -8
- package/dist/esm/rtk-mic-toggle.entry.js +8 -7
- package/dist/esm/rtk-mixed-grid.entry.js +16 -11
- package/dist/esm/rtk-more-toggle.entry.js +5 -6
- package/dist/esm/rtk-mute-all-button.entry.js +11 -7
- package/dist/esm/rtk-name-tag.entry.js +9 -8
- package/dist/esm/rtk-network-indicator.entry.js +11 -7
- package/dist/esm/rtk-notification.entry.js +13 -10
- package/dist/esm/rtk-notifications.entry.js +21 -13
- package/dist/esm/rtk-participant-count.entry.js +9 -7
- package/dist/esm/rtk-participant-setup.entry.js +14 -8
- package/dist/esm/rtk-participant_2.entry.js +24 -21
- package/dist/esm/rtk-participants-audio.entry.js +10 -8
- package/dist/esm/rtk-participants-stage-list_4.entry.js +33 -22
- package/dist/esm/rtk-participants-toggle.entry.js +16 -10
- package/dist/esm/rtk-participants.entry.js +15 -9
- package/dist/esm/rtk-pip-toggle.entry.js +11 -7
- package/dist/esm/rtk-plugin-main_2.entry.js +11 -11
- package/dist/esm/rtk-plugins-toggle.entry.js +16 -10
- package/dist/esm/rtk-poll_2.entry.js +8 -10
- package/dist/esm/rtk-polls-toggle.entry.js +16 -10
- package/dist/esm/rtk-recording-indicator.entry.js +8 -7
- package/dist/esm/rtk-recording-toggle.entry.js +8 -7
- package/dist/esm/rtk-screen-share-toggle.entry.js +8 -7
- package/dist/esm/rtk-screenshare-view.entry.js +9 -8
- package/dist/esm/rtk-settings-audio_2.entry.js +10 -10
- package/dist/esm/rtk-settings-toggle.entry.js +5 -6
- package/dist/esm/rtk-settings.entry.js +8 -7
- package/dist/esm/rtk-setup-screen.entry.js +11 -10
- package/dist/esm/rtk-sidebar-ui.entry.js +11 -7
- package/dist/esm/rtk-sidebar.entry.js +17 -11
- package/dist/esm/rtk-simple-grid.entry.js +11 -10
- package/dist/esm/rtk-spotlight-grid.entry.js +7 -8
- package/dist/esm/rtk-spotlight-indicator.entry.js +8 -7
- package/dist/esm/rtk-stage-toggle.entry.js +11 -7
- package/dist/esm/rtk-stage.entry.js +5 -6
- package/dist/esm/rtk-transcript.entry.js +8 -7
- package/dist/esm/rtk-transcripts.entry.js +14 -8
- package/dist/esm/rtk-ui-provider.entry.js +28 -16
- package/dist/esm/rtk-waiting-screen.entry.js +8 -6
- package/dist/{components/p-a3fc952e.js → esm/sidebar-B3trLKC3.js} +1 -1
- package/dist/{components/p-d5a12339.js → esm/ui-store-BtrgoOOT.js} +258 -762
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/p-04237239.entry.js +1 -0
- package/dist/realtimekit-ui/p-070294a1.entry.js +1 -0
- package/dist/realtimekit-ui/p-088325e7.entry.js +1 -0
- package/dist/realtimekit-ui/p-0d5719ea.entry.js +1 -0
- package/dist/realtimekit-ui/p-0fe1ced3.entry.js +1 -0
- package/dist/realtimekit-ui/p-105e4115.entry.js +1 -0
- package/dist/realtimekit-ui/{p-30fa04e9.entry.js → p-117f34c2.entry.js} +1 -1
- package/dist/realtimekit-ui/p-12fdd525.entry.js +1 -0
- package/dist/realtimekit-ui/{p-069cc080.entry.js → p-149c0b9c.entry.js} +1 -1
- package/dist/realtimekit-ui/p-15d96f62.entry.js +1 -0
- package/dist/realtimekit-ui/p-16fe4fca.entry.js +1 -0
- package/dist/realtimekit-ui/p-17690ef8.entry.js +1 -0
- package/dist/realtimekit-ui/p-1ae8c9ea.entry.js +1 -0
- package/dist/realtimekit-ui/p-1f114cc0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d93b1e9c.entry.js → p-213b9942.entry.js} +1 -1
- package/dist/realtimekit-ui/p-243e3c22.entry.js +1 -0
- package/dist/realtimekit-ui/p-25374ae7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-71a44776.entry.js → p-26ba0489.entry.js} +1 -1
- package/dist/realtimekit-ui/p-27dcaef7.entry.js +1 -0
- package/dist/realtimekit-ui/p-2906e52d.entry.js +1 -0
- package/dist/realtimekit-ui/{p-58b2f1a1.entry.js → p-2baa2443.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2bd8f726.entry.js +1 -0
- package/dist/realtimekit-ui/p-2c5a9a4d.entry.js +1 -0
- package/dist/realtimekit-ui/p-2f438543.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b5f0c31d.entry.js → p-34ebceb7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-3df3b56b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-03db9946.entry.js → p-3f297e22.entry.js} +1 -1
- package/dist/realtimekit-ui/p-405addc8.entry.js +1 -0
- package/dist/realtimekit-ui/p-450803e1.entry.js +1 -0
- package/dist/realtimekit-ui/p-49f22238.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4b9450d3.entry.js → p-49feda1f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4c1b7ee2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-234a709e.entry.js → p-4f264d60.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64b59d46.entry.js → p-560dcff9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-56261662.entry.js +1 -0
- package/dist/realtimekit-ui/p-5a1918a1.entry.js +1 -0
- package/dist/realtimekit-ui/p-5bd05c88.entry.js +1 -0
- package/dist/realtimekit-ui/p-5c5ca185.entry.js +1 -0
- package/dist/realtimekit-ui/p-6092b383.entry.js +1 -0
- package/dist/realtimekit-ui/p-650339c3.entry.js +1 -0
- package/dist/realtimekit-ui/p-65c856c3.entry.js +1 -0
- package/dist/realtimekit-ui/p-69ddb3a9.entry.js +1 -0
- package/dist/realtimekit-ui/p-6bc7af7a.entry.js +1 -0
- package/dist/realtimekit-ui/p-73bd1b57.entry.js +1 -0
- package/dist/realtimekit-ui/p-768c3c20.entry.js +1 -0
- package/dist/realtimekit-ui/p-779bd93e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-72461b1f.entry.js → p-7d4e36b0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1b26c15d.entry.js → p-7ff08b19.entry.js} +1 -1
- package/dist/realtimekit-ui/p-836455f1.entry.js +1 -0
- package/dist/realtimekit-ui/p-8dcf542b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-91795fd7.entry.js → p-9810aada.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9b089f06.entry.js +1 -0
- package/dist/realtimekit-ui/p-9b93c273.entry.js +1 -0
- package/dist/realtimekit-ui/p-9c5cf5a3.entry.js +1 -0
- package/dist/realtimekit-ui/p-9cb3685c.entry.js +1 -0
- package/dist/realtimekit-ui/p-B1SWgSTZ.js +1 -0
- package/dist/realtimekit-ui/{p-7e3c2d64.js → p-BCaKYPpD.js} +1 -1
- package/dist/realtimekit-ui/p-BCuMxcZN.js +1 -0
- package/dist/realtimekit-ui/p-BFTU3MAI.js +1 -0
- package/dist/realtimekit-ui/p-BIplIdLH.js +1 -0
- package/dist/realtimekit-ui/p-BJvHNbaa.js +1 -0
- package/dist/realtimekit-ui/p-BSWYrdZA.js +1 -0
- package/dist/realtimekit-ui/p-BWNToYSb.js +1 -0
- package/dist/realtimekit-ui/p-Bbls2zyp.js +1 -0
- package/dist/realtimekit-ui/p-C0vp-Q7v.js +1 -0
- package/dist/realtimekit-ui/p-C5Ah4uY5.js +1 -0
- package/dist/realtimekit-ui/p-CAqYddlg.js +1 -0
- package/dist/realtimekit-ui/{p-eccb6d78.js → p-CTFO-5XH.js} +1 -1
- package/dist/realtimekit-ui/p-CmmyVCoN.js +1 -0
- package/dist/realtimekit-ui/p-CqWk07gT.js +1 -0
- package/dist/realtimekit-ui/p-D9HGXWKc.js +1 -0
- package/dist/realtimekit-ui/p-Daj_55_i.js +1 -0
- package/dist/realtimekit-ui/p-Dg4b2aZr.js +1 -0
- package/dist/realtimekit-ui/p-DpAk_WQ6.js +1 -0
- package/dist/realtimekit-ui/p-DxDYE5-a.js +1 -0
- package/dist/realtimekit-ui/p-FdeAvICb.js +1 -0
- package/dist/realtimekit-ui/p-GSFejkz7.js +1 -0
- package/dist/realtimekit-ui/{p-3306b122.entry.js → p-a060fa07.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e0426f17.entry.js → p-a8b77530.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ae94a77b.entry.js +1 -0
- package/dist/realtimekit-ui/p-b77aab62.entry.js +1 -0
- package/dist/realtimekit-ui/p-b81bfd1b.entry.js +1 -0
- package/dist/realtimekit-ui/p-bb7b542e.entry.js +1 -0
- package/dist/realtimekit-ui/p-c0fb33e4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-88a01a0c.entry.js → p-c25c6602.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d0baf267.entry.js +1 -0
- package/dist/realtimekit-ui/p-d39bd2e9.entry.js +1 -0
- package/dist/realtimekit-ui/p-d5ccf7d6.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b89873a4.entry.js → p-d75ea8a3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-db957a5c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d4a2594a.entry.js → p-ddd3808d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e0837ae7.entry.js +1 -0
- package/dist/realtimekit-ui/p-e12de42e.entry.js +1 -0
- package/dist/realtimekit-ui/p-e2f9a4fc.entry.js +1 -0
- package/dist/realtimekit-ui/{p-20390946.entry.js → p-e5293ed6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e87aa0f9.entry.js +1 -0
- package/dist/realtimekit-ui/p-e8823daa.entry.js +1 -0
- package/dist/realtimekit-ui/p-f101d6f9.entry.js +1 -0
- package/dist/realtimekit-ui/p-f4c228c8.entry.js +1 -0
- package/dist/realtimekit-ui/p-f5688e34.entry.js +1 -0
- package/dist/realtimekit-ui/p-fb973221.entry.js +1 -0
- package/dist/realtimekit-ui/p-fcde019e.entry.js +1 -0
- package/dist/realtimekit-ui/p-fd29249a.entry.js +1 -0
- package/dist/realtimekit-ui/p-gJCRRBX0.js +2 -0
- package/dist/realtimekit-ui/p-jvwnrxra.js +1 -0
- package/dist/realtimekit-ui/p-t72veIFj.js +1 -0
- package/dist/realtimekit-ui/p-uIA60Puf.js +1 -0
- package/dist/realtimekit-ui/p-vBfDtD_u.js +1 -0
- package/dist/realtimekit-ui/p-wWDkfcFk.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -1
- package/dist/types/components.d.ts +1752 -255
- package/dist/types/stencil-public-runtime.d.ts +193 -12
- package/dist/types/utils/livestream.d.ts +60 -0
- package/dist/types/utils/sync-with-store/ui-store.d.ts +1 -1
- package/package.json +2 -3
- package/dist/cjs/ChatHead-777e6a2d.js +0 -13
- package/dist/cjs/debounce-6080cc73.js +0 -544
- package/dist/cjs/hark-c97d0a59.js +0 -301
- package/dist/components/p-00568bea.js +0 -159
- package/dist/components/p-026049ee.js +0 -81
- package/dist/components/p-03e354cd.js +0 -82
- package/dist/components/p-04ac37d4.js +0 -69
- package/dist/components/p-0529c72c.js +0 -218
- package/dist/components/p-084f7d6c.js +0 -95
- package/dist/components/p-08e39399.js +0 -199
- package/dist/components/p-0db812c2.js +0 -189
- package/dist/components/p-0e02697c.js +0 -85
- package/dist/components/p-1a7dd46a.js +0 -390
- package/dist/components/p-1cb276df.js +0 -104
- package/dist/components/p-240d48d1.js +0 -96
- package/dist/components/p-278a613b.js +0 -115
- package/dist/components/p-29e60132.js +0 -437
- package/dist/components/p-2f2b07a1.js +0 -168
- package/dist/components/p-303a7f1f.js +0 -122
- package/dist/components/p-32b95100.js +0 -128
- package/dist/components/p-32f14b1a.js +0 -260
- package/dist/components/p-36ad7fe2.js +0 -98
- package/dist/components/p-38d22d57.js +0 -11
- package/dist/components/p-3ae130f7.js +0 -178
- package/dist/components/p-3e0452c4.js +0 -48
- package/dist/components/p-3eedb9db.js +0 -68
- package/dist/components/p-3f882e7c.js +0 -299
- package/dist/components/p-42c2e598.js +0 -103
- package/dist/components/p-4351785c.js +0 -103
- package/dist/components/p-467abb0c.js +0 -159
- package/dist/components/p-48b6fb95.js +0 -327
- package/dist/components/p-4e02ee0f.js +0 -131
- package/dist/components/p-51b6f520.js +0 -43
- package/dist/components/p-549ab58f.js +0 -108
- package/dist/components/p-5654365f.js +0 -94
- package/dist/components/p-592cd396.js +0 -105
- package/dist/components/p-5995471c.js +0 -125
- package/dist/components/p-5c55e43b.js +0 -115
- package/dist/components/p-5d3174d1.js +0 -127
- package/dist/components/p-632cbbe7.js +0 -164
- package/dist/components/p-695e5dc5.js +0 -223
- package/dist/components/p-6a0a1a25.js +0 -101
- package/dist/components/p-6bd3b29c.js +0 -97
- package/dist/components/p-6c6cefb0.js +0 -224
- package/dist/components/p-70c0c7ce.js +0 -179
- package/dist/components/p-78db5933.js +0 -92
- package/dist/components/p-7d8d9693.js +0 -119
- package/dist/components/p-8133c228.js +0 -79
- package/dist/components/p-82df4307.js +0 -114
- package/dist/components/p-84deab1d.js +0 -126
- package/dist/components/p-85587a5c.js +0 -50
- package/dist/components/p-92ac782c.js +0 -37205
- package/dist/components/p-95721bd2.js +0 -159
- package/dist/components/p-96be6716.js +0 -120
- package/dist/components/p-9c89d7b1.js +0 -131
- package/dist/components/p-9f5d24b0.js +0 -191
- package/dist/components/p-a0a863fa.js +0 -61
- package/dist/components/p-a3c85ced.js +0 -177
- package/dist/components/p-a6cf88b5.js +0 -146
- package/dist/components/p-a83ccdbd.js +0 -40
- package/dist/components/p-a9d577bb.js +0 -271
- package/dist/components/p-ab37c121.js +0 -181
- package/dist/components/p-ae373651.js +0 -4028
- package/dist/components/p-b1a93be0.js +0 -1945
- package/dist/components/p-b1a9a7c4.js +0 -214
- package/dist/components/p-b1aeb013.js +0 -113
- package/dist/components/p-b29d03cf.js +0 -77
- package/dist/components/p-b4068392.js +0 -60
- package/dist/components/p-b75297d7.js +0 -299
- package/dist/components/p-b98fd0eb.js +0 -102
- package/dist/components/p-bece0226.js +0 -141
- package/dist/components/p-bf64e0af.js +0 -76
- package/dist/components/p-c3c8f309.js +0 -127
- package/dist/components/p-c82e13b1.js +0 -92
- package/dist/components/p-c9f704c4.js +0 -349
- package/dist/components/p-cbdd7a99.js +0 -542
- package/dist/components/p-cedfbbd4.js +0 -105
- package/dist/components/p-cf1903b1.js +0 -60
- package/dist/components/p-d411c80b.js +0 -463
- package/dist/components/p-d48b4170.js +0 -159
- package/dist/components/p-d83124b1.js +0 -86
- package/dist/components/p-de0b23a0.js +0 -210
- package/dist/components/p-e0129657.js +0 -201
- package/dist/components/p-e8809896.js +0 -147
- package/dist/components/p-ea359bb7.js +0 -90
- package/dist/components/p-ea4aa3bf.js +0 -86
- package/dist/components/p-ed0fad6d.js +0 -166
- package/dist/components/p-efabd2ce.js +0 -58
- package/dist/components/p-f179a6ff.js +0 -80
- package/dist/components/p-f867ebba.js +0 -122
- package/dist/components/p-f9cbb223.js +0 -127
- package/dist/components/p-f9f08610.js +0 -157
- package/dist/esm/ChatHead-148558a8.js +0 -11
- package/dist/esm/ResizeObserver.es-02979d4e.js +0 -928
- package/dist/esm/TextMessage-0ab2db20.js +0 -67
- package/dist/esm/browser-24d8ab3e.js +0 -3
- package/dist/esm/config-f3f01b9a.js +0 -352
- package/dist/esm/date-b1f78dea.js +0 -32
- package/dist/esm/debounce-0169a54d.js +0 -542
- package/dist/esm/debounce-430cbf00.js +0 -329
- package/dist/esm/file-6114f1a9.js +0 -57
- package/dist/esm/full-screen-d36ffc68.js +0 -50
- package/dist/esm/grid-a3ca5a3e.js +0 -96
- package/dist/esm/hark-6327d91e.js +0 -299
- package/dist/esm/index-3f51790f.js +0 -224
- package/dist/esm/index-b81ca899.js +0 -92
- package/dist/esm/init-error-ff5ead9a.js +0 -26
- package/dist/esm/join-error-e87be64a.js +0 -29
- package/dist/esm/merge-201ecd5c.js +0 -820
- package/dist/esm/notification-1ebf7700.js +0 -37
- package/dist/esm/scroll-2d8e810c.js +0 -13
- package/dist/esm/sidebar-a13dc215.js +0 -49
- package/dist/esm/ui-store-1bc7abc6.js +0 -4033
- package/dist/realtimekit-ui/p-012cd22a.entry.js +0 -1
- package/dist/realtimekit-ui/p-026e8157.entry.js +0 -1
- package/dist/realtimekit-ui/p-083e53cc.entry.js +0 -1
- package/dist/realtimekit-ui/p-0bd95245.entry.js +0 -1
- package/dist/realtimekit-ui/p-1e19ef2c.entry.js +0 -1
- package/dist/realtimekit-ui/p-217dcd9f.entry.js +0 -1
- package/dist/realtimekit-ui/p-26ffb189.entry.js +0 -1
- package/dist/realtimekit-ui/p-3540d2b0.entry.js +0 -1
- package/dist/realtimekit-ui/p-3707f1e0.entry.js +0 -1
- package/dist/realtimekit-ui/p-39c48b22.entry.js +0 -1
- package/dist/realtimekit-ui/p-3f882e7c.js +0 -1
- package/dist/realtimekit-ui/p-41fa7b4f.js +0 -1
- package/dist/realtimekit-ui/p-44fb5d40.entry.js +0 -1
- package/dist/realtimekit-ui/p-4564c9ff.entry.js +0 -1
- package/dist/realtimekit-ui/p-4ec77793.js +0 -1
- package/dist/realtimekit-ui/p-548f72ee.entry.js +0 -1
- package/dist/realtimekit-ui/p-5564adad.entry.js +0 -1
- package/dist/realtimekit-ui/p-5623d82e.entry.js +0 -1
- package/dist/realtimekit-ui/p-5862bcba.entry.js +0 -1
- package/dist/realtimekit-ui/p-62c4d1ba.entry.js +0 -1
- package/dist/realtimekit-ui/p-667c84b1.js +0 -1
- package/dist/realtimekit-ui/p-6b177ee6.entry.js +0 -1
- package/dist/realtimekit-ui/p-6c9a2464.entry.js +0 -1
- package/dist/realtimekit-ui/p-7649168e.entry.js +0 -1
- package/dist/realtimekit-ui/p-76f87172.entry.js +0 -1
- package/dist/realtimekit-ui/p-79060698.entry.js +0 -1
- package/dist/realtimekit-ui/p-7bdd688b.entry.js +0 -1
- package/dist/realtimekit-ui/p-7e4a3510.entry.js +0 -1
- package/dist/realtimekit-ui/p-80be0156.entry.js +0 -1
- package/dist/realtimekit-ui/p-85818728.entry.js +0 -1
- package/dist/realtimekit-ui/p-873a645c.entry.js +0 -1
- package/dist/realtimekit-ui/p-8c971978.entry.js +0 -1
- package/dist/realtimekit-ui/p-8cc4f116.entry.js +0 -1
- package/dist/realtimekit-ui/p-8edfe6fa.entry.js +0 -1
- package/dist/realtimekit-ui/p-8fa0ea33.entry.js +0 -1
- package/dist/realtimekit-ui/p-91c8f9d1.entry.js +0 -1
- package/dist/realtimekit-ui/p-93f88675.entry.js +0 -1
- package/dist/realtimekit-ui/p-9727a165.js +0 -1
- package/dist/realtimekit-ui/p-a0471508.entry.js +0 -1
- package/dist/realtimekit-ui/p-a056fd35.entry.js +0 -1
- package/dist/realtimekit-ui/p-a2693bee.entry.js +0 -1
- package/dist/realtimekit-ui/p-a47c017b.entry.js +0 -1
- package/dist/realtimekit-ui/p-a599f720.js +0 -2
- package/dist/realtimekit-ui/p-a9ab826e.entry.js +0 -1
- package/dist/realtimekit-ui/p-ae0bb894.js +0 -1
- package/dist/realtimekit-ui/p-b1a93be0.js +0 -1
- package/dist/realtimekit-ui/p-b27886ff.entry.js +0 -1
- package/dist/realtimekit-ui/p-b3f1ad3b.entry.js +0 -1
- package/dist/realtimekit-ui/p-b86e3e01.entry.js +0 -1
- package/dist/realtimekit-ui/p-bde05d24.entry.js +0 -1
- package/dist/realtimekit-ui/p-c57e0778.entry.js +0 -1
- package/dist/realtimekit-ui/p-c6a8ef1e.entry.js +0 -1
- package/dist/realtimekit-ui/p-c8bc3bb1.entry.js +0 -1
- package/dist/realtimekit-ui/p-c8f7b427.entry.js +0 -1
- package/dist/realtimekit-ui/p-c9d62ba7.entry.js +0 -1
- package/dist/realtimekit-ui/p-cbdd7a99.js +0 -1
- package/dist/realtimekit-ui/p-d0959773.entry.js +0 -1
- package/dist/realtimekit-ui/p-d59e0ecc.entry.js +0 -1
- package/dist/realtimekit-ui/p-d790f2be.entry.js +0 -1
- package/dist/realtimekit-ui/p-d7fd359f.entry.js +0 -1
- package/dist/realtimekit-ui/p-daf01d45.entry.js +0 -1
- package/dist/realtimekit-ui/p-db2a6aed.entry.js +0 -1
- package/dist/realtimekit-ui/p-de170ad4.entry.js +0 -1
- package/dist/realtimekit-ui/p-de31f5b0.entry.js +0 -1
- package/dist/realtimekit-ui/p-deaae495.entry.js +0 -1
- package/dist/realtimekit-ui/p-e59cc7d0.entry.js +0 -1
- package/dist/realtimekit-ui/p-ea03b1a0.entry.js +0 -1
- package/dist/realtimekit-ui/p-ede50497.entry.js +0 -1
- package/dist/realtimekit-ui/p-f47d4fe8.js +0 -1
- package/dist/realtimekit-ui/p-f52fdfb4.entry.js +0 -1
- package/dist/realtimekit-ui/p-fd80c28e.entry.js +0 -1
- package/dist/realtimekit-ui/p-ff971eea.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{ResizeObserver.es-ba961f16.js → ResizeObserver.es-26EdCpEA.js} +0 -0
- /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
- /package/dist/cjs/{browser-5538db4d.js → browser-qKzDfwbO.js} +0 -0
- /package/dist/cjs/{date-61ffcd0a.js → date-CObAPgSZ.js} +0 -0
- /package/dist/cjs/{full-screen-b02d13dd.js → full-screen-BRlJJI9n.js} +0 -0
- /package/dist/cjs/{grid-edc342a7.js → grid-D_7WOWNI.js} +0 -0
- /package/dist/cjs/{init-error-70ccf3b6.js → init-error-DIWXbjwA.js} +0 -0
- /package/dist/cjs/{join-error-c1eed98e.js → join-error-CZSJQxsP.js} +0 -0
- /package/dist/cjs/{scroll-c6404609.js → scroll-uQ4eWvC-.js} +0 -0
- /package/dist/cjs/{string-9bce3253.js → string-C1A6N-tA.js} +0 -0
- /package/dist/{realtimekit-ui/p-0752f2ba.js → components/p-BIplIdLH.js} +0 -0
- /package/dist/{realtimekit-ui/p-05186172.js → components/p-CAqYddlg.js} +0 -0
- /package/dist/{realtimekit-ui/p-b13ddb7d.js → components/p-CmmyVCoN.js} +0 -0
- /package/dist/{realtimekit-ui/p-3974d97a.js → components/p-GSFejkz7.js} +0 -0
- /package/dist/{realtimekit-ui/p-382270d8.js → components/p-jvwnrxra.js} +0 -0
- /package/dist/{realtimekit-ui/p-f7c2daba.js → components/p-vBfDtD_u.js} +0 -0
- /package/dist/{realtimekit-ui/p-cfa0b5c7.js → components/p-wWDkfcFk.js} +0 -0
- /package/dist/{components/p-f47d4fe8.js → esm/ResizeObserver.es-FdeAvICb.js} +0 -0
- /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
- /package/dist/{components/p-05186172.js → esm/browser-CAqYddlg.js} +0 -0
- /package/dist/{components/p-382270d8.js → esm/date-jvwnrxra.js} +0 -0
- /package/dist/{components/p-3974d97a.js → esm/full-screen-GSFejkz7.js} +0 -0
- /package/dist/{components/p-b13ddb7d.js → esm/grid-CmmyVCoN.js} +0 -0
- /package/dist/{components/p-cfa0b5c7.js → esm/init-error-wWDkfcFk.js} +0 -0
- /package/dist/{components/p-f7c2daba.js → esm/join-error-vBfDtD_u.js} +0 -0
- /package/dist/{components/p-0752f2ba.js → esm/scroll-BIplIdLH.js} +0 -0
- /package/dist/esm/{string-068ce30a.js → string-vBD2htwQ.js} +0 -0
- /package/dist/realtimekit-ui/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
- /package/dist/realtimekit-ui/{p-6f211c3e.js → p-vBD2htwQ.js} +0 -0
|
@@ -9,29 +9,23 @@ function _interopNamespace(e) {
|
|
|
9
9
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
10
|
Object.defineProperty(n, k, d.get ? d : {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return e[k];
|
|
14
|
-
}
|
|
12
|
+
get: function () { return e[k]; }
|
|
15
13
|
});
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
}
|
|
19
|
-
n
|
|
17
|
+
n.default = e;
|
|
20
18
|
return Object.freeze(n);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
const NAMESPACE = 'realtimekit-ui';
|
|
24
|
-
const BUILD = /* realtimekit-ui */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, 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: false,
|
|
22
|
+
const BUILD = /* realtimekit-ui */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, deserializer: false, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, 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: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propChangeCallback: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, serializer: false, shadowDelegatesFocus: true, shadowDom: true, shadowSlotAssignmentManual: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, 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 };
|
|
25
23
|
const Env = /* realtimekit-ui */ {};
|
|
26
24
|
|
|
27
25
|
/*
|
|
28
|
-
Stencil Client Platform v4.
|
|
26
|
+
Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
|
|
29
27
|
*/
|
|
30
|
-
|
|
31
|
-
var __export = (target, all) => {
|
|
32
|
-
for (var name in all)
|
|
33
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
34
|
-
};
|
|
28
|
+
|
|
35
29
|
var Build = {
|
|
36
30
|
isDev: BUILD.isDev ? true : false,
|
|
37
31
|
isBrowser: true,
|
|
@@ -42,6 +36,41 @@ var Build = {
|
|
|
42
36
|
// src/utils/constants.ts
|
|
43
37
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
44
38
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
39
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
40
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
41
|
+
PrimitiveType2["Null"] = "null";
|
|
42
|
+
PrimitiveType2["String"] = "string";
|
|
43
|
+
PrimitiveType2["Number"] = "number";
|
|
44
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
45
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
46
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
47
|
+
return PrimitiveType2;
|
|
48
|
+
})(PrimitiveType || {});
|
|
49
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
50
|
+
NonPrimitiveType2["Array"] = "array";
|
|
51
|
+
NonPrimitiveType2["Date"] = "date";
|
|
52
|
+
NonPrimitiveType2["Map"] = "map";
|
|
53
|
+
NonPrimitiveType2["Object"] = "object";
|
|
54
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
55
|
+
NonPrimitiveType2["Set"] = "set";
|
|
56
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
57
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
58
|
+
return NonPrimitiveType2;
|
|
59
|
+
})(NonPrimitiveType || {});
|
|
60
|
+
var TYPE_CONSTANT = "type";
|
|
61
|
+
var VALUE_CONSTANT = "value";
|
|
62
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
63
|
+
|
|
64
|
+
// src/utils/get-prop-descriptor.ts
|
|
65
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
66
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
67
|
+
while (obj && obj !== stopAt) {
|
|
68
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
69
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
70
|
+
obj = Object.getPrototypeOf(obj);
|
|
71
|
+
}
|
|
72
|
+
return void 0;
|
|
73
|
+
}
|
|
45
74
|
|
|
46
75
|
// src/utils/es2022-rewire-class-members.ts
|
|
47
76
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
@@ -51,18 +80,24 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
51
80
|
members.map(([memberName, [memberFlags]]) => {
|
|
52
81
|
if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
53
82
|
const ogValue = instance[memberName];
|
|
54
|
-
const ogDescriptor =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
84
|
+
if (ogDescriptor) {
|
|
85
|
+
Object.defineProperty(instance, memberName, {
|
|
86
|
+
get() {
|
|
87
|
+
return ogDescriptor.get.call(this);
|
|
88
|
+
},
|
|
89
|
+
set(newValue) {
|
|
90
|
+
ogDescriptor.set.call(this, newValue);
|
|
91
|
+
},
|
|
92
|
+
configurable: true,
|
|
93
|
+
enumerable: true
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
97
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
98
|
+
} else if (ogValue !== void 0) {
|
|
99
|
+
instance[memberName] = ogValue;
|
|
100
|
+
}
|
|
66
101
|
}
|
|
67
102
|
});
|
|
68
103
|
};
|
|
@@ -75,9 +110,10 @@ var getHostRef = (ref) => {
|
|
|
75
110
|
return void 0;
|
|
76
111
|
};
|
|
77
112
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
113
|
+
if (!hostRef) return;
|
|
78
114
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
79
115
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
80
|
-
if (
|
|
116
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
|
|
81
117
|
reWireGetterSetter(lazyInstance, hostRef);
|
|
82
118
|
}
|
|
83
119
|
};
|
|
@@ -86,7 +122,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
86
122
|
$flags$: 0,
|
|
87
123
|
$hostElement$: hostElement,
|
|
88
124
|
$cmpMeta$: cmpMeta,
|
|
89
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
125
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
126
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
90
127
|
};
|
|
91
128
|
if (BUILD.isDev) {
|
|
92
129
|
hostRef.$renderCount$ = 0;
|
|
@@ -99,9 +136,12 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
99
136
|
hostElement["s-p"] = [];
|
|
100
137
|
hostElement["s-rc"] = [];
|
|
101
138
|
}
|
|
139
|
+
if (BUILD.lazyLoad) {
|
|
140
|
+
hostRef.$fetchedCbList$ = [];
|
|
141
|
+
}
|
|
102
142
|
const ref = hostRef;
|
|
103
143
|
hostElement.__stencil__getHostRef = () => ref;
|
|
104
|
-
if (!BUILD.lazyLoad &&
|
|
144
|
+
if (!BUILD.lazyLoad && cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
|
|
105
145
|
reWireGetterSetter(hostElement, hostRef);
|
|
106
146
|
}
|
|
107
147
|
return ref;
|
|
@@ -469,13 +509,13 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
469
509
|
'./rtk-controlbar-button.cjs.entry.js')); }).then(processMod, consoleError);
|
|
470
510
|
}
|
|
471
511
|
}
|
|
472
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
512
|
+
return (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(
|
|
473
513
|
/* @vite-ignore */
|
|
474
514
|
/* webpackInclude: /\.entry\.js$/ */
|
|
475
515
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
476
516
|
/* webpackMode: "lazy" */
|
|
477
517
|
`./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
|
|
478
|
-
)
|
|
518
|
+
).then(
|
|
479
519
|
(importedModule) => {
|
|
480
520
|
if (!BUILD.hotModuleReplacement) {
|
|
481
521
|
cmpModules.set(bundleId, importedModule);
|
|
@@ -491,6 +531,9 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
491
531
|
// src/client/client-style.ts
|
|
492
532
|
var styles = /* @__PURE__ */ new Map();
|
|
493
533
|
var modeResolutionChain = [];
|
|
534
|
+
var setScopedSSR = (_opts) => {
|
|
535
|
+
};
|
|
536
|
+
var needsScopedSSR = () => false;
|
|
494
537
|
|
|
495
538
|
// src/runtime/runtime-constants.ts
|
|
496
539
|
var CONTENT_REF_ID = "r";
|
|
@@ -552,12 +595,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
552
595
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
553
596
|
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
554
597
|
try {
|
|
598
|
+
if (!win.document.adoptedStyleSheets) {
|
|
599
|
+
return false;
|
|
600
|
+
}
|
|
555
601
|
new CSSStyleSheet();
|
|
556
602
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
557
603
|
} catch (e) {
|
|
558
604
|
}
|
|
559
605
|
return false;
|
|
560
606
|
})() : false;
|
|
607
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
561
608
|
|
|
562
609
|
// src/client/client-task-queue.ts
|
|
563
610
|
var queueCongestion = 0;
|
|
@@ -638,72 +685,35 @@ var getAssetPath = (path) => {
|
|
|
638
685
|
};
|
|
639
686
|
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
640
687
|
|
|
641
|
-
// src/utils/
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
o = typeof o;
|
|
645
|
-
return o === "object" || o === "function";
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
649
|
-
function queryNonceMetaTagContent(doc) {
|
|
650
|
-
var _a, _b, _c;
|
|
651
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
688
|
+
// src/utils/style.ts
|
|
689
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
690
|
+
return void 0;
|
|
652
691
|
}
|
|
653
692
|
|
|
654
|
-
// src/utils/
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
unwrapErr: () => unwrapErr
|
|
667
|
-
});
|
|
668
|
-
var ok = (value) => ({
|
|
669
|
-
isOk: true,
|
|
670
|
-
isErr: false,
|
|
671
|
-
value
|
|
672
|
-
});
|
|
673
|
-
var err = (value) => ({
|
|
674
|
-
isOk: false,
|
|
675
|
-
isErr: true,
|
|
676
|
-
value
|
|
677
|
-
});
|
|
678
|
-
function map(result, fn) {
|
|
679
|
-
if (result.isOk) {
|
|
680
|
-
const val = fn(result.value);
|
|
681
|
-
if (val instanceof Promise) {
|
|
682
|
-
return val.then((newVal) => ok(newVal));
|
|
683
|
-
} else {
|
|
684
|
-
return ok(val);
|
|
693
|
+
// src/utils/shadow-root.ts
|
|
694
|
+
var globalStyleSheet;
|
|
695
|
+
function createShadowRoot(cmpMeta) {
|
|
696
|
+
var _a;
|
|
697
|
+
const opts = { mode: "open" };
|
|
698
|
+
if (BUILD.shadowDelegatesFocus) {
|
|
699
|
+
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
700
|
+
}
|
|
701
|
+
if (BUILD.shadowSlotAssignmentManual) {
|
|
702
|
+
const isManual = !!(cmpMeta.$flags$ & 1024 /* shadowSlotAssignmentManual */);
|
|
703
|
+
if (isManual) {
|
|
704
|
+
opts.slotAssignment = "manual";
|
|
685
705
|
}
|
|
686
706
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
707
|
+
const shadowRoot = this.attachShadow(opts);
|
|
708
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
709
|
+
if (globalStyleSheet) {
|
|
710
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
711
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
712
|
+
} else {
|
|
713
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
714
|
+
}
|
|
690
715
|
}
|
|
691
|
-
throw "should never get here";
|
|
692
716
|
}
|
|
693
|
-
var unwrap = (result) => {
|
|
694
|
-
if (result.isOk) {
|
|
695
|
-
return result.value;
|
|
696
|
-
} else {
|
|
697
|
-
throw result.value;
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
var unwrapErr = (result) => {
|
|
701
|
-
if (result.isErr) {
|
|
702
|
-
return result.value;
|
|
703
|
-
} else {
|
|
704
|
-
throw result.value;
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
717
|
var updateFallbackSlotVisibility = (elm) => {
|
|
708
718
|
const childNodes = internalCall(elm, "childNodes");
|
|
709
719
|
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
@@ -809,7 +819,7 @@ function patchSlotNode(node) {
|
|
|
809
819
|
const slotName = this["s-sn"];
|
|
810
820
|
if (opts == null ? void 0 : opts.flatten) {
|
|
811
821
|
console.error(`
|
|
812
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
822
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
813
823
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
814
824
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
815
825
|
`);
|
|
@@ -857,7 +867,8 @@ var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
|
857
867
|
patchSlotRemoveChild(hostElementPrototype);
|
|
858
868
|
};
|
|
859
869
|
var patchCloneNode = (HostElementPrototype) => {
|
|
860
|
-
|
|
870
|
+
if (HostElementPrototype.__cloneNode) return;
|
|
871
|
+
const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;
|
|
861
872
|
HostElementPrototype.cloneNode = function(deep) {
|
|
862
873
|
const srcNode = this;
|
|
863
874
|
const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
|
|
@@ -902,6 +913,7 @@ var patchCloneNode = (HostElementPrototype) => {
|
|
|
902
913
|
};
|
|
903
914
|
};
|
|
904
915
|
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
916
|
+
if (HostElementPrototype.__appendChild) return;
|
|
905
917
|
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
906
918
|
HostElementPrototype.appendChild = function(newChild) {
|
|
907
919
|
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
@@ -919,6 +931,7 @@ var patchSlotAppendChild = (HostElementPrototype) => {
|
|
|
919
931
|
};
|
|
920
932
|
};
|
|
921
933
|
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
934
|
+
if (ElementPrototype.__removeChild) return;
|
|
922
935
|
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
923
936
|
ElementPrototype.removeChild = function(toRemove) {
|
|
924
937
|
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
@@ -934,6 +947,7 @@ var patchSlotRemoveChild = (ElementPrototype) => {
|
|
|
934
947
|
};
|
|
935
948
|
};
|
|
936
949
|
var patchSlotPrepend = (HostElementPrototype) => {
|
|
950
|
+
if (HostElementPrototype.__prepend) return;
|
|
937
951
|
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
938
952
|
HostElementPrototype.prepend = function(...newChildren) {
|
|
939
953
|
newChildren.forEach((newChild) => {
|
|
@@ -960,6 +974,7 @@ var patchSlotPrepend = (HostElementPrototype) => {
|
|
|
960
974
|
};
|
|
961
975
|
};
|
|
962
976
|
var patchSlotAppend = (HostElementPrototype) => {
|
|
977
|
+
if (HostElementPrototype.__append) return;
|
|
963
978
|
HostElementPrototype.__append = HostElementPrototype.append;
|
|
964
979
|
HostElementPrototype.append = function(...newChildren) {
|
|
965
980
|
newChildren.forEach((newChild) => {
|
|
@@ -971,6 +986,7 @@ var patchSlotAppend = (HostElementPrototype) => {
|
|
|
971
986
|
};
|
|
972
987
|
};
|
|
973
988
|
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
989
|
+
if (HostElementPrototype.__insertAdjacentHTML) return;
|
|
974
990
|
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
975
991
|
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
976
992
|
if (position !== "afterbegin" && position !== "beforeend") {
|
|
@@ -996,6 +1012,7 @@ var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
|
996
1012
|
};
|
|
997
1013
|
};
|
|
998
1014
|
var patchInsertBefore = (HostElementPrototype) => {
|
|
1015
|
+
if (HostElementPrototype.__insertBefore) return;
|
|
999
1016
|
const eleProto = HostElementPrototype;
|
|
1000
1017
|
if (eleProto.__insertBefore) return;
|
|
1001
1018
|
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
@@ -1030,6 +1047,7 @@ var patchInsertBefore = (HostElementPrototype) => {
|
|
|
1030
1047
|
};
|
|
1031
1048
|
};
|
|
1032
1049
|
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
1050
|
+
if (HostElementPrototype.__insertAdjacentElement) return;
|
|
1033
1051
|
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
1034
1052
|
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
1035
1053
|
if (position !== "afterbegin" && position !== "beforeend") {
|
|
@@ -1196,6 +1214,9 @@ var validNodesPatches = [
|
|
|
1196
1214
|
"parentNode"
|
|
1197
1215
|
];
|
|
1198
1216
|
function patchHostOriginalAccessor(accessorName, node) {
|
|
1217
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
1218
|
+
return;
|
|
1219
|
+
}
|
|
1199
1220
|
let accessor;
|
|
1200
1221
|
if (validElementPatches.includes(accessorName)) {
|
|
1201
1222
|
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
@@ -1267,11 +1288,13 @@ var inspect = (ref) => {
|
|
|
1267
1288
|
needsRerender: !!(flags & 512 /* needsRerender */)
|
|
1268
1289
|
},
|
|
1269
1290
|
instanceValues: hostRef.$instanceValues$,
|
|
1291
|
+
serializerValues: hostRef.$serializerValues$,
|
|
1270
1292
|
ancestorComponent: hostRef.$ancestorComponent$,
|
|
1271
1293
|
hostElement,
|
|
1272
1294
|
lazyInstance: hostRef.$lazyInstance$,
|
|
1273
1295
|
vnode: hostRef.$vnode$,
|
|
1274
1296
|
modeName: hostRef.$modeName$,
|
|
1297
|
+
fetchedCbList: hostRef.$fetchedCbList$,
|
|
1275
1298
|
onReadyPromise: hostRef.$onReadyPromise$,
|
|
1276
1299
|
onReadyResolve: hostRef.$onReadyResolve$,
|
|
1277
1300
|
onInstancePromise: hostRef.$onInstancePromise$,
|
|
@@ -1300,7 +1323,172 @@ var installDevTools = () => {
|
|
|
1300
1323
|
};
|
|
1301
1324
|
}
|
|
1302
1325
|
};
|
|
1326
|
+
|
|
1327
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
1328
|
+
function queryNonceMetaTagContent(doc) {
|
|
1329
|
+
var _a, _b, _c;
|
|
1330
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
// src/runtime/styles.ts
|
|
1334
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1335
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1336
|
+
let style = styles.get(scopeId2);
|
|
1337
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1338
|
+
style = style || new CSSStyleSheet();
|
|
1339
|
+
if (typeof style === "string") {
|
|
1340
|
+
style = cssText;
|
|
1341
|
+
} else {
|
|
1342
|
+
style.replaceSync(cssText);
|
|
1343
|
+
}
|
|
1344
|
+
} else {
|
|
1345
|
+
style = cssText;
|
|
1346
|
+
}
|
|
1347
|
+
styles.set(scopeId2, style);
|
|
1348
|
+
};
|
|
1349
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1350
|
+
var _a, _b, _c;
|
|
1351
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1352
|
+
const style = styles.get(scopeId2);
|
|
1353
|
+
if (!BUILD.attachStyles || !win.document) {
|
|
1354
|
+
return scopeId2;
|
|
1355
|
+
}
|
|
1356
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1357
|
+
if (style) {
|
|
1358
|
+
if (typeof style === "string") {
|
|
1359
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1360
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1361
|
+
let styleElm;
|
|
1362
|
+
if (!appliedStyles) {
|
|
1363
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1364
|
+
}
|
|
1365
|
+
const existingStyleElm = (BUILD.hydrateClientSide || BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1366
|
+
if (existingStyleElm) {
|
|
1367
|
+
existingStyleElm.textContent = style;
|
|
1368
|
+
} else if (!appliedStyles.has(scopeId2)) {
|
|
1369
|
+
styleElm = win.document.createElement("style");
|
|
1370
|
+
styleElm.textContent = style;
|
|
1371
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1372
|
+
if (nonce != null) {
|
|
1373
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1374
|
+
}
|
|
1375
|
+
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */ || cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1376
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1377
|
+
}
|
|
1378
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1379
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1380
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1381
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1382
|
+
styleContainerNode.insertBefore(
|
|
1383
|
+
styleElm,
|
|
1384
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1385
|
+
);
|
|
1386
|
+
} else if ("host" in styleContainerNode) {
|
|
1387
|
+
if (supportsConstructableStylesheets) {
|
|
1388
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
1389
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
1390
|
+
stylesheet.replaceSync(style);
|
|
1391
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1392
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1393
|
+
} else {
|
|
1394
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1395
|
+
}
|
|
1396
|
+
} else {
|
|
1397
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1398
|
+
if (existingStyleContainer && !BUILD.hotModuleReplacement) {
|
|
1399
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
1400
|
+
} else {
|
|
1401
|
+
styleContainerNode.prepend(styleElm);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
} else {
|
|
1405
|
+
styleContainerNode.append(styleElm);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1409
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1410
|
+
}
|
|
1411
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1412
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
1413
|
+
}
|
|
1414
|
+
if (appliedStyles) {
|
|
1415
|
+
appliedStyles.add(scopeId2);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
} else if (BUILD.constructableCSS) {
|
|
1419
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1420
|
+
if (!appliedStyles) {
|
|
1421
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1422
|
+
}
|
|
1423
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1424
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
1425
|
+
let stylesheet;
|
|
1426
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
1427
|
+
stylesheet = style;
|
|
1428
|
+
} else {
|
|
1429
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
1430
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
1431
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1435
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
1436
|
+
} else {
|
|
1437
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
1438
|
+
}
|
|
1439
|
+
appliedStyles.add(scopeId2);
|
|
1440
|
+
if (BUILD.hydrateClientSide && "host" in styleContainerNode) {
|
|
1441
|
+
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1442
|
+
if (ssrStyleElm) {
|
|
1443
|
+
writeTask(() => ssrStyleElm.remove());
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
return scopeId2;
|
|
1450
|
+
};
|
|
1451
|
+
var attachStyles = (hostRef) => {
|
|
1452
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1453
|
+
const elm = hostRef.$hostElement$;
|
|
1454
|
+
const flags = cmpMeta.$flags$;
|
|
1455
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1456
|
+
const scopeId2 = addStyle(
|
|
1457
|
+
BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1458
|
+
cmpMeta,
|
|
1459
|
+
hostRef.$modeName$
|
|
1460
|
+
);
|
|
1461
|
+
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
|
|
1462
|
+
elm["s-sc"] = scopeId2;
|
|
1463
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1464
|
+
}
|
|
1465
|
+
endAttachStyles();
|
|
1466
|
+
};
|
|
1467
|
+
var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1468
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1469
|
+
var hydrateScopedToShadow = () => {
|
|
1470
|
+
if (!win.document) {
|
|
1471
|
+
return;
|
|
1472
|
+
}
|
|
1473
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1474
|
+
let i2 = 0;
|
|
1475
|
+
for (; i2 < styles2.length; i2++) {
|
|
1476
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
// src/utils/helpers.ts
|
|
1481
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
1482
|
+
var isComplexType = (o) => {
|
|
1483
|
+
o = typeof o;
|
|
1484
|
+
return o === "object" || o === "function";
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
// src/runtime/vdom/h.ts
|
|
1303
1488
|
var h = (nodeName, vnodeData, ...children) => {
|
|
1489
|
+
if (typeof nodeName === "string") {
|
|
1490
|
+
nodeName = transformTag(nodeName);
|
|
1491
|
+
}
|
|
1304
1492
|
let child = null;
|
|
1305
1493
|
let key = null;
|
|
1306
1494
|
let slotName = null;
|
|
@@ -1376,7 +1564,8 @@ var newVNode = (tag, text) => {
|
|
|
1376
1564
|
const vnode = {
|
|
1377
1565
|
$flags$: 0,
|
|
1378
1566
|
$tag$: tag,
|
|
1379
|
-
|
|
1567
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
1568
|
+
$text$: text != null ? text : null,
|
|
1380
1569
|
$elm$: null,
|
|
1381
1570
|
$children$: null
|
|
1382
1571
|
};
|
|
@@ -1440,6 +1629,7 @@ var validateInputProperties = (inputElm) => {
|
|
|
1440
1629
|
|
|
1441
1630
|
// src/runtime/client-hydrate.ts
|
|
1442
1631
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1632
|
+
var _a, _b, _c, _d;
|
|
1443
1633
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1444
1634
|
const shadowRoot = hostElm.shadowRoot;
|
|
1445
1635
|
const childRenderNodes = [];
|
|
@@ -1482,10 +1672,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1482
1672
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1483
1673
|
const node = childRenderNode.$elm$;
|
|
1484
1674
|
if (!shadowRoot) {
|
|
1485
|
-
node["s-hn"] = tagName.toUpperCase();
|
|
1675
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
1486
1676
|
if (childRenderNode.$tag$ === "slot") {
|
|
1487
1677
|
node["s-cr"] = hostElm["s-cr"];
|
|
1488
1678
|
}
|
|
1679
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1680
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1681
|
+
if (cmpMeta) {
|
|
1682
|
+
const scopeId3 = getScopeId(
|
|
1683
|
+
cmpMeta.$cmpMeta$,
|
|
1684
|
+
BUILD.mode ? childRenderNode.$elm$.getAttribute("s-mode") : void 0
|
|
1685
|
+
);
|
|
1686
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1687
|
+
if (styleSheet) {
|
|
1688
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1489
1691
|
}
|
|
1490
1692
|
if (childRenderNode.$tag$ === "slot") {
|
|
1491
1693
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1501,7 +1703,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1501
1703
|
}
|
|
1502
1704
|
}
|
|
1503
1705
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1504
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1706
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1505
1707
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1506
1708
|
}
|
|
1507
1709
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1509,7 +1711,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1509
1711
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1510
1712
|
}
|
|
1511
1713
|
}
|
|
1512
|
-
|
|
1714
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1715
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1716
|
+
}
|
|
1513
1717
|
}
|
|
1514
1718
|
const hosts = [];
|
|
1515
1719
|
const snLen = slottedNodes.length;
|
|
@@ -1518,6 +1722,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1518
1722
|
let snGroupIdx;
|
|
1519
1723
|
let snGroupLen;
|
|
1520
1724
|
let slottedItem;
|
|
1725
|
+
let currentPos = 0;
|
|
1521
1726
|
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1522
1727
|
slotGroup = slottedNodes[snIndex];
|
|
1523
1728
|
if (!slotGroup || !slotGroup.length) continue;
|
|
@@ -1530,21 +1735,27 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1530
1735
|
}
|
|
1531
1736
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1532
1737
|
const hostEle = hosts[slottedItem.hostId];
|
|
1738
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1739
|
+
hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
|
|
1740
|
+
}
|
|
1533
1741
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1534
|
-
slottedItem.slot["s-cr"]
|
|
1535
|
-
|
|
1536
|
-
slottedItem.slot["s-cr"]
|
|
1537
|
-
|
|
1538
|
-
|
|
1742
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1743
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1744
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1745
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1746
|
+
} else {
|
|
1747
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
1751
|
+
if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1752
|
+
slottedItem.node.removeAttribute("slot");
|
|
1539
1753
|
}
|
|
1540
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1541
1754
|
if (BUILD.experimentalSlotFixes) {
|
|
1542
1755
|
patchSlottedNode(slottedItem.node);
|
|
1543
1756
|
}
|
|
1544
1757
|
}
|
|
1545
|
-
|
|
1546
|
-
hostEle.appendChild(slottedItem.node);
|
|
1547
|
-
}
|
|
1758
|
+
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
1548
1759
|
}
|
|
1549
1760
|
}
|
|
1550
1761
|
if (BUILD.scoped && scopeId2 && slotNodes.length) {
|
|
@@ -1557,20 +1768,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1557
1768
|
const rnLen = shadowRootNodes.length;
|
|
1558
1769
|
if (rnLen) {
|
|
1559
1770
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1560
|
-
|
|
1771
|
+
const node = shadowRootNodes[rnIdex];
|
|
1772
|
+
if (node) {
|
|
1773
|
+
shadowRoot.appendChild(node);
|
|
1774
|
+
}
|
|
1561
1775
|
}
|
|
1562
1776
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1563
|
-
if (typeof node["s-sn"] !== "string") {
|
|
1777
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1564
1778
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1565
1779
|
node.removeAttribute("hidden");
|
|
1566
|
-
} else if (node.nodeType === 8 /* CommentNode */
|
|
1780
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
|
|
1567
1781
|
node.parentNode.removeChild(node);
|
|
1568
1782
|
}
|
|
1569
1783
|
}
|
|
1570
1784
|
});
|
|
1571
1785
|
}
|
|
1572
1786
|
}
|
|
1573
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1574
1787
|
hostRef.$hostElement$ = hostElm;
|
|
1575
1788
|
endHydrate();
|
|
1576
1789
|
};
|
|
@@ -1602,7 +1815,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1602
1815
|
if (!parentVNode.$children$) {
|
|
1603
1816
|
parentVNode.$children$ = [];
|
|
1604
1817
|
}
|
|
1605
|
-
if (BUILD.scoped && scopeId2) {
|
|
1818
|
+
if (BUILD.scoped && scopeId2 && childIdSplt[0] === hostId) {
|
|
1606
1819
|
node["s-si"] = scopeId2;
|
|
1607
1820
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
1608
1821
|
}
|
|
@@ -1731,10 +1944,6 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1731
1944
|
vnode.$elm$ = node;
|
|
1732
1945
|
vnode.$index$ = "0";
|
|
1733
1946
|
parentVNode.$children$ = [vnode];
|
|
1734
|
-
} else {
|
|
1735
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1736
|
-
node.remove();
|
|
1737
|
-
}
|
|
1738
1947
|
}
|
|
1739
1948
|
return parentVNode;
|
|
1740
1949
|
};
|
|
@@ -1790,10 +1999,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1790
1999
|
if (childVNode.$name$) {
|
|
1791
2000
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
1792
2001
|
}
|
|
1793
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1794
|
-
parentVNode.$elm
|
|
2002
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
2003
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1795
2004
|
} else {
|
|
1796
|
-
node
|
|
2005
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1797
2006
|
}
|
|
1798
2007
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1799
2008
|
node.remove();
|
|
@@ -1808,8 +2017,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1808
2017
|
if (shouldMove) {
|
|
1809
2018
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1810
2019
|
}
|
|
1811
|
-
childRenderNodes.push(childVNode);
|
|
1812
2020
|
}
|
|
2021
|
+
childRenderNodes.push(childVNode);
|
|
1813
2022
|
slotNodes.push(childVNode);
|
|
1814
2023
|
if (!parentVNode.$children$) {
|
|
1815
2024
|
parentVNode.$children$ = [];
|
|
@@ -1817,13 +2026,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1817
2026
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1818
2027
|
}
|
|
1819
2028
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
2029
|
+
var _a, _b;
|
|
1820
2030
|
let slottedNode = slotNode.nextSibling;
|
|
1821
2031
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
2032
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
2033
|
+
do {
|
|
2034
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
2035
|
+
slottedNode["s-sn"] = slotName;
|
|
2036
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
2037
|
+
}
|
|
2038
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
2039
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1827
2040
|
};
|
|
1828
2041
|
var findCorrespondingNode = (node, type) => {
|
|
1829
2042
|
let sibling = node;
|
|
@@ -1833,6 +2046,11 @@ var findCorrespondingNode = (node, type) => {
|
|
|
1833
2046
|
return sibling;
|
|
1834
2047
|
};
|
|
1835
2048
|
|
|
2049
|
+
// src/utils/regular-expression.ts
|
|
2050
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
2051
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2052
|
+
};
|
|
2053
|
+
|
|
1836
2054
|
// src/utils/shadow-css.ts
|
|
1837
2055
|
/**
|
|
1838
2056
|
* @license
|
|
@@ -1848,6 +2066,12 @@ var findCorrespondingNode = (node, type) => {
|
|
|
1848
2066
|
var safeSelector = (selector) => {
|
|
1849
2067
|
const placeholders = [];
|
|
1850
2068
|
let index = 0;
|
|
2069
|
+
selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
|
|
2070
|
+
const replaceBy = `__part-${index}__`;
|
|
2071
|
+
placeholders.push(keep);
|
|
2072
|
+
index++;
|
|
2073
|
+
return replaceBy;
|
|
2074
|
+
});
|
|
1851
2075
|
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
1852
2076
|
const replaceBy = `__ph-${index}__`;
|
|
1853
2077
|
placeholders.push(keep);
|
|
@@ -1867,6 +2091,7 @@ var safeSelector = (selector) => {
|
|
|
1867
2091
|
return ss;
|
|
1868
2092
|
};
|
|
1869
2093
|
var restoreSafeSelector = (placeholders, content) => {
|
|
2094
|
+
content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
1870
2095
|
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
1871
2096
|
};
|
|
1872
2097
|
var _polyfillHost = "-shadowcsshost";
|
|
@@ -1879,12 +2104,18 @@ var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim"
|
|
|
1879
2104
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
1880
2105
|
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
1881
2106
|
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
2107
|
+
var _safePartRe = /__part-(\d+)__/g;
|
|
1882
2108
|
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
1883
2109
|
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
1884
|
-
var createSupportsRuleRe = (selector) =>
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
2110
|
+
var createSupportsRuleRe = (selector) => {
|
|
2111
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
2112
|
+
return new RegExp(
|
|
2113
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
2114
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
2115
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
2116
|
+
"g"
|
|
2117
|
+
);
|
|
2118
|
+
};
|
|
1888
2119
|
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
1889
2120
|
var stripComments = (input) => {
|
|
1890
2121
|
return input.replace(_commentRe, "");
|
|
@@ -1956,7 +2187,19 @@ var escapeBlocks = (input) => {
|
|
|
1956
2187
|
return strEscapedBlocks;
|
|
1957
2188
|
};
|
|
1958
2189
|
var insertPolyfillHostInCssText = (cssText) => {
|
|
2190
|
+
const supportsBlocks = [];
|
|
2191
|
+
cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
|
|
2192
|
+
const placeholder = `__supports_${supportsBlocks.length}__`;
|
|
2193
|
+
supportsBlocks.push(selectorContent);
|
|
2194
|
+
return `@supports selector(${placeholder})`;
|
|
2195
|
+
});
|
|
2196
|
+
const _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
2197
|
+
const _colonHostRe = createSupportsRuleRe(":host");
|
|
2198
|
+
const _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
1959
2199
|
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
2200
|
+
supportsBlocks.forEach((originalSelector, index) => {
|
|
2201
|
+
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
2202
|
+
});
|
|
1960
2203
|
return cssText;
|
|
1961
2204
|
};
|
|
1962
2205
|
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
@@ -2076,7 +2319,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
2076
2319
|
let scopedSelector = "";
|
|
2077
2320
|
let startIndex = 0;
|
|
2078
2321
|
let res;
|
|
2079
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
2322
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
2080
2323
|
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
2081
2324
|
let shouldScope = !hasHost;
|
|
2082
2325
|
while ((res = sep.exec(selector)) !== null) {
|
|
@@ -2088,7 +2331,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
2088
2331
|
startIndex = sep.lastIndex;
|
|
2089
2332
|
}
|
|
2090
2333
|
const part = selector.substring(startIndex);
|
|
2091
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
2334
|
+
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
2092
2335
|
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
2093
2336
|
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
2094
2337
|
};
|
|
@@ -2145,13 +2388,43 @@ var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginal
|
|
|
2145
2388
|
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
2146
2389
|
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
2147
2390
|
};
|
|
2391
|
+
var expandPartSelectors = (cssText) => {
|
|
2392
|
+
const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
|
|
2393
|
+
return processRules(cssText, (rule) => {
|
|
2394
|
+
if (rule.selector[0] === "@") {
|
|
2395
|
+
return rule;
|
|
2396
|
+
}
|
|
2397
|
+
const selectors = rule.selector.split(",").map((sel) => {
|
|
2398
|
+
const out = [sel.trim()];
|
|
2399
|
+
let m;
|
|
2400
|
+
while ((m = partSelectorRe.exec(sel)) !== null) {
|
|
2401
|
+
const before = m[1].trimEnd();
|
|
2402
|
+
const partNames = m[2].trim().split(/\s+/);
|
|
2403
|
+
const after = m[3] || "";
|
|
2404
|
+
const partAttr = partNames.flatMap((p) => {
|
|
2405
|
+
if (!rule.selector.includes(`[part~="${p}"]`)) {
|
|
2406
|
+
return [`[part~="${p}"]`];
|
|
2407
|
+
}
|
|
2408
|
+
return [];
|
|
2409
|
+
}).join("");
|
|
2410
|
+
const expanded = `${before} ${partAttr}${after}`;
|
|
2411
|
+
if (!!partAttr && expanded !== sel.trim()) {
|
|
2412
|
+
out.push(expanded);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
return out.join(", ");
|
|
2416
|
+
});
|
|
2417
|
+
rule.selector = selectors.join(", ");
|
|
2418
|
+
return rule;
|
|
2419
|
+
});
|
|
2420
|
+
};
|
|
2148
2421
|
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
2149
2422
|
const hostScopeId = scopeId2 + "-h";
|
|
2150
2423
|
const slotScopeId = scopeId2 + "-s";
|
|
2151
2424
|
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
2152
2425
|
cssText = stripComments(cssText);
|
|
2153
2426
|
const orgSelectors = [];
|
|
2154
|
-
|
|
2427
|
+
{
|
|
2155
2428
|
const processCommentedSelector = (rule) => {
|
|
2156
2429
|
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
2157
2430
|
const comment = `/*!@${rule.selector}*/`;
|
|
@@ -2171,29 +2444,179 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
2171
2444
|
}
|
|
2172
2445
|
const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
2173
2446
|
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
2174
|
-
|
|
2447
|
+
{
|
|
2175
2448
|
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
2176
2449
|
cssText = cssText.replace(placeholder, comment);
|
|
2177
2450
|
});
|
|
2178
2451
|
}
|
|
2179
2452
|
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
2180
|
-
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
2453
|
+
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + "(?=\\s*[,{]|$)", "g");
|
|
2181
2454
|
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
2182
2455
|
});
|
|
2456
|
+
cssText = expandPartSelectors(cssText);
|
|
2183
2457
|
return cssText;
|
|
2184
2458
|
};
|
|
2185
2459
|
|
|
2186
2460
|
// src/runtime/mode.ts
|
|
2187
2461
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
2188
2462
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
2189
|
-
var getMode = (ref) =>
|
|
2190
|
-
var
|
|
2463
|
+
var getMode = (ref) => {
|
|
2464
|
+
var _a;
|
|
2465
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
2466
|
+
};
|
|
2467
|
+
|
|
2468
|
+
// src/runtime/normalize-watchers.ts
|
|
2469
|
+
var normalizeWatchers = (raw) => {
|
|
2470
|
+
if (!raw) return void 0;
|
|
2471
|
+
const keys = Object.keys(raw);
|
|
2472
|
+
if (keys.length === 0) return void 0;
|
|
2473
|
+
let hasLegacy = false;
|
|
2474
|
+
for (const propName of keys) {
|
|
2475
|
+
if (hasLegacy) break;
|
|
2476
|
+
for (const h2 of raw[propName]) {
|
|
2477
|
+
if (typeof h2 === "string") {
|
|
2478
|
+
hasLegacy = true;
|
|
2479
|
+
break;
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
if (!hasLegacy) return raw;
|
|
2484
|
+
const out = {};
|
|
2485
|
+
for (const propName of keys) {
|
|
2486
|
+
out[propName] = raw[propName].map(
|
|
2487
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
2488
|
+
);
|
|
2489
|
+
}
|
|
2490
|
+
return out;
|
|
2491
|
+
};
|
|
2492
|
+
|
|
2493
|
+
// src/utils/remote-value.ts
|
|
2494
|
+
var RemoteValue = class _RemoteValue {
|
|
2495
|
+
/**
|
|
2496
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2497
|
+
*
|
|
2498
|
+
* @param serialized The serialized LocalValue object
|
|
2499
|
+
* @returns The original JavaScript value/object
|
|
2500
|
+
*/
|
|
2501
|
+
static fromLocalValue(serialized) {
|
|
2502
|
+
const type = serialized[TYPE_CONSTANT];
|
|
2503
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2504
|
+
switch (type) {
|
|
2505
|
+
case "string" /* String */:
|
|
2506
|
+
return value;
|
|
2507
|
+
case "boolean" /* Boolean */:
|
|
2508
|
+
return value;
|
|
2509
|
+
case "bigint" /* BigInt */:
|
|
2510
|
+
return BigInt(value);
|
|
2511
|
+
case "undefined" /* Undefined */:
|
|
2512
|
+
return void 0;
|
|
2513
|
+
case "null" /* Null */:
|
|
2514
|
+
return null;
|
|
2515
|
+
case "number" /* Number */:
|
|
2516
|
+
if (value === "NaN") return NaN;
|
|
2517
|
+
if (value === "-0") return -0;
|
|
2518
|
+
if (value === "Infinity") return Infinity;
|
|
2519
|
+
if (value === "-Infinity") return -Infinity;
|
|
2520
|
+
return value;
|
|
2521
|
+
case "array" /* Array */:
|
|
2522
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2523
|
+
case "date" /* Date */:
|
|
2524
|
+
return new Date(value);
|
|
2525
|
+
case "map" /* Map */:
|
|
2526
|
+
const map = /* @__PURE__ */ new Map();
|
|
2527
|
+
for (const [key, val] of value) {
|
|
2528
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2529
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2530
|
+
map.set(deserializedKey, deserializedValue);
|
|
2531
|
+
}
|
|
2532
|
+
return map;
|
|
2533
|
+
case "object" /* Object */:
|
|
2534
|
+
const obj = {};
|
|
2535
|
+
for (const [key, val] of value) {
|
|
2536
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2537
|
+
}
|
|
2538
|
+
return obj;
|
|
2539
|
+
case "regexp" /* RegularExpression */:
|
|
2540
|
+
const { pattern, flags } = value;
|
|
2541
|
+
return new RegExp(pattern, flags);
|
|
2542
|
+
case "set" /* Set */:
|
|
2543
|
+
const set = /* @__PURE__ */ new Set();
|
|
2544
|
+
for (const item of value) {
|
|
2545
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
2546
|
+
}
|
|
2547
|
+
return set;
|
|
2548
|
+
case "symbol" /* Symbol */:
|
|
2549
|
+
return Symbol(value);
|
|
2550
|
+
default:
|
|
2551
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
2556
|
+
*
|
|
2557
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
2558
|
+
* @returns Array of deserialized JavaScript values
|
|
2559
|
+
*/
|
|
2560
|
+
static fromLocalValueArray(serializedValues) {
|
|
2561
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2562
|
+
}
|
|
2563
|
+
/**
|
|
2564
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2565
|
+
*
|
|
2566
|
+
* @param obj Object to verify
|
|
2567
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
2568
|
+
*/
|
|
2569
|
+
static isLocalValueObject(obj) {
|
|
2570
|
+
if (typeof obj !== "object" || obj === null) {
|
|
2571
|
+
return false;
|
|
2572
|
+
}
|
|
2573
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2574
|
+
return false;
|
|
2575
|
+
}
|
|
2576
|
+
const type = obj[TYPE_CONSTANT];
|
|
2577
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2578
|
+
if (!hasTypeProperty) {
|
|
2579
|
+
return false;
|
|
2580
|
+
}
|
|
2581
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2582
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2583
|
+
}
|
|
2584
|
+
return true;
|
|
2585
|
+
}
|
|
2586
|
+
};
|
|
2587
|
+
|
|
2588
|
+
// src/utils/serialize.ts
|
|
2589
|
+
function decodeBase64Unicode(base64) {
|
|
2590
|
+
const binary = atob(base64);
|
|
2591
|
+
const bytes = new Uint8Array(binary.length);
|
|
2592
|
+
for (let i2 = 0; i2 < binary.length; i2++) {
|
|
2593
|
+
bytes[i2] = binary.charCodeAt(i2);
|
|
2594
|
+
}
|
|
2595
|
+
return new TextDecoder().decode(bytes);
|
|
2596
|
+
}
|
|
2597
|
+
function deserializeProperty(value) {
|
|
2598
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2599
|
+
return value;
|
|
2600
|
+
}
|
|
2601
|
+
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
// src/runtime/parse-property-value.ts
|
|
2605
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
2606
|
+
if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
2607
|
+
propValue = deserializeProperty(propValue);
|
|
2608
|
+
return propValue;
|
|
2609
|
+
}
|
|
2191
2610
|
if (propValue != null && !isComplexType(propValue)) {
|
|
2192
2611
|
if (BUILD.propBoolean && propType & 4 /* Boolean */) {
|
|
2193
|
-
|
|
2612
|
+
if (BUILD.formAssociated && isFormAssociated && typeof propValue === "string") {
|
|
2613
|
+
return propValue === "" || !!propValue;
|
|
2614
|
+
} else {
|
|
2615
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
2616
|
+
}
|
|
2194
2617
|
}
|
|
2195
2618
|
if (BUILD.propNumber && propType & 2 /* Number */) {
|
|
2196
|
-
return parseFloat(propValue);
|
|
2619
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
2197
2620
|
}
|
|
2198
2621
|
if (BUILD.propString && propType & 1 /* String */) {
|
|
2199
2622
|
return String(propValue);
|
|
@@ -2202,7 +2625,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
2202
2625
|
}
|
|
2203
2626
|
return propValue;
|
|
2204
2627
|
};
|
|
2205
|
-
var getElement = (ref) =>
|
|
2628
|
+
var getElement = (ref) => {
|
|
2629
|
+
var _a;
|
|
2630
|
+
return BUILD.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;
|
|
2631
|
+
};
|
|
2206
2632
|
|
|
2207
2633
|
// src/runtime/event-emitter.ts
|
|
2208
2634
|
var createEvent = (ref, name, flags) => {
|
|
@@ -2226,140 +2652,27 @@ var emitEvent = (elm, name, opts) => {
|
|
|
2226
2652
|
elm.dispatchEvent(ev);
|
|
2227
2653
|
return ev;
|
|
2228
2654
|
};
|
|
2229
|
-
var
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2655
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
2656
|
+
if (oldValue === newValue) {
|
|
2657
|
+
return;
|
|
2658
|
+
}
|
|
2659
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
2660
|
+
let ln = memberName.toLowerCase();
|
|
2661
|
+
if (BUILD.vdomClass && memberName === "class") {
|
|
2662
|
+
const classList = elm.classList;
|
|
2663
|
+
const oldClasses = parseClassList(oldValue);
|
|
2664
|
+
let newClasses = parseClassList(newValue);
|
|
2665
|
+
if (BUILD.hydrateClientSide && (elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
2666
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
2667
|
+
newClasses.push(scopeId2);
|
|
2668
|
+
oldClasses.forEach((c) => {
|
|
2669
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
2670
|
+
});
|
|
2671
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
2672
|
+
classList.add(...newClasses);
|
|
2236
2673
|
} else {
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
} else {
|
|
2240
|
-
style = cssText;
|
|
2241
|
-
}
|
|
2242
|
-
styles.set(scopeId2, style);
|
|
2243
|
-
};
|
|
2244
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
2245
|
-
var _a;
|
|
2246
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
2247
|
-
const style = styles.get(scopeId2);
|
|
2248
|
-
if (!BUILD.attachStyles || !win.document) {
|
|
2249
|
-
return scopeId2;
|
|
2250
|
-
}
|
|
2251
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
2252
|
-
if (style) {
|
|
2253
|
-
if (typeof style === "string") {
|
|
2254
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
2255
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
2256
|
-
let styleElm;
|
|
2257
|
-
if (!appliedStyles) {
|
|
2258
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
2259
|
-
}
|
|
2260
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
2261
|
-
if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
2262
|
-
styleElm.innerHTML = style;
|
|
2263
|
-
} else {
|
|
2264
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
2265
|
-
styleElm.innerHTML = style;
|
|
2266
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2267
|
-
if (nonce != null) {
|
|
2268
|
-
styleElm.setAttribute("nonce", nonce);
|
|
2269
|
-
}
|
|
2270
|
-
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2271
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
2272
|
-
}
|
|
2273
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
2274
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
2275
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
2276
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
2277
|
-
styleContainerNode.insertBefore(
|
|
2278
|
-
styleElm,
|
|
2279
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
2280
|
-
);
|
|
2281
|
-
} else if ("host" in styleContainerNode) {
|
|
2282
|
-
if (supportsConstructableStylesheets) {
|
|
2283
|
-
const stylesheet = new CSSStyleSheet();
|
|
2284
|
-
stylesheet.replaceSync(style);
|
|
2285
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
2286
|
-
} else {
|
|
2287
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
2288
|
-
if (existingStyleContainer) {
|
|
2289
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
2290
|
-
} else {
|
|
2291
|
-
styleContainerNode.prepend(styleElm);
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
} else {
|
|
2295
|
-
styleContainerNode.append(styleElm);
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2299
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2303
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
2304
|
-
}
|
|
2305
|
-
if (appliedStyles) {
|
|
2306
|
-
appliedStyles.add(scopeId2);
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
} else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
2310
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
return scopeId2;
|
|
2314
|
-
};
|
|
2315
|
-
var attachStyles = (hostRef) => {
|
|
2316
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
2317
|
-
const elm = hostRef.$hostElement$;
|
|
2318
|
-
const flags = cmpMeta.$flags$;
|
|
2319
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
2320
|
-
const scopeId2 = addStyle(
|
|
2321
|
-
BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
2322
|
-
cmpMeta,
|
|
2323
|
-
hostRef.$modeName$
|
|
2324
|
-
);
|
|
2325
|
-
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
2326
|
-
elm["s-sc"] = scopeId2;
|
|
2327
|
-
elm.classList.add(scopeId2 + "-h");
|
|
2328
|
-
}
|
|
2329
|
-
endAttachStyles();
|
|
2330
|
-
};
|
|
2331
|
-
var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
2332
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
2333
|
-
var hydrateScopedToShadow = () => {
|
|
2334
|
-
if (!win.document) {
|
|
2335
|
-
return;
|
|
2336
|
-
}
|
|
2337
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
2338
|
-
let i2 = 0;
|
|
2339
|
-
for (; i2 < styles2.length; i2++) {
|
|
2340
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
2341
|
-
}
|
|
2342
|
-
};
|
|
2343
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
2344
|
-
if (oldValue === newValue) {
|
|
2345
|
-
return;
|
|
2346
|
-
}
|
|
2347
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
2348
|
-
let ln = memberName.toLowerCase();
|
|
2349
|
-
if (BUILD.vdomClass && memberName === "class") {
|
|
2350
|
-
const classList = elm.classList;
|
|
2351
|
-
const oldClasses = parseClassList(oldValue);
|
|
2352
|
-
let newClasses = parseClassList(newValue);
|
|
2353
|
-
if (BUILD.hydrateClientSide && elm["s-si"] && initialRender) {
|
|
2354
|
-
newClasses.push(elm["s-si"]);
|
|
2355
|
-
oldClasses.forEach((c) => {
|
|
2356
|
-
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
2357
|
-
});
|
|
2358
|
-
newClasses = [...new Set(newClasses)];
|
|
2359
|
-
classList.add(...newClasses);
|
|
2360
|
-
} else {
|
|
2361
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
2362
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
2674
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
2675
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
2363
2676
|
}
|
|
2364
2677
|
} else if (BUILD.vdomStyle && memberName === "style") {
|
|
2365
2678
|
if (BUILD.updatable) {
|
|
@@ -2384,7 +2697,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2384
2697
|
}
|
|
2385
2698
|
} else if (BUILD.vdomKey && memberName === "key") ; else if (BUILD.vdomRef && memberName === "ref") {
|
|
2386
2699
|
if (newValue) {
|
|
2387
|
-
newValue
|
|
2700
|
+
queueRefAttachment(newValue, elm);
|
|
2388
2701
|
}
|
|
2389
2702
|
} else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
2390
2703
|
if (memberName[2] === "-") {
|
|
@@ -2404,6 +2717,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2404
2717
|
plt.ael(elm, memberName, newValue, capture);
|
|
2405
2718
|
}
|
|
2406
2719
|
}
|
|
2720
|
+
} else if (BUILD.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
2721
|
+
const propName = memberName.slice(5);
|
|
2722
|
+
let attrName;
|
|
2723
|
+
if (BUILD.member) {
|
|
2724
|
+
const hostRef = getHostRef(elm);
|
|
2725
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
2726
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
2727
|
+
if (memberMeta && memberMeta[1]) {
|
|
2728
|
+
attrName = memberMeta[1];
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
if (!attrName) {
|
|
2733
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2734
|
+
}
|
|
2735
|
+
if (newValue == null || newValue === false) {
|
|
2736
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
2737
|
+
elm.removeAttribute(attrName);
|
|
2738
|
+
}
|
|
2739
|
+
} else {
|
|
2740
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
2741
|
+
}
|
|
2742
|
+
return;
|
|
2743
|
+
} else if (BUILD.vdomPropOrAttr && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
2744
|
+
const propName = memberName.slice(5);
|
|
2745
|
+
try {
|
|
2746
|
+
elm[propName] = newValue;
|
|
2747
|
+
} catch (e) {
|
|
2748
|
+
}
|
|
2749
|
+
return;
|
|
2407
2750
|
} else if (BUILD.vdomPropOrAttr) {
|
|
2408
2751
|
const isComplex = isComplexType(newValue);
|
|
2409
2752
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -2412,7 +2755,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2412
2755
|
const n = newValue == null ? "" : newValue;
|
|
2413
2756
|
if (memberName === "list") {
|
|
2414
2757
|
isProp = false;
|
|
2415
|
-
} else if (oldValue == null || elm[memberName]
|
|
2758
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
2416
2759
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
2417
2760
|
elm[memberName] = n;
|
|
2418
2761
|
} else {
|
|
@@ -2513,6 +2856,8 @@ var useNativeShadowDom = false;
|
|
|
2513
2856
|
var checkSlotFallbackVisibility = false;
|
|
2514
2857
|
var checkSlotRelocate = false;
|
|
2515
2858
|
var isSvgMode = false;
|
|
2859
|
+
var refCallbacksToRemove = [];
|
|
2860
|
+
var refCallbacksToAttach = [];
|
|
2516
2861
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2517
2862
|
var _a;
|
|
2518
2863
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -2540,7 +2885,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2540
2885
|
`The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
|
|
2541
2886
|
);
|
|
2542
2887
|
}
|
|
2543
|
-
if (BUILD.vdomText && newVNode2.$text$
|
|
2888
|
+
if (BUILD.vdomText && newVNode2.$text$ != null) {
|
|
2544
2889
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2545
2890
|
} else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2546
2891
|
elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
@@ -2552,9 +2897,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2552
2897
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
2553
2898
|
}
|
|
2554
2899
|
if (!win.document) {
|
|
2555
|
-
throw new Error(
|
|
2556
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
2557
|
-
);
|
|
2900
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
2558
2901
|
}
|
|
2559
2902
|
elm = newVNode2.$elm$ = BUILD.svg ? win.document.createElementNS(
|
|
2560
2903
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -2568,14 +2911,15 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2568
2911
|
if (BUILD.vdomAttribute) {
|
|
2569
2912
|
updateElement(null, newVNode2, isSvgMode);
|
|
2570
2913
|
}
|
|
2571
|
-
if (BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
2914
|
+
if ((BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
2572
2915
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
2573
2916
|
}
|
|
2574
2917
|
if (newVNode2.$children$) {
|
|
2918
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
2575
2919
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
2576
2920
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
2577
2921
|
if (childNode) {
|
|
2578
|
-
|
|
2922
|
+
appendTarget.appendChild(childNode);
|
|
2579
2923
|
}
|
|
2580
2924
|
}
|
|
2581
2925
|
}
|
|
@@ -2597,13 +2941,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2597
2941
|
patchSlotNode(elm);
|
|
2598
2942
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2599
2943
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
2600
|
-
|
|
2601
|
-
relocateToHostRoot(oldParentVNode.$elm$);
|
|
2602
|
-
} else {
|
|
2603
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
2604
|
-
}
|
|
2944
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
2605
2945
|
}
|
|
2606
|
-
if (BUILD.scoped) {
|
|
2946
|
+
if (BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) {
|
|
2607
2947
|
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
2608
2948
|
}
|
|
2609
2949
|
}
|
|
@@ -2628,12 +2968,12 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
2628
2968
|
}
|
|
2629
2969
|
}
|
|
2630
2970
|
}
|
|
2631
|
-
plt.$flags$ &=
|
|
2971
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
2632
2972
|
};
|
|
2633
2973
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
2634
2974
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2635
2975
|
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
2636
|
-
if (parentElm["s-sr"]
|
|
2976
|
+
if (parentElm["s-sr"]) {
|
|
2637
2977
|
let node = parentElm;
|
|
2638
2978
|
while (node = node.nextSibling) {
|
|
2639
2979
|
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
@@ -2654,7 +2994,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
2654
2994
|
putBackInOriginalLocation(childNode, recursive);
|
|
2655
2995
|
}
|
|
2656
2996
|
}
|
|
2657
|
-
plt.$flags$ &=
|
|
2997
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
2658
2998
|
};
|
|
2659
2999
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
2660
3000
|
let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -2662,6 +3002,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
2662
3002
|
if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
2663
3003
|
containerElm = containerElm.shadowRoot;
|
|
2664
3004
|
}
|
|
3005
|
+
if (parentVNode.$tag$ === "template") {
|
|
3006
|
+
containerElm = containerElm.content;
|
|
3007
|
+
}
|
|
2665
3008
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
2666
3009
|
if (vnodes[startIdx]) {
|
|
2667
3010
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -2705,6 +3048,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2705
3048
|
let newEndVnode = newCh[newEndIdx];
|
|
2706
3049
|
let node;
|
|
2707
3050
|
let elmToMove;
|
|
3051
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
2708
3052
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
2709
3053
|
if (oldStartVnode == null) {
|
|
2710
3054
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -2727,7 +3071,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2727
3071
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
2728
3072
|
}
|
|
2729
3073
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
2730
|
-
insertBefore(
|
|
3074
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
2731
3075
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
2732
3076
|
newEndVnode = newCh[--newEndIdx];
|
|
2733
3077
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
@@ -2735,7 +3079,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2735
3079
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
2736
3080
|
}
|
|
2737
3081
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
2738
|
-
insertBefore(
|
|
3082
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
2739
3083
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
2740
3084
|
newStartVnode = newCh[++newStartIdx];
|
|
2741
3085
|
} else {
|
|
@@ -2811,13 +3155,13 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2811
3155
|
const tag = newVNode2.$tag$;
|
|
2812
3156
|
const text = newVNode2.$text$;
|
|
2813
3157
|
let defaultHolder;
|
|
2814
|
-
if (!BUILD.vdomText || text
|
|
3158
|
+
if (!BUILD.vdomText || text == null) {
|
|
2815
3159
|
if (BUILD.svg) {
|
|
2816
3160
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
2817
3161
|
}
|
|
2818
3162
|
if (BUILD.vdomAttribute || BUILD.reflect) {
|
|
2819
3163
|
if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
|
|
2820
|
-
if (
|
|
3164
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
2821
3165
|
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
2822
3166
|
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
2823
3167
|
}
|
|
@@ -2836,6 +3180,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2836
3180
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2837
3181
|
) {
|
|
2838
3182
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
3183
|
+
} else if (BUILD.hydrateClientSide && isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
3184
|
+
newVNode2.$children$ = oldChildren;
|
|
2839
3185
|
}
|
|
2840
3186
|
if (BUILD.svg && isSvgMode && tag === "svg") {
|
|
2841
3187
|
isSvgMode = false;
|
|
@@ -2858,7 +3204,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2858
3204
|
const slotName = childNode["s-sn"];
|
|
2859
3205
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2860
3206
|
node = hostContentNodes[j];
|
|
2861
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!
|
|
3207
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
2862
3208
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
2863
3209
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2864
3210
|
checkSlotFallbackVisibility = true;
|
|
@@ -2898,23 +3244,40 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2898
3244
|
};
|
|
2899
3245
|
var nullifyVNodeRefs = (vNode) => {
|
|
2900
3246
|
if (BUILD.vdomRef) {
|
|
2901
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
3247
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
3248
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
3249
|
+
}
|
|
2902
3250
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
2903
3251
|
}
|
|
2904
3252
|
};
|
|
2905
|
-
var
|
|
2906
|
-
if (BUILD.
|
|
2907
|
-
|
|
2908
|
-
}
|
|
2909
|
-
|
|
2910
|
-
|
|
3253
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
3254
|
+
if (BUILD.vdomRef) {
|
|
3255
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
3256
|
+
}
|
|
3257
|
+
};
|
|
3258
|
+
var flushQueuedRefCallbacks = () => {
|
|
3259
|
+
if (BUILD.vdomRef) {
|
|
3260
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
3261
|
+
refCallbacksToRemove.length = 0;
|
|
3262
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
3263
|
+
refCallbacksToAttach.length = 0;
|
|
3264
|
+
}
|
|
3265
|
+
};
|
|
3266
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
3267
|
+
if (BUILD.slotRelocation) {
|
|
3268
|
+
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
3269
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
3270
|
+
} else if (typeof newNode["s-sn"] === "string") {
|
|
3271
|
+
if (BUILD.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
3272
|
+
patchParentNode(newNode);
|
|
3273
|
+
}
|
|
3274
|
+
parent.insertBefore(newNode, reference);
|
|
3275
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3276
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
3277
|
+
return newNode;
|
|
2911
3278
|
}
|
|
2912
|
-
parent.insertBefore(newNode, reference);
|
|
2913
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
2914
|
-
if (slotNode) dispatchSlotChangeEvent(slotNode);
|
|
2915
|
-
return newNode;
|
|
2916
3279
|
}
|
|
2917
|
-
if (
|
|
3280
|
+
if (parent.__insertBefore) {
|
|
2918
3281
|
return parent.__insertBefore(newNode, reference);
|
|
2919
3282
|
} else {
|
|
2920
3283
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -2946,7 +3309,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2946
3309
|
const hostElm = hostRef.$hostElement$;
|
|
2947
3310
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2948
3311
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2949
|
-
const
|
|
3312
|
+
const isHostElement = isHost(renderFnResults);
|
|
3313
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
2950
3314
|
hostTagName = hostElm.tagName;
|
|
2951
3315
|
if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
|
|
2952
3316
|
throw new Error(`The <Host> must be the single root component.
|
|
@@ -2964,9 +3328,13 @@ render() {
|
|
|
2964
3328
|
}
|
|
2965
3329
|
if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
2966
3330
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
2967
|
-
cmpMeta.$attrsToReflect$.
|
|
2968
|
-
(
|
|
2969
|
-
|
|
3331
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
3332
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName)) {
|
|
3333
|
+
rootVnode.$attrs$[attribute] = hostRef.$serializerValues$.get(propName);
|
|
3334
|
+
} else {
|
|
3335
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
3336
|
+
}
|
|
3337
|
+
});
|
|
2970
3338
|
}
|
|
2971
3339
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
2972
3340
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -2997,19 +3365,27 @@ render() {
|
|
|
2997
3365
|
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
2998
3366
|
const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : win.document.createTextNode("");
|
|
2999
3367
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
3000
|
-
insertBefore(
|
|
3368
|
+
insertBefore(
|
|
3369
|
+
nodeToRelocate.parentNode,
|
|
3370
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
3371
|
+
nodeToRelocate,
|
|
3372
|
+
isInitialLoad
|
|
3373
|
+
);
|
|
3001
3374
|
}
|
|
3002
3375
|
}
|
|
3003
3376
|
for (const relocateData of relocateNodes) {
|
|
3004
3377
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
3005
3378
|
const slotRefNode = relocateData.$slotRefNode$;
|
|
3379
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
3380
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
3381
|
+
}
|
|
3006
3382
|
if (slotRefNode) {
|
|
3007
3383
|
const parentNodeRef = slotRefNode.parentNode;
|
|
3008
3384
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
3009
|
-
if (!BUILD.hydrateServerSide &&
|
|
3010
|
-
let orgLocationNode = (
|
|
3385
|
+
if (!BUILD.hydrateServerSide && insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
3386
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
3011
3387
|
while (orgLocationNode) {
|
|
3012
|
-
let refNode = (
|
|
3388
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
3013
3389
|
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
3014
3390
|
refNode = refNode.nextSibling;
|
|
3015
3391
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
@@ -3027,44 +3403,55 @@ render() {
|
|
|
3027
3403
|
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
3028
3404
|
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
3029
3405
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
3030
|
-
|
|
3031
|
-
|
|
3406
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
3407
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
3408
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
3409
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
3410
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
3411
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
3412
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
3413
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
3414
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
3415
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
3416
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
3032
3417
|
}
|
|
3033
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
3034
3418
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
3035
|
-
nodeToRelocate.hidden = (
|
|
3419
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
3036
3420
|
}
|
|
3037
3421
|
}
|
|
3038
3422
|
}
|
|
3039
3423
|
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
3040
|
-
} else {
|
|
3041
|
-
|
|
3042
|
-
if (isInitialLoad) {
|
|
3043
|
-
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
3044
|
-
}
|
|
3045
|
-
nodeToRelocate.hidden = true;
|
|
3046
|
-
}
|
|
3424
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
3425
|
+
nodeToRelocate.hidden = true;
|
|
3047
3426
|
}
|
|
3048
3427
|
}
|
|
3049
3428
|
}
|
|
3050
3429
|
if (checkSlotFallbackVisibility) {
|
|
3051
3430
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
3052
3431
|
}
|
|
3053
|
-
plt.$flags$ &=
|
|
3432
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
3054
3433
|
relocateNodes.length = 0;
|
|
3055
3434
|
}
|
|
3056
|
-
if (BUILD.
|
|
3435
|
+
if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
3057
3436
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
3058
3437
|
for (const childNode of children) {
|
|
3059
3438
|
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
3060
3439
|
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
3061
3440
|
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
3062
3441
|
}
|
|
3063
|
-
childNode.
|
|
3442
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
3443
|
+
childNode.hidden = true;
|
|
3444
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
3445
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
3446
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
3447
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
3448
|
+
childNode.parentNode.removeChild(childNode);
|
|
3449
|
+
}
|
|
3064
3450
|
}
|
|
3065
3451
|
}
|
|
3066
3452
|
}
|
|
3067
3453
|
contentRef = void 0;
|
|
3454
|
+
flushQueuedRefCallbacks();
|
|
3068
3455
|
};
|
|
3069
3456
|
var slotReferenceDebugNode = (slotVNode) => {
|
|
3070
3457
|
var _a;
|
|
@@ -3102,6 +3489,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
3102
3489
|
}
|
|
3103
3490
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
3104
3491
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
3492
|
+
if (isInitialLoad) {
|
|
3493
|
+
queueMicrotask(() => {
|
|
3494
|
+
dispatch();
|
|
3495
|
+
});
|
|
3496
|
+
return;
|
|
3497
|
+
}
|
|
3105
3498
|
return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
|
|
3106
3499
|
};
|
|
3107
3500
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -3115,11 +3508,20 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3115
3508
|
}
|
|
3116
3509
|
let maybePromise;
|
|
3117
3510
|
if (isInitialLoad) {
|
|
3118
|
-
if (BUILD.lazyLoad
|
|
3119
|
-
hostRef.$
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3511
|
+
if (BUILD.lazyLoad) {
|
|
3512
|
+
if (BUILD.slotRelocation && hostRef.$deferredConnectedCallback$) {
|
|
3513
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
3514
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
3515
|
+
}
|
|
3516
|
+
if (BUILD.hostListener) {
|
|
3517
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
3518
|
+
if (hostRef.$queuedListeners$) {
|
|
3519
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
3520
|
+
hostRef.$queuedListeners$ = void 0;
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
3524
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
3123
3525
|
}
|
|
3124
3526
|
}
|
|
3125
3527
|
emitLifecycleEvent(elm, "componentWillLoad");
|
|
@@ -3133,8 +3535,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3133
3535
|
endSchedule();
|
|
3134
3536
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
3135
3537
|
};
|
|
3136
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
3137
|
-
console.error(
|
|
3538
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
3539
|
+
console.error(err);
|
|
3138
3540
|
fn();
|
|
3139
3541
|
}) : fn();
|
|
3140
3542
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -3157,7 +3559,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
3157
3559
|
}
|
|
3158
3560
|
if (BUILD.isDev) {
|
|
3159
3561
|
hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
|
|
3160
|
-
hostRef.$flags$ &=
|
|
3562
|
+
hostRef.$flags$ &= -1025 /* devOnRender */;
|
|
3161
3563
|
}
|
|
3162
3564
|
if (BUILD.hydrateServerSide) {
|
|
3163
3565
|
try {
|
|
@@ -3185,7 +3587,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
3185
3587
|
if (childrenPromises.length === 0) {
|
|
3186
3588
|
postUpdate();
|
|
3187
3589
|
} else {
|
|
3188
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
3590
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
3189
3591
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
3190
3592
|
childrenPromises.length = 0;
|
|
3191
3593
|
}
|
|
@@ -3203,7 +3605,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3203
3605
|
renderingRef = instance;
|
|
3204
3606
|
instance = allRenderFn ? instance.render() : instance.render && instance.render();
|
|
3205
3607
|
if (updatable && taskQueue) {
|
|
3206
|
-
hostRef.$flags$ &=
|
|
3608
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
3207
3609
|
}
|
|
3208
3610
|
if (updatable || lazyLoad) {
|
|
3209
3611
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -3242,7 +3644,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3242
3644
|
}
|
|
3243
3645
|
safeCall(instance, "componentDidRender", void 0, elm);
|
|
3244
3646
|
if (BUILD.isDev) {
|
|
3245
|
-
hostRef.$flags$ &=
|
|
3647
|
+
hostRef.$flags$ &= -1025 /* devOnRender */;
|
|
3246
3648
|
}
|
|
3247
3649
|
emitLifecycleEvent(elm, "componentDidRender");
|
|
3248
3650
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
@@ -3255,7 +3657,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3255
3657
|
}
|
|
3256
3658
|
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
3257
3659
|
if (BUILD.isDev) {
|
|
3258
|
-
hostRef.$flags$ &=
|
|
3660
|
+
hostRef.$flags$ &= -2049 /* devOnDidLoad */;
|
|
3259
3661
|
}
|
|
3260
3662
|
emitLifecycleEvent(elm, "componentDidLoad");
|
|
3261
3663
|
endPostUpdate();
|
|
@@ -3271,7 +3673,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3271
3673
|
}
|
|
3272
3674
|
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
3273
3675
|
if (BUILD.isDev) {
|
|
3274
|
-
hostRef.$flags$ &=
|
|
3676
|
+
hostRef.$flags$ &= -1025 /* devOnRender */;
|
|
3275
3677
|
}
|
|
3276
3678
|
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
3277
3679
|
endPostUpdate();
|
|
@@ -3287,13 +3689,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3287
3689
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
3288
3690
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
3289
3691
|
}
|
|
3290
|
-
hostRef.$flags$ &=
|
|
3692
|
+
hostRef.$flags$ &= -517;
|
|
3291
3693
|
}
|
|
3292
3694
|
};
|
|
3293
3695
|
var forceUpdate = (ref) => {
|
|
3696
|
+
var _a;
|
|
3294
3697
|
if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
|
|
3295
3698
|
const hostRef = getHostRef(ref);
|
|
3296
|
-
const isConnected = hostRef.$hostElement
|
|
3699
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
3297
3700
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
3298
3701
|
scheduleUpdate(hostRef, false);
|
|
3299
3702
|
}
|
|
@@ -3302,10 +3705,16 @@ var forceUpdate = (ref) => {
|
|
|
3302
3705
|
return false;
|
|
3303
3706
|
};
|
|
3304
3707
|
var appDidLoad = (who) => {
|
|
3708
|
+
var _a;
|
|
3305
3709
|
if (BUILD.asyncQueue) {
|
|
3306
3710
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
3307
3711
|
}
|
|
3308
3712
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
3713
|
+
if (BUILD.hydrateClientSide) {
|
|
3714
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
3715
|
+
plt.$orgLocNodes$.clear();
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3309
3718
|
if (BUILD.profile && performance.measure) {
|
|
3310
3719
|
performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
3311
3720
|
}
|
|
@@ -3352,20 +3761,49 @@ var serverSideConnected = (elm) => {
|
|
|
3352
3761
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
3353
3762
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
3354
3763
|
const hostRef = getHostRef(ref);
|
|
3764
|
+
if (!hostRef) {
|
|
3765
|
+
return;
|
|
3766
|
+
}
|
|
3355
3767
|
if (BUILD.lazyLoad && !hostRef) {
|
|
3356
3768
|
throw new Error(
|
|
3357
3769
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
3358
3770
|
);
|
|
3359
3771
|
}
|
|
3772
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newVal) {
|
|
3773
|
+
return;
|
|
3774
|
+
}
|
|
3360
3775
|
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
|
|
3361
3776
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
3362
3777
|
const flags = hostRef.$flags$;
|
|
3363
3778
|
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3364
|
-
newVal = parsePropertyValue(
|
|
3779
|
+
newVal = parsePropertyValue(
|
|
3780
|
+
newVal,
|
|
3781
|
+
cmpMeta.$members$[propName][0],
|
|
3782
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3783
|
+
);
|
|
3365
3784
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
3366
3785
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
3367
3786
|
if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
3368
3787
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
3788
|
+
if (BUILD.serializer && BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
3789
|
+
if (cmpMeta.$serializers$ && cmpMeta.$serializers$[propName]) {
|
|
3790
|
+
const runSerializer = (inst) => {
|
|
3791
|
+
let attrVal = newVal;
|
|
3792
|
+
for (const serializer of cmpMeta.$serializers$[propName]) {
|
|
3793
|
+
const [[methodName]] = Object.entries(serializer);
|
|
3794
|
+
attrVal = inst[methodName](attrVal, propName);
|
|
3795
|
+
}
|
|
3796
|
+
hostRef.$serializerValues$.set(propName, attrVal);
|
|
3797
|
+
};
|
|
3798
|
+
if (instance) {
|
|
3799
|
+
runSerializer(instance);
|
|
3800
|
+
} else {
|
|
3801
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3802
|
+
runSerializer(hostRef.$lazyInstance$);
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3369
3807
|
if (BUILD.isDev) {
|
|
3370
3808
|
if (hostRef.$flags$ & 1024 /* devOnRender */) {
|
|
3371
3809
|
consoleDevWarn(
|
|
@@ -3389,25 +3827,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
3389
3827
|
);
|
|
3390
3828
|
}
|
|
3391
3829
|
}
|
|
3392
|
-
if (
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3830
|
+
if (BUILD.propChangeCallback && cmpMeta.$watchers$) {
|
|
3831
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
3832
|
+
if (watchMethods) {
|
|
3833
|
+
watchMethods.map((watcher) => {
|
|
3834
|
+
try {
|
|
3835
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
3836
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
3837
|
+
if (!instance) {
|
|
3838
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3839
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
3840
|
+
});
|
|
3841
|
+
} else {
|
|
3842
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
3843
|
+
}
|
|
3401
3844
|
}
|
|
3402
|
-
})
|
|
3403
|
-
|
|
3404
|
-
}
|
|
3405
|
-
if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
3406
|
-
if (instance.componentShouldUpdate) {
|
|
3407
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
3408
|
-
return;
|
|
3845
|
+
} catch (e) {
|
|
3846
|
+
consoleError(e, elm);
|
|
3409
3847
|
}
|
|
3848
|
+
});
|
|
3849
|
+
}
|
|
3850
|
+
}
|
|
3851
|
+
if (BUILD.updatable && flags & 2 /* hasRendered */) {
|
|
3852
|
+
if (instance.componentShouldUpdate) {
|
|
3853
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
3854
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
3855
|
+
return;
|
|
3410
3856
|
}
|
|
3857
|
+
}
|
|
3858
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
3411
3859
|
scheduleUpdate(hostRef, false);
|
|
3412
3860
|
}
|
|
3413
3861
|
}
|
|
@@ -3429,10 +3877,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3429
3877
|
const originalFormAssociatedCallback = prototype[cbName];
|
|
3430
3878
|
Object.defineProperty(prototype, cbName, {
|
|
3431
3879
|
value(...args) {
|
|
3880
|
+
var _a2;
|
|
3432
3881
|
const hostRef = getHostRef(this);
|
|
3433
|
-
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : this;
|
|
3882
|
+
const instance = BUILD.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;
|
|
3434
3883
|
if (!instance) {
|
|
3435
|
-
hostRef.$onReadyPromise
|
|
3884
|
+
(_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
|
|
3436
3885
|
const cb = asyncInstance[cbName];
|
|
3437
3886
|
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
3438
3887
|
});
|
|
@@ -3444,14 +3893,22 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3444
3893
|
});
|
|
3445
3894
|
});
|
|
3446
3895
|
}
|
|
3447
|
-
if (BUILD.member && cmpMeta.$members$ || BUILD.
|
|
3448
|
-
if (BUILD.
|
|
3449
|
-
cmpMeta.$watchers$
|
|
3896
|
+
if (BUILD.member && cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
3897
|
+
if (BUILD.propChangeCallback) {
|
|
3898
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
3899
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
3900
|
+
}
|
|
3901
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
3902
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
3903
|
+
}
|
|
3904
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
3905
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
3906
|
+
}
|
|
3450
3907
|
}
|
|
3451
3908
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
3452
3909
|
members.map(([memberName, [memberFlags]]) => {
|
|
3453
3910
|
if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
3454
|
-
const { get: origGetter, set: origSetter } =
|
|
3911
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
3455
3912
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
3456
3913
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
3457
3914
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -3477,6 +3934,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3477
3934
|
Object.defineProperty(prototype, memberName, {
|
|
3478
3935
|
set(newValue) {
|
|
3479
3936
|
const ref = getHostRef(this);
|
|
3937
|
+
if (!ref) {
|
|
3938
|
+
return;
|
|
3939
|
+
}
|
|
3480
3940
|
if (BUILD.isDev) {
|
|
3481
3941
|
if (
|
|
3482
3942
|
// we are proxying the instance (not element)
|
|
@@ -3496,10 +3956,14 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3496
3956
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
3497
3957
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
3498
3958
|
newValue = ref.$instanceValues$.get(memberName);
|
|
3499
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
3500
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
3501
3959
|
}
|
|
3502
|
-
origSetter.apply(this, [
|
|
3960
|
+
origSetter.apply(this, [
|
|
3961
|
+
parsePropertyValue(
|
|
3962
|
+
newValue,
|
|
3963
|
+
memberFlags,
|
|
3964
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3965
|
+
)
|
|
3966
|
+
]);
|
|
3503
3967
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
3504
3968
|
setValue(this, memberName, newValue, cmpMeta);
|
|
3505
3969
|
return;
|
|
@@ -3512,7 +3976,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3512
3976
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
3513
3977
|
setValue(this, memberName, newValue, cmpMeta);
|
|
3514
3978
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
3515
|
-
ref.$
|
|
3979
|
+
ref.$fetchedCbList$.push(() => {
|
|
3516
3980
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
3517
3981
|
ref.$lazyInstance$[memberName] = newValue;
|
|
3518
3982
|
}
|
|
@@ -3525,13 +3989,19 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3525
3989
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
3526
3990
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
3527
3991
|
}
|
|
3528
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
3992
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
3993
|
+
newValue,
|
|
3994
|
+
memberFlags,
|
|
3995
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3996
|
+
);
|
|
3529
3997
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
3530
3998
|
};
|
|
3531
3999
|
if (ref.$lazyInstance$) {
|
|
3532
4000
|
setterSetVal();
|
|
3533
4001
|
} else {
|
|
3534
|
-
ref.$
|
|
4002
|
+
ref.$fetchedCbList$.push(() => {
|
|
4003
|
+
setterSetVal();
|
|
4004
|
+
});
|
|
3535
4005
|
}
|
|
3536
4006
|
}
|
|
3537
4007
|
}
|
|
@@ -3555,30 +4025,62 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3555
4025
|
plt.jmp(() => {
|
|
3556
4026
|
var _a2;
|
|
3557
4027
|
const propName = attrNameToPropName.get(attrName);
|
|
4028
|
+
const hostRef = getHostRef(this);
|
|
4029
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {
|
|
4030
|
+
return;
|
|
4031
|
+
}
|
|
3558
4032
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
3559
4033
|
newValue = this[propName];
|
|
3560
4034
|
delete this[propName];
|
|
4035
|
+
}
|
|
4036
|
+
if (BUILD.deserializer && cmpMeta.$deserializers$ && cmpMeta.$deserializers$[propName]) {
|
|
4037
|
+
const setVal = (methodName, instance) => {
|
|
4038
|
+
const deserializeVal = instance == null ? void 0 : instance[methodName](newValue, propName);
|
|
4039
|
+
if (deserializeVal !== this[propName]) {
|
|
4040
|
+
this[propName] = deserializeVal;
|
|
4041
|
+
}
|
|
4042
|
+
};
|
|
4043
|
+
for (const deserializer of cmpMeta.$deserializers$[propName]) {
|
|
4044
|
+
const [[methodName]] = Object.entries(deserializer);
|
|
4045
|
+
if (BUILD.lazyLoad) {
|
|
4046
|
+
if (hostRef.$lazyInstance$) {
|
|
4047
|
+
setVal(methodName, hostRef.$lazyInstance$);
|
|
4048
|
+
} else {
|
|
4049
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
4050
|
+
setVal(methodName, hostRef.$lazyInstance$);
|
|
4051
|
+
});
|
|
4052
|
+
}
|
|
4053
|
+
} else {
|
|
4054
|
+
setVal(methodName, this);
|
|
4055
|
+
}
|
|
4056
|
+
}
|
|
4057
|
+
return;
|
|
3561
4058
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
3562
4059
|
this[propName] == newValue) {
|
|
3563
4060
|
return;
|
|
3564
4061
|
} else if (propName == null) {
|
|
3565
|
-
const hostRef = getHostRef(this);
|
|
3566
4062
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
3567
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
4063
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
3568
4064
|
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
3569
4065
|
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3570
4066
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
3571
|
-
entry == null ? void 0 : entry.forEach((
|
|
3572
|
-
|
|
3573
|
-
|
|
4067
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
4068
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
4069
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
4070
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
3574
4071
|
}
|
|
3575
4072
|
});
|
|
3576
4073
|
}
|
|
3577
4074
|
return;
|
|
3578
4075
|
}
|
|
4076
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
4077
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
4078
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
4079
|
+
if (isBooleanTarget) {
|
|
4080
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
4081
|
+
}
|
|
3579
4082
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
3580
|
-
|
|
3581
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
4083
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
3582
4084
|
this[propName] = newValue;
|
|
3583
4085
|
}
|
|
3584
4086
|
});
|
|
@@ -3586,7 +4088,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3586
4088
|
Cstr.observedAttributes = Array.from(
|
|
3587
4089
|
/* @__PURE__ */ new Set([
|
|
3588
4090
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
3589
|
-
...members.filter(([_, m]) => m[0] &
|
|
4091
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
3590
4092
|
var _a2;
|
|
3591
4093
|
const attrName = m[1] || propName;
|
|
3592
4094
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -3605,83 +4107,103 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3605
4107
|
// src/runtime/initialize-component.ts
|
|
3606
4108
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
3607
4109
|
let Cstr;
|
|
3608
|
-
|
|
3609
|
-
hostRef.$flags$
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
if (!Cstr) {
|
|
3624
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
3625
|
-
}
|
|
3626
|
-
if (BUILD.member && !Cstr.isProxied) {
|
|
3627
|
-
if (BUILD.watchCallback) {
|
|
3628
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
4110
|
+
try {
|
|
4111
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
4112
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
4113
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
4114
|
+
if (BUILD.lazyLoad && bundleId) {
|
|
4115
|
+
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
4116
|
+
if (CstrImport && "then" in CstrImport) {
|
|
4117
|
+
const endLoad = uniqueTime(
|
|
4118
|
+
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
4119
|
+
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
4120
|
+
);
|
|
4121
|
+
Cstr = await CstrImport;
|
|
4122
|
+
endLoad();
|
|
4123
|
+
} else {
|
|
4124
|
+
Cstr = CstrImport;
|
|
3629
4125
|
}
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
if (BUILD.watchCallback) {
|
|
3646
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
3647
|
-
}
|
|
3648
|
-
endNewInstance();
|
|
3649
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3650
|
-
} else {
|
|
3651
|
-
Cstr = elm.constructor;
|
|
3652
|
-
const cmpTag = elm.localName;
|
|
3653
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
3654
|
-
}
|
|
3655
|
-
if (BUILD.style && Cstr && Cstr.style) {
|
|
3656
|
-
let style;
|
|
3657
|
-
if (typeof Cstr.style === "string") {
|
|
3658
|
-
style = Cstr.style;
|
|
3659
|
-
} else if (BUILD.mode && typeof Cstr.style !== "string") {
|
|
3660
|
-
hostRef.$modeName$ = computeMode(elm);
|
|
3661
|
-
if (hostRef.$modeName$) {
|
|
3662
|
-
style = Cstr.style[hostRef.$modeName$];
|
|
4126
|
+
if (!Cstr) {
|
|
4127
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
4128
|
+
}
|
|
4129
|
+
if (BUILD.member && !Cstr.isProxied) {
|
|
4130
|
+
if (BUILD.propChangeCallback) {
|
|
4131
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
4132
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
4133
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
4134
|
+
}
|
|
4135
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
4136
|
+
Cstr.isProxied = true;
|
|
4137
|
+
}
|
|
4138
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
4139
|
+
if (BUILD.member) {
|
|
4140
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
3663
4141
|
}
|
|
3664
|
-
|
|
3665
|
-
|
|
4142
|
+
try {
|
|
4143
|
+
new Cstr(hostRef);
|
|
4144
|
+
} catch (e) {
|
|
4145
|
+
consoleError(e, elm);
|
|
3666
4146
|
}
|
|
4147
|
+
if (BUILD.member) {
|
|
4148
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
4149
|
+
}
|
|
4150
|
+
if (BUILD.propChangeCallback) {
|
|
4151
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
4152
|
+
}
|
|
4153
|
+
endNewInstance();
|
|
4154
|
+
const needsDeferredCallback = BUILD.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
4155
|
+
if (!needsDeferredCallback) {
|
|
4156
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
4157
|
+
} else {
|
|
4158
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
4159
|
+
}
|
|
4160
|
+
} else {
|
|
4161
|
+
Cstr = elm.constructor;
|
|
4162
|
+
const cmpTag = elm.localName;
|
|
4163
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
3667
4164
|
}
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
4165
|
+
if (BUILD.style && Cstr && Cstr.style) {
|
|
4166
|
+
let style;
|
|
4167
|
+
if (typeof Cstr.style === "string") {
|
|
4168
|
+
style = Cstr.style;
|
|
4169
|
+
} else if (BUILD.mode && typeof Cstr.style !== "string") {
|
|
4170
|
+
hostRef.$modeName$ = computeMode(elm);
|
|
4171
|
+
if (hostRef.$modeName$) {
|
|
4172
|
+
style = Cstr.style[hostRef.$modeName$];
|
|
4173
|
+
}
|
|
4174
|
+
if (BUILD.hydrateServerSide && hostRef.$modeName$) {
|
|
4175
|
+
elm.setAttribute("s-mode", hostRef.$modeName$);
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
4179
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement && hmrVersionId) {
|
|
4180
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
4181
|
+
if (BUILD.hydrateServerSide && BUILD.shadowDom) {
|
|
4182
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
4183
|
+
style = scopeCss(style, scopeId2);
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
4187
|
+
endRegisterStyles();
|
|
3673
4188
|
}
|
|
3674
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
3675
|
-
endRegisterStyles();
|
|
3676
4189
|
}
|
|
3677
4190
|
}
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
4191
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
4192
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
4193
|
+
if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
|
|
4194
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
4195
|
+
} else {
|
|
4196
|
+
schedule();
|
|
4197
|
+
}
|
|
4198
|
+
} catch (e) {
|
|
4199
|
+
consoleError(e, elm);
|
|
4200
|
+
if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
|
|
4201
|
+
hostRef.$onRenderResolve$();
|
|
4202
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
4203
|
+
}
|
|
4204
|
+
if (BUILD.asyncLoading && hostRef.$onReadyResolve$) {
|
|
4205
|
+
hostRef.$onReadyResolve$(elm);
|
|
4206
|
+
}
|
|
3685
4207
|
}
|
|
3686
4208
|
};
|
|
3687
4209
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -3694,6 +4216,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
3694
4216
|
var connectedCallback = (elm) => {
|
|
3695
4217
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3696
4218
|
const hostRef = getHostRef(elm);
|
|
4219
|
+
if (!hostRef) {
|
|
4220
|
+
return;
|
|
4221
|
+
}
|
|
3697
4222
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
3698
4223
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
3699
4224
|
if (BUILD.hostListenerTargetParent) {
|
|
@@ -3732,7 +4257,7 @@ var connectedCallback = (elm) => {
|
|
|
3732
4257
|
}
|
|
3733
4258
|
if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
|
|
3734
4259
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
3735
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
4260
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
3736
4261
|
const value = elm[memberName];
|
|
3737
4262
|
delete elm[memberName];
|
|
3738
4263
|
elm[memberName] = value;
|
|
@@ -3774,7 +4299,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
3774
4299
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3775
4300
|
const hostRef = getHostRef(elm);
|
|
3776
4301
|
if (BUILD.hostListener) {
|
|
3777
|
-
if (hostRef.$rmListeners$) {
|
|
4302
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
3778
4303
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
3779
4304
|
hostRef.$rmListeners$ = void 0;
|
|
3780
4305
|
}
|
|
@@ -3797,104 +4322,115 @@ var disconnectedCallback = async (elm) => {
|
|
|
3797
4322
|
|
|
3798
4323
|
// src/runtime/bootstrap-custom-element.ts
|
|
3799
4324
|
var defineCustomElement = (Cstr, compactMeta) => {
|
|
3800
|
-
customElements.define(
|
|
4325
|
+
customElements.define(
|
|
4326
|
+
transformTag(compactMeta[1]),
|
|
4327
|
+
proxyCustomElement(Cstr, compactMeta)
|
|
4328
|
+
);
|
|
3801
4329
|
};
|
|
3802
4330
|
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
3803
4331
|
const cmpMeta = {
|
|
3804
4332
|
$flags$: compactMeta[0],
|
|
3805
4333
|
$tagName$: compactMeta[1]
|
|
3806
4334
|
};
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
if (BUILD.hostListener) {
|
|
3811
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
3812
|
-
}
|
|
3813
|
-
if (BUILD.watchCallback) {
|
|
3814
|
-
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
3815
|
-
}
|
|
3816
|
-
if (BUILD.reflect) {
|
|
3817
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
3818
|
-
}
|
|
3819
|
-
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3820
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3821
|
-
}
|
|
3822
|
-
if (BUILD.experimentalSlotFixes) {
|
|
3823
|
-
if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3824
|
-
patchPseudoShadowDom(Cstr.prototype);
|
|
4335
|
+
try {
|
|
4336
|
+
if (BUILD.member) {
|
|
4337
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
3825
4338
|
}
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
patchChildSlotNodes(Cstr.prototype);
|
|
4339
|
+
if (BUILD.hostListener) {
|
|
4340
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
3829
4341
|
}
|
|
3830
|
-
if (BUILD.
|
|
3831
|
-
|
|
4342
|
+
if (BUILD.propChangeCallback) {
|
|
4343
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);
|
|
4344
|
+
cmpMeta.$deserializers$ = Cstr.$deserializers$;
|
|
4345
|
+
cmpMeta.$serializers$ = Cstr.$serializers$;
|
|
3832
4346
|
}
|
|
3833
|
-
if (BUILD.
|
|
3834
|
-
|
|
4347
|
+
if (BUILD.reflect) {
|
|
4348
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
3835
4349
|
}
|
|
3836
|
-
if (BUILD.
|
|
3837
|
-
|
|
4350
|
+
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
4351
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3838
4352
|
}
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
}
|
|
3856
|
-
connectedCallback(this);
|
|
3857
|
-
if (originalConnectedCallback) {
|
|
3858
|
-
originalConnectedCallback.call(this);
|
|
3859
|
-
}
|
|
3860
|
-
},
|
|
3861
|
-
disconnectedCallback() {
|
|
3862
|
-
disconnectedCallback(this);
|
|
3863
|
-
if (originalDisconnectedCallback) {
|
|
3864
|
-
originalDisconnectedCallback.call(this);
|
|
4353
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
4354
|
+
if (BUILD.experimentalSlotFixes) {
|
|
4355
|
+
patchPseudoShadowDom(Cstr.prototype);
|
|
4356
|
+
} else {
|
|
4357
|
+
if (BUILD.slotChildNodesFix) {
|
|
4358
|
+
patchChildSlotNodes(Cstr.prototype);
|
|
4359
|
+
}
|
|
4360
|
+
if (BUILD.cloneNodeFix) {
|
|
4361
|
+
patchCloneNode(Cstr.prototype);
|
|
4362
|
+
}
|
|
4363
|
+
if (BUILD.appendChildSlotFix) {
|
|
4364
|
+
patchSlotAppendChild(Cstr.prototype);
|
|
4365
|
+
}
|
|
4366
|
+
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4367
|
+
patchTextContent(Cstr.prototype);
|
|
4368
|
+
}
|
|
3865
4369
|
}
|
|
3866
|
-
}
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
4370
|
+
} else if (BUILD.cloneNodeFix) {
|
|
4371
|
+
patchCloneNode(Cstr.prototype);
|
|
4372
|
+
}
|
|
4373
|
+
if (BUILD.hydrateClientSide && BUILD.shadowDom) {
|
|
4374
|
+
hydrateScopedToShadow();
|
|
4375
|
+
}
|
|
4376
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
4377
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
4378
|
+
Object.assign(Cstr.prototype, {
|
|
4379
|
+
__hasHostListenerAttached: false,
|
|
4380
|
+
__registerHost() {
|
|
4381
|
+
registerHost(this, cmpMeta);
|
|
4382
|
+
},
|
|
4383
|
+
connectedCallback() {
|
|
4384
|
+
if (!this.__hasHostListenerAttached) {
|
|
4385
|
+
const hostRef = getHostRef(this);
|
|
4386
|
+
if (!hostRef) {
|
|
4387
|
+
return;
|
|
4388
|
+
}
|
|
4389
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
4390
|
+
this.__hasHostListenerAttached = true;
|
|
4391
|
+
}
|
|
4392
|
+
connectedCallback(this);
|
|
4393
|
+
if (originalConnectedCallback) {
|
|
4394
|
+
originalConnectedCallback.call(this);
|
|
4395
|
+
}
|
|
4396
|
+
},
|
|
4397
|
+
disconnectedCallback() {
|
|
4398
|
+
disconnectedCallback(this);
|
|
4399
|
+
if (originalDisconnectedCallback) {
|
|
4400
|
+
originalDisconnectedCallback.call(this);
|
|
4401
|
+
}
|
|
4402
|
+
},
|
|
4403
|
+
__attachShadow() {
|
|
4404
|
+
if (supportsShadow) {
|
|
4405
|
+
if (!this.shadowRoot) {
|
|
4406
|
+
createShadowRoot.call(this, cmpMeta);
|
|
3875
4407
|
} else {
|
|
3876
|
-
this.
|
|
4408
|
+
if (this.shadowRoot.mode !== "open") {
|
|
4409
|
+
throw new Error(
|
|
4410
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
4411
|
+
);
|
|
4412
|
+
}
|
|
3877
4413
|
}
|
|
3878
4414
|
} else {
|
|
3879
|
-
|
|
3880
|
-
throw new Error(
|
|
3881
|
-
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
3882
|
-
);
|
|
3883
|
-
}
|
|
4415
|
+
this.shadowRoot = this;
|
|
3884
4416
|
}
|
|
3885
|
-
} else {
|
|
3886
|
-
this.shadowRoot = this;
|
|
3887
4417
|
}
|
|
3888
|
-
}
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
4418
|
+
});
|
|
4419
|
+
Object.defineProperty(Cstr, "is", {
|
|
4420
|
+
value: cmpMeta.$tagName$,
|
|
4421
|
+
configurable: true
|
|
4422
|
+
});
|
|
4423
|
+
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
|
4424
|
+
} catch (e) {
|
|
4425
|
+
consoleError(e);
|
|
4426
|
+
return Cstr;
|
|
4427
|
+
}
|
|
3892
4428
|
};
|
|
3893
4429
|
var forceModeUpdate = (elm) => {
|
|
3894
4430
|
if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
|
|
3895
4431
|
const mode = computeMode(elm);
|
|
3896
4432
|
const hostRef = getHostRef(elm);
|
|
3897
|
-
if (hostRef.$modeName$ !== mode) {
|
|
4433
|
+
if (hostRef && hostRef.$modeName$ !== mode) {
|
|
3898
4434
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
3899
4435
|
const oldScopeId = elm["s-sc"];
|
|
3900
4436
|
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
@@ -3916,6 +4452,9 @@ var forceModeUpdate = (elm) => {
|
|
|
3916
4452
|
// src/runtime/hmr-component.ts
|
|
3917
4453
|
var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
3918
4454
|
const hostRef = getHostRef(hostElement);
|
|
4455
|
+
if (!hostRef) {
|
|
4456
|
+
return;
|
|
4457
|
+
}
|
|
3919
4458
|
hostRef.$flags$ = 1 /* hasConnected */;
|
|
3920
4459
|
initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
|
|
3921
4460
|
};
|
|
@@ -3957,7 +4496,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3957
4496
|
let hasSlotRelocation = false;
|
|
3958
4497
|
lazyBundles.map((lazyBundle) => {
|
|
3959
4498
|
lazyBundle[1].map((compactMeta) => {
|
|
3960
|
-
var _a2;
|
|
4499
|
+
var _a2, _b;
|
|
3961
4500
|
const cmpMeta = {
|
|
3962
4501
|
$flags$: compactMeta[0],
|
|
3963
4502
|
$tagName$: compactMeta[1],
|
|
@@ -3976,31 +4515,28 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3976
4515
|
if (BUILD.reflect) {
|
|
3977
4516
|
cmpMeta.$attrsToReflect$ = [];
|
|
3978
4517
|
}
|
|
3979
|
-
if (BUILD.
|
|
3980
|
-
cmpMeta.$watchers$ = (
|
|
4518
|
+
if (BUILD.propChangeCallback) {
|
|
4519
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
4520
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
4521
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
3981
4522
|
}
|
|
3982
4523
|
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3983
4524
|
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3984
4525
|
}
|
|
3985
|
-
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName
|
|
4526
|
+
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : transformTag(cmpMeta.$tagName$);
|
|
3986
4527
|
const HostElement = class extends HTMLElement {
|
|
4528
|
+
["s-p"];
|
|
4529
|
+
["s-rc"];
|
|
4530
|
+
hasRegisteredEventListeners = false;
|
|
3987
4531
|
// StencilLazyHost
|
|
3988
4532
|
constructor(self) {
|
|
3989
4533
|
super(self);
|
|
3990
|
-
this.hasRegisteredEventListeners = false;
|
|
3991
4534
|
self = this;
|
|
3992
4535
|
registerHost(self, cmpMeta);
|
|
3993
4536
|
if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3994
4537
|
if (supportsShadow) {
|
|
3995
4538
|
if (!self.shadowRoot) {
|
|
3996
|
-
|
|
3997
|
-
self.attachShadow({
|
|
3998
|
-
mode: "open",
|
|
3999
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
4000
|
-
});
|
|
4001
|
-
} else {
|
|
4002
|
-
self.attachShadow({ mode: "open" });
|
|
4003
|
-
}
|
|
4539
|
+
createShadowRoot.call(self, cmpMeta);
|
|
4004
4540
|
} else {
|
|
4005
4541
|
if (self.shadowRoot.mode !== "open") {
|
|
4006
4542
|
throw new Error(
|
|
@@ -4015,6 +4551,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4015
4551
|
}
|
|
4016
4552
|
connectedCallback() {
|
|
4017
4553
|
const hostRef = getHostRef(this);
|
|
4554
|
+
if (!hostRef) {
|
|
4555
|
+
return;
|
|
4556
|
+
}
|
|
4018
4557
|
if (!this.hasRegisteredEventListeners) {
|
|
4019
4558
|
this.hasRegisteredEventListeners = true;
|
|
4020
4559
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
@@ -4034,6 +4573,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4034
4573
|
plt.raf(() => {
|
|
4035
4574
|
var _a3;
|
|
4036
4575
|
const hostRef = getHostRef(this);
|
|
4576
|
+
if (!hostRef) {
|
|
4577
|
+
return;
|
|
4578
|
+
}
|
|
4037
4579
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
4038
4580
|
if (i2 > -1) {
|
|
4039
4581
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -4044,26 +4586,29 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4044
4586
|
});
|
|
4045
4587
|
}
|
|
4046
4588
|
componentOnReady() {
|
|
4047
|
-
|
|
4589
|
+
var _a3;
|
|
4590
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
4048
4591
|
}
|
|
4049
4592
|
};
|
|
4050
|
-
if (
|
|
4051
|
-
if (BUILD.
|
|
4593
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
4594
|
+
if (BUILD.experimentalSlotFixes) {
|
|
4052
4595
|
patchPseudoShadowDom(HostElement.prototype);
|
|
4596
|
+
} else {
|
|
4597
|
+
if (BUILD.slotChildNodesFix) {
|
|
4598
|
+
patchChildSlotNodes(HostElement.prototype);
|
|
4599
|
+
}
|
|
4600
|
+
if (BUILD.cloneNodeFix) {
|
|
4601
|
+
patchCloneNode(HostElement.prototype);
|
|
4602
|
+
}
|
|
4603
|
+
if (BUILD.appendChildSlotFix) {
|
|
4604
|
+
patchSlotAppendChild(HostElement.prototype);
|
|
4605
|
+
}
|
|
4606
|
+
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4607
|
+
patchTextContent(HostElement.prototype);
|
|
4608
|
+
}
|
|
4053
4609
|
}
|
|
4054
|
-
} else {
|
|
4055
|
-
|
|
4056
|
-
patchChildSlotNodes(HostElement.prototype);
|
|
4057
|
-
}
|
|
4058
|
-
if (BUILD.cloneNodeFix) {
|
|
4059
|
-
patchCloneNode(HostElement.prototype);
|
|
4060
|
-
}
|
|
4061
|
-
if (BUILD.appendChildSlotFix) {
|
|
4062
|
-
patchSlotAppendChild(HostElement.prototype);
|
|
4063
|
-
}
|
|
4064
|
-
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4065
|
-
patchTextContent(HostElement.prototype);
|
|
4066
|
-
}
|
|
4610
|
+
} else if (BUILD.cloneNodeFix) {
|
|
4611
|
+
patchCloneNode(HostElement.prototype);
|
|
4067
4612
|
}
|
|
4068
4613
|
if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
|
|
4069
4614
|
HostElement.formAssociated = true;
|
|
@@ -4084,7 +4629,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4084
4629
|
});
|
|
4085
4630
|
});
|
|
4086
4631
|
if (cmpTags.length > 0) {
|
|
4087
|
-
if (hasSlotRelocation) {
|
|
4632
|
+
if (BUILD.slotRelocation && hasSlotRelocation) {
|
|
4088
4633
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
4089
4634
|
}
|
|
4090
4635
|
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
@@ -4167,6 +4712,12 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
4167
4712
|
passive: (flags & 1 /* Passive */) !== 0,
|
|
4168
4713
|
capture: (flags & 2 /* Capture */) !== 0
|
|
4169
4714
|
} : (flags & 2 /* Capture */) !== 0;
|
|
4715
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
4716
|
+
} : globalThis.HTMLElement || class {
|
|
4717
|
+
};
|
|
4718
|
+
function Mixin(...mixins) {
|
|
4719
|
+
return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);
|
|
4720
|
+
}
|
|
4170
4721
|
|
|
4171
4722
|
// src/runtime/nonce.ts
|
|
4172
4723
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
@@ -4174,6 +4725,90 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
|
4174
4725
|
// src/runtime/platform-options.ts
|
|
4175
4726
|
var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
4176
4727
|
|
|
4728
|
+
// src/runtime/render.ts
|
|
4729
|
+
var hostRefCache = /* @__PURE__ */ new WeakMap();
|
|
4730
|
+
function render(vnode, container) {
|
|
4731
|
+
let ref = hostRefCache.get(container);
|
|
4732
|
+
if (!ref) {
|
|
4733
|
+
const cmpMeta = {
|
|
4734
|
+
$flags$: 0,
|
|
4735
|
+
$tagName$: container.tagName
|
|
4736
|
+
};
|
|
4737
|
+
ref = {
|
|
4738
|
+
$flags$: 0,
|
|
4739
|
+
$cmpMeta$: cmpMeta,
|
|
4740
|
+
$hostElement$: container
|
|
4741
|
+
};
|
|
4742
|
+
hostRefCache.set(container, ref);
|
|
4743
|
+
}
|
|
4744
|
+
renderVdom(ref, vnode);
|
|
4745
|
+
}
|
|
4746
|
+
|
|
4747
|
+
// src/runtime/tag-transform.ts
|
|
4748
|
+
var tagTransformer = void 0;
|
|
4749
|
+
function transformTag(tag) {
|
|
4750
|
+
if (!tagTransformer) return tag;
|
|
4751
|
+
return tagTransformer(tag);
|
|
4752
|
+
}
|
|
4753
|
+
function setTagTransformer(transformer) {
|
|
4754
|
+
if (tagTransformer) {
|
|
4755
|
+
console.warn(`
|
|
4756
|
+
A tagTransformer has already been set.
|
|
4757
|
+
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
4758
|
+
`);
|
|
4759
|
+
}
|
|
4760
|
+
tagTransformer = transformer;
|
|
4761
|
+
}
|
|
4762
|
+
|
|
4763
|
+
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
4764
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
4765
|
+
const propsObj = props || {};
|
|
4766
|
+
const { children, ...rest } = propsObj;
|
|
4767
|
+
let vnodeData = rest;
|
|
4768
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4769
|
+
vnodeData = { ...rest, key };
|
|
4770
|
+
}
|
|
4771
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4772
|
+
vnodeData = null;
|
|
4773
|
+
}
|
|
4774
|
+
if (children !== void 0) {
|
|
4775
|
+
if (Array.isArray(children)) {
|
|
4776
|
+
return h(type, vnodeData, ...children);
|
|
4777
|
+
}
|
|
4778
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4779
|
+
return h(type, vnodeData, children);
|
|
4780
|
+
}
|
|
4781
|
+
return h(type, vnodeData, children);
|
|
4782
|
+
}
|
|
4783
|
+
return h(type, vnodeData);
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
// src/runtime/vdom/jsx-runtime.ts
|
|
4787
|
+
function jsx(type, props, key) {
|
|
4788
|
+
const propsObj = props || {};
|
|
4789
|
+
const { children, ...rest } = propsObj;
|
|
4790
|
+
let vnodeData = rest;
|
|
4791
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4792
|
+
vnodeData = { ...rest, key };
|
|
4793
|
+
}
|
|
4794
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4795
|
+
vnodeData = null;
|
|
4796
|
+
}
|
|
4797
|
+
if (children !== void 0) {
|
|
4798
|
+
if (Array.isArray(children)) {
|
|
4799
|
+
return h(type, vnodeData, ...children);
|
|
4800
|
+
}
|
|
4801
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4802
|
+
return h(type, vnodeData, children);
|
|
4803
|
+
}
|
|
4804
|
+
return h(type, vnodeData, children);
|
|
4805
|
+
}
|
|
4806
|
+
return h(type, vnodeData);
|
|
4807
|
+
}
|
|
4808
|
+
function jsxs(type, props, key) {
|
|
4809
|
+
return jsx(type, props, key);
|
|
4810
|
+
}
|
|
4811
|
+
|
|
4177
4812
|
// src/runtime/vdom/vdom-annotations.ts
|
|
4178
4813
|
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
4179
4814
|
if (doc != null) {
|
|
@@ -4319,7 +4954,7 @@ var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, inde
|
|
|
4319
4954
|
}
|
|
4320
4955
|
};
|
|
4321
4956
|
|
|
4322
|
-
|
|
4957
|
+
var StencilCore = /*#__PURE__*/Object.freeze({
|
|
4323
4958
|
__proto__: null,
|
|
4324
4959
|
BUILD: BUILD,
|
|
4325
4960
|
Build: Build,
|
|
@@ -4327,7 +4962,9 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4327
4962
|
Fragment: Fragment,
|
|
4328
4963
|
H: H,
|
|
4329
4964
|
HTMLElement: H,
|
|
4965
|
+
HYDRATED_STYLE_ID: HYDRATED_STYLE_ID,
|
|
4330
4966
|
Host: Host,
|
|
4967
|
+
Mixin: Mixin,
|
|
4331
4968
|
NAMESPACE: NAMESPACE,
|
|
4332
4969
|
STENCIL_DEV_MODE: STENCIL_DEV_MODE,
|
|
4333
4970
|
addHostEventListeners: addHostEventListeners,
|
|
@@ -4352,9 +4989,14 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4352
4989
|
h: h,
|
|
4353
4990
|
insertVdomAnnotations: insertVdomAnnotations,
|
|
4354
4991
|
isMemberInElement: isMemberInElement,
|
|
4992
|
+
jsx: jsx,
|
|
4993
|
+
jsxDEV: jsxDEV,
|
|
4994
|
+
jsxs: jsxs,
|
|
4355
4995
|
loadModule: loadModule,
|
|
4356
4996
|
modeResolutionChain: modeResolutionChain,
|
|
4997
|
+
needsScopedSSR: needsScopedSSR,
|
|
4357
4998
|
nextTick: nextTick,
|
|
4999
|
+
normalizeWatchers: normalizeWatchers,
|
|
4358
5000
|
parsePropertyValue: parsePropertyValue,
|
|
4359
5001
|
plt: plt,
|
|
4360
5002
|
postUpdateComponent: postUpdateComponent,
|
|
@@ -4364,6 +5006,7 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4364
5006
|
readTask: readTask,
|
|
4365
5007
|
registerHost: registerHost,
|
|
4366
5008
|
registerInstance: registerInstance,
|
|
5009
|
+
render: render,
|
|
4367
5010
|
renderVdom: renderVdom,
|
|
4368
5011
|
setAssetPath: setAssetPath,
|
|
4369
5012
|
setErrorHandler: setErrorHandler,
|
|
@@ -4371,11 +5014,15 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4371
5014
|
setNonce: setNonce,
|
|
4372
5015
|
setPlatformHelpers: setPlatformHelpers,
|
|
4373
5016
|
setPlatformOptions: setPlatformOptions,
|
|
5017
|
+
setScopedSSR: setScopedSSR,
|
|
5018
|
+
setTagTransformer: setTagTransformer,
|
|
4374
5019
|
setValue: setValue,
|
|
4375
5020
|
styles: styles,
|
|
4376
5021
|
supportsConstructableStylesheets: supportsConstructableStylesheets,
|
|
4377
5022
|
supportsListenerOptions: supportsListenerOptions,
|
|
5023
|
+
supportsMutableAdoptedStyleSheets: supportsMutableAdoptedStyleSheets,
|
|
4378
5024
|
supportsShadow: supportsShadow,
|
|
5025
|
+
transformTag: transformTag,
|
|
4379
5026
|
win: win,
|
|
4380
5027
|
writeTask: writeTask
|
|
4381
5028
|
});
|