@biggive/components 202407011202.0.0 → 202407051353.0.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/biggive/biggive.esm.js +1 -1
- package/dist/biggive/biggive.esm.js.map +1 -1
- package/dist/biggive/{p-81a4e5e9.entry.js → p-03e72a1b.entry.js} +2 -2
- package/dist/biggive/{p-959513e3.entry.js → p-09533b1f.entry.js} +2 -2
- package/dist/biggive/{p-543498d4.entry.js → p-38d75d70.entry.js} +2 -2
- package/dist/biggive/{p-eebb0a8f.entry.js → p-496a5b1e.entry.js} +2 -2
- package/dist/biggive/{p-2566ee05.entry.js → p-6cb8dd3e.entry.js} +2 -2
- package/dist/biggive/p-7113e36d.entry.js +2 -0
- package/dist/biggive/{p-8cafe98a.entry.js → p-8146607d.entry.js} +2 -2
- package/dist/biggive/{p-bf1aed80.entry.js → p-a4648f6b.entry.js} +2 -2
- package/dist/biggive/{p-86ff3d9c.entry.js → p-a52c70dd.entry.js} +2 -2
- package/dist/biggive/{p-bd111e3d.entry.js → p-b930ac6d.entry.js} +2 -2
- package/dist/biggive/{p-6197dde2.entry.js → p-cc58f607.entry.js} +2 -2
- package/dist/biggive/p-ec934e05.js +3 -0
- package/dist/biggive/p-ec934e05.js.map +1 -0
- package/dist/biggive/{p-f68f5257.entry.js → p-f7b4e792.entry.js} +2 -2
- package/dist/biggive/{p-f68f5257.entry.js.map → p-f7b4e792.entry.js.map} +1 -1
- package/dist/biggive/{p-a9a90c45.entry.js → p-fe03b6e6.entry.js} +2 -2
- package/dist/cjs/biggive-accordion_40.cjs.entry.js +8 -8
- package/dist/cjs/biggive-accordion_40.cjs.entry.js.map +1 -1
- package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +2 -2
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/biggive.cjs.js.map +1 -1
- package/dist/cjs/{index-3d3cc747.js → index-722b0f6d.js} +143 -159
- package/dist/cjs/index-722b0f6d.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.e2e.js +10 -0
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.e2e.js.map +1 -0
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.spec.js +20 -0
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.spec.js.map +1 -0
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.e2e.js +10 -0
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.e2e.js.map +1 -0
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.spec.js +16 -0
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.spec.js.map +1 -0
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.e2e.js +10 -0
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.e2e.js.map +1 -0
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.spec.js +47 -0
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.spec.js.map +1 -0
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.e2e.js +10 -0
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.e2e.js.map +1 -0
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.spec.js +25 -0
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.spec.js.map +1 -0
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.e2e.js +10 -0
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.e2e.js.map +1 -0
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.spec.js +39 -0
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.spec.js.map +1 -0
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.e2e.js +10 -0
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.e2e.js.map +1 -0
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.spec.js +25 -0
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.spec.js.map +1 -0
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.e2e.js +10 -0
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.e2e.js.map +1 -0
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.spec.js +22 -0
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.spec.js.map +1 -0
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.e2e.js +10 -0
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.e2e.js.map +1 -0
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.spec.js +20 -0
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.spec.js.map +1 -0
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.e2e.js +10 -0
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.e2e.js.map +1 -0
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.spec.js +22 -0
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.spec.js.map +1 -0
- package/dist/collection/components/biggive-button/test/biggive-button.e2e.js +10 -0
- package/dist/collection/components/biggive-button/test/biggive-button.e2e.js.map +1 -0
- package/dist/collection/components/biggive-button/test/biggive-button.spec.js +22 -0
- package/dist/collection/components/biggive-button/test/biggive-button.spec.js.map +1 -0
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.e2e.js +10 -0
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.e2e.js.map +1 -0
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.spec.js +27 -0
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.spec.js.map +1 -0
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.e2e.js +10 -0
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.e2e.js.map +1 -0
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.spec.js +104 -0
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.spec.js.map +1 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.e2e.js +10 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.e2e.js.map +1 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.spec.js +164 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.spec.js.map +1 -0
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.e2e.js +10 -0
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.e2e.js.map +1 -0
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.spec.js +40 -0
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.spec.js.map +1 -0
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.e2e.js +10 -0
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.e2e.js.map +1 -0
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.spec.js +25 -0
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.spec.js.map +1 -0
- package/dist/collection/components/biggive-cookie-banner/test/biggive-cookie-banner.e2e.js +10 -0
- package/dist/collection/components/biggive-cookie-banner/test/biggive-cookie-banner.e2e.js.map +1 -0
- package/dist/collection/components/biggive-footer/test/biggive-footer.e2e.js +10 -0
- package/dist/collection/components/biggive-footer/test/biggive-footer.e2e.js.map +1 -0
- package/dist/collection/components/biggive-footer/test/biggive-footer.spec.js +51 -0
- package/dist/collection/components/biggive-footer/test/biggive-footer.spec.js.map +1 -0
- package/dist/collection/components/biggive-form/test/biggive-form.e2e.js +10 -0
- package/dist/collection/components/biggive-form/test/biggive-form.e2e.js.map +1 -0
- package/dist/collection/components/biggive-form/test/biggive-form.spec.js +18 -0
- package/dist/collection/components/biggive-form/test/biggive-form.spec.js.map +1 -0
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.e2e.js +10 -0
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.e2e.js.map +1 -0
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.spec.js +38 -0
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.spec.js.map +1 -0
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.e2e.js +10 -0
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.e2e.js.map +1 -0
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.spec.js +20 -0
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.spec.js.map +1 -0
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.e2e.js +10 -0
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.e2e.js.map +1 -0
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.spec.js +18 -0
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.spec.js.map +1 -0
- package/dist/collection/components/biggive-grid/test/biggive-grid.e2e.js +10 -0
- package/dist/collection/components/biggive-grid/test/biggive-grid.e2e.js.map +1 -0
- package/dist/collection/components/biggive-grid/test/biggive-grid.spec.js +20 -0
- package/dist/collection/components/biggive-grid/test/biggive-grid.spec.js.map +1 -0
- package/dist/collection/components/biggive-heading/test/biggive-heading.e2e.js +10 -0
- package/dist/collection/components/biggive-heading/test/biggive-heading.e2e.js.map +1 -0
- package/dist/collection/components/biggive-heading/test/biggive-heading.spec.js +20 -0
- package/dist/collection/components/biggive-heading/test/biggive-heading.spec.js.map +1 -0
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.e2e.js +10 -0
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.e2e.js.map +1 -0
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.spec.js +47 -0
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.spec.js.map +1 -0
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.e2e.js +10 -0
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.e2e.js.map +1 -0
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.spec.js +27 -0
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.spec.js.map +1 -0
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.e2e.js +10 -0
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.e2e.js.map +1 -0
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.spec.js +22 -0
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.spec.js.map +1 -0
- package/dist/collection/components/biggive-image/test/biggive-image.e2e.js +10 -0
- package/dist/collection/components/biggive-image/test/biggive-image.e2e.js.map +1 -0
- package/dist/collection/components/biggive-image/test/biggive-image.spec.js +22 -0
- package/dist/collection/components/biggive-image/test/biggive-image.spec.js.map +1 -0
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.e2e.js +10 -0
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.e2e.js.map +1 -0
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.spec.js +25 -0
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.spec.js.map +1 -0
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.e2e.js +10 -0
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.e2e.js.map +1 -0
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.spec.js +30 -0
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.spec.js.map +1 -0
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.e2e.js +10 -0
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.e2e.js.map +1 -0
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.spec.js +31 -0
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.spec.js.map +1 -0
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.e2e.js +10 -0
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.e2e.js.map +1 -0
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.spec.js +248 -0
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.spec.js.map +1 -0
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.e2e.js +10 -0
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.e2e.js.map +1 -0
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.spec.js +22 -0
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.spec.js.map +1 -0
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.e2e.js +10 -0
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.e2e.js.map +1 -0
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.spec.js +20 -0
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.spec.js.map +1 -0
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.e2e.js +10 -0
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.e2e.js.map +1 -0
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.spec.js +21 -0
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.spec.js.map +1 -0
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.e2e.js +10 -0
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.e2e.js.map +1 -0
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.spec.js +18 -0
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.spec.js.map +1 -0
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.e2e.js +10 -0
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.e2e.js.map +1 -0
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.spec.js +27 -0
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.spec.js.map +1 -0
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.e2e.js +10 -0
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.e2e.js.map +1 -0
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.spec.js +22 -0
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.spec.js.map +1 -0
- package/dist/collection/components/biggive-popup/test/biggive-popup.e2e.js +10 -0
- package/dist/collection/components/biggive-popup/test/biggive-popup.e2e.js.map +1 -0
- package/dist/collection/components/biggive-popup/test/biggive-popup.spec.js +27 -0
- package/dist/collection/components/biggive-popup/test/biggive-popup.spec.js.map +1 -0
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.e2e.js +10 -0
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.e2e.js.map +1 -0
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.spec.js +25 -0
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.spec.js.map +1 -0
- package/dist/collection/components/biggive-quote/test/biggive-quote.e2e.js +10 -0
- package/dist/collection/components/biggive-quote/test/biggive-quote.e2e.js.map +1 -0
- package/dist/collection/components/biggive-quote/test/biggive-quote.spec.js +30 -0
- package/dist/collection/components/biggive-quote/test/biggive-quote.spec.js.map +1 -0
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.e2e.js +10 -0
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.e2e.js.map +1 -0
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.spec.js +42 -0
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.spec.js.map +1 -0
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.e2e.js +10 -0
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.e2e.js.map +1 -0
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.spec.js +22 -0
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.spec.js.map +1 -0
- package/dist/collection/components/biggive-tab/test/biggive-tab.e2e.js +10 -0
- package/dist/collection/components/biggive-tab/test/biggive-tab.e2e.js.map +1 -0
- package/dist/collection/components/biggive-tab/test/biggive-tab.spec.js +20 -0
- package/dist/collection/components/biggive-tab/test/biggive-tab.spec.js.map +1 -0
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.e2e.js +10 -0
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.e2e.js.map +1 -0
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.spec.js +35 -0
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.spec.js.map +1 -0
- package/dist/collection/components/biggive-table/test/biggive-table.e2e.js +10 -0
- package/dist/collection/components/biggive-table/test/biggive-table.e2e.js.map +1 -0
- package/dist/collection/components/biggive-table/test/biggive-table.spec.js +16 -0
- package/dist/collection/components/biggive-table/test/biggive-table.spec.js.map +1 -0
- package/dist/collection/components/biggive-text-input/biggive-text-input.css +8 -6
- package/dist/collection/components/biggive-text-input/biggive-text-input.js +1 -1
- package/dist/collection/components/biggive-text-input/biggive-text-input.js.map +1 -1
- package/dist/collection/components/biggive-timeline/biggive-timeline.js +2 -2
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.e2e.js +10 -0
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.e2e.js.map +1 -0
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.spec.js +35 -0
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.spec.js.map +1 -0
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.e2e.js +10 -0
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.e2e.js.map +1 -0
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.spec.js +16 -0
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.spec.js.map +1 -0
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +1 -1
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.e2e.js +10 -0
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.e2e.js.map +1 -0
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.spec.js +37 -0
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.spec.js.map +1 -0
- package/dist/collection/components/biggive-totalizer-ticker-item/biggive-totalizer-ticker-item.js +1 -1
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.e2e.js +10 -0
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.e2e.js.map +1 -0
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.spec.js +20 -0
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.spec.js.map +1 -0
- package/dist/collection/components/biggive-video/biggive-video.js +1 -1
- package/dist/collection/components/biggive-video/test/biggive-video.e2e.js +10 -0
- package/dist/collection/components/biggive-video/test/biggive-video.e2e.js.map +1 -0
- package/dist/collection/components/biggive-video/test/biggive-video.spec.js +22 -0
- package/dist/collection/components/biggive-video/test/biggive-video.spec.js.map +1 -0
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +1 -1
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.e2e.js +10 -0
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.e2e.js.map +1 -0
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.spec.js +31 -0
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.spec.js.map +1 -0
- package/dist/components/biggive-text-input.js +2 -2
- package/dist/components/biggive-text-input.js.map +1 -1
- package/dist/components/biggive-timeline.js +2 -2
- package/dist/components/biggive-totalizer-ticker-item.js +1 -1
- package/dist/components/biggive-totalizer.js +1 -1
- package/dist/components/biggive-video-feature.js +1 -1
- package/dist/components/biggive-video.js +1 -1
- package/dist/esm/biggive-accordion_40.entry.js +8 -8
- package/dist/esm/biggive-accordion_40.entry.js.map +1 -1
- package/dist/esm/biggive-basic-card.entry.js +1 -1
- package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
- package/dist/esm/biggive-boxed-content.entry.js +1 -1
- package/dist/esm/biggive-category-icon.entry.js +1 -1
- package/dist/esm/biggive-cookie-banner.entry.js +1 -1
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-icon-group.entry.js +1 -1
- package/dist/esm/biggive-image-card.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +2 -2
- package/dist/esm/biggive.js +3 -3
- package/dist/esm/biggive.js.map +1 -1
- package/dist/esm/{index-71c68efa.js → index-7638dc89.js} +143 -159
- package/dist/esm/index-7638dc89.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/hydrate/index.d.ts +11 -29
- package/hydrate/index.js +299 -308
- package/hydrate/package.json +1 -7
- package/loader/index.d.ts +0 -3
- package/package.json +2 -2
- package/dist/biggive/p-404b1f20.entry.js +0 -2
- package/dist/biggive/p-8d4d254a.js +0 -3
- package/dist/biggive/p-8d4d254a.js.map +0 -1
- package/dist/cjs/index-3d3cc747.js.map +0 -1
- package/dist/esm/index-71c68efa.js.map +0 -1
- package/hydrate/index.mjs +0 -21021
- /package/dist/biggive/{p-81a4e5e9.entry.js.map → p-03e72a1b.entry.js.map} +0 -0
- /package/dist/biggive/{p-959513e3.entry.js.map → p-09533b1f.entry.js.map} +0 -0
- /package/dist/biggive/{p-543498d4.entry.js.map → p-38d75d70.entry.js.map} +0 -0
- /package/dist/biggive/{p-eebb0a8f.entry.js.map → p-496a5b1e.entry.js.map} +0 -0
- /package/dist/biggive/{p-2566ee05.entry.js.map → p-6cb8dd3e.entry.js.map} +0 -0
- /package/dist/biggive/{p-404b1f20.entry.js.map → p-7113e36d.entry.js.map} +0 -0
- /package/dist/biggive/{p-8cafe98a.entry.js.map → p-8146607d.entry.js.map} +0 -0
- /package/dist/biggive/{p-bf1aed80.entry.js.map → p-a4648f6b.entry.js.map} +0 -0
- /package/dist/biggive/{p-86ff3d9c.entry.js.map → p-a52c70dd.entry.js.map} +0 -0
- /package/dist/biggive/{p-bd111e3d.entry.js.map → p-b930ac6d.entry.js.map} +0 -0
- /package/dist/biggive/{p-6197dde2.entry.js.map → p-cc58f607.entry.js.map} +0 -0
- /package/dist/biggive/{p-a9a90c45.entry.js.map → p-fe03b6e6.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var stream = require('stream');
|
|
6
|
-
|
|
7
5
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
8
6
|
var globalThis = $stencilWindow;
|
|
9
7
|
var self = $stencilWindow;
|
|
@@ -127,7 +125,7 @@ const NAMESPACE = 'biggive';
|
|
|
127
125
|
const BUILD = /* biggive */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
128
126
|
|
|
129
127
|
/*
|
|
130
|
-
Stencil Hydrate Platform v4.
|
|
128
|
+
Stencil Hydrate Platform v4.18.3 | MIT Licensed | https://stenciljs.com
|
|
131
129
|
*/
|
|
132
130
|
var __defProp = Object.defineProperty;
|
|
133
131
|
var __export = (target, all) => {
|
|
@@ -152,6 +150,7 @@ var isComplexType = (o) => {
|
|
|
152
150
|
o = typeof o;
|
|
153
151
|
return o === "object" || o === "function";
|
|
154
152
|
};
|
|
153
|
+
var isPromise = (v) => !!v && (typeof v === "object" || typeof v === "function") && typeof v.then === "function";
|
|
155
154
|
|
|
156
155
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
157
156
|
function queryNonceMetaTagContent(doc2) {
|
|
@@ -582,21 +581,19 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
582
581
|
};
|
|
583
582
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
584
583
|
var _a;
|
|
585
|
-
const styleContainerDocument = styleContainerNode;
|
|
586
|
-
const styleContainerShadowRoot = styleContainerNode;
|
|
587
584
|
const scopeId2 = getScopeId(cmpMeta);
|
|
588
585
|
const style = styles.get(scopeId2);
|
|
589
586
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
590
587
|
if (style) {
|
|
591
588
|
if (typeof style === "string") {
|
|
592
|
-
styleContainerNode =
|
|
589
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
593
590
|
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
594
591
|
let styleElm;
|
|
595
592
|
if (!appliedStyles) {
|
|
596
593
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
597
594
|
}
|
|
598
595
|
if (!appliedStyles.has(scopeId2)) {
|
|
599
|
-
if (
|
|
596
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
600
597
|
styleElm.innerHTML = style;
|
|
601
598
|
} else {
|
|
602
599
|
styleElm = doc.createElement("style");
|
|
@@ -627,7 +624,7 @@ var attachStyles = (hostRef) => {
|
|
|
627
624
|
const flags = cmpMeta.$flags$;
|
|
628
625
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
629
626
|
const scopeId2 = addStyle(
|
|
630
|
-
elm.
|
|
627
|
+
elm.getRootNode(),
|
|
631
628
|
cmpMeta);
|
|
632
629
|
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
633
630
|
elm["s-sc"] = scopeId2;
|
|
@@ -791,7 +788,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
791
788
|
}
|
|
792
789
|
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
793
790
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
794
|
-
|
|
791
|
+
newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
795
792
|
) ;
|
|
796
793
|
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
797
794
|
isSvgMode = false;
|
|
@@ -1142,7 +1139,6 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
1142
1139
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1143
1140
|
var _a, _b, _c, _d;
|
|
1144
1141
|
const hostElm = hostRef.$hostElement$;
|
|
1145
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1146
1142
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1147
1143
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1148
1144
|
hostTagName = hostElm.tagName;
|
|
@@ -1160,7 +1156,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1160
1156
|
{
|
|
1161
1157
|
scopeId = hostElm["s-sc"];
|
|
1162
1158
|
}
|
|
1163
|
-
useNativeShadowDom =
|
|
1159
|
+
useNativeShadowDom = supportsShadow ;
|
|
1164
1160
|
{
|
|
1165
1161
|
contentRef = hostElm["s-cr"];
|
|
1166
1162
|
checkSlotFallbackVisibility = false;
|
|
@@ -1277,10 +1273,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1277
1273
|
endSchedule();
|
|
1278
1274
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1279
1275
|
};
|
|
1280
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
1281
|
-
console.error(err2);
|
|
1282
|
-
fn();
|
|
1283
|
-
}) : fn();
|
|
1276
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
1284
1277
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
1285
1278
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1286
1279
|
var _a;
|
|
@@ -1461,13 +1454,13 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1461
1454
|
|
|
1462
1455
|
// src/runtime/proxy-component.ts
|
|
1463
1456
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1464
|
-
var _a
|
|
1457
|
+
var _a;
|
|
1465
1458
|
const prototype = Cstr.prototype;
|
|
1466
|
-
if (cmpMeta.$members$
|
|
1467
|
-
if (Cstr.watchers
|
|
1459
|
+
if (cmpMeta.$members$) {
|
|
1460
|
+
if (Cstr.watchers) {
|
|
1468
1461
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1469
1462
|
}
|
|
1470
|
-
const members = Object.entries(
|
|
1463
|
+
const members = Object.entries(cmpMeta.$members$);
|
|
1471
1464
|
members.map(([memberName, [memberFlags]]) => {
|
|
1472
1465
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1473
1466
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1523,7 +1516,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1523
1516
|
};
|
|
1524
1517
|
Cstr.observedAttributes = Array.from(
|
|
1525
1518
|
/* @__PURE__ */ new Set([
|
|
1526
|
-
...Object.keys((
|
|
1519
|
+
...Object.keys((_a = cmpMeta.$watchers$) != null ? _a : {}),
|
|
1527
1520
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
1528
1521
|
const attrName = m[1] || propName;
|
|
1529
1522
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -1583,10 +1576,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1583
1576
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1584
1577
|
}
|
|
1585
1578
|
if (Cstr && Cstr.style) {
|
|
1586
|
-
let style;
|
|
1587
|
-
if (typeof Cstr.style === "string") {
|
|
1588
|
-
style = Cstr.style;
|
|
1589
|
-
}
|
|
1579
|
+
let style = Cstr.style;
|
|
1590
1580
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1591
1581
|
if (!styles.has(scopeId2)) {
|
|
1592
1582
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -1618,10 +1608,6 @@ var connectedCallback = (elm) => {
|
|
|
1618
1608
|
{
|
|
1619
1609
|
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1620
1610
|
if (hostId) {
|
|
1621
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1622
|
-
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
1623
|
-
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
1624
|
-
}
|
|
1625
1611
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1626
1612
|
}
|
|
1627
1613
|
}
|
|
@@ -1710,7 +1696,6 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
1710
1696
|
}
|
|
1711
1697
|
};
|
|
1712
1698
|
var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
1713
|
-
var _a;
|
|
1714
1699
|
if (node == null) {
|
|
1715
1700
|
return;
|
|
1716
1701
|
}
|
|
@@ -1718,8 +1703,7 @@ var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
|
1718
1703
|
orgLocationNodes.push(node);
|
|
1719
1704
|
}
|
|
1720
1705
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1721
|
-
|
|
1722
|
-
childNodes.forEach((childNode) => {
|
|
1706
|
+
node.childNodes.forEach((childNode) => {
|
|
1723
1707
|
const hostRef = getHostRef(childNode);
|
|
1724
1708
|
if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
|
|
1725
1709
|
const cmpData = {
|
|
@@ -1800,53 +1784,44 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
1800
1784
|
var hAsync = (nodeName, vnodeData, ...children) => {
|
|
1801
1785
|
if (Array.isArray(children) && children.length > 0) {
|
|
1802
1786
|
const flatChildren = children.flat(Infinity);
|
|
1803
|
-
if (flatChildren.some(
|
|
1787
|
+
if (flatChildren.some(isPromise)) {
|
|
1804
1788
|
return Promise.all(flatChildren).then((resolvedChildren) => {
|
|
1805
1789
|
return h(nodeName, vnodeData, ...resolvedChildren);
|
|
1806
1790
|
}).catch((err2) => {
|
|
1807
1791
|
return h(nodeName, vnodeData);
|
|
1808
1792
|
});
|
|
1809
1793
|
}
|
|
1810
|
-
return h(nodeName, vnodeData, ...
|
|
1794
|
+
return h(nodeName, vnodeData, ...children);
|
|
1811
1795
|
}
|
|
1812
1796
|
return h(nodeName, vnodeData);
|
|
1813
1797
|
};
|
|
1814
|
-
|
|
1798
|
+
|
|
1799
|
+
// src/hydrate/platform/proxy-host-element.ts
|
|
1800
|
+
function proxyHostElement(elm, cmpMeta) {
|
|
1815
1801
|
if (typeof elm.componentOnReady !== "function") {
|
|
1816
1802
|
elm.componentOnReady = componentOnReady;
|
|
1817
1803
|
}
|
|
1818
1804
|
if (typeof elm.forceUpdate !== "function") {
|
|
1819
1805
|
elm.forceUpdate = forceUpdate2;
|
|
1820
1806
|
}
|
|
1821
|
-
if (
|
|
1822
|
-
|
|
1823
|
-
elm.attachShadow({ mode: "open" });
|
|
1824
|
-
} else {
|
|
1825
|
-
elm.shadowRoot = elm;
|
|
1826
|
-
}
|
|
1807
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1808
|
+
elm.shadowRoot = elm;
|
|
1827
1809
|
}
|
|
1828
1810
|
if (cmpMeta.$members$ != null) {
|
|
1829
1811
|
const hostRef = getHostRef(elm);
|
|
1830
1812
|
const members = Object.entries(cmpMeta.$members$);
|
|
1831
1813
|
members.forEach(([memberName, m]) => {
|
|
1832
|
-
var _a, _b;
|
|
1833
1814
|
const memberFlags = m[0];
|
|
1834
1815
|
if (memberFlags & 31 /* Prop */) {
|
|
1835
1816
|
const attributeName = m[1] || memberName;
|
|
1836
|
-
|
|
1837
|
-
if ((attrValue == null ? void 0 : attrValue.startsWith("{")) && attrValue.endsWith("}") || (attrValue == null ? void 0 : attrValue.startsWith("[")) && attrValue.endsWith("]")) {
|
|
1838
|
-
try {
|
|
1839
|
-
attrValue = JSON.parse(attrValue);
|
|
1840
|
-
} catch (e) {
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1817
|
+
const attrValue = elm.getAttribute(attributeName);
|
|
1843
1818
|
if (attrValue != null) {
|
|
1844
1819
|
const parsedAttrValue = parsePropertyValue(attrValue, memberFlags);
|
|
1845
|
-
|
|
1820
|
+
hostRef.$instanceValues$.set(memberName, parsedAttrValue);
|
|
1846
1821
|
}
|
|
1847
1822
|
const ownValue = elm[memberName];
|
|
1848
1823
|
if (ownValue !== void 0) {
|
|
1849
|
-
|
|
1824
|
+
hostRef.$instanceValues$.set(memberName, ownValue);
|
|
1850
1825
|
delete elm[memberName];
|
|
1851
1826
|
}
|
|
1852
1827
|
Object.defineProperty(elm, memberName, {
|
|
@@ -1862,12 +1837,8 @@ function proxyHostElement(elm, cmpMeta, opts) {
|
|
|
1862
1837
|
} else if (memberFlags & 64 /* Method */) {
|
|
1863
1838
|
Object.defineProperty(elm, memberName, {
|
|
1864
1839
|
value(...args) {
|
|
1865
|
-
var _a2;
|
|
1866
1840
|
const ref = getHostRef(this);
|
|
1867
|
-
return (
|
|
1868
|
-
var _a3;
|
|
1869
|
-
return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
1870
|
-
}).catch(consoleError);
|
|
1841
|
+
return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args)).catch(consoleError);
|
|
1871
1842
|
}
|
|
1872
1843
|
});
|
|
1873
1844
|
}
|
|
@@ -1875,8 +1846,7 @@ function proxyHostElement(elm, cmpMeta, opts) {
|
|
|
1875
1846
|
}
|
|
1876
1847
|
}
|
|
1877
1848
|
function componentOnReady() {
|
|
1878
|
-
|
|
1879
|
-
return (_a = getHostRef(this)) == null ? void 0 : _a.$onReadyPromise$;
|
|
1849
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1880
1850
|
}
|
|
1881
1851
|
function forceUpdate2() {
|
|
1882
1852
|
}
|
|
@@ -1892,7 +1862,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
1892
1862
|
let tmrId;
|
|
1893
1863
|
let ranCompleted = false;
|
|
1894
1864
|
function hydratedComplete() {
|
|
1895
|
-
|
|
1865
|
+
global.clearTimeout(tmrId);
|
|
1896
1866
|
createdElements.clear();
|
|
1897
1867
|
connectedElements.clear();
|
|
1898
1868
|
if (!ranCompleted) {
|
|
@@ -1933,7 +1903,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
1933
1903
|
createdElements.add(elm);
|
|
1934
1904
|
elm.connectedCallback = patchedConnectedCallback2;
|
|
1935
1905
|
registerHost(elm, Cstr.cmpMeta);
|
|
1936
|
-
proxyHostElement(elm, Cstr.cmpMeta
|
|
1906
|
+
proxyHostElement(elm, Cstr.cmpMeta);
|
|
1937
1907
|
}
|
|
1938
1908
|
}
|
|
1939
1909
|
}
|
|
@@ -1971,7 +1941,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
1971
1941
|
patchElement2(elm);
|
|
1972
1942
|
return elm;
|
|
1973
1943
|
};
|
|
1974
|
-
tmrId =
|
|
1944
|
+
tmrId = global.setTimeout(timeoutExceeded, opts.timeout);
|
|
1975
1945
|
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", doc.baseURI).href;
|
|
1976
1946
|
patchChild2(win2.document.body);
|
|
1977
1947
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
@@ -1990,7 +1960,6 @@ async function hydrateComponent(win2, results, tagName, elm, waitingElements) {
|
|
|
1990
1960
|
const cmpMeta = Cstr.cmpMeta;
|
|
1991
1961
|
if (cmpMeta != null) {
|
|
1992
1962
|
waitingElements.add(elm);
|
|
1993
|
-
getHostRef(this);
|
|
1994
1963
|
try {
|
|
1995
1964
|
connectedCallback(elm);
|
|
1996
1965
|
await elm.componentOnReady();
|
|
@@ -2161,7 +2130,7 @@ var registerComponents = (Cstrs) => {
|
|
|
2161
2130
|
var win = window;
|
|
2162
2131
|
var doc = win.document;
|
|
2163
2132
|
var writeTask = (cb) => {
|
|
2164
|
-
nextTick(() => {
|
|
2133
|
+
process.nextTick(() => {
|
|
2165
2134
|
try {
|
|
2166
2135
|
cb();
|
|
2167
2136
|
} catch (e) {
|
|
@@ -2186,7 +2155,7 @@ var plt = {
|
|
|
2186
2155
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2187
2156
|
ce: (eventName, opts) => new win.CustomEvent(eventName, opts)
|
|
2188
2157
|
};
|
|
2189
|
-
var supportsShadow =
|
|
2158
|
+
var supportsShadow = false;
|
|
2190
2159
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
2191
2160
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
2192
2161
|
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
@@ -5049,7 +5018,7 @@ class BiggiveTable {
|
|
|
5049
5018
|
}; }
|
|
5050
5019
|
}
|
|
5051
5020
|
|
|
5052
|
-
const biggiveTextInputCss = "/*!@a*/a.sc-biggive-text-input{color:inherit;text-decoration:underline}/*!@a:hover*/a.sc-biggive-text-input:hover{text-decoration:none}/*!@.space-above-0*/.space-above-0.sc-biggive-text-input{margin-top:0}/*!@.space-above-1*/.space-above-1.sc-biggive-text-input{margin-top:5px}/*!@.space-above-2*/.space-above-2.sc-biggive-text-input{margin-top:10px}/*!@.space-above-3*/.space-above-3.sc-biggive-text-input{margin-top:15px}/*!@.space-above-4*/.space-above-4.sc-biggive-text-input{margin-top:30px}/*!@.space-above-5*/.space-above-5.sc-biggive-text-input{margin-top:45px}/*!@.space-above-6*/.space-above-6.sc-biggive-text-input{margin-top:60px}/*!@.space-below-0*/.space-below-0.sc-biggive-text-input{margin-bottom:0}/*!@.space-below-1*/.space-below-1.sc-biggive-text-input{margin-bottom:5px}/*!@.space-below-2*/.space-below-2.sc-biggive-text-input{margin-bottom:10px}/*!@.space-below-3*/.space-below-3.sc-biggive-text-input{margin-bottom:15px}/*!@.space-below-4*/.space-below-4.sc-biggive-text-input{margin-bottom:30px}/*!@.space-below-5*/.space-below-5.sc-biggive-text-input{margin-bottom:45px}/*!@.space-below-6*/.space-below-6.sc-biggive-text-input{margin-bottom:60px}/*!@:host*/.sc-biggive-text-input-h{display:contents}/*!@::slotted([slot=label])*/.sc-biggive-text-input-s>[slot=label]{display:inline-block;
|
|
5021
|
+
const biggiveTextInputCss = "/*!@a*/a.sc-biggive-text-input{color:inherit;text-decoration:underline}/*!@a:hover*/a.sc-biggive-text-input:hover{text-decoration:none}/*!@.space-above-0*/.space-above-0.sc-biggive-text-input{margin-top:0}/*!@.space-above-1*/.space-above-1.sc-biggive-text-input{margin-top:5px}/*!@.space-above-2*/.space-above-2.sc-biggive-text-input{margin-top:10px}/*!@.space-above-3*/.space-above-3.sc-biggive-text-input{margin-top:15px}/*!@.space-above-4*/.space-above-4.sc-biggive-text-input{margin-top:30px}/*!@.space-above-5*/.space-above-5.sc-biggive-text-input{margin-top:45px}/*!@.space-above-6*/.space-above-6.sc-biggive-text-input{margin-top:60px}/*!@.space-below-0*/.space-below-0.sc-biggive-text-input{margin-bottom:0}/*!@.space-below-1*/.space-below-1.sc-biggive-text-input{margin-bottom:5px}/*!@.space-below-2*/.space-below-2.sc-biggive-text-input{margin-bottom:10px}/*!@.space-below-3*/.space-below-3.sc-biggive-text-input{margin-bottom:15px}/*!@.space-below-4*/.space-below-4.sc-biggive-text-input{margin-bottom:30px}/*!@.space-below-5*/.space-below-5.sc-biggive-text-input{margin-bottom:45px}/*!@.space-below-6*/.space-below-6.sc-biggive-text-input{margin-bottom:60px}/*!@:host*/.sc-biggive-text-input-h{display:contents}/*!@::slotted([slot=label])*/.sc-biggive-text-input-s>[slot=label]{display:inline-block;line-height:1.2}/*!@.text-input*/.text-input.sc-biggive-text-input{position:relative;font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative;text-align:left}/*!@.text-input .currency-symbol*/.text-input.sc-biggive-text-input .currency-symbol.sc-biggive-text-input{position:absolute}/*!@.text-input .prompt*/.text-input.sc-biggive-text-input .prompt.sc-biggive-text-input{position:relative;z-index:2;font-size:small;top:1em;left:4em;color:#2C089B;max-width:calc(100% - 10em);display:inline-block}/*!@.text-input .prompt > span*/.text-input.sc-biggive-text-input .prompt.sc-biggive-text-input>span.sc-biggive-text-input{padding-left:1em;padding-right:1em;background-color:#F6F6F6}/*!@.text-input.select-style-bordered .sleeve*/.text-input.select-style-bordered.sc-biggive-text-input .sleeve.sc-biggive-text-input{font-size:24px;line-height:30px;font-weight:bolder;padding:2px;position:relative;background-color:#2C089B;clip-path:polygon(0% 0%, 0% 0%, calc(100% - 15px) 0%, 100% 15px, 100% 100%, 100% 100%, 0 100%, 0 100%)}/*!@.text-input.select-style-bordered .sleeve .inner-sleave*/.text-input.select-style-bordered.sc-biggive-text-input .sleeve.sc-biggive-text-input .inner-sleave.sc-biggive-text-input{background-color:#F6F6F6;color:#2C089B;display:block;position:relative;padding:10px 30px 10px 10px;clip-path:polygon(0% 0%, 0% 0%, calc(100% - 14px) 0%, 100% 14px, 100% 100%, 100% 100%, 0 100%, 0 100%)}/*!@.text-input.select-style-bordered .sleeve .inner-sleave:after*/.text-input.select-style-bordered.sc-biggive-text-input .sleeve.sc-biggive-text-input .inner-sleave.sc-biggive-text-input:after{content:\"\";display:block;position:absolute;right:20px;top:18px;width:10px;height:10px;background-size:contain;background-repeat:no-repeat;background-position:center center}";
|
|
5053
5022
|
var BiggiveTextInputStyle0 = biggiveTextInputCss;
|
|
5054
5023
|
|
|
5055
5024
|
/**
|
|
@@ -5068,7 +5037,7 @@ class BiggiveTextInput {
|
|
|
5068
5037
|
}
|
|
5069
5038
|
render() {
|
|
5070
5039
|
const currencySymbol = this.currency === 'GBP' ? '£' : this.currency === 'USD' ? '$' : undefined;
|
|
5071
|
-
return (hAsync("div", { key: '36f325d974320a7cbbd9ea9d591fb30b14048ad3', class: 'text-input space-below-' + this.spaceBelow + ' select-style-' + this.selectStyle }, hAsync("div", { key: '6c3eea801a17549648c0ee332d5e37fd59733d7d', class: "
|
|
5040
|
+
return (hAsync("div", { key: '36f325d974320a7cbbd9ea9d591fb30b14048ad3', class: 'text-input space-below-' + this.spaceBelow + ' select-style-' + this.selectStyle }, hAsync("div", { key: '6c3eea801a17549648c0ee332d5e37fd59733d7d', class: "prompt" }, hAsync("span", { key: 'cf5709fd0523b21f1394644f6b0ec95f4069b3d1' }, hAsync("slot", { key: 'e2eb724b1d687b200b295c2b6b4fcf59bfd73b28', name: "label" }))), hAsync("div", { key: 'd49549bef8a7781c94d51741721fe550e2ae6944', class: "sleeve" }, hAsync("div", { key: '32f5213fa9a550c898023097b8333c8b3dacbbe4', class: "inner-sleave" }, currencySymbol && hAsync("span", { key: '31b5ef3de41e506e5c80cc3e8320041a83c061a6', class: "currency-symbol" }, currencySymbol), hAsync("slot", { key: 'e9b67fe16688e94c48545d5d247900b0ce7f90c0', name: "input" }), hAsync("div", { key: '18571720cfaaafecbc6ff5888f86dae5f1a68b1a', style: { clear: 'both' } })))));
|
|
5072
5041
|
}
|
|
5073
5042
|
static get style() { return BiggiveTextInputStyle0; }
|
|
5074
5043
|
static get cmpMeta() { return {
|
|
@@ -5197,7 +5166,7 @@ class BiggiveTimeline {
|
|
|
5197
5166
|
});
|
|
5198
5167
|
}
|
|
5199
5168
|
render() {
|
|
5200
|
-
return (hAsync("div", { key: '
|
|
5169
|
+
return (hAsync("div", { key: 'a57df2794d8055ce13518c748935a4f44933ea60', class: 'container space-below-' +
|
|
5201
5170
|
this.spaceBelow +
|
|
5202
5171
|
' text-colour-' +
|
|
5203
5172
|
this.textColour +
|
|
@@ -5220,7 +5189,7 @@ class BiggiveTimeline {
|
|
|
5220
5189
|
' entry-title-colour-' +
|
|
5221
5190
|
this.entryTitleColour +
|
|
5222
5191
|
' entry-text-colour-' +
|
|
5223
|
-
this.entryTextColour }, hAsync("div", { key: '
|
|
5192
|
+
this.entryTextColour }, hAsync("div", { key: '53ad5ad6059aaa115f64d42d1731fce34e1c46ef', class: "navigation" }, hAsync("div", { key: 'eae1b0def646a91b30040d7ab05c01600a482644', class: "button prev", onClick: this.clickPrevHandler, title: "Previous" }, hAsync("svg", { key: '40b32928ff3177d5e3506f3a9c7a3d58d2280506', width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'ab8683532aa056324f06d41ee01b7304752531a8', d: "M8.29311 14.5703L1.73926 8.01646L8.29311 1.46261", stroke: "#000000", "stroke-width": "2" }))), hAsync("div", { key: '2011d417b4e60e81527858e2e5e22dfb36a53ffb', class: "sleeve" }, hAsync("ul", { key: '4b4ef5d98bfcd52c615c741631ec911b932e0345' }, this.tabHeadings.map(tab => (hAsync("li", { onClick: this.clickTabHandler }, tab))))), hAsync("div", { key: 'd6e7e7ff1394336771e347a478ec06072a227322', class: "button next", onClick: this.clickNextHandler, title: "Next" }, hAsync("svg", { key: '20120afb075a25f07ee5024236b7ee50ec8d588f', width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '4c0ee26f7f38377cf5447c8ae0874f155fcd73e5', d: "M0.739117 1.46094L7.29297 8.01479L0.739118 14.5686", stroke: "#000000", "stroke-width": "2" })))), hAsync("div", { key: 'f273403a0a687014dc17a109adb2bbf51b942e16', class: "entry-wrap" }, this.children.map(entry => (hAsync("div", { class: "entry", "data-date": entry.date }, hAsync("h4", { class: "title" }, entry.heading), hAsync("div", { class: "content", innerHTML: entry.innerHTML })))))));
|
|
5224
5193
|
}
|
|
5225
5194
|
get host() { return getElement(this); }
|
|
5226
5195
|
static get style() { return BiggiveTimelineStyle0; }
|
|
@@ -5360,7 +5329,7 @@ class BiggiveTotalizer {
|
|
|
5360
5329
|
});
|
|
5361
5330
|
}
|
|
5362
5331
|
render() {
|
|
5363
|
-
return (hAsync("div", { key: '
|
|
5332
|
+
return (hAsync("div", { key: '0a641bcc948659a2d6b6587d5efdd23ff6da7705', class: 'container space-below-' + this.spaceBelow }, hAsync("div", { key: 'c0e2028f8e7ec5305352dd3fab47f5c493744cb1' }, hAsync("div", { key: '87151730dff0b6f75aa74e4fb115cac5d3377f04', class: "banner" }, hAsync("div", { key: '9cb1831926391a6921f4de0214713b3c6af9c7ca', class: 'main-message-wrap background-colour-' + this.secondaryColour + ' text-colour-' + this.secondaryTextColour }, this.mainMessage), hAsync("div", { key: '1bc43d9a74377bee92bc2194ffba9289b81a612b', class: 'ticker-wrap background-colour-' + this.primaryColour + ' text-colour-' + this.primaryTextColour }, hAsync("div", { key: 'e7cc45b5e947d8efd3dcf852b1fdaeb2f6c986f0', id: "sleeve_1", class: "sleeve" }, hAsync("slot", { key: '36e49a0f66953419f0697af3cfac3c02edcb386b', name: "ticker-items" })), hAsync("div", { key: 'd1a0416c893816a97644d2230b0cd860594cc032', id: "sleeve_2", class: "sleeve sleeve-delayed-copy" }), hAsync("div", { key: '5b4337fa1cc0a7ac1f4142b42061642b2f005c49', id: "sleeve_3", class: "sleeve sleeve-delayed-copy" }), hAsync("div", { key: '40d9274a8354e4f8611cdc3d95e6697a6aa02e2c', id: "sleeve_4", class: "sleeve sleeve-delayed-copy" }))))));
|
|
5364
5333
|
}
|
|
5365
5334
|
get host() { return getElement(this); }
|
|
5366
5335
|
static get style() { return BiggiveTotalizerStyle0; }
|
|
@@ -5391,7 +5360,7 @@ class BiggiveTotalizerTickerItem {
|
|
|
5391
5360
|
this.label = undefined;
|
|
5392
5361
|
}
|
|
5393
5362
|
render() {
|
|
5394
|
-
return (hAsync("div", { key: '
|
|
5363
|
+
return (hAsync("div", { key: '92caa81db03fc9871cc7f6c0e5e75ef30bf29e4d', class: "ticker-item" }, hAsync("strong", { key: '494dee81a7ff6b6dcca2aeb96f8f3d4b26e5bc40' }, this.figure), " ", this.label));
|
|
5395
5364
|
}
|
|
5396
5365
|
static get style() { return BiggiveTotalizerTickerItemStyle0; }
|
|
5397
5366
|
static get cmpMeta() { return {
|
|
@@ -5433,7 +5402,7 @@ class BiggiveVideo {
|
|
|
5433
5402
|
this.videoUrl = '';
|
|
5434
5403
|
}
|
|
5435
5404
|
render() {
|
|
5436
|
-
return (hAsync("div", { key: '
|
|
5405
|
+
return (hAsync("div", { key: '2f45734791082583b92524301e96c2d83200a133', class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow }, hAsync("div", { key: 'dd6b41cb1449af2b1dcf81b8f58794ac87847f70', class: "video-wrap", innerHTML: VideoService.getEmbedHtml(this.videoUrl, null) })));
|
|
5437
5406
|
}
|
|
5438
5407
|
static get style() { return BiggiveVideoStyle0; }
|
|
5439
5408
|
static get cmpMeta() { return {
|
|
@@ -5472,7 +5441,7 @@ class BiggiveVideoFeature {
|
|
|
5472
5441
|
}
|
|
5473
5442
|
render() {
|
|
5474
5443
|
const youtubeClass = this.videoUrl.includes('youtube.com') ? ' youtube' : '';
|
|
5475
|
-
return (hAsync("div", { key: '
|
|
5444
|
+
return (hAsync("div", { key: 'ca1e7e592f4bee2865b0e90150ac798b35d3f38c', class: 'container text-colour-' + this.defaultTextColour + ' space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow }, hAsync("div", { key: '71d0b0630cc2038115126e07cbe1f6825dfe78bd', class: "sleeve" }, hAsync("div", { key: 'e7b4d335f1ea2730fa31184bff3ffc9e4455f5b1', class: "content-wrap" }, hAsync("div", { key: '075dc776d1ed6ef1e144d5697cd8269397fb6486', class: 'slug text-colour-' + this.slugColour }, this.slug), hAsync("h2", { key: 'f0fbd716c44291e3edf29c2decd58d8a93124207', class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), hAsync("div", { key: '7f70d22683ea00f100173e3e4034fc51468efffa', class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (hAsync("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), hAsync("div", { key: '842ee1a7ad83124ab52172ee17ac160944801a85', class: "graphic-wrap" }, this.videoUrl !== null && this.videoUrl !== undefined ? (hAsync("div", { class: 'video-wrap' + youtubeClass, innerHTML: VideoService.getEmbedHtml(this.videoUrl, this.mainTitle) })) : null))));
|
|
5476
5445
|
}
|
|
5477
5446
|
static get style() { return BiggiveVideoFeatureStyle0; }
|
|
5478
5447
|
static get cmpMeta() { return {
|
|
@@ -5565,7 +5534,7 @@ exports.hydrateApp = hydrateApp;
|
|
|
5565
5534
|
}
|
|
5566
5535
|
|
|
5567
5536
|
/*
|
|
5568
|
-
Stencil Hydrate Runner v4.
|
|
5537
|
+
Stencil Hydrate Runner v4.18.3 | MIT Licensed | https://stenciljs.com
|
|
5569
5538
|
*/
|
|
5570
5539
|
var __defProp = Object.defineProperty;
|
|
5571
5540
|
var __export = (target, all) => {
|
|
@@ -15963,50 +15932,67 @@ function humanReadableList(items) {
|
|
|
15963
15932
|
}
|
|
15964
15933
|
|
|
15965
15934
|
// src/mock-doc/serialize-node.ts
|
|
15966
|
-
function
|
|
15967
|
-
return {
|
|
15968
|
-
...opts,
|
|
15969
|
-
outerHtml: typeof opts.outerHtml !== "boolean" ? false : opts.outerHtml,
|
|
15970
|
-
...opts.prettyHtml ? {
|
|
15971
|
-
indentSpaces: typeof opts.indentSpaces !== "number" ? 2 : opts.indentSpaces,
|
|
15972
|
-
newLines: typeof opts.newLines !== "boolean" ? true : opts.newLines
|
|
15973
|
-
} : {
|
|
15974
|
-
prettyHtml: false,
|
|
15975
|
-
indentSpaces: typeof opts.indentSpaces !== "number" ? 0 : opts.indentSpaces,
|
|
15976
|
-
newLines: typeof opts.newLines !== "boolean" ? false : opts.newLines
|
|
15977
|
-
},
|
|
15978
|
-
approximateLineWidth: typeof opts.approximateLineWidth !== "number" ? -1 : opts.approximateLineWidth,
|
|
15979
|
-
removeEmptyAttributes: typeof opts.removeEmptyAttributes !== "boolean" ? true : opts.removeEmptyAttributes,
|
|
15980
|
-
removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
|
|
15981
|
-
removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
|
|
15982
|
-
removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
|
|
15983
|
-
serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? false : opts.serializeShadowRoot,
|
|
15984
|
-
fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
|
|
15985
|
-
};
|
|
15986
|
-
}
|
|
15987
|
-
function serializeNodeToHtml(elm, serializationOptions = {}) {
|
|
15988
|
-
const opts = normalizeSerializationOptions(serializationOptions);
|
|
15935
|
+
function serializeNodeToHtml(elm, opts = {}) {
|
|
15989
15936
|
const output = {
|
|
15990
15937
|
currentLineWidth: 0,
|
|
15991
15938
|
indent: 0,
|
|
15992
15939
|
isWithinBody: false,
|
|
15993
15940
|
text: []
|
|
15994
15941
|
};
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
15942
|
+
if (opts.prettyHtml) {
|
|
15943
|
+
if (typeof opts.indentSpaces !== "number") {
|
|
15944
|
+
opts.indentSpaces = 2;
|
|
15945
|
+
}
|
|
15946
|
+
if (typeof opts.newLines !== "boolean") {
|
|
15947
|
+
opts.newLines = true;
|
|
15948
|
+
}
|
|
15949
|
+
opts.approximateLineWidth = -1;
|
|
15950
|
+
} else {
|
|
15951
|
+
opts.prettyHtml = false;
|
|
15952
|
+
if (typeof opts.newLines !== "boolean") {
|
|
15953
|
+
opts.newLines = false;
|
|
15954
|
+
}
|
|
15955
|
+
if (typeof opts.indentSpaces !== "number") {
|
|
15956
|
+
opts.indentSpaces = 0;
|
|
15957
|
+
}
|
|
15958
|
+
}
|
|
15959
|
+
if (typeof opts.approximateLineWidth !== "number") {
|
|
15960
|
+
opts.approximateLineWidth = -1;
|
|
15961
|
+
}
|
|
15962
|
+
if (typeof opts.removeEmptyAttributes !== "boolean") {
|
|
15963
|
+
opts.removeEmptyAttributes = true;
|
|
16001
15964
|
}
|
|
16002
|
-
|
|
15965
|
+
if (typeof opts.removeAttributeQuotes !== "boolean") {
|
|
15966
|
+
opts.removeAttributeQuotes = false;
|
|
15967
|
+
}
|
|
15968
|
+
if (typeof opts.removeBooleanAttributeQuotes !== "boolean") {
|
|
15969
|
+
opts.removeBooleanAttributeQuotes = false;
|
|
15970
|
+
}
|
|
15971
|
+
if (typeof opts.removeHtmlComments !== "boolean") {
|
|
15972
|
+
opts.removeHtmlComments = false;
|
|
15973
|
+
}
|
|
15974
|
+
if (typeof opts.serializeShadowRoot !== "boolean") {
|
|
15975
|
+
opts.serializeShadowRoot = false;
|
|
15976
|
+
}
|
|
15977
|
+
if (opts.outerHtml) {
|
|
15978
|
+
serializeToHtml(elm, opts, output, false);
|
|
15979
|
+
} else {
|
|
15980
|
+
for (let i = 0, ii = elm.childNodes.length; i < ii; i++) {
|
|
15981
|
+
serializeToHtml(elm.childNodes[i], opts, output, false);
|
|
15982
|
+
}
|
|
15983
|
+
}
|
|
15984
|
+
if (output.text[0] === "\n") {
|
|
15985
|
+
output.text.shift();
|
|
15986
|
+
}
|
|
15987
|
+
if (output.text[output.text.length - 1] === "\n") {
|
|
15988
|
+
output.text.pop();
|
|
15989
|
+
}
|
|
15990
|
+
return output.text.join("");
|
|
16003
15991
|
}
|
|
16004
|
-
|
|
16005
|
-
function* streamToHtml(node, opts, output) {
|
|
15992
|
+
function serializeToHtml(node, opts, output, isShadowRoot) {
|
|
16006
15993
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
16007
|
-
const isShadowRoot = node.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */;
|
|
16008
15994
|
if (node.nodeType === 1 /* ELEMENT_NODE */ || isShadowRoot) {
|
|
16009
|
-
const tagName = isShadowRoot ?
|
|
15995
|
+
const tagName = isShadowRoot ? "mock:shadow-root" : getTagName(node);
|
|
16010
15996
|
if (tagName === "body") {
|
|
16011
15997
|
output.isWithinBody = true;
|
|
16012
15998
|
}
|
|
@@ -16014,23 +16000,17 @@ function* streamToHtml(node, opts, output) {
|
|
|
16014
16000
|
if (ignoreTag === false) {
|
|
16015
16001
|
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a2 = opts.indentSpaces) != null ? _a2 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
|
|
16016
16002
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16017
|
-
|
|
16003
|
+
output.text.push("\n");
|
|
16018
16004
|
output.currentLineWidth = 0;
|
|
16019
16005
|
}
|
|
16020
16006
|
if (((_b = opts.indentSpaces) != null ? _b : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16021
16007
|
for (let i = 0; i < output.indent; i++) {
|
|
16022
|
-
|
|
16008
|
+
output.text.push(" ");
|
|
16023
16009
|
}
|
|
16024
16010
|
output.currentLineWidth += output.indent;
|
|
16025
16011
|
}
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
output.currentLineWidth += tag.length + 1;
|
|
16029
|
-
if (tag === "template") {
|
|
16030
|
-
const mode = ` shadowrootmode="open"`;
|
|
16031
|
-
yield mode;
|
|
16032
|
-
output.currentLineWidth += mode.length;
|
|
16033
|
-
}
|
|
16012
|
+
output.text.push("<" + tagName);
|
|
16013
|
+
output.currentLineWidth += tagName.length + 1;
|
|
16034
16014
|
const attrsLength = node.attributes.length;
|
|
16035
16015
|
const attributes = opts.prettyHtml && attrsLength > 1 ? cloneAttributes(node.attributes, true) : node.attributes;
|
|
16036
16016
|
for (let i = 0; i < attrsLength; i++) {
|
|
@@ -16047,27 +16027,27 @@ function* streamToHtml(node, opts, output) {
|
|
|
16047
16027
|
if (attrNamespaceURI == null) {
|
|
16048
16028
|
output.currentLineWidth += attrName.length + 1;
|
|
16049
16029
|
if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth > opts.approximateLineWidth) {
|
|
16050
|
-
|
|
16030
|
+
output.text.push("\n" + attrName);
|
|
16051
16031
|
output.currentLineWidth = 0;
|
|
16052
16032
|
} else {
|
|
16053
|
-
|
|
16033
|
+
output.text.push(" " + attrName);
|
|
16054
16034
|
}
|
|
16055
16035
|
} else if (attrNamespaceURI === "http://www.w3.org/XML/1998/namespace") {
|
|
16056
|
-
|
|
16036
|
+
output.text.push(" xml:" + attrName);
|
|
16057
16037
|
output.currentLineWidth += attrName.length + 5;
|
|
16058
16038
|
} else if (attrNamespaceURI === "http://www.w3.org/2000/xmlns/") {
|
|
16059
16039
|
if (attrName !== "xmlns") {
|
|
16060
|
-
|
|
16040
|
+
output.text.push(" xmlns:" + attrName);
|
|
16061
16041
|
output.currentLineWidth += attrName.length + 7;
|
|
16062
16042
|
} else {
|
|
16063
|
-
|
|
16043
|
+
output.text.push(" " + attrName);
|
|
16064
16044
|
output.currentLineWidth += attrName.length + 1;
|
|
16065
16045
|
}
|
|
16066
16046
|
} else if (attrNamespaceURI === XLINK_NS) {
|
|
16067
|
-
|
|
16047
|
+
output.text.push(" xlink:" + attrName);
|
|
16068
16048
|
output.currentLineWidth += attrName.length + 7;
|
|
16069
16049
|
} else {
|
|
16070
|
-
|
|
16050
|
+
output.text.push(" " + attrNamespaceURI + ":" + attrName);
|
|
16071
16051
|
output.currentLineWidth += attrNamespaceURI.length + attrName.length + 2;
|
|
16072
16052
|
}
|
|
16073
16053
|
if (opts.prettyHtml && attrName === "class") {
|
|
@@ -16082,45 +16062,43 @@ function* streamToHtml(node, opts, output) {
|
|
|
16082
16062
|
}
|
|
16083
16063
|
}
|
|
16084
16064
|
if (opts.removeAttributeQuotes && CAN_REMOVE_ATTR_QUOTES.test(attrValue)) {
|
|
16085
|
-
|
|
16065
|
+
output.text.push("=" + escapeString(attrValue, true));
|
|
16086
16066
|
output.currentLineWidth += attrValue.length + 1;
|
|
16087
16067
|
} else {
|
|
16088
|
-
|
|
16068
|
+
output.text.push('="' + escapeString(attrValue, true) + '"');
|
|
16089
16069
|
output.currentLineWidth += attrValue.length + 3;
|
|
16090
16070
|
}
|
|
16091
16071
|
}
|
|
16092
16072
|
if (node.hasAttribute("style")) {
|
|
16093
16073
|
const cssText = node.style.cssText;
|
|
16094
16074
|
if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth + cssText.length + 10 > opts.approximateLineWidth) {
|
|
16095
|
-
|
|
16096
|
-
style="${cssText}"
|
|
16075
|
+
output.text.push(`
|
|
16076
|
+
style="${cssText}">`);
|
|
16097
16077
|
output.currentLineWidth = 0;
|
|
16098
16078
|
} else {
|
|
16099
|
-
|
|
16079
|
+
output.text.push(` style="${cssText}">`);
|
|
16100
16080
|
output.currentLineWidth += cssText.length + 10;
|
|
16101
16081
|
}
|
|
16102
16082
|
} else {
|
|
16103
|
-
|
|
16083
|
+
output.text.push(">");
|
|
16104
16084
|
output.currentLineWidth += 1;
|
|
16105
16085
|
}
|
|
16106
16086
|
}
|
|
16107
16087
|
if (EMPTY_ELEMENTS.has(tagName) === false) {
|
|
16108
|
-
|
|
16109
|
-
if (opts.serializeShadowRoot && shadowRoot != null) {
|
|
16088
|
+
if (opts.serializeShadowRoot && node.shadowRoot != null) {
|
|
16110
16089
|
output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
|
|
16111
|
-
|
|
16090
|
+
serializeToHtml(node.shadowRoot, opts, output, true);
|
|
16112
16091
|
output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
|
|
16113
16092
|
if (opts.newLines && (node.childNodes.length === 0 || node.childNodes.length === 1 && node.childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = node.childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
|
|
16114
|
-
|
|
16093
|
+
output.text.push("\n");
|
|
16115
16094
|
output.currentLineWidth = 0;
|
|
16116
16095
|
for (let i = 0; i < output.indent; i++) {
|
|
16117
|
-
|
|
16096
|
+
output.text.push(" ");
|
|
16118
16097
|
}
|
|
16119
16098
|
output.currentLineWidth += output.indent;
|
|
16120
16099
|
}
|
|
16121
16100
|
}
|
|
16122
16101
|
if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) {
|
|
16123
|
-
const tag = tagName === shadowRootTag ? "template" : tagName;
|
|
16124
16102
|
const childNodes = tagName === "template" ? node.content.childNodes : node.childNodes;
|
|
16125
16103
|
const childNodeLength = childNodes.length;
|
|
16126
16104
|
if (childNodeLength > 0) {
|
|
@@ -16131,17 +16109,17 @@ style="${cssText}">`;
|
|
|
16131
16109
|
output.indent = output.indent + ((_h = opts.indentSpaces) != null ? _h : 0);
|
|
16132
16110
|
}
|
|
16133
16111
|
for (let i = 0; i < childNodeLength; i++) {
|
|
16134
|
-
|
|
16112
|
+
serializeToHtml(childNodes[i], opts, output, false);
|
|
16135
16113
|
}
|
|
16136
16114
|
if (ignoreTag === false) {
|
|
16137
16115
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16138
|
-
|
|
16116
|
+
output.text.push("\n");
|
|
16139
16117
|
output.currentLineWidth = 0;
|
|
16140
16118
|
}
|
|
16141
16119
|
if (((_i = opts.indentSpaces) != null ? _i : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16142
16120
|
output.indent = output.indent - ((_j = opts.indentSpaces) != null ? _j : 0);
|
|
16143
16121
|
for (let i = 0; i < output.indent; i++) {
|
|
16144
|
-
|
|
16122
|
+
output.text.push(" ");
|
|
16145
16123
|
}
|
|
16146
16124
|
output.currentLineWidth += output.indent;
|
|
16147
16125
|
}
|
|
@@ -16149,13 +16127,13 @@ style="${cssText}">`;
|
|
|
16149
16127
|
}
|
|
16150
16128
|
}
|
|
16151
16129
|
if (ignoreTag === false) {
|
|
16152
|
-
|
|
16153
|
-
output.currentLineWidth +=
|
|
16130
|
+
output.text.push("</" + tagName + ">");
|
|
16131
|
+
output.currentLineWidth += tagName.length + 3;
|
|
16154
16132
|
}
|
|
16155
16133
|
}
|
|
16156
16134
|
}
|
|
16157
16135
|
if (((_k = opts.approximateLineWidth) != null ? _k : 0) > 0 && STRUCTURE_ELEMENTS.has(tagName)) {
|
|
16158
|
-
|
|
16136
|
+
output.text.push("\n");
|
|
16159
16137
|
output.currentLineWidth = 0;
|
|
16160
16138
|
}
|
|
16161
16139
|
if (tagName === "body") {
|
|
@@ -16167,27 +16145,27 @@ style="${cssText}">`;
|
|
|
16167
16145
|
const trimmedTextContent = textContent.trim();
|
|
16168
16146
|
if (trimmedTextContent === "") {
|
|
16169
16147
|
if (isWithinWhitespaceSensitive(node)) {
|
|
16170
|
-
|
|
16148
|
+
output.text.push(textContent);
|
|
16171
16149
|
output.currentLineWidth += textContent.length;
|
|
16172
16150
|
} else if (((_l = opts.approximateLineWidth) != null ? _l : 0) > 0 && !output.isWithinBody) {
|
|
16173
16151
|
} else if (!opts.prettyHtml) {
|
|
16174
16152
|
output.currentLineWidth += 1;
|
|
16175
16153
|
if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth > opts.approximateLineWidth) {
|
|
16176
|
-
|
|
16154
|
+
output.text.push("\n");
|
|
16177
16155
|
output.currentLineWidth = 0;
|
|
16178
16156
|
} else {
|
|
16179
|
-
|
|
16157
|
+
output.text.push(" ");
|
|
16180
16158
|
}
|
|
16181
16159
|
}
|
|
16182
16160
|
} else {
|
|
16183
16161
|
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_m = opts.indentSpaces) != null ? _m : 0) > 0 || opts.prettyHtml ? isWithinWhitespaceSensitive(node) : false;
|
|
16184
16162
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16185
|
-
|
|
16163
|
+
output.text.push("\n");
|
|
16186
16164
|
output.currentLineWidth = 0;
|
|
16187
16165
|
}
|
|
16188
16166
|
if (((_n = opts.indentSpaces) != null ? _n : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16189
16167
|
for (let i = 0; i < output.indent; i++) {
|
|
16190
|
-
|
|
16168
|
+
output.text.push(" ");
|
|
16191
16169
|
}
|
|
16192
16170
|
output.currentLineWidth += output.indent;
|
|
16193
16171
|
}
|
|
@@ -16196,15 +16174,15 @@ style="${cssText}">`;
|
|
|
16196
16174
|
const parentTagName = node.parentNode != null && node.parentNode.nodeType === 1 /* ELEMENT_NODE */ ? node.parentNode.nodeName : null;
|
|
16197
16175
|
if (typeof parentTagName === "string" && NON_ESCAPABLE_CONTENT.has(parentTagName)) {
|
|
16198
16176
|
if (isWithinWhitespaceSensitive(node)) {
|
|
16199
|
-
|
|
16177
|
+
output.text.push(textContent);
|
|
16200
16178
|
} else {
|
|
16201
|
-
|
|
16179
|
+
output.text.push(trimmedTextContent);
|
|
16202
16180
|
textContentLength = trimmedTextContent.length;
|
|
16203
16181
|
}
|
|
16204
16182
|
output.currentLineWidth += textContentLength;
|
|
16205
16183
|
} else {
|
|
16206
16184
|
if (opts.prettyHtml && !isWithinWhitespaceSensitiveNode) {
|
|
16207
|
-
|
|
16185
|
+
output.text.push(escapeString(textContent.replace(/\s\s+/g, " ").trim(), false));
|
|
16208
16186
|
output.currentLineWidth += textContentLength;
|
|
16209
16187
|
} else {
|
|
16210
16188
|
if (isWithinWhitespaceSensitive(node)) {
|
|
@@ -16226,7 +16204,7 @@ style="${cssText}">`;
|
|
|
16226
16204
|
}
|
|
16227
16205
|
output.currentLineWidth += textContentLength;
|
|
16228
16206
|
}
|
|
16229
|
-
|
|
16207
|
+
output.text.push(escapeString(textContent, false));
|
|
16230
16208
|
}
|
|
16231
16209
|
}
|
|
16232
16210
|
}
|
|
@@ -16234,27 +16212,27 @@ style="${cssText}">`;
|
|
|
16234
16212
|
}
|
|
16235
16213
|
} else if (node.nodeType === 8 /* COMMENT_NODE */) {
|
|
16236
16214
|
const nodeValue = node.nodeValue;
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16215
|
+
if (opts.removeHtmlComments) {
|
|
16216
|
+
const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
|
|
16217
|
+
if (!isHydrateAnnotation) {
|
|
16218
|
+
return;
|
|
16219
|
+
}
|
|
16240
16220
|
}
|
|
16241
16221
|
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_o = opts.indentSpaces) != null ? _o : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
|
|
16242
16222
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16243
|
-
|
|
16223
|
+
output.text.push("\n");
|
|
16244
16224
|
output.currentLineWidth = 0;
|
|
16245
16225
|
}
|
|
16246
16226
|
if (((_p = opts.indentSpaces) != null ? _p : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16247
16227
|
for (let i = 0; i < output.indent; i++) {
|
|
16248
|
-
|
|
16228
|
+
output.text.push(" ");
|
|
16249
16229
|
}
|
|
16250
16230
|
output.currentLineWidth += output.indent;
|
|
16251
16231
|
}
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
output.currentLineWidth += nodeValue.length + 7;
|
|
16255
|
-
}
|
|
16232
|
+
output.text.push("<!--" + nodeValue + "-->");
|
|
16233
|
+
output.currentLineWidth += nodeValue.length + 7;
|
|
16256
16234
|
} else if (node.nodeType === 10 /* DOCUMENT_TYPE_NODE */) {
|
|
16257
|
-
|
|
16235
|
+
output.text.push("<!doctype html>");
|
|
16258
16236
|
}
|
|
16259
16237
|
}
|
|
16260
16238
|
var AMP_REGEX = /&/g;
|
|
@@ -16279,7 +16257,7 @@ function escapeString(str, attrMode) {
|
|
|
16279
16257
|
}
|
|
16280
16258
|
function isWithinWhitespaceSensitive(node) {
|
|
16281
16259
|
let _node = node;
|
|
16282
|
-
while (_node
|
|
16260
|
+
while (_node != null) {
|
|
16283
16261
|
if (WHITESPACE_SENSITIVE.has(_node.nodeName)) {
|
|
16284
16262
|
return true;
|
|
16285
16263
|
}
|
|
@@ -16595,10 +16573,6 @@ Testing components with ElementInternals is fully supported in e2e tests.`
|
|
|
16595
16573
|
get shadowRoot() {
|
|
16596
16574
|
return this.__shadowRoot || null;
|
|
16597
16575
|
}
|
|
16598
|
-
/**
|
|
16599
|
-
* Set shadow root for element
|
|
16600
|
-
* @param shadowRoot - ShadowRoot to set
|
|
16601
|
-
*/
|
|
16602
16576
|
set shadowRoot(shadowRoot) {
|
|
16603
16577
|
if (shadowRoot != null) {
|
|
16604
16578
|
shadowRoot.host = this;
|
|
@@ -18385,16 +18359,14 @@ var WINDOW_PROPS = [
|
|
|
18385
18359
|
];
|
|
18386
18360
|
var GLOBAL_CONSTRUCTORS = [
|
|
18387
18361
|
["CustomEvent", MockCustomEvent],
|
|
18388
|
-
["DocumentFragment", MockDocumentFragment],
|
|
18389
|
-
["DOMParser", MockDOMParser],
|
|
18390
18362
|
["Event", MockEvent],
|
|
18391
|
-
["FocusEvent", MockFocusEvent],
|
|
18392
18363
|
["Headers", MockHeaders],
|
|
18364
|
+
["FocusEvent", MockFocusEvent],
|
|
18393
18365
|
["KeyboardEvent", MockKeyboardEvent],
|
|
18394
18366
|
["MouseEvent", MockMouseEvent],
|
|
18395
18367
|
["Request", MockRequest],
|
|
18396
18368
|
["Response", MockResponse],
|
|
18397
|
-
["
|
|
18369
|
+
["DOMParser", MockDOMParser],
|
|
18398
18370
|
["HTMLAnchorElement", MockAnchorElement],
|
|
18399
18371
|
["HTMLBaseElement", MockBaseElement],
|
|
18400
18372
|
["HTMLButtonElement", MockButtonElement],
|
|
@@ -18605,7 +18577,6 @@ var nativeClearTimeout = clearTimeout;
|
|
|
18605
18577
|
var nativeSetInterval = setInterval;
|
|
18606
18578
|
var nativeSetTimeout = setTimeout;
|
|
18607
18579
|
var nativeURL = URL;
|
|
18608
|
-
var nativeWindow = globalThis.window;
|
|
18609
18580
|
var MockWindow = class {
|
|
18610
18581
|
constructor(html = null) {
|
|
18611
18582
|
if (html !== false) {
|
|
@@ -18632,10 +18603,10 @@ var MockWindow = class {
|
|
|
18632
18603
|
blur() {
|
|
18633
18604
|
}
|
|
18634
18605
|
cancelAnimationFrame(id) {
|
|
18635
|
-
this.__clearTimeout
|
|
18606
|
+
this.__clearTimeout(id);
|
|
18636
18607
|
}
|
|
18637
18608
|
cancelIdleCallback(id) {
|
|
18638
|
-
this.__clearTimeout
|
|
18609
|
+
this.__clearTimeout(id);
|
|
18639
18610
|
}
|
|
18640
18611
|
get CharacterData() {
|
|
18641
18612
|
if (this.__charDataCstr == null) {
|
|
@@ -18653,10 +18624,10 @@ var MockWindow = class {
|
|
|
18653
18624
|
this.__charDataCstr = charDataCstr;
|
|
18654
18625
|
}
|
|
18655
18626
|
clearInterval(id) {
|
|
18656
|
-
this.__clearInterval
|
|
18627
|
+
this.__clearInterval(id);
|
|
18657
18628
|
}
|
|
18658
18629
|
clearTimeout(id) {
|
|
18659
|
-
this.__clearTimeout
|
|
18630
|
+
this.__clearTimeout(id);
|
|
18660
18631
|
}
|
|
18661
18632
|
close() {
|
|
18662
18633
|
resetWindow(this);
|
|
@@ -18956,24 +18927,20 @@ var MockWindow = class {
|
|
|
18956
18927
|
}
|
|
18957
18928
|
return intervalId;
|
|
18958
18929
|
}
|
|
18959
|
-
const timeoutId = this.__setTimeout
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
} else {
|
|
18970
|
-
console.error(e);
|
|
18971
|
-
}
|
|
18930
|
+
const timeoutId = this.__setTimeout(() => {
|
|
18931
|
+
if (this.__timeouts) {
|
|
18932
|
+
this.__timeouts.delete(timeoutId);
|
|
18933
|
+
try {
|
|
18934
|
+
callback(...args);
|
|
18935
|
+
} catch (e) {
|
|
18936
|
+
if (this.console) {
|
|
18937
|
+
this.console.error(e);
|
|
18938
|
+
} else {
|
|
18939
|
+
console.error(e);
|
|
18972
18940
|
}
|
|
18973
18941
|
}
|
|
18974
|
-
}
|
|
18975
|
-
|
|
18976
|
-
);
|
|
18942
|
+
}
|
|
18943
|
+
}, ms);
|
|
18977
18944
|
if (this.__timeouts) {
|
|
18978
18945
|
this.__timeouts.add(timeoutId);
|
|
18979
18946
|
}
|
|
@@ -18984,24 +18951,20 @@ var MockWindow = class {
|
|
|
18984
18951
|
this.__timeouts = /* @__PURE__ */ new Set();
|
|
18985
18952
|
}
|
|
18986
18953
|
ms = Math.min(ms, this.__maxTimeout);
|
|
18987
|
-
const timeoutId = this.__setTimeout
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
} else {
|
|
18998
|
-
console.error(e);
|
|
18999
|
-
}
|
|
18954
|
+
const timeoutId = this.__setTimeout(() => {
|
|
18955
|
+
if (this.__timeouts) {
|
|
18956
|
+
this.__timeouts.delete(timeoutId);
|
|
18957
|
+
try {
|
|
18958
|
+
callback(...args);
|
|
18959
|
+
} catch (e) {
|
|
18960
|
+
if (this.console) {
|
|
18961
|
+
this.console.error(e);
|
|
18962
|
+
} else {
|
|
18963
|
+
console.error(e);
|
|
19000
18964
|
}
|
|
19001
18965
|
}
|
|
19002
|
-
}
|
|
19003
|
-
|
|
19004
|
-
);
|
|
18966
|
+
}
|
|
18967
|
+
}, ms);
|
|
19005
18968
|
if (this.__timeouts) {
|
|
19006
18969
|
this.__timeouts.add(timeoutId);
|
|
19007
18970
|
}
|
|
@@ -19576,6 +19539,7 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
19576
19539
|
|
|
19577
19540
|
// src/utils/helpers.ts
|
|
19578
19541
|
var isString = (v) => typeof v === "string";
|
|
19542
|
+
var isPromise = (v) => !!v && (typeof v === "object" || typeof v === "function") && typeof v.then === "function";
|
|
19579
19543
|
|
|
19580
19544
|
// src/utils/message-utils.ts
|
|
19581
19545
|
var catchError = (diagnostics, err2, msg) => {
|
|
@@ -19666,7 +19630,6 @@ var unwrapErr = (result) => {
|
|
|
19666
19630
|
|
|
19667
19631
|
// src/compiler/html/canonical-link.ts
|
|
19668
19632
|
var updateCanonicalLink = (doc, href) => {
|
|
19669
|
-
var _a2;
|
|
19670
19633
|
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
19671
19634
|
if (typeof href === "string") {
|
|
19672
19635
|
if (canonicalLinkElm == null) {
|
|
@@ -19679,7 +19642,7 @@ var updateCanonicalLink = (doc, href) => {
|
|
|
19679
19642
|
if (canonicalLinkElm != null) {
|
|
19680
19643
|
const existingHref = canonicalLinkElm.getAttribute("href");
|
|
19681
19644
|
if (!existingHref) {
|
|
19682
|
-
|
|
19645
|
+
canonicalLinkElm.parentNode.removeChild(canonicalLinkElm);
|
|
19683
19646
|
}
|
|
19684
19647
|
}
|
|
19685
19648
|
}
|
|
@@ -20713,10 +20676,10 @@ function renderBuildDiagnostic(results, level, header, msg) {
|
|
|
20713
20676
|
return diagnostic;
|
|
20714
20677
|
}
|
|
20715
20678
|
function renderBuildError(results, msg) {
|
|
20716
|
-
return renderBuildDiagnostic(results, "error", "Hydrate Error", msg
|
|
20679
|
+
return renderBuildDiagnostic(results, "error", "Hydrate Error", msg);
|
|
20717
20680
|
}
|
|
20718
20681
|
function renderCatchError(results, err2) {
|
|
20719
|
-
const diagnostic = renderBuildError(results);
|
|
20682
|
+
const diagnostic = renderBuildError(results, null);
|
|
20720
20683
|
if (err2 != null) {
|
|
20721
20684
|
if (err2.stack != null) {
|
|
20722
20685
|
diagnostic.messageText = err2.stack.toString();
|
|
@@ -20778,11 +20741,10 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
20778
20741
|
|
|
20779
20742
|
// src/hydrate/runner/window-initialize.ts
|
|
20780
20743
|
function initializeWindow(win, doc, opts, results) {
|
|
20781
|
-
|
|
20782
|
-
|
|
20783
|
-
|
|
20784
|
-
|
|
20785
|
-
}
|
|
20744
|
+
try {
|
|
20745
|
+
win.location.href = opts.url;
|
|
20746
|
+
} catch (e) {
|
|
20747
|
+
renderCatchError(results, e);
|
|
20786
20748
|
}
|
|
20787
20749
|
if (typeof opts.userAgent === "string") {
|
|
20788
20750
|
try {
|
|
@@ -20832,99 +20794,134 @@ function initializeWindow(win, doc, opts, results) {
|
|
|
20832
20794
|
}
|
|
20833
20795
|
|
|
20834
20796
|
// src/hydrate/runner/render.ts
|
|
20835
|
-
|
|
20836
|
-
};
|
|
20837
|
-
function streamToString(html, option) {
|
|
20838
|
-
return renderToString(html, option, true);
|
|
20839
|
-
}
|
|
20840
|
-
function renderToString(html, options, asStream) {
|
|
20797
|
+
function renderToString(html, options) {
|
|
20841
20798
|
const opts = normalizeHydrateOptions(options);
|
|
20842
20799
|
opts.serializeToHtml = true;
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
|
|
20846
|
-
|
|
20847
|
-
|
|
20848
|
-
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
20853
|
-
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
20858
|
-
|
|
20859
|
-
|
|
20860
|
-
|
|
20861
|
-
return render(win, opts, results).then(() => results);
|
|
20800
|
+
return new Promise((resolve) => {
|
|
20801
|
+
let win;
|
|
20802
|
+
const results = generateHydrateResults(opts);
|
|
20803
|
+
if (hasError(results.diagnostics)) {
|
|
20804
|
+
resolve(results);
|
|
20805
|
+
} else if (typeof html === "string") {
|
|
20806
|
+
try {
|
|
20807
|
+
opts.destroyWindow = true;
|
|
20808
|
+
opts.destroyDocument = true;
|
|
20809
|
+
win = new MockWindow(html);
|
|
20810
|
+
render(win, opts, results, resolve);
|
|
20811
|
+
} catch (e) {
|
|
20812
|
+
if (win && win.close) {
|
|
20813
|
+
win.close();
|
|
20814
|
+
}
|
|
20815
|
+
win = null;
|
|
20816
|
+
renderCatchError(results, e);
|
|
20817
|
+
resolve(results);
|
|
20862
20818
|
}
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20866
|
-
win
|
|
20819
|
+
} else if (isValidDocument(html)) {
|
|
20820
|
+
try {
|
|
20821
|
+
opts.destroyDocument = false;
|
|
20822
|
+
win = patchDomImplementation(html, opts);
|
|
20823
|
+
render(win, opts, results, resolve);
|
|
20824
|
+
} catch (e) {
|
|
20825
|
+
if (win && win.close) {
|
|
20826
|
+
win.close();
|
|
20827
|
+
}
|
|
20828
|
+
win = null;
|
|
20829
|
+
renderCatchError(results, e);
|
|
20830
|
+
resolve(results);
|
|
20867
20831
|
}
|
|
20868
|
-
|
|
20869
|
-
|
|
20870
|
-
|
|
20832
|
+
} else {
|
|
20833
|
+
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
20834
|
+
resolve(results);
|
|
20871
20835
|
}
|
|
20872
|
-
}
|
|
20873
|
-
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20836
|
+
});
|
|
20837
|
+
}
|
|
20838
|
+
function hydrateDocument(doc, options) {
|
|
20839
|
+
const opts = normalizeHydrateOptions(options);
|
|
20840
|
+
opts.serializeToHtml = false;
|
|
20841
|
+
return new Promise((resolve) => {
|
|
20842
|
+
let win;
|
|
20843
|
+
const results = generateHydrateResults(opts);
|
|
20844
|
+
if (hasError(results.diagnostics)) {
|
|
20845
|
+
resolve(results);
|
|
20846
|
+
} else if (typeof doc === "string") {
|
|
20847
|
+
try {
|
|
20848
|
+
opts.destroyWindow = true;
|
|
20849
|
+
opts.destroyDocument = true;
|
|
20850
|
+
win = new MockWindow(doc);
|
|
20851
|
+
render(win, opts, results, resolve);
|
|
20852
|
+
} catch (e) {
|
|
20853
|
+
if (win && win.close) {
|
|
20854
|
+
win.close();
|
|
20855
|
+
}
|
|
20856
|
+
win = null;
|
|
20857
|
+
renderCatchError(results, e);
|
|
20858
|
+
resolve(results);
|
|
20879
20859
|
}
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
win
|
|
20860
|
+
} else if (isValidDocument(doc)) {
|
|
20861
|
+
try {
|
|
20862
|
+
opts.destroyDocument = false;
|
|
20863
|
+
win = patchDomImplementation(doc, opts);
|
|
20864
|
+
render(win, opts, results, resolve);
|
|
20865
|
+
} catch (e) {
|
|
20866
|
+
if (win && win.close) {
|
|
20867
|
+
win.close();
|
|
20868
|
+
}
|
|
20869
|
+
win = null;
|
|
20870
|
+
renderCatchError(results, e);
|
|
20871
|
+
resolve(results);
|
|
20884
20872
|
}
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20873
|
+
} else {
|
|
20874
|
+
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
20875
|
+
resolve(results);
|
|
20888
20876
|
}
|
|
20889
|
-
}
|
|
20890
|
-
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
20891
|
-
return Promise.resolve(results);
|
|
20877
|
+
});
|
|
20892
20878
|
}
|
|
20893
|
-
|
|
20894
|
-
if (
|
|
20879
|
+
function render(win, opts, results, resolve) {
|
|
20880
|
+
if (!process.__stencilErrors) {
|
|
20895
20881
|
process.__stencilErrors = true;
|
|
20896
20882
|
process.on("unhandledRejection", (e) => {
|
|
20897
20883
|
console.log("unhandledRejection", e);
|
|
20898
20884
|
});
|
|
20899
20885
|
}
|
|
20900
20886
|
initializeWindow(win, win.document, opts, results);
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
-
|
|
20887
|
+
if (typeof opts.beforeHydrate === "function") {
|
|
20888
|
+
try {
|
|
20889
|
+
const rtn = opts.beforeHydrate(win.document);
|
|
20890
|
+
if (isPromise(rtn)) {
|
|
20891
|
+
rtn.then(() => {
|
|
20892
|
+
hydrateFactory(win, opts, results, afterHydrate, resolve);
|
|
20893
|
+
});
|
|
20894
|
+
} else {
|
|
20895
|
+
hydrateFactory(win, opts, results, afterHydrate, resolve);
|
|
20896
|
+
}
|
|
20897
|
+
} catch (e) {
|
|
20898
|
+
renderCatchError(results, e);
|
|
20899
|
+
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20900
|
+
}
|
|
20901
|
+
} else {
|
|
20902
|
+
hydrateFactory(win, opts, results, afterHydrate, resolve);
|
|
20914
20903
|
}
|
|
20915
|
-
return stream.Readable.from(processRender());
|
|
20916
20904
|
}
|
|
20917
|
-
|
|
20918
|
-
|
|
20919
|
-
|
|
20920
|
-
|
|
20921
|
-
|
|
20922
|
-
|
|
20923
|
-
|
|
20924
|
-
|
|
20905
|
+
function afterHydrate(win, opts, results, resolve) {
|
|
20906
|
+
if (typeof opts.afterHydrate === "function") {
|
|
20907
|
+
try {
|
|
20908
|
+
const rtn = opts.afterHydrate(win.document);
|
|
20909
|
+
if (isPromise(rtn)) {
|
|
20910
|
+
rtn.then(() => {
|
|
20911
|
+
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20912
|
+
});
|
|
20913
|
+
} else {
|
|
20914
|
+
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20915
|
+
}
|
|
20916
|
+
} catch (e) {
|
|
20917
|
+
renderCatchError(results, e);
|
|
20918
|
+
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20919
|
+
}
|
|
20920
|
+
} else {
|
|
20921
|
+
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20925
20922
|
}
|
|
20926
20923
|
}
|
|
20927
|
-
function finalizeHydrate(win, doc, opts, results) {
|
|
20924
|
+
function finalizeHydrate(win, doc, opts, results, resolve) {
|
|
20928
20925
|
try {
|
|
20929
20926
|
inspectElement(results, doc.documentElement, 0);
|
|
20930
20927
|
if (opts.removeUnusedStyles !== false) {
|
|
@@ -20976,24 +20973,20 @@ function finalizeHydrate(win, doc, opts, results) {
|
|
|
20976
20973
|
} catch (e) {
|
|
20977
20974
|
renderCatchError(results, e);
|
|
20978
20975
|
}
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
}
|
|
20991
|
-
if (win.close) {
|
|
20992
|
-
win.close();
|
|
20976
|
+
if (opts.destroyWindow) {
|
|
20977
|
+
try {
|
|
20978
|
+
if (!opts.destroyDocument) {
|
|
20979
|
+
win.document = null;
|
|
20980
|
+
doc.defaultView = null;
|
|
20981
|
+
}
|
|
20982
|
+
if (win.close) {
|
|
20983
|
+
win.close();
|
|
20984
|
+
}
|
|
20985
|
+
} catch (e) {
|
|
20986
|
+
renderCatchError(results, e);
|
|
20993
20987
|
}
|
|
20994
|
-
} catch (e) {
|
|
20995
|
-
renderCatchError(results, e);
|
|
20996
20988
|
}
|
|
20989
|
+
resolve(results);
|
|
20997
20990
|
}
|
|
20998
20991
|
function serializeDocumentToString(doc, opts) {
|
|
20999
20992
|
return serializeNodeToHtml(doc, {
|
|
@@ -21004,8 +20997,7 @@ function serializeDocumentToString(doc, opts) {
|
|
|
21004
20997
|
removeBooleanAttributeQuotes: opts.removeBooleanAttributeQuotes,
|
|
21005
20998
|
removeEmptyAttributes: opts.removeEmptyAttributes,
|
|
21006
20999
|
removeHtmlComments: opts.removeHtmlComments,
|
|
21007
|
-
serializeShadowRoot:
|
|
21008
|
-
fullDocument: opts.fullDocument
|
|
21000
|
+
serializeShadowRoot: false
|
|
21009
21001
|
});
|
|
21010
21002
|
}
|
|
21011
21003
|
function isValidDocument(doc) {
|
|
@@ -21026,4 +21018,3 @@ exports.createWindowFromHtml = createWindowFromHtml;
|
|
|
21026
21018
|
exports.hydrateDocument = hydrateDocument;
|
|
21027
21019
|
exports.renderToString = renderToString;
|
|
21028
21020
|
exports.serializeDocumentToString = serializeDocumentToString;
|
|
21029
|
-
exports.streamToString = streamToString;
|