@zonos/elements 1.3.204 → 1.3.205
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/{cart-0d91ad0b.js → cart-193af95a.js} +6 -5
- package/dist/cjs/{debounce-94e1b7ff.js → debounce-0b9c0f8a.js} +1 -1
- package/dist/cjs/{getBorderRadius-8d3b1049.js → getBorderRadius-c424eb05.js} +1 -1
- package/dist/cjs/{index-0993f42d.js → index-1c710d00.js} +455 -377
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-bcf49625.js → isDarkColor-35e8daec.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-2f17c95f.js → localization-88da0959.js} +1 -1
- package/dist/cjs/{paypal-9953115b.js → paypal-8525404c.js} +4 -4
- package/dist/cjs/zonos-address_11.cjs.entry.js +273 -121
- package/dist/cjs/zonos-badge.cjs.entry.js +26 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +6 -5
- package/dist/cjs/zonos-button_3.cjs.entry.js +89 -24
- package/dist/cjs/zonos-card.cjs.entry.js +10 -9
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +193 -74
- package/dist/cjs/zonos-checkout.cjs.entry.js +90 -35
- package/dist/cjs/zonos-collapse.cjs.entry.js +8 -2
- package/dist/cjs/zonos-component.cjs.entry.js +10 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +52 -24
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +21 -13
- package/dist/cjs/zonos-hello.cjs.entry.js +29 -17
- package/dist/cjs/zonos-input.cjs.entry.js +18 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +15 -4
- package/dist/cjs/zonos-link.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +8 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -8
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +25 -9
- package/dist/cjs/zonos-text.cjs.entry.js +11 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +5 -3
- package/dist/cjs/zonos-tooltip.cjs.entry.js +7 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-9264749e.js → zonosStore-7c1e1bc1.js} +4 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +0 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -13
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +6 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +25 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +83 -28
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +54 -17
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +8 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +20 -12
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +24 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +69 -18
- package/dist/collection/components/common/zonos-card/zonos-card.js +7 -6
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -2
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +6 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +34 -9
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +5 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +6 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +6 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +48 -14
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +12 -1
- package/dist/collection/components/common/zonos-input/zonos-input.js +15 -1
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +5 -1
- package/dist/collection/components/common/zonos-link/zonos-link.js +3 -3
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +7 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +6 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +7 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -5
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +21 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +19 -14
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +37 -12
- package/dist/collection/components/common/zonos-text/zonos-text.js +9 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -7
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +9 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +25 -13
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +8 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +0 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +17 -9
- package/dist/collection/components/main/zonos-controller.js +0 -4
- package/dist/collection/components/store/checkout/stripe.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +73 -33
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
- package/dist/esm/{cart-db61eb95.js → cart-a921e0b7.js} +7 -6
- package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-bf7224aa.js → localization-a2b8f9ed.js} +1 -1
- package/dist/esm/{paypal-2e0ffb07.js → paypal-67d51f03.js} +4 -4
- package/dist/esm/zonos-address_11.entry.js +273 -121
- package/dist/esm/zonos-badge.entry.js +26 -4
- package/dist/esm/zonos-banner.entry.js +6 -5
- package/dist/esm/zonos-button_3.entry.js +89 -24
- package/dist/esm/zonos-card.entry.js +10 -9
- package/dist/esm/zonos-cart-items_14.entry.js +193 -74
- package/dist/esm/zonos-checkout.entry.js +90 -35
- package/dist/esm/zonos-collapse.entry.js +8 -2
- package/dist/esm/zonos-component.entry.js +10 -1
- package/dist/esm/zonos-controller.entry.js +6 -8
- package/dist/esm/zonos-country-flag.entry.js +8 -4
- package/dist/esm/zonos-country-select_4.entry.js +52 -24
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
- package/dist/esm/zonos-hello-dialog.entry.js +21 -13
- package/dist/esm/zonos-hello.entry.js +29 -17
- package/dist/esm/zonos-input.entry.js +18 -4
- package/dist/esm/zonos-language-select_2.entry.js +15 -4
- package/dist/esm/zonos-link.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +8 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
- package/dist/esm/zonos-stripe-input.entry.js +25 -9
- package/dist/esm/zonos-text.entry.js +11 -4
- package/dist/esm/zonos-toggle.entry.js +5 -3
- package/dist/esm/zonos-tooltip.entry.js +7 -1
- package/dist/esm/zonos-v-stack.entry.js +6 -2
- package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
- package/dist/esm-es5/{cart-db61eb95.js → cart-a921e0b7.js} +1 -1
- package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm-es5/index-5ea9f81d.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-bf7224aa.js → localization-a2b8f9ed.js} +1 -1
- package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-67d51f03.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-019f8637.entry.js +1 -0
- package/dist/zonos-elements/p-02da743b.system.js +2 -0
- package/dist/zonos-elements/{p-df4c46a6.entry.js → p-05a91fe6.entry.js} +1 -1
- package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
- package/dist/zonos-elements/{p-5d0f7364.system.js → p-0d2df4d2.system.js} +1 -1
- package/dist/zonos-elements/p-0d7af8be.system.entry.js +1 -0
- package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
- package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
- package/dist/zonos-elements/p-1640d77f.js +2 -0
- package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
- package/dist/zonos-elements/p-16e858f9.entry.js +1 -0
- package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
- package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
- package/dist/zonos-elements/p-20ac92e1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0693422b.system.js → p-28fcd277.system.js} +1 -1
- package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
- package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
- package/dist/zonos-elements/p-3c921768.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
- package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-4329f616.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-715d0f59.system.entry.js → p-43b72ad6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
- package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5fbaa153.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6a71f76b.system.js → p-69577745.system.js} +1 -1
- package/dist/zonos-elements/p-6d467dfb.entry.js +1 -0
- package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
- package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
- package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f255e822.js → p-8609e956.js} +1 -1
- package/dist/zonos-elements/p-87e807b4.entry.js +1 -0
- package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-8debefec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d99d9e00.js → p-8e000d8d.js} +1 -1
- package/dist/zonos-elements/p-90c185ac.entry.js +1 -0
- package/dist/zonos-elements/p-91fc6911.entry.js +1 -0
- package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
- package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
- package/dist/zonos-elements/p-9fa17353.js +1 -0
- package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
- package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
- package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
- package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b922c441.system.js +1 -0
- package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-be53e893.system.js} +1 -1
- package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
- package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
- package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-d649fb9a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dcbd57df.entry.js +1 -0
- package/dist/zonos-elements/p-dd0f8f06.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a9307caa.js → p-dfe7d1dd.js} +1 -1
- package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
- package/dist/zonos-elements/p-e0ebbefe.entry.js +1 -0
- package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
- package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
- package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-ebe08e44.entry.js +1 -0
- package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
- package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-ee7a661d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f98276ed.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +50 -40
- package/dist/esm-es5/index-a457c60c.js +0 -2
- package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
- package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
- package/dist/zonos-elements/p-0944fe64.entry.js +0 -1
- package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
- package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
- package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
- package/dist/zonos-elements/p-43633269.system.js +0 -2
- package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
- package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
- package/dist/zonos-elements/p-4efa8187.js +0 -1
- package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
- package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
- package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
- package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
- package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
- package/dist/zonos-elements/p-c137dc82.js +0 -2
- package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
- package/dist/zonos-elements/p-c66fc4e5.system.entry.js +0 -1
- package/dist/zonos-elements/p-c767242b.entry.js +0 -1
- package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
- package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
- package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
- package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
- package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
- package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
- package/dist/zonos-elements/p-f29edb65.entry.js +0 -1
- package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
- package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
|
@@ -21,19 +21,32 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'zonos-elements';
|
|
24
|
-
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
24
|
+
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var
|
|
34
|
+
|
|
35
|
+
// src/utils/constants.ts
|
|
36
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
|
+
|
|
39
|
+
// src/client/client-host-ref.ts
|
|
40
|
+
var getHostRef = (ref) => {
|
|
41
|
+
if (ref.__stencil__getHostRef) {
|
|
42
|
+
return ref.__stencil__getHostRef();
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
};
|
|
46
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
47
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
48
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
49
|
+
};
|
|
37
50
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
51
|
const hostRef = {
|
|
39
52
|
$flags$: 0,
|
|
@@ -49,7 +62,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
49
62
|
hostElement["s-p"] = [];
|
|
50
63
|
hostElement["s-rc"] = [];
|
|
51
64
|
}
|
|
52
|
-
|
|
65
|
+
const ref = hostRef;
|
|
66
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
67
|
+
return ref;
|
|
53
68
|
};
|
|
54
69
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
55
70
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -73,21 +88,26 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
73
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
74
89
|
/* webpackMode: "lazy" */
|
|
75
90
|
`./${bundleId}.entry.js${""}`
|
|
76
|
-
)); }).then(
|
|
77
|
-
{
|
|
78
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
79
100
|
}
|
|
80
|
-
|
|
81
|
-
}, consoleError);
|
|
101
|
+
);
|
|
82
102
|
};
|
|
83
103
|
|
|
84
104
|
// src/client/client-style.ts
|
|
85
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
86
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
87
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
88
109
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
89
110
|
var win = typeof window !== "undefined" ? window : {};
|
|
90
|
-
var doc = win.document || { head: {} };
|
|
91
111
|
var plt = {
|
|
92
112
|
$flags$: 0,
|
|
93
113
|
$resourcesUrl$: "",
|
|
@@ -98,9 +118,10 @@ var plt = {
|
|
|
98
118
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
99
119
|
};
|
|
100
120
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
121
|
+
var _a;
|
|
101
122
|
let supportsListenerOptions2 = false;
|
|
102
123
|
try {
|
|
103
|
-
|
|
124
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
104
125
|
"e",
|
|
105
126
|
null,
|
|
106
127
|
Object.defineProperty({}, "passive", {
|
|
@@ -164,22 +185,17 @@ var getAssetPath = (path) => {
|
|
|
164
185
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
165
186
|
};
|
|
166
187
|
|
|
167
|
-
// src/utils/constants.ts
|
|
168
|
-
var EMPTY_OBJ = {};
|
|
169
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
170
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
171
|
-
|
|
172
188
|
// src/utils/helpers.ts
|
|
173
|
-
var isDef = (v) => v != null;
|
|
189
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
174
190
|
var isComplexType = (o) => {
|
|
175
191
|
o = typeof o;
|
|
176
192
|
return o === "object" || o === "function";
|
|
177
193
|
};
|
|
178
194
|
|
|
179
195
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
180
|
-
function queryNonceMetaTagContent(
|
|
196
|
+
function queryNonceMetaTagContent(doc) {
|
|
181
197
|
var _a, _b, _c;
|
|
182
|
-
return (_c = (_b = (_a =
|
|
198
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
183
199
|
}
|
|
184
200
|
|
|
185
201
|
// src/utils/result.ts
|
|
@@ -230,6 +246,20 @@ var unwrapErr = (result) => {
|
|
|
230
246
|
throw result.value;
|
|
231
247
|
}
|
|
232
248
|
};
|
|
249
|
+
var createTime = (fnName, tagName = "") => {
|
|
250
|
+
{
|
|
251
|
+
return () => {
|
|
252
|
+
return;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
var uniqueTime = (key, measureText) => {
|
|
257
|
+
{
|
|
258
|
+
return () => {
|
|
259
|
+
return;
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
};
|
|
233
263
|
var h = (nodeName, vnodeData, ...children) => {
|
|
234
264
|
let child = null;
|
|
235
265
|
let key = null;
|
|
@@ -331,128 +361,280 @@ var convertToPrivate = (node) => {
|
|
|
331
361
|
vnode.$name$ = node.vname;
|
|
332
362
|
return vnode;
|
|
333
363
|
};
|
|
334
|
-
var
|
|
335
|
-
if (
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
364
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
365
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
366
|
+
if (propType & 4 /* Boolean */) {
|
|
367
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
368
|
+
}
|
|
369
|
+
if (propType & 2 /* Number */) {
|
|
370
|
+
return parseFloat(propValue);
|
|
371
|
+
}
|
|
372
|
+
if (propType & 1 /* String */) {
|
|
373
|
+
return String(propValue);
|
|
374
|
+
}
|
|
375
|
+
return propValue;
|
|
376
|
+
}
|
|
377
|
+
return propValue;
|
|
378
|
+
};
|
|
379
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
380
|
+
|
|
381
|
+
// src/runtime/event-emitter.ts
|
|
382
|
+
var createEvent = (ref, name, flags) => {
|
|
383
|
+
const elm = getElement(ref);
|
|
384
|
+
return {
|
|
385
|
+
emit: (detail) => {
|
|
386
|
+
return emitEvent(elm, name, {
|
|
387
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
388
|
+
composed: !!(flags & 2 /* Composed */),
|
|
389
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
390
|
+
detail
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
var emitEvent = (elm, name, opts) => {
|
|
396
|
+
const ev = plt.ce(name, opts);
|
|
397
|
+
elm.dispatchEvent(ev);
|
|
398
|
+
return ev;
|
|
399
|
+
};
|
|
400
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
401
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
402
|
+
let style = styles.get(scopeId2);
|
|
403
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
404
|
+
style = style || new CSSStyleSheet();
|
|
405
|
+
if (typeof style === "string") {
|
|
406
|
+
style = cssText;
|
|
407
|
+
} else {
|
|
408
|
+
style.replaceSync(cssText);
|
|
409
|
+
}
|
|
410
|
+
} else {
|
|
411
|
+
style = cssText;
|
|
412
|
+
}
|
|
413
|
+
styles.set(scopeId2, style);
|
|
414
|
+
};
|
|
415
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
416
|
+
var _a;
|
|
417
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
418
|
+
const style = styles.get(scopeId2);
|
|
419
|
+
if (!win.document) {
|
|
420
|
+
return scopeId2;
|
|
421
|
+
}
|
|
422
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
423
|
+
if (style) {
|
|
424
|
+
if (typeof style === "string") {
|
|
425
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
426
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
427
|
+
let styleElm;
|
|
428
|
+
if (!appliedStyles) {
|
|
429
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
344
430
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
if (
|
|
351
|
-
|
|
352
|
-
|
|
431
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
432
|
+
{
|
|
433
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
434
|
+
styleElm.innerHTML = style;
|
|
435
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
436
|
+
if (nonce != null) {
|
|
437
|
+
styleElm.setAttribute("nonce", nonce);
|
|
438
|
+
}
|
|
439
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
440
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
441
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
442
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
443
|
+
styleContainerNode.insertBefore(
|
|
444
|
+
styleElm,
|
|
445
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
446
|
+
);
|
|
447
|
+
} else if ("host" in styleContainerNode) {
|
|
448
|
+
if (supportsConstructableStylesheets) {
|
|
449
|
+
const stylesheet = new CSSStyleSheet();
|
|
450
|
+
stylesheet.replaceSync(style);
|
|
451
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
452
|
+
} else {
|
|
453
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
454
|
+
if (existingStyleContainer) {
|
|
455
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
456
|
+
} else {
|
|
457
|
+
styleContainerNode.prepend(styleElm);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
353
460
|
} else {
|
|
354
|
-
|
|
461
|
+
styleContainerNode.append(styleElm);
|
|
355
462
|
}
|
|
356
463
|
}
|
|
464
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
465
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
469
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
470
|
+
}
|
|
471
|
+
if (appliedStyles) {
|
|
472
|
+
appliedStyles.add(scopeId2);
|
|
357
473
|
}
|
|
358
474
|
}
|
|
359
|
-
|
|
360
|
-
|
|
475
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
476
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
return scopeId2;
|
|
480
|
+
};
|
|
481
|
+
var attachStyles = (hostRef) => {
|
|
482
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
483
|
+
const elm = hostRef.$hostElement$;
|
|
484
|
+
const flags = cmpMeta.$flags$;
|
|
485
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
486
|
+
const scopeId2 = addStyle(
|
|
487
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
488
|
+
cmpMeta);
|
|
489
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
490
|
+
elm["s-sc"] = scopeId2;
|
|
491
|
+
elm.classList.add(scopeId2 + "-h");
|
|
492
|
+
}
|
|
493
|
+
endAttachStyles();
|
|
494
|
+
};
|
|
495
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
496
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
497
|
+
if (oldValue === newValue) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
501
|
+
let ln = memberName.toLowerCase();
|
|
502
|
+
if (memberName === "class") {
|
|
503
|
+
const classList = elm.classList;
|
|
504
|
+
const oldClasses = parseClassList(oldValue);
|
|
505
|
+
let newClasses = parseClassList(newValue);
|
|
506
|
+
{
|
|
507
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
508
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
509
|
+
}
|
|
510
|
+
} else if (memberName === "style") {
|
|
511
|
+
{
|
|
512
|
+
for (const prop in oldValue) {
|
|
513
|
+
if (!newValue || newValue[prop] == null) {
|
|
361
514
|
if (prop.includes("-")) {
|
|
362
|
-
elm.style.
|
|
515
|
+
elm.style.removeProperty(prop);
|
|
363
516
|
} else {
|
|
364
|
-
elm.style[prop] =
|
|
517
|
+
elm.style[prop] = "";
|
|
365
518
|
}
|
|
366
519
|
}
|
|
367
520
|
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
} else if (isMemberInElement(win, ln)) {
|
|
376
|
-
memberName = ln.slice(2);
|
|
377
|
-
} else {
|
|
378
|
-
memberName = ln[2] + memberName.slice(3);
|
|
379
|
-
}
|
|
380
|
-
if (oldValue || newValue) {
|
|
381
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
382
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
383
|
-
if (oldValue) {
|
|
384
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
385
|
-
}
|
|
386
|
-
if (newValue) {
|
|
387
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
521
|
+
}
|
|
522
|
+
for (const prop in newValue) {
|
|
523
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
524
|
+
if (prop.includes("-")) {
|
|
525
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
526
|
+
} else {
|
|
527
|
+
elm.style[prop] = newValue[prop];
|
|
388
528
|
}
|
|
389
529
|
}
|
|
530
|
+
}
|
|
531
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
532
|
+
if (newValue) {
|
|
533
|
+
newValue(elm);
|
|
534
|
+
}
|
|
535
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
536
|
+
if (memberName[2] === "-") {
|
|
537
|
+
memberName = memberName.slice(3);
|
|
538
|
+
} else if (isMemberInElement(win, ln)) {
|
|
539
|
+
memberName = ln.slice(2);
|
|
390
540
|
} else {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
541
|
+
memberName = ln[2] + memberName.slice(3);
|
|
542
|
+
}
|
|
543
|
+
if (oldValue || newValue) {
|
|
544
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
545
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
546
|
+
if (oldValue) {
|
|
547
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
548
|
+
}
|
|
549
|
+
if (newValue) {
|
|
550
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
} else {
|
|
554
|
+
const isComplex = isComplexType(newValue);
|
|
555
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
556
|
+
try {
|
|
557
|
+
if (!elm.tagName.includes("-")) {
|
|
558
|
+
const n = newValue == null ? "" : newValue;
|
|
559
|
+
if (memberName === "list") {
|
|
560
|
+
isProp = false;
|
|
561
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
562
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
563
|
+
elm[memberName] = n;
|
|
564
|
+
} else {
|
|
565
|
+
elm.setAttribute(memberName, n);
|
|
404
566
|
}
|
|
405
|
-
} else {
|
|
406
|
-
elm[memberName] = newValue;
|
|
407
567
|
}
|
|
408
|
-
}
|
|
568
|
+
} else if (elm[memberName] !== newValue) {
|
|
569
|
+
elm[memberName] = newValue;
|
|
409
570
|
}
|
|
571
|
+
} catch (e) {
|
|
410
572
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
573
|
+
}
|
|
574
|
+
let xlink = false;
|
|
575
|
+
{
|
|
576
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
577
|
+
memberName = ln;
|
|
578
|
+
xlink = true;
|
|
417
579
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
422
|
-
} else {
|
|
423
|
-
elm.removeAttribute(memberName);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
427
|
-
newValue = newValue === true ? "" : newValue;
|
|
580
|
+
}
|
|
581
|
+
if (newValue == null || newValue === false) {
|
|
582
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
428
583
|
if (xlink) {
|
|
429
|
-
elm.
|
|
584
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
430
585
|
} else {
|
|
431
|
-
elm.
|
|
586
|
+
elm.removeAttribute(memberName);
|
|
432
587
|
}
|
|
433
588
|
}
|
|
589
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
590
|
+
newValue = newValue === true ? "" : newValue;
|
|
591
|
+
if (xlink) {
|
|
592
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
593
|
+
} else {
|
|
594
|
+
elm.setAttribute(memberName, newValue);
|
|
595
|
+
}
|
|
434
596
|
}
|
|
435
597
|
}
|
|
436
598
|
};
|
|
437
599
|
var parseClassListRegex = /\s/;
|
|
438
|
-
var parseClassList = (value) =>
|
|
600
|
+
var parseClassList = (value) => {
|
|
601
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
602
|
+
value = value.baseVal;
|
|
603
|
+
}
|
|
604
|
+
if (!value || typeof value !== "string") {
|
|
605
|
+
return [];
|
|
606
|
+
}
|
|
607
|
+
return value.split(parseClassListRegex);
|
|
608
|
+
};
|
|
439
609
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
440
610
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
441
611
|
|
|
442
612
|
// src/runtime/vdom/update-element.ts
|
|
443
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
613
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
444
614
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
445
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
446
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
615
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
616
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
447
617
|
{
|
|
448
618
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
449
619
|
if (!(memberName in newVnodeAttrs)) {
|
|
450
|
-
setAccessor(
|
|
620
|
+
setAccessor(
|
|
621
|
+
elm,
|
|
622
|
+
memberName,
|
|
623
|
+
oldVnodeAttrs[memberName],
|
|
624
|
+
void 0,
|
|
625
|
+
isSvgMode2,
|
|
626
|
+
newVnode.$flags$);
|
|
451
627
|
}
|
|
452
628
|
}
|
|
453
629
|
}
|
|
454
630
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
455
|
-
setAccessor(
|
|
631
|
+
setAccessor(
|
|
632
|
+
elm,
|
|
633
|
+
memberName,
|
|
634
|
+
oldVnodeAttrs[memberName],
|
|
635
|
+
newVnodeAttrs[memberName],
|
|
636
|
+
isSvgMode2,
|
|
637
|
+
newVnode.$flags$);
|
|
456
638
|
}
|
|
457
639
|
};
|
|
458
640
|
function sortedAttrNames(attrNames) {
|
|
@@ -470,18 +652,23 @@ var scopeId;
|
|
|
470
652
|
var hostTagName;
|
|
471
653
|
var useNativeShadowDom = false;
|
|
472
654
|
var isSvgMode = false;
|
|
473
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
655
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
474
656
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
475
657
|
let i2 = 0;
|
|
476
658
|
let elm;
|
|
477
659
|
let childNode;
|
|
478
660
|
if (newVNode2.$text$ !== null) {
|
|
479
|
-
elm = newVNode2.$elm$ =
|
|
661
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
480
662
|
} else {
|
|
481
663
|
if (!isSvgMode) {
|
|
482
664
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
483
665
|
}
|
|
484
|
-
|
|
666
|
+
if (!win.document) {
|
|
667
|
+
throw new Error(
|
|
668
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
485
672
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
486
673
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
487
674
|
) ;
|
|
@@ -491,17 +678,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
491
678
|
{
|
|
492
679
|
updateElement(null, newVNode2, isSvgMode);
|
|
493
680
|
}
|
|
494
|
-
|
|
495
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
496
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
681
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
497
682
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
498
683
|
}
|
|
499
|
-
{
|
|
500
|
-
updateElementScopeIds(elm, parentElm);
|
|
501
|
-
}
|
|
502
684
|
if (newVNode2.$children$) {
|
|
503
685
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
504
|
-
childNode = createElm(oldParentVNode, newVNode2, i2
|
|
686
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
505
687
|
if (childNode) {
|
|
506
688
|
elm.appendChild(childNode);
|
|
507
689
|
}
|
|
@@ -526,7 +708,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
526
708
|
}
|
|
527
709
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
528
710
|
if (vnodes[startIdx]) {
|
|
529
|
-
childNode = createElm(null, parentVNode, startIdx
|
|
711
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
530
712
|
if (childNode) {
|
|
531
713
|
vnodes[startIdx].$elm$ = childNode;
|
|
532
714
|
insertBefore(containerElm, childNode, before);
|
|
@@ -599,7 +781,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
599
781
|
if (idxInOld >= 0) {
|
|
600
782
|
elmToMove = oldCh[idxInOld];
|
|
601
783
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
602
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld
|
|
784
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
603
785
|
} else {
|
|
604
786
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
605
787
|
oldCh[idxInOld] = void 0;
|
|
@@ -607,7 +789,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
607
789
|
}
|
|
608
790
|
newStartVnode = newCh[++newStartIdx];
|
|
609
791
|
} else {
|
|
610
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx
|
|
792
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
611
793
|
newStartVnode = newCh[++newStartIdx];
|
|
612
794
|
}
|
|
613
795
|
if (node) {
|
|
@@ -635,6 +817,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
635
817
|
if (!isInitialRender) {
|
|
636
818
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
637
819
|
}
|
|
820
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
821
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
822
|
+
}
|
|
638
823
|
return true;
|
|
639
824
|
}
|
|
640
825
|
return false;
|
|
@@ -650,9 +835,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
650
835
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
651
836
|
}
|
|
652
837
|
{
|
|
653
|
-
|
|
654
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
655
|
-
}
|
|
838
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
656
839
|
}
|
|
657
840
|
if (oldChildren !== null && newChildren !== null) {
|
|
658
841
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -681,38 +864,34 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
681
864
|
}
|
|
682
865
|
};
|
|
683
866
|
var insertBefore = (parent, newNode, reference) => {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
updateElementScopeIds(newNode, parent);
|
|
867
|
+
if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
868
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
687
869
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
var findScopeIds = (element) => {
|
|
691
|
-
const scopeIds = [];
|
|
692
|
-
if (element) {
|
|
693
|
-
scopeIds.push(
|
|
694
|
-
...element["s-scs"] || [],
|
|
695
|
-
element["s-si"],
|
|
696
|
-
element["s-sc"],
|
|
697
|
-
...findScopeIds(element.parentElement)
|
|
698
|
-
);
|
|
870
|
+
{
|
|
871
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
699
872
|
}
|
|
700
|
-
return scopeIds;
|
|
701
873
|
};
|
|
702
|
-
|
|
703
|
-
var _a;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
874
|
+
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
875
|
+
var _a, _b;
|
|
876
|
+
let scopeId2;
|
|
877
|
+
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
878
|
+
const scopeName = slotNode["s-sn"];
|
|
879
|
+
const hostName = slotNode["s-hn"];
|
|
880
|
+
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
881
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
882
|
+
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
883
|
+
let found = false;
|
|
884
|
+
while (child) {
|
|
885
|
+
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
886
|
+
found = true;
|
|
887
|
+
break;
|
|
711
888
|
}
|
|
889
|
+
child = child.nextSibling;
|
|
712
890
|
}
|
|
891
|
+
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
713
892
|
}
|
|
714
893
|
}
|
|
715
|
-
}
|
|
894
|
+
}
|
|
716
895
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
717
896
|
const hostElm = hostRef.$hostElement$;
|
|
718
897
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -733,157 +912,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
733
912
|
{
|
|
734
913
|
scopeId = hostElm["s-sc"];
|
|
735
914
|
}
|
|
736
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
915
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
737
916
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
738
917
|
};
|
|
739
|
-
var createTime = (fnName, tagName = "") => {
|
|
740
|
-
{
|
|
741
|
-
return () => {
|
|
742
|
-
return;
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
|
-
var uniqueTime = (key, measureText) => {
|
|
747
|
-
{
|
|
748
|
-
return () => {
|
|
749
|
-
return;
|
|
750
|
-
};
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
754
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
755
|
-
if (propType & 4 /* Boolean */) {
|
|
756
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
757
|
-
}
|
|
758
|
-
if (propType & 2 /* Number */) {
|
|
759
|
-
return parseFloat(propValue);
|
|
760
|
-
}
|
|
761
|
-
if (propType & 1 /* String */) {
|
|
762
|
-
return String(propValue);
|
|
763
|
-
}
|
|
764
|
-
return propValue;
|
|
765
|
-
}
|
|
766
|
-
return propValue;
|
|
767
|
-
};
|
|
768
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
769
|
-
|
|
770
|
-
// src/runtime/event-emitter.ts
|
|
771
|
-
var createEvent = (ref, name, flags) => {
|
|
772
|
-
const elm = getElement(ref);
|
|
773
|
-
return {
|
|
774
|
-
emit: (detail) => {
|
|
775
|
-
return emitEvent(elm, name, {
|
|
776
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
777
|
-
composed: !!(flags & 2 /* Composed */),
|
|
778
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
779
|
-
detail
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
var emitEvent = (elm, name, opts) => {
|
|
785
|
-
const ev = plt.ce(name, opts);
|
|
786
|
-
elm.dispatchEvent(ev);
|
|
787
|
-
return ev;
|
|
788
|
-
};
|
|
789
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
790
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
791
|
-
let style = styles.get(scopeId2);
|
|
792
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
793
|
-
style = style || new CSSStyleSheet();
|
|
794
|
-
if (typeof style === "string") {
|
|
795
|
-
style = cssText;
|
|
796
|
-
} else {
|
|
797
|
-
style.replaceSync(cssText);
|
|
798
|
-
}
|
|
799
|
-
} else {
|
|
800
|
-
style = cssText;
|
|
801
|
-
}
|
|
802
|
-
styles.set(scopeId2, style);
|
|
803
|
-
};
|
|
804
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
805
|
-
var _a;
|
|
806
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
807
|
-
const style = styles.get(scopeId2);
|
|
808
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
809
|
-
if (style) {
|
|
810
|
-
if (typeof style === "string") {
|
|
811
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
812
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
813
|
-
let styleElm;
|
|
814
|
-
if (!appliedStyles) {
|
|
815
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
816
|
-
}
|
|
817
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
818
|
-
{
|
|
819
|
-
styleElm = doc.createElement("style");
|
|
820
|
-
styleElm.innerHTML = style;
|
|
821
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
822
|
-
if (nonce != null) {
|
|
823
|
-
styleElm.setAttribute("nonce", nonce);
|
|
824
|
-
}
|
|
825
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
826
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
827
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
828
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
829
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
830
|
-
} else if ("host" in styleContainerNode) {
|
|
831
|
-
if (supportsConstructableStylesheets) {
|
|
832
|
-
const stylesheet = new CSSStyleSheet();
|
|
833
|
-
stylesheet.replaceSync(style);
|
|
834
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
835
|
-
} else {
|
|
836
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
837
|
-
if (existingStyleContainer) {
|
|
838
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
839
|
-
} else {
|
|
840
|
-
styleContainerNode.prepend(styleElm);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
} else {
|
|
844
|
-
styleContainerNode.append(styleElm);
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
848
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
852
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
853
|
-
}
|
|
854
|
-
if (appliedStyles) {
|
|
855
|
-
appliedStyles.add(scopeId2);
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
859
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
return scopeId2;
|
|
863
|
-
};
|
|
864
|
-
var attachStyles = (hostRef) => {
|
|
865
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
866
|
-
const elm = hostRef.$hostElement$;
|
|
867
|
-
const flags = cmpMeta.$flags$;
|
|
868
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
869
|
-
const scopeId2 = addStyle(
|
|
870
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
871
|
-
cmpMeta);
|
|
872
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
873
|
-
elm["s-sc"] = scopeId2;
|
|
874
|
-
elm.classList.add(scopeId2 + "-h");
|
|
875
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
876
|
-
elm.classList.add(scopeId2 + "-s");
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
endAttachStyles();
|
|
880
|
-
};
|
|
881
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
882
918
|
|
|
883
919
|
// src/runtime/update-component.ts
|
|
884
920
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
885
921
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
886
|
-
ancestorComponent["s-p"].push(
|
|
922
|
+
const index = ancestorComponent["s-p"].push(
|
|
923
|
+
new Promise(
|
|
924
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
925
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
926
|
+
r();
|
|
927
|
+
}
|
|
928
|
+
)
|
|
929
|
+
);
|
|
887
930
|
}
|
|
888
931
|
};
|
|
889
932
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -912,14 +955,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
912
955
|
{
|
|
913
956
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
914
957
|
if (hostRef.$queuedListeners$) {
|
|
915
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
958
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
916
959
|
hostRef.$queuedListeners$ = void 0;
|
|
917
960
|
}
|
|
918
961
|
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
962
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
963
|
+
} else {
|
|
964
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
922
965
|
}
|
|
966
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
923
967
|
endSchedule();
|
|
924
968
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
925
969
|
};
|
|
@@ -989,17 +1033,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
989
1033
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
990
1034
|
const instance = hostRef.$lazyInstance$ ;
|
|
991
1035
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
992
|
-
|
|
993
|
-
safeCall(instance, "componentDidRender");
|
|
994
|
-
}
|
|
1036
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
995
1037
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
996
1038
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
997
1039
|
{
|
|
998
1040
|
addHydratedFlag(elm);
|
|
999
1041
|
}
|
|
1000
|
-
|
|
1001
|
-
safeCall(instance, "componentDidLoad");
|
|
1002
|
-
}
|
|
1042
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1003
1043
|
endPostUpdate();
|
|
1004
1044
|
{
|
|
1005
1045
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1008,6 +1048,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1008
1048
|
}
|
|
1009
1049
|
}
|
|
1010
1050
|
} else {
|
|
1051
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1011
1052
|
endPostUpdate();
|
|
1012
1053
|
}
|
|
1013
1054
|
{
|
|
@@ -1035,17 +1076,14 @@ var forceUpdate = (ref) => {
|
|
|
1035
1076
|
}
|
|
1036
1077
|
};
|
|
1037
1078
|
var appDidLoad = (who) => {
|
|
1038
|
-
{
|
|
1039
|
-
addHydratedFlag(doc.documentElement);
|
|
1040
|
-
}
|
|
1041
1079
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1042
1080
|
};
|
|
1043
|
-
var safeCall = (instance, method, arg) => {
|
|
1081
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1044
1082
|
if (instance && instance[method]) {
|
|
1045
1083
|
try {
|
|
1046
1084
|
return instance[method](arg);
|
|
1047
1085
|
} catch (e) {
|
|
1048
|
-
consoleError(e);
|
|
1086
|
+
consoleError(e, elm);
|
|
1049
1087
|
}
|
|
1050
1088
|
}
|
|
1051
1089
|
return void 0;
|
|
@@ -1061,7 +1099,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1061
1099
|
const hostRef = getHostRef(ref);
|
|
1062
1100
|
if (!hostRef) {
|
|
1063
1101
|
throw new Error(
|
|
1064
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/
|
|
1102
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
1065
1103
|
);
|
|
1066
1104
|
}
|
|
1067
1105
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -1087,6 +1125,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1087
1125
|
}
|
|
1088
1126
|
}
|
|
1089
1127
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1128
|
+
if (instance.componentShouldUpdate) {
|
|
1129
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1130
|
+
return;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1090
1133
|
scheduleUpdate(hostRef, false);
|
|
1091
1134
|
}
|
|
1092
1135
|
}
|
|
@@ -1104,62 +1147,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1104
1147
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1105
1148
|
members.map(([memberName, [memberFlags]]) => {
|
|
1106
1149
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1107
|
-
|
|
1150
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1151
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1152
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1153
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1108
1154
|
Object.defineProperty(prototype, memberName, {
|
|
1109
1155
|
get() {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
},
|
|
1115
|
-
configurable: true,
|
|
1116
|
-
enumerable: true
|
|
1117
|
-
});
|
|
1118
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
1119
|
-
{
|
|
1120
|
-
Object.defineProperty(prototype, memberName, {
|
|
1121
|
-
get() {
|
|
1156
|
+
{
|
|
1157
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1158
|
+
return getValue(this, memberName);
|
|
1159
|
+
}
|
|
1122
1160
|
const ref = getHostRef(this);
|
|
1123
1161
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1124
1162
|
if (!instance) return;
|
|
1125
1163
|
return instance[memberName];
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
configurable: true,
|
|
1167
|
+
enumerable: true
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
Object.defineProperty(prototype, memberName, {
|
|
1171
|
+
set(newValue) {
|
|
1172
|
+
const ref = getHostRef(this);
|
|
1173
|
+
if (origSetter) {
|
|
1174
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1175
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1176
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1177
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1178
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1179
|
+
}
|
|
1180
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1181
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1182
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1183
|
+
return;
|
|
1184
|
+
}
|
|
1185
|
+
{
|
|
1186
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1187
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1188
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1189
|
+
ref.$onReadyPromise$.then(() => {
|
|
1190
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1191
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1144
1194
|
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
1152
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1153
|
-
};
|
|
1154
|
-
if (ref.$lazyInstance$) {
|
|
1155
|
-
setterSetVal();
|
|
1156
|
-
} else {
|
|
1157
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
const setterSetVal = () => {
|
|
1198
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1199
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1200
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1158
1201
|
}
|
|
1202
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1203
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1204
|
+
};
|
|
1205
|
+
if (ref.$lazyInstance$) {
|
|
1206
|
+
setterSetVal();
|
|
1207
|
+
} else {
|
|
1208
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1159
1209
|
}
|
|
1160
|
-
}
|
|
1210
|
+
}
|
|
1161
1211
|
}
|
|
1162
|
-
}
|
|
1212
|
+
});
|
|
1163
1213
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1164
1214
|
Object.defineProperty(prototype, memberName, {
|
|
1165
1215
|
value(...args) {
|
|
@@ -1179,7 +1229,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1179
1229
|
plt.jmp(() => {
|
|
1180
1230
|
var _a2;
|
|
1181
1231
|
const propName = attrNameToPropName.get(attrName);
|
|
1182
|
-
if (this.hasOwnProperty(propName)) {
|
|
1232
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1183
1233
|
newValue = this[propName];
|
|
1184
1234
|
delete this[propName];
|
|
1185
1235
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1200,8 +1250,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1200
1250
|
return;
|
|
1201
1251
|
}
|
|
1202
1252
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1203
|
-
|
|
1204
|
-
|
|
1253
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1254
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1255
|
+
this[propName] = newValue;
|
|
1205
1256
|
}
|
|
1206
1257
|
});
|
|
1207
1258
|
};
|
|
@@ -1227,7 +1278,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1227
1278
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1228
1279
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1229
1280
|
if (bundleId) {
|
|
1230
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1281
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1231
1282
|
if (CstrImport && "then" in CstrImport) {
|
|
1232
1283
|
const endLoad = uniqueTime();
|
|
1233
1284
|
Cstr = await CstrImport;
|
|
@@ -1252,7 +1303,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1252
1303
|
try {
|
|
1253
1304
|
new Cstr(hostRef);
|
|
1254
1305
|
} catch (e) {
|
|
1255
|
-
consoleError(e);
|
|
1306
|
+
consoleError(e, elm);
|
|
1256
1307
|
}
|
|
1257
1308
|
{
|
|
1258
1309
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1261,7 +1312,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1261
1312
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1262
1313
|
}
|
|
1263
1314
|
endNewInstance();
|
|
1264
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1315
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1265
1316
|
} else {
|
|
1266
1317
|
Cstr = elm.constructor;
|
|
1267
1318
|
const cmpTag = elm.localName;
|
|
@@ -1288,9 +1339,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1288
1339
|
schedule();
|
|
1289
1340
|
}
|
|
1290
1341
|
};
|
|
1291
|
-
var fireConnectedCallback = (instance) => {
|
|
1342
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1292
1343
|
{
|
|
1293
|
-
safeCall(instance, "connectedCallback");
|
|
1344
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1294
1345
|
}
|
|
1295
1346
|
};
|
|
1296
1347
|
|
|
@@ -1326,17 +1377,17 @@ var connectedCallback = (elm) => {
|
|
|
1326
1377
|
} else {
|
|
1327
1378
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1328
1379
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1329
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1380
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1330
1381
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1331
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1382
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1332
1383
|
}
|
|
1333
1384
|
}
|
|
1334
1385
|
endConnected();
|
|
1335
1386
|
}
|
|
1336
1387
|
};
|
|
1337
|
-
var disconnectInstance = (instance) => {
|
|
1388
|
+
var disconnectInstance = (instance, elm) => {
|
|
1338
1389
|
{
|
|
1339
|
-
safeCall(instance, "disconnectedCallback");
|
|
1390
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1340
1391
|
}
|
|
1341
1392
|
};
|
|
1342
1393
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1349,28 +1400,38 @@ var disconnectedCallback = async (elm) => {
|
|
|
1349
1400
|
}
|
|
1350
1401
|
}
|
|
1351
1402
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1352
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1403
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1353
1404
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1354
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1405
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1355
1406
|
}
|
|
1356
1407
|
}
|
|
1408
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1409
|
+
rootAppliedStyles.delete(elm);
|
|
1410
|
+
}
|
|
1411
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1412
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1413
|
+
}
|
|
1357
1414
|
};
|
|
1358
1415
|
|
|
1359
1416
|
// src/runtime/bootstrap-lazy.ts
|
|
1360
1417
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1361
1418
|
var _a;
|
|
1419
|
+
if (!win.document) {
|
|
1420
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1421
|
+
return;
|
|
1422
|
+
}
|
|
1362
1423
|
const endBootstrap = createTime();
|
|
1363
1424
|
const cmpTags = [];
|
|
1364
1425
|
const exclude = options.exclude || [];
|
|
1365
1426
|
const customElements2 = win.customElements;
|
|
1366
|
-
const head =
|
|
1427
|
+
const head = win.document.head;
|
|
1367
1428
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1368
|
-
const dataStyles = /* @__PURE__ */
|
|
1429
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1369
1430
|
const deferredConnectedCallbacks = [];
|
|
1370
1431
|
let appLoadFallback;
|
|
1371
1432
|
let isBootstrapping = true;
|
|
1372
1433
|
Object.assign(plt, options);
|
|
1373
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1434
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1374
1435
|
let hasSlotRelocation = false;
|
|
1375
1436
|
lazyBundles.map((lazyBundle) => {
|
|
1376
1437
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1438,6 +1499,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1438
1499
|
}
|
|
1439
1500
|
disconnectedCallback() {
|
|
1440
1501
|
plt.jmp(() => disconnectedCallback(this));
|
|
1502
|
+
plt.raf(() => {
|
|
1503
|
+
var _a3;
|
|
1504
|
+
const hostRef = getHostRef(this);
|
|
1505
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1506
|
+
if (i2 > -1) {
|
|
1507
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1508
|
+
}
|
|
1509
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1510
|
+
delete hostRef.$vnode$.$elm$;
|
|
1511
|
+
}
|
|
1512
|
+
});
|
|
1441
1513
|
}
|
|
1442
1514
|
componentOnReady() {
|
|
1443
1515
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1462,7 +1534,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1462
1534
|
}
|
|
1463
1535
|
if (dataStyles.innerHTML.length) {
|
|
1464
1536
|
dataStyles.setAttribute("data-styles", "");
|
|
1465
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1537
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1466
1538
|
if (nonce != null) {
|
|
1467
1539
|
dataStyles.setAttribute("nonce", nonce);
|
|
1468
1540
|
}
|
|
@@ -1483,9 +1555,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1483
1555
|
// src/runtime/fragment.ts
|
|
1484
1556
|
var Fragment = (_, children) => children;
|
|
1485
1557
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1486
|
-
if (listeners) {
|
|
1558
|
+
if (listeners && win.document) {
|
|
1487
1559
|
listeners.map(([flags, name, method]) => {
|
|
1488
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
1560
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1489
1561
|
const handler = hostListenerProxy(hostRef, method);
|
|
1490
1562
|
const opts = hostListenerOpts(flags);
|
|
1491
1563
|
plt.ael(target, name, handler, opts);
|
|
@@ -1504,13 +1576,19 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1504
1576
|
}
|
|
1505
1577
|
}
|
|
1506
1578
|
} catch (e) {
|
|
1507
|
-
consoleError(e);
|
|
1579
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1508
1580
|
}
|
|
1509
1581
|
};
|
|
1510
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
1511
|
-
if (flags & 4 /* TargetDocument */)
|
|
1512
|
-
|
|
1513
|
-
|
|
1582
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1583
|
+
if (flags & 4 /* TargetDocument */) {
|
|
1584
|
+
return doc;
|
|
1585
|
+
}
|
|
1586
|
+
if (flags & 8 /* TargetWindow */) {
|
|
1587
|
+
return win;
|
|
1588
|
+
}
|
|
1589
|
+
if (flags & 16 /* TargetBody */) {
|
|
1590
|
+
return doc.body;
|
|
1591
|
+
}
|
|
1514
1592
|
return elm;
|
|
1515
1593
|
};
|
|
1516
1594
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|