@cloudflare/realtimekit-ui 2.0.1-staging.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 +1 -1
- 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
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
const NAMESPACE = 'realtimekit-ui';
|
|
2
|
-
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,
|
|
2
|
+
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 };
|
|
3
3
|
const Env = /* realtimekit-ui */ {};
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Platform v4.
|
|
6
|
+
Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
8
|
+
|
|
13
9
|
var Build = {
|
|
14
10
|
isDev: BUILD.isDev ? true : false,
|
|
15
11
|
isBrowser: true,
|
|
@@ -20,6 +16,41 @@ var Build = {
|
|
|
20
16
|
// src/utils/constants.ts
|
|
21
17
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
22
18
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
19
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
20
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
21
|
+
PrimitiveType2["Null"] = "null";
|
|
22
|
+
PrimitiveType2["String"] = "string";
|
|
23
|
+
PrimitiveType2["Number"] = "number";
|
|
24
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
25
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
26
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
27
|
+
return PrimitiveType2;
|
|
28
|
+
})(PrimitiveType || {});
|
|
29
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
30
|
+
NonPrimitiveType2["Array"] = "array";
|
|
31
|
+
NonPrimitiveType2["Date"] = "date";
|
|
32
|
+
NonPrimitiveType2["Map"] = "map";
|
|
33
|
+
NonPrimitiveType2["Object"] = "object";
|
|
34
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
35
|
+
NonPrimitiveType2["Set"] = "set";
|
|
36
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
37
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
38
|
+
return NonPrimitiveType2;
|
|
39
|
+
})(NonPrimitiveType || {});
|
|
40
|
+
var TYPE_CONSTANT = "type";
|
|
41
|
+
var VALUE_CONSTANT = "value";
|
|
42
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
43
|
+
|
|
44
|
+
// src/utils/get-prop-descriptor.ts
|
|
45
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
46
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
47
|
+
while (obj && obj !== stopAt) {
|
|
48
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
49
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
50
|
+
obj = Object.getPrototypeOf(obj);
|
|
51
|
+
}
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
23
54
|
|
|
24
55
|
// src/utils/es2022-rewire-class-members.ts
|
|
25
56
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
@@ -29,18 +60,24 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
29
60
|
members.map(([memberName, [memberFlags]]) => {
|
|
30
61
|
if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
31
62
|
const ogValue = instance[memberName];
|
|
32
|
-
const ogDescriptor =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
63
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
64
|
+
if (ogDescriptor) {
|
|
65
|
+
Object.defineProperty(instance, memberName, {
|
|
66
|
+
get() {
|
|
67
|
+
return ogDescriptor.get.call(this);
|
|
68
|
+
},
|
|
69
|
+
set(newValue) {
|
|
70
|
+
ogDescriptor.set.call(this, newValue);
|
|
71
|
+
},
|
|
72
|
+
configurable: true,
|
|
73
|
+
enumerable: true
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
77
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
78
|
+
} else if (ogValue !== void 0) {
|
|
79
|
+
instance[memberName] = ogValue;
|
|
80
|
+
}
|
|
44
81
|
}
|
|
45
82
|
});
|
|
46
83
|
};
|
|
@@ -53,9 +90,10 @@ var getHostRef = (ref) => {
|
|
|
53
90
|
return void 0;
|
|
54
91
|
};
|
|
55
92
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
93
|
+
if (!hostRef) return;
|
|
56
94
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
57
95
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
58
|
-
if (
|
|
96
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
|
|
59
97
|
reWireGetterSetter(lazyInstance, hostRef);
|
|
60
98
|
}
|
|
61
99
|
};
|
|
@@ -64,7 +102,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
64
102
|
$flags$: 0,
|
|
65
103
|
$hostElement$: hostElement,
|
|
66
104
|
$cmpMeta$: cmpMeta,
|
|
67
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
105
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
106
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
68
107
|
};
|
|
69
108
|
if (BUILD.isDev) {
|
|
70
109
|
hostRef.$renderCount$ = 0;
|
|
@@ -77,9 +116,12 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
77
116
|
hostElement["s-p"] = [];
|
|
78
117
|
hostElement["s-rc"] = [];
|
|
79
118
|
}
|
|
119
|
+
if (BUILD.lazyLoad) {
|
|
120
|
+
hostRef.$fetchedCbList$ = [];
|
|
121
|
+
}
|
|
80
122
|
const ref = hostRef;
|
|
81
123
|
hostElement.__stencil__getHostRef = () => ref;
|
|
82
|
-
if (!BUILD.lazyLoad &&
|
|
124
|
+
if (!BUILD.lazyLoad && cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
|
|
83
125
|
reWireGetterSetter(hostElement, hostRef);
|
|
84
126
|
}
|
|
85
127
|
return ref;
|
|
@@ -469,6 +511,9 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
469
511
|
// src/client/client-style.ts
|
|
470
512
|
var styles = /* @__PURE__ */ new Map();
|
|
471
513
|
var modeResolutionChain = [];
|
|
514
|
+
var setScopedSSR = (_opts) => {
|
|
515
|
+
};
|
|
516
|
+
var needsScopedSSR = () => false;
|
|
472
517
|
|
|
473
518
|
// src/runtime/runtime-constants.ts
|
|
474
519
|
var CONTENT_REF_ID = "r";
|
|
@@ -530,12 +575,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
530
575
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
531
576
|
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
532
577
|
try {
|
|
578
|
+
if (!win.document.adoptedStyleSheets) {
|
|
579
|
+
return false;
|
|
580
|
+
}
|
|
533
581
|
new CSSStyleSheet();
|
|
534
582
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
535
583
|
} catch (e) {
|
|
536
584
|
}
|
|
537
585
|
return false;
|
|
538
586
|
})() : false;
|
|
587
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
539
588
|
|
|
540
589
|
// src/client/client-task-queue.ts
|
|
541
590
|
var queueCongestion = 0;
|
|
@@ -616,72 +665,35 @@ var getAssetPath = (path) => {
|
|
|
616
665
|
};
|
|
617
666
|
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
618
667
|
|
|
619
|
-
// src/utils/
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
o = typeof o;
|
|
623
|
-
return o === "object" || o === "function";
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
627
|
-
function queryNonceMetaTagContent(doc) {
|
|
628
|
-
var _a, _b, _c;
|
|
629
|
-
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;
|
|
668
|
+
// src/utils/style.ts
|
|
669
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
670
|
+
return void 0;
|
|
630
671
|
}
|
|
631
672
|
|
|
632
|
-
// src/utils/
|
|
633
|
-
var
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
unwrapErr: () => unwrapErr
|
|
645
|
-
});
|
|
646
|
-
var ok = (value) => ({
|
|
647
|
-
isOk: true,
|
|
648
|
-
isErr: false,
|
|
649
|
-
value
|
|
650
|
-
});
|
|
651
|
-
var err = (value) => ({
|
|
652
|
-
isOk: false,
|
|
653
|
-
isErr: true,
|
|
654
|
-
value
|
|
655
|
-
});
|
|
656
|
-
function map(result, fn) {
|
|
657
|
-
if (result.isOk) {
|
|
658
|
-
const val = fn(result.value);
|
|
659
|
-
if (val instanceof Promise) {
|
|
660
|
-
return val.then((newVal) => ok(newVal));
|
|
661
|
-
} else {
|
|
662
|
-
return ok(val);
|
|
673
|
+
// src/utils/shadow-root.ts
|
|
674
|
+
var globalStyleSheet;
|
|
675
|
+
function createShadowRoot(cmpMeta) {
|
|
676
|
+
var _a;
|
|
677
|
+
const opts = { mode: "open" };
|
|
678
|
+
if (BUILD.shadowDelegatesFocus) {
|
|
679
|
+
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
680
|
+
}
|
|
681
|
+
if (BUILD.shadowSlotAssignmentManual) {
|
|
682
|
+
const isManual = !!(cmpMeta.$flags$ & 1024 /* shadowSlotAssignmentManual */);
|
|
683
|
+
if (isManual) {
|
|
684
|
+
opts.slotAssignment = "manual";
|
|
663
685
|
}
|
|
664
686
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
687
|
+
const shadowRoot = this.attachShadow(opts);
|
|
688
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
689
|
+
if (globalStyleSheet) {
|
|
690
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
691
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
692
|
+
} else {
|
|
693
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
694
|
+
}
|
|
668
695
|
}
|
|
669
|
-
throw "should never get here";
|
|
670
696
|
}
|
|
671
|
-
var unwrap = (result) => {
|
|
672
|
-
if (result.isOk) {
|
|
673
|
-
return result.value;
|
|
674
|
-
} else {
|
|
675
|
-
throw result.value;
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
var unwrapErr = (result) => {
|
|
679
|
-
if (result.isErr) {
|
|
680
|
-
return result.value;
|
|
681
|
-
} else {
|
|
682
|
-
throw result.value;
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
697
|
var updateFallbackSlotVisibility = (elm) => {
|
|
686
698
|
const childNodes = internalCall(elm, "childNodes");
|
|
687
699
|
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
@@ -787,7 +799,7 @@ function patchSlotNode(node) {
|
|
|
787
799
|
const slotName = this["s-sn"];
|
|
788
800
|
if (opts == null ? void 0 : opts.flatten) {
|
|
789
801
|
console.error(`
|
|
790
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
802
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
791
803
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
792
804
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
793
805
|
`);
|
|
@@ -835,7 +847,8 @@ var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
|
835
847
|
patchSlotRemoveChild(hostElementPrototype);
|
|
836
848
|
};
|
|
837
849
|
var patchCloneNode = (HostElementPrototype) => {
|
|
838
|
-
|
|
850
|
+
if (HostElementPrototype.__cloneNode) return;
|
|
851
|
+
const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;
|
|
839
852
|
HostElementPrototype.cloneNode = function(deep) {
|
|
840
853
|
const srcNode = this;
|
|
841
854
|
const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
|
|
@@ -880,6 +893,7 @@ var patchCloneNode = (HostElementPrototype) => {
|
|
|
880
893
|
};
|
|
881
894
|
};
|
|
882
895
|
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
896
|
+
if (HostElementPrototype.__appendChild) return;
|
|
883
897
|
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
884
898
|
HostElementPrototype.appendChild = function(newChild) {
|
|
885
899
|
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
@@ -897,6 +911,7 @@ var patchSlotAppendChild = (HostElementPrototype) => {
|
|
|
897
911
|
};
|
|
898
912
|
};
|
|
899
913
|
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
914
|
+
if (ElementPrototype.__removeChild) return;
|
|
900
915
|
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
901
916
|
ElementPrototype.removeChild = function(toRemove) {
|
|
902
917
|
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
@@ -912,6 +927,7 @@ var patchSlotRemoveChild = (ElementPrototype) => {
|
|
|
912
927
|
};
|
|
913
928
|
};
|
|
914
929
|
var patchSlotPrepend = (HostElementPrototype) => {
|
|
930
|
+
if (HostElementPrototype.__prepend) return;
|
|
915
931
|
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
916
932
|
HostElementPrototype.prepend = function(...newChildren) {
|
|
917
933
|
newChildren.forEach((newChild) => {
|
|
@@ -938,6 +954,7 @@ var patchSlotPrepend = (HostElementPrototype) => {
|
|
|
938
954
|
};
|
|
939
955
|
};
|
|
940
956
|
var patchSlotAppend = (HostElementPrototype) => {
|
|
957
|
+
if (HostElementPrototype.__append) return;
|
|
941
958
|
HostElementPrototype.__append = HostElementPrototype.append;
|
|
942
959
|
HostElementPrototype.append = function(...newChildren) {
|
|
943
960
|
newChildren.forEach((newChild) => {
|
|
@@ -949,6 +966,7 @@ var patchSlotAppend = (HostElementPrototype) => {
|
|
|
949
966
|
};
|
|
950
967
|
};
|
|
951
968
|
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
969
|
+
if (HostElementPrototype.__insertAdjacentHTML) return;
|
|
952
970
|
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
953
971
|
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
954
972
|
if (position !== "afterbegin" && position !== "beforeend") {
|
|
@@ -974,6 +992,7 @@ var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
|
974
992
|
};
|
|
975
993
|
};
|
|
976
994
|
var patchInsertBefore = (HostElementPrototype) => {
|
|
995
|
+
if (HostElementPrototype.__insertBefore) return;
|
|
977
996
|
const eleProto = HostElementPrototype;
|
|
978
997
|
if (eleProto.__insertBefore) return;
|
|
979
998
|
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
@@ -1008,6 +1027,7 @@ var patchInsertBefore = (HostElementPrototype) => {
|
|
|
1008
1027
|
};
|
|
1009
1028
|
};
|
|
1010
1029
|
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
1030
|
+
if (HostElementPrototype.__insertAdjacentElement) return;
|
|
1011
1031
|
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
1012
1032
|
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
1013
1033
|
if (position !== "afterbegin" && position !== "beforeend") {
|
|
@@ -1174,6 +1194,9 @@ var validNodesPatches = [
|
|
|
1174
1194
|
"parentNode"
|
|
1175
1195
|
];
|
|
1176
1196
|
function patchHostOriginalAccessor(accessorName, node) {
|
|
1197
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
1198
|
+
return;
|
|
1199
|
+
}
|
|
1177
1200
|
let accessor;
|
|
1178
1201
|
if (validElementPatches.includes(accessorName)) {
|
|
1179
1202
|
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
@@ -1245,11 +1268,13 @@ var inspect = (ref) => {
|
|
|
1245
1268
|
needsRerender: !!(flags & 512 /* needsRerender */)
|
|
1246
1269
|
},
|
|
1247
1270
|
instanceValues: hostRef.$instanceValues$,
|
|
1271
|
+
serializerValues: hostRef.$serializerValues$,
|
|
1248
1272
|
ancestorComponent: hostRef.$ancestorComponent$,
|
|
1249
1273
|
hostElement,
|
|
1250
1274
|
lazyInstance: hostRef.$lazyInstance$,
|
|
1251
1275
|
vnode: hostRef.$vnode$,
|
|
1252
1276
|
modeName: hostRef.$modeName$,
|
|
1277
|
+
fetchedCbList: hostRef.$fetchedCbList$,
|
|
1253
1278
|
onReadyPromise: hostRef.$onReadyPromise$,
|
|
1254
1279
|
onReadyResolve: hostRef.$onReadyResolve$,
|
|
1255
1280
|
onInstancePromise: hostRef.$onInstancePromise$,
|
|
@@ -1278,7 +1303,172 @@ var installDevTools = () => {
|
|
|
1278
1303
|
};
|
|
1279
1304
|
}
|
|
1280
1305
|
};
|
|
1306
|
+
|
|
1307
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
1308
|
+
function queryNonceMetaTagContent(doc) {
|
|
1309
|
+
var _a, _b, _c;
|
|
1310
|
+
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;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
// src/runtime/styles.ts
|
|
1314
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1315
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1316
|
+
let style = styles.get(scopeId2);
|
|
1317
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1318
|
+
style = style || new CSSStyleSheet();
|
|
1319
|
+
if (typeof style === "string") {
|
|
1320
|
+
style = cssText;
|
|
1321
|
+
} else {
|
|
1322
|
+
style.replaceSync(cssText);
|
|
1323
|
+
}
|
|
1324
|
+
} else {
|
|
1325
|
+
style = cssText;
|
|
1326
|
+
}
|
|
1327
|
+
styles.set(scopeId2, style);
|
|
1328
|
+
};
|
|
1329
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1330
|
+
var _a, _b, _c;
|
|
1331
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1332
|
+
const style = styles.get(scopeId2);
|
|
1333
|
+
if (!BUILD.attachStyles || !win.document) {
|
|
1334
|
+
return scopeId2;
|
|
1335
|
+
}
|
|
1336
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1337
|
+
if (style) {
|
|
1338
|
+
if (typeof style === "string") {
|
|
1339
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1340
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1341
|
+
let styleElm;
|
|
1342
|
+
if (!appliedStyles) {
|
|
1343
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1344
|
+
}
|
|
1345
|
+
const existingStyleElm = (BUILD.hydrateClientSide || BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1346
|
+
if (existingStyleElm) {
|
|
1347
|
+
existingStyleElm.textContent = style;
|
|
1348
|
+
} else if (!appliedStyles.has(scopeId2)) {
|
|
1349
|
+
styleElm = win.document.createElement("style");
|
|
1350
|
+
styleElm.textContent = style;
|
|
1351
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1352
|
+
if (nonce != null) {
|
|
1353
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1354
|
+
}
|
|
1355
|
+
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */ || cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1356
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1357
|
+
}
|
|
1358
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1359
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1360
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1361
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1362
|
+
styleContainerNode.insertBefore(
|
|
1363
|
+
styleElm,
|
|
1364
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1365
|
+
);
|
|
1366
|
+
} else if ("host" in styleContainerNode) {
|
|
1367
|
+
if (supportsConstructableStylesheets) {
|
|
1368
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
1369
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
1370
|
+
stylesheet.replaceSync(style);
|
|
1371
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1372
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1373
|
+
} else {
|
|
1374
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1375
|
+
}
|
|
1376
|
+
} else {
|
|
1377
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1378
|
+
if (existingStyleContainer && !BUILD.hotModuleReplacement) {
|
|
1379
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
1380
|
+
} else {
|
|
1381
|
+
styleContainerNode.prepend(styleElm);
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
} else {
|
|
1385
|
+
styleContainerNode.append(styleElm);
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1389
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1390
|
+
}
|
|
1391
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1392
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
1393
|
+
}
|
|
1394
|
+
if (appliedStyles) {
|
|
1395
|
+
appliedStyles.add(scopeId2);
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
} else if (BUILD.constructableCSS) {
|
|
1399
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1400
|
+
if (!appliedStyles) {
|
|
1401
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1402
|
+
}
|
|
1403
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1404
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
1405
|
+
let stylesheet;
|
|
1406
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
1407
|
+
stylesheet = style;
|
|
1408
|
+
} else {
|
|
1409
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
1410
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
1411
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1415
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
1416
|
+
} else {
|
|
1417
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
1418
|
+
}
|
|
1419
|
+
appliedStyles.add(scopeId2);
|
|
1420
|
+
if (BUILD.hydrateClientSide && "host" in styleContainerNode) {
|
|
1421
|
+
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1422
|
+
if (ssrStyleElm) {
|
|
1423
|
+
writeTask(() => ssrStyleElm.remove());
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
return scopeId2;
|
|
1430
|
+
};
|
|
1431
|
+
var attachStyles = (hostRef) => {
|
|
1432
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1433
|
+
const elm = hostRef.$hostElement$;
|
|
1434
|
+
const flags = cmpMeta.$flags$;
|
|
1435
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1436
|
+
const scopeId2 = addStyle(
|
|
1437
|
+
BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1438
|
+
cmpMeta,
|
|
1439
|
+
hostRef.$modeName$
|
|
1440
|
+
);
|
|
1441
|
+
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
|
|
1442
|
+
elm["s-sc"] = scopeId2;
|
|
1443
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1444
|
+
}
|
|
1445
|
+
endAttachStyles();
|
|
1446
|
+
};
|
|
1447
|
+
var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1448
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1449
|
+
var hydrateScopedToShadow = () => {
|
|
1450
|
+
if (!win.document) {
|
|
1451
|
+
return;
|
|
1452
|
+
}
|
|
1453
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1454
|
+
let i2 = 0;
|
|
1455
|
+
for (; i2 < styles2.length; i2++) {
|
|
1456
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
// src/utils/helpers.ts
|
|
1461
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
1462
|
+
var isComplexType = (o) => {
|
|
1463
|
+
o = typeof o;
|
|
1464
|
+
return o === "object" || o === "function";
|
|
1465
|
+
};
|
|
1466
|
+
|
|
1467
|
+
// src/runtime/vdom/h.ts
|
|
1281
1468
|
var h = (nodeName, vnodeData, ...children) => {
|
|
1469
|
+
if (typeof nodeName === "string") {
|
|
1470
|
+
nodeName = transformTag(nodeName);
|
|
1471
|
+
}
|
|
1282
1472
|
let child = null;
|
|
1283
1473
|
let key = null;
|
|
1284
1474
|
let slotName = null;
|
|
@@ -1354,7 +1544,8 @@ var newVNode = (tag, text) => {
|
|
|
1354
1544
|
const vnode = {
|
|
1355
1545
|
$flags$: 0,
|
|
1356
1546
|
$tag$: tag,
|
|
1357
|
-
|
|
1547
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
1548
|
+
$text$: text != null ? text : null,
|
|
1358
1549
|
$elm$: null,
|
|
1359
1550
|
$children$: null
|
|
1360
1551
|
};
|
|
@@ -1418,6 +1609,7 @@ var validateInputProperties = (inputElm) => {
|
|
|
1418
1609
|
|
|
1419
1610
|
// src/runtime/client-hydrate.ts
|
|
1420
1611
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1612
|
+
var _a, _b, _c, _d;
|
|
1421
1613
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1422
1614
|
const shadowRoot = hostElm.shadowRoot;
|
|
1423
1615
|
const childRenderNodes = [];
|
|
@@ -1460,10 +1652,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1460
1652
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1461
1653
|
const node = childRenderNode.$elm$;
|
|
1462
1654
|
if (!shadowRoot) {
|
|
1463
|
-
node["s-hn"] = tagName.toUpperCase();
|
|
1655
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
1464
1656
|
if (childRenderNode.$tag$ === "slot") {
|
|
1465
1657
|
node["s-cr"] = hostElm["s-cr"];
|
|
1466
1658
|
}
|
|
1659
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1660
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1661
|
+
if (cmpMeta) {
|
|
1662
|
+
const scopeId3 = getScopeId(
|
|
1663
|
+
cmpMeta.$cmpMeta$,
|
|
1664
|
+
BUILD.mode ? childRenderNode.$elm$.getAttribute("s-mode") : void 0
|
|
1665
|
+
);
|
|
1666
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1667
|
+
if (styleSheet) {
|
|
1668
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1467
1671
|
}
|
|
1468
1672
|
if (childRenderNode.$tag$ === "slot") {
|
|
1469
1673
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1479,7 +1683,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1479
1683
|
}
|
|
1480
1684
|
}
|
|
1481
1685
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1482
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1686
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1483
1687
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1484
1688
|
}
|
|
1485
1689
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1487,7 +1691,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1487
1691
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1488
1692
|
}
|
|
1489
1693
|
}
|
|
1490
|
-
|
|
1694
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1695
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1696
|
+
}
|
|
1491
1697
|
}
|
|
1492
1698
|
const hosts = [];
|
|
1493
1699
|
const snLen = slottedNodes.length;
|
|
@@ -1496,6 +1702,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1496
1702
|
let snGroupIdx;
|
|
1497
1703
|
let snGroupLen;
|
|
1498
1704
|
let slottedItem;
|
|
1705
|
+
let currentPos = 0;
|
|
1499
1706
|
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1500
1707
|
slotGroup = slottedNodes[snIndex];
|
|
1501
1708
|
if (!slotGroup || !slotGroup.length) continue;
|
|
@@ -1508,21 +1715,27 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1508
1715
|
}
|
|
1509
1716
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1510
1717
|
const hostEle = hosts[slottedItem.hostId];
|
|
1718
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1719
|
+
hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
|
|
1720
|
+
}
|
|
1511
1721
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1512
|
-
slottedItem.slot["s-cr"]
|
|
1513
|
-
|
|
1514
|
-
slottedItem.slot["s-cr"]
|
|
1515
|
-
|
|
1516
|
-
|
|
1722
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1723
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1724
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1725
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1726
|
+
} else {
|
|
1727
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
1731
|
+
if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1732
|
+
slottedItem.node.removeAttribute("slot");
|
|
1517
1733
|
}
|
|
1518
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1519
1734
|
if (BUILD.experimentalSlotFixes) {
|
|
1520
1735
|
patchSlottedNode(slottedItem.node);
|
|
1521
1736
|
}
|
|
1522
1737
|
}
|
|
1523
|
-
|
|
1524
|
-
hostEle.appendChild(slottedItem.node);
|
|
1525
|
-
}
|
|
1738
|
+
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
1526
1739
|
}
|
|
1527
1740
|
}
|
|
1528
1741
|
if (BUILD.scoped && scopeId2 && slotNodes.length) {
|
|
@@ -1535,20 +1748,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1535
1748
|
const rnLen = shadowRootNodes.length;
|
|
1536
1749
|
if (rnLen) {
|
|
1537
1750
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1538
|
-
|
|
1751
|
+
const node = shadowRootNodes[rnIdex];
|
|
1752
|
+
if (node) {
|
|
1753
|
+
shadowRoot.appendChild(node);
|
|
1754
|
+
}
|
|
1539
1755
|
}
|
|
1540
1756
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1541
|
-
if (typeof node["s-sn"] !== "string") {
|
|
1757
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1542
1758
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1543
1759
|
node.removeAttribute("hidden");
|
|
1544
|
-
} else if (node.nodeType === 8 /* CommentNode */
|
|
1760
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
|
|
1545
1761
|
node.parentNode.removeChild(node);
|
|
1546
1762
|
}
|
|
1547
1763
|
}
|
|
1548
1764
|
});
|
|
1549
1765
|
}
|
|
1550
1766
|
}
|
|
1551
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1552
1767
|
hostRef.$hostElement$ = hostElm;
|
|
1553
1768
|
endHydrate();
|
|
1554
1769
|
};
|
|
@@ -1580,7 +1795,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1580
1795
|
if (!parentVNode.$children$) {
|
|
1581
1796
|
parentVNode.$children$ = [];
|
|
1582
1797
|
}
|
|
1583
|
-
if (BUILD.scoped && scopeId2) {
|
|
1798
|
+
if (BUILD.scoped && scopeId2 && childIdSplt[0] === hostId) {
|
|
1584
1799
|
node["s-si"] = scopeId2;
|
|
1585
1800
|
childVNode.$attrs$.class += " " + scopeId2;
|
|
1586
1801
|
}
|
|
@@ -1709,10 +1924,6 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1709
1924
|
vnode.$elm$ = node;
|
|
1710
1925
|
vnode.$index$ = "0";
|
|
1711
1926
|
parentVNode.$children$ = [vnode];
|
|
1712
|
-
} else {
|
|
1713
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1714
|
-
node.remove();
|
|
1715
|
-
}
|
|
1716
1927
|
}
|
|
1717
1928
|
return parentVNode;
|
|
1718
1929
|
};
|
|
@@ -1768,10 +1979,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1768
1979
|
if (childVNode.$name$) {
|
|
1769
1980
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
1770
1981
|
}
|
|
1771
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1772
|
-
parentVNode.$elm
|
|
1982
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1983
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1773
1984
|
} else {
|
|
1774
|
-
node
|
|
1985
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1775
1986
|
}
|
|
1776
1987
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1777
1988
|
node.remove();
|
|
@@ -1786,8 +1997,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1786
1997
|
if (shouldMove) {
|
|
1787
1998
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1788
1999
|
}
|
|
1789
|
-
childRenderNodes.push(childVNode);
|
|
1790
2000
|
}
|
|
2001
|
+
childRenderNodes.push(childVNode);
|
|
1791
2002
|
slotNodes.push(childVNode);
|
|
1792
2003
|
if (!parentVNode.$children$) {
|
|
1793
2004
|
parentVNode.$children$ = [];
|
|
@@ -1795,13 +2006,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1795
2006
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1796
2007
|
}
|
|
1797
2008
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
2009
|
+
var _a, _b;
|
|
1798
2010
|
let slottedNode = slotNode.nextSibling;
|
|
1799
2011
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
2012
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
2013
|
+
do {
|
|
2014
|
+
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 */))) {
|
|
2015
|
+
slottedNode["s-sn"] = slotName;
|
|
2016
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
2017
|
+
}
|
|
2018
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
2019
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1805
2020
|
};
|
|
1806
2021
|
var findCorrespondingNode = (node, type) => {
|
|
1807
2022
|
let sibling = node;
|
|
@@ -1811,6 +2026,11 @@ var findCorrespondingNode = (node, type) => {
|
|
|
1811
2026
|
return sibling;
|
|
1812
2027
|
};
|
|
1813
2028
|
|
|
2029
|
+
// src/utils/regular-expression.ts
|
|
2030
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
2031
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2032
|
+
};
|
|
2033
|
+
|
|
1814
2034
|
// src/utils/shadow-css.ts
|
|
1815
2035
|
/**
|
|
1816
2036
|
* @license
|
|
@@ -1826,6 +2046,12 @@ var findCorrespondingNode = (node, type) => {
|
|
|
1826
2046
|
var safeSelector = (selector) => {
|
|
1827
2047
|
const placeholders = [];
|
|
1828
2048
|
let index = 0;
|
|
2049
|
+
selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
|
|
2050
|
+
const replaceBy = `__part-${index}__`;
|
|
2051
|
+
placeholders.push(keep);
|
|
2052
|
+
index++;
|
|
2053
|
+
return replaceBy;
|
|
2054
|
+
});
|
|
1829
2055
|
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
1830
2056
|
const replaceBy = `__ph-${index}__`;
|
|
1831
2057
|
placeholders.push(keep);
|
|
@@ -1845,6 +2071,7 @@ var safeSelector = (selector) => {
|
|
|
1845
2071
|
return ss;
|
|
1846
2072
|
};
|
|
1847
2073
|
var restoreSafeSelector = (placeholders, content) => {
|
|
2074
|
+
content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
1848
2075
|
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
1849
2076
|
};
|
|
1850
2077
|
var _polyfillHost = "-shadowcsshost";
|
|
@@ -1857,12 +2084,18 @@ var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim"
|
|
|
1857
2084
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
1858
2085
|
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
1859
2086
|
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
2087
|
+
var _safePartRe = /__part-(\d+)__/g;
|
|
1860
2088
|
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
1861
2089
|
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
1862
|
-
var createSupportsRuleRe = (selector) =>
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
2090
|
+
var createSupportsRuleRe = (selector) => {
|
|
2091
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
2092
|
+
return new RegExp(
|
|
2093
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
2094
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
2095
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
2096
|
+
"g"
|
|
2097
|
+
);
|
|
2098
|
+
};
|
|
1866
2099
|
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
1867
2100
|
var stripComments = (input) => {
|
|
1868
2101
|
return input.replace(_commentRe, "");
|
|
@@ -1934,7 +2167,19 @@ var escapeBlocks = (input) => {
|
|
|
1934
2167
|
return strEscapedBlocks;
|
|
1935
2168
|
};
|
|
1936
2169
|
var insertPolyfillHostInCssText = (cssText) => {
|
|
2170
|
+
const supportsBlocks = [];
|
|
2171
|
+
cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
|
|
2172
|
+
const placeholder = `__supports_${supportsBlocks.length}__`;
|
|
2173
|
+
supportsBlocks.push(selectorContent);
|
|
2174
|
+
return `@supports selector(${placeholder})`;
|
|
2175
|
+
});
|
|
2176
|
+
const _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
2177
|
+
const _colonHostRe = createSupportsRuleRe(":host");
|
|
2178
|
+
const _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
1937
2179
|
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
2180
|
+
supportsBlocks.forEach((originalSelector, index) => {
|
|
2181
|
+
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
2182
|
+
});
|
|
1938
2183
|
return cssText;
|
|
1939
2184
|
};
|
|
1940
2185
|
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
@@ -2054,7 +2299,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
2054
2299
|
let scopedSelector = "";
|
|
2055
2300
|
let startIndex = 0;
|
|
2056
2301
|
let res;
|
|
2057
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
2302
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
2058
2303
|
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
2059
2304
|
let shouldScope = !hasHost;
|
|
2060
2305
|
while ((res = sep.exec(selector)) !== null) {
|
|
@@ -2066,7 +2311,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
2066
2311
|
startIndex = sep.lastIndex;
|
|
2067
2312
|
}
|
|
2068
2313
|
const part = selector.substring(startIndex);
|
|
2069
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
2314
|
+
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
2070
2315
|
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
2071
2316
|
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
2072
2317
|
};
|
|
@@ -2123,13 +2368,43 @@ var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginal
|
|
|
2123
2368
|
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
2124
2369
|
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
2125
2370
|
};
|
|
2371
|
+
var expandPartSelectors = (cssText) => {
|
|
2372
|
+
const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
|
|
2373
|
+
return processRules(cssText, (rule) => {
|
|
2374
|
+
if (rule.selector[0] === "@") {
|
|
2375
|
+
return rule;
|
|
2376
|
+
}
|
|
2377
|
+
const selectors = rule.selector.split(",").map((sel) => {
|
|
2378
|
+
const out = [sel.trim()];
|
|
2379
|
+
let m;
|
|
2380
|
+
while ((m = partSelectorRe.exec(sel)) !== null) {
|
|
2381
|
+
const before = m[1].trimEnd();
|
|
2382
|
+
const partNames = m[2].trim().split(/\s+/);
|
|
2383
|
+
const after = m[3] || "";
|
|
2384
|
+
const partAttr = partNames.flatMap((p) => {
|
|
2385
|
+
if (!rule.selector.includes(`[part~="${p}"]`)) {
|
|
2386
|
+
return [`[part~="${p}"]`];
|
|
2387
|
+
}
|
|
2388
|
+
return [];
|
|
2389
|
+
}).join("");
|
|
2390
|
+
const expanded = `${before} ${partAttr}${after}`;
|
|
2391
|
+
if (!!partAttr && expanded !== sel.trim()) {
|
|
2392
|
+
out.push(expanded);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
return out.join(", ");
|
|
2396
|
+
});
|
|
2397
|
+
rule.selector = selectors.join(", ");
|
|
2398
|
+
return rule;
|
|
2399
|
+
});
|
|
2400
|
+
};
|
|
2126
2401
|
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
2127
2402
|
const hostScopeId = scopeId2 + "-h";
|
|
2128
2403
|
const slotScopeId = scopeId2 + "-s";
|
|
2129
2404
|
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
2130
2405
|
cssText = stripComments(cssText);
|
|
2131
2406
|
const orgSelectors = [];
|
|
2132
|
-
|
|
2407
|
+
{
|
|
2133
2408
|
const processCommentedSelector = (rule) => {
|
|
2134
2409
|
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
2135
2410
|
const comment = `/*!@${rule.selector}*/`;
|
|
@@ -2149,29 +2424,179 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
2149
2424
|
}
|
|
2150
2425
|
const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
2151
2426
|
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
2152
|
-
|
|
2427
|
+
{
|
|
2153
2428
|
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
2154
2429
|
cssText = cssText.replace(placeholder, comment);
|
|
2155
2430
|
});
|
|
2156
2431
|
}
|
|
2157
2432
|
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
2158
|
-
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
2433
|
+
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + "(?=\\s*[,{]|$)", "g");
|
|
2159
2434
|
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
2160
2435
|
});
|
|
2436
|
+
cssText = expandPartSelectors(cssText);
|
|
2161
2437
|
return cssText;
|
|
2162
2438
|
};
|
|
2163
2439
|
|
|
2164
2440
|
// src/runtime/mode.ts
|
|
2165
2441
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
2166
2442
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
2167
|
-
var getMode = (ref) =>
|
|
2168
|
-
var
|
|
2443
|
+
var getMode = (ref) => {
|
|
2444
|
+
var _a;
|
|
2445
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
2446
|
+
};
|
|
2447
|
+
|
|
2448
|
+
// src/runtime/normalize-watchers.ts
|
|
2449
|
+
var normalizeWatchers = (raw) => {
|
|
2450
|
+
if (!raw) return void 0;
|
|
2451
|
+
const keys = Object.keys(raw);
|
|
2452
|
+
if (keys.length === 0) return void 0;
|
|
2453
|
+
let hasLegacy = false;
|
|
2454
|
+
for (const propName of keys) {
|
|
2455
|
+
if (hasLegacy) break;
|
|
2456
|
+
for (const h2 of raw[propName]) {
|
|
2457
|
+
if (typeof h2 === "string") {
|
|
2458
|
+
hasLegacy = true;
|
|
2459
|
+
break;
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
if (!hasLegacy) return raw;
|
|
2464
|
+
const out = {};
|
|
2465
|
+
for (const propName of keys) {
|
|
2466
|
+
out[propName] = raw[propName].map(
|
|
2467
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
2468
|
+
);
|
|
2469
|
+
}
|
|
2470
|
+
return out;
|
|
2471
|
+
};
|
|
2472
|
+
|
|
2473
|
+
// src/utils/remote-value.ts
|
|
2474
|
+
var RemoteValue = class _RemoteValue {
|
|
2475
|
+
/**
|
|
2476
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2477
|
+
*
|
|
2478
|
+
* @param serialized The serialized LocalValue object
|
|
2479
|
+
* @returns The original JavaScript value/object
|
|
2480
|
+
*/
|
|
2481
|
+
static fromLocalValue(serialized) {
|
|
2482
|
+
const type = serialized[TYPE_CONSTANT];
|
|
2483
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2484
|
+
switch (type) {
|
|
2485
|
+
case "string" /* String */:
|
|
2486
|
+
return value;
|
|
2487
|
+
case "boolean" /* Boolean */:
|
|
2488
|
+
return value;
|
|
2489
|
+
case "bigint" /* BigInt */:
|
|
2490
|
+
return BigInt(value);
|
|
2491
|
+
case "undefined" /* Undefined */:
|
|
2492
|
+
return void 0;
|
|
2493
|
+
case "null" /* Null */:
|
|
2494
|
+
return null;
|
|
2495
|
+
case "number" /* Number */:
|
|
2496
|
+
if (value === "NaN") return NaN;
|
|
2497
|
+
if (value === "-0") return -0;
|
|
2498
|
+
if (value === "Infinity") return Infinity;
|
|
2499
|
+
if (value === "-Infinity") return -Infinity;
|
|
2500
|
+
return value;
|
|
2501
|
+
case "array" /* Array */:
|
|
2502
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2503
|
+
case "date" /* Date */:
|
|
2504
|
+
return new Date(value);
|
|
2505
|
+
case "map" /* Map */:
|
|
2506
|
+
const map = /* @__PURE__ */ new Map();
|
|
2507
|
+
for (const [key, val] of value) {
|
|
2508
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2509
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2510
|
+
map.set(deserializedKey, deserializedValue);
|
|
2511
|
+
}
|
|
2512
|
+
return map;
|
|
2513
|
+
case "object" /* Object */:
|
|
2514
|
+
const obj = {};
|
|
2515
|
+
for (const [key, val] of value) {
|
|
2516
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2517
|
+
}
|
|
2518
|
+
return obj;
|
|
2519
|
+
case "regexp" /* RegularExpression */:
|
|
2520
|
+
const { pattern, flags } = value;
|
|
2521
|
+
return new RegExp(pattern, flags);
|
|
2522
|
+
case "set" /* Set */:
|
|
2523
|
+
const set = /* @__PURE__ */ new Set();
|
|
2524
|
+
for (const item of value) {
|
|
2525
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
2526
|
+
}
|
|
2527
|
+
return set;
|
|
2528
|
+
case "symbol" /* Symbol */:
|
|
2529
|
+
return Symbol(value);
|
|
2530
|
+
default:
|
|
2531
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
/**
|
|
2535
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
2536
|
+
*
|
|
2537
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
2538
|
+
* @returns Array of deserialized JavaScript values
|
|
2539
|
+
*/
|
|
2540
|
+
static fromLocalValueArray(serializedValues) {
|
|
2541
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2542
|
+
}
|
|
2543
|
+
/**
|
|
2544
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2545
|
+
*
|
|
2546
|
+
* @param obj Object to verify
|
|
2547
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
2548
|
+
*/
|
|
2549
|
+
static isLocalValueObject(obj) {
|
|
2550
|
+
if (typeof obj !== "object" || obj === null) {
|
|
2551
|
+
return false;
|
|
2552
|
+
}
|
|
2553
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2554
|
+
return false;
|
|
2555
|
+
}
|
|
2556
|
+
const type = obj[TYPE_CONSTANT];
|
|
2557
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2558
|
+
if (!hasTypeProperty) {
|
|
2559
|
+
return false;
|
|
2560
|
+
}
|
|
2561
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2562
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2563
|
+
}
|
|
2564
|
+
return true;
|
|
2565
|
+
}
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
// src/utils/serialize.ts
|
|
2569
|
+
function decodeBase64Unicode(base64) {
|
|
2570
|
+
const binary = atob(base64);
|
|
2571
|
+
const bytes = new Uint8Array(binary.length);
|
|
2572
|
+
for (let i2 = 0; i2 < binary.length; i2++) {
|
|
2573
|
+
bytes[i2] = binary.charCodeAt(i2);
|
|
2574
|
+
}
|
|
2575
|
+
return new TextDecoder().decode(bytes);
|
|
2576
|
+
}
|
|
2577
|
+
function deserializeProperty(value) {
|
|
2578
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2579
|
+
return value;
|
|
2580
|
+
}
|
|
2581
|
+
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
// src/runtime/parse-property-value.ts
|
|
2585
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
2586
|
+
if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
2587
|
+
propValue = deserializeProperty(propValue);
|
|
2588
|
+
return propValue;
|
|
2589
|
+
}
|
|
2169
2590
|
if (propValue != null && !isComplexType(propValue)) {
|
|
2170
2591
|
if (BUILD.propBoolean && propType & 4 /* Boolean */) {
|
|
2171
|
-
|
|
2592
|
+
if (BUILD.formAssociated && isFormAssociated && typeof propValue === "string") {
|
|
2593
|
+
return propValue === "" || !!propValue;
|
|
2594
|
+
} else {
|
|
2595
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
2596
|
+
}
|
|
2172
2597
|
}
|
|
2173
2598
|
if (BUILD.propNumber && propType & 2 /* Number */) {
|
|
2174
|
-
return parseFloat(propValue);
|
|
2599
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
2175
2600
|
}
|
|
2176
2601
|
if (BUILD.propString && propType & 1 /* String */) {
|
|
2177
2602
|
return String(propValue);
|
|
@@ -2180,7 +2605,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
2180
2605
|
}
|
|
2181
2606
|
return propValue;
|
|
2182
2607
|
};
|
|
2183
|
-
var getElement = (ref) =>
|
|
2608
|
+
var getElement = (ref) => {
|
|
2609
|
+
var _a;
|
|
2610
|
+
return BUILD.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;
|
|
2611
|
+
};
|
|
2184
2612
|
|
|
2185
2613
|
// src/runtime/event-emitter.ts
|
|
2186
2614
|
var createEvent = (ref, name, flags) => {
|
|
@@ -2204,140 +2632,27 @@ var emitEvent = (elm, name, opts) => {
|
|
|
2204
2632
|
elm.dispatchEvent(ev);
|
|
2205
2633
|
return ev;
|
|
2206
2634
|
};
|
|
2207
|
-
var
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2635
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
2636
|
+
if (oldValue === newValue) {
|
|
2637
|
+
return;
|
|
2638
|
+
}
|
|
2639
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
2640
|
+
let ln = memberName.toLowerCase();
|
|
2641
|
+
if (BUILD.vdomClass && memberName === "class") {
|
|
2642
|
+
const classList = elm.classList;
|
|
2643
|
+
const oldClasses = parseClassList(oldValue);
|
|
2644
|
+
let newClasses = parseClassList(newValue);
|
|
2645
|
+
if (BUILD.hydrateClientSide && (elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
2646
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
2647
|
+
newClasses.push(scopeId2);
|
|
2648
|
+
oldClasses.forEach((c) => {
|
|
2649
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
2650
|
+
});
|
|
2651
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
2652
|
+
classList.add(...newClasses);
|
|
2214
2653
|
} else {
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
} else {
|
|
2218
|
-
style = cssText;
|
|
2219
|
-
}
|
|
2220
|
-
styles.set(scopeId2, style);
|
|
2221
|
-
};
|
|
2222
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
2223
|
-
var _a;
|
|
2224
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
2225
|
-
const style = styles.get(scopeId2);
|
|
2226
|
-
if (!BUILD.attachStyles || !win.document) {
|
|
2227
|
-
return scopeId2;
|
|
2228
|
-
}
|
|
2229
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
2230
|
-
if (style) {
|
|
2231
|
-
if (typeof style === "string") {
|
|
2232
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
2233
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
2234
|
-
let styleElm;
|
|
2235
|
-
if (!appliedStyles) {
|
|
2236
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
2237
|
-
}
|
|
2238
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
2239
|
-
if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
2240
|
-
styleElm.innerHTML = style;
|
|
2241
|
-
} else {
|
|
2242
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
2243
|
-
styleElm.innerHTML = style;
|
|
2244
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2245
|
-
if (nonce != null) {
|
|
2246
|
-
styleElm.setAttribute("nonce", nonce);
|
|
2247
|
-
}
|
|
2248
|
-
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2249
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
2250
|
-
}
|
|
2251
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
2252
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
2253
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
2254
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
2255
|
-
styleContainerNode.insertBefore(
|
|
2256
|
-
styleElm,
|
|
2257
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
2258
|
-
);
|
|
2259
|
-
} else if ("host" in styleContainerNode) {
|
|
2260
|
-
if (supportsConstructableStylesheets) {
|
|
2261
|
-
const stylesheet = new CSSStyleSheet();
|
|
2262
|
-
stylesheet.replaceSync(style);
|
|
2263
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
2264
|
-
} else {
|
|
2265
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
2266
|
-
if (existingStyleContainer) {
|
|
2267
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
2268
|
-
} else {
|
|
2269
|
-
styleContainerNode.prepend(styleElm);
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
2272
|
-
} else {
|
|
2273
|
-
styleContainerNode.append(styleElm);
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2277
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
2278
|
-
}
|
|
2279
|
-
}
|
|
2280
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2281
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
2282
|
-
}
|
|
2283
|
-
if (appliedStyles) {
|
|
2284
|
-
appliedStyles.add(scopeId2);
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
} else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
2288
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
return scopeId2;
|
|
2292
|
-
};
|
|
2293
|
-
var attachStyles = (hostRef) => {
|
|
2294
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
2295
|
-
const elm = hostRef.$hostElement$;
|
|
2296
|
-
const flags = cmpMeta.$flags$;
|
|
2297
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
2298
|
-
const scopeId2 = addStyle(
|
|
2299
|
-
BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
2300
|
-
cmpMeta,
|
|
2301
|
-
hostRef.$modeName$
|
|
2302
|
-
);
|
|
2303
|
-
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
2304
|
-
elm["s-sc"] = scopeId2;
|
|
2305
|
-
elm.classList.add(scopeId2 + "-h");
|
|
2306
|
-
}
|
|
2307
|
-
endAttachStyles();
|
|
2308
|
-
};
|
|
2309
|
-
var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
2310
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
2311
|
-
var hydrateScopedToShadow = () => {
|
|
2312
|
-
if (!win.document) {
|
|
2313
|
-
return;
|
|
2314
|
-
}
|
|
2315
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
2316
|
-
let i2 = 0;
|
|
2317
|
-
for (; i2 < styles2.length; i2++) {
|
|
2318
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
2319
|
-
}
|
|
2320
|
-
};
|
|
2321
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
2322
|
-
if (oldValue === newValue) {
|
|
2323
|
-
return;
|
|
2324
|
-
}
|
|
2325
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
2326
|
-
let ln = memberName.toLowerCase();
|
|
2327
|
-
if (BUILD.vdomClass && memberName === "class") {
|
|
2328
|
-
const classList = elm.classList;
|
|
2329
|
-
const oldClasses = parseClassList(oldValue);
|
|
2330
|
-
let newClasses = parseClassList(newValue);
|
|
2331
|
-
if (BUILD.hydrateClientSide && elm["s-si"] && initialRender) {
|
|
2332
|
-
newClasses.push(elm["s-si"]);
|
|
2333
|
-
oldClasses.forEach((c) => {
|
|
2334
|
-
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
2335
|
-
});
|
|
2336
|
-
newClasses = [...new Set(newClasses)];
|
|
2337
|
-
classList.add(...newClasses);
|
|
2338
|
-
} else {
|
|
2339
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
2340
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
2654
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
2655
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
2341
2656
|
}
|
|
2342
2657
|
} else if (BUILD.vdomStyle && memberName === "style") {
|
|
2343
2658
|
if (BUILD.updatable) {
|
|
@@ -2362,7 +2677,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2362
2677
|
}
|
|
2363
2678
|
} else if (BUILD.vdomKey && memberName === "key") ; else if (BUILD.vdomRef && memberName === "ref") {
|
|
2364
2679
|
if (newValue) {
|
|
2365
|
-
newValue
|
|
2680
|
+
queueRefAttachment(newValue, elm);
|
|
2366
2681
|
}
|
|
2367
2682
|
} else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
2368
2683
|
if (memberName[2] === "-") {
|
|
@@ -2382,6 +2697,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2382
2697
|
plt.ael(elm, memberName, newValue, capture);
|
|
2383
2698
|
}
|
|
2384
2699
|
}
|
|
2700
|
+
} else if (BUILD.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
2701
|
+
const propName = memberName.slice(5);
|
|
2702
|
+
let attrName;
|
|
2703
|
+
if (BUILD.member) {
|
|
2704
|
+
const hostRef = getHostRef(elm);
|
|
2705
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
2706
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
2707
|
+
if (memberMeta && memberMeta[1]) {
|
|
2708
|
+
attrName = memberMeta[1];
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
if (!attrName) {
|
|
2713
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2714
|
+
}
|
|
2715
|
+
if (newValue == null || newValue === false) {
|
|
2716
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
2717
|
+
elm.removeAttribute(attrName);
|
|
2718
|
+
}
|
|
2719
|
+
} else {
|
|
2720
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
2721
|
+
}
|
|
2722
|
+
return;
|
|
2723
|
+
} else if (BUILD.vdomPropOrAttr && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
2724
|
+
const propName = memberName.slice(5);
|
|
2725
|
+
try {
|
|
2726
|
+
elm[propName] = newValue;
|
|
2727
|
+
} catch (e) {
|
|
2728
|
+
}
|
|
2729
|
+
return;
|
|
2385
2730
|
} else if (BUILD.vdomPropOrAttr) {
|
|
2386
2731
|
const isComplex = isComplexType(newValue);
|
|
2387
2732
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -2390,7 +2735,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2390
2735
|
const n = newValue == null ? "" : newValue;
|
|
2391
2736
|
if (memberName === "list") {
|
|
2392
2737
|
isProp = false;
|
|
2393
|
-
} else if (oldValue == null || elm[memberName]
|
|
2738
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
2394
2739
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
2395
2740
|
elm[memberName] = n;
|
|
2396
2741
|
} else {
|
|
@@ -2491,6 +2836,8 @@ var useNativeShadowDom = false;
|
|
|
2491
2836
|
var checkSlotFallbackVisibility = false;
|
|
2492
2837
|
var checkSlotRelocate = false;
|
|
2493
2838
|
var isSvgMode = false;
|
|
2839
|
+
var refCallbacksToRemove = [];
|
|
2840
|
+
var refCallbacksToAttach = [];
|
|
2494
2841
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2495
2842
|
var _a;
|
|
2496
2843
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -2518,7 +2865,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2518
2865
|
`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`
|
|
2519
2866
|
);
|
|
2520
2867
|
}
|
|
2521
|
-
if (BUILD.vdomText && newVNode2.$text$
|
|
2868
|
+
if (BUILD.vdomText && newVNode2.$text$ != null) {
|
|
2522
2869
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2523
2870
|
} else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2524
2871
|
elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
@@ -2530,9 +2877,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2530
2877
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
2531
2878
|
}
|
|
2532
2879
|
if (!win.document) {
|
|
2533
|
-
throw new Error(
|
|
2534
|
-
"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."
|
|
2535
|
-
);
|
|
2880
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
2536
2881
|
}
|
|
2537
2882
|
elm = newVNode2.$elm$ = BUILD.svg ? win.document.createElementNS(
|
|
2538
2883
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -2546,14 +2891,15 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2546
2891
|
if (BUILD.vdomAttribute) {
|
|
2547
2892
|
updateElement(null, newVNode2, isSvgMode);
|
|
2548
2893
|
}
|
|
2549
|
-
if (BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
2894
|
+
if ((BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
2550
2895
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
2551
2896
|
}
|
|
2552
2897
|
if (newVNode2.$children$) {
|
|
2898
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
2553
2899
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
2554
2900
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
2555
2901
|
if (childNode) {
|
|
2556
|
-
|
|
2902
|
+
appendTarget.appendChild(childNode);
|
|
2557
2903
|
}
|
|
2558
2904
|
}
|
|
2559
2905
|
}
|
|
@@ -2575,13 +2921,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2575
2921
|
patchSlotNode(elm);
|
|
2576
2922
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2577
2923
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
2578
|
-
|
|
2579
|
-
relocateToHostRoot(oldParentVNode.$elm$);
|
|
2580
|
-
} else {
|
|
2581
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
2582
|
-
}
|
|
2924
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
2583
2925
|
}
|
|
2584
|
-
if (BUILD.scoped) {
|
|
2926
|
+
if (BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) {
|
|
2585
2927
|
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
2586
2928
|
}
|
|
2587
2929
|
}
|
|
@@ -2606,12 +2948,12 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
2606
2948
|
}
|
|
2607
2949
|
}
|
|
2608
2950
|
}
|
|
2609
|
-
plt.$flags$ &=
|
|
2951
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
2610
2952
|
};
|
|
2611
2953
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
2612
2954
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2613
2955
|
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
2614
|
-
if (parentElm["s-sr"]
|
|
2956
|
+
if (parentElm["s-sr"]) {
|
|
2615
2957
|
let node = parentElm;
|
|
2616
2958
|
while (node = node.nextSibling) {
|
|
2617
2959
|
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
@@ -2632,7 +2974,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
2632
2974
|
putBackInOriginalLocation(childNode, recursive);
|
|
2633
2975
|
}
|
|
2634
2976
|
}
|
|
2635
|
-
plt.$flags$ &=
|
|
2977
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
2636
2978
|
};
|
|
2637
2979
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
2638
2980
|
let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -2640,6 +2982,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
2640
2982
|
if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
2641
2983
|
containerElm = containerElm.shadowRoot;
|
|
2642
2984
|
}
|
|
2985
|
+
if (parentVNode.$tag$ === "template") {
|
|
2986
|
+
containerElm = containerElm.content;
|
|
2987
|
+
}
|
|
2643
2988
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
2644
2989
|
if (vnodes[startIdx]) {
|
|
2645
2990
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -2683,6 +3028,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2683
3028
|
let newEndVnode = newCh[newEndIdx];
|
|
2684
3029
|
let node;
|
|
2685
3030
|
let elmToMove;
|
|
3031
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
2686
3032
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
2687
3033
|
if (oldStartVnode == null) {
|
|
2688
3034
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -2705,7 +3051,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2705
3051
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
2706
3052
|
}
|
|
2707
3053
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
2708
|
-
insertBefore(
|
|
3054
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
2709
3055
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
2710
3056
|
newEndVnode = newCh[--newEndIdx];
|
|
2711
3057
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
@@ -2713,7 +3059,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
2713
3059
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
2714
3060
|
}
|
|
2715
3061
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
2716
|
-
insertBefore(
|
|
3062
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
2717
3063
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
2718
3064
|
newStartVnode = newCh[++newStartIdx];
|
|
2719
3065
|
} else {
|
|
@@ -2789,13 +3135,13 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2789
3135
|
const tag = newVNode2.$tag$;
|
|
2790
3136
|
const text = newVNode2.$text$;
|
|
2791
3137
|
let defaultHolder;
|
|
2792
|
-
if (!BUILD.vdomText || text
|
|
3138
|
+
if (!BUILD.vdomText || text == null) {
|
|
2793
3139
|
if (BUILD.svg) {
|
|
2794
3140
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
2795
3141
|
}
|
|
2796
3142
|
if (BUILD.vdomAttribute || BUILD.reflect) {
|
|
2797
3143
|
if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
|
|
2798
|
-
if (
|
|
3144
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
2799
3145
|
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
2800
3146
|
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
2801
3147
|
}
|
|
@@ -2814,6 +3160,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2814
3160
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2815
3161
|
) {
|
|
2816
3162
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
3163
|
+
} else if (BUILD.hydrateClientSide && isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
3164
|
+
newVNode2.$children$ = oldChildren;
|
|
2817
3165
|
}
|
|
2818
3166
|
if (BUILD.svg && isSvgMode && tag === "svg") {
|
|
2819
3167
|
isSvgMode = false;
|
|
@@ -2836,7 +3184,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2836
3184
|
const slotName = childNode["s-sn"];
|
|
2837
3185
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2838
3186
|
node = hostContentNodes[j];
|
|
2839
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!
|
|
3187
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
2840
3188
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
2841
3189
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2842
3190
|
checkSlotFallbackVisibility = true;
|
|
@@ -2876,23 +3224,40 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2876
3224
|
};
|
|
2877
3225
|
var nullifyVNodeRefs = (vNode) => {
|
|
2878
3226
|
if (BUILD.vdomRef) {
|
|
2879
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
3227
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
3228
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
3229
|
+
}
|
|
2880
3230
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
2881
3231
|
}
|
|
2882
3232
|
};
|
|
2883
|
-
var
|
|
2884
|
-
if (BUILD.
|
|
2885
|
-
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
|
-
|
|
3233
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
3234
|
+
if (BUILD.vdomRef) {
|
|
3235
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
3236
|
+
}
|
|
3237
|
+
};
|
|
3238
|
+
var flushQueuedRefCallbacks = () => {
|
|
3239
|
+
if (BUILD.vdomRef) {
|
|
3240
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
3241
|
+
refCallbacksToRemove.length = 0;
|
|
3242
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
3243
|
+
refCallbacksToAttach.length = 0;
|
|
3244
|
+
}
|
|
3245
|
+
};
|
|
3246
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
3247
|
+
if (BUILD.slotRelocation) {
|
|
3248
|
+
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
3249
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
3250
|
+
} else if (typeof newNode["s-sn"] === "string") {
|
|
3251
|
+
if (BUILD.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
3252
|
+
patchParentNode(newNode);
|
|
3253
|
+
}
|
|
3254
|
+
parent.insertBefore(newNode, reference);
|
|
3255
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3256
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
3257
|
+
return newNode;
|
|
2889
3258
|
}
|
|
2890
|
-
parent.insertBefore(newNode, reference);
|
|
2891
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
2892
|
-
if (slotNode) dispatchSlotChangeEvent(slotNode);
|
|
2893
|
-
return newNode;
|
|
2894
3259
|
}
|
|
2895
|
-
if (
|
|
3260
|
+
if (parent.__insertBefore) {
|
|
2896
3261
|
return parent.__insertBefore(newNode, reference);
|
|
2897
3262
|
} else {
|
|
2898
3263
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -2924,7 +3289,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2924
3289
|
const hostElm = hostRef.$hostElement$;
|
|
2925
3290
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2926
3291
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2927
|
-
const
|
|
3292
|
+
const isHostElement = isHost(renderFnResults);
|
|
3293
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
2928
3294
|
hostTagName = hostElm.tagName;
|
|
2929
3295
|
if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
|
|
2930
3296
|
throw new Error(`The <Host> must be the single root component.
|
|
@@ -2942,9 +3308,13 @@ render() {
|
|
|
2942
3308
|
}
|
|
2943
3309
|
if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
2944
3310
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
2945
|
-
cmpMeta.$attrsToReflect$.
|
|
2946
|
-
(
|
|
2947
|
-
|
|
3311
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
3312
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName)) {
|
|
3313
|
+
rootVnode.$attrs$[attribute] = hostRef.$serializerValues$.get(propName);
|
|
3314
|
+
} else {
|
|
3315
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
3316
|
+
}
|
|
3317
|
+
});
|
|
2948
3318
|
}
|
|
2949
3319
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
2950
3320
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -2975,19 +3345,27 @@ render() {
|
|
|
2975
3345
|
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
2976
3346
|
const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : win.document.createTextNode("");
|
|
2977
3347
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2978
|
-
insertBefore(
|
|
3348
|
+
insertBefore(
|
|
3349
|
+
nodeToRelocate.parentNode,
|
|
3350
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
3351
|
+
nodeToRelocate,
|
|
3352
|
+
isInitialLoad
|
|
3353
|
+
);
|
|
2979
3354
|
}
|
|
2980
3355
|
}
|
|
2981
3356
|
for (const relocateData of relocateNodes) {
|
|
2982
3357
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2983
3358
|
const slotRefNode = relocateData.$slotRefNode$;
|
|
3359
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
3360
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
3361
|
+
}
|
|
2984
3362
|
if (slotRefNode) {
|
|
2985
3363
|
const parentNodeRef = slotRefNode.parentNode;
|
|
2986
3364
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
2987
|
-
if (!BUILD.hydrateServerSide &&
|
|
2988
|
-
let orgLocationNode = (
|
|
3365
|
+
if (!BUILD.hydrateServerSide && insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
3366
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
2989
3367
|
while (orgLocationNode) {
|
|
2990
|
-
let refNode = (
|
|
3368
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
2991
3369
|
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
2992
3370
|
refNode = refNode.nextSibling;
|
|
2993
3371
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
@@ -3005,44 +3383,55 @@ render() {
|
|
|
3005
3383
|
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
3006
3384
|
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
3007
3385
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
3008
|
-
|
|
3009
|
-
|
|
3386
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
3387
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
3388
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
3389
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
3390
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
3391
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
3392
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
3393
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
3394
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
3395
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
3396
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
3010
3397
|
}
|
|
3011
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
3012
3398
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
3013
|
-
nodeToRelocate.hidden = (
|
|
3399
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
3014
3400
|
}
|
|
3015
3401
|
}
|
|
3016
3402
|
}
|
|
3017
3403
|
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
3018
|
-
} else {
|
|
3019
|
-
|
|
3020
|
-
if (isInitialLoad) {
|
|
3021
|
-
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
3022
|
-
}
|
|
3023
|
-
nodeToRelocate.hidden = true;
|
|
3024
|
-
}
|
|
3404
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
3405
|
+
nodeToRelocate.hidden = true;
|
|
3025
3406
|
}
|
|
3026
3407
|
}
|
|
3027
3408
|
}
|
|
3028
3409
|
if (checkSlotFallbackVisibility) {
|
|
3029
3410
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
3030
3411
|
}
|
|
3031
|
-
plt.$flags$ &=
|
|
3412
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
3032
3413
|
relocateNodes.length = 0;
|
|
3033
3414
|
}
|
|
3034
|
-
if (BUILD.
|
|
3415
|
+
if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
3035
3416
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
3036
3417
|
for (const childNode of children) {
|
|
3037
3418
|
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
3038
3419
|
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
3039
3420
|
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
3040
3421
|
}
|
|
3041
|
-
childNode.
|
|
3422
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
3423
|
+
childNode.hidden = true;
|
|
3424
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
3425
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
3426
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
3427
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
3428
|
+
childNode.parentNode.removeChild(childNode);
|
|
3429
|
+
}
|
|
3042
3430
|
}
|
|
3043
3431
|
}
|
|
3044
3432
|
}
|
|
3045
3433
|
contentRef = void 0;
|
|
3434
|
+
flushQueuedRefCallbacks();
|
|
3046
3435
|
};
|
|
3047
3436
|
var slotReferenceDebugNode = (slotVNode) => {
|
|
3048
3437
|
var _a;
|
|
@@ -3080,6 +3469,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
3080
3469
|
}
|
|
3081
3470
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
3082
3471
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
3472
|
+
if (isInitialLoad) {
|
|
3473
|
+
queueMicrotask(() => {
|
|
3474
|
+
dispatch();
|
|
3475
|
+
});
|
|
3476
|
+
return;
|
|
3477
|
+
}
|
|
3083
3478
|
return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
|
|
3084
3479
|
};
|
|
3085
3480
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -3093,11 +3488,20 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3093
3488
|
}
|
|
3094
3489
|
let maybePromise;
|
|
3095
3490
|
if (isInitialLoad) {
|
|
3096
|
-
if (BUILD.lazyLoad
|
|
3097
|
-
hostRef.$
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3491
|
+
if (BUILD.lazyLoad) {
|
|
3492
|
+
if (BUILD.slotRelocation && hostRef.$deferredConnectedCallback$) {
|
|
3493
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
3494
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
3495
|
+
}
|
|
3496
|
+
if (BUILD.hostListener) {
|
|
3497
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
3498
|
+
if (hostRef.$queuedListeners$) {
|
|
3499
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
3500
|
+
hostRef.$queuedListeners$ = void 0;
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
3504
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
3101
3505
|
}
|
|
3102
3506
|
}
|
|
3103
3507
|
emitLifecycleEvent(elm, "componentWillLoad");
|
|
@@ -3111,8 +3515,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3111
3515
|
endSchedule();
|
|
3112
3516
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
3113
3517
|
};
|
|
3114
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
3115
|
-
console.error(
|
|
3518
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
3519
|
+
console.error(err);
|
|
3116
3520
|
fn();
|
|
3117
3521
|
}) : fn();
|
|
3118
3522
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -3135,7 +3539,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
3135
3539
|
}
|
|
3136
3540
|
if (BUILD.isDev) {
|
|
3137
3541
|
hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
|
|
3138
|
-
hostRef.$flags$ &=
|
|
3542
|
+
hostRef.$flags$ &= -1025 /* devOnRender */;
|
|
3139
3543
|
}
|
|
3140
3544
|
if (BUILD.hydrateServerSide) {
|
|
3141
3545
|
try {
|
|
@@ -3163,7 +3567,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
3163
3567
|
if (childrenPromises.length === 0) {
|
|
3164
3568
|
postUpdate();
|
|
3165
3569
|
} else {
|
|
3166
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
3570
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
3167
3571
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
3168
3572
|
childrenPromises.length = 0;
|
|
3169
3573
|
}
|
|
@@ -3181,7 +3585,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3181
3585
|
renderingRef = instance;
|
|
3182
3586
|
instance = allRenderFn ? instance.render() : instance.render && instance.render();
|
|
3183
3587
|
if (updatable && taskQueue) {
|
|
3184
|
-
hostRef.$flags$ &=
|
|
3588
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
3185
3589
|
}
|
|
3186
3590
|
if (updatable || lazyLoad) {
|
|
3187
3591
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -3220,7 +3624,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3220
3624
|
}
|
|
3221
3625
|
safeCall(instance, "componentDidRender", void 0, elm);
|
|
3222
3626
|
if (BUILD.isDev) {
|
|
3223
|
-
hostRef.$flags$ &=
|
|
3627
|
+
hostRef.$flags$ &= -1025 /* devOnRender */;
|
|
3224
3628
|
}
|
|
3225
3629
|
emitLifecycleEvent(elm, "componentDidRender");
|
|
3226
3630
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
@@ -3233,7 +3637,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3233
3637
|
}
|
|
3234
3638
|
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
3235
3639
|
if (BUILD.isDev) {
|
|
3236
|
-
hostRef.$flags$ &=
|
|
3640
|
+
hostRef.$flags$ &= -2049 /* devOnDidLoad */;
|
|
3237
3641
|
}
|
|
3238
3642
|
emitLifecycleEvent(elm, "componentDidLoad");
|
|
3239
3643
|
endPostUpdate();
|
|
@@ -3249,7 +3653,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3249
3653
|
}
|
|
3250
3654
|
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
3251
3655
|
if (BUILD.isDev) {
|
|
3252
|
-
hostRef.$flags$ &=
|
|
3656
|
+
hostRef.$flags$ &= -1025 /* devOnRender */;
|
|
3253
3657
|
}
|
|
3254
3658
|
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
3255
3659
|
endPostUpdate();
|
|
@@ -3265,13 +3669,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
3265
3669
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
3266
3670
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
3267
3671
|
}
|
|
3268
|
-
hostRef.$flags$ &=
|
|
3672
|
+
hostRef.$flags$ &= -517;
|
|
3269
3673
|
}
|
|
3270
3674
|
};
|
|
3271
3675
|
var forceUpdate = (ref) => {
|
|
3676
|
+
var _a;
|
|
3272
3677
|
if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
|
|
3273
3678
|
const hostRef = getHostRef(ref);
|
|
3274
|
-
const isConnected = hostRef.$hostElement
|
|
3679
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
3275
3680
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
3276
3681
|
scheduleUpdate(hostRef, false);
|
|
3277
3682
|
}
|
|
@@ -3280,10 +3685,16 @@ var forceUpdate = (ref) => {
|
|
|
3280
3685
|
return false;
|
|
3281
3686
|
};
|
|
3282
3687
|
var appDidLoad = (who) => {
|
|
3688
|
+
var _a;
|
|
3283
3689
|
if (BUILD.asyncQueue) {
|
|
3284
3690
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
3285
3691
|
}
|
|
3286
3692
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
3693
|
+
if (BUILD.hydrateClientSide) {
|
|
3694
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
3695
|
+
plt.$orgLocNodes$.clear();
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3287
3698
|
if (BUILD.profile && performance.measure) {
|
|
3288
3699
|
performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
3289
3700
|
}
|
|
@@ -3330,20 +3741,49 @@ var serverSideConnected = (elm) => {
|
|
|
3330
3741
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
3331
3742
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
3332
3743
|
const hostRef = getHostRef(ref);
|
|
3744
|
+
if (!hostRef) {
|
|
3745
|
+
return;
|
|
3746
|
+
}
|
|
3333
3747
|
if (BUILD.lazyLoad && !hostRef) {
|
|
3334
3748
|
throw new Error(
|
|
3335
3749
|
`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).`
|
|
3336
3750
|
);
|
|
3337
3751
|
}
|
|
3752
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newVal) {
|
|
3753
|
+
return;
|
|
3754
|
+
}
|
|
3338
3755
|
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
|
|
3339
3756
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
3340
3757
|
const flags = hostRef.$flags$;
|
|
3341
3758
|
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3342
|
-
newVal = parsePropertyValue(
|
|
3759
|
+
newVal = parsePropertyValue(
|
|
3760
|
+
newVal,
|
|
3761
|
+
cmpMeta.$members$[propName][0],
|
|
3762
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3763
|
+
);
|
|
3343
3764
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
3344
3765
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
3345
3766
|
if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
3346
3767
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
3768
|
+
if (BUILD.serializer && BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
3769
|
+
if (cmpMeta.$serializers$ && cmpMeta.$serializers$[propName]) {
|
|
3770
|
+
const runSerializer = (inst) => {
|
|
3771
|
+
let attrVal = newVal;
|
|
3772
|
+
for (const serializer of cmpMeta.$serializers$[propName]) {
|
|
3773
|
+
const [[methodName]] = Object.entries(serializer);
|
|
3774
|
+
attrVal = inst[methodName](attrVal, propName);
|
|
3775
|
+
}
|
|
3776
|
+
hostRef.$serializerValues$.set(propName, attrVal);
|
|
3777
|
+
};
|
|
3778
|
+
if (instance) {
|
|
3779
|
+
runSerializer(instance);
|
|
3780
|
+
} else {
|
|
3781
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3782
|
+
runSerializer(hostRef.$lazyInstance$);
|
|
3783
|
+
});
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3347
3787
|
if (BUILD.isDev) {
|
|
3348
3788
|
if (hostRef.$flags$ & 1024 /* devOnRender */) {
|
|
3349
3789
|
consoleDevWarn(
|
|
@@ -3367,25 +3807,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
3367
3807
|
);
|
|
3368
3808
|
}
|
|
3369
3809
|
}
|
|
3370
|
-
if (
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3810
|
+
if (BUILD.propChangeCallback && cmpMeta.$watchers$) {
|
|
3811
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
3812
|
+
if (watchMethods) {
|
|
3813
|
+
watchMethods.map((watcher) => {
|
|
3814
|
+
try {
|
|
3815
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
3816
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
3817
|
+
if (!instance) {
|
|
3818
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
3819
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
3820
|
+
});
|
|
3821
|
+
} else {
|
|
3822
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
3823
|
+
}
|
|
3379
3824
|
}
|
|
3380
|
-
})
|
|
3381
|
-
|
|
3382
|
-
}
|
|
3383
|
-
if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
3384
|
-
if (instance.componentShouldUpdate) {
|
|
3385
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
3386
|
-
return;
|
|
3825
|
+
} catch (e) {
|
|
3826
|
+
consoleError(e, elm);
|
|
3387
3827
|
}
|
|
3828
|
+
});
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
if (BUILD.updatable && flags & 2 /* hasRendered */) {
|
|
3832
|
+
if (instance.componentShouldUpdate) {
|
|
3833
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
3834
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
3835
|
+
return;
|
|
3388
3836
|
}
|
|
3837
|
+
}
|
|
3838
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
3389
3839
|
scheduleUpdate(hostRef, false);
|
|
3390
3840
|
}
|
|
3391
3841
|
}
|
|
@@ -3407,10 +3857,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3407
3857
|
const originalFormAssociatedCallback = prototype[cbName];
|
|
3408
3858
|
Object.defineProperty(prototype, cbName, {
|
|
3409
3859
|
value(...args) {
|
|
3860
|
+
var _a2;
|
|
3410
3861
|
const hostRef = getHostRef(this);
|
|
3411
|
-
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : this;
|
|
3862
|
+
const instance = BUILD.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;
|
|
3412
3863
|
if (!instance) {
|
|
3413
|
-
hostRef.$onReadyPromise
|
|
3864
|
+
(_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
|
|
3414
3865
|
const cb = asyncInstance[cbName];
|
|
3415
3866
|
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
3416
3867
|
});
|
|
@@ -3422,14 +3873,22 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3422
3873
|
});
|
|
3423
3874
|
});
|
|
3424
3875
|
}
|
|
3425
|
-
if (BUILD.member && cmpMeta.$members$ || BUILD.
|
|
3426
|
-
if (BUILD.
|
|
3427
|
-
cmpMeta.$watchers$
|
|
3876
|
+
if (BUILD.member && cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
3877
|
+
if (BUILD.propChangeCallback) {
|
|
3878
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
3879
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
3880
|
+
}
|
|
3881
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
3882
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
3883
|
+
}
|
|
3884
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
3885
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
3886
|
+
}
|
|
3428
3887
|
}
|
|
3429
3888
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
3430
3889
|
members.map(([memberName, [memberFlags]]) => {
|
|
3431
3890
|
if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
3432
|
-
const { get: origGetter, set: origSetter } =
|
|
3891
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
3433
3892
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
3434
3893
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
3435
3894
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -3455,6 +3914,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3455
3914
|
Object.defineProperty(prototype, memberName, {
|
|
3456
3915
|
set(newValue) {
|
|
3457
3916
|
const ref = getHostRef(this);
|
|
3917
|
+
if (!ref) {
|
|
3918
|
+
return;
|
|
3919
|
+
}
|
|
3458
3920
|
if (BUILD.isDev) {
|
|
3459
3921
|
if (
|
|
3460
3922
|
// we are proxying the instance (not element)
|
|
@@ -3474,10 +3936,14 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3474
3936
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
3475
3937
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
3476
3938
|
newValue = ref.$instanceValues$.get(memberName);
|
|
3477
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
3478
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
3479
3939
|
}
|
|
3480
|
-
origSetter.apply(this, [
|
|
3940
|
+
origSetter.apply(this, [
|
|
3941
|
+
parsePropertyValue(
|
|
3942
|
+
newValue,
|
|
3943
|
+
memberFlags,
|
|
3944
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3945
|
+
)
|
|
3946
|
+
]);
|
|
3481
3947
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
3482
3948
|
setValue(this, memberName, newValue, cmpMeta);
|
|
3483
3949
|
return;
|
|
@@ -3490,7 +3956,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3490
3956
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
3491
3957
|
setValue(this, memberName, newValue, cmpMeta);
|
|
3492
3958
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
3493
|
-
ref.$
|
|
3959
|
+
ref.$fetchedCbList$.push(() => {
|
|
3494
3960
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
3495
3961
|
ref.$lazyInstance$[memberName] = newValue;
|
|
3496
3962
|
}
|
|
@@ -3503,13 +3969,19 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3503
3969
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
3504
3970
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
3505
3971
|
}
|
|
3506
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
3972
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
3973
|
+
newValue,
|
|
3974
|
+
memberFlags,
|
|
3975
|
+
BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3976
|
+
);
|
|
3507
3977
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
3508
3978
|
};
|
|
3509
3979
|
if (ref.$lazyInstance$) {
|
|
3510
3980
|
setterSetVal();
|
|
3511
3981
|
} else {
|
|
3512
|
-
ref.$
|
|
3982
|
+
ref.$fetchedCbList$.push(() => {
|
|
3983
|
+
setterSetVal();
|
|
3984
|
+
});
|
|
3513
3985
|
}
|
|
3514
3986
|
}
|
|
3515
3987
|
}
|
|
@@ -3533,30 +4005,62 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3533
4005
|
plt.jmp(() => {
|
|
3534
4006
|
var _a2;
|
|
3535
4007
|
const propName = attrNameToPropName.get(attrName);
|
|
4008
|
+
const hostRef = getHostRef(this);
|
|
4009
|
+
if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {
|
|
4010
|
+
return;
|
|
4011
|
+
}
|
|
3536
4012
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
3537
4013
|
newValue = this[propName];
|
|
3538
4014
|
delete this[propName];
|
|
4015
|
+
}
|
|
4016
|
+
if (BUILD.deserializer && cmpMeta.$deserializers$ && cmpMeta.$deserializers$[propName]) {
|
|
4017
|
+
const setVal = (methodName, instance) => {
|
|
4018
|
+
const deserializeVal = instance == null ? void 0 : instance[methodName](newValue, propName);
|
|
4019
|
+
if (deserializeVal !== this[propName]) {
|
|
4020
|
+
this[propName] = deserializeVal;
|
|
4021
|
+
}
|
|
4022
|
+
};
|
|
4023
|
+
for (const deserializer of cmpMeta.$deserializers$[propName]) {
|
|
4024
|
+
const [[methodName]] = Object.entries(deserializer);
|
|
4025
|
+
if (BUILD.lazyLoad) {
|
|
4026
|
+
if (hostRef.$lazyInstance$) {
|
|
4027
|
+
setVal(methodName, hostRef.$lazyInstance$);
|
|
4028
|
+
} else {
|
|
4029
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
4030
|
+
setVal(methodName, hostRef.$lazyInstance$);
|
|
4031
|
+
});
|
|
4032
|
+
}
|
|
4033
|
+
} else {
|
|
4034
|
+
setVal(methodName, this);
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
return;
|
|
3539
4038
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
3540
4039
|
this[propName] == newValue) {
|
|
3541
4040
|
return;
|
|
3542
4041
|
} else if (propName == null) {
|
|
3543
|
-
const hostRef = getHostRef(this);
|
|
3544
4042
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
3545
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
4043
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
3546
4044
|
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
3547
4045
|
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3548
4046
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
3549
|
-
entry == null ? void 0 : entry.forEach((
|
|
3550
|
-
|
|
3551
|
-
|
|
4047
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
4048
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
4049
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
4050
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
3552
4051
|
}
|
|
3553
4052
|
});
|
|
3554
4053
|
}
|
|
3555
4054
|
return;
|
|
3556
4055
|
}
|
|
4056
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
4057
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
4058
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
4059
|
+
if (isBooleanTarget) {
|
|
4060
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
4061
|
+
}
|
|
3557
4062
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
3558
|
-
|
|
3559
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
4063
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
3560
4064
|
this[propName] = newValue;
|
|
3561
4065
|
}
|
|
3562
4066
|
});
|
|
@@ -3564,7 +4068,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3564
4068
|
Cstr.observedAttributes = Array.from(
|
|
3565
4069
|
/* @__PURE__ */ new Set([
|
|
3566
4070
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
3567
|
-
...members.filter(([_, m]) => m[0] &
|
|
4071
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
3568
4072
|
var _a2;
|
|
3569
4073
|
const attrName = m[1] || propName;
|
|
3570
4074
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -3583,83 +4087,103 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3583
4087
|
// src/runtime/initialize-component.ts
|
|
3584
4088
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
3585
4089
|
let Cstr;
|
|
3586
|
-
|
|
3587
|
-
hostRef.$flags$
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
if (!Cstr) {
|
|
3602
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
3603
|
-
}
|
|
3604
|
-
if (BUILD.member && !Cstr.isProxied) {
|
|
3605
|
-
if (BUILD.watchCallback) {
|
|
3606
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
4090
|
+
try {
|
|
4091
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
4092
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
4093
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
4094
|
+
if (BUILD.lazyLoad && bundleId) {
|
|
4095
|
+
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
4096
|
+
if (CstrImport && "then" in CstrImport) {
|
|
4097
|
+
const endLoad = uniqueTime(
|
|
4098
|
+
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
4099
|
+
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
4100
|
+
);
|
|
4101
|
+
Cstr = await CstrImport;
|
|
4102
|
+
endLoad();
|
|
4103
|
+
} else {
|
|
4104
|
+
Cstr = CstrImport;
|
|
3607
4105
|
}
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
if (BUILD.watchCallback) {
|
|
3624
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
3625
|
-
}
|
|
3626
|
-
endNewInstance();
|
|
3627
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3628
|
-
} else {
|
|
3629
|
-
Cstr = elm.constructor;
|
|
3630
|
-
const cmpTag = elm.localName;
|
|
3631
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
3632
|
-
}
|
|
3633
|
-
if (BUILD.style && Cstr && Cstr.style) {
|
|
3634
|
-
let style;
|
|
3635
|
-
if (typeof Cstr.style === "string") {
|
|
3636
|
-
style = Cstr.style;
|
|
3637
|
-
} else if (BUILD.mode && typeof Cstr.style !== "string") {
|
|
3638
|
-
hostRef.$modeName$ = computeMode(elm);
|
|
3639
|
-
if (hostRef.$modeName$) {
|
|
3640
|
-
style = Cstr.style[hostRef.$modeName$];
|
|
4106
|
+
if (!Cstr) {
|
|
4107
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
4108
|
+
}
|
|
4109
|
+
if (BUILD.member && !Cstr.isProxied) {
|
|
4110
|
+
if (BUILD.propChangeCallback) {
|
|
4111
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
4112
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
4113
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
4114
|
+
}
|
|
4115
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
4116
|
+
Cstr.isProxied = true;
|
|
4117
|
+
}
|
|
4118
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
4119
|
+
if (BUILD.member) {
|
|
4120
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
3641
4121
|
}
|
|
3642
|
-
|
|
3643
|
-
|
|
4122
|
+
try {
|
|
4123
|
+
new Cstr(hostRef);
|
|
4124
|
+
} catch (e) {
|
|
4125
|
+
consoleError(e, elm);
|
|
3644
4126
|
}
|
|
4127
|
+
if (BUILD.member) {
|
|
4128
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
4129
|
+
}
|
|
4130
|
+
if (BUILD.propChangeCallback) {
|
|
4131
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
4132
|
+
}
|
|
4133
|
+
endNewInstance();
|
|
4134
|
+
const needsDeferredCallback = BUILD.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
4135
|
+
if (!needsDeferredCallback) {
|
|
4136
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
4137
|
+
} else {
|
|
4138
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
4139
|
+
}
|
|
4140
|
+
} else {
|
|
4141
|
+
Cstr = elm.constructor;
|
|
4142
|
+
const cmpTag = elm.localName;
|
|
4143
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
3645
4144
|
}
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
4145
|
+
if (BUILD.style && Cstr && Cstr.style) {
|
|
4146
|
+
let style;
|
|
4147
|
+
if (typeof Cstr.style === "string") {
|
|
4148
|
+
style = Cstr.style;
|
|
4149
|
+
} else if (BUILD.mode && typeof Cstr.style !== "string") {
|
|
4150
|
+
hostRef.$modeName$ = computeMode(elm);
|
|
4151
|
+
if (hostRef.$modeName$) {
|
|
4152
|
+
style = Cstr.style[hostRef.$modeName$];
|
|
4153
|
+
}
|
|
4154
|
+
if (BUILD.hydrateServerSide && hostRef.$modeName$) {
|
|
4155
|
+
elm.setAttribute("s-mode", hostRef.$modeName$);
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
4158
|
+
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
4159
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement && hmrVersionId) {
|
|
4160
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
4161
|
+
if (BUILD.hydrateServerSide && BUILD.shadowDom) {
|
|
4162
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
4163
|
+
style = scopeCss(style, scopeId2);
|
|
4164
|
+
}
|
|
4165
|
+
}
|
|
4166
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
4167
|
+
endRegisterStyles();
|
|
3651
4168
|
}
|
|
3652
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
3653
|
-
endRegisterStyles();
|
|
3654
4169
|
}
|
|
3655
4170
|
}
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
4171
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
4172
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
4173
|
+
if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
|
|
4174
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
4175
|
+
} else {
|
|
4176
|
+
schedule();
|
|
4177
|
+
}
|
|
4178
|
+
} catch (e) {
|
|
4179
|
+
consoleError(e, elm);
|
|
4180
|
+
if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
|
|
4181
|
+
hostRef.$onRenderResolve$();
|
|
4182
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
4183
|
+
}
|
|
4184
|
+
if (BUILD.asyncLoading && hostRef.$onReadyResolve$) {
|
|
4185
|
+
hostRef.$onReadyResolve$(elm);
|
|
4186
|
+
}
|
|
3663
4187
|
}
|
|
3664
4188
|
};
|
|
3665
4189
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -3672,6 +4196,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
3672
4196
|
var connectedCallback = (elm) => {
|
|
3673
4197
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3674
4198
|
const hostRef = getHostRef(elm);
|
|
4199
|
+
if (!hostRef) {
|
|
4200
|
+
return;
|
|
4201
|
+
}
|
|
3675
4202
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
3676
4203
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
3677
4204
|
if (BUILD.hostListenerTargetParent) {
|
|
@@ -3710,7 +4237,7 @@ var connectedCallback = (elm) => {
|
|
|
3710
4237
|
}
|
|
3711
4238
|
if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
|
|
3712
4239
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
3713
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
4240
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
3714
4241
|
const value = elm[memberName];
|
|
3715
4242
|
delete elm[memberName];
|
|
3716
4243
|
elm[memberName] = value;
|
|
@@ -3752,7 +4279,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
3752
4279
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
3753
4280
|
const hostRef = getHostRef(elm);
|
|
3754
4281
|
if (BUILD.hostListener) {
|
|
3755
|
-
if (hostRef.$rmListeners$) {
|
|
4282
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
3756
4283
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
3757
4284
|
hostRef.$rmListeners$ = void 0;
|
|
3758
4285
|
}
|
|
@@ -3775,104 +4302,115 @@ var disconnectedCallback = async (elm) => {
|
|
|
3775
4302
|
|
|
3776
4303
|
// src/runtime/bootstrap-custom-element.ts
|
|
3777
4304
|
var defineCustomElement = (Cstr, compactMeta) => {
|
|
3778
|
-
customElements.define(
|
|
4305
|
+
customElements.define(
|
|
4306
|
+
transformTag(compactMeta[1]),
|
|
4307
|
+
proxyCustomElement(Cstr, compactMeta)
|
|
4308
|
+
);
|
|
3779
4309
|
};
|
|
3780
4310
|
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
3781
4311
|
const cmpMeta = {
|
|
3782
4312
|
$flags$: compactMeta[0],
|
|
3783
4313
|
$tagName$: compactMeta[1]
|
|
3784
4314
|
};
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
if (BUILD.hostListener) {
|
|
3789
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
3790
|
-
}
|
|
3791
|
-
if (BUILD.watchCallback) {
|
|
3792
|
-
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
3793
|
-
}
|
|
3794
|
-
if (BUILD.reflect) {
|
|
3795
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
3796
|
-
}
|
|
3797
|
-
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3798
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3799
|
-
}
|
|
3800
|
-
if (BUILD.experimentalSlotFixes) {
|
|
3801
|
-
if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
3802
|
-
patchPseudoShadowDom(Cstr.prototype);
|
|
4315
|
+
try {
|
|
4316
|
+
if (BUILD.member) {
|
|
4317
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
3803
4318
|
}
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
patchChildSlotNodes(Cstr.prototype);
|
|
4319
|
+
if (BUILD.hostListener) {
|
|
4320
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
3807
4321
|
}
|
|
3808
|
-
if (BUILD.
|
|
3809
|
-
|
|
4322
|
+
if (BUILD.propChangeCallback) {
|
|
4323
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);
|
|
4324
|
+
cmpMeta.$deserializers$ = Cstr.$deserializers$;
|
|
4325
|
+
cmpMeta.$serializers$ = Cstr.$serializers$;
|
|
3810
4326
|
}
|
|
3811
|
-
if (BUILD.
|
|
3812
|
-
|
|
4327
|
+
if (BUILD.reflect) {
|
|
4328
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
3813
4329
|
}
|
|
3814
|
-
if (BUILD.
|
|
3815
|
-
|
|
4330
|
+
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
4331
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3816
4332
|
}
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
}
|
|
3834
|
-
connectedCallback(this);
|
|
3835
|
-
if (originalConnectedCallback) {
|
|
3836
|
-
originalConnectedCallback.call(this);
|
|
3837
|
-
}
|
|
3838
|
-
},
|
|
3839
|
-
disconnectedCallback() {
|
|
3840
|
-
disconnectedCallback(this);
|
|
3841
|
-
if (originalDisconnectedCallback) {
|
|
3842
|
-
originalDisconnectedCallback.call(this);
|
|
4333
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
4334
|
+
if (BUILD.experimentalSlotFixes) {
|
|
4335
|
+
patchPseudoShadowDom(Cstr.prototype);
|
|
4336
|
+
} else {
|
|
4337
|
+
if (BUILD.slotChildNodesFix) {
|
|
4338
|
+
patchChildSlotNodes(Cstr.prototype);
|
|
4339
|
+
}
|
|
4340
|
+
if (BUILD.cloneNodeFix) {
|
|
4341
|
+
patchCloneNode(Cstr.prototype);
|
|
4342
|
+
}
|
|
4343
|
+
if (BUILD.appendChildSlotFix) {
|
|
4344
|
+
patchSlotAppendChild(Cstr.prototype);
|
|
4345
|
+
}
|
|
4346
|
+
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4347
|
+
patchTextContent(Cstr.prototype);
|
|
4348
|
+
}
|
|
3843
4349
|
}
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
4350
|
+
} else if (BUILD.cloneNodeFix) {
|
|
4351
|
+
patchCloneNode(Cstr.prototype);
|
|
4352
|
+
}
|
|
4353
|
+
if (BUILD.hydrateClientSide && BUILD.shadowDom) {
|
|
4354
|
+
hydrateScopedToShadow();
|
|
4355
|
+
}
|
|
4356
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
4357
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
4358
|
+
Object.assign(Cstr.prototype, {
|
|
4359
|
+
__hasHostListenerAttached: false,
|
|
4360
|
+
__registerHost() {
|
|
4361
|
+
registerHost(this, cmpMeta);
|
|
4362
|
+
},
|
|
4363
|
+
connectedCallback() {
|
|
4364
|
+
if (!this.__hasHostListenerAttached) {
|
|
4365
|
+
const hostRef = getHostRef(this);
|
|
4366
|
+
if (!hostRef) {
|
|
4367
|
+
return;
|
|
4368
|
+
}
|
|
4369
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
4370
|
+
this.__hasHostListenerAttached = true;
|
|
4371
|
+
}
|
|
4372
|
+
connectedCallback(this);
|
|
4373
|
+
if (originalConnectedCallback) {
|
|
4374
|
+
originalConnectedCallback.call(this);
|
|
4375
|
+
}
|
|
4376
|
+
},
|
|
4377
|
+
disconnectedCallback() {
|
|
4378
|
+
disconnectedCallback(this);
|
|
4379
|
+
if (originalDisconnectedCallback) {
|
|
4380
|
+
originalDisconnectedCallback.call(this);
|
|
4381
|
+
}
|
|
4382
|
+
},
|
|
4383
|
+
__attachShadow() {
|
|
4384
|
+
if (supportsShadow) {
|
|
4385
|
+
if (!this.shadowRoot) {
|
|
4386
|
+
createShadowRoot.call(this, cmpMeta);
|
|
3853
4387
|
} else {
|
|
3854
|
-
this.
|
|
4388
|
+
if (this.shadowRoot.mode !== "open") {
|
|
4389
|
+
throw new Error(
|
|
4390
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
4391
|
+
);
|
|
4392
|
+
}
|
|
3855
4393
|
}
|
|
3856
4394
|
} else {
|
|
3857
|
-
|
|
3858
|
-
throw new Error(
|
|
3859
|
-
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
3860
|
-
);
|
|
3861
|
-
}
|
|
4395
|
+
this.shadowRoot = this;
|
|
3862
4396
|
}
|
|
3863
|
-
} else {
|
|
3864
|
-
this.shadowRoot = this;
|
|
3865
4397
|
}
|
|
3866
|
-
}
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
4398
|
+
});
|
|
4399
|
+
Object.defineProperty(Cstr, "is", {
|
|
4400
|
+
value: cmpMeta.$tagName$,
|
|
4401
|
+
configurable: true
|
|
4402
|
+
});
|
|
4403
|
+
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
|
4404
|
+
} catch (e) {
|
|
4405
|
+
consoleError(e);
|
|
4406
|
+
return Cstr;
|
|
4407
|
+
}
|
|
3870
4408
|
};
|
|
3871
4409
|
var forceModeUpdate = (elm) => {
|
|
3872
4410
|
if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
|
|
3873
4411
|
const mode = computeMode(elm);
|
|
3874
4412
|
const hostRef = getHostRef(elm);
|
|
3875
|
-
if (hostRef.$modeName$ !== mode) {
|
|
4413
|
+
if (hostRef && hostRef.$modeName$ !== mode) {
|
|
3876
4414
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
3877
4415
|
const oldScopeId = elm["s-sc"];
|
|
3878
4416
|
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
@@ -3894,6 +4432,9 @@ var forceModeUpdate = (elm) => {
|
|
|
3894
4432
|
// src/runtime/hmr-component.ts
|
|
3895
4433
|
var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
3896
4434
|
const hostRef = getHostRef(hostElement);
|
|
4435
|
+
if (!hostRef) {
|
|
4436
|
+
return;
|
|
4437
|
+
}
|
|
3897
4438
|
hostRef.$flags$ = 1 /* hasConnected */;
|
|
3898
4439
|
initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
|
|
3899
4440
|
};
|
|
@@ -3935,7 +4476,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3935
4476
|
let hasSlotRelocation = false;
|
|
3936
4477
|
lazyBundles.map((lazyBundle) => {
|
|
3937
4478
|
lazyBundle[1].map((compactMeta) => {
|
|
3938
|
-
var _a2;
|
|
4479
|
+
var _a2, _b;
|
|
3939
4480
|
const cmpMeta = {
|
|
3940
4481
|
$flags$: compactMeta[0],
|
|
3941
4482
|
$tagName$: compactMeta[1],
|
|
@@ -3954,31 +4495,28 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3954
4495
|
if (BUILD.reflect) {
|
|
3955
4496
|
cmpMeta.$attrsToReflect$ = [];
|
|
3956
4497
|
}
|
|
3957
|
-
if (BUILD.
|
|
3958
|
-
cmpMeta.$watchers$ = (
|
|
4498
|
+
if (BUILD.propChangeCallback) {
|
|
4499
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
4500
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
4501
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
3959
4502
|
}
|
|
3960
4503
|
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3961
4504
|
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
3962
4505
|
}
|
|
3963
|
-
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName
|
|
4506
|
+
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : transformTag(cmpMeta.$tagName$);
|
|
3964
4507
|
const HostElement = class extends HTMLElement {
|
|
4508
|
+
["s-p"];
|
|
4509
|
+
["s-rc"];
|
|
4510
|
+
hasRegisteredEventListeners = false;
|
|
3965
4511
|
// StencilLazyHost
|
|
3966
4512
|
constructor(self) {
|
|
3967
4513
|
super(self);
|
|
3968
|
-
this.hasRegisteredEventListeners = false;
|
|
3969
4514
|
self = this;
|
|
3970
4515
|
registerHost(self, cmpMeta);
|
|
3971
4516
|
if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
3972
4517
|
if (supportsShadow) {
|
|
3973
4518
|
if (!self.shadowRoot) {
|
|
3974
|
-
|
|
3975
|
-
self.attachShadow({
|
|
3976
|
-
mode: "open",
|
|
3977
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
3978
|
-
});
|
|
3979
|
-
} else {
|
|
3980
|
-
self.attachShadow({ mode: "open" });
|
|
3981
|
-
}
|
|
4519
|
+
createShadowRoot.call(self, cmpMeta);
|
|
3982
4520
|
} else {
|
|
3983
4521
|
if (self.shadowRoot.mode !== "open") {
|
|
3984
4522
|
throw new Error(
|
|
@@ -3993,6 +4531,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3993
4531
|
}
|
|
3994
4532
|
connectedCallback() {
|
|
3995
4533
|
const hostRef = getHostRef(this);
|
|
4534
|
+
if (!hostRef) {
|
|
4535
|
+
return;
|
|
4536
|
+
}
|
|
3996
4537
|
if (!this.hasRegisteredEventListeners) {
|
|
3997
4538
|
this.hasRegisteredEventListeners = true;
|
|
3998
4539
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
@@ -4012,6 +4553,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4012
4553
|
plt.raf(() => {
|
|
4013
4554
|
var _a3;
|
|
4014
4555
|
const hostRef = getHostRef(this);
|
|
4556
|
+
if (!hostRef) {
|
|
4557
|
+
return;
|
|
4558
|
+
}
|
|
4015
4559
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
4016
4560
|
if (i2 > -1) {
|
|
4017
4561
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -4022,26 +4566,29 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4022
4566
|
});
|
|
4023
4567
|
}
|
|
4024
4568
|
componentOnReady() {
|
|
4025
|
-
|
|
4569
|
+
var _a3;
|
|
4570
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
4026
4571
|
}
|
|
4027
4572
|
};
|
|
4028
|
-
if (
|
|
4029
|
-
if (BUILD.
|
|
4573
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
4574
|
+
if (BUILD.experimentalSlotFixes) {
|
|
4030
4575
|
patchPseudoShadowDom(HostElement.prototype);
|
|
4576
|
+
} else {
|
|
4577
|
+
if (BUILD.slotChildNodesFix) {
|
|
4578
|
+
patchChildSlotNodes(HostElement.prototype);
|
|
4579
|
+
}
|
|
4580
|
+
if (BUILD.cloneNodeFix) {
|
|
4581
|
+
patchCloneNode(HostElement.prototype);
|
|
4582
|
+
}
|
|
4583
|
+
if (BUILD.appendChildSlotFix) {
|
|
4584
|
+
patchSlotAppendChild(HostElement.prototype);
|
|
4585
|
+
}
|
|
4586
|
+
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4587
|
+
patchTextContent(HostElement.prototype);
|
|
4588
|
+
}
|
|
4031
4589
|
}
|
|
4032
|
-
} else {
|
|
4033
|
-
|
|
4034
|
-
patchChildSlotNodes(HostElement.prototype);
|
|
4035
|
-
}
|
|
4036
|
-
if (BUILD.cloneNodeFix) {
|
|
4037
|
-
patchCloneNode(HostElement.prototype);
|
|
4038
|
-
}
|
|
4039
|
-
if (BUILD.appendChildSlotFix) {
|
|
4040
|
-
patchSlotAppendChild(HostElement.prototype);
|
|
4041
|
-
}
|
|
4042
|
-
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
4043
|
-
patchTextContent(HostElement.prototype);
|
|
4044
|
-
}
|
|
4590
|
+
} else if (BUILD.cloneNodeFix) {
|
|
4591
|
+
patchCloneNode(HostElement.prototype);
|
|
4045
4592
|
}
|
|
4046
4593
|
if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
|
|
4047
4594
|
HostElement.formAssociated = true;
|
|
@@ -4062,7 +4609,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4062
4609
|
});
|
|
4063
4610
|
});
|
|
4064
4611
|
if (cmpTags.length > 0) {
|
|
4065
|
-
if (hasSlotRelocation) {
|
|
4612
|
+
if (BUILD.slotRelocation && hasSlotRelocation) {
|
|
4066
4613
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
4067
4614
|
}
|
|
4068
4615
|
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
@@ -4145,6 +4692,12 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
4145
4692
|
passive: (flags & 1 /* Passive */) !== 0,
|
|
4146
4693
|
capture: (flags & 2 /* Capture */) !== 0
|
|
4147
4694
|
} : (flags & 2 /* Capture */) !== 0;
|
|
4695
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
4696
|
+
} : globalThis.HTMLElement || class {
|
|
4697
|
+
};
|
|
4698
|
+
function Mixin(...mixins) {
|
|
4699
|
+
return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);
|
|
4700
|
+
}
|
|
4148
4701
|
|
|
4149
4702
|
// src/runtime/nonce.ts
|
|
4150
4703
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
@@ -4152,6 +4705,90 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
|
4152
4705
|
// src/runtime/platform-options.ts
|
|
4153
4706
|
var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
4154
4707
|
|
|
4708
|
+
// src/runtime/render.ts
|
|
4709
|
+
var hostRefCache = /* @__PURE__ */ new WeakMap();
|
|
4710
|
+
function render(vnode, container) {
|
|
4711
|
+
let ref = hostRefCache.get(container);
|
|
4712
|
+
if (!ref) {
|
|
4713
|
+
const cmpMeta = {
|
|
4714
|
+
$flags$: 0,
|
|
4715
|
+
$tagName$: container.tagName
|
|
4716
|
+
};
|
|
4717
|
+
ref = {
|
|
4718
|
+
$flags$: 0,
|
|
4719
|
+
$cmpMeta$: cmpMeta,
|
|
4720
|
+
$hostElement$: container
|
|
4721
|
+
};
|
|
4722
|
+
hostRefCache.set(container, ref);
|
|
4723
|
+
}
|
|
4724
|
+
renderVdom(ref, vnode);
|
|
4725
|
+
}
|
|
4726
|
+
|
|
4727
|
+
// src/runtime/tag-transform.ts
|
|
4728
|
+
var tagTransformer = void 0;
|
|
4729
|
+
function transformTag(tag) {
|
|
4730
|
+
if (!tagTransformer) return tag;
|
|
4731
|
+
return tagTransformer(tag);
|
|
4732
|
+
}
|
|
4733
|
+
function setTagTransformer(transformer) {
|
|
4734
|
+
if (tagTransformer) {
|
|
4735
|
+
console.warn(`
|
|
4736
|
+
A tagTransformer has already been set.
|
|
4737
|
+
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
4738
|
+
`);
|
|
4739
|
+
}
|
|
4740
|
+
tagTransformer = transformer;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4743
|
+
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
4744
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
4745
|
+
const propsObj = props || {};
|
|
4746
|
+
const { children, ...rest } = propsObj;
|
|
4747
|
+
let vnodeData = rest;
|
|
4748
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4749
|
+
vnodeData = { ...rest, key };
|
|
4750
|
+
}
|
|
4751
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4752
|
+
vnodeData = null;
|
|
4753
|
+
}
|
|
4754
|
+
if (children !== void 0) {
|
|
4755
|
+
if (Array.isArray(children)) {
|
|
4756
|
+
return h(type, vnodeData, ...children);
|
|
4757
|
+
}
|
|
4758
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4759
|
+
return h(type, vnodeData, children);
|
|
4760
|
+
}
|
|
4761
|
+
return h(type, vnodeData, children);
|
|
4762
|
+
}
|
|
4763
|
+
return h(type, vnodeData);
|
|
4764
|
+
}
|
|
4765
|
+
|
|
4766
|
+
// src/runtime/vdom/jsx-runtime.ts
|
|
4767
|
+
function jsx(type, props, key) {
|
|
4768
|
+
const propsObj = props || {};
|
|
4769
|
+
const { children, ...rest } = propsObj;
|
|
4770
|
+
let vnodeData = rest;
|
|
4771
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4772
|
+
vnodeData = { ...rest, key };
|
|
4773
|
+
}
|
|
4774
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4775
|
+
vnodeData = null;
|
|
4776
|
+
}
|
|
4777
|
+
if (children !== void 0) {
|
|
4778
|
+
if (Array.isArray(children)) {
|
|
4779
|
+
return h(type, vnodeData, ...children);
|
|
4780
|
+
}
|
|
4781
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4782
|
+
return h(type, vnodeData, children);
|
|
4783
|
+
}
|
|
4784
|
+
return h(type, vnodeData, children);
|
|
4785
|
+
}
|
|
4786
|
+
return h(type, vnodeData);
|
|
4787
|
+
}
|
|
4788
|
+
function jsxs(type, props, key) {
|
|
4789
|
+
return jsx(type, props, key);
|
|
4790
|
+
}
|
|
4791
|
+
|
|
4155
4792
|
// src/runtime/vdom/vdom-annotations.ts
|
|
4156
4793
|
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
4157
4794
|
if (doc != null) {
|
|
@@ -4297,7 +4934,7 @@ var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, inde
|
|
|
4297
4934
|
}
|
|
4298
4935
|
};
|
|
4299
4936
|
|
|
4300
|
-
|
|
4937
|
+
var StencilCore = /*#__PURE__*/Object.freeze({
|
|
4301
4938
|
__proto__: null,
|
|
4302
4939
|
BUILD: BUILD,
|
|
4303
4940
|
Build: Build,
|
|
@@ -4305,7 +4942,9 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4305
4942
|
Fragment: Fragment,
|
|
4306
4943
|
H: H,
|
|
4307
4944
|
HTMLElement: H,
|
|
4945
|
+
HYDRATED_STYLE_ID: HYDRATED_STYLE_ID,
|
|
4308
4946
|
Host: Host,
|
|
4947
|
+
Mixin: Mixin,
|
|
4309
4948
|
NAMESPACE: NAMESPACE,
|
|
4310
4949
|
STENCIL_DEV_MODE: STENCIL_DEV_MODE,
|
|
4311
4950
|
addHostEventListeners: addHostEventListeners,
|
|
@@ -4330,9 +4969,14 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4330
4969
|
h: h,
|
|
4331
4970
|
insertVdomAnnotations: insertVdomAnnotations,
|
|
4332
4971
|
isMemberInElement: isMemberInElement,
|
|
4972
|
+
jsx: jsx,
|
|
4973
|
+
jsxDEV: jsxDEV,
|
|
4974
|
+
jsxs: jsxs,
|
|
4333
4975
|
loadModule: loadModule,
|
|
4334
4976
|
modeResolutionChain: modeResolutionChain,
|
|
4977
|
+
needsScopedSSR: needsScopedSSR,
|
|
4335
4978
|
nextTick: nextTick,
|
|
4979
|
+
normalizeWatchers: normalizeWatchers,
|
|
4336
4980
|
parsePropertyValue: parsePropertyValue,
|
|
4337
4981
|
plt: plt,
|
|
4338
4982
|
postUpdateComponent: postUpdateComponent,
|
|
@@ -4342,6 +4986,7 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4342
4986
|
readTask: readTask,
|
|
4343
4987
|
registerHost: registerHost,
|
|
4344
4988
|
registerInstance: registerInstance,
|
|
4989
|
+
render: render,
|
|
4345
4990
|
renderVdom: renderVdom,
|
|
4346
4991
|
setAssetPath: setAssetPath,
|
|
4347
4992
|
setErrorHandler: setErrorHandler,
|
|
@@ -4349,11 +4994,15 @@ const StencilCore = /*#__PURE__*/Object.freeze({
|
|
|
4349
4994
|
setNonce: setNonce,
|
|
4350
4995
|
setPlatformHelpers: setPlatformHelpers,
|
|
4351
4996
|
setPlatformOptions: setPlatformOptions,
|
|
4997
|
+
setScopedSSR: setScopedSSR,
|
|
4998
|
+
setTagTransformer: setTagTransformer,
|
|
4352
4999
|
setValue: setValue,
|
|
4353
5000
|
styles: styles,
|
|
4354
5001
|
supportsConstructableStylesheets: supportsConstructableStylesheets,
|
|
4355
5002
|
supportsListenerOptions: supportsListenerOptions,
|
|
5003
|
+
supportsMutableAdoptedStyleSheets: supportsMutableAdoptedStyleSheets,
|
|
4356
5004
|
supportsShadow: supportsShadow,
|
|
5005
|
+
transformTag: transformTag,
|
|
4357
5006
|
win: win,
|
|
4358
5007
|
writeTask: writeTask
|
|
4359
5008
|
});
|