@postnord/pn-marketweb-components 2.8.4 → 2.8.5
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/cjs/{index-d6f2e2f9.js → index-6d18c5e9.js} +16 -8
- package/cjs/{index-7ebb05d7.js → index-820d92a8.js} +1 -1
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-1f005e0d.js → pn-find-price-store-e05a9145.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-0b544d1e.js → pn-find-service-and-price-store-3ffe0634.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
- package/cjs/pn-line-shape.cjs.entry.js +1 -1
- package/cjs/pn-link-list.cjs.entry.js +1 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-a31c1d1e.js → pn-mainnav-store-96e66f69.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
- package/cjs/{pn-marketweb-siteheader-store-a939014c.js → pn-marketweb-siteheader-store-ccf82b09.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-media-block.cjs.entry.js +180 -0
- package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-play-on-scroll.cjs.entry.js +10 -8
- package/cjs/pn-product-card_3.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
- package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
- package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
- package/cjs/{pn-profile-modal-store-2525eee2.js → pn-profile-modal-store-14bc937f.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +4 -3
- package/cjs/pn-share-item.cjs.entry.js +1 -1
- package/cjs/pn-share.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
- package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
- package/cjs/{pn-sidenav-store-18b8c3ff.js → pn-sidenav-store-d3f7bdfa.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +2 -2
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.css +0 -11
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +46 -6
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +15 -0
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js +20 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +4 -0
- package/collection/components/media/pn-media-block/media-block.stories.js +258 -0
- package/collection/components/media/pn-media-block/pn-media-block.css +283 -0
- package/collection/components/media/pn-media-block/pn-media-block.js +481 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/pn-media-block.d.ts +11 -0
- package/components/pn-media-block.js +232 -0
- package/components/pn-play-on-scroll.js +1 -97
- package/components/pn-play-on-scroll2.js +103 -0
- package/components/pn-teaser-card.js +1 -1
- package/components/pn-video-overlay2.js +4 -2
- package/esm/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
- package/esm/{index-be8c3299.js → index-70664d8e.js} +16 -8
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +1 -1
- package/esm/pn-animated-tile.entry.js +1 -1
- package/esm/pn-app-banner.entry.js +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chart.entry.js +1 -1
- package/esm/pn-charts-card.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- package/esm/pn-cta-block.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-link-list.entry.js +1 -1
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/{pn-marketweb-siteheader-store-aba9e86a.js → pn-marketweb-siteheader-store-de85e557.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-media-block.entry.js +176 -0
- package/esm/pn-multi-formfield.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-play-on-scroll.entry.js +10 -8
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +2 -2
- package/esm/pn-product-pricelist.entry.js +3 -3
- package/esm/pn-product-tile-info_2.entry.js +1 -1
- package/esm/pn-product-tile.entry.js +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm/pn-profile-modal-profile.entry.js +3 -3
- package/esm/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +2 -2
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +4 -3
- package/esm/pn-share-item.entry.js +1 -1
- package/esm/pn-share.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +2 -2
- package/esm/pn-titletag.entry.js +1 -1
- package/esm-es5/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
- package/esm-es5/{index-be8c3299.js → index-70664d8e.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-address-autofill.entry.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -1
- package/esm-es5/pn-app-banner.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +1 -1
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-cta-block.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-date-and-time.entry.js +1 -1
- package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-link-list.entry.js +1 -1
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-de85e557.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-media-block.entry.js +1 -0
- package/esm-es5/pn-multi-formfield.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm-es5/pn-multiple-input.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-play-on-scroll.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-scroll_2.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -1
- package/esm-es5/pn-share.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_3.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-4572f290.entry.js → p-0010aad7.entry.js} +1 -1
- package/pn-market-web-components/{p-28ebaf1d.system.entry.js → p-04b382ae.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c633a40e.entry.js → p-052508de.entry.js} +1 -1
- package/pn-market-web-components/{p-eb9a3c2d.system.entry.js → p-05f643e4.system.entry.js} +1 -1
- package/pn-market-web-components/{p-583df48e.system.entry.js → p-05f99c22.system.entry.js} +1 -1
- package/pn-market-web-components/{p-49896e47.system.entry.js → p-08fa8d4a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9d0074fb.entry.js → p-0ad6efd1.entry.js} +1 -1
- package/pn-market-web-components/{p-b8266eeb.entry.js → p-0b071480.entry.js} +1 -1
- package/pn-market-web-components/{p-b49d0553.system.entry.js → p-1165f7d0.system.entry.js} +1 -1
- package/pn-market-web-components/p-136f5395.entry.js +1 -0
- package/pn-market-web-components/{p-e5f99384.system.js → p-14a189d3.system.js} +1 -1
- package/pn-market-web-components/{p-550b2b29.system.entry.js → p-154e2826.system.entry.js} +1 -1
- package/pn-market-web-components/p-17e61235.js +1 -0
- package/pn-market-web-components/{p-103c054e.entry.js → p-191edfa8.entry.js} +1 -1
- package/pn-market-web-components/{p-3d0c3caa.system.entry.js → p-19be5eed.system.entry.js} +1 -1
- package/pn-market-web-components/{p-609f1695.system.entry.js → p-1a4194d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03cc4a3b.entry.js → p-1aa1ccd2.entry.js} +1 -1
- package/pn-market-web-components/{p-b2fc3594.entry.js → p-1d69c613.entry.js} +1 -1
- package/pn-market-web-components/{p-47536b9e.system.entry.js → p-1dafb003.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8c7787eb.entry.js → p-1f2d226e.entry.js} +1 -1
- package/pn-market-web-components/{p-35b5ea63.system.entry.js → p-1fbdecfb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5840be2e.entry.js → p-20a08e7a.entry.js} +1 -1
- package/pn-market-web-components/{p-944d00e3.system.entry.js → p-2248b584.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c1ec42a6.entry.js → p-225e581e.entry.js} +1 -1
- package/pn-market-web-components/{p-e5c7627c.system.entry.js → p-23357475.system.entry.js} +1 -1
- package/pn-market-web-components/{p-865ee8f6.entry.js → p-260016e2.entry.js} +1 -1
- package/pn-market-web-components/{p-64048a03.entry.js → p-2647f023.entry.js} +1 -1
- package/pn-market-web-components/{p-bf1f69fa.system.entry.js → p-28f745d6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-64691d51.entry.js → p-29d60871.entry.js} +1 -1
- package/pn-market-web-components/{p-29a7c74f.system.entry.js → p-2ac346c8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-83d7a808.entry.js → p-2bc0fbd6.entry.js} +1 -1
- package/pn-market-web-components/{p-eb42a545.entry.js → p-2dca907e.entry.js} +1 -1
- package/pn-market-web-components/{p-6aab92c0.entry.js → p-312ca954.entry.js} +1 -1
- package/pn-market-web-components/{p-592360ba.system.entry.js → p-32528f2e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ba1cce09.system.entry.js → p-3410b18e.system.entry.js} +1 -1
- package/pn-market-web-components/p-35a4aa56.entry.js +1 -0
- package/pn-market-web-components/{p-4b710959.entry.js → p-3a2f44d6.entry.js} +1 -1
- package/pn-market-web-components/{p-666d2bfb.entry.js → p-3a8410c6.entry.js} +1 -1
- package/pn-market-web-components/{p-52637e34.system.entry.js → p-3ab1bf8b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a7371325.entry.js → p-3cc00541.entry.js} +1 -1
- package/pn-market-web-components/{p-2ccbef09.system.entry.js → p-3d2ac1f6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ae453317.entry.js → p-3dad0ce4.entry.js} +1 -1
- package/pn-market-web-components/{p-746a2620.js → p-3f74ef14.js} +1 -1
- package/pn-market-web-components/{p-2e6d5633.entry.js → p-42cde64b.entry.js} +1 -1
- package/pn-market-web-components/{p-2ef39f23.entry.js → p-441c6ecf.entry.js} +1 -1
- package/pn-market-web-components/{p-6aaf35c7.entry.js → p-4905a61d.entry.js} +1 -1
- package/pn-market-web-components/{p-98690006.system.entry.js → p-4a4d1f12.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c6409b81.entry.js → p-4b05a2a7.entry.js} +1 -1
- package/pn-market-web-components/{p-476c4f58.system.entry.js → p-4e5efb81.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fbafd07a.system.entry.js → p-4e9b9584.system.entry.js} +1 -1
- package/pn-market-web-components/{p-087a6e41.system.entry.js → p-4ef22c01.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9db7d43b.system.entry.js → p-51e673f9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eb82c0f8.system.entry.js → p-52c91186.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0f73d268.system.entry.js → p-52df172b.system.entry.js} +1 -1
- package/pn-market-web-components/p-53d7aeb5.js +1 -0
- package/pn-market-web-components/{p-d97d1501.system.entry.js → p-54548525.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1e0fd641.entry.js → p-54ae554a.entry.js} +1 -1
- package/pn-market-web-components/{p-a83c758d.system.entry.js → p-55095fd4.system.entry.js} +1 -1
- package/pn-market-web-components/p-55a12ded.system.entry.js +1 -0
- package/pn-market-web-components/{p-63b48e94.system.entry.js → p-586991f8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-cb9c945d.entry.js → p-5ee67059.entry.js} +1 -1
- package/pn-market-web-components/{p-6a230cb1.js → p-6107c744.js} +1 -1
- package/pn-market-web-components/{p-0f6f212a.system.entry.js → p-62603a41.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b407caff.entry.js → p-68862e73.entry.js} +1 -1
- package/pn-market-web-components/p-69fc1fdb.system.entry.js +1 -0
- package/pn-market-web-components/{p-e62c4259.entry.js → p-6bc810e3.entry.js} +1 -1
- package/pn-market-web-components/{p-a0a92f86.system.js → p-6caaf51b.system.js} +1 -1
- package/pn-market-web-components/{p-f91cee83.entry.js → p-6f07da13.entry.js} +1 -1
- package/pn-market-web-components/{p-c3015b3f.entry.js → p-6fd874c0.entry.js} +1 -1
- package/pn-market-web-components/{p-14ebd1f5.system.entry.js → p-6ff2c262.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4e73bb67.entry.js → p-704058ed.entry.js} +1 -1
- package/pn-market-web-components/{p-4afac628.system.entry.js → p-77db84fd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-027911c8.system.entry.js → p-7b879f2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-cc1b4ca3.entry.js → p-7c167f65.entry.js} +1 -1
- package/pn-market-web-components/{p-39f2c4d3.system.entry.js → p-7c8ad9cc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2974d1e2.entry.js → p-7da9b27b.entry.js} +1 -1
- package/pn-market-web-components/{p-0a3aa74f.entry.js → p-7e3b87bd.entry.js} +1 -1
- package/pn-market-web-components/{p-5e61eb13.entry.js → p-7e4b979c.entry.js} +1 -1
- package/pn-market-web-components/p-812e4d0b.system.entry.js +1 -0
- package/pn-market-web-components/{p-3396f3c8.entry.js → p-820065a3.entry.js} +1 -1
- package/pn-market-web-components/{p-48a38770.system.entry.js → p-83a8af5a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d11f771e.system.entry.js → p-85c52e0c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-825bdb78.system.entry.js → p-85d8ccbd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-463a5975.system.entry.js → p-874d96b9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c3899747.system.entry.js → p-87f9ac84.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f80e46eb.system.entry.js → p-8986f45e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8f28f717.system.entry.js → p-8b42b65a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6125c132.entry.js → p-8bba7ba7.entry.js} +1 -1
- package/pn-market-web-components/{p-54ffd368.system.entry.js → p-8bdad77d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9cfde6aa.entry.js → p-8e142421.entry.js} +1 -1
- package/pn-market-web-components/{p-00d87476.entry.js → p-92ebab4a.entry.js} +1 -1
- package/pn-market-web-components/p-94ce23b4.system.js +1 -0
- package/pn-market-web-components/{p-cd8ae615.entry.js → p-963f55a9.entry.js} +1 -1
- package/pn-market-web-components/{p-fab635c7.entry.js → p-96b7535f.entry.js} +1 -1
- package/pn-market-web-components/{p-6b02dc02.system.js → p-97825032.system.js} +1 -1
- package/pn-market-web-components/{p-69342caf.system.entry.js → p-984a13ac.system.entry.js} +1 -1
- package/pn-market-web-components/p-986ed2b6.system.js +1 -0
- package/pn-market-web-components/{p-9685af07.system.entry.js → p-98bafa28.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e64e95a8.system.entry.js → p-9a6b3f55.system.entry.js} +1 -1
- package/pn-market-web-components/{p-63679401.entry.js → p-9afa3afc.entry.js} +1 -1
- package/pn-market-web-components/{p-b6301b42.entry.js → p-9c22f141.entry.js} +1 -1
- package/pn-market-web-components/{p-d0e65d70.js → p-9dd478d9.js} +2 -2
- package/pn-market-web-components/{p-a8c25cad.system.entry.js → p-9f8c3f1a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e2892448.entry.js → p-a0ac3794.entry.js} +1 -1
- package/pn-market-web-components/{p-43b76595.system.entry.js → p-a21e99fa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a53b3be1.entry.js → p-a2b062a1.entry.js} +1 -1
- package/pn-market-web-components/{p-0b999957.system.entry.js → p-a69bd189.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ed9dd574.entry.js → p-a6cc80f6.entry.js} +1 -1
- package/pn-market-web-components/{p-e13a6bab.system.entry.js → p-a8cab386.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8eb8e8b2.system.entry.js → p-a93f2e9d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2f4aa8c6.entry.js → p-a9930e79.entry.js} +1 -1
- package/pn-market-web-components/{p-595e8f54.system.entry.js → p-aaf31bc1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-67f5cd23.entry.js → p-abcde0d8.entry.js} +1 -1
- package/pn-market-web-components/{p-1998b5b1.entry.js → p-ae33ef56.entry.js} +1 -1
- package/pn-market-web-components/{p-dc91c260.system.entry.js → p-af1af661.system.entry.js} +1 -1
- package/pn-market-web-components/{p-742d27ff.entry.js → p-b14e29f1.entry.js} +1 -1
- package/pn-market-web-components/{p-c1204325.system.entry.js → p-b29adc65.system.entry.js} +1 -1
- package/pn-market-web-components/{p-15fd32d4.entry.js → p-b3871ac2.entry.js} +1 -1
- package/pn-market-web-components/{p-390895ec.system.entry.js → p-b8d4a319.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03d7d79b.js → p-b96dbfea.js} +1 -1
- package/pn-market-web-components/{p-5ac3c73c.system.entry.js → p-ba9c3757.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fba12f1d.entry.js → p-bc645d84.entry.js} +1 -1
- package/pn-market-web-components/{p-cd8185a6.entry.js → p-bfed70cc.entry.js} +1 -1
- package/pn-market-web-components/{p-d6492b8a.entry.js → p-c4ec9a7f.entry.js} +1 -1
- package/pn-market-web-components/{p-42ea5bd1.entry.js → p-c5e35374.entry.js} +1 -1
- package/pn-market-web-components/p-c98ae4d8.js +1 -0
- package/pn-market-web-components/{p-81876fba.entry.js → p-caf88cd1.entry.js} +1 -1
- package/pn-market-web-components/{p-f737524e.system.entry.js → p-ce2f007f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2ef8f47b.entry.js → p-d10b8ae0.entry.js} +1 -1
- package/pn-market-web-components/{p-6259e4f4.system.js → p-d17fb67d.system.js} +2 -2
- package/pn-market-web-components/p-d1eacc9a.entry.js +1 -0
- package/pn-market-web-components/p-d1f90b53.system.entry.js +1 -0
- package/pn-market-web-components/{p-8cb21818.system.entry.js → p-d28011f2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-75e56082.system.entry.js → p-d287cfdf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-dda5e084.system.entry.js → p-d435617c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-05257edc.system.entry.js → p-d762d2eb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-335d95b7.entry.js → p-e0c27b9f.entry.js} +1 -1
- package/pn-market-web-components/{p-345648e8.entry.js → p-e15b72a3.entry.js} +1 -1
- package/pn-market-web-components/{p-48da3826.system.js → p-e2f1add7.system.js} +1 -1
- package/pn-market-web-components/{p-eea5ac80.system.entry.js → p-e356a2cf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7587b935.system.entry.js → p-e96ed1ba.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c02ddf82.js → p-e97ac85f.js} +1 -1
- package/pn-market-web-components/{p-26869f6d.entry.js → p-e9884417.entry.js} +1 -1
- package/pn-market-web-components/{p-9556936e.entry.js → p-ead762ff.entry.js} +1 -1
- package/pn-market-web-components/{p-e76bd03c.system.js → p-eb702bcd.system.js} +1 -1
- package/pn-market-web-components/{p-eaad04e5.system.entry.js → p-ef602321.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ace52b28.entry.js → p-f3dbfe72.entry.js} +1 -1
- package/pn-market-web-components/{p-bb93f102.system.entry.js → p-f3f44a2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fc583d96.entry.js → p-f840e5bb.entry.js} +1 -1
- package/pn-market-web-components/{p-88d22b1c.entry.js → p-fa4c8587.entry.js} +1 -1
- package/pn-market-web-components/{p-e505ebd8.system.entry.js → p-fa666ea0.system.entry.js} +1 -1
- package/pn-market-web-components/{p-11f6fb30.system.js → p-fb84605d.system.js} +1 -1
- package/pn-market-web-components/{p-3ee0f67f.system.entry.js → p-fe358a44.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eba15c54.entry.js → p-fe8172f7.entry.js} +1 -1
- package/pn-market-web-components/{p-94e96fcf.entry.js → p-fec6a09c.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/animation/pn-play-on-scroll/pn-play-on-scroll.d.ts +2 -0
- package/types/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.d.ts +1 -0
- package/types/components/media/pn-media-block/pn-media-block.d.ts +33 -0
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
- package/types/components.d.ts +51 -0
- package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +0 -1
- package/pn-market-web-components/p-0412e417.entry.js +0 -1
- package/pn-market-web-components/p-30571cc1.system.entry.js +0 -1
- package/pn-market-web-components/p-7e6853a7.entry.js +0 -1
- package/pn-market-web-components/p-8bafabe5.js +0 -1
- package/pn-market-web-components/p-8d5a041f.js +0 -1
- package/pn-market-web-components/p-a28fce54.system.js +0 -1
- package/pn-market-web-components/p-bdcedfe9.system.js +0 -1
- package/pn-market-web-components/p-cc5c611e.system.entry.js +0 -1
- package/pn-market-web-components/p-d6893c90.system.entry.js +0 -1
- package/pn-market-web-components/p-eb110830.js +0 -1
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
function userPrefersReducedMotion() {
|
|
3
|
+
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
4
|
+
}
|
|
5
|
+
export class PnmediaBlock {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.handleScroll = () => {
|
|
8
|
+
if (!this.parallaxScroll)
|
|
9
|
+
return;
|
|
10
|
+
const mediaBlockElement = this.block.firstElementChild;
|
|
11
|
+
const scrollTrigger = this.block.querySelector('#scroll-trigger');
|
|
12
|
+
const videoPauseButton = this.block.querySelector('#overlayed-button-pause-video');
|
|
13
|
+
const scrollTriggerTop = scrollTrigger.getBoundingClientRect().top;
|
|
14
|
+
const mediaBlockElementHeight = mediaBlockElement.offsetHeight;
|
|
15
|
+
const scrollPosition = mediaBlockElementHeight - scrollTriggerTop;
|
|
16
|
+
const parallaxSpeedContent = 0.3;
|
|
17
|
+
const parallaxSpeedMedia = 0.2;
|
|
18
|
+
const mediaContainer = this.block.querySelector('.media-block__media-container');
|
|
19
|
+
const content = this.block.querySelector('.media-block__content-container');
|
|
20
|
+
if (mediaContainer != null) {
|
|
21
|
+
// Move the image or video at a slower speed
|
|
22
|
+
mediaContainer.style.transform = `translate(0, ${scrollPosition * (0.1 + parallaxSpeedMedia)}px)`;
|
|
23
|
+
if (videoPauseButton != null) {
|
|
24
|
+
// Move the pause button up
|
|
25
|
+
videoPauseButton.style.transform = `translate(0, ${-scrollPosition * (0.3 + parallaxSpeedMedia)}px)`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (content) {
|
|
29
|
+
// Move the content at a faster speed
|
|
30
|
+
content.style.transform = `translate(0, ${scrollPosition * (0.5 + parallaxSpeedContent)}px)`;
|
|
31
|
+
// Change the opacity based on the scroll position
|
|
32
|
+
const opacity = Math.max(0, 1 - scrollPosition / 600);
|
|
33
|
+
content.style.opacity = `${opacity}`;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
this.blockHeight = null;
|
|
37
|
+
this.imageSrc = null;
|
|
38
|
+
this.imageSrcSmallScreenFormat = undefined;
|
|
39
|
+
this.imageAltText = "";
|
|
40
|
+
this.videoSrc = null;
|
|
41
|
+
this.parallaxScroll = false;
|
|
42
|
+
this.showOverlayLayer = false;
|
|
43
|
+
this.customOverlayBackground = null;
|
|
44
|
+
this.animateOverlayBackground = false;
|
|
45
|
+
this.scrollSnapBlock = false;
|
|
46
|
+
this.fixedBackground = false;
|
|
47
|
+
this.blockHeading = null;
|
|
48
|
+
this.blockHeadingLevel = 2;
|
|
49
|
+
this.blockPreamble = null;
|
|
50
|
+
this.blockLinkText = null;
|
|
51
|
+
this.blockLinkUrl = null;
|
|
52
|
+
this.pnPlayOnScrollObserverOptions = {
|
|
53
|
+
root: document,
|
|
54
|
+
threshold: 1,
|
|
55
|
+
rootMargin: '220px 0px 220px 0px',
|
|
56
|
+
};
|
|
57
|
+
this.calculatedBlockHeight = undefined;
|
|
58
|
+
this.hasButtonSlot = true;
|
|
59
|
+
}
|
|
60
|
+
get blockHeadingLevelChecked() {
|
|
61
|
+
if (this.blockLinkText && this.blockLinkUrl === null) {
|
|
62
|
+
console.warn('blockHeadingLevel is required when blockHeading is set');
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
return this.blockHeadingLevel;
|
|
66
|
+
}
|
|
67
|
+
get hasBlockCta() {
|
|
68
|
+
if (this.blockLinkText && this.blockLinkUrl) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
get hasVideo() {
|
|
74
|
+
if (this.videoSrc !== null && this.videoSrc !== "undefined") {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
get hasImage() {
|
|
80
|
+
if (this.imageSrc !== null && this.imageSrc !== "undefined") {
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
componentWillLoad() {
|
|
86
|
+
this.hasButtonSlot = !!this.block.querySelector('[slot="cta-button"]');
|
|
87
|
+
}
|
|
88
|
+
async componentDidLoad() {
|
|
89
|
+
if (userPrefersReducedMotion()) {
|
|
90
|
+
// Handle the case where the user prefers reduced motion.
|
|
91
|
+
// For example, you might disable parallax scrolling:
|
|
92
|
+
this.parallaxScroll = false;
|
|
93
|
+
}
|
|
94
|
+
const scrollTrigger = document.getElementById('scroll-trigger');
|
|
95
|
+
this.calculatedBlockHeight = this.block.offsetHeight;
|
|
96
|
+
const overlayElement = this.block.querySelector('#mediaBlockOverlay');
|
|
97
|
+
if (this.customOverlayBackground != null || this.customOverlayBackground != "undefined") {
|
|
98
|
+
overlayElement.style.background = `${this.customOverlayBackground}`;
|
|
99
|
+
}
|
|
100
|
+
if (this.parallaxScroll) {
|
|
101
|
+
this.observerScroll = new IntersectionObserver(entries => {
|
|
102
|
+
entries.forEach(entry => {
|
|
103
|
+
if (entry.isIntersecting) {
|
|
104
|
+
window.addEventListener('scroll', this.handleScroll);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
window.removeEventListener('scroll', this.handleScroll);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}, { rootMargin: `0px 0px` });
|
|
111
|
+
this.observerScroll.observe(scrollTrigger);
|
|
112
|
+
}
|
|
113
|
+
;
|
|
114
|
+
if (this.scrollSnapBlock) {
|
|
115
|
+
this.observerSnap = new IntersectionObserver(entries => {
|
|
116
|
+
entries.forEach(entry => {
|
|
117
|
+
if (entry.isIntersecting) {
|
|
118
|
+
// The block is within 100px of the viewport, scroll it into view
|
|
119
|
+
if (this.block instanceof HTMLElement) {
|
|
120
|
+
setTimeout(() => {
|
|
121
|
+
this.block.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
122
|
+
}, 1000); // Adjust the delay as needed
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
console.error('this.block is not a valid HTMLElement');
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}, {
|
|
130
|
+
root: document,
|
|
131
|
+
rootMargin: "100px 0px 100px 0px",
|
|
132
|
+
threshold: 0
|
|
133
|
+
});
|
|
134
|
+
this.observerSnap.observe(scrollTrigger);
|
|
135
|
+
}
|
|
136
|
+
;
|
|
137
|
+
}
|
|
138
|
+
disconnectedCallback() {
|
|
139
|
+
// Clean up the observer and event listener when the component is removed
|
|
140
|
+
if (this.observerScroll) {
|
|
141
|
+
this.observerScroll.disconnect();
|
|
142
|
+
}
|
|
143
|
+
if (this.observerSnap) {
|
|
144
|
+
this.observerSnap.disconnect();
|
|
145
|
+
}
|
|
146
|
+
window.removeEventListener('scroll', this.handleScroll);
|
|
147
|
+
}
|
|
148
|
+
render() {
|
|
149
|
+
const { showOverlayLayer, fixedBackground, blockHeight, scrollSnapBlock, blockHeadingLevelChecked, hasBlockCta, hasVideo, hasImage, animateOverlayBackground } = this;
|
|
150
|
+
const HeadingTag = `h${blockHeadingLevelChecked !== null && blockHeadingLevelChecked !== void 0 ? blockHeadingLevelChecked : 2}`;
|
|
151
|
+
const showCta = hasBlockCta;
|
|
152
|
+
const isVideo = hasVideo;
|
|
153
|
+
const isImage = hasImage;
|
|
154
|
+
const classes = [
|
|
155
|
+
'media-block',
|
|
156
|
+
blockHeight ? `media-block--height-${blockHeight}` : '',
|
|
157
|
+
showOverlayLayer ? 'media-block--with-overlay' : '',
|
|
158
|
+
animateOverlayBackground ? `media-block--animate-overlay-background` : '',
|
|
159
|
+
isVideo ? 'media-block--video' : '',
|
|
160
|
+
scrollSnapBlock ? 'scroll-snap' : 'no-scroll-snap',
|
|
161
|
+
fixedBackground ? 'media-block--fixed-background' : ''
|
|
162
|
+
].join(' ');
|
|
163
|
+
const pnPlayOnScrollObserverOptions = {
|
|
164
|
+
root: this.blockHeight === "100svh" ? document : null,
|
|
165
|
+
threshold: 1,
|
|
166
|
+
rootMargin: '220px 0px 220px 0px',
|
|
167
|
+
};
|
|
168
|
+
return (h("div", { class: classes }, h("div", { class: "media-block__block-container" }, h("div", { class: "media-block__media-container" }, isVideo ? (h("pn-play-on-scroll", { "show-overlay": this.showOverlayLayer, observerOptions: pnPlayOnScrollObserverOptions, "video-src": this.videoSrc })) : isImage ? (h("picture", null, h("source", { media: "(min-width: 1400px)", srcSet: this.imageSrc }), h("source", { media: "(min-width: 1224px)", srcSet: this.imageSrc }), h("source", { media: "(min-width: 1140px)", srcSet: this.imageSrc }), h("source", { media: "(min-width: 1023px)", srcSet: this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc }), h("source", { media: "(min-width: 768px)", srcSet: this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc }), h("source", { media: "(min-width: 500px)", srcSet: this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc }), h("img", { src: this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc, alt: this.imageAltText !== "undefined" ? this.imageAltText : "", role: this.imageAltText !== "undefined" ? "img" : "presentation", "aria-hidden": this.imageAltText !== "undefined" ? "false" : "true" }))) : null), !isVideo && (h("div", { class: "media-block__overlay-filter", id: "mediaBlockOverlay" })), (this.blockHeading || this.blockPreamble) && (h("div", { class: "media-block__content-container" }, this.blockHeading && h(HeadingTag, { class: "media-block__block-heading" }, this.blockHeading), this.blockPreamble && h("p", { class: "media-block__preamble" }, this.blockPreamble), showCta && h("div", { class: "media-block__cta-link" }, h("slot", { name: "cta-button" }))))), h("div", { id: "scroll-trigger" })));
|
|
169
|
+
}
|
|
170
|
+
static get is() { return "pn-media-block"; }
|
|
171
|
+
static get originalStyleUrls() {
|
|
172
|
+
return {
|
|
173
|
+
"$": ["pn-media-block.scss"]
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
static get styleUrls() {
|
|
177
|
+
return {
|
|
178
|
+
"$": ["pn-media-block.css"]
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
static get properties() {
|
|
182
|
+
return {
|
|
183
|
+
"blockHeight": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "string",
|
|
188
|
+
"resolved": "string",
|
|
189
|
+
"references": {}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": false,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": ""
|
|
196
|
+
},
|
|
197
|
+
"attribute": "block-height",
|
|
198
|
+
"reflect": false,
|
|
199
|
+
"defaultValue": "null"
|
|
200
|
+
},
|
|
201
|
+
"imageSrc": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "string",
|
|
206
|
+
"resolved": "string",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": true,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [],
|
|
213
|
+
"text": ""
|
|
214
|
+
},
|
|
215
|
+
"attribute": "image-src",
|
|
216
|
+
"reflect": false,
|
|
217
|
+
"defaultValue": "null"
|
|
218
|
+
},
|
|
219
|
+
"imageSrcSmallScreenFormat": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"mutable": false,
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "string",
|
|
224
|
+
"resolved": "string",
|
|
225
|
+
"references": {}
|
|
226
|
+
},
|
|
227
|
+
"required": false,
|
|
228
|
+
"optional": true,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": ""
|
|
232
|
+
},
|
|
233
|
+
"attribute": "image-src-small-screen-format",
|
|
234
|
+
"reflect": false,
|
|
235
|
+
"defaultValue": "undefined"
|
|
236
|
+
},
|
|
237
|
+
"imageAltText": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"mutable": false,
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "string",
|
|
242
|
+
"resolved": "string",
|
|
243
|
+
"references": {}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": true,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": ""
|
|
250
|
+
},
|
|
251
|
+
"attribute": "image-alt-text",
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"defaultValue": "\"\""
|
|
254
|
+
},
|
|
255
|
+
"videoSrc": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "string",
|
|
260
|
+
"resolved": "string",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": true,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": ""
|
|
268
|
+
},
|
|
269
|
+
"attribute": "video-src",
|
|
270
|
+
"reflect": false,
|
|
271
|
+
"defaultValue": "null"
|
|
272
|
+
},
|
|
273
|
+
"parallaxScroll": {
|
|
274
|
+
"type": "boolean",
|
|
275
|
+
"mutable": false,
|
|
276
|
+
"complexType": {
|
|
277
|
+
"original": "boolean",
|
|
278
|
+
"resolved": "boolean",
|
|
279
|
+
"references": {}
|
|
280
|
+
},
|
|
281
|
+
"required": false,
|
|
282
|
+
"optional": false,
|
|
283
|
+
"docs": {
|
|
284
|
+
"tags": [],
|
|
285
|
+
"text": ""
|
|
286
|
+
},
|
|
287
|
+
"attribute": "parallax-scroll",
|
|
288
|
+
"reflect": false,
|
|
289
|
+
"defaultValue": "false"
|
|
290
|
+
},
|
|
291
|
+
"showOverlayLayer": {
|
|
292
|
+
"type": "boolean",
|
|
293
|
+
"mutable": false,
|
|
294
|
+
"complexType": {
|
|
295
|
+
"original": "boolean",
|
|
296
|
+
"resolved": "boolean",
|
|
297
|
+
"references": {}
|
|
298
|
+
},
|
|
299
|
+
"required": false,
|
|
300
|
+
"optional": false,
|
|
301
|
+
"docs": {
|
|
302
|
+
"tags": [],
|
|
303
|
+
"text": ""
|
|
304
|
+
},
|
|
305
|
+
"attribute": "show-overlay-layer",
|
|
306
|
+
"reflect": false,
|
|
307
|
+
"defaultValue": "false"
|
|
308
|
+
},
|
|
309
|
+
"customOverlayBackground": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "string",
|
|
314
|
+
"resolved": "string",
|
|
315
|
+
"references": {}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": true,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": ""
|
|
322
|
+
},
|
|
323
|
+
"attribute": "custom-overlay-background",
|
|
324
|
+
"reflect": false,
|
|
325
|
+
"defaultValue": "null"
|
|
326
|
+
},
|
|
327
|
+
"animateOverlayBackground": {
|
|
328
|
+
"type": "boolean",
|
|
329
|
+
"mutable": false,
|
|
330
|
+
"complexType": {
|
|
331
|
+
"original": "boolean",
|
|
332
|
+
"resolved": "boolean",
|
|
333
|
+
"references": {}
|
|
334
|
+
},
|
|
335
|
+
"required": false,
|
|
336
|
+
"optional": false,
|
|
337
|
+
"docs": {
|
|
338
|
+
"tags": [],
|
|
339
|
+
"text": ""
|
|
340
|
+
},
|
|
341
|
+
"attribute": "animate-overlay-background",
|
|
342
|
+
"reflect": false,
|
|
343
|
+
"defaultValue": "false"
|
|
344
|
+
},
|
|
345
|
+
"scrollSnapBlock": {
|
|
346
|
+
"type": "boolean",
|
|
347
|
+
"mutable": false,
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "boolean",
|
|
350
|
+
"resolved": "boolean",
|
|
351
|
+
"references": {}
|
|
352
|
+
},
|
|
353
|
+
"required": false,
|
|
354
|
+
"optional": false,
|
|
355
|
+
"docs": {
|
|
356
|
+
"tags": [],
|
|
357
|
+
"text": ""
|
|
358
|
+
},
|
|
359
|
+
"attribute": "scroll-snap-block",
|
|
360
|
+
"reflect": false,
|
|
361
|
+
"defaultValue": "false"
|
|
362
|
+
},
|
|
363
|
+
"fixedBackground": {
|
|
364
|
+
"type": "boolean",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "boolean",
|
|
368
|
+
"resolved": "boolean",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": false,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": ""
|
|
376
|
+
},
|
|
377
|
+
"attribute": "fixed-background",
|
|
378
|
+
"reflect": false,
|
|
379
|
+
"defaultValue": "false"
|
|
380
|
+
},
|
|
381
|
+
"blockHeading": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"mutable": false,
|
|
384
|
+
"complexType": {
|
|
385
|
+
"original": "string",
|
|
386
|
+
"resolved": "string",
|
|
387
|
+
"references": {}
|
|
388
|
+
},
|
|
389
|
+
"required": false,
|
|
390
|
+
"optional": true,
|
|
391
|
+
"docs": {
|
|
392
|
+
"tags": [],
|
|
393
|
+
"text": ""
|
|
394
|
+
},
|
|
395
|
+
"attribute": "block-heading",
|
|
396
|
+
"reflect": false,
|
|
397
|
+
"defaultValue": "null"
|
|
398
|
+
},
|
|
399
|
+
"blockHeadingLevel": {
|
|
400
|
+
"type": "number",
|
|
401
|
+
"mutable": false,
|
|
402
|
+
"complexType": {
|
|
403
|
+
"original": "number",
|
|
404
|
+
"resolved": "number",
|
|
405
|
+
"references": {}
|
|
406
|
+
},
|
|
407
|
+
"required": false,
|
|
408
|
+
"optional": true,
|
|
409
|
+
"docs": {
|
|
410
|
+
"tags": [],
|
|
411
|
+
"text": ""
|
|
412
|
+
},
|
|
413
|
+
"attribute": "block-heading-level",
|
|
414
|
+
"reflect": false,
|
|
415
|
+
"defaultValue": "2"
|
|
416
|
+
},
|
|
417
|
+
"blockPreamble": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "string",
|
|
422
|
+
"resolved": "string",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": true,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": ""
|
|
430
|
+
},
|
|
431
|
+
"attribute": "block-preamble",
|
|
432
|
+
"reflect": false,
|
|
433
|
+
"defaultValue": "null"
|
|
434
|
+
},
|
|
435
|
+
"blockLinkText": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"mutable": false,
|
|
438
|
+
"complexType": {
|
|
439
|
+
"original": "string",
|
|
440
|
+
"resolved": "string",
|
|
441
|
+
"references": {}
|
|
442
|
+
},
|
|
443
|
+
"required": false,
|
|
444
|
+
"optional": true,
|
|
445
|
+
"docs": {
|
|
446
|
+
"tags": [],
|
|
447
|
+
"text": ""
|
|
448
|
+
},
|
|
449
|
+
"attribute": "block-link-text",
|
|
450
|
+
"reflect": false,
|
|
451
|
+
"defaultValue": "null"
|
|
452
|
+
},
|
|
453
|
+
"blockLinkUrl": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"mutable": false,
|
|
456
|
+
"complexType": {
|
|
457
|
+
"original": "string",
|
|
458
|
+
"resolved": "string",
|
|
459
|
+
"references": {}
|
|
460
|
+
},
|
|
461
|
+
"required": false,
|
|
462
|
+
"optional": true,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [],
|
|
465
|
+
"text": ""
|
|
466
|
+
},
|
|
467
|
+
"attribute": "block-link-url",
|
|
468
|
+
"reflect": false,
|
|
469
|
+
"defaultValue": "null"
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
static get states() {
|
|
474
|
+
return {
|
|
475
|
+
"pnPlayOnScrollObserverOptions": {},
|
|
476
|
+
"calculatedBlockHeight": {},
|
|
477
|
+
"hasButtonSlot": {}
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
static get elementRef() { return "block"; }
|
|
481
|
+
}
|
package/components/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { PnMarketwebSiteheaderLoginMypageButton as PnMarketwebSiteheaderLoginMyp
|
|
|
40
40
|
export { PnMarketwebSiteheaderLoginProfileselection as PnMarketwebSiteheaderLoginProfileselection } from '../types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection';
|
|
41
41
|
export { PnMarketwebSiteheaderSearch as PnMarketwebSiteheaderSearch } from '../types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search';
|
|
42
42
|
export { PnMarketwebSiteheaderUnifiedLogin as PnMarketwebSiteheaderUnifiedLogin } from '../types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login';
|
|
43
|
+
export { PnmediaBlock as PnMediaBlock } from '../types/components/media/pn-media-block/pn-media-block';
|
|
43
44
|
export { PnMultiFormField as PnMultiFormfield } from '../types/components/input/pn-multi-formfield/pn-multi-formfield';
|
|
44
45
|
export { PnMultiRowConnectedDropdown as PnMultiRowConnectedDropdown } from '../types/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown';
|
|
45
46
|
export { PnMultiRowConnectedDropdownRow as PnMultiRowConnectedDropdownRow } from '../types/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row';
|
package/components/index.js
CHANGED
|
@@ -40,6 +40,7 @@ export { PnMarketwebSiteheaderLoginMypageButton, defineCustomElement as defineCu
|
|
|
40
40
|
export { PnMarketwebSiteheaderLoginProfileselection, defineCustomElement as defineCustomElementPnMarketwebSiteheaderLoginProfileselection } from './pn-marketweb-siteheader-login-profileselection.js';
|
|
41
41
|
export { PnMarketwebSiteheaderSearch, defineCustomElement as defineCustomElementPnMarketwebSiteheaderSearch } from './pn-marketweb-siteheader-search.js';
|
|
42
42
|
export { PnMarketwebSiteheaderUnifiedLogin, defineCustomElement as defineCustomElementPnMarketwebSiteheaderUnifiedLogin } from './pn-marketweb-siteheader-unified-login.js';
|
|
43
|
+
export { PnMediaBlock, defineCustomElement as defineCustomElementPnMediaBlock } from './pn-media-block.js';
|
|
43
44
|
export { PnMultiFormfield, defineCustomElement as defineCustomElementPnMultiFormfield } from './pn-multi-formfield.js';
|
|
44
45
|
export { PnMultiRowConnectedDropdown, defineCustomElement as defineCustomElementPnMultiRowConnectedDropdown } from './pn-multi-row-connected-dropdown.js';
|
|
45
46
|
export { PnMultiRowConnectedDropdownRow, defineCustomElement as defineCustomElementPnMultiRowConnectedDropdownRow } from './pn-multi-row-connected-dropdown-row.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PnMediaBlock extends Components.PnMediaBlock, HTMLElement {}
|
|
4
|
+
export const PnMediaBlock: {
|
|
5
|
+
prototype: PnMediaBlock;
|
|
6
|
+
new (): PnMediaBlock;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|