@dropi/ui 0.1.21 → 0.1.22
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/cjs/dropi-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +3 -3
- package/dist/cjs/dropi-alert.cjs.entry.js +2 -2
- package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
- package/dist/cjs/dropi-banner-external.cjs.entry.js +12 -2
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dropi-card-product.cjs.entry.js +7 -5
- package/dist/cjs/dropi-card-section.cjs.entry.js +3 -3
- package/dist/cjs/dropi-carousel.cjs.entry.js +7 -2
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/dropi-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dropi-chips.cjs.entry.js +2 -2
- package/dist/cjs/dropi-city-selector.cjs.entry.js +10 -2
- package/dist/cjs/dropi-color-picker.cjs.entry.js +4 -4
- package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
- package/dist/cjs/dropi-country-selector.cjs.entry.js +3 -3
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +1 -1
- package/dist/cjs/dropi-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/dropi-drawer.cjs.entry.js +7 -4
- package/dist/cjs/dropi-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/dropi-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +4 -2
- package/dist/cjs/dropi-file-upload.cjs.entry.js +6 -5
- package/dist/cjs/dropi-icon.cjs.entry.js +21 -4
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +3 -2
- package/dist/cjs/dropi-input_3.cjs.entry.js +13 -11
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +6 -2
- package/dist/cjs/dropi-logo.cjs.entry.js +12 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +7 -4
- package/dist/cjs/dropi-modal.cjs.entry.js +19 -12
- package/dist/cjs/dropi-navbar.cjs.entry.js +3 -3
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +7 -7
- package/dist/cjs/dropi-phone-input.cjs.entry.js +4 -4
- package/dist/cjs/dropi-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +3 -3
- package/dist/cjs/dropi-select.cjs.entry.js +6 -2
- package/dist/cjs/dropi-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dropi-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/dropi-steps.cjs.entry.js +2 -2
- package/dist/cjs/dropi-switch.cjs.entry.js +2 -2
- package/dist/cjs/dropi-table.cjs.entry.js +14 -7
- package/dist/cjs/dropi-tabs.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
- package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
- package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
- package/dist/cjs/dropi-toast.cjs.entry.js +6 -5
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +3 -3
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +2 -2
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +2 -2
- package/dist/cjs/{index-077kM98l.js → index-C8kwDvpf.js} +1041 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +1 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +0 -6
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +10 -1
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +4 -5
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +1 -1
- package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +1 -1
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +12 -1
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.js +2 -2
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +2 -2
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +6 -4
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +2 -2
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +15 -10
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +2 -2
- package/dist/collection/components/dropi-chips/dropi-chips.js +1 -1
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +9 -1
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +3 -3
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +2 -2
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +4 -4
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +12 -9
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +2 -2
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +5 -4
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +3 -1
- package/dist/collection/components/dropi-icon/dropi-icon.css +5 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +19 -2
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +1 -1
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +5 -4
- package/dist/collection/components/dropi-input/dropi-input.js +12 -10
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +5 -1
- package/dist/collection/components/dropi-logo/dropi-logo.js +12 -1
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +6 -3
- package/dist/collection/components/dropi-modal/dropi-modal.js +22 -15
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +6 -6
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +3 -3
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +2 -2
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
- package/dist/collection/components/dropi-search/dropi-search.js +2 -2
- package/dist/collection/components/dropi-select/dropi-select.js +5 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +1 -1
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +1 -1
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +1 -1
- package/dist/collection/components/dropi-steps/dropi-steps.js +1 -1
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-table/dropi-table.js +13 -6
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.js +5 -5
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.css +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +4 -3
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +2 -2
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/dropi-accordion-item.js +1 -1
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-avatars.js +1 -1
- package/dist/components/dropi-badge-legacy.js +1 -1
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.js +1 -1
- package/dist/components/dropi-breadcrumb.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.js +1 -1
- package/dist/components/dropi-card-product.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-color-picker.js +1 -1
- package/dist/components/dropi-country-flags.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.js +1 -1
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.js +1 -1
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-media-player.js +1 -1
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.js +1 -1
- package/dist/components/dropi-simple-stepper.js +1 -1
- package/dist/components/dropi-skeleton.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DWzWYR5X.js → p-B9R8Apw7.js} +1 -1
- package/dist/components/p-B_Ace02i.js +1 -0
- package/dist/components/p-BrjO_JXp.js +1 -0
- package/dist/components/p-BwhxWL4p.js +1 -0
- package/dist/components/p-Bz2jXX3R.js +1 -0
- package/dist/components/{p-CDvkvedb.js → p-CV4X3Gm4.js} +1 -1
- package/dist/components/p-CV_oz45O.js +1 -0
- package/dist/components/{p-CzHupXu8.js → p-D-vQQQNz.js} +1 -1
- package/dist/components/p-D13d88W3.js +1 -0
- package/dist/components/p-DGUfr98Z.js +1 -0
- package/dist/components/p-a-hGQrJd.js +1 -0
- package/dist/components/{p-DjO9xpVc.js → p-o5gyrbbD.js} +1 -1
- package/dist/dropi-ui/dropi-ui.css +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/{p-475a16f2.entry.js → p-00e5a2de.entry.js} +1 -1
- package/dist/dropi-ui/{p-8b4d4d2d.entry.js → p-0188e07a.entry.js} +1 -1
- package/dist/dropi-ui/{p-10e363a2.entry.js → p-02710049.entry.js} +1 -1
- package/dist/dropi-ui/{p-eac7777f.entry.js → p-17c56074.entry.js} +1 -1
- package/dist/dropi-ui/{p-a6939701.entry.js → p-18adf694.entry.js} +1 -1
- package/dist/dropi-ui/p-1a3619c3.entry.js +1 -0
- package/dist/dropi-ui/{p-0c541a53.entry.js → p-1d3d6a32.entry.js} +1 -1
- package/dist/dropi-ui/p-25640777.entry.js +1 -0
- package/dist/dropi-ui/p-2674d901.entry.js +1 -0
- package/dist/dropi-ui/{p-6e727fb0.entry.js → p-2af538b9.entry.js} +1 -1
- package/dist/dropi-ui/p-3013f3b8.entry.js +1 -0
- package/dist/dropi-ui/{p-0cd1fb7a.entry.js → p-3321ca70.entry.js} +1 -1
- package/dist/dropi-ui/{p-623759eb.entry.js → p-33d242ec.entry.js} +1 -1
- package/dist/dropi-ui/{p-6178190b.entry.js → p-39af6478.entry.js} +1 -1
- package/dist/dropi-ui/{p-858bedcf.entry.js → p-3e36c8b8.entry.js} +1 -1
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
- package/dist/dropi-ui/{p-36cdd4fc.entry.js → p-446a481d.entry.js} +1 -1
- package/dist/dropi-ui/{p-c7e3a5e0.entry.js → p-50a5e548.entry.js} +1 -1
- package/dist/dropi-ui/p-50e0d44f.entry.js +1 -0
- package/dist/dropi-ui/p-53a7a37d.entry.js +1 -0
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +1 -0
- package/dist/dropi-ui/p-5cee6721.entry.js +1 -0
- package/dist/dropi-ui/p-5fb33ae4.entry.js +1 -0
- package/dist/dropi-ui/{p-0966c363.entry.js → p-665ef7ba.entry.js} +1 -1
- package/dist/dropi-ui/p-66b80371.entry.js +1 -0
- package/dist/dropi-ui/p-7bfc1c27.entry.js +1 -0
- package/dist/dropi-ui/p-7c0d2edf.entry.js +1 -0
- package/dist/dropi-ui/p-7eb27836.entry.js +1 -0
- package/dist/dropi-ui/p-85444414.entry.js +1 -0
- package/dist/dropi-ui/{p-7f8d3642.entry.js → p-86283e99.entry.js} +1 -1
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +1 -0
- package/dist/dropi-ui/{p-ed94b5fe.entry.js → p-9032ba00.entry.js} +1 -1
- package/dist/dropi-ui/{p-b207fc92.entry.js → p-9212f544.entry.js} +1 -1
- package/dist/dropi-ui/{p-ba3ad28e.entry.js → p-92291873.entry.js} +1 -1
- package/dist/dropi-ui/{p-59188dd5.entry.js → p-955e52f8.entry.js} +1 -1
- package/dist/dropi-ui/{p-3cbe953f.entry.js → p-976a15e3.entry.js} +1 -1
- package/dist/dropi-ui/{p-4de83790.entry.js → p-9b037086.entry.js} +1 -1
- package/dist/dropi-ui/{p-7fc02d98.entry.js → p-9e0129cc.entry.js} +1 -1
- package/dist/dropi-ui/{p-99943b7d.entry.js → p-9ffec3f7.entry.js} +1 -1
- package/dist/dropi-ui/p-D5SAM1O2.js +2 -0
- package/dist/dropi-ui/p-a1c93e55.entry.js +1 -0
- package/dist/dropi-ui/{p-2e4efb72.entry.js → p-a232c6a7.entry.js} +1 -1
- package/dist/dropi-ui/{p-aa8d2aec.entry.js → p-a3c4d677.entry.js} +1 -1
- package/dist/dropi-ui/p-a457e8ca.entry.js +1 -0
- package/dist/dropi-ui/p-a4e1df5e.entry.js +1 -0
- package/dist/dropi-ui/p-a822a23e.entry.js +1 -0
- package/dist/dropi-ui/{p-0f161461.entry.js → p-a8f24270.entry.js} +1 -1
- package/dist/dropi-ui/p-ae35d538.entry.js +1 -0
- package/dist/dropi-ui/p-af8e2157.entry.js +1 -0
- package/dist/dropi-ui/{p-a1f2383d.entry.js → p-b2623a5c.entry.js} +1 -1
- package/dist/dropi-ui/p-b3d3c72e.entry.js +1 -0
- package/dist/dropi-ui/p-c3614c4a.entry.js +1 -0
- package/dist/dropi-ui/{p-e6943d7c.entry.js → p-cbf5367e.entry.js} +1 -1
- package/dist/dropi-ui/{p-e7b59811.entry.js → p-cc527d91.entry.js} +1 -1
- package/dist/dropi-ui/{p-7036c073.entry.js → p-cdde481b.entry.js} +1 -1
- package/dist/dropi-ui/{p-f0ddf569.entry.js → p-d42d4ef7.entry.js} +1 -1
- package/dist/dropi-ui/{p-7c0bc6dd.entry.js → p-db38bf16.entry.js} +1 -1
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +1 -0
- package/dist/dropi-ui/p-e3ad21f8.entry.js +1 -0
- package/dist/dropi-ui/{p-acfa17ef.entry.js → p-e6e766ed.entry.js} +1 -1
- package/dist/dropi-ui/{p-d36a0c37.entry.js → p-ec263862.entry.js} +1 -1
- package/dist/dropi-ui/p-efc2fc35.entry.js +1 -0
- package/dist/dropi-ui/{p-9062f0de.entry.js → p-f41cd9b5.entry.js} +1 -1
- package/dist/dropi-ui/{p-40b69ccd.entry.js → p-fa3d0267.entry.js} +1 -1
- package/dist/esm/dropi-accordion-item.entry.js +2 -2
- package/dist/esm/dropi-accordion.entry.js +2 -2
- package/dist/esm/dropi-alert-legacy.entry.js +1 -1
- package/dist/esm/dropi-alert-modal.entry.js +3 -3
- package/dist/esm/dropi-alert.entry.js +2 -2
- package/dist/esm/dropi-avatars.entry.js +2 -2
- package/dist/esm/dropi-badge-legacy.entry.js +2 -2
- package/dist/esm/dropi-badge.entry.js +2 -2
- package/dist/esm/dropi-banner-external.entry.js +12 -2
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +3 -3
- package/dist/esm/dropi-card-checkbox.entry.js +3 -3
- package/dist/esm/dropi-card-product.entry.js +7 -5
- package/dist/esm/dropi-card-section.entry.js +3 -3
- package/dist/esm/dropi-carousel.entry.js +7 -2
- package/dist/esm/dropi-checkbox-selection-list.entry.js +3 -3
- package/dist/esm/dropi-checkbox.entry.js +3 -3
- package/dist/esm/dropi-chips.entry.js +2 -2
- package/dist/esm/dropi-city-selector.entry.js +10 -2
- package/dist/esm/dropi-color-picker.entry.js +4 -4
- package/dist/esm/dropi-country-flags.entry.js +2 -2
- package/dist/esm/dropi-country-selector.entry.js +3 -3
- package/dist/esm/dropi-date-picker-range.entry.js +1 -1
- package/dist/esm/dropi-date-picker.entry.js +5 -5
- package/dist/esm/dropi-drawer.entry.js +7 -4
- package/dist/esm/dropi-dropdown.entry.js +3 -3
- package/dist/esm/dropi-empty-state.entry.js +2 -2
- package/dist/esm/dropi-favorite-button.entry.js +2 -2
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +4 -2
- package/dist/esm/dropi-file-upload.entry.js +6 -5
- package/dist/esm/dropi-icon.entry.js +21 -4
- package/dist/esm/dropi-ilustration-icon.entry.js +2 -2
- package/dist/esm/dropi-image-miniature.entry.js +2 -2
- package/dist/esm/dropi-image-overlay.entry.js +3 -2
- package/dist/esm/dropi-input_3.entry.js +13 -11
- package/dist/esm/dropi-languages-selector.entry.js +6 -2
- package/dist/esm/dropi-logo.entry.js +12 -2
- package/dist/esm/dropi-lottie-loader.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +7 -4
- package/dist/esm/dropi-modal.entry.js +19 -12
- package/dist/esm/dropi-navbar.entry.js +3 -3
- package/dist/esm/dropi-otp-send-code.entry.js +7 -7
- package/dist/esm/dropi-phone-input.entry.js +4 -4
- package/dist/esm/dropi-radio-button.entry.js +2 -2
- package/dist/esm/dropi-radio-selection-list.entry.js +3 -3
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +3 -3
- package/dist/esm/dropi-select.entry.js +6 -2
- package/dist/esm/dropi-sidebar.entry.js +2 -2
- package/dist/esm/dropi-simple-stepper.entry.js +2 -2
- package/dist/esm/dropi-skeleton.entry.js +2 -2
- package/dist/esm/dropi-steps.entry.js +2 -2
- package/dist/esm/dropi-switch.entry.js +2 -2
- package/dist/esm/dropi-table.entry.js +14 -7
- package/dist/esm/dropi-tabs.entry.js +2 -2
- package/dist/esm/dropi-tag-type-product.entry.js +2 -2
- package/dist/esm/dropi-text-area.entry.js +3 -3
- package/dist/esm/dropi-time-line.entry.js +2 -2
- package/dist/esm/dropi-toast.entry.js +6 -5
- package/dist/esm/dropi-tooltip-v2.entry.js +3 -3
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +2 -2
- package/dist/esm/dropi-youtube-lazy-video.entry.js +2 -2
- package/dist/esm/{index-TXz_09YZ.js → index-D5SAM1O2.js} +1041 -15
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +1 -1
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +2 -0
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +3 -3
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +2 -2
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +3 -1
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +1 -1
- package/dist/types/components/dropi-input/dropi-input.d.ts +2 -2
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +2 -0
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +2 -2
- package/dist/types/components/dropi-table/dropi-table.d.ts +2 -0
- package/dist/types/components.d.ts +37 -37
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +30455 -0
- package/hydrate/index.mjs +30445 -0
- package/hydrate/package.json +12 -0
- package/package.json +9 -3
- package/readme.md +42 -12
- package/scripts/setup.js +193 -8
- package/dist/components/p-9KLpSviZ.js +0 -1
- package/dist/components/p-BVekazGL.js +0 -1
- package/dist/components/p-BYRcOZS4.js +0 -1
- package/dist/components/p-BuDg1d0S.js +0 -1
- package/dist/components/p-C2paYEIp.js +0 -1
- package/dist/components/p-CnALA9z_.js +0 -1
- package/dist/components/p-CtzCJQVR.js +0 -1
- package/dist/components/p-D_Y7tuEH.js +0 -1
- package/dist/dropi-ui/p-1d4c5364.entry.js +0 -1
- package/dist/dropi-ui/p-2e0623ba.entry.js +0 -1
- package/dist/dropi-ui/p-37c86c74.entry.js +0 -1
- package/dist/dropi-ui/p-392654b7.entry.js +0 -1
- package/dist/dropi-ui/p-39904430.entry.js +0 -1
- package/dist/dropi-ui/p-3a3b778f.entry.js +0 -1
- package/dist/dropi-ui/p-443ed5bd.entry.js +0 -1
- package/dist/dropi-ui/p-4967b619.entry.js +0 -1
- package/dist/dropi-ui/p-645da978.entry.js +0 -1
- package/dist/dropi-ui/p-710312bd.entry.js +0 -1
- package/dist/dropi-ui/p-74dfe8d1.entry.js +0 -1
- package/dist/dropi-ui/p-770afae3.entry.js +0 -1
- package/dist/dropi-ui/p-8188cca4.entry.js +0 -1
- package/dist/dropi-ui/p-87e9ba6d.entry.js +0 -1
- package/dist/dropi-ui/p-925852b1.entry.js +0 -1
- package/dist/dropi-ui/p-TXz_09YZ.js +0 -2
- package/dist/dropi-ui/p-aafaffa3.entry.js +0 -1
- package/dist/dropi-ui/p-ac345a0e.entry.js +0 -1
- package/dist/dropi-ui/p-af3691a0.entry.js +0 -1
- package/dist/dropi-ui/p-bd0ffb4a.entry.js +0 -1
- package/dist/dropi-ui/p-c2e96728.entry.js +0 -1
- package/dist/dropi-ui/p-c664f99f.entry.js +0 -1
- package/dist/dropi-ui/p-cfc19ca0.entry.js +0 -1
- package/dist/dropi-ui/p-dd4c6b40.entry.js +0 -1
- package/dist/dropi-ui/p-e0351b61.entry.js +0 -1
- package/dist/dropi-ui/p-e2361547.entry.js +0 -1
- package/dist/dropi-ui/p-e25b2680.entry.js +0 -1
- package/dist/dropi-ui/p-f95c11f8.entry.js +0 -1
|
@@ -1,19 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const NAMESPACE = 'dropi-ui';
|
|
4
|
-
const BUILD = /* dropi-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
4
|
+
const BUILD = /* dropi-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
const globalScripts = () => {};
|
|
7
|
-
const globalStyles = ":root{--Primary-Primary-50:#fef8f2;--Primary-Primary-100:#ffecda;--Primary-Primary-200:#fcddbd;--Primary-Primary-300:#f2bc85;--Primary-Primary-400:#f7b46f;--Primary-Primary-500:#f49a3d;--Primary-Primary-600:#e58017;--Primary-Primary-700:#99540f;--Primary-Primary-800:#66380a;--Primary-Primary-900:#331c05;--Secondary-Secondary-50:#f0fafc;--Secondary-Secondary-100:#cee8f2;--Secondary-Secondary-200:#95d0e5;--Secondary-Secondary-300:#62bad9;--Secondary-Secondary-400:#33a4cc;--Secondary-Secondary-500:#008dbf;--Secondary-Secondary-600:#007199;--Secondary-Secondary-700:#005573;--Secondary-Secondary-800:#00384d;--Secondary-Secondary-900:#001c26;--Neutral-White:#ffffff;--Neutral-Black:#000000;--Gray-Gray-50:#f7f8fa;--Gray-Gray-100:#e6eaf2;--Gray-Gray-200:#c3c9d9;--Gray-Gray-300:#a3abbf;--Gray-Gray-400:#858ea6;--Gray-Gray-500:#69738c;--Gray-Gray-600:#475066;--Gray-Gray-700:#32394d;--Gray-Gray-800:#1f2433;--Gray-Gray-900:#0e111a;--Success-Success-50:#e7f8f3;--Success-Success-100:#b3eada;--Success-Success-200:#8ee0c8;--Success-Success-300:#5bd1af;--Success-Success-400:#3bc99f;--Success-Success-500:#0abb87;--Success-Success-600:#09aa7b;--Success-Success-700:#078560;--Success-Success-800:#06674a;--Success-Success-900:#044f39;--Error-Error-50:#fef0f0;--Error-Error-100:#fcd1d1;--Error-Error-200:#fababb;--Error-Error-300:#f89b9c;--Error-Error-400:#f68889;--Error-Error-500:#f46a6b;--Error-Error-600:#de6061;--Error-Error-700:#ad4b4c;--Error-Error-800:#863a3b;--Error-Error-900:#662d2d;--Info-Info-50:#eef6fe;--Info-Info-100:#c9e3fb;--Info-Info-200:#afd6f9;--Info-Info-300:#8ac3f6;--Info-Info-400:#73b7f4;--Info-Info-500:#50a5f1;--Info-Info-600:#4996db;--Info-Info-700:#3975ab;--Info-Info-800:#2c5b85;--Info-Info-900:#224565;--Warning-Warning-50:#fef8ed;--Warning-Warning-100:#fbe8c8;--Warning-Warning-200:#f9ddad;--Warning-Warning-300:#f6cd87;--Warning-Warning-400:#f4c370;--Warning-Warning-500:#f1b44c;--Warning-Warning-600:#dba445;--Warning-Warning-700:#ab8036;--Warning-Warning-800:#85632a;--Warning-Warning-900:#654c20;--Orange-orange-50:#fef5ec;--Orange-orange-500:#f49a3d;--Size-1:4px;--Size-2:8px;--Size-3:12px;--Size-4:16px;--Size-5:24px;--Size-6:32px;--Size-7:40px;--Size-8:48px;--Size-9:56px;--Size-10:64px;--Border-1:4px;--Border-2:8px;--Border-3:12px;--Border-4:24px;--Border-5:32px;--Border-full:9999px;--font-size-xxxxl:36px;--font-size-xxxl:30px;--font-size-xxl:24px;--font-size-xl:20px;--font-size-l:18px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px;--lineheight-simple:110%;--lineheight-large:150%;--font-weight-bold:700;--font-weight-semibold:600;--font-weight-medium:500;--font-weight-regular:400;--font-weight-light:300;--font-family-01:'Inter', sans-serif;--breakpoint-extra-small:576px;--breakpoint-small:600px;--breakpoint-medium:1000px;--breakpoint-large:1200px;--breakpoint-extra-large:1536px;--breakpoint-full-width:1920px;--Shadow-small:0px 0px 12px rgba(0, 0, 0, 0.04);--Shadow-medium:0.5px 4px 8px rgba(0, 0, 0, 0.08);--Shadow-large:0px 4px 16px rgba(0, 0, 0, 0.16);--Shadow-icon:0px 0px 4px rgba(0, 0, 0, 0.16);--Interrapidisimo:#383637;--Domina:#464ffe;--Coordinadora:#2686c5;--Servientrega:#1ba558;--99-minutos:#9cd453;--TCC:#f8dd49;--Veloces:#dc2e76;--Envia:#e7484e;--Restlogix:#90dd92;--Tiui:#0596a5;--Fedex:#4d148c;--Laarcourier:#faf063;--Gintracom:#ff3939;--Blue-express:#1542a3;--Lulu:#f03a3e;--Urbano:#e53237;--Tipsa:#1d3681}@media (max-width: 600px){:root{--font-size-xxxxl:32px;--font-size-xxxl:26px;--font-size-xxl:20px;--font-size-xl:18px;--font-size-l:16px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px}}*{font-family:var(--font-family-01);box-sizing:border-box;text-align:left}h1{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h2{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h3{color:var(--Gray-Gray-700);font-size:var(--font-size-xxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h4{color:var(--Gray-Gray-700);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h5{color:var(--Gray-Gray-700);font-size:var(--font-size-l);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Body-L-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-L-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-M-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-M-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-S-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-S-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Caption-M{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Caption-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xxs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-L{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-M{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}";
|
|
7
|
+
const globalStyles = ":root{--Primary-Primary-50:#fef8f2;--Primary-Primary-100:#ffecda;--Primary-Primary-200:#fcddbd;--Primary-Primary-300:#f2bc85;--Primary-Primary-400:#f7b46f;--Primary-Primary-500:#f49a3d;--Primary-Primary-600:#e58017;--Primary-Primary-700:#99540f;--Primary-Primary-800:#66380a;--Primary-Primary-900:#331c05;--Secondary-Secondary-50:#f0fafc;--Secondary-Secondary-100:#cee8f2;--Secondary-Secondary-200:#95d0e5;--Secondary-Secondary-300:#62bad9;--Secondary-Secondary-400:#33a4cc;--Secondary-Secondary-500:#008dbf;--Secondary-Secondary-600:#007199;--Secondary-Secondary-700:#005573;--Secondary-Secondary-800:#00384d;--Secondary-Secondary-900:#001c26;--Neutral-White:#ffffff;--Neutral-Black:#000000;--Gray-Gray-50:#f7f8fa;--Gray-Gray-100:#e6eaf2;--Gray-Gray-200:#c3c9d9;--Gray-Gray-300:#a3abbf;--Gray-Gray-400:#858ea6;--Gray-Gray-500:#69738c;--Gray-Gray-600:#475066;--Gray-Gray-700:#32394d;--Gray-Gray-800:#1f2433;--Gray-Gray-900:#0e111a;--Success-Success-50:#e7f8f3;--Success-Success-100:#b3eada;--Success-Success-200:#8ee0c8;--Success-Success-300:#5bd1af;--Success-Success-400:#3bc99f;--Success-Success-500:#0abb87;--Success-Success-600:#09aa7b;--Success-Success-700:#078560;--Success-Success-800:#06674a;--Success-Success-900:#044f39;--Error-Error-50:#fef0f0;--Error-Error-100:#fcd1d1;--Error-Error-200:#fababb;--Error-Error-300:#f89b9c;--Error-Error-400:#f68889;--Error-Error-500:#f46a6b;--Error-Error-600:#de6061;--Error-Error-700:#ad4b4c;--Error-Error-800:#863a3b;--Error-Error-900:#662d2d;--Info-Info-50:#eef6fe;--Info-Info-100:#c9e3fb;--Info-Info-200:#afd6f9;--Info-Info-300:#8ac3f6;--Info-Info-400:#73b7f4;--Info-Info-500:#50a5f1;--Info-Info-600:#4996db;--Info-Info-700:#3975ab;--Info-Info-800:#2c5b85;--Info-Info-900:#224565;--Warning-Warning-50:#fef8ed;--Warning-Warning-100:#fbe8c8;--Warning-Warning-200:#f9ddad;--Warning-Warning-300:#f6cd87;--Warning-Warning-400:#f4c370;--Warning-Warning-500:#f1b44c;--Warning-Warning-600:#dba445;--Warning-Warning-700:#ab8036;--Warning-Warning-800:#85632a;--Warning-Warning-900:#654c20;--Orange-orange-50:#fef5ec;--Orange-orange-500:#f49a3d;--Size-1:4px;--Size-2:8px;--Size-3:12px;--Size-4:16px;--Size-5:24px;--Size-6:32px;--Size-7:40px;--Size-8:48px;--Size-9:56px;--Size-10:64px;--Border-1:4px;--Border-2:8px;--Border-3:12px;--Border-4:24px;--Border-5:32px;--Border-full:9999px;--font-size-xxxxl:36px;--font-size-xxxl:30px;--font-size-xxl:24px;--font-size-xl:20px;--font-size-l:18px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px;--lineheight-simple:110%;--lineheight-large:150%;--font-weight-bold:700;--font-weight-semibold:600;--font-weight-medium:500;--font-weight-regular:400;--font-weight-light:300;--font-family-01:'Inter', sans-serif;--breakpoint-extra-small:576px;--breakpoint-small:600px;--breakpoint-medium:1000px;--breakpoint-large:1200px;--breakpoint-extra-large:1536px;--breakpoint-full-width:1920px;--Shadow-small:0px 0px 12px rgba(0, 0, 0, 0.04);--Shadow-medium:0.5px 4px 8px rgba(0, 0, 0, 0.08);--Shadow-large:0px 4px 16px rgba(0, 0, 0, 0.16);--Shadow-icon:0px 0px 4px rgba(0, 0, 0, 0.16);--Interrapidisimo:#383637;--Domina:#464ffe;--Coordinadora:#2686c5;--Servientrega:#1ba558;--99-minutos:#9cd453;--TCC:#f8dd49;--Veloces:#dc2e76;--Envia:#e7484e;--Restlogix:#90dd92;--Tiui:#0596a5;--Fedex:#4d148c;--Laarcourier:#faf063;--Gintracom:#ff3939;--Blue-express:#1542a3;--Lulu:#f03a3e;--Urbano:#e53237;--Tipsa:#1d3681}@media (max-width: 600px){:root{--font-size-xxxxl:32px;--font-size-xxxl:26px;--font-size-xxl:20px;--font-size-xl:18px;--font-size-l:16px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px}}*{font-family:var(--font-family-01);box-sizing:border-box;text-align:left}h1{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h2{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h3{color:var(--Gray-Gray-700);font-size:var(--font-size-xxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h4{color:var(--Gray-Gray-700);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h5{color:var(--Gray-Gray-700);font-size:var(--font-size-l);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Body-L-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-L-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-M-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-M-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-S-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-S-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Caption-M{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Caption-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xxs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-L{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-M{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}body.dropi-modal-open{overflow:hidden !important}dropi-icon:not(:defined){display:inline-flex;width:24px;height:24px;overflow:hidden}";
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
var Build = {
|
|
14
|
+
isBrowser: true};
|
|
13
15
|
|
|
14
16
|
// src/utils/constants.ts
|
|
15
17
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
16
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:";
|
|
17
43
|
|
|
18
44
|
// src/utils/get-prop-descriptor.ts
|
|
19
45
|
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
@@ -131,6 +157,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
131
157
|
|
|
132
158
|
// src/client/client-style.ts
|
|
133
159
|
var styles = /* @__PURE__ */ new Map();
|
|
160
|
+
|
|
161
|
+
// src/runtime/runtime-constants.ts
|
|
162
|
+
var CONTENT_REF_ID = "r";
|
|
163
|
+
var ORG_LOCATION_ID = "o";
|
|
164
|
+
var SLOT_NODE_ID = "s";
|
|
165
|
+
var TEXT_NODE_ID = "t";
|
|
166
|
+
var COMMENT_NODE_ID = "c";
|
|
167
|
+
var HYDRATE_ID = "s-id";
|
|
168
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
169
|
+
var HYDRATE_CHILD_ID = "c-id";
|
|
134
170
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
135
171
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
136
172
|
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
@@ -242,6 +278,153 @@ function createShadowRoot(cmpMeta) {
|
|
|
242
278
|
shadowRoot.prepend(styleElm);
|
|
243
279
|
}
|
|
244
280
|
}
|
|
281
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
282
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
283
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
284
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
285
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
286
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
287
|
+
slotNode.hidden = true;
|
|
288
|
+
} else {
|
|
289
|
+
slotNode.hidden = false;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
let i2 = 0;
|
|
295
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
296
|
+
const childNode = childNodes[i2];
|
|
297
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
298
|
+
updateFallbackSlotVisibility(childNode);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
303
|
+
const result = [];
|
|
304
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
305
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
306
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
307
|
+
result.push(slottedNode);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return result;
|
|
311
|
+
};
|
|
312
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
313
|
+
let i2 = 0;
|
|
314
|
+
let slottedNodes = [];
|
|
315
|
+
let childNode;
|
|
316
|
+
for (; i2 < childNodes.length; i2++) {
|
|
317
|
+
childNode = childNodes[i2];
|
|
318
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
319
|
+
slottedNodes.push(childNode);
|
|
320
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
321
|
+
}
|
|
322
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
323
|
+
}
|
|
324
|
+
return slottedNodes;
|
|
325
|
+
}
|
|
326
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
327
|
+
const childNodes = [];
|
|
328
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
329
|
+
let node = slot;
|
|
330
|
+
while (node = node.nextSibling) {
|
|
331
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
332
|
+
}
|
|
333
|
+
return childNodes;
|
|
334
|
+
};
|
|
335
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
336
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
337
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
338
|
+
return true;
|
|
339
|
+
}
|
|
340
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
return false;
|
|
344
|
+
}
|
|
345
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
346
|
+
return true;
|
|
347
|
+
}
|
|
348
|
+
return slotName === "";
|
|
349
|
+
};
|
|
350
|
+
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
351
|
+
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
const slottedNodeLocation = document.createTextNode("");
|
|
355
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
356
|
+
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
357
|
+
const parent = slotNode["s-cr"].parentNode;
|
|
358
|
+
const appendMethod = internalCall(parent, "appendChild");
|
|
359
|
+
if (typeof position !== "undefined") {
|
|
360
|
+
slottedNodeLocation["s-oo"] = position;
|
|
361
|
+
const childNodes = internalCall(parent, "childNodes");
|
|
362
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
363
|
+
childNodes.forEach((n) => {
|
|
364
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
365
|
+
});
|
|
366
|
+
slotRelocateNodes.sort((a, b) => {
|
|
367
|
+
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
368
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
369
|
+
return 0;
|
|
370
|
+
});
|
|
371
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
372
|
+
} else {
|
|
373
|
+
appendMethod.call(parent, slottedNodeLocation);
|
|
374
|
+
}
|
|
375
|
+
newChild["s-ol"] = slottedNodeLocation;
|
|
376
|
+
newChild["s-sh"] = slotNode["s-hn"];
|
|
377
|
+
};
|
|
378
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
379
|
+
function patchSlotNode(node) {
|
|
380
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
381
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
382
|
+
const toReturn = [];
|
|
383
|
+
const slotName = this["s-sn"];
|
|
384
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
385
|
+
console.error(`
|
|
386
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
387
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
388
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
389
|
+
`);
|
|
390
|
+
}
|
|
391
|
+
const parent = this["s-cr"].parentElement;
|
|
392
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
393
|
+
slottedNodes.forEach((n) => {
|
|
394
|
+
if (slotName === getSlotName(n)) {
|
|
395
|
+
toReturn.push(n);
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
if (elementsOnly) {
|
|
399
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
400
|
+
}
|
|
401
|
+
return toReturn;
|
|
402
|
+
}).bind(node);
|
|
403
|
+
node.assignedElements = assignedFactory(true);
|
|
404
|
+
node.assignedNodes = assignedFactory(false);
|
|
405
|
+
}
|
|
406
|
+
function dispatchSlotChangeEvent(elm) {
|
|
407
|
+
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
408
|
+
}
|
|
409
|
+
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
410
|
+
var _a;
|
|
411
|
+
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
412
|
+
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
413
|
+
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
414
|
+
const childNodes = internalCall(parentHost, "childNodes");
|
|
415
|
+
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
416
|
+
return { slotNode, slotName };
|
|
417
|
+
}
|
|
418
|
+
function internalCall(node, method) {
|
|
419
|
+
if ("__" + method in node) {
|
|
420
|
+
const toReturn = node["__" + method];
|
|
421
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
422
|
+
return toReturn.bind(node);
|
|
423
|
+
} else {
|
|
424
|
+
if (typeof node[method] !== "function") return node[method];
|
|
425
|
+
return node[method].bind(node);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
245
428
|
var createTime = (fnName, tagName = "") => {
|
|
246
429
|
{
|
|
247
430
|
return () => {
|
|
@@ -295,7 +478,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
295
478
|
if (!appliedStyles) {
|
|
296
479
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
297
480
|
}
|
|
298
|
-
|
|
481
|
+
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
482
|
+
if (existingStyleElm) {
|
|
483
|
+
existingStyleElm.textContent = style;
|
|
484
|
+
} else if (!appliedStyles.has(scopeId2)) {
|
|
299
485
|
styleElm = win.document.createElement("style");
|
|
300
486
|
styleElm.textContent = style;
|
|
301
487
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
@@ -364,6 +550,12 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
364
550
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
365
551
|
}
|
|
366
552
|
appliedStyles.add(scopeId2);
|
|
553
|
+
if ("host" in styleContainerNode) {
|
|
554
|
+
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
555
|
+
if (ssrStyleElm) {
|
|
556
|
+
writeTask(() => ssrStyleElm.remove());
|
|
557
|
+
}
|
|
558
|
+
}
|
|
367
559
|
}
|
|
368
560
|
}
|
|
369
561
|
}
|
|
@@ -384,6 +576,17 @@ var attachStyles = (hostRef) => {
|
|
|
384
576
|
endAttachStyles();
|
|
385
577
|
};
|
|
386
578
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
579
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
580
|
+
var hydrateScopedToShadow = () => {
|
|
581
|
+
if (!win.document) {
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
585
|
+
let i2 = 0;
|
|
586
|
+
for (; i2 < styles2.length; i2++) {
|
|
587
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
588
|
+
}
|
|
589
|
+
};
|
|
387
590
|
var isComplexType = (o) => {
|
|
388
591
|
o = typeof o;
|
|
389
592
|
return o === "object" || o === "function";
|
|
@@ -396,6 +599,7 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
396
599
|
}
|
|
397
600
|
let child = null;
|
|
398
601
|
let key = null;
|
|
602
|
+
let slotName = null;
|
|
399
603
|
let simple = false;
|
|
400
604
|
let lastSimple = false;
|
|
401
605
|
const vNodeChildren = [];
|
|
@@ -422,6 +626,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
422
626
|
if (vnodeData.key) {
|
|
423
627
|
key = vnodeData.key;
|
|
424
628
|
}
|
|
629
|
+
if (vnodeData.name) {
|
|
630
|
+
slotName = vnodeData.name;
|
|
631
|
+
}
|
|
425
632
|
{
|
|
426
633
|
const classData = vnodeData.className || vnodeData.class;
|
|
427
634
|
if (classData) {
|
|
@@ -437,6 +644,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
437
644
|
{
|
|
438
645
|
vnode.$key$ = key;
|
|
439
646
|
}
|
|
647
|
+
{
|
|
648
|
+
vnode.$name$ = slotName;
|
|
649
|
+
}
|
|
440
650
|
return vnode;
|
|
441
651
|
};
|
|
442
652
|
var newVNode = (tag, text) => {
|
|
@@ -454,13 +664,514 @@ var newVNode = (tag, text) => {
|
|
|
454
664
|
{
|
|
455
665
|
vnode.$key$ = null;
|
|
456
666
|
}
|
|
667
|
+
{
|
|
668
|
+
vnode.$name$ = null;
|
|
669
|
+
}
|
|
457
670
|
return vnode;
|
|
458
671
|
};
|
|
459
672
|
var Host = {};
|
|
460
673
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
461
674
|
|
|
675
|
+
// src/runtime/client-hydrate.ts
|
|
676
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
677
|
+
var _a, _b, _c, _d;
|
|
678
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
679
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
680
|
+
const childRenderNodes = [];
|
|
681
|
+
const slotNodes = [];
|
|
682
|
+
const slottedNodes = [];
|
|
683
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
684
|
+
const vnode = newVNode(tagName, null);
|
|
685
|
+
vnode.$elm$ = hostElm;
|
|
686
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
687
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
688
|
+
}
|
|
689
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
690
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
691
|
+
hostRef.$vnode$ = clientHydrate(
|
|
692
|
+
vnode,
|
|
693
|
+
childRenderNodes,
|
|
694
|
+
slotNodes,
|
|
695
|
+
shadowRootNodes,
|
|
696
|
+
hostElm,
|
|
697
|
+
hostElm,
|
|
698
|
+
hostId,
|
|
699
|
+
slottedNodes
|
|
700
|
+
);
|
|
701
|
+
let crIndex = 0;
|
|
702
|
+
const crLength = childRenderNodes.length;
|
|
703
|
+
let childRenderNode;
|
|
704
|
+
for (crIndex; crIndex < crLength; crIndex++) {
|
|
705
|
+
childRenderNode = childRenderNodes[crIndex];
|
|
706
|
+
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
707
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
708
|
+
const node = childRenderNode.$elm$;
|
|
709
|
+
if (!shadowRoot) {
|
|
710
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
711
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
712
|
+
node["s-cr"] = hostElm["s-cr"];
|
|
713
|
+
}
|
|
714
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
715
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
716
|
+
if (cmpMeta) {
|
|
717
|
+
const scopeId3 = getScopeId(
|
|
718
|
+
cmpMeta.$cmpMeta$);
|
|
719
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
720
|
+
if (styleSheet) {
|
|
721
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
726
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
727
|
+
if (childRenderNode.$children$) {
|
|
728
|
+
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
729
|
+
if (!childRenderNode.$elm$.childNodes.length) {
|
|
730
|
+
childRenderNode.$children$.forEach((c) => {
|
|
731
|
+
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
} else {
|
|
735
|
+
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
739
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
740
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
741
|
+
}
|
|
742
|
+
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
743
|
+
if (!shadowRoot) {
|
|
744
|
+
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
748
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
const hosts = [];
|
|
752
|
+
const snLen = slottedNodes.length;
|
|
753
|
+
let snIndex = 0;
|
|
754
|
+
let slotGroup;
|
|
755
|
+
let snGroupIdx;
|
|
756
|
+
let snGroupLen;
|
|
757
|
+
let slottedItem;
|
|
758
|
+
let currentPos = 0;
|
|
759
|
+
for (snIndex; snIndex < snLen; snIndex++) {
|
|
760
|
+
slotGroup = slottedNodes[snIndex];
|
|
761
|
+
if (!slotGroup || !slotGroup.length) continue;
|
|
762
|
+
snGroupLen = slotGroup.length;
|
|
763
|
+
snGroupIdx = 0;
|
|
764
|
+
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
765
|
+
slottedItem = slotGroup[snGroupIdx];
|
|
766
|
+
if (!hosts[slottedItem.hostId]) {
|
|
767
|
+
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
768
|
+
}
|
|
769
|
+
if (!hosts[slottedItem.hostId]) continue;
|
|
770
|
+
const hostEle = hosts[slottedItem.hostId];
|
|
771
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
772
|
+
hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
|
|
773
|
+
}
|
|
774
|
+
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
775
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
776
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
777
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
778
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
779
|
+
} else {
|
|
780
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
784
|
+
if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
785
|
+
slottedItem.node.removeAttribute("slot");
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
792
|
+
let rnIdex = 0;
|
|
793
|
+
const rnLen = shadowRootNodes.length;
|
|
794
|
+
if (rnLen) {
|
|
795
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
796
|
+
const node = shadowRootNodes[rnIdex];
|
|
797
|
+
if (node) {
|
|
798
|
+
shadowRoot.appendChild(node);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
802
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
803
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
804
|
+
node.removeAttribute("hidden");
|
|
805
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
|
|
806
|
+
node.parentNode.removeChild(node);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
hostRef.$hostElement$ = hostElm;
|
|
813
|
+
endHydrate();
|
|
814
|
+
};
|
|
815
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
816
|
+
let childNodeType;
|
|
817
|
+
let childIdSplt;
|
|
818
|
+
let childVNode;
|
|
819
|
+
let i2;
|
|
820
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
821
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
822
|
+
if (childNodeType) {
|
|
823
|
+
childIdSplt = childNodeType.split(".");
|
|
824
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
825
|
+
childVNode = createSimpleVNode({
|
|
826
|
+
$flags$: 0,
|
|
827
|
+
$hostId$: childIdSplt[0],
|
|
828
|
+
$nodeId$: childIdSplt[1],
|
|
829
|
+
$depth$: childIdSplt[2],
|
|
830
|
+
$index$: childIdSplt[3],
|
|
831
|
+
$tag$: node.tagName.toLowerCase(),
|
|
832
|
+
$elm$: node,
|
|
833
|
+
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
|
|
834
|
+
// won't try to reconcile them. Classes set on the node will be blown away.
|
|
835
|
+
$attrs$: { class: node.className || "" }
|
|
836
|
+
});
|
|
837
|
+
childRenderNodes.push(childVNode);
|
|
838
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
839
|
+
if (!parentVNode.$children$) {
|
|
840
|
+
parentVNode.$children$ = [];
|
|
841
|
+
}
|
|
842
|
+
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
843
|
+
if (typeof slotName === "string") {
|
|
844
|
+
if (childVNode.$tag$ === "slot-fb") {
|
|
845
|
+
addSlot(
|
|
846
|
+
slotName,
|
|
847
|
+
childIdSplt[2],
|
|
848
|
+
childVNode,
|
|
849
|
+
node,
|
|
850
|
+
parentVNode,
|
|
851
|
+
childRenderNodes,
|
|
852
|
+
slotNodes,
|
|
853
|
+
shadowRootNodes,
|
|
854
|
+
slottedNodes
|
|
855
|
+
);
|
|
856
|
+
}
|
|
857
|
+
childVNode.$elm$["s-sn"] = slotName;
|
|
858
|
+
childVNode.$elm$.removeAttribute("s-sn");
|
|
859
|
+
}
|
|
860
|
+
if (childVNode.$index$ !== void 0) {
|
|
861
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
862
|
+
}
|
|
863
|
+
parentVNode = childVNode;
|
|
864
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
865
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
if (node.shadowRoot) {
|
|
870
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
871
|
+
clientHydrate(
|
|
872
|
+
parentVNode,
|
|
873
|
+
childRenderNodes,
|
|
874
|
+
slotNodes,
|
|
875
|
+
shadowRootNodes,
|
|
876
|
+
hostElm,
|
|
877
|
+
node.shadowRoot.childNodes[i2],
|
|
878
|
+
hostId,
|
|
879
|
+
slottedNodes
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
884
|
+
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
885
|
+
clientHydrate(
|
|
886
|
+
parentVNode,
|
|
887
|
+
childRenderNodes,
|
|
888
|
+
slotNodes,
|
|
889
|
+
shadowRootNodes,
|
|
890
|
+
hostElm,
|
|
891
|
+
nonShadowNodes[i2],
|
|
892
|
+
hostId,
|
|
893
|
+
slottedNodes
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
897
|
+
childIdSplt = node.nodeValue.split(".");
|
|
898
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
899
|
+
childNodeType = childIdSplt[0];
|
|
900
|
+
childVNode = createSimpleVNode({
|
|
901
|
+
$hostId$: childIdSplt[1],
|
|
902
|
+
$nodeId$: childIdSplt[2],
|
|
903
|
+
$depth$: childIdSplt[3],
|
|
904
|
+
$index$: childIdSplt[4] || "0",
|
|
905
|
+
$elm$: node,
|
|
906
|
+
$attrs$: null,
|
|
907
|
+
$children$: null,
|
|
908
|
+
$key$: null,
|
|
909
|
+
$name$: null,
|
|
910
|
+
$tag$: null,
|
|
911
|
+
$text$: null
|
|
912
|
+
});
|
|
913
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
914
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
915
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
916
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
917
|
+
childRenderNodes.push(childVNode);
|
|
918
|
+
node.remove();
|
|
919
|
+
if (hostId === childVNode.$hostId$) {
|
|
920
|
+
if (!parentVNode.$children$) {
|
|
921
|
+
parentVNode.$children$ = [];
|
|
922
|
+
}
|
|
923
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
924
|
+
}
|
|
925
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
926
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
930
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
931
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
932
|
+
childRenderNodes.push(childVNode);
|
|
933
|
+
node.remove();
|
|
934
|
+
}
|
|
935
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
936
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
937
|
+
const slotName = node["s-sn"] = childIdSplt[5] || "";
|
|
938
|
+
addSlot(
|
|
939
|
+
slotName,
|
|
940
|
+
childIdSplt[2],
|
|
941
|
+
childVNode,
|
|
942
|
+
node,
|
|
943
|
+
parentVNode,
|
|
944
|
+
childRenderNodes,
|
|
945
|
+
slotNodes,
|
|
946
|
+
shadowRootNodes,
|
|
947
|
+
slottedNodes
|
|
948
|
+
);
|
|
949
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
950
|
+
if (shadowRootNodes) {
|
|
951
|
+
node.remove();
|
|
952
|
+
} else {
|
|
953
|
+
hostElm["s-cr"] = node;
|
|
954
|
+
node["s-cn"] = true;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
960
|
+
const vnode = newVNode(null, node.textContent);
|
|
961
|
+
vnode.$elm$ = node;
|
|
962
|
+
vnode.$index$ = "0";
|
|
963
|
+
parentVNode.$children$ = [vnode];
|
|
964
|
+
}
|
|
965
|
+
return parentVNode;
|
|
966
|
+
};
|
|
967
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
968
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
969
|
+
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
970
|
+
if (componentId) {
|
|
971
|
+
orgLocNodes.set(componentId, node);
|
|
972
|
+
}
|
|
973
|
+
let i2 = 0;
|
|
974
|
+
if (node.shadowRoot) {
|
|
975
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
976
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
980
|
+
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
981
|
+
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
982
|
+
}
|
|
983
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
984
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
985
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
986
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
987
|
+
node.nodeValue = "";
|
|
988
|
+
node["s-en"] = childIdSplt[3];
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
};
|
|
992
|
+
var createSimpleVNode = (vnode) => {
|
|
993
|
+
const defaultVNode = {
|
|
994
|
+
$flags$: 0,
|
|
995
|
+
$hostId$: null,
|
|
996
|
+
$nodeId$: null,
|
|
997
|
+
$depth$: null,
|
|
998
|
+
$index$: "0",
|
|
999
|
+
$elm$: null,
|
|
1000
|
+
$attrs$: null,
|
|
1001
|
+
$children$: null,
|
|
1002
|
+
$key$: null,
|
|
1003
|
+
$name$: null,
|
|
1004
|
+
$tag$: null,
|
|
1005
|
+
$text$: null
|
|
1006
|
+
};
|
|
1007
|
+
return { ...defaultVNode, ...vnode };
|
|
1008
|
+
};
|
|
1009
|
+
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1010
|
+
node["s-sr"] = true;
|
|
1011
|
+
childVNode.$name$ = slotName || null;
|
|
1012
|
+
childVNode.$tag$ = "slot";
|
|
1013
|
+
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1014
|
+
if (shadowRootNodes && win.document) {
|
|
1015
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1016
|
+
if (childVNode.$name$) {
|
|
1017
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
|
1018
|
+
}
|
|
1019
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1020
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1021
|
+
} else {
|
|
1022
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1023
|
+
}
|
|
1024
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1025
|
+
node.remove();
|
|
1026
|
+
if (childVNode.$depth$ === "0") {
|
|
1027
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1028
|
+
}
|
|
1029
|
+
} else {
|
|
1030
|
+
const slot = childVNode.$elm$;
|
|
1031
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1032
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1033
|
+
patchSlotNode(node);
|
|
1034
|
+
if (shouldMove) {
|
|
1035
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
childRenderNodes.push(childVNode);
|
|
1039
|
+
slotNodes.push(childVNode);
|
|
1040
|
+
if (!parentVNode.$children$) {
|
|
1041
|
+
parentVNode.$children$ = [];
|
|
1042
|
+
}
|
|
1043
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1044
|
+
}
|
|
1045
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1046
|
+
var _a, _b;
|
|
1047
|
+
let slottedNode = slotNode.nextSibling;
|
|
1048
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1049
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1050
|
+
do {
|
|
1051
|
+
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 */))) {
|
|
1052
|
+
slottedNode["s-sn"] = slotName;
|
|
1053
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1054
|
+
}
|
|
1055
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1056
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1057
|
+
};
|
|
1058
|
+
var findCorrespondingNode = (node, type) => {
|
|
1059
|
+
let sibling = node;
|
|
1060
|
+
do {
|
|
1061
|
+
sibling = sibling.nextSibling;
|
|
1062
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1063
|
+
return sibling;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
// src/utils/remote-value.ts
|
|
1067
|
+
var RemoteValue = class _RemoteValue {
|
|
1068
|
+
/**
|
|
1069
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1070
|
+
*
|
|
1071
|
+
* @param serialized The serialized LocalValue object
|
|
1072
|
+
* @returns The original JavaScript value/object
|
|
1073
|
+
*/
|
|
1074
|
+
static fromLocalValue(serialized) {
|
|
1075
|
+
const type = serialized[TYPE_CONSTANT];
|
|
1076
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1077
|
+
switch (type) {
|
|
1078
|
+
case "string" /* String */:
|
|
1079
|
+
return value;
|
|
1080
|
+
case "boolean" /* Boolean */:
|
|
1081
|
+
return value;
|
|
1082
|
+
case "bigint" /* BigInt */:
|
|
1083
|
+
return BigInt(value);
|
|
1084
|
+
case "undefined" /* Undefined */:
|
|
1085
|
+
return void 0;
|
|
1086
|
+
case "null" /* Null */:
|
|
1087
|
+
return null;
|
|
1088
|
+
case "number" /* Number */:
|
|
1089
|
+
if (value === "NaN") return NaN;
|
|
1090
|
+
if (value === "-0") return -0;
|
|
1091
|
+
if (value === "Infinity") return Infinity;
|
|
1092
|
+
if (value === "-Infinity") return -Infinity;
|
|
1093
|
+
return value;
|
|
1094
|
+
case "array" /* Array */:
|
|
1095
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1096
|
+
case "date" /* Date */:
|
|
1097
|
+
return new Date(value);
|
|
1098
|
+
case "map" /* Map */:
|
|
1099
|
+
const map = /* @__PURE__ */ new Map();
|
|
1100
|
+
for (const [key, val] of value) {
|
|
1101
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1102
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1103
|
+
map.set(deserializedKey, deserializedValue);
|
|
1104
|
+
}
|
|
1105
|
+
return map;
|
|
1106
|
+
case "object" /* Object */:
|
|
1107
|
+
const obj = {};
|
|
1108
|
+
for (const [key, val] of value) {
|
|
1109
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1110
|
+
}
|
|
1111
|
+
return obj;
|
|
1112
|
+
case "regexp" /* RegularExpression */:
|
|
1113
|
+
const { pattern, flags } = value;
|
|
1114
|
+
return new RegExp(pattern, flags);
|
|
1115
|
+
case "set" /* Set */:
|
|
1116
|
+
const set = /* @__PURE__ */ new Set();
|
|
1117
|
+
for (const item of value) {
|
|
1118
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
1119
|
+
}
|
|
1120
|
+
return set;
|
|
1121
|
+
case "symbol" /* Symbol */:
|
|
1122
|
+
return Symbol(value);
|
|
1123
|
+
default:
|
|
1124
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
1129
|
+
*
|
|
1130
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
1131
|
+
* @returns Array of deserialized JavaScript values
|
|
1132
|
+
*/
|
|
1133
|
+
static fromLocalValueArray(serializedValues) {
|
|
1134
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
1138
|
+
*
|
|
1139
|
+
* @param obj Object to verify
|
|
1140
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
1141
|
+
*/
|
|
1142
|
+
static isLocalValueObject(obj) {
|
|
1143
|
+
if (typeof obj !== "object" || obj === null) {
|
|
1144
|
+
return false;
|
|
1145
|
+
}
|
|
1146
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
1147
|
+
return false;
|
|
1148
|
+
}
|
|
1149
|
+
const type = obj[TYPE_CONSTANT];
|
|
1150
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
1151
|
+
if (!hasTypeProperty) {
|
|
1152
|
+
return false;
|
|
1153
|
+
}
|
|
1154
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
1155
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
1156
|
+
}
|
|
1157
|
+
return true;
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
// src/utils/serialize.ts
|
|
1162
|
+
function deserializeProperty(value) {
|
|
1163
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1164
|
+
return value;
|
|
1165
|
+
}
|
|
1166
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
1167
|
+
}
|
|
1168
|
+
|
|
462
1169
|
// src/runtime/parse-property-value.ts
|
|
463
1170
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1171
|
+
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1172
|
+
propValue = deserializeProperty(propValue);
|
|
1173
|
+
return propValue;
|
|
1174
|
+
}
|
|
464
1175
|
if (propValue != null && !isComplexType(propValue)) {
|
|
465
1176
|
if (propType & 4 /* Boolean */) {
|
|
466
1177
|
if (isFormAssociated && typeof propValue === "string") {
|
|
@@ -513,7 +1224,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
513
1224
|
const classList = elm.classList;
|
|
514
1225
|
const oldClasses = parseClassList(oldValue);
|
|
515
1226
|
let newClasses = parseClassList(newValue);
|
|
516
|
-
{
|
|
1227
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1228
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1229
|
+
newClasses.push(scopeId2);
|
|
1230
|
+
oldClasses.forEach((c) => {
|
|
1231
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1232
|
+
});
|
|
1233
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1234
|
+
classList.add(...newClasses);
|
|
1235
|
+
} else {
|
|
517
1236
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
518
1237
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
519
1238
|
}
|
|
@@ -652,7 +1371,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
|
652
1371
|
oldVnodeAttrs[memberName],
|
|
653
1372
|
void 0,
|
|
654
1373
|
isSvgMode2,
|
|
655
|
-
newVnode.$flags
|
|
1374
|
+
newVnode.$flags$,
|
|
1375
|
+
isInitialRender
|
|
1376
|
+
);
|
|
656
1377
|
}
|
|
657
1378
|
}
|
|
658
1379
|
}
|
|
@@ -663,7 +1384,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
|
663
1384
|
oldVnodeAttrs[memberName],
|
|
664
1385
|
newVnodeAttrs[memberName],
|
|
665
1386
|
isSvgMode2,
|
|
666
|
-
newVnode.$flags
|
|
1387
|
+
newVnode.$flags$,
|
|
1388
|
+
isInitialRender
|
|
1389
|
+
);
|
|
667
1390
|
}
|
|
668
1391
|
};
|
|
669
1392
|
function sortedAttrNames(attrNames) {
|
|
@@ -675,18 +1398,43 @@ function sortedAttrNames(attrNames) {
|
|
|
675
1398
|
attrNames
|
|
676
1399
|
);
|
|
677
1400
|
}
|
|
1401
|
+
var contentRef;
|
|
678
1402
|
var hostTagName;
|
|
679
1403
|
var useNativeShadowDom = false;
|
|
1404
|
+
var checkSlotFallbackVisibility = false;
|
|
1405
|
+
var checkSlotRelocate = false;
|
|
680
1406
|
var isSvgMode = false;
|
|
681
1407
|
var refCallbacksToRemove = [];
|
|
682
1408
|
var refCallbacksToAttach = [];
|
|
683
1409
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
1410
|
+
var _a;
|
|
684
1411
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
685
1412
|
let i2 = 0;
|
|
686
1413
|
let elm;
|
|
687
1414
|
let childNode;
|
|
1415
|
+
let oldVNode;
|
|
1416
|
+
if (!useNativeShadowDom) {
|
|
1417
|
+
checkSlotRelocate = true;
|
|
1418
|
+
if (newVNode2.$tag$ === "slot") {
|
|
1419
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
1420
|
+
// slot element has fallback content
|
|
1421
|
+
// still create an element that "mocks" the slot element
|
|
1422
|
+
2 /* isSlotFallback */
|
|
1423
|
+
) : (
|
|
1424
|
+
// slot element does not have fallback content
|
|
1425
|
+
// create an html comment we'll use to always reference
|
|
1426
|
+
// where actual slot content should sit next to
|
|
1427
|
+
1 /* isSlotReference */
|
|
1428
|
+
);
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
688
1431
|
if (newVNode2.$text$ != null) {
|
|
689
1432
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1433
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1434
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
1435
|
+
{
|
|
1436
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
1437
|
+
}
|
|
690
1438
|
} else {
|
|
691
1439
|
if (!isSvgMode) {
|
|
692
1440
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
@@ -696,7 +1444,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
696
1444
|
}
|
|
697
1445
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
698
1446
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
699
|
-
newVNode2.$tag$
|
|
1447
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
700
1448
|
) ;
|
|
701
1449
|
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
702
1450
|
isSvgMode = false;
|
|
@@ -722,6 +1470,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
722
1470
|
}
|
|
723
1471
|
}
|
|
724
1472
|
elm["s-hn"] = hostTagName;
|
|
1473
|
+
{
|
|
1474
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
1475
|
+
elm["s-sr"] = true;
|
|
1476
|
+
elm["s-cr"] = contentRef;
|
|
1477
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1478
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1479
|
+
patchSlotNode(elm);
|
|
1480
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1481
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1482
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
725
1486
|
return elm;
|
|
726
1487
|
};
|
|
727
1488
|
var relocateToHostRoot = (parentElm) => {
|
|
@@ -738,13 +1499,40 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
738
1499
|
if (childNode["s-sh"] != null) {
|
|
739
1500
|
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
740
1501
|
childNode["s-sh"] = void 0;
|
|
1502
|
+
checkSlotRelocate = true;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1507
|
+
};
|
|
1508
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1509
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1510
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
1511
|
+
if (parentElm["s-sr"]) {
|
|
1512
|
+
let node = parentElm;
|
|
1513
|
+
while (node = node.nextSibling) {
|
|
1514
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
1515
|
+
oldSlotChildNodes.push(node);
|
|
741
1516
|
}
|
|
742
1517
|
}
|
|
743
1518
|
}
|
|
1519
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
1520
|
+
const childNode = oldSlotChildNodes[i2];
|
|
1521
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
1522
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
1523
|
+
childNode["s-ol"].remove();
|
|
1524
|
+
childNode["s-ol"] = void 0;
|
|
1525
|
+
childNode["s-sh"] = void 0;
|
|
1526
|
+
checkSlotRelocate = true;
|
|
1527
|
+
}
|
|
1528
|
+
if (recursive) {
|
|
1529
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
744
1532
|
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
745
1533
|
};
|
|
746
1534
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
747
|
-
let containerElm = parentElm;
|
|
1535
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
748
1536
|
let childNode;
|
|
749
1537
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
750
1538
|
containerElm = containerElm.shadowRoot;
|
|
@@ -757,7 +1545,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
757
1545
|
childNode = createElm(null, parentVNode, startIdx);
|
|
758
1546
|
if (childNode) {
|
|
759
1547
|
vnodes[startIdx].$elm$ = childNode;
|
|
760
|
-
insertBefore(containerElm, childNode, before);
|
|
1548
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
761
1549
|
}
|
|
762
1550
|
}
|
|
763
1551
|
}
|
|
@@ -769,6 +1557,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
769
1557
|
const elm = vnode.$elm$;
|
|
770
1558
|
nullifyVNodeRefs(vnode);
|
|
771
1559
|
if (elm) {
|
|
1560
|
+
{
|
|
1561
|
+
checkSlotFallbackVisibility = true;
|
|
1562
|
+
if (elm["s-ol"]) {
|
|
1563
|
+
elm["s-ol"].remove();
|
|
1564
|
+
} else {
|
|
1565
|
+
putBackInOriginalLocation(elm, true);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
772
1568
|
elm.remove();
|
|
773
1569
|
}
|
|
774
1570
|
}
|
|
@@ -806,11 +1602,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
806
1602
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
807
1603
|
newEndVnode = newCh[--newEndIdx];
|
|
808
1604
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1605
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1606
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1607
|
+
}
|
|
809
1608
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
810
1609
|
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
811
1610
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
812
1611
|
newEndVnode = newCh[--newEndIdx];
|
|
813
1612
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1613
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1614
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1615
|
+
}
|
|
814
1616
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
815
1617
|
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
816
1618
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
@@ -841,7 +1643,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
841
1643
|
}
|
|
842
1644
|
if (node) {
|
|
843
1645
|
{
|
|
844
|
-
insertBefore(
|
|
1646
|
+
insertBefore(
|
|
1647
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1648
|
+
node,
|
|
1649
|
+
referenceNode(oldStartVnode.$elm$)
|
|
1650
|
+
);
|
|
845
1651
|
}
|
|
846
1652
|
}
|
|
847
1653
|
}
|
|
@@ -861,6 +1667,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
861
1667
|
};
|
|
862
1668
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
863
1669
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1670
|
+
if (leftVNode.$tag$ === "slot") {
|
|
1671
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
1672
|
+
}
|
|
864
1673
|
if (!isInitialRender) {
|
|
865
1674
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
866
1675
|
}
|
|
@@ -871,12 +1680,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
871
1680
|
}
|
|
872
1681
|
return false;
|
|
873
1682
|
};
|
|
1683
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
874
1684
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
875
1685
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
876
1686
|
const oldChildren = oldVNode.$children$;
|
|
877
1687
|
const newChildren = newVNode2.$children$;
|
|
878
1688
|
const tag = newVNode2.$tag$;
|
|
879
1689
|
const text = newVNode2.$text$;
|
|
1690
|
+
let defaultHolder;
|
|
880
1691
|
if (text == null) {
|
|
881
1692
|
{
|
|
882
1693
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
@@ -888,7 +1699,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
888
1699
|
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
889
1700
|
}
|
|
890
1701
|
}
|
|
891
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1702
|
+
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
892
1703
|
}
|
|
893
1704
|
if (oldChildren !== null && newChildren !== null) {
|
|
894
1705
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -902,14 +1713,68 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
902
1713
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
903
1714
|
) {
|
|
904
1715
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
905
|
-
} else
|
|
1716
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1717
|
+
newVNode2.$children$ = oldChildren;
|
|
1718
|
+
}
|
|
906
1719
|
if (isSvgMode && tag === "svg") {
|
|
907
1720
|
isSvgMode = false;
|
|
908
1721
|
}
|
|
1722
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1723
|
+
defaultHolder.parentNode.textContent = text;
|
|
909
1724
|
} else if (oldVNode.$text$ !== text) {
|
|
910
1725
|
elm.data = text;
|
|
911
1726
|
}
|
|
912
1727
|
};
|
|
1728
|
+
var relocateNodes = [];
|
|
1729
|
+
var markSlotContentForRelocation = (elm) => {
|
|
1730
|
+
let node;
|
|
1731
|
+
let hostContentNodes;
|
|
1732
|
+
let j;
|
|
1733
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
1734
|
+
for (const childNode of children) {
|
|
1735
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1736
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1737
|
+
const slotName = childNode["s-sn"];
|
|
1738
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1739
|
+
node = hostContentNodes[j];
|
|
1740
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
1741
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1742
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1743
|
+
checkSlotFallbackVisibility = true;
|
|
1744
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
1745
|
+
if (relocateNodeData) {
|
|
1746
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1747
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
1748
|
+
} else {
|
|
1749
|
+
node["s-sh"] = childNode["s-hn"];
|
|
1750
|
+
relocateNodes.push({
|
|
1751
|
+
$slotRefNode$: childNode,
|
|
1752
|
+
$nodeToRelocate$: node
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
if (node["s-sr"]) {
|
|
1756
|
+
relocateNodes.map((relocateNode) => {
|
|
1757
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1758
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1759
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1760
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1766
|
+
relocateNodes.push({
|
|
1767
|
+
$nodeToRelocate$: node
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1774
|
+
markSlotContentForRelocation(childNode);
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
};
|
|
913
1778
|
var nullifyVNodeRefs = (vNode) => {
|
|
914
1779
|
{
|
|
915
1780
|
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
@@ -932,6 +1797,14 @@ var flushQueuedRefCallbacks = () => {
|
|
|
932
1797
|
}
|
|
933
1798
|
};
|
|
934
1799
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1800
|
+
{
|
|
1801
|
+
if (typeof newNode["s-sn"] === "string") {
|
|
1802
|
+
parent.insertBefore(newNode, reference);
|
|
1803
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
1804
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
1805
|
+
return newNode;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
935
1808
|
if (parent.__insertBefore) {
|
|
936
1809
|
return parent.__insertBefore(newNode, reference);
|
|
937
1810
|
} else {
|
|
@@ -939,6 +1812,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
939
1812
|
}
|
|
940
1813
|
};
|
|
941
1814
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1815
|
+
var _a, _b, _c, _d, _e;
|
|
942
1816
|
const hostElm = hostRef.$hostElement$;
|
|
943
1817
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
944
1818
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -965,7 +1839,106 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
965
1839
|
hostRef.$vnode$ = rootVnode;
|
|
966
1840
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
967
1841
|
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1842
|
+
{
|
|
1843
|
+
contentRef = hostElm["s-cr"];
|
|
1844
|
+
checkSlotFallbackVisibility = false;
|
|
1845
|
+
}
|
|
968
1846
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1847
|
+
{
|
|
1848
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1849
|
+
if (checkSlotRelocate) {
|
|
1850
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1851
|
+
for (const relocateData of relocateNodes) {
|
|
1852
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1853
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1854
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1855
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1856
|
+
insertBefore(
|
|
1857
|
+
nodeToRelocate.parentNode,
|
|
1858
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
1859
|
+
nodeToRelocate,
|
|
1860
|
+
isInitialLoad
|
|
1861
|
+
);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
for (const relocateData of relocateNodes) {
|
|
1865
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1866
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1867
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
1868
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
1869
|
+
}
|
|
1870
|
+
if (slotRefNode) {
|
|
1871
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1872
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1873
|
+
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1874
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
1875
|
+
while (orgLocationNode) {
|
|
1876
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
1877
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1878
|
+
refNode = refNode.nextSibling;
|
|
1879
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1880
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1881
|
+
}
|
|
1882
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
1883
|
+
insertBeforeNode = refNode;
|
|
1884
|
+
break;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1891
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1892
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1893
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1894
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
1895
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
1896
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
1897
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
1898
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
1899
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
1900
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
1901
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
1902
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
1903
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
1904
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
1905
|
+
}
|
|
1906
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1907
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1912
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1913
|
+
nodeToRelocate.hidden = true;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
if (checkSlotFallbackVisibility) {
|
|
1918
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1919
|
+
}
|
|
1920
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1921
|
+
relocateNodes.length = 0;
|
|
1922
|
+
}
|
|
1923
|
+
if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
1924
|
+
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1925
|
+
for (const childNode of children) {
|
|
1926
|
+
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1927
|
+
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1928
|
+
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1929
|
+
}
|
|
1930
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1931
|
+
childNode.hidden = true;
|
|
1932
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
1933
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
1934
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
1935
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
1936
|
+
childNode.parentNode.removeChild(childNode);
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
contentRef = void 0;
|
|
969
1942
|
flushQueuedRefCallbacks();
|
|
970
1943
|
};
|
|
971
1944
|
|
|
@@ -1012,6 +1985,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1012
1985
|
let maybePromise;
|
|
1013
1986
|
if (isInitialLoad) {
|
|
1014
1987
|
{
|
|
1988
|
+
if (hostRef.$deferredConnectedCallback$) {
|
|
1989
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
1990
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1991
|
+
}
|
|
1015
1992
|
{
|
|
1016
1993
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1017
1994
|
if (hostRef.$queuedListeners$) {
|
|
@@ -1126,7 +2103,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1126
2103
|
}
|
|
1127
2104
|
};
|
|
1128
2105
|
var appDidLoad = (who) => {
|
|
2106
|
+
var _a;
|
|
1129
2107
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2108
|
+
{
|
|
2109
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2110
|
+
plt.$orgLocNodes$.clear();
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
1130
2113
|
};
|
|
1131
2114
|
var safeCall = (instance, method, arg, elm) => {
|
|
1132
2115
|
if (instance && instance[method]) {
|
|
@@ -1432,8 +2415,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1432
2415
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1433
2416
|
}
|
|
1434
2417
|
endNewInstance();
|
|
1435
|
-
|
|
2418
|
+
const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
2419
|
+
if (!needsDeferredCallback) {
|
|
1436
2420
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2421
|
+
} else {
|
|
2422
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
1437
2423
|
}
|
|
1438
2424
|
} else {
|
|
1439
2425
|
Cstr = elm.constructor;
|
|
@@ -1488,10 +2474,27 @@ var connectedCallback = (elm) => {
|
|
|
1488
2474
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1489
2475
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1490
2476
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
2477
|
+
let hostId;
|
|
2478
|
+
{
|
|
2479
|
+
hostId = elm.getAttribute(HYDRATE_ID);
|
|
2480
|
+
if (hostId) {
|
|
2481
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2482
|
+
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
2483
|
+
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2484
|
+
}
|
|
2485
|
+
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
if (!hostId) {
|
|
2489
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
2490
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
2491
|
+
setContentReference(elm);
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
1491
2494
|
{
|
|
1492
2495
|
let ancestorComponent = elm;
|
|
1493
2496
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1494
|
-
if (ancestorComponent["s-p"]) {
|
|
2497
|
+
if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
1495
2498
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1496
2499
|
break;
|
|
1497
2500
|
}
|
|
@@ -1520,6 +2523,16 @@ var connectedCallback = (elm) => {
|
|
|
1520
2523
|
endConnected();
|
|
1521
2524
|
}
|
|
1522
2525
|
};
|
|
2526
|
+
var setContentReference = (elm) => {
|
|
2527
|
+
if (!win.document) {
|
|
2528
|
+
return;
|
|
2529
|
+
}
|
|
2530
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2531
|
+
""
|
|
2532
|
+
);
|
|
2533
|
+
contentRefElm["s-cn"] = true;
|
|
2534
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2535
|
+
};
|
|
1523
2536
|
var disconnectInstance = (instance, elm) => {
|
|
1524
2537
|
{
|
|
1525
2538
|
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
@@ -1567,6 +2580,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1567
2580
|
let isBootstrapping = true;
|
|
1568
2581
|
Object.assign(plt, options);
|
|
1569
2582
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
2583
|
+
{
|
|
2584
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
2585
|
+
}
|
|
2586
|
+
{
|
|
2587
|
+
hydrateScopedToShadow();
|
|
2588
|
+
}
|
|
2589
|
+
let hasSlotRelocation = false;
|
|
1570
2590
|
lazyBundles.map((lazyBundle) => {
|
|
1571
2591
|
lazyBundle[1].map((compactMeta) => {
|
|
1572
2592
|
var _a2, _b, _c;
|
|
@@ -1576,6 +2596,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1576
2596
|
$members$: compactMeta[2],
|
|
1577
2597
|
$listeners$: compactMeta[3]
|
|
1578
2598
|
};
|
|
2599
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2600
|
+
hasSlotRelocation = true;
|
|
2601
|
+
}
|
|
1579
2602
|
{
|
|
1580
2603
|
cmpMeta.$members$ = compactMeta[2];
|
|
1581
2604
|
}
|
|
@@ -1669,6 +2692,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1669
2692
|
});
|
|
1670
2693
|
});
|
|
1671
2694
|
if (cmpTags.length > 0) {
|
|
2695
|
+
if (hasSlotRelocation) {
|
|
2696
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
|
2697
|
+
}
|
|
1672
2698
|
{
|
|
1673
2699
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1674
2700
|
}
|
|
@@ -1736,6 +2762,7 @@ function transformTag(tag) {
|
|
|
1736
2762
|
return tag;
|
|
1737
2763
|
}
|
|
1738
2764
|
|
|
2765
|
+
exports.Build = Build;
|
|
1739
2766
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1740
2767
|
exports.createEvent = createEvent;
|
|
1741
2768
|
exports.getElement = getElement;
|