@affinda/wc 0.4.2 → 0.5.0
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/affinda/affinda.esm.js +1 -1
- package/dist/affinda/index.esm.js +1 -1
- package/dist/affinda/{p-8fe10b18.entry.js → p-02c6f6d1.entry.js} +2 -2
- package/dist/affinda/{p-5885ebd3.entry.js → p-0c7d81d0.entry.js} +2 -2
- package/dist/affinda/{p-d40f8d18.entry.js → p-1554f3d7.entry.js} +2 -2
- package/dist/affinda/{p-0254b263.entry.js → p-15a1d019.entry.js} +2 -2
- package/dist/affinda/{p-4f731d31.entry.js → p-1819ae80.entry.js} +2 -2
- package/dist/affinda/{p-6898d4bd.entry.js → p-1a71d0f9.entry.js} +2 -2
- package/dist/affinda/{p-4f15b8f0.entry.js → p-1e59a051.entry.js} +2 -2
- package/dist/affinda/{p-c0f71971.entry.js → p-1f2f7fff.entry.js} +2 -2
- package/dist/affinda/{p-7eb0875d.entry.js → p-20faf28d.entry.js} +2 -2
- package/dist/affinda/{p-42c4d7b1.entry.js → p-2716cdc4.entry.js} +2 -2
- package/dist/affinda/{p-62eb01fa.entry.js → p-3084cb0f.entry.js} +2 -2
- package/dist/affinda/{p-8a2cbcf0.entry.js → p-31d96ddc.entry.js} +2 -2
- package/dist/affinda/{p-aa9c2609.entry.js → p-374f9557.entry.js} +2 -2
- package/dist/affinda/{p-15eac0d5.entry.js → p-3fd3d4cd.entry.js} +2 -2
- package/dist/affinda/{p-b13c1438.entry.js → p-41580a3c.entry.js} +2 -2
- package/dist/affinda/{p-43a0286a.entry.js → p-47d2f72b.entry.js} +2 -2
- package/dist/affinda/{p-9dfb5fab.entry.js → p-50e12df0.entry.js} +2 -2
- package/dist/affinda/{p-b69bce30.entry.js → p-54dc41a9.entry.js} +2 -2
- package/dist/affinda/{p-283a9dec.entry.js → p-56e96bd3.entry.js} +2 -2
- package/dist/affinda/{p-3cd4edd0.entry.js → p-5834ffe7.entry.js} +2 -2
- package/dist/affinda/{p-a35ab849.entry.js → p-5e966aa6.entry.js} +2 -2
- package/dist/affinda/{p-dd933272.entry.js → p-616e0116.entry.js} +2 -2
- package/dist/affinda/{p-3b429a16.entry.js → p-64159112.entry.js} +2 -2
- package/dist/affinda/{p-606159d2.entry.js → p-656630fc.entry.js} +2 -2
- package/dist/affinda/{p-3a7afe33.entry.js → p-67b08108.entry.js} +2 -2
- package/dist/affinda/{p-5e01b103.entry.js → p-6ff65e42.entry.js} +2 -2
- package/dist/affinda/{p-369dfdd8.entry.js → p-75d76909.entry.js} +2 -2
- package/dist/affinda/{p-b82fc7f1.entry.js → p-761f06ae.entry.js} +2 -2
- package/dist/affinda/{p-d9ff321b.entry.js → p-7b08b7ba.entry.js} +2 -2
- package/dist/affinda/{p-db7eb209.entry.js → p-7eff3490.entry.js} +2 -2
- package/dist/affinda/{p-7faa3fb9.entry.js → p-838bbc80.entry.js} +2 -2
- package/dist/affinda/{p-d12d33c8.entry.js → p-88f38401.entry.js} +2 -2
- package/dist/affinda/{p-b2a41a48.entry.js → p-8b0d08de.entry.js} +2 -2
- package/dist/affinda/{p-f5b4923f.entry.js → p-8f36e911.entry.js} +2 -2
- package/dist/affinda/{p-73de3aa7.entry.js → p-919e2144.entry.js} +2 -2
- package/dist/affinda/{p-08a42935.entry.js → p-92c61bad.entry.js} +2 -2
- package/dist/affinda/{p-646b73fb.entry.js → p-94119fa2.entry.js} +2 -2
- package/dist/affinda/{p-6949fbdf.entry.js → p-95da58f3.entry.js} +2 -2
- package/dist/affinda/{p-4ff626de.entry.js → p-976e0c29.entry.js} +2 -2
- package/dist/affinda/{p-1efa4787.entry.js → p-99b37588.entry.js} +2 -2
- package/dist/affinda/p-CYq0zyKH.js +3 -0
- package/dist/affinda/p-CYq0zyKH.js.map +1 -0
- package/dist/affinda/{p-988fb256.entry.js → p-a196f362.entry.js} +2 -2
- package/dist/affinda/{p-91b71a8f.entry.js → p-a3ed4092.entry.js} +2 -2
- package/dist/affinda/{p-a70ce66f.entry.js → p-a4b36eb7.entry.js} +2 -2
- package/dist/affinda/{p-27026c90.entry.js → p-a6be61c2.entry.js} +2 -2
- package/dist/affinda/{p-bc1088a7.entry.js → p-a79077d5.entry.js} +2 -2
- package/dist/affinda/{p-cebfc8a9.entry.js → p-b31e438d.entry.js} +2 -2
- package/dist/affinda/{p-64f24ab4.entry.js → p-b77fa201.entry.js} +2 -2
- package/dist/affinda/{p-6de54e73.entry.js → p-bb80195f.entry.js} +2 -2
- package/dist/affinda/{p-7640c285.entry.js → p-bc59dc0e.entry.js} +2 -2
- package/dist/affinda/{p-d275fb5d.entry.js → p-be219843.entry.js} +2 -2
- package/dist/affinda/{p-17c2999b.entry.js → p-c15d00b5.entry.js} +2 -2
- package/dist/affinda/{p-02427605.entry.js → p-c23d7aa5.entry.js} +2 -2
- package/dist/affinda/{p-6df7b689.entry.js → p-c2a6c874.entry.js} +2 -2
- package/dist/affinda/{p-d34da6c0.entry.js → p-c6aa66f3.entry.js} +2 -2
- package/dist/affinda/{p-2d5eb5ac.entry.js → p-c925d301.entry.js} +2 -2
- package/dist/affinda/{p-42c69bc9.entry.js → p-cc2539de.entry.js} +2 -2
- package/dist/affinda/{p-972984a9.entry.js → p-cd21a62a.entry.js} +2 -2
- package/dist/affinda/{p-4f422489.entry.js → p-cea1c1ff.entry.js} +2 -2
- package/dist/affinda/{p-1aa795c7.entry.js → p-d573d115.entry.js} +2 -2
- package/dist/affinda/{p-c2c16447.entry.js → p-d9b0f217.entry.js} +2 -2
- package/dist/affinda/{p-f76ef563.entry.js → p-df10dee2.entry.js} +2 -2
- package/dist/affinda/{p-09e202d1.entry.js → p-e057ebf1.entry.js} +2 -2
- package/dist/affinda/{p-df6c7170.entry.js → p-e10c03b6.entry.js} +2 -2
- package/dist/affinda/{p-78941fec.entry.js → p-ea5aea86.entry.js} +2 -2
- package/dist/affinda/{p-8eb60b77.entry.js → p-eca85313.entry.js} +2 -2
- package/dist/affinda/{p-bdb3e590.entry.js → p-f1705df1.entry.js} +2 -2
- package/dist/affinda/{p-a326d8f6.entry.js → p-f38688c6.entry.js} +2 -2
- package/dist/affinda/p-fd772af4.entry.js +2 -0
- package/dist/affinda/{p-4ccc3147.entry.js → p-fe09a283.entry.js} +2 -2
- package/dist/cjs/af-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/af-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/af-button-group.cjs.entry.js +1 -1
- package/dist/cjs/af-button.cjs.entry.js +1 -1
- package/dist/cjs/af-card.cjs.entry.js +1 -1
- package/dist/cjs/af-center.cjs.entry.js +1 -1
- package/dist/cjs/af-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/af-client-carousel.cjs.entry.js +1 -1
- package/dist/cjs/af-color-swatch.cjs.entry.js +1 -1
- package/dist/cjs/af-contact-item.cjs.entry.js +1 -1
- package/dist/cjs/af-container.cjs.entry.js +1 -1
- package/dist/cjs/af-divider.cjs.entry.js +1 -1
- package/dist/cjs/af-feature-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-feature-card.cjs.entry.js +1 -1
- package/dist/cjs/af-feature-grid.cjs.entry.js +1 -1
- package/dist/cjs/af-fieldset.cjs.entry.js +1 -1
- package/dist/cjs/af-footer-column.cjs.entry.js +1 -1
- package/dist/cjs/af-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/af-footer.cjs.entry.js +1 -1
- package/dist/cjs/af-grid-callout.cjs.entry.js +1 -1
- package/dist/cjs/af-grid.cjs.entry.js +1 -1
- package/dist/cjs/af-heading_5.cjs.entry.js +1 -1
- package/dist/cjs/af-hero.cjs.entry.js +1 -1
- package/dist/cjs/af-icon-box.cjs.entry.js +1 -1
- package/dist/cjs/af-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/af-icon-text.cjs.entry.js +1 -1
- package/dist/cjs/af-icon.cjs.entry.js +1 -1
- package/dist/cjs/af-illustrated-card.cjs.entry.js +1 -1
- package/dist/cjs/af-image.cjs.entry.js +1 -1
- package/dist/cjs/af-in-page-banner.cjs.entry.js +1 -1
- package/dist/cjs/af-inline.cjs.entry.js +1 -1
- package/dist/cjs/af-input.cjs.entry.js +1 -1
- package/dist/cjs/af-logo-well.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-menu-nest.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-menu.cjs.entry.js +1 -1
- package/dist/cjs/af-number-badge.cjs.entry.js +1 -1
- package/dist/cjs/af-numbered-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/af-numbered-stepper.cjs.entry.js +1 -1
- package/dist/cjs/af-paperclip-decoration.cjs.entry.js +1 -1
- package/dist/cjs/af-progress-line.cjs.entry.js +1 -1
- package/dist/cjs/af-radio.cjs.entry.js +1 -1
- package/dist/cjs/af-section.cjs.entry.js +1 -1
- package/dist/cjs/af-show.cjs.entry.js +1 -1
- package/dist/cjs/af-social-link.cjs.entry.js +1 -1
- package/dist/cjs/af-spacer.cjs.entry.js +1 -1
- package/dist/cjs/af-split-section.cjs.entry.js +1 -1
- package/dist/cjs/af-stack.cjs.entry.js +1 -1
- package/dist/cjs/af-stat.cjs.entry.js +1 -1
- package/dist/cjs/af-stats-row.cjs.entry.js +1 -1
- package/dist/cjs/af-stepper-step.cjs.entry.js +1 -1
- package/dist/cjs/af-stepper.cjs.entry.js +1 -1
- package/dist/cjs/af-switch.cjs.entry.js +1 -1
- package/dist/cjs/af-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/af-tab.cjs.entry.js +1 -1
- package/dist/cjs/af-tag.cjs.entry.js +1 -1
- package/dist/cjs/af-testimonial-carousel.cjs.entry.js +1 -1
- package/dist/cjs/af-testimonial-stat.cjs.entry.js +1 -1
- package/dist/cjs/af-testimonial.cjs.entry.js +1 -1
- package/dist/cjs/af-text-image-nest.cjs.entry.js +1 -1
- package/dist/cjs/af-text-image.cjs.entry.js +1 -1
- package/dist/cjs/af-textarea.cjs.entry.js +1 -1
- package/dist/cjs/af-theme-override.cjs.entry.js +1 -1
- package/dist/cjs/af-typography-lockup.cjs.entry.js +1 -1
- package/dist/cjs/af-video-container.cjs.entry.js +1 -1
- package/dist/cjs/af-visually-hidden.cjs.entry.js +1 -1
- package/dist/cjs/affinda.cjs.js +1 -1
- package/dist/cjs/{index-3161MbMQ.js → index-BuJz1C1M.js} +647 -9
- package/dist/cjs/index-BuJz1C1M.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/af-accordion-item.js +1 -1
- package/dist/components/af-accordion.js +1 -1
- package/dist/components/af-aspect-ratio.js +1 -1
- package/dist/components/af-button-group.js +1 -1
- package/dist/components/af-button.js +1 -1
- package/dist/components/af-card.js +1 -1
- package/dist/components/af-center.js +1 -1
- package/dist/components/af-checkbox.js +1 -1
- package/dist/components/af-client-carousel.js +1 -1
- package/dist/components/af-color-swatch.js +1 -1
- package/dist/components/af-contact-item.js +1 -1
- package/dist/components/af-container.js +1 -1
- package/dist/components/af-divider.js +1 -1
- package/dist/components/af-feature-accordion.js +1 -1
- package/dist/components/af-feature-card.js +1 -1
- package/dist/components/af-feature-grid.js +2 -2
- package/dist/components/af-fieldset.js +1 -1
- package/dist/components/af-footer-column.js +1 -1
- package/dist/components/af-footer-link.js +1 -1
- package/dist/components/af-footer.js +1 -1
- package/dist/components/af-grid-callout.js +2 -2
- package/dist/components/af-grid.js +1 -1
- package/dist/components/af-heading.js +1 -1
- package/dist/components/af-hero.js +1 -1
- package/dist/components/af-icon-box.js +1 -1
- package/dist/components/af-icon-button.js +1 -1
- package/dist/components/af-icon-text.js +4 -4
- package/dist/components/af-icon.js +1 -1
- package/dist/components/af-illustrated-card.js +1 -1
- package/dist/components/af-image.js +1 -1
- package/dist/components/af-in-page-banner.js +2 -2
- package/dist/components/af-inline.js +1 -1
- package/dist/components/af-input.js +1 -1
- package/dist/components/af-logo-well.js +1 -1
- package/dist/components/af-logo.js +1 -1
- package/dist/components/af-nav-accordion-item.js +1 -1
- package/dist/components/af-nav-accordion.js +1 -1
- package/dist/components/af-nav-card.js +1 -1
- package/dist/components/af-nav-item.js +1 -1
- package/dist/components/af-nav-menu-nest.js +1 -1
- package/dist/components/af-nav-menu.js +1 -1
- package/dist/components/af-navbar.js +1 -1
- package/dist/components/af-number-badge.js +1 -1
- package/dist/components/af-numbered-stepper-item.js +3 -3
- package/dist/components/af-numbered-stepper.js +1 -1
- package/dist/components/af-paperclip-decoration.js +1 -1
- package/dist/components/af-progress-line.js +1 -1
- package/dist/components/af-radio.js +1 -1
- package/dist/components/af-section.js +1 -1
- package/dist/components/af-show.js +1 -1
- package/dist/components/af-social-link.js +1 -1
- package/dist/components/af-spacer.js +1 -1
- package/dist/components/af-split-section.js +2 -2
- package/dist/components/af-stack.js +1 -1
- package/dist/components/af-stat.js +3 -3
- package/dist/components/af-stats-row.js +1 -1
- package/dist/components/af-stepper-step.js +1 -1
- package/dist/components/af-stepper.js +1 -1
- package/dist/components/af-switch.js +1 -1
- package/dist/components/af-tab-bar.js +1 -1
- package/dist/components/af-tab.js +1 -1
- package/dist/components/af-tag.js +1 -1
- package/dist/components/af-testimonial-carousel.js +2 -2
- package/dist/components/af-testimonial-stat.js +3 -3
- package/dist/components/af-testimonial.js +4 -4
- package/dist/components/af-text-image-nest.js +1 -1
- package/dist/components/af-text-image.js +2 -2
- package/dist/components/af-text.js +1 -1
- package/dist/components/af-textarea.js +1 -1
- package/dist/components/af-theme-override.js +1 -1
- package/dist/components/af-typography-lockup.js +1 -1
- package/dist/components/af-video-container.js +3 -3
- package/dist/components/af-visually-hidden.js +1 -1
- package/dist/components/index.js +25 -25
- package/dist/components/{p-BuiXTazC.js → p-B7J9U9if.js} +3 -3
- package/dist/components/{p-BuiXTazC.js.map → p-B7J9U9if.js.map} +1 -1
- package/dist/components/{p-CZdcAZe_.js → p-BExjo6P2.js} +4 -4
- package/dist/components/{p-CZdcAZe_.js.map → p-BExjo6P2.js.map} +1 -1
- package/dist/components/{p-BkTUo72F.js → p-B_r5b4JI.js} +3 -3
- package/dist/components/{p-BkTUo72F.js.map → p-B_r5b4JI.js.map} +1 -1
- package/dist/components/{p-C_y6F4SM.js → p-Bebi4EvS.js} +3 -3
- package/dist/components/{p-C_y6F4SM.js.map → p-Bebi4EvS.js.map} +1 -1
- package/dist/components/{p-QpoTJlVn.js → p-BipyebXl.js} +3 -3
- package/dist/components/{p-QpoTJlVn.js.map → p-BipyebXl.js.map} +1 -1
- package/dist/components/{p-CiY0Twna.js → p-Btpdr0Bi.js} +644 -9
- package/dist/components/p-Btpdr0Bi.js.map +1 -0
- package/dist/components/{p-CaHyFRpU.js → p-C05qWmXd.js} +3 -3
- package/dist/components/{p-CaHyFRpU.js.map → p-C05qWmXd.js.map} +1 -1
- package/dist/components/{p-G5cG9ahw.js → p-C1nX4HkM.js} +3 -3
- package/dist/components/{p-G5cG9ahw.js.map → p-C1nX4HkM.js.map} +1 -1
- package/dist/components/{p-DGlAo2Hc.js → p-C8HmyE5-.js} +3 -3
- package/dist/components/{p-DGlAo2Hc.js.map → p-C8HmyE5-.js.map} +1 -1
- package/dist/components/{p-DmlCoFGW.js → p-CMatO7AD.js} +3 -3
- package/dist/components/{p-DmlCoFGW.js.map → p-CMatO7AD.js.map} +1 -1
- package/dist/components/{p-DdH3uwBx.js → p-CPPy4ZvS.js} +4 -4
- package/dist/components/{p-DdH3uwBx.js.map → p-CPPy4ZvS.js.map} +1 -1
- package/dist/components/{p-DyqBBl8X.js → p-CY3F_EFI.js} +5 -5
- package/dist/components/{p-DyqBBl8X.js.map → p-CY3F_EFI.js.map} +1 -1
- package/dist/components/{p-B-hgy9Qr.js → p-CeWN48Eq.js} +3 -3
- package/dist/components/{p-B-hgy9Qr.js.map → p-CeWN48Eq.js.map} +1 -1
- package/dist/components/{p-CUmn76Kf.js → p-CkaL7yIW.js} +3 -3
- package/dist/components/{p-CUmn76Kf.js.map → p-CkaL7yIW.js.map} +1 -1
- package/dist/components/{p-B_32JVKl.js → p-CmOT3tAE.js} +3 -3
- package/dist/components/{p-B_32JVKl.js.map → p-CmOT3tAE.js.map} +1 -1
- package/dist/components/{p-B4IVxpr4.js → p-CmU4eYJE.js} +3 -3
- package/dist/components/{p-B4IVxpr4.js.map → p-CmU4eYJE.js.map} +1 -1
- package/dist/components/{p-BTZzBVqv.js → p-CxQXmlHR.js} +4 -4
- package/dist/components/{p-BTZzBVqv.js.map → p-CxQXmlHR.js.map} +1 -1
- package/dist/components/{p-Dye7hRk7.js → p-D1kXpb5A.js} +3 -3
- package/dist/components/{p-Dye7hRk7.js.map → p-D1kXpb5A.js.map} +1 -1
- package/dist/components/{p-CeBCwjRf.js → p-D5-m35gX.js} +3 -3
- package/dist/components/{p-CeBCwjRf.js.map → p-D5-m35gX.js.map} +1 -1
- package/dist/components/{p-DrCZBGKv.js → p-DBtE-heu.js} +5 -5
- package/dist/components/{p-DrCZBGKv.js.map → p-DBtE-heu.js.map} +1 -1
- package/dist/components/{p--aWqZ9H9.js → p-DMXuAjLo.js} +3 -3
- package/dist/components/{p--aWqZ9H9.js.map → p-DMXuAjLo.js.map} +1 -1
- package/dist/components/{p-CnbO_hx0.js → p-DNdQkidf.js} +3 -3
- package/dist/components/{p-CnbO_hx0.js.map → p-DNdQkidf.js.map} +1 -1
- package/dist/components/{p-DobkLkti.js → p-DOZPKyww.js} +3 -3
- package/dist/components/{p-DobkLkti.js.map → p-DOZPKyww.js.map} +1 -1
- package/dist/components/{p-DQF6qg3h.js → p-DUWgh2he.js} +3 -3
- package/dist/components/{p-DQF6qg3h.js.map → p-DUWgh2he.js.map} +1 -1
- package/dist/components/{p-DQFOagz0.js → p-Dd_y3e80.js} +3 -3
- package/dist/components/{p-DQFOagz0.js.map → p-Dd_y3e80.js.map} +1 -1
- package/dist/components/{p-BsHk9vlU.js → p-DinivoZj.js} +3 -3
- package/dist/components/{p-BsHk9vlU.js.map → p-DinivoZj.js.map} +1 -1
- package/dist/components/{p-DWD7Oc5l.js → p-DrEl4PxE.js} +3 -3
- package/dist/components/{p-DWD7Oc5l.js.map → p-DrEl4PxE.js.map} +1 -1
- package/dist/components/{p-CJU2A9Ab.js → p-DrXw6vxx.js} +3 -3
- package/dist/components/{p-CJU2A9Ab.js.map → p-DrXw6vxx.js.map} +1 -1
- package/dist/components/{p-Bx-hxLP0.js → p-FV14KcoH.js} +3 -3
- package/dist/components/{p-Bx-hxLP0.js.map → p-FV14KcoH.js.map} +1 -1
- package/dist/components/{p-BMs3J6ty.js → p-WJ7nfpxz.js} +6 -6
- package/dist/components/{p-BMs3J6ty.js.map → p-WJ7nfpxz.js.map} +1 -1
- package/dist/components/{p-CImZ9bq8.js → p-XmT5SQOF.js} +3 -3
- package/dist/components/{p-CImZ9bq8.js.map → p-XmT5SQOF.js.map} +1 -1
- package/dist/components/{p-DnDXrxJ7.js → p-joRNg4Kk.js} +3 -3
- package/dist/components/{p-DnDXrxJ7.js.map → p-joRNg4Kk.js.map} +1 -1
- package/dist/esm/af-accordion-item.entry.js +1 -1
- package/dist/esm/af-accordion.entry.js +1 -1
- package/dist/esm/af-aspect-ratio.entry.js +1 -1
- package/dist/esm/af-button-group.entry.js +1 -1
- package/dist/esm/af-button.entry.js +1 -1
- package/dist/esm/af-card.entry.js +1 -1
- package/dist/esm/af-center.entry.js +1 -1
- package/dist/esm/af-checkbox.entry.js +1 -1
- package/dist/esm/af-client-carousel.entry.js +1 -1
- package/dist/esm/af-color-swatch.entry.js +1 -1
- package/dist/esm/af-contact-item.entry.js +1 -1
- package/dist/esm/af-container.entry.js +1 -1
- package/dist/esm/af-divider.entry.js +1 -1
- package/dist/esm/af-feature-accordion.entry.js +1 -1
- package/dist/esm/af-feature-card.entry.js +1 -1
- package/dist/esm/af-feature-grid.entry.js +1 -1
- package/dist/esm/af-fieldset.entry.js +1 -1
- package/dist/esm/af-footer-column.entry.js +1 -1
- package/dist/esm/af-footer-link.entry.js +1 -1
- package/dist/esm/af-footer.entry.js +1 -1
- package/dist/esm/af-grid-callout.entry.js +1 -1
- package/dist/esm/af-grid.entry.js +1 -1
- package/dist/esm/af-heading_5.entry.js +1 -1
- package/dist/esm/af-hero.entry.js +1 -1
- package/dist/esm/af-icon-box.entry.js +1 -1
- package/dist/esm/af-icon-button.entry.js +1 -1
- package/dist/esm/af-icon-text.entry.js +1 -1
- package/dist/esm/af-icon.entry.js +1 -1
- package/dist/esm/af-illustrated-card.entry.js +1 -1
- package/dist/esm/af-image.entry.js +1 -1
- package/dist/esm/af-in-page-banner.entry.js +1 -1
- package/dist/esm/af-inline.entry.js +1 -1
- package/dist/esm/af-input.entry.js +1 -1
- package/dist/esm/af-logo-well.entry.js +1 -1
- package/dist/esm/af-nav-accordion-item.entry.js +1 -1
- package/dist/esm/af-nav-accordion.entry.js +1 -1
- package/dist/esm/af-nav-card.entry.js +1 -1
- package/dist/esm/af-nav-menu-nest.entry.js +1 -1
- package/dist/esm/af-nav-menu.entry.js +1 -1
- package/dist/esm/af-number-badge.entry.js +1 -1
- package/dist/esm/af-numbered-stepper-item.entry.js +1 -1
- package/dist/esm/af-numbered-stepper.entry.js +1 -1
- package/dist/esm/af-paperclip-decoration.entry.js +1 -1
- package/dist/esm/af-progress-line.entry.js +1 -1
- package/dist/esm/af-radio.entry.js +1 -1
- package/dist/esm/af-section.entry.js +1 -1
- package/dist/esm/af-show.entry.js +1 -1
- package/dist/esm/af-social-link.entry.js +1 -1
- package/dist/esm/af-spacer.entry.js +1 -1
- package/dist/esm/af-split-section.entry.js +1 -1
- package/dist/esm/af-stack.entry.js +1 -1
- package/dist/esm/af-stat.entry.js +1 -1
- package/dist/esm/af-stats-row.entry.js +1 -1
- package/dist/esm/af-stepper-step.entry.js +1 -1
- package/dist/esm/af-stepper.entry.js +1 -1
- package/dist/esm/af-switch.entry.js +1 -1
- package/dist/esm/af-tab-bar.entry.js +1 -1
- package/dist/esm/af-tab.entry.js +1 -1
- package/dist/esm/af-tag.entry.js +1 -1
- package/dist/esm/af-testimonial-carousel.entry.js +1 -1
- package/dist/esm/af-testimonial-stat.entry.js +1 -1
- package/dist/esm/af-testimonial.entry.js +1 -1
- package/dist/esm/af-text-image-nest.entry.js +1 -1
- package/dist/esm/af-text-image.entry.js +1 -1
- package/dist/esm/af-textarea.entry.js +1 -1
- package/dist/esm/af-theme-override.entry.js +1 -1
- package/dist/esm/af-typography-lockup.entry.js +1 -1
- package/dist/esm/af-video-container.entry.js +1 -1
- package/dist/esm/af-visually-hidden.entry.js +1 -1
- package/dist/esm/affinda.js +2 -2
- package/dist/esm/{index-C4WBekD2.js → index-CYq0zyKH.js} +647 -9
- package/dist/esm/index-CYq0zyKH.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/hydrate/index.d.ts +275 -0
- package/dist/hydrate/index.js +24871 -0
- package/dist/hydrate/index.mjs +24863 -0
- package/dist/hydrate/package.json +12 -0
- package/package.json +21 -1
- package/dist/affinda/p-C4WBekD2.js +0 -3
- package/dist/affinda/p-C4WBekD2.js.map +0 -1
- package/dist/affinda/p-d0fdef08.entry.js +0 -2
- package/dist/cjs/index-3161MbMQ.js.map +0 -1
- package/dist/components/p-CiY0Twna.js.map +0 -1
- package/dist/esm/index-C4WBekD2.js.map +0 -1
- /package/dist/affinda/{p-8fe10b18.entry.js.map → p-02c6f6d1.entry.js.map} +0 -0
- /package/dist/affinda/{p-5885ebd3.entry.js.map → p-0c7d81d0.entry.js.map} +0 -0
- /package/dist/affinda/{p-d40f8d18.entry.js.map → p-1554f3d7.entry.js.map} +0 -0
- /package/dist/affinda/{p-0254b263.entry.js.map → p-15a1d019.entry.js.map} +0 -0
- /package/dist/affinda/{p-4f731d31.entry.js.map → p-1819ae80.entry.js.map} +0 -0
- /package/dist/affinda/{p-6898d4bd.entry.js.map → p-1a71d0f9.entry.js.map} +0 -0
- /package/dist/affinda/{p-4f15b8f0.entry.js.map → p-1e59a051.entry.js.map} +0 -0
- /package/dist/affinda/{p-c0f71971.entry.js.map → p-1f2f7fff.entry.js.map} +0 -0
- /package/dist/affinda/{p-7eb0875d.entry.js.map → p-20faf28d.entry.js.map} +0 -0
- /package/dist/affinda/{p-42c4d7b1.entry.js.map → p-2716cdc4.entry.js.map} +0 -0
- /package/dist/affinda/{p-62eb01fa.entry.js.map → p-3084cb0f.entry.js.map} +0 -0
- /package/dist/affinda/{p-8a2cbcf0.entry.js.map → p-31d96ddc.entry.js.map} +0 -0
- /package/dist/affinda/{p-aa9c2609.entry.js.map → p-374f9557.entry.js.map} +0 -0
- /package/dist/affinda/{p-15eac0d5.entry.js.map → p-3fd3d4cd.entry.js.map} +0 -0
- /package/dist/affinda/{p-b13c1438.entry.js.map → p-41580a3c.entry.js.map} +0 -0
- /package/dist/affinda/{p-43a0286a.entry.js.map → p-47d2f72b.entry.js.map} +0 -0
- /package/dist/affinda/{p-9dfb5fab.entry.js.map → p-50e12df0.entry.js.map} +0 -0
- /package/dist/affinda/{p-b69bce30.entry.js.map → p-54dc41a9.entry.js.map} +0 -0
- /package/dist/affinda/{p-283a9dec.entry.js.map → p-56e96bd3.entry.js.map} +0 -0
- /package/dist/affinda/{p-3cd4edd0.entry.js.map → p-5834ffe7.entry.js.map} +0 -0
- /package/dist/affinda/{p-a35ab849.entry.js.map → p-5e966aa6.entry.js.map} +0 -0
- /package/dist/affinda/{p-dd933272.entry.js.map → p-616e0116.entry.js.map} +0 -0
- /package/dist/affinda/{p-3b429a16.entry.js.map → p-64159112.entry.js.map} +0 -0
- /package/dist/affinda/{p-606159d2.entry.js.map → p-656630fc.entry.js.map} +0 -0
- /package/dist/affinda/{p-3a7afe33.entry.js.map → p-67b08108.entry.js.map} +0 -0
- /package/dist/affinda/{p-5e01b103.entry.js.map → p-6ff65e42.entry.js.map} +0 -0
- /package/dist/affinda/{p-369dfdd8.entry.js.map → p-75d76909.entry.js.map} +0 -0
- /package/dist/affinda/{p-b82fc7f1.entry.js.map → p-761f06ae.entry.js.map} +0 -0
- /package/dist/affinda/{p-d9ff321b.entry.js.map → p-7b08b7ba.entry.js.map} +0 -0
- /package/dist/affinda/{p-db7eb209.entry.js.map → p-7eff3490.entry.js.map} +0 -0
- /package/dist/affinda/{p-7faa3fb9.entry.js.map → p-838bbc80.entry.js.map} +0 -0
- /package/dist/affinda/{p-d12d33c8.entry.js.map → p-88f38401.entry.js.map} +0 -0
- /package/dist/affinda/{p-b2a41a48.entry.js.map → p-8b0d08de.entry.js.map} +0 -0
- /package/dist/affinda/{p-f5b4923f.entry.js.map → p-8f36e911.entry.js.map} +0 -0
- /package/dist/affinda/{p-73de3aa7.entry.js.map → p-919e2144.entry.js.map} +0 -0
- /package/dist/affinda/{p-08a42935.entry.js.map → p-92c61bad.entry.js.map} +0 -0
- /package/dist/affinda/{p-646b73fb.entry.js.map → p-94119fa2.entry.js.map} +0 -0
- /package/dist/affinda/{p-6949fbdf.entry.js.map → p-95da58f3.entry.js.map} +0 -0
- /package/dist/affinda/{p-4ff626de.entry.js.map → p-976e0c29.entry.js.map} +0 -0
- /package/dist/affinda/{p-1efa4787.entry.js.map → p-99b37588.entry.js.map} +0 -0
- /package/dist/affinda/{p-988fb256.entry.js.map → p-a196f362.entry.js.map} +0 -0
- /package/dist/affinda/{p-91b71a8f.entry.js.map → p-a3ed4092.entry.js.map} +0 -0
- /package/dist/affinda/{p-a70ce66f.entry.js.map → p-a4b36eb7.entry.js.map} +0 -0
- /package/dist/affinda/{p-27026c90.entry.js.map → p-a6be61c2.entry.js.map} +0 -0
- /package/dist/affinda/{p-bc1088a7.entry.js.map → p-a79077d5.entry.js.map} +0 -0
- /package/dist/affinda/{p-cebfc8a9.entry.js.map → p-b31e438d.entry.js.map} +0 -0
- /package/dist/affinda/{p-64f24ab4.entry.js.map → p-b77fa201.entry.js.map} +0 -0
- /package/dist/affinda/{p-6de54e73.entry.js.map → p-bb80195f.entry.js.map} +0 -0
- /package/dist/affinda/{p-7640c285.entry.js.map → p-bc59dc0e.entry.js.map} +0 -0
- /package/dist/affinda/{p-d275fb5d.entry.js.map → p-be219843.entry.js.map} +0 -0
- /package/dist/affinda/{p-17c2999b.entry.js.map → p-c15d00b5.entry.js.map} +0 -0
- /package/dist/affinda/{p-02427605.entry.js.map → p-c23d7aa5.entry.js.map} +0 -0
- /package/dist/affinda/{p-6df7b689.entry.js.map → p-c2a6c874.entry.js.map} +0 -0
- /package/dist/affinda/{p-d34da6c0.entry.js.map → p-c6aa66f3.entry.js.map} +0 -0
- /package/dist/affinda/{p-2d5eb5ac.entry.js.map → p-c925d301.entry.js.map} +0 -0
- /package/dist/affinda/{p-42c69bc9.entry.js.map → p-cc2539de.entry.js.map} +0 -0
- /package/dist/affinda/{p-972984a9.entry.js.map → p-cd21a62a.entry.js.map} +0 -0
- /package/dist/affinda/{p-4f422489.entry.js.map → p-cea1c1ff.entry.js.map} +0 -0
- /package/dist/affinda/{p-1aa795c7.entry.js.map → p-d573d115.entry.js.map} +0 -0
- /package/dist/affinda/{p-c2c16447.entry.js.map → p-d9b0f217.entry.js.map} +0 -0
- /package/dist/affinda/{p-f76ef563.entry.js.map → p-df10dee2.entry.js.map} +0 -0
- /package/dist/affinda/{p-09e202d1.entry.js.map → p-e057ebf1.entry.js.map} +0 -0
- /package/dist/affinda/{p-df6c7170.entry.js.map → p-e10c03b6.entry.js.map} +0 -0
- /package/dist/affinda/{p-78941fec.entry.js.map → p-ea5aea86.entry.js.map} +0 -0
- /package/dist/affinda/{p-8eb60b77.entry.js.map → p-eca85313.entry.js.map} +0 -0
- /package/dist/affinda/{p-bdb3e590.entry.js.map → p-f1705df1.entry.js.map} +0 -0
- /package/dist/affinda/{p-a326d8f6.entry.js.map → p-f38688c6.entry.js.map} +0 -0
- /package/dist/affinda/{p-d0fdef08.entry.js.map → p-fd772af4.entry.js.map} +0 -0
- /package/dist/affinda/{p-4ccc3147.entry.js.map → p-fe09a283.entry.js.map} +0 -0
|
@@ -15,6 +15,30 @@ var __export = (target, all) => {
|
|
|
15
15
|
// src/utils/constants.ts
|
|
16
16
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
17
17
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
18
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
19
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
20
|
+
PrimitiveType2["Null"] = "null";
|
|
21
|
+
PrimitiveType2["String"] = "string";
|
|
22
|
+
PrimitiveType2["Number"] = "number";
|
|
23
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
24
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
25
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
26
|
+
return PrimitiveType2;
|
|
27
|
+
})(PrimitiveType || {});
|
|
28
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
29
|
+
NonPrimitiveType2["Array"] = "array";
|
|
30
|
+
NonPrimitiveType2["Date"] = "date";
|
|
31
|
+
NonPrimitiveType2["Map"] = "map";
|
|
32
|
+
NonPrimitiveType2["Object"] = "object";
|
|
33
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
34
|
+
NonPrimitiveType2["Set"] = "set";
|
|
35
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
36
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
37
|
+
return NonPrimitiveType2;
|
|
38
|
+
})(NonPrimitiveType || {});
|
|
39
|
+
var TYPE_CONSTANT = "type";
|
|
40
|
+
var VALUE_CONSTANT = "value";
|
|
41
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
18
42
|
|
|
19
43
|
// src/client/client-host-ref.ts
|
|
20
44
|
var getHostRef = (ref) => {
|
|
@@ -45,6 +69,16 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
45
69
|
|
|
46
70
|
// src/client/client-style.ts
|
|
47
71
|
var styles = /* @__PURE__ */ new Map();
|
|
72
|
+
|
|
73
|
+
// src/runtime/runtime-constants.ts
|
|
74
|
+
var CONTENT_REF_ID = "r";
|
|
75
|
+
var ORG_LOCATION_ID = "o";
|
|
76
|
+
var SLOT_NODE_ID = "s";
|
|
77
|
+
var TEXT_NODE_ID = "t";
|
|
78
|
+
var COMMENT_NODE_ID = "c";
|
|
79
|
+
var HYDRATE_ID = "s-id";
|
|
80
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
81
|
+
var HYDRATE_CHILD_ID = "c-id";
|
|
48
82
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
49
83
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
50
84
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -147,6 +181,101 @@ var escapeRegExpSpecialCharacters = (text) => {
|
|
|
147
181
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
148
182
|
};
|
|
149
183
|
|
|
184
|
+
// src/utils/remote-value.ts
|
|
185
|
+
var RemoteValue = class _RemoteValue {
|
|
186
|
+
/**
|
|
187
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
188
|
+
*
|
|
189
|
+
* @param serialized The serialized LocalValue object
|
|
190
|
+
* @returns The original JavaScript value/object
|
|
191
|
+
*/
|
|
192
|
+
static fromLocalValue(serialized) {
|
|
193
|
+
const type = serialized[TYPE_CONSTANT];
|
|
194
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
195
|
+
switch (type) {
|
|
196
|
+
case "string" /* String */:
|
|
197
|
+
return value;
|
|
198
|
+
case "boolean" /* Boolean */:
|
|
199
|
+
return value;
|
|
200
|
+
case "bigint" /* BigInt */:
|
|
201
|
+
return BigInt(value);
|
|
202
|
+
case "undefined" /* Undefined */:
|
|
203
|
+
return void 0;
|
|
204
|
+
case "null" /* Null */:
|
|
205
|
+
return null;
|
|
206
|
+
case "number" /* Number */:
|
|
207
|
+
if (value === "NaN") return NaN;
|
|
208
|
+
if (value === "-0") return -0;
|
|
209
|
+
if (value === "Infinity") return Infinity;
|
|
210
|
+
if (value === "-Infinity") return -Infinity;
|
|
211
|
+
return value;
|
|
212
|
+
case "array" /* Array */:
|
|
213
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
214
|
+
case "date" /* Date */:
|
|
215
|
+
return new Date(value);
|
|
216
|
+
case "map" /* Map */:
|
|
217
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
218
|
+
for (const [key, val] of value) {
|
|
219
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
220
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
221
|
+
map2.set(deserializedKey, deserializedValue);
|
|
222
|
+
}
|
|
223
|
+
return map2;
|
|
224
|
+
case "object" /* Object */:
|
|
225
|
+
const obj = {};
|
|
226
|
+
for (const [key, val] of value) {
|
|
227
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
228
|
+
}
|
|
229
|
+
return obj;
|
|
230
|
+
case "regexp" /* RegularExpression */:
|
|
231
|
+
const { pattern, flags } = value;
|
|
232
|
+
return new RegExp(pattern, flags);
|
|
233
|
+
case "set" /* Set */:
|
|
234
|
+
const set = /* @__PURE__ */ new Set();
|
|
235
|
+
for (const item of value) {
|
|
236
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
237
|
+
}
|
|
238
|
+
return set;
|
|
239
|
+
case "symbol" /* Symbol */:
|
|
240
|
+
return Symbol(value);
|
|
241
|
+
default:
|
|
242
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
247
|
+
*
|
|
248
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
249
|
+
* @returns Array of deserialized JavaScript values
|
|
250
|
+
*/
|
|
251
|
+
static fromLocalValueArray(serializedValues) {
|
|
252
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
256
|
+
*
|
|
257
|
+
* @param obj Object to verify
|
|
258
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
259
|
+
*/
|
|
260
|
+
static isLocalValueObject(obj) {
|
|
261
|
+
if (typeof obj !== "object" || obj === null) {
|
|
262
|
+
return false;
|
|
263
|
+
}
|
|
264
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
const type = obj[TYPE_CONSTANT];
|
|
268
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
269
|
+
if (!hasTypeProperty) {
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
273
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
274
|
+
}
|
|
275
|
+
return true;
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
150
279
|
// src/utils/result.ts
|
|
151
280
|
var result_exports = {};
|
|
152
281
|
__export(result_exports, {
|
|
@@ -196,6 +325,14 @@ var unwrapErr = (result) => {
|
|
|
196
325
|
}
|
|
197
326
|
};
|
|
198
327
|
|
|
328
|
+
// src/utils/serialize.ts
|
|
329
|
+
function deserializeProperty(value) {
|
|
330
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
331
|
+
return value;
|
|
332
|
+
}
|
|
333
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
334
|
+
}
|
|
335
|
+
|
|
199
336
|
// src/utils/style.ts
|
|
200
337
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
201
338
|
if (!supportsConstructableStylesheets) return void 0;
|
|
@@ -286,6 +423,34 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
286
423
|
}
|
|
287
424
|
return slotName === "";
|
|
288
425
|
};
|
|
426
|
+
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
427
|
+
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
const slottedNodeLocation = document.createTextNode("");
|
|
431
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
432
|
+
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
433
|
+
const parent = slotNode["s-cr"].parentNode;
|
|
434
|
+
const appendMethod = internalCall(parent, "appendChild");
|
|
435
|
+
if (typeof position !== "undefined") {
|
|
436
|
+
slottedNodeLocation["s-oo"] = position;
|
|
437
|
+
const childNodes = internalCall(parent, "childNodes");
|
|
438
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
439
|
+
childNodes.forEach((n) => {
|
|
440
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
441
|
+
});
|
|
442
|
+
slotRelocateNodes.sort((a, b) => {
|
|
443
|
+
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
444
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
445
|
+
return 0;
|
|
446
|
+
});
|
|
447
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
448
|
+
} else {
|
|
449
|
+
appendMethod.call(parent, slottedNodeLocation);
|
|
450
|
+
}
|
|
451
|
+
newChild["s-ol"] = slottedNodeLocation;
|
|
452
|
+
newChild["s-sh"] = slotNode["s-hn"];
|
|
453
|
+
};
|
|
289
454
|
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
290
455
|
function patchSlotNode(node) {
|
|
291
456
|
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
@@ -363,7 +528,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
363
528
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
364
529
|
}
|
|
365
530
|
if (!appliedStyles.has(scopeId2)) {
|
|
366
|
-
{
|
|
531
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
532
|
+
styleElm.innerHTML = style;
|
|
533
|
+
} else {
|
|
367
534
|
styleElm = win.document.createElement("style");
|
|
368
535
|
styleElm.innerHTML = style;
|
|
369
536
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
@@ -435,6 +602,17 @@ var attachStyles = (hostRef) => {
|
|
|
435
602
|
endAttachStyles();
|
|
436
603
|
};
|
|
437
604
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
605
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
606
|
+
var hydrateScopedToShadow = () => {
|
|
607
|
+
if (!win.document) {
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
610
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
611
|
+
let i2 = 0;
|
|
612
|
+
for (; i2 < styles2.length; i2++) {
|
|
613
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
614
|
+
}
|
|
615
|
+
};
|
|
438
616
|
var h = (nodeName, vnodeData, ...children) => {
|
|
439
617
|
let child = null;
|
|
440
618
|
let key = null;
|
|
@@ -546,6 +724,422 @@ var convertToPrivate = (node) => {
|
|
|
546
724
|
vnode.$name$ = node.vname;
|
|
547
725
|
return vnode;
|
|
548
726
|
};
|
|
727
|
+
|
|
728
|
+
// src/runtime/client-hydrate.ts
|
|
729
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
730
|
+
var _a, _b;
|
|
731
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
732
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
733
|
+
const childRenderNodes = [];
|
|
734
|
+
const slotNodes = [];
|
|
735
|
+
const slottedNodes = [];
|
|
736
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
737
|
+
const vnode = newVNode(tagName, null);
|
|
738
|
+
vnode.$elm$ = hostElm;
|
|
739
|
+
let scopeId2;
|
|
740
|
+
{
|
|
741
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
742
|
+
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
743
|
+
scopeId2 = hostElm["s-sc"];
|
|
744
|
+
hostElm.classList.add(scopeId2 + "-h");
|
|
745
|
+
} else if (hostElm["s-sc"]) {
|
|
746
|
+
delete hostElm["s-sc"];
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
750
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
751
|
+
}
|
|
752
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
753
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
754
|
+
hostRef.$vnode$ = clientHydrate(
|
|
755
|
+
vnode,
|
|
756
|
+
childRenderNodes,
|
|
757
|
+
slotNodes,
|
|
758
|
+
shadowRootNodes,
|
|
759
|
+
hostElm,
|
|
760
|
+
hostElm,
|
|
761
|
+
hostId,
|
|
762
|
+
slottedNodes
|
|
763
|
+
);
|
|
764
|
+
let crIndex = 0;
|
|
765
|
+
const crLength = childRenderNodes.length;
|
|
766
|
+
let childRenderNode;
|
|
767
|
+
for (crIndex; crIndex < crLength; crIndex++) {
|
|
768
|
+
childRenderNode = childRenderNodes[crIndex];
|
|
769
|
+
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
770
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
771
|
+
const node = childRenderNode.$elm$;
|
|
772
|
+
if (!shadowRoot) {
|
|
773
|
+
node["s-hn"] = tagName.toUpperCase();
|
|
774
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
775
|
+
node["s-cr"] = hostElm["s-cr"];
|
|
776
|
+
}
|
|
777
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
778
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
779
|
+
if (cmpMeta) {
|
|
780
|
+
const scopeId3 = getScopeId(
|
|
781
|
+
cmpMeta.$cmpMeta$);
|
|
782
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
783
|
+
if (styleSheet) {
|
|
784
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
789
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
790
|
+
if (childRenderNode.$children$) {
|
|
791
|
+
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
792
|
+
if (!childRenderNode.$elm$.childNodes.length) {
|
|
793
|
+
childRenderNode.$children$.forEach((c) => {
|
|
794
|
+
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
} else {
|
|
798
|
+
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
802
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
803
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
804
|
+
}
|
|
805
|
+
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
806
|
+
if (!shadowRoot) {
|
|
807
|
+
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
811
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
const hosts = [];
|
|
815
|
+
const snLen = slottedNodes.length;
|
|
816
|
+
let snIndex = 0;
|
|
817
|
+
let slotGroup;
|
|
818
|
+
let snGroupIdx;
|
|
819
|
+
let snGroupLen;
|
|
820
|
+
let slottedItem;
|
|
821
|
+
for (snIndex; snIndex < snLen; snIndex++) {
|
|
822
|
+
slotGroup = slottedNodes[snIndex];
|
|
823
|
+
if (!slotGroup || !slotGroup.length) continue;
|
|
824
|
+
snGroupLen = slotGroup.length;
|
|
825
|
+
snGroupIdx = 0;
|
|
826
|
+
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
827
|
+
slottedItem = slotGroup[snGroupIdx];
|
|
828
|
+
if (!hosts[slottedItem.hostId]) {
|
|
829
|
+
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
830
|
+
}
|
|
831
|
+
if (!hosts[slottedItem.hostId]) continue;
|
|
832
|
+
const hostEle = hosts[slottedItem.hostId];
|
|
833
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
834
|
+
hostEle.appendChild(slottedItem.node);
|
|
835
|
+
}
|
|
836
|
+
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
837
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
838
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
839
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
840
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
841
|
+
} else {
|
|
842
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
846
|
+
if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
847
|
+
slottedItem.node.removeAttribute("slot");
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
if (scopeId2 && slotNodes.length) {
|
|
853
|
+
slotNodes.forEach((slot) => {
|
|
854
|
+
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
if (shadowRoot) {
|
|
858
|
+
let rnIdex = 0;
|
|
859
|
+
const rnLen = shadowRootNodes.length;
|
|
860
|
+
if (rnLen) {
|
|
861
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
862
|
+
const node = shadowRootNodes[rnIdex];
|
|
863
|
+
if (node) {
|
|
864
|
+
shadowRoot.appendChild(node);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
868
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
869
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
870
|
+
node.removeAttribute("hidden");
|
|
871
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
872
|
+
node.parentNode.removeChild(node);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
hostRef.$hostElement$ = hostElm;
|
|
879
|
+
endHydrate();
|
|
880
|
+
};
|
|
881
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
882
|
+
let childNodeType;
|
|
883
|
+
let childIdSplt;
|
|
884
|
+
let childVNode;
|
|
885
|
+
let i2;
|
|
886
|
+
const scopeId2 = hostElm["s-sc"];
|
|
887
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
888
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
889
|
+
if (childNodeType) {
|
|
890
|
+
childIdSplt = childNodeType.split(".");
|
|
891
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
892
|
+
childVNode = createSimpleVNode({
|
|
893
|
+
$flags$: 0,
|
|
894
|
+
$hostId$: childIdSplt[0],
|
|
895
|
+
$nodeId$: childIdSplt[1],
|
|
896
|
+
$depth$: childIdSplt[2],
|
|
897
|
+
$index$: childIdSplt[3],
|
|
898
|
+
$tag$: node.tagName.toLowerCase(),
|
|
899
|
+
$elm$: node,
|
|
900
|
+
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
|
|
901
|
+
// won't try to reconcile them. Classes set on the node will be blown away.
|
|
902
|
+
$attrs$: { class: node.className || "" }
|
|
903
|
+
});
|
|
904
|
+
childRenderNodes.push(childVNode);
|
|
905
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
906
|
+
if (!parentVNode.$children$) {
|
|
907
|
+
parentVNode.$children$ = [];
|
|
908
|
+
}
|
|
909
|
+
if (scopeId2 && childIdSplt[0] === hostId) {
|
|
910
|
+
node["s-si"] = scopeId2;
|
|
911
|
+
childVNode.$attrs$.class += " " + scopeId2;
|
|
912
|
+
}
|
|
913
|
+
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
914
|
+
if (typeof slotName === "string") {
|
|
915
|
+
if (childVNode.$tag$ === "slot-fb") {
|
|
916
|
+
addSlot(
|
|
917
|
+
slotName,
|
|
918
|
+
childIdSplt[2],
|
|
919
|
+
childVNode,
|
|
920
|
+
node,
|
|
921
|
+
parentVNode,
|
|
922
|
+
childRenderNodes,
|
|
923
|
+
slotNodes,
|
|
924
|
+
shadowRootNodes,
|
|
925
|
+
slottedNodes
|
|
926
|
+
);
|
|
927
|
+
if (scopeId2) {
|
|
928
|
+
node.classList.add(scopeId2);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
childVNode.$elm$["s-sn"] = slotName;
|
|
932
|
+
childVNode.$elm$.removeAttribute("s-sn");
|
|
933
|
+
}
|
|
934
|
+
if (childVNode.$index$ !== void 0) {
|
|
935
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
936
|
+
}
|
|
937
|
+
parentVNode = childVNode;
|
|
938
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
939
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
if (node.shadowRoot) {
|
|
944
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
945
|
+
clientHydrate(
|
|
946
|
+
parentVNode,
|
|
947
|
+
childRenderNodes,
|
|
948
|
+
slotNodes,
|
|
949
|
+
shadowRootNodes,
|
|
950
|
+
hostElm,
|
|
951
|
+
node.shadowRoot.childNodes[i2],
|
|
952
|
+
hostId,
|
|
953
|
+
slottedNodes
|
|
954
|
+
);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
958
|
+
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
959
|
+
clientHydrate(
|
|
960
|
+
parentVNode,
|
|
961
|
+
childRenderNodes,
|
|
962
|
+
slotNodes,
|
|
963
|
+
shadowRootNodes,
|
|
964
|
+
hostElm,
|
|
965
|
+
nonShadowNodes[i2],
|
|
966
|
+
hostId,
|
|
967
|
+
slottedNodes
|
|
968
|
+
);
|
|
969
|
+
}
|
|
970
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
971
|
+
childIdSplt = node.nodeValue.split(".");
|
|
972
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
973
|
+
childNodeType = childIdSplt[0];
|
|
974
|
+
childVNode = createSimpleVNode({
|
|
975
|
+
$hostId$: childIdSplt[1],
|
|
976
|
+
$nodeId$: childIdSplt[2],
|
|
977
|
+
$depth$: childIdSplt[3],
|
|
978
|
+
$index$: childIdSplt[4] || "0",
|
|
979
|
+
$elm$: node,
|
|
980
|
+
$attrs$: null,
|
|
981
|
+
$children$: null,
|
|
982
|
+
$key$: null,
|
|
983
|
+
$name$: null,
|
|
984
|
+
$tag$: null,
|
|
985
|
+
$text$: null
|
|
986
|
+
});
|
|
987
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
988
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
989
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
990
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
991
|
+
childRenderNodes.push(childVNode);
|
|
992
|
+
node.remove();
|
|
993
|
+
if (hostId === childVNode.$hostId$) {
|
|
994
|
+
if (!parentVNode.$children$) {
|
|
995
|
+
parentVNode.$children$ = [];
|
|
996
|
+
}
|
|
997
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
998
|
+
}
|
|
999
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1000
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1004
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
1005
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1006
|
+
childRenderNodes.push(childVNode);
|
|
1007
|
+
node.remove();
|
|
1008
|
+
}
|
|
1009
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
1010
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
1011
|
+
const slotName = node["s-sn"] = childIdSplt[5] || "";
|
|
1012
|
+
addSlot(
|
|
1013
|
+
slotName,
|
|
1014
|
+
childIdSplt[2],
|
|
1015
|
+
childVNode,
|
|
1016
|
+
node,
|
|
1017
|
+
parentVNode,
|
|
1018
|
+
childRenderNodes,
|
|
1019
|
+
slotNodes,
|
|
1020
|
+
shadowRootNodes,
|
|
1021
|
+
slottedNodes
|
|
1022
|
+
);
|
|
1023
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1024
|
+
if (shadowRootNodes) {
|
|
1025
|
+
node.remove();
|
|
1026
|
+
} else {
|
|
1027
|
+
hostElm["s-cr"] = node;
|
|
1028
|
+
node["s-cn"] = true;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1034
|
+
const vnode = newVNode(null, node.textContent);
|
|
1035
|
+
vnode.$elm$ = node;
|
|
1036
|
+
vnode.$index$ = "0";
|
|
1037
|
+
parentVNode.$children$ = [vnode];
|
|
1038
|
+
} else {
|
|
1039
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
1040
|
+
node.remove();
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
return parentVNode;
|
|
1044
|
+
};
|
|
1045
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1046
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1047
|
+
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1048
|
+
if (componentId) {
|
|
1049
|
+
orgLocNodes.set(componentId, node);
|
|
1050
|
+
}
|
|
1051
|
+
let i2 = 0;
|
|
1052
|
+
if (node.shadowRoot) {
|
|
1053
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1054
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1058
|
+
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1059
|
+
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1060
|
+
}
|
|
1061
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1062
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
1063
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1064
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1065
|
+
node.nodeValue = "";
|
|
1066
|
+
node["s-en"] = childIdSplt[3];
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
};
|
|
1070
|
+
var createSimpleVNode = (vnode) => {
|
|
1071
|
+
const defaultVNode = {
|
|
1072
|
+
$flags$: 0,
|
|
1073
|
+
$hostId$: null,
|
|
1074
|
+
$nodeId$: null,
|
|
1075
|
+
$depth$: null,
|
|
1076
|
+
$index$: "0",
|
|
1077
|
+
$elm$: null,
|
|
1078
|
+
$attrs$: null,
|
|
1079
|
+
$children$: null,
|
|
1080
|
+
$key$: null,
|
|
1081
|
+
$name$: null,
|
|
1082
|
+
$tag$: null,
|
|
1083
|
+
$text$: null
|
|
1084
|
+
};
|
|
1085
|
+
return { ...defaultVNode, ...vnode };
|
|
1086
|
+
};
|
|
1087
|
+
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1088
|
+
node["s-sr"] = true;
|
|
1089
|
+
childVNode.$name$ = slotName || null;
|
|
1090
|
+
childVNode.$tag$ = "slot";
|
|
1091
|
+
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1092
|
+
if (shadowRootNodes && win.document) {
|
|
1093
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1094
|
+
if (childVNode.$name$) {
|
|
1095
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
|
1096
|
+
}
|
|
1097
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1098
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1099
|
+
} else {
|
|
1100
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1101
|
+
}
|
|
1102
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1103
|
+
node.remove();
|
|
1104
|
+
if (childVNode.$depth$ === "0") {
|
|
1105
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1106
|
+
}
|
|
1107
|
+
} else {
|
|
1108
|
+
const slot = childVNode.$elm$;
|
|
1109
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1110
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1111
|
+
patchSlotNode(node);
|
|
1112
|
+
if (shouldMove) {
|
|
1113
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
childRenderNodes.push(childVNode);
|
|
1117
|
+
slotNodes.push(childVNode);
|
|
1118
|
+
if (!parentVNode.$children$) {
|
|
1119
|
+
parentVNode.$children$ = [];
|
|
1120
|
+
}
|
|
1121
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1122
|
+
}
|
|
1123
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1124
|
+
var _a, _b;
|
|
1125
|
+
let slottedNode = slotNode.nextSibling;
|
|
1126
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1127
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1128
|
+
do {
|
|
1129
|
+
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 */))) {
|
|
1130
|
+
slottedNode["s-sn"] = slotName;
|
|
1131
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1132
|
+
}
|
|
1133
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1134
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1135
|
+
};
|
|
1136
|
+
var findCorrespondingNode = (node, type) => {
|
|
1137
|
+
let sibling = node;
|
|
1138
|
+
do {
|
|
1139
|
+
sibling = sibling.nextSibling;
|
|
1140
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1141
|
+
return sibling;
|
|
1142
|
+
};
|
|
549
1143
|
var createSupportsRuleRe = (selector) => {
|
|
550
1144
|
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
551
1145
|
return new RegExp(
|
|
@@ -559,6 +1153,10 @@ createSupportsRuleRe("::slotted");
|
|
|
559
1153
|
createSupportsRuleRe(":host");
|
|
560
1154
|
createSupportsRuleRe(":host-context");
|
|
561
1155
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1156
|
+
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1157
|
+
propValue = deserializeProperty(propValue);
|
|
1158
|
+
return propValue;
|
|
1159
|
+
}
|
|
562
1160
|
if (propValue != null && !isComplexType(propValue)) {
|
|
563
1161
|
if (propType & 4 /* Boolean */) {
|
|
564
1162
|
{
|
|
@@ -608,7 +1206,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
608
1206
|
const classList = elm.classList;
|
|
609
1207
|
const oldClasses = parseClassList(oldValue);
|
|
610
1208
|
let newClasses = parseClassList(newValue);
|
|
611
|
-
{
|
|
1209
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1210
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1211
|
+
newClasses.push(scopeId2);
|
|
1212
|
+
oldClasses.forEach((c) => {
|
|
1213
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1214
|
+
});
|
|
1215
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1216
|
+
classList.add(...newClasses);
|
|
1217
|
+
} else {
|
|
612
1218
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
613
1219
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
614
1220
|
}
|
|
@@ -728,7 +1334,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
|
728
1334
|
oldVnodeAttrs[memberName],
|
|
729
1335
|
void 0,
|
|
730
1336
|
isSvgMode2,
|
|
731
|
-
newVnode.$flags
|
|
1337
|
+
newVnode.$flags$,
|
|
1338
|
+
isInitialRender
|
|
1339
|
+
);
|
|
732
1340
|
}
|
|
733
1341
|
}
|
|
734
1342
|
}
|
|
@@ -739,7 +1347,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
|
739
1347
|
oldVnodeAttrs[memberName],
|
|
740
1348
|
newVnodeAttrs[memberName],
|
|
741
1349
|
isSvgMode2,
|
|
742
|
-
newVnode.$flags
|
|
1350
|
+
newVnode.$flags$,
|
|
1351
|
+
isInitialRender
|
|
1352
|
+
);
|
|
743
1353
|
}
|
|
744
1354
|
};
|
|
745
1355
|
function sortedAttrNames(attrNames) {
|
|
@@ -1024,7 +1634,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1024
1634
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1025
1635
|
}
|
|
1026
1636
|
{
|
|
1027
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1637
|
+
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1028
1638
|
}
|
|
1029
1639
|
if (oldChildren !== null && newChildren !== null) {
|
|
1030
1640
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1038,7 +1648,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1038
1648
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1039
1649
|
) {
|
|
1040
1650
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1041
|
-
} else
|
|
1651
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1652
|
+
newVNode2.$children$ = oldChildren;
|
|
1653
|
+
}
|
|
1042
1654
|
if (isSvgMode && tag === "svg") {
|
|
1043
1655
|
isSvgMode = false;
|
|
1044
1656
|
}
|
|
@@ -1379,7 +1991,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1379
1991
|
}
|
|
1380
1992
|
};
|
|
1381
1993
|
var appDidLoad = (who) => {
|
|
1994
|
+
var _a;
|
|
1382
1995
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1996
|
+
{
|
|
1997
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
1998
|
+
plt.$orgLocNodes$.clear();
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
1383
2001
|
};
|
|
1384
2002
|
var safeCall = (instance, method, arg, elm) => {
|
|
1385
2003
|
if (instance && instance[method]) {
|
|
@@ -1599,7 +2217,21 @@ var connectedCallback = (elm) => {
|
|
|
1599
2217
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1600
2218
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1601
2219
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
2220
|
+
let hostId;
|
|
1602
2221
|
{
|
|
2222
|
+
hostId = elm.getAttribute(HYDRATE_ID);
|
|
2223
|
+
if (hostId) {
|
|
2224
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2225
|
+
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
2226
|
+
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2227
|
+
} else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2228
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
2229
|
+
elm["s-sc"] = scopeId2;
|
|
2230
|
+
}
|
|
2231
|
+
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
if (!hostId) {
|
|
1603
2235
|
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1604
2236
|
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1605
2237
|
setContentReference(elm);
|
|
@@ -1608,7 +2240,7 @@ var connectedCallback = (elm) => {
|
|
|
1608
2240
|
{
|
|
1609
2241
|
let ancestorComponent = elm;
|
|
1610
2242
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1611
|
-
if (ancestorComponent["s-p"]) {
|
|
2243
|
+
if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
1612
2244
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1613
2245
|
break;
|
|
1614
2246
|
}
|
|
@@ -1681,6 +2313,9 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1681
2313
|
{
|
|
1682
2314
|
cmpMeta.$attrsToReflect$ = [];
|
|
1683
2315
|
}
|
|
2316
|
+
{
|
|
2317
|
+
hydrateScopedToShadow();
|
|
2318
|
+
}
|
|
1684
2319
|
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
1685
2320
|
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
1686
2321
|
Object.assign(Cstr.prototype, {
|
|
@@ -1776,6 +2411,6 @@ function render(vnode, container) {
|
|
|
1776
2411
|
}
|
|
1777
2412
|
|
|
1778
2413
|
export { H, setNonce as a, setPlatformOptions as b, Host as c, createEvent as d, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
|
|
1779
|
-
//# sourceMappingURL=p-
|
|
2414
|
+
//# sourceMappingURL=p-Btpdr0Bi.js.map
|
|
1780
2415
|
|
|
1781
|
-
//# sourceMappingURL=p-
|
|
2416
|
+
//# sourceMappingURL=p-Btpdr0Bi.js.map
|