@postnord/pn-marketweb-components 2.1.9 → 2.2.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/cjs/{index-95e5b7f9.js → index-28bbc937.js} +1 -1
- package/cjs/{index-4199ff85.js → index-e3e27c79.js} +278 -808
- package/cjs/loader.cjs.js +3 -4
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
- package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
- package/cjs/pn-breakpoints.cjs.entry.js +2 -2
- package/cjs/pn-chart.cjs.entry.js +2 -3
- package/cjs/pn-charts-card.cjs.entry.js +2 -9
- package/cjs/pn-choice-button.cjs.entry.js +2 -5
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
- package/cjs/pn-customernumber-selector.cjs.entry.js +2 -2
- package/cjs/pn-filter-checkbox.cjs.entry.js +2 -5
- package/cjs/pn-find-price-result.cjs.entry.js +4 -7
- package/cjs/{pn-find-price-store-e0d1e412.js → pn-find-price-store-a91ce3f6.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +4 -4
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +4 -4
- package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +4 -4
- package/cjs/pn-language-selector_9.cjs.entry.js +42 -18
- package/cjs/pn-line-shape.cjs.entry.js +2 -2
- package/cjs/pn-mainnav-link.cjs.entry.js +10 -4
- package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-61a75ea0.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +3 -7
- package/cjs/pn-marketweb-input.cjs.entry.js +7 -2
- package/cjs/pn-marketweb-search.cjs.entry.js +6 -2
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +15 -10
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +78 -70
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +4 -4
- package/cjs/{pn-marketweb-siteheader-store-5ced6902.js → pn-marketweb-siteheader-store-e29ad918.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +38 -10
- package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
- package/cjs/pn-pex-pricefinder.cjs.entry.js +5 -2
- package/cjs/pn-product-card_3.cjs.entry.js +4 -15
- package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
- package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
- package/cjs/pn-product-tile-info_2.cjs.entry.js +3 -10
- package/cjs/pn-product-tile.cjs.entry.js +2 -2
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -2
- package/cjs/pn-profile-modal-profile.cjs.entry.js +4 -4
- package/cjs/{pn-profile-modal-store-947b08ae.js → pn-profile-modal-store-6117e304.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +4 -4
- package/cjs/pn-profile-modal.cjs.entry.js +4 -4
- package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
- package/cjs/pn-profile-selector.cjs.entry.js +5 -5
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +2 -5
- package/cjs/pn-proxio-findprice.cjs.entry.js +4 -4
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +5 -3
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +5 -12
- package/cjs/pn-quick-cta.cjs.entry.js +2 -2
- package/cjs/pn-quote-card.cjs.entry.js +3 -2
- package/cjs/pn-share-item.cjs.entry.js +22 -0
- package/cjs/pn-share.cjs.entry.js +64 -0
- package/cjs/pn-sidenav-level.cjs.entry.js +4 -4
- package/cjs/pn-sidenav-link.cjs.entry.js +12 -4
- package/cjs/{pn-sidenav-store-d2389306.js → pn-sidenav-store-d9bd9e00.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -4
- package/cjs/pn-sidenav.cjs.entry.js +6 -4
- package/cjs/pn-site-footer_2.cjs.entry.js +4 -3
- package/cjs/pn-spotlight.cjs.entry.js +2 -2
- package/cjs/pn-stats-info-data.cjs.entry.js +8 -8
- package/cjs/pn-stats-info.cjs.entry.js +2 -2
- package/cjs/pn-teaser-card.cjs.entry.js +4 -3
- package/cjs/pn-titletag.cjs.entry.js +4 -2
- package/collection/collection-manifest.json +4 -2
- package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +11 -12
- package/collection/components/cards/pn-quote-card/pn-quote-card.js +79 -68
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +113 -109
- package/collection/components/charts/pn-chart/pn-chart.js +74 -83
- package/collection/components/charts/pn-charts-card/pn-charts-card.js +146 -142
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +128 -133
- package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +49 -51
- package/collection/components/cta/pn-share/pn-share-item.css +42 -0
- package/collection/components/cta/pn-share/pn-share-item.js +61 -0
- package/collection/components/cta/pn-share/pn-share.css +23 -0
- package/collection/components/cta/pn-share/pn-share.js +91 -0
- package/collection/components/cta/pn-share/pn-share.stories.js +22 -0
- package/collection/components/cta/pn-share/translations.js +17 -0
- package/collection/components/cta/pn-spotlight/pn-spotlight.js +51 -51
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +115 -120
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +79 -82
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +87 -93
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +195 -193
- package/collection/components/input/pn-choice-button/pn-choice-button.js +137 -145
- package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +122 -128
- package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +355 -347
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +260 -258
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.js +3 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +221 -201
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +29 -34
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +101 -101
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +105 -110
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +45 -51
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +245 -228
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +256 -259
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +172 -170
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +75 -84
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +560 -509
- package/collection/components/minor/pn-titletag/pn-titletag.js +49 -51
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +123 -119
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +64 -71
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +58 -58
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +97 -92
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +33 -39
- package/collection/components/navigation/pn-mainnav/pn-mainnav.js +183 -182
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +22 -29
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +134 -128
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +34 -39
- package/collection/components/navigation/pn-sidenav/pn-sidenav.js +66 -71
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +29 -34
- package/collection/components/navigation/pn-site-footer/pn-site-footer.js +75 -68
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +89 -85
- package/collection/components/navigation/pn-site-selector/pn-site-selector.js +73 -73
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +67 -68
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +90 -90
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +79 -85
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +188 -182
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +84 -91
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +115 -116
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +67 -68
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +76 -78
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +42 -48
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +179 -163
- package/collection/components/widgets/pn-find-price/pn-find-price.js +113 -99
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +67 -66
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +148 -133
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +102 -87
- package/collection/components/widgets/pn-product-card/pn-product-card-info.js +94 -92
- package/collection/components/widgets/pn-product-card/pn-product-card-price.js +131 -138
- package/collection/components/widgets/pn-product-card/pn-product-card.js +21 -12
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +108 -101
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +140 -137
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +62 -70
- package/collection/components/widgets/pn-product-tile/pn-product-tile-price.js +83 -87
- package/collection/components/widgets/pn-product-tile/pn-product-tile.js +16 -12
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +188 -187
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +131 -117
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +145 -130
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +82 -87
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +57 -55
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js +61 -70
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +20 -12
- package/custom-elements/index.d.ts +471 -0
- package/custom-elements/index.js +30034 -0
- package/esm/{index-c118284d.js → index-5397620b.js} +279 -808
- package/esm/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
- package/esm/loader.js +3 -4
- package/esm/pn-bonus-progressbar-level.entry.js +2 -2
- package/esm/pn-bonus-progressbar.entry.js +2 -2
- package/esm/pn-breakpoints.entry.js +2 -2
- package/esm/pn-chart.entry.js +2 -3
- package/esm/pn-charts-card.entry.js +2 -9
- package/esm/pn-choice-button.entry.js +2 -5
- package/esm/pn-customernumber-selector-option.entry.js +2 -2
- package/esm/pn-customernumber-selector.entry.js +2 -2
- package/esm/pn-filter-checkbox.entry.js +2 -5
- package/esm/pn-find-price-result.entry.js +4 -7
- package/esm/{pn-find-price-store-e13b6651.js → pn-find-price-store-bde5071d.js} +1 -1
- package/esm/pn-find-price.entry.js +4 -4
- package/esm/pn-find-service-and-price-result.entry.js +4 -4
- package/esm/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +4 -4
- package/esm/pn-language-selector_9.entry.js +42 -18
- package/esm/pn-line-shape.entry.js +2 -2
- package/esm/pn-mainnav-link.entry.js +10 -4
- package/{components/pn-mainnav-store.js → esm/pn-mainnav-store-28571e54.js} +1 -1
- package/esm/pn-market-web-components.js +3 -4
- package/esm/pn-marketweb-input.entry.js +7 -2
- package/esm/pn-marketweb-search.entry.js +6 -2
- package/esm/pn-marketweb-sitefooter.entry.js +15 -10
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +78 -70
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +4 -4
- package/esm/{pn-marketweb-siteheader-store-9df5290d.js → pn-marketweb-siteheader-store-cd0a1dab.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +38 -10
- package/esm/pn-parcel-tracker.entry.js +2 -2
- package/esm/pn-pex-pricefinder.entry.js +5 -2
- package/esm/pn-product-card_3.entry.js +4 -15
- package/esm/pn-product-pricelist-result.entry.js +3 -3
- package/esm/pn-product-pricelist.entry.js +4 -4
- package/esm/pn-product-tile-info_2.entry.js +3 -10
- package/esm/pn-product-tile.entry.js +2 -2
- package/esm/pn-profile-modal-customernumber.entry.js +2 -2
- package/esm/pn-profile-modal-profile.entry.js +4 -4
- package/{components/pn-profile-modal-store.js → esm/pn-profile-modal-store-ae9e0d5a.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +4 -4
- package/esm/pn-profile-modal.entry.js +4 -4
- package/esm/pn-profile-selector-option.entry.js +2 -2
- package/esm/pn-profile-selector.entry.js +5 -5
- package/esm/pn-proxio-findprice-result.entry.js +2 -5
- package/esm/pn-proxio-findprice.entry.js +4 -4
- package/esm/pn-proxio-pricegroup.entry.js +5 -3
- package/esm/pn-proxio-productcard_4.entry.js +5 -12
- package/esm/pn-quick-cta.entry.js +2 -2
- package/esm/pn-quote-card.entry.js +3 -2
- package/esm/pn-share-item.entry.js +18 -0
- package/esm/pn-share.entry.js +60 -0
- package/esm/pn-sidenav-level.entry.js +4 -4
- package/esm/pn-sidenav-link.entry.js +12 -4
- package/{components/pn-sidenav-store.js → esm/pn-sidenav-store-50b186d6.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +5 -4
- package/esm/pn-sidenav.entry.js +6 -4
- package/esm/pn-site-footer_2.entry.js +4 -3
- package/esm/pn-spotlight.entry.js +2 -2
- package/esm/pn-stats-info-data.entry.js +8 -8
- package/esm/pn-stats-info.entry.js +2 -2
- package/esm/pn-teaser-card.entry.js +4 -3
- package/esm/pn-titletag.entry.js +4 -2
- package/esm/polyfills/css-shim.js +1 -1
- package/esm-es5/MarketWebContextService-872043cc.js +1 -1
- package/esm-es5/convert-f6377d13.js +1 -1
- package/esm-es5/index-5397620b.js +1 -0
- package/esm-es5/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
- package/esm-es5/loader.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 +2 -2
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.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-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-e13b6651.js → pn-find-price-store-bde5071d.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-f09ca219.js → pn-find-service-and-price-store-65df46a0.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-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-28571e54.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-cd0a1dab.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.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-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-81f53310.js → pn-profile-modal-store-ae9e0d5a.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-share-item.entry.js +1 -0
- package/esm-es5/pn-share.entry.js +1 -0
- 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-94be19c8.js → pn-sidenav-store-50b186d6.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_2.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 +5 -7
- package/pn-market-web-components/{p-6f1d6a1a.system.js → p-02ea55ad.system.js} +1 -1
- package/pn-market-web-components/p-0796f9b2.entry.js +1 -0
- package/pn-market-web-components/p-0862b4b6.entry.js +1 -0
- package/pn-market-web-components/p-086a72ca.system.entry.js +1 -0
- package/pn-market-web-components/{p-a1a58fe4.js → p-0cacf9fb.js} +1 -1
- package/pn-market-web-components/p-10eafcd7.entry.js +1 -0
- package/pn-market-web-components/{p-4bd540a4.system.entry.js → p-110e50b3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f7cb2ef9.system.entry.js → p-1151bf60.system.entry.js} +1 -1
- package/pn-market-web-components/p-138b1e76.entry.js +1 -0
- package/pn-market-web-components/{p-02632961.system.entry.js → p-13baed17.system.entry.js} +1 -1
- package/pn-market-web-components/p-15112837.entry.js +1 -0
- package/pn-market-web-components/p-16c4bc50.entry.js +1 -0
- package/pn-market-web-components/p-17c4004f.entry.js +1 -0
- package/pn-market-web-components/{p-0c46847e.system.entry.js → p-1c38553b.system.entry.js} +1 -1
- package/pn-market-web-components/p-1ca41ab1.entry.js +1 -0
- package/pn-market-web-components/{p-1fb4eae4.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
- package/pn-market-web-components/p-21c01c47.entry.js +1 -0
- package/pn-market-web-components/p-227e1d46.entry.js +1 -0
- package/pn-market-web-components/p-2423d620.system.entry.js +1 -0
- package/pn-market-web-components/p-249964b5.entry.js +1 -0
- package/pn-market-web-components/p-25496649.system.entry.js +1 -0
- package/pn-market-web-components/{p-abfed655.system.entry.js → p-2718b89a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7d463116.system.entry.js → p-28c4b4d9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-853e6559.system.entry.js → p-290d5824.system.entry.js} +1 -1
- package/pn-market-web-components/p-2a598ee8.entry.js +1 -0
- package/pn-market-web-components/p-2c7ba802.entry.js +1 -0
- package/pn-market-web-components/p-2da8e5e8.system.entry.js +1 -0
- package/pn-market-web-components/p-2e3bde56.entry.js +1 -0
- package/pn-market-web-components/p-31fd7a95.system.js +1 -1
- package/pn-market-web-components/p-35fcd76c.system.entry.js +1 -0
- package/pn-market-web-components/p-36654f2a.system.js +1 -0
- package/pn-market-web-components/{p-e4961116.system.entry.js → p-36a1b8e1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-13d2d138.system.js → p-3738a2df.system.js} +1 -1
- package/pn-market-web-components/p-381b3ec0.entry.js +1 -0
- package/pn-market-web-components/p-381c034b.entry.js +1 -0
- package/pn-market-web-components/p-3969ec4d.entry.js +1 -0
- package/pn-market-web-components/{p-c576ac3e.system.entry.js → p-447ef543.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8ca063a9.system.entry.js → p-450cbe76.system.entry.js} +1 -1
- package/pn-market-web-components/p-479b970a.entry.js +1 -0
- package/pn-market-web-components/p-499bb3ac.entry.js +1 -0
- package/pn-market-web-components/{p-589a9a4c.system.entry.js → p-4a03854b.system.entry.js} +1 -1
- package/pn-market-web-components/p-4a928837.entry.js +1 -0
- package/pn-market-web-components/p-4bef1bf3.entry.js +1 -0
- package/pn-market-web-components/{p-9f95b3c9.system.entry.js → p-4f67721e.system.entry.js} +1 -1
- package/pn-market-web-components/p-557328e3.system.entry.js +1 -0
- package/pn-market-web-components/{p-8fee0115.system.entry.js → p-58a57436.system.entry.js} +1 -1
- package/pn-market-web-components/p-58e8d7d5.js +1 -0
- package/pn-market-web-components/p-59be826b.system.entry.js +1 -0
- package/pn-market-web-components/p-61dbe832.entry.js +1 -0
- package/pn-market-web-components/{p-b890f3f9.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
- package/pn-market-web-components/p-67380aa4.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -0
- package/pn-market-web-components/{p-4d561de4.system.entry.js → p-7079df88.system.entry.js} +1 -1
- package/pn-market-web-components/p-715d1ef7.entry.js +1 -0
- package/pn-market-web-components/{p-5a506356.system.entry.js → p-723b9901.system.entry.js} +1 -1
- package/pn-market-web-components/{p-545a40a7.system.entry.js → p-74d35edf.system.entry.js} +1 -1
- package/pn-market-web-components/p-756b0a84.entry.js +1 -0
- package/pn-market-web-components/{p-6d050c3a.system.entry.js → p-7b9fb94f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5b5f4a52.system.entry.js → p-7cc57591.system.entry.js} +1 -1
- package/pn-market-web-components/p-7ce41d14.entry.js +1 -0
- package/pn-market-web-components/p-7fd8b012.entry.js +1 -0
- package/pn-market-web-components/{p-2145d5e0.system.entry.js → p-80dce81e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-68324e6f.system.entry.js → p-8117b79e.system.entry.js} +1 -1
- package/pn-market-web-components/p-81d764a0.entry.js +1 -0
- package/pn-market-web-components/{p-d34c9be2.system.js → p-825b8fb8.system.js} +1 -1
- package/pn-market-web-components/p-84193b02.system.entry.js +1 -0
- package/pn-market-web-components/{p-c5727e83.js → p-84699999.js} +1 -1
- package/pn-market-web-components/{p-ecaad0c1.js → p-86f06e26.js} +1 -1
- package/pn-market-web-components/p-8766fa86.system.js +1 -1
- package/pn-market-web-components/p-88185835.entry.js +1 -0
- package/pn-market-web-components/p-885bc8d7.system.entry.js +1 -0
- package/pn-market-web-components/p-8afa354b.system.entry.js +1 -0
- package/pn-market-web-components/p-8b684578.entry.js +1 -0
- package/pn-market-web-components/p-8e146205.entry.js +1 -0
- package/pn-market-web-components/p-8e38c337.entry.js +1 -0
- package/pn-market-web-components/p-8e4d292f.entry.js +1 -0
- package/pn-market-web-components/p-8ef45246.entry.js +1 -0
- package/pn-market-web-components/p-9344cd23.js +1 -0
- package/pn-market-web-components/{p-e737c51d.system.entry.js → p-93cecc43.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3a450371.system.js → p-94958580.system.js} +1 -1
- package/pn-market-web-components/p-951861fa.entry.js +1 -0
- package/pn-market-web-components/p-98a7ddd1.system.entry.js +1 -0
- package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
- package/pn-market-web-components/p-9b855b11.entry.js +24 -0
- package/pn-market-web-components/{p-6a4ae9af.system.entry.js → p-9c3de760.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8cefd900.system.entry.js → p-9edaf6b6.system.entry.js} +1 -1
- package/pn-market-web-components/p-a247058b.system.entry.js +1 -0
- package/pn-market-web-components/{p-6e43a937.system.entry.js → p-a275bffb.system.entry.js} +1 -1
- package/pn-market-web-components/p-a5171cb9.system.entry.js +1 -0
- package/pn-market-web-components/{p-396b254a.system.js → p-a5f75560.system.js} +1 -1
- package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
- package/pn-market-web-components/p-a921d3fd.system.entry.js +1 -0
- package/pn-market-web-components/{p-9010c32a.system.entry.js → p-aa271997.system.entry.js} +1 -1
- package/pn-market-web-components/{p-441249d9.system.js → p-add7d76c.system.js} +1 -1
- package/pn-market-web-components/{p-ca1f0abc.system.entry.js → p-af415c1a.system.entry.js} +1 -1
- package/pn-market-web-components/p-b3bf353f.entry.js +1 -0
- package/pn-market-web-components/p-b5fde443.entry.js +1 -0
- package/pn-market-web-components/{p-ffe18938.system.entry.js → p-b88337dd.system.entry.js} +1 -1
- package/pn-market-web-components/p-b9a84e67.entry.js +1 -0
- package/pn-market-web-components/p-bb626ab4.js +1 -0
- package/pn-market-web-components/p-bd22aaac.entry.js +1 -0
- package/pn-market-web-components/p-bfe239ca.js +1 -1
- package/pn-market-web-components/{p-5a41c1bb.system.entry.js → p-c62a91ba.system.entry.js} +1 -1
- package/pn-market-web-components/p-c714a790.entry.js +1 -0
- package/pn-market-web-components/{p-2e507907.system.entry.js → p-c9fb0f01.system.entry.js} +2 -2
- package/pn-market-web-components/p-d0155ddf.entry.js +1 -0
- package/pn-market-web-components/p-d57f4246.system.entry.js +1 -0
- package/pn-market-web-components/p-d7e3d918.entry.js +1 -0
- package/pn-market-web-components/{p-ad836c55.system.js → p-dbe032f7.system.js} +1 -1
- package/pn-market-web-components/p-e32dc098.entry.js +1 -0
- package/pn-market-web-components/p-e397e11b.entry.js +1 -0
- package/pn-market-web-components/{p-ef721555.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
- package/pn-market-web-components/p-e9576f26.entry.js +1 -0
- package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
- package/pn-market-web-components/p-ecdf2b69.system.entry.js +1 -0
- package/pn-market-web-components/p-ecf712bb.system.entry.js +1 -0
- package/pn-market-web-components/p-ee589138.entry.js +1 -0
- package/pn-market-web-components/{p-939b5792.system.entry.js → p-f312ff98.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8666d14d.js → p-f58bde56.js} +1 -1
- package/pn-market-web-components/p-f61342c3.js +1 -0
- package/pn-market-web-components/{p-4b85fd2b.system.entry.js → p-f6ea7c38.system.entry.js} +1 -1
- package/pn-market-web-components/p-f774e2cc.entry.js +1 -0
- package/pn-market-web-components/{p-658f6ff7.system.entry.js → p-f782ce94.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1d50340b.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
- package/pn-market-web-components/p-fc974bca.entry.js +1 -0
- package/pn-market-web-components/p-fea72975.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -2
- package/types/components/cta/pn-share/pn-share-item.d.ts +6 -0
- package/types/components/cta/pn-share/pn-share.d.ts +10 -0
- package/types/components/cta/pn-share/translations.d.ts +17 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +3 -2
- package/types/components.d.ts +55 -53
- package/types/stencil-public-runtime.d.ts +7 -79
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/LICENSE.md +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/bin/stencil +57 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/config-flags.d.ts +122 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +2609 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.d.ts +19 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +2583 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +14 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.d.ts +24 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.d.ts +18505 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.iterable.d.ts +341 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.collection.d.ts +150 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.core.d.ts +559 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.generator.d.ts +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.iterable.d.ts +498 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.promise.d.ts +83 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.proxy.d.ts +130 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.reflect.d.ts +146 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.d.ts +48 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.array.include.d.ts +118 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.d.ts +22 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.intl.d.ts +47 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.object.d.ts +51 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.sharedmemory.d.ts +137 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.string.d.ts +47 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.typedarrays.d.ts +55 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asynciterable.d.ts +45 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.intl.d.ts +73 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.promise.d.ts +32 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.regexp.d.ts +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.array.d.ts +85 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.intl.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.object.d.ts +35 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.string.d.ts +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.symbol.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.bigint.d.ts +730 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.d.ts +29 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.date.d.ts +44 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.intl.d.ts +433 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.number.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.promise.d.ts +49 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.sharedmemory.d.ts +99 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.string.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.intl.d.ts +154 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.promise.d.ts +50 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.string.d.ts +35 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.weakref.d.ts +75 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.array.d.ts +123 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.d.ts +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.error.d.ts +75 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.intl.d.ts +111 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.object.d.ts +28 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.sharedmemory.d.ts +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.string.d.ts +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es5.d.ts +4526 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es6.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.d.ts +22 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.intl.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.promise.d.ts +43 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.string.d.ts +35 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.weakref.d.ts +75 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.scripthost.d.ts +327 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.d.ts +6192 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.importscripts.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.iterable.d.ts +175 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.d.ts +73 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +70673 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.min.js +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/sys/in-memory-fs.d.ts +218 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/transpile.d.ts +32 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dependencies.json +120 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/app-error.d.ts +18 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/events.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-components.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-external-styles.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-images.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-inline-styles.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-util.d.ts +9 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-window.d.ts +10 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +808 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/logger.d.ts +5 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/progress.d.ts +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/status.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/hmr-util.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/status.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.d.ts +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +264 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/open-in-editor-api.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +1799 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-worker-thread.js +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/static/favicon.ico +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/directory-index.html +132 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/initial-load.html +160 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/visualstudio.vbs +82 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/ws.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/xdg-open +1066 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.cjs +92 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.js +88 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/css-shim.js +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/dom.js +73 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +3371 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +142 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-esm.js +23 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/core-js.js +11 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/css-shim.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/dom.js +79 -0
- package/{loader/index.js → umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/es5-html-element.js} +1 -4
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/index.js +34 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/system.js +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +387 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +1143 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +7 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.d.ts +217 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +777 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/shadow-css.js +143 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +9 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.cjs +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +51 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.js +16 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +41 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +2268 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +2338 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +140 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +1637 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +1105 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +7 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/shadow-css.js +143 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +4858 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +1020 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +4822 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +190 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/readme.md +99 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/favicon.ico +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/logo.png +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.css +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.esm.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.js +33 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/index.esm.js +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-081b0641.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-227a1e18.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-2c298727.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-5479268c.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6ba08604.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6bc63295.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7b4e3ba7.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-988eb362.css +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-9b6a9315.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e2efe0df.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f0b99977.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-fbbae598.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/host.config.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/index.html +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/manifest.json +13 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/connector.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +661 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/local-connector.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +2807 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.d.ts +22 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +6121 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +52 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +4155 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-config.d.ts +16 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-environment.d.ts +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-preprocessor.d.ts +59 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-runner.d.ts +10 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-screenshot.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-serializer.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-setup-test-framework.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-config.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-preprocessor.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-runner.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-serializer.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-environment.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preprocessor.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preset.js +37 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-runner.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-setuptestframework.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/attributes.d.ts +14 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/class-list.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/events.d.ts +21 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/html.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/index.d.ts +23 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/screenshot.d.ts +5 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/text.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mock-fetch.d.ts +11 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mocks.d.ts +56 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/index.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-browser.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-element.d.ts +67 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-events.d.ts +21 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/reset-build-conditionals.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/spec-page.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test/testing-utils.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test-transpile.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-logger.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-sys.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-utils.d.ts +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing.d.ts +2 -0
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/components/MarketWebContextService.js +0 -316
- package/components/_commonjsHelpers.js +0 -32
- package/components/convert.js +0 -1823
- package/components/data.js +0 -37
- package/components/index.d.ts +0 -100
- package/components/index.js +0 -71
- package/components/index2.js +0 -187
- package/components/pn-bonus-progressbar-level.d.ts +0 -11
- package/components/pn-bonus-progressbar-level.js +0 -65
- package/components/pn-bonus-progressbar.d.ts +0 -11
- package/components/pn-bonus-progressbar.js +0 -128
- package/components/pn-breakpoints.d.ts +0 -11
- package/components/pn-breakpoints.js +0 -45
- package/components/pn-chart.d.ts +0 -11
- package/components/pn-chart.js +0 -22151
- package/components/pn-charts-card.d.ts +0 -11
- package/components/pn-charts-card.js +0 -51
- package/components/pn-choice-button.d.ts +0 -11
- package/components/pn-choice-button.js +0 -6
- package/components/pn-choice-button2.js +0 -61
- package/components/pn-customernumber-selector-option.d.ts +0 -11
- package/components/pn-customernumber-selector-option.js +0 -41
- package/components/pn-customernumber-selector.d.ts +0 -11
- package/components/pn-customernumber-selector.js +0 -77
- package/components/pn-filter-checkbox.d.ts +0 -11
- package/components/pn-filter-checkbox.js +0 -93
- package/components/pn-find-price-result.d.ts +0 -11
- package/components/pn-find-price-result.js +0 -6
- package/components/pn-find-price-result2.js +0 -192
- package/components/pn-find-price.d.ts +0 -11
- package/components/pn-find-price.js +0 -281
- package/components/pn-find-service-and-price-result.d.ts +0 -11
- package/components/pn-find-service-and-price-result.js +0 -6
- package/components/pn-find-service-and-price-result2.js +0 -96
- package/components/pn-find-service-and-price.d.ts +0 -11
- package/components/pn-find-service-and-price.js +0 -314
- package/components/pn-language-selector-option.d.ts +0 -11
- package/components/pn-language-selector-option.js +0 -6
- package/components/pn-language-selector-option2.js +0 -51
- package/components/pn-language-selector.d.ts +0 -11
- package/components/pn-language-selector.js +0 -6
- package/components/pn-language-selector2.js +0 -133
- package/components/pn-line-shape.d.ts +0 -11
- package/components/pn-line-shape.js +0 -35
- package/components/pn-mainnav-level.d.ts +0 -11
- package/components/pn-mainnav-level.js +0 -6
- package/components/pn-mainnav-level2.js +0 -117
- package/components/pn-mainnav-link.d.ts +0 -11
- package/components/pn-mainnav-link.js +0 -6
- package/components/pn-mainnav-link2.js +0 -57
- package/components/pn-mainnav-list.d.ts +0 -11
- package/components/pn-mainnav-list.js +0 -6
- package/components/pn-mainnav-list2.js +0 -39
- package/components/pn-mainnav.d.ts +0 -11
- package/components/pn-mainnav.js +0 -6
- package/components/pn-mainnav2.js +0 -120
- package/components/pn-marketweb-input.d.ts +0 -11
- package/components/pn-marketweb-input.js +0 -6
- package/components/pn-marketweb-input2.js +0 -102
- package/components/pn-marketweb-search.d.ts +0 -11
- package/components/pn-marketweb-search.js +0 -129
- package/components/pn-marketweb-sitefooter.d.ts +0 -11
- package/components/pn-marketweb-sitefooter.js +0 -335
- package/components/pn-marketweb-siteheader-login-button.d.ts +0 -11
- package/components/pn-marketweb-siteheader-login-button.js +0 -6
- package/components/pn-marketweb-siteheader-login-button2.js +0 -79
- package/components/pn-marketweb-siteheader-login-linklist.d.ts +0 -11
- package/components/pn-marketweb-siteheader-login-linklist.js +0 -6
- package/components/pn-marketweb-siteheader-login-linklist2.js +0 -105
- package/components/pn-marketweb-siteheader-login-links.d.ts +0 -11
- package/components/pn-marketweb-siteheader-login-links.js +0 -6
- package/components/pn-marketweb-siteheader-login-links2.js +0 -116
- package/components/pn-marketweb-siteheader-login-mypage-button.d.ts +0 -11
- package/components/pn-marketweb-siteheader-login-mypage-button.js +0 -6
- package/components/pn-marketweb-siteheader-login-mypage-button2.js +0 -36
- package/components/pn-marketweb-siteheader-login-profileselection.d.ts +0 -11
- package/components/pn-marketweb-siteheader-login-profileselection.js +0 -6
- package/components/pn-marketweb-siteheader-login-profileselection2.js +0 -234
- package/components/pn-marketweb-siteheader-login.d.ts +0 -11
- package/components/pn-marketweb-siteheader-login.js +0 -6
- package/components/pn-marketweb-siteheader-login2.js +0 -589
- package/components/pn-marketweb-siteheader-search.d.ts +0 -11
- package/components/pn-marketweb-siteheader-search.js +0 -6
- package/components/pn-marketweb-siteheader-search2.js +0 -131
- package/components/pn-marketweb-siteheader-unified-login.d.ts +0 -11
- package/components/pn-marketweb-siteheader-unified-login.js +0 -6
- package/components/pn-marketweb-siteheader-unified-login2.js +0 -52
- package/components/pn-marketweb-siteheader.d.ts +0 -11
- package/components/pn-marketweb-siteheader.js +0 -551
- package/components/pn-parcel-tracker.d.ts +0 -11
- package/components/pn-parcel-tracker.js +0 -58
- package/components/pn-pex-pricefinder.d.ts +0 -11
- package/components/pn-pex-pricefinder.js +0 -156
- package/components/pn-product-card-info.d.ts +0 -11
- package/components/pn-product-card-info.js +0 -6
- package/components/pn-product-card-info2.js +0 -45
- package/components/pn-product-card-price.d.ts +0 -11
- package/components/pn-product-card-price.js +0 -6
- package/components/pn-product-card-price2.js +0 -48
- package/components/pn-product-card.d.ts +0 -11
- package/components/pn-product-card.js +0 -6
- package/components/pn-product-card2.js +0 -30
- package/components/pn-product-pricelist-result.d.ts +0 -11
- package/components/pn-product-pricelist-result.js +0 -130
- package/components/pn-product-pricelist.d.ts +0 -11
- package/components/pn-product-pricelist.js +0 -259
- package/components/pn-product-tile-info.d.ts +0 -11
- package/components/pn-product-tile-info.js +0 -6
- package/components/pn-product-tile-info2.js +0 -38
- package/components/pn-product-tile-price.d.ts +0 -11
- package/components/pn-product-tile-price.js +0 -6
- package/components/pn-product-tile-price2.js +0 -42
- package/components/pn-product-tile.d.ts +0 -11
- package/components/pn-product-tile.js +0 -33
- package/components/pn-profile-modal-customernumber.d.ts +0 -11
- package/components/pn-profile-modal-customernumber.js +0 -46
- package/components/pn-profile-modal-profile.d.ts +0 -11
- package/components/pn-profile-modal-profile.js +0 -71
- package/components/pn-profile-modal-type.d.ts +0 -11
- package/components/pn-profile-modal-type.js +0 -56
- package/components/pn-profile-modal.d.ts +0 -11
- package/components/pn-profile-modal.js +0 -92
- package/components/pn-profile-selector-option.d.ts +0 -11
- package/components/pn-profile-selector-option.js +0 -41
- package/components/pn-profile-selector.d.ts +0 -11
- package/components/pn-profile-selector.js +0 -79
- package/components/pn-proxio-findprice-result.d.ts +0 -11
- package/components/pn-proxio-findprice-result.js +0 -6
- package/components/pn-proxio-findprice-result2.js +0 -122
- package/components/pn-proxio-findprice.d.ts +0 -11
- package/components/pn-proxio-findprice.js +0 -374
- package/components/pn-proxio-pricegroup.d.ts +0 -11
- package/components/pn-proxio-pricegroup.js +0 -194
- package/components/pn-proxio-productcard-description.d.ts +0 -11
- package/components/pn-proxio-productcard-description.js +0 -6
- package/components/pn-proxio-productcard-description2.js +0 -43
- package/components/pn-proxio-productcard-information.d.ts +0 -11
- package/components/pn-proxio-productcard-information.js +0 -6
- package/components/pn-proxio-productcard-information2.js +0 -37
- package/components/pn-proxio-productcard-pricelink.d.ts +0 -11
- package/components/pn-proxio-productcard-pricelink.js +0 -6
- package/components/pn-proxio-productcard-pricelink2.js +0 -38
- package/components/pn-proxio-productcard.d.ts +0 -11
- package/components/pn-proxio-productcard.js +0 -6
- package/components/pn-proxio-productcard2.js +0 -30
- package/components/pn-quick-cta.d.ts +0 -11
- package/components/pn-quick-cta.js +0 -39
- package/components/pn-quote-card.d.ts +0 -11
- package/components/pn-quote-card.js +0 -41
- package/components/pn-sidenav-level.d.ts +0 -11
- package/components/pn-sidenav-level.js +0 -84
- package/components/pn-sidenav-link.d.ts +0 -11
- package/components/pn-sidenav-link.js +0 -87
- package/components/pn-sidenav-togglebutton.d.ts +0 -11
- package/components/pn-sidenav-togglebutton.js +0 -45
- package/components/pn-sidenav.d.ts +0 -11
- package/components/pn-sidenav.js +0 -95
- package/components/pn-site-footer-col.d.ts +0 -11
- package/components/pn-site-footer-col.js +0 -6
- package/components/pn-site-footer-col2.js +0 -33
- package/components/pn-site-footer.d.ts +0 -11
- package/components/pn-site-footer.js +0 -6
- package/components/pn-site-footer2.js +0 -38
- package/components/pn-site-selector-item.d.ts +0 -11
- package/components/pn-site-selector-item.js +0 -6
- package/components/pn-site-selector-item2.js +0 -39
- package/components/pn-site-selector.d.ts +0 -11
- package/components/pn-site-selector.js +0 -6
- package/components/pn-site-selector2.js +0 -69
- package/components/pn-spotlight.d.ts +0 -11
- package/components/pn-spotlight.js +0 -39
- package/components/pn-stats-info-data.d.ts +0 -11
- package/components/pn-stats-info-data.js +0 -6
- package/components/pn-stats-info-data2.js +0 -157
- package/components/pn-stats-info.d.ts +0 -11
- package/components/pn-stats-info.js +0 -59
- package/components/pn-teaser-card.d.ts +0 -11
- package/components/pn-teaser-card.js +0 -56
- package/components/pn-titletag.d.ts +0 -11
- package/components/pn-titletag.js +0 -6
- package/components/pn-titletag2.js +0 -36
- package/components/translations.js +0 -19
- package/esm/pn-mainnav-store-5d91f523.js +0 -17
- package/esm/pn-profile-modal-store-81f53310.js +0 -15
- package/esm/pn-sidenav-store-94be19c8.js +0 -14
- package/esm-es5/index-c118284d.js +0 -1
- package/esm-es5/pn-marketweb-siteheader-store-9df5290d.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/package.json +0 -11
- package/pn-market-web-components/p-0f1115aa.entry.js +0 -1
- package/pn-market-web-components/p-0fbcacf3.system.entry.js +0 -1
- package/pn-market-web-components/p-1545fb34.entry.js +0 -1
- package/pn-market-web-components/p-156fedd7.entry.js +0 -1
- package/pn-market-web-components/p-15e680a8.entry.js +0 -1
- package/pn-market-web-components/p-1646c170.system.entry.js +0 -1
- package/pn-market-web-components/p-17fb8d9e.entry.js +0 -1
- package/pn-market-web-components/p-18abec91.entry.js +0 -1
- package/pn-market-web-components/p-1a9b2a0e.system.entry.js +0 -1
- package/pn-market-web-components/p-1c382898.entry.js +0 -1
- package/pn-market-web-components/p-247cd393.entry.js +0 -1
- package/pn-market-web-components/p-34c0b146.entry.js +0 -1
- package/pn-market-web-components/p-37d26cef.entry.js +0 -1
- package/pn-market-web-components/p-38f135fd.entry.js +0 -1
- package/pn-market-web-components/p-3f37d2e3.entry.js +0 -1
- package/pn-market-web-components/p-4410d66d.system.entry.js +0 -1
- package/pn-market-web-components/p-44c05fba.entry.js +0 -1
- package/pn-market-web-components/p-44f58f15.js +0 -1
- package/pn-market-web-components/p-47d717a3.entry.js +0 -1
- package/pn-market-web-components/p-48c74c53.entry.js +0 -1
- package/pn-market-web-components/p-498e7738.system.entry.js +0 -1
- package/pn-market-web-components/p-49f60496.entry.js +0 -1
- package/pn-market-web-components/p-4ef54288.entry.js +0 -1
- package/pn-market-web-components/p-507f8886.entry.js +0 -1
- package/pn-market-web-components/p-5a6761da.js +0 -1
- package/pn-market-web-components/p-5e768b73.entry.js +0 -1
- package/pn-market-web-components/p-6b5ff47f.entry.js +0 -1
- package/pn-market-web-components/p-73ee3141.entry.js +0 -1
- package/pn-market-web-components/p-773b59c0.entry.js +0 -24
- package/pn-market-web-components/p-7c1b31e8.js +0 -2
- package/pn-market-web-components/p-7d992089.entry.js +0 -1
- package/pn-market-web-components/p-7dff99ed.entry.js +0 -1
- package/pn-market-web-components/p-8079dfd5.system.entry.js +0 -1
- package/pn-market-web-components/p-82db879c.entry.js +0 -1
- package/pn-market-web-components/p-833bab34.entry.js +0 -1
- package/pn-market-web-components/p-85513296.entry.js +0 -1
- package/pn-market-web-components/p-8d4dfd26.entry.js +0 -1
- package/pn-market-web-components/p-8f0a682f.entry.js +0 -1
- package/pn-market-web-components/p-8f32fa2b.system.entry.js +0 -1
- package/pn-market-web-components/p-8fe65c6a.entry.js +0 -1
- package/pn-market-web-components/p-924ca115.entry.js +0 -1
- package/pn-market-web-components/p-9407ee64.system.entry.js +0 -1
- package/pn-market-web-components/p-9429ca78.entry.js +0 -1
- package/pn-market-web-components/p-9826ba22.system.entry.js +0 -1
- package/pn-market-web-components/p-9a1c267d.entry.js +0 -1
- package/pn-market-web-components/p-a5faec68.system.js +0 -2
- package/pn-market-web-components/p-a799fee1.entry.js +0 -1
- package/pn-market-web-components/p-ac62dc33.entry.js +0 -1
- package/pn-market-web-components/p-ad1f57dc.entry.js +0 -1
- package/pn-market-web-components/p-b0102ff6.entry.js +0 -1
- package/pn-market-web-components/p-b5587c0d.entry.js +0 -1
- package/pn-market-web-components/p-beefd9f7.entry.js +0 -1
- package/pn-market-web-components/p-c0db1ffd.js +0 -1
- package/pn-market-web-components/p-c1d9a064.entry.js +0 -1
- package/pn-market-web-components/p-c668f453.entry.js +0 -1
- package/pn-market-web-components/p-c7e8ab14.entry.js +0 -1
- package/pn-market-web-components/p-c9742318.entry.js +0 -1
- package/pn-market-web-components/p-cd6b402e.system.entry.js +0 -1
- package/pn-market-web-components/p-d295ef71.system.js +0 -1
- package/pn-market-web-components/p-d5ae9797.entry.js +0 -1
- package/pn-market-web-components/p-d5c7420f.system.entry.js +0 -1
- package/pn-market-web-components/p-d6ee168b.system.entry.js +0 -1
- package/pn-market-web-components/p-d70e685c.entry.js +0 -1
- package/pn-market-web-components/p-dbd7837e.entry.js +0 -1
- package/pn-market-web-components/p-dc598ef8.entry.js +0 -1
- package/pn-market-web-components/p-e0e45eb0.system.entry.js +0 -1
- package/pn-market-web-components/p-e1513762.entry.js +0 -1
- package/pn-market-web-components/p-e4fbd06c.entry.js +0 -1
- package/pn-market-web-components/p-ebb7b59b.system.entry.js +0 -1
- package/pn-market-web-components/p-ed5e91eb.system.entry.js +0 -1
- package/pn-market-web-components/p-fba88e93.entry.js +0 -1
- package/pn-market-web-components/p-ff975b67.entry.js +0 -1
- /package/{components → custom-elements}/mockresponse.js +0 -0
|
@@ -22,14 +22,6 @@ function _interopNamespace(e) {
|
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'pn-market-web-components';
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* Virtual DOM patching algorithm based on Snabbdom by
|
|
27
|
-
* Simon Friis Vindum (@paldepind)
|
|
28
|
-
* Licensed under the MIT License
|
|
29
|
-
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
30
|
-
*
|
|
31
|
-
* Modified for Stencil's renderer and slot projection
|
|
32
|
-
*/
|
|
33
25
|
let scopeId;
|
|
34
26
|
let contentRef;
|
|
35
27
|
let hostTagName;
|
|
@@ -39,6 +31,66 @@ let checkSlotRelocate = false;
|
|
|
39
31
|
let isSvgMode = false;
|
|
40
32
|
let renderingRef = null;
|
|
41
33
|
let queuePending = false;
|
|
34
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
35
|
+
const doc = win.document || { head: {} };
|
|
36
|
+
const H = (win.HTMLElement || class {
|
|
37
|
+
});
|
|
38
|
+
const plt = {
|
|
39
|
+
$flags$: 0,
|
|
40
|
+
$resourcesUrl$: '',
|
|
41
|
+
jmp: (h) => h(),
|
|
42
|
+
raf: (h) => requestAnimationFrame(h),
|
|
43
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
44
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
45
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
46
|
+
};
|
|
47
|
+
const supportsShadow = true;
|
|
48
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
|
49
|
+
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
50
|
+
try {
|
|
51
|
+
new CSSStyleSheet();
|
|
52
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
53
|
+
}
|
|
54
|
+
catch (e) { }
|
|
55
|
+
return false;
|
|
56
|
+
})()
|
|
57
|
+
;
|
|
58
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
59
|
+
if (listeners) {
|
|
60
|
+
listeners.map(([flags, name, method]) => {
|
|
61
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
62
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
63
|
+
const opts = hostListenerOpts(flags);
|
|
64
|
+
plt.ael(target, name, handler, opts);
|
|
65
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
70
|
+
try {
|
|
71
|
+
{
|
|
72
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
73
|
+
// instance is ready, let's call it's member method for this event
|
|
74
|
+
hostRef.$lazyInstance$[methodName](ev);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (e) {
|
|
82
|
+
consoleError(e);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
86
|
+
if (flags & 8 /* TargetWindow */)
|
|
87
|
+
return win;
|
|
88
|
+
return elm;
|
|
89
|
+
};
|
|
90
|
+
// prettier-ignore
|
|
91
|
+
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
92
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
93
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
42
94
|
const createTime = (fnName, tagName = '') => {
|
|
43
95
|
{
|
|
44
96
|
return () => {
|
|
@@ -53,8 +105,71 @@ const uniqueTime = (key, measureText) => {
|
|
|
53
105
|
};
|
|
54
106
|
}
|
|
55
107
|
};
|
|
56
|
-
const
|
|
57
|
-
const
|
|
108
|
+
const rootAppliedStyles = new WeakMap();
|
|
109
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
110
|
+
let style = styles.get(scopeId);
|
|
111
|
+
if (supportsConstructibleStylesheets && allowCS) {
|
|
112
|
+
style = (style || new CSSStyleSheet());
|
|
113
|
+
style.replace(cssText);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
style = cssText;
|
|
117
|
+
}
|
|
118
|
+
styles.set(scopeId, style);
|
|
119
|
+
};
|
|
120
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
121
|
+
let scopeId = getScopeId(cmpMeta);
|
|
122
|
+
let style = styles.get(scopeId);
|
|
123
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
124
|
+
// so the fallback is to always use the document for the root node in those cases
|
|
125
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
126
|
+
if (style) {
|
|
127
|
+
if (typeof style === 'string') {
|
|
128
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
129
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
130
|
+
let styleElm;
|
|
131
|
+
if (!appliedStyles) {
|
|
132
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
133
|
+
}
|
|
134
|
+
if (!appliedStyles.has(scopeId)) {
|
|
135
|
+
{
|
|
136
|
+
{
|
|
137
|
+
styleElm = doc.createElement('style');
|
|
138
|
+
styleElm.innerHTML = style;
|
|
139
|
+
}
|
|
140
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
141
|
+
}
|
|
142
|
+
if (appliedStyles) {
|
|
143
|
+
appliedStyles.add(scopeId);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
148
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return scopeId;
|
|
152
|
+
};
|
|
153
|
+
const attachStyles = (hostRef) => {
|
|
154
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
155
|
+
const elm = hostRef.$hostElement$;
|
|
156
|
+
const flags = cmpMeta.$flags$;
|
|
157
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
158
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
159
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
160
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
161
|
+
// or this browser doesn't support native shadow dom
|
|
162
|
+
// and this host element was NOT created with SSR
|
|
163
|
+
// let's pick out the inner content for slot projection
|
|
164
|
+
// create a node to represent where the original
|
|
165
|
+
// content was first placed, which is useful later on
|
|
166
|
+
// DOM WRITE!!
|
|
167
|
+
elm['s-sc'] = scopeId;
|
|
168
|
+
elm.classList.add(scopeId + '-h');
|
|
169
|
+
}
|
|
170
|
+
endAttachStyles();
|
|
171
|
+
};
|
|
172
|
+
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
58
173
|
/**
|
|
59
174
|
* Default style mode id
|
|
60
175
|
*/
|
|
@@ -74,18 +189,6 @@ const isComplexType = (o) => {
|
|
|
74
189
|
o = typeof o;
|
|
75
190
|
return o === 'object' || o === 'function';
|
|
76
191
|
};
|
|
77
|
-
/**
|
|
78
|
-
* Helper method for querying a `meta` tag that contains a nonce value
|
|
79
|
-
* out of a DOM's head.
|
|
80
|
-
*
|
|
81
|
-
* @param doc The DOM containing the `head` to query against
|
|
82
|
-
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
83
|
-
* exists or the tag has no content.
|
|
84
|
-
*/
|
|
85
|
-
function queryNonceMetaTagContent(doc) {
|
|
86
|
-
var _a, _b, _c;
|
|
87
|
-
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
88
|
-
}
|
|
89
192
|
/**
|
|
90
193
|
* Production h() function based on Preact by
|
|
91
194
|
* Jason Miller (@developit)
|
|
@@ -94,6 +197,7 @@ function queryNonceMetaTagContent(doc) {
|
|
|
94
197
|
*
|
|
95
198
|
* Modified for Stencil's compiler and vdom
|
|
96
199
|
*/
|
|
200
|
+
// const stack: any[] = [];
|
|
97
201
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
98
202
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
99
203
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -102,7 +206,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
102
206
|
let slotName = null;
|
|
103
207
|
let simple = false;
|
|
104
208
|
let lastSimple = false;
|
|
105
|
-
|
|
209
|
+
let vNodeChildren = [];
|
|
106
210
|
const walk = (c) => {
|
|
107
211
|
for (let i = 0; i < c.length; i++) {
|
|
108
212
|
child = c[i];
|
|
@@ -163,14 +267,6 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
163
267
|
}
|
|
164
268
|
return vnode;
|
|
165
269
|
};
|
|
166
|
-
/**
|
|
167
|
-
* A utility function for creating a virtual DOM node from a tag and some
|
|
168
|
-
* possible text content.
|
|
169
|
-
*
|
|
170
|
-
* @param tag the tag for this element
|
|
171
|
-
* @param text possible text content for the node
|
|
172
|
-
* @returns a newly-minted virtual DOM node
|
|
173
|
-
*/
|
|
174
270
|
const newVNode = (tag, text) => {
|
|
175
271
|
const vnode = {
|
|
176
272
|
$flags$: 0,
|
|
@@ -191,31 +287,11 @@ const newVNode = (tag, text) => {
|
|
|
191
287
|
return vnode;
|
|
192
288
|
};
|
|
193
289
|
const Host = {};
|
|
194
|
-
/**
|
|
195
|
-
* Check whether a given node is a Host node or not
|
|
196
|
-
*
|
|
197
|
-
* @param node the virtual DOM node to check
|
|
198
|
-
* @returns whether it's a Host node or not
|
|
199
|
-
*/
|
|
200
290
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
201
|
-
/**
|
|
202
|
-
* Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
|
|
203
|
-
*
|
|
204
|
-
* Note that these functions convert from {@link d.VNode} to
|
|
205
|
-
* {@link d.ChildNode} to give functional component developers a friendly
|
|
206
|
-
* interface.
|
|
207
|
-
*/
|
|
208
291
|
const vdomFnUtils = {
|
|
209
292
|
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
210
293
|
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
|
211
294
|
};
|
|
212
|
-
/**
|
|
213
|
-
* Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
|
|
214
|
-
* friendlier public interface (hence, 'convertToPublic').
|
|
215
|
-
*
|
|
216
|
-
* @param node the virtual DOM node to convert
|
|
217
|
-
* @returns a converted child node
|
|
218
|
-
*/
|
|
219
295
|
const convertToPublic = (node) => ({
|
|
220
296
|
vattrs: node.$attrs$,
|
|
221
297
|
vchildren: node.$children$,
|
|
@@ -224,15 +300,6 @@ const convertToPublic = (node) => ({
|
|
|
224
300
|
vtag: node.$tag$,
|
|
225
301
|
vtext: node.$text$,
|
|
226
302
|
});
|
|
227
|
-
/**
|
|
228
|
-
* Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
|
|
229
|
-
* order to use the resulting object in the virtual DOM. The initial object was
|
|
230
|
-
* likely created as part of presenting a public API, so converting it back
|
|
231
|
-
* involved making it 'private' again (hence, `convertToPrivate`).
|
|
232
|
-
*
|
|
233
|
-
* @param node the child node to convert
|
|
234
|
-
* @returns a converted virtual DOM node
|
|
235
|
-
*/
|
|
236
303
|
const convertToPrivate = (node) => {
|
|
237
304
|
if (typeof node.vtag === 'function') {
|
|
238
305
|
const vnodeData = Object.assign({}, node.vattrs);
|
|
@@ -251,155 +318,6 @@ const convertToPrivate = (node) => {
|
|
|
251
318
|
vnode.$name$ = node.vname;
|
|
252
319
|
return vnode;
|
|
253
320
|
};
|
|
254
|
-
/**
|
|
255
|
-
* Parse a new property value for a given property type.
|
|
256
|
-
*
|
|
257
|
-
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
258
|
-
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
259
|
-
* 1. `any`, the type given to `propValue` in the function signature
|
|
260
|
-
* 2. the type stored from `propType`.
|
|
261
|
-
*
|
|
262
|
-
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
263
|
-
*
|
|
264
|
-
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
265
|
-
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
266
|
-
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
267
|
-
* ```tsx
|
|
268
|
-
* <my-cmp prop-val={0}></my-cmp>
|
|
269
|
-
* ```
|
|
270
|
-
*
|
|
271
|
-
* HTML prop values on the other hand, will always a string
|
|
272
|
-
*
|
|
273
|
-
* @param propValue the new value to coerce to some type
|
|
274
|
-
* @param propType the type of the prop, expressed as a binary number
|
|
275
|
-
* @returns the parsed/coerced value
|
|
276
|
-
*/
|
|
277
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
278
|
-
// ensure this value is of the correct prop type
|
|
279
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
280
|
-
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
281
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
282
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
283
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
284
|
-
}
|
|
285
|
-
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
286
|
-
// force it to be a number
|
|
287
|
-
return parseFloat(propValue);
|
|
288
|
-
}
|
|
289
|
-
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
290
|
-
// could have been passed as a number or boolean
|
|
291
|
-
// but we still want it as a string
|
|
292
|
-
return String(propValue);
|
|
293
|
-
}
|
|
294
|
-
// redundant return here for better minification
|
|
295
|
-
return propValue;
|
|
296
|
-
}
|
|
297
|
-
// not sure exactly what type we want
|
|
298
|
-
// so no need to change to a different type
|
|
299
|
-
return propValue;
|
|
300
|
-
};
|
|
301
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
302
|
-
const createEvent = (ref, name, flags) => {
|
|
303
|
-
const elm = getElement(ref);
|
|
304
|
-
return {
|
|
305
|
-
emit: (detail) => {
|
|
306
|
-
return emitEvent(elm, name, {
|
|
307
|
-
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
308
|
-
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
309
|
-
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
310
|
-
detail,
|
|
311
|
-
});
|
|
312
|
-
},
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
/**
|
|
316
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
317
|
-
* @param elm the target of the Event
|
|
318
|
-
* @param name the name to give the custom Event
|
|
319
|
-
* @param opts options for configuring a custom Event
|
|
320
|
-
* @returns the custom Event
|
|
321
|
-
*/
|
|
322
|
-
const emitEvent = (elm, name, opts) => {
|
|
323
|
-
const ev = plt.ce(name, opts);
|
|
324
|
-
elm.dispatchEvent(ev);
|
|
325
|
-
return ev;
|
|
326
|
-
};
|
|
327
|
-
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
328
|
-
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
329
|
-
let style = styles.get(scopeId);
|
|
330
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
331
|
-
style = (style || new CSSStyleSheet());
|
|
332
|
-
if (typeof style === 'string') {
|
|
333
|
-
style = cssText;
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
style.replaceSync(cssText);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
style = cssText;
|
|
341
|
-
}
|
|
342
|
-
styles.set(scopeId, style);
|
|
343
|
-
};
|
|
344
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
345
|
-
var _a;
|
|
346
|
-
let scopeId = getScopeId(cmpMeta);
|
|
347
|
-
const style = styles.get(scopeId);
|
|
348
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
349
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
350
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
351
|
-
if (style) {
|
|
352
|
-
if (typeof style === 'string') {
|
|
353
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
354
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
355
|
-
let styleElm;
|
|
356
|
-
if (!appliedStyles) {
|
|
357
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
358
|
-
}
|
|
359
|
-
if (!appliedStyles.has(scopeId)) {
|
|
360
|
-
{
|
|
361
|
-
{
|
|
362
|
-
styleElm = doc.createElement('style');
|
|
363
|
-
styleElm.innerHTML = style;
|
|
364
|
-
}
|
|
365
|
-
// Apply CSP nonce to the style tag if it exists
|
|
366
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
367
|
-
if (nonce != null) {
|
|
368
|
-
styleElm.setAttribute('nonce', nonce);
|
|
369
|
-
}
|
|
370
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
371
|
-
}
|
|
372
|
-
if (appliedStyles) {
|
|
373
|
-
appliedStyles.add(scopeId);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
378
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
return scopeId;
|
|
382
|
-
};
|
|
383
|
-
const attachStyles = (hostRef) => {
|
|
384
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
385
|
-
const elm = hostRef.$hostElement$;
|
|
386
|
-
const flags = cmpMeta.$flags$;
|
|
387
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
388
|
-
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
389
|
-
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
390
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
391
|
-
// or this browser doesn't support native shadow dom
|
|
392
|
-
// and this host element was NOT created with SSR
|
|
393
|
-
// let's pick out the inner content for slot projection
|
|
394
|
-
// create a node to represent where the original
|
|
395
|
-
// content was first placed, which is useful later on
|
|
396
|
-
// DOM WRITE!!
|
|
397
|
-
elm['s-sc'] = scopeId;
|
|
398
|
-
elm.classList.add(scopeId + '-h');
|
|
399
|
-
}
|
|
400
|
-
endAttachStyles();
|
|
401
|
-
};
|
|
402
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
403
321
|
/**
|
|
404
322
|
* Production setAccessor() function based on Preact by
|
|
405
323
|
* Jason Miller (@developit)
|
|
@@ -497,7 +415,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
497
415
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
498
416
|
try {
|
|
499
417
|
if (!elm.tagName.includes('-')) {
|
|
500
|
-
|
|
418
|
+
let n = newValue == null ? '' : newValue;
|
|
501
419
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
502
420
|
if (memberName === 'list') {
|
|
503
421
|
isProp = false;
|
|
@@ -536,7 +454,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
536
454
|
}
|
|
537
455
|
}
|
|
538
456
|
}
|
|
539
|
-
else if ((!isProp || flags & 4 /*
|
|
457
|
+
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
540
458
|
newValue = newValue === true ? '' : newValue;
|
|
541
459
|
if (xlink) {
|
|
542
460
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
@@ -554,7 +472,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
554
472
|
// if the element passed in is a shadow root, which is a document fragment
|
|
555
473
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
556
474
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
557
|
-
const elm = newVnode.$elm$.nodeType === 11 /*
|
|
475
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
558
476
|
? newVnode.$elm$.host
|
|
559
477
|
: newVnode.$elm$;
|
|
560
478
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
@@ -572,19 +490,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
572
490
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
573
491
|
}
|
|
574
492
|
};
|
|
575
|
-
/**
|
|
576
|
-
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
577
|
-
*
|
|
578
|
-
* @param oldParentVNode the parent VNode from the previous render
|
|
579
|
-
* @param newParentVNode the parent VNode from the current render
|
|
580
|
-
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
581
|
-
* children, for which we will create a new DOM node
|
|
582
|
-
* @param parentElm the parent DOM node which our new node will be a child of
|
|
583
|
-
* @returns the newly created node
|
|
584
|
-
*/
|
|
585
493
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
586
494
|
// tslint:disable-next-line: prefer-const
|
|
587
|
-
|
|
495
|
+
let newVNode = newParentVNode.$children$[childIndex];
|
|
588
496
|
let i = 0;
|
|
589
497
|
let elm;
|
|
590
498
|
let childNode;
|
|
@@ -599,16 +507,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
599
507
|
}
|
|
600
508
|
newVNode.$flags$ |= newVNode.$children$
|
|
601
509
|
? // slot element has fallback content
|
|
602
|
-
2 /*
|
|
510
|
+
2 /* isSlotFallback */
|
|
603
511
|
: // slot element does not have fallback content
|
|
604
|
-
1 /*
|
|
512
|
+
1 /* isSlotReference */;
|
|
605
513
|
}
|
|
606
514
|
}
|
|
607
515
|
if (newVNode.$text$ !== null) {
|
|
608
516
|
// create text node
|
|
609
517
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
610
518
|
}
|
|
611
|
-
else if (newVNode.$flags$ & 1 /*
|
|
519
|
+
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
612
520
|
// create a slot reference node
|
|
613
521
|
elm = newVNode.$elm$ =
|
|
614
522
|
doc.createTextNode('');
|
|
@@ -618,7 +526,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
618
526
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
619
527
|
}
|
|
620
528
|
// create element
|
|
621
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /*
|
|
529
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
622
530
|
? 'slot-fb'
|
|
623
531
|
: newVNode.$tag$)
|
|
624
532
|
);
|
|
@@ -658,7 +566,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
658
566
|
}
|
|
659
567
|
{
|
|
660
568
|
elm['s-hn'] = hostTagName;
|
|
661
|
-
if (newVNode.$flags$ & (2 /*
|
|
569
|
+
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
662
570
|
// remember the content reference comment
|
|
663
571
|
elm['s-sr'] = true;
|
|
664
572
|
// remember the content reference comment
|
|
@@ -677,7 +585,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
677
585
|
return elm;
|
|
678
586
|
};
|
|
679
587
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
680
|
-
plt.$flags$ |= 1 /*
|
|
588
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
681
589
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
682
590
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
683
591
|
const childNode = oldSlotChildNodes[i];
|
|
@@ -698,23 +606,8 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
698
606
|
putBackInOriginalLocation(childNode, recursive);
|
|
699
607
|
}
|
|
700
608
|
}
|
|
701
|
-
plt.$flags$ &= ~1 /*
|
|
609
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
702
610
|
};
|
|
703
|
-
/**
|
|
704
|
-
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
705
|
-
* add them to the DOM in the appropriate place.
|
|
706
|
-
*
|
|
707
|
-
* @param parentElm the DOM node which should be used as a parent for the new
|
|
708
|
-
* DOM nodes
|
|
709
|
-
* @param before a child of the `parentElm` which the new children should be
|
|
710
|
-
* inserted before (optional)
|
|
711
|
-
* @param parentVNode the parent virtual DOM node
|
|
712
|
-
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
713
|
-
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
714
|
-
* creating DOM nodes (inclusive)
|
|
715
|
-
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
716
|
-
* creating DOM nodes (inclusive)
|
|
717
|
-
*/
|
|
718
611
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
719
612
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
720
613
|
let childNode;
|
|
@@ -731,19 +624,6 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
731
624
|
}
|
|
732
625
|
}
|
|
733
626
|
};
|
|
734
|
-
/**
|
|
735
|
-
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
736
|
-
* This can be used to, for instance, clean up after a list of children which
|
|
737
|
-
* should no longer be shown.
|
|
738
|
-
*
|
|
739
|
-
* This function also handles some of Stencil's slot relocation logic.
|
|
740
|
-
*
|
|
741
|
-
* @param vnodes a list of virtual DOM nodes to remove
|
|
742
|
-
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
743
|
-
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
744
|
-
* @param vnode a VNode
|
|
745
|
-
* @param elm an element
|
|
746
|
-
*/
|
|
747
627
|
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
748
628
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
749
629
|
if ((vnode = vnodes[startIdx])) {
|
|
@@ -768,74 +648,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
768
648
|
}
|
|
769
649
|
}
|
|
770
650
|
};
|
|
771
|
-
/**
|
|
772
|
-
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
773
|
-
* traversing the two collections of children, identifying nodes that are
|
|
774
|
-
* conserved or changed, calling out to `patch` to make any necessary
|
|
775
|
-
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
776
|
-
*
|
|
777
|
-
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
778
|
-
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
779
|
-
* 'windows' by storing start and end indices and references to the
|
|
780
|
-
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
781
|
-
* to the entire array, but we progressively narrow the windows until there are
|
|
782
|
-
* no children left to update by doing the following:
|
|
783
|
-
*
|
|
784
|
-
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
785
|
-
* that if we have an initial array like the following we'll end up dealing
|
|
786
|
-
* only with a window bounded by the highlighted elements:
|
|
787
|
-
*
|
|
788
|
-
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
789
|
-
* ^^^^^^ ^^^^^^
|
|
790
|
-
*
|
|
791
|
-
* 2. Check to see if the elements at the head and tail positions are equal
|
|
792
|
-
* across the windows. This will basically detect elements which haven't
|
|
793
|
-
* been added, removed, or changed position, i.e. if you had the following
|
|
794
|
-
* VNode elements (represented as HTML):
|
|
795
|
-
*
|
|
796
|
-
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
797
|
-
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
798
|
-
*
|
|
799
|
-
* Then when comparing the children of the `<div>` tag we check the equality
|
|
800
|
-
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
801
|
-
* same tag in the same position, we'd be able to avoid completely
|
|
802
|
-
* re-rendering the subtree under them with a new DOM element and would just
|
|
803
|
-
* call out to `patch` to handle reconciling their children and so on.
|
|
804
|
-
*
|
|
805
|
-
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
806
|
-
* window corresponds to the element at the end of the other window. This is
|
|
807
|
-
* a heuristic which will let us identify _some_ situations in which
|
|
808
|
-
* elements have changed position, for instance it _should_ detect that the
|
|
809
|
-
* children nodes themselves have not changed but merely moved in the
|
|
810
|
-
* following example:
|
|
811
|
-
*
|
|
812
|
-
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
813
|
-
* newVNode: `<div><element-two /><element-one /></div>`
|
|
814
|
-
*
|
|
815
|
-
* If we find cases like this then we also need to move the concrete DOM
|
|
816
|
-
* elements corresponding to the moved children to write the re-order to the
|
|
817
|
-
* DOM.
|
|
818
|
-
*
|
|
819
|
-
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
820
|
-
* nodes in the old children which have the same key as the first element in
|
|
821
|
-
* our window on the new children. If we find such a node we handle calling
|
|
822
|
-
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
823
|
-
* what we find.
|
|
824
|
-
*
|
|
825
|
-
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
826
|
-
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
827
|
-
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
828
|
-
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
829
|
-
* children has collapsed we still have more nodes on the new children that
|
|
830
|
-
* we haven't dealt with yet then we need to add them, or if the new children
|
|
831
|
-
* collapse but we still have unhandled _old_ children then we need to make
|
|
832
|
-
* sure the corresponding DOM nodes are removed.
|
|
833
|
-
*
|
|
834
|
-
* @param parentElm the node into which the parent VNode is rendered
|
|
835
|
-
* @param oldCh the old children of the parent node
|
|
836
|
-
* @param newVNode the new VNode which will replace the parent
|
|
837
|
-
* @param newCh the new children of the parent node
|
|
838
|
-
*/
|
|
839
651
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
840
652
|
let oldStartIdx = 0;
|
|
841
653
|
let newStartIdx = 0;
|
|
@@ -851,7 +663,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
851
663
|
let elmToMove;
|
|
852
664
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
853
665
|
if (oldStartVnode == null) {
|
|
854
|
-
//
|
|
666
|
+
// Vnode might have been moved left
|
|
855
667
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
856
668
|
}
|
|
857
669
|
else if (oldEndVnode == null) {
|
|
@@ -864,100 +676,37 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
864
676
|
newEndVnode = newCh[--newEndIdx];
|
|
865
677
|
}
|
|
866
678
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
867
|
-
// if the start nodes are the same then we should patch the new VNode
|
|
868
|
-
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
869
|
-
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
870
|
-
// since things are matched up in order.
|
|
871
679
|
patch(oldStartVnode, newStartVnode);
|
|
872
680
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
873
681
|
newStartVnode = newCh[++newStartIdx];
|
|
874
682
|
}
|
|
875
683
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
876
|
-
// likewise, if the end nodes are the same we patch new onto old and
|
|
877
|
-
// decrement our end indices, and also likewise in this case we don't
|
|
878
|
-
// need to move any DOM Nodes.
|
|
879
684
|
patch(oldEndVnode, newEndVnode);
|
|
880
685
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
881
686
|
newEndVnode = newCh[--newEndIdx];
|
|
882
687
|
}
|
|
883
688
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
884
|
-
//
|
|
885
|
-
//
|
|
886
|
-
// We've found that the last node in our window on the new children is
|
|
887
|
-
// the same VNode as the _first_ node in our window on the old children
|
|
888
|
-
// we're dealing with now. Visually, this is the layout of these two
|
|
889
|
-
// nodes:
|
|
890
|
-
//
|
|
891
|
-
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
892
|
-
// ^^^^^^^^^^^
|
|
893
|
-
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
894
|
-
// ^^^^^^^^^^^^^
|
|
895
|
-
//
|
|
896
|
-
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
897
|
-
// and move the DOM element for `oldStartVnode`.
|
|
689
|
+
// Vnode moved right
|
|
898
690
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
899
691
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
900
692
|
}
|
|
901
693
|
patch(oldStartVnode, newEndVnode);
|
|
902
|
-
// We need to move the element for `oldStartVnode` into a position which
|
|
903
|
-
// will be appropriate for `newEndVnode`. For this we can use
|
|
904
|
-
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
905
|
-
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
906
|
-
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
907
|
-
//
|
|
908
|
-
// <old-start-node />
|
|
909
|
-
// <some-intervening-node />
|
|
910
|
-
// <old-end-node />
|
|
911
|
-
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
912
|
-
// <next-sibling />
|
|
913
|
-
//
|
|
914
|
-
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
915
|
-
// the node for `oldStartVnode` at the end of the children of
|
|
916
|
-
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
917
|
-
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
918
|
-
// append it to the children of the parent element.
|
|
919
694
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
920
695
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
921
696
|
newEndVnode = newCh[--newEndIdx];
|
|
922
697
|
}
|
|
923
698
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
924
|
-
//
|
|
925
|
-
//
|
|
926
|
-
// We've found that the first node in our window on the new children is
|
|
927
|
-
// the same VNode as the _last_ node in our window on the old children.
|
|
928
|
-
// Visually, this is the layout of these two nodes:
|
|
929
|
-
//
|
|
930
|
-
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
931
|
-
// ^^^^^^^^^^^^^
|
|
932
|
-
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
933
|
-
// ^^^^^^^^^^^
|
|
934
|
-
//
|
|
935
|
-
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
936
|
-
// (which will handle updating any changed attributes, reconciling their
|
|
937
|
-
// children etc) but we also need to move the DOM node to which
|
|
938
|
-
// `oldEndVnode` corresponds.
|
|
699
|
+
// Vnode moved left
|
|
939
700
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
940
701
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
941
702
|
}
|
|
942
703
|
patch(oldEndVnode, newStartVnode);
|
|
943
|
-
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
944
|
-
// the same node, so since we're here we know that they are not. Thus we
|
|
945
|
-
// can move the element for `oldEndVnode` _before_ the element for
|
|
946
|
-
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
947
|
-
// future.
|
|
948
704
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
949
705
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
950
706
|
newStartVnode = newCh[++newStartIdx];
|
|
951
707
|
}
|
|
952
708
|
else {
|
|
953
|
-
//
|
|
954
|
-
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
955
|
-
// in the JSX for a DOM element in the implementation of a Stencil
|
|
956
|
-
// component.
|
|
957
|
-
//
|
|
958
|
-
// First we check to see if there are any nodes in the array of old
|
|
959
|
-
// children which have the same key as the first node in the new
|
|
960
|
-
// children.
|
|
709
|
+
// createKeyToOldIdx
|
|
961
710
|
idxInOld = -1;
|
|
962
711
|
{
|
|
963
712
|
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
@@ -968,32 +717,23 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
968
717
|
}
|
|
969
718
|
}
|
|
970
719
|
if (idxInOld >= 0) {
|
|
971
|
-
// We found a node in the old children which matches up with the first
|
|
972
|
-
// node in the new children! So let's deal with that
|
|
973
720
|
elmToMove = oldCh[idxInOld];
|
|
974
721
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
975
|
-
// the tag doesn't match so we'll need a new DOM element
|
|
976
722
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
977
723
|
}
|
|
978
724
|
else {
|
|
979
725
|
patch(elmToMove, newStartVnode);
|
|
980
|
-
// invalidate the matching old node so that we won't try to update it
|
|
981
|
-
// again later on
|
|
982
726
|
oldCh[idxInOld] = undefined;
|
|
983
727
|
node = elmToMove.$elm$;
|
|
984
728
|
}
|
|
985
729
|
newStartVnode = newCh[++newStartIdx];
|
|
986
730
|
}
|
|
987
731
|
else {
|
|
988
|
-
//
|
|
989
|
-
// the key of the first new child OR the build is not using `key`
|
|
990
|
-
// attributes at all. In either case we need to create a new element
|
|
991
|
-
// for the new node.
|
|
732
|
+
// new element
|
|
992
733
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
993
734
|
newStartVnode = newCh[++newStartIdx];
|
|
994
735
|
}
|
|
995
736
|
if (node) {
|
|
996
|
-
// if we created a new node then handle inserting it to the DOM
|
|
997
737
|
{
|
|
998
738
|
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
999
739
|
}
|
|
@@ -1001,44 +741,21 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
1001
741
|
}
|
|
1002
742
|
}
|
|
1003
743
|
if (oldStartIdx > oldEndIdx) {
|
|
1004
|
-
// we have some more new nodes to add which don't match up with old nodes
|
|
1005
744
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
1006
745
|
}
|
|
1007
746
|
else if (newStartIdx > newEndIdx) {
|
|
1008
|
-
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
1009
|
-
// in the new array, so lets remove them (which entails cleaning up the
|
|
1010
|
-
// relevant DOM nodes)
|
|
1011
747
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
1012
748
|
}
|
|
1013
749
|
};
|
|
1014
|
-
|
|
1015
|
-
* Compare two VNodes to determine if they are the same
|
|
1016
|
-
*
|
|
1017
|
-
* **NB**: This function is an equality _heuristic_ based on the available
|
|
1018
|
-
* information set on the two VNodes and can be misleading under certain
|
|
1019
|
-
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
1020
|
-
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
1021
|
-
* checking that they have the same tag.
|
|
1022
|
-
*
|
|
1023
|
-
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
1024
|
-
* changing order within a `children` array or something along those lines then
|
|
1025
|
-
* we could obtain a false negative and then have to do needless re-rendering
|
|
1026
|
-
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
1027
|
-
*
|
|
1028
|
-
* @param leftVNode the first VNode to check
|
|
1029
|
-
* @param rightVNode the second VNode to check
|
|
1030
|
-
* @returns whether they're equal or not
|
|
1031
|
-
*/
|
|
1032
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
750
|
+
const isSameVnode = (vnode1, vnode2) => {
|
|
1033
751
|
// compare if two vnode to see if they're "technically" the same
|
|
1034
752
|
// need to have the same element tag, and same key to be the same
|
|
1035
|
-
if (
|
|
1036
|
-
if (
|
|
1037
|
-
return
|
|
753
|
+
if (vnode1.$tag$ === vnode2.$tag$) {
|
|
754
|
+
if (vnode1.$tag$ === 'slot') {
|
|
755
|
+
return vnode1.$name$ === vnode2.$name$;
|
|
1038
756
|
}
|
|
1039
|
-
// this will be set if components in the build have `key` attrs set on them
|
|
1040
757
|
{
|
|
1041
|
-
return
|
|
758
|
+
return vnode1.$key$ === vnode2.$key$;
|
|
1042
759
|
}
|
|
1043
760
|
}
|
|
1044
761
|
return false;
|
|
@@ -1051,14 +768,6 @@ const referenceNode = (node) => {
|
|
|
1051
768
|
return (node && node['s-ol']) || node;
|
|
1052
769
|
};
|
|
1053
770
|
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
1054
|
-
/**
|
|
1055
|
-
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
1056
|
-
* it. This function handles flushing updates to the DOM and reconciling the
|
|
1057
|
-
* children of the two nodes (if any).
|
|
1058
|
-
*
|
|
1059
|
-
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
1060
|
-
* @param newVNode a new VNode representing an updated version of the old one
|
|
1061
|
-
*/
|
|
1062
771
|
const patch = (oldVNode, newVNode) => {
|
|
1063
772
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
1064
773
|
const oldChildren = oldVNode.$children$;
|
|
@@ -1072,6 +781,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1072
781
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
1073
782
|
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
1074
783
|
}
|
|
784
|
+
// element node
|
|
1075
785
|
{
|
|
1076
786
|
if (tag === 'slot')
|
|
1077
787
|
;
|
|
@@ -1084,7 +794,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1084
794
|
}
|
|
1085
795
|
if (oldChildren !== null && newChildren !== null) {
|
|
1086
796
|
// looks like there's child vnodes for both the old and new vnodes
|
|
1087
|
-
// so we need to call `updateChildren` to reconcile them
|
|
1088
797
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
1089
798
|
}
|
|
1090
799
|
else if (newChildren !== null) {
|
|
@@ -1116,7 +825,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1116
825
|
};
|
|
1117
826
|
const updateFallbackSlotVisibility = (elm) => {
|
|
1118
827
|
// tslint:disable-next-line: prefer-const
|
|
1119
|
-
|
|
828
|
+
let childNodes = elm.childNodes;
|
|
1120
829
|
let childNode;
|
|
1121
830
|
let i;
|
|
1122
831
|
let ilen;
|
|
@@ -1125,7 +834,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
1125
834
|
let nodeType;
|
|
1126
835
|
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
1127
836
|
childNode = childNodes[i];
|
|
1128
|
-
if (childNode.nodeType === 1 /*
|
|
837
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1129
838
|
if (childNode['s-sr']) {
|
|
1130
839
|
// this is a slot fallback node
|
|
1131
840
|
// get the slot name for this slot reference node
|
|
@@ -1137,7 +846,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
1137
846
|
nodeType = childNodes[j].nodeType;
|
|
1138
847
|
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
1139
848
|
// this sibling node is from a different component OR is a named fallback slot node
|
|
1140
|
-
if (nodeType === 1 /*
|
|
849
|
+
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1141
850
|
childNode.hidden = true;
|
|
1142
851
|
break;
|
|
1143
852
|
}
|
|
@@ -1146,8 +855,8 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
1146
855
|
// this is a default fallback slot node
|
|
1147
856
|
// any element or text node (with content)
|
|
1148
857
|
// should hide the default fallback slot node
|
|
1149
|
-
if (nodeType === 1 /*
|
|
1150
|
-
(nodeType === 3 /*
|
|
858
|
+
if (nodeType === 1 /* ElementNode */ ||
|
|
859
|
+
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1151
860
|
childNode.hidden = true;
|
|
1152
861
|
break;
|
|
1153
862
|
}
|
|
@@ -1169,8 +878,8 @@ const relocateSlotContent = (elm) => {
|
|
|
1169
878
|
let relocateNodeData;
|
|
1170
879
|
let j;
|
|
1171
880
|
let i = 0;
|
|
1172
|
-
|
|
1173
|
-
|
|
881
|
+
let childNodes = elm.childNodes;
|
|
882
|
+
let ilen = childNodes.length;
|
|
1174
883
|
for (; i < ilen; i++) {
|
|
1175
884
|
childNode = childNodes[i];
|
|
1176
885
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -1225,13 +934,13 @@ const relocateSlotContent = (elm) => {
|
|
|
1225
934
|
}
|
|
1226
935
|
}
|
|
1227
936
|
}
|
|
1228
|
-
if (childNode.nodeType === 1 /*
|
|
937
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1229
938
|
relocateSlotContent(childNode);
|
|
1230
939
|
}
|
|
1231
940
|
}
|
|
1232
941
|
};
|
|
1233
942
|
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
1234
|
-
if (nodeToRelocate.nodeType === 1 /*
|
|
943
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1235
944
|
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
1236
945
|
return true;
|
|
1237
946
|
}
|
|
@@ -1251,18 +960,6 @@ const callNodeRefs = (vNode) => {
|
|
|
1251
960
|
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
1252
961
|
}
|
|
1253
962
|
};
|
|
1254
|
-
/**
|
|
1255
|
-
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
1256
|
-
*
|
|
1257
|
-
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
1258
|
-
* function will handle creating a virtual DOM tree with a single root, patching
|
|
1259
|
-
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
1260
|
-
* relocation, and reflecting attributes.
|
|
1261
|
-
*
|
|
1262
|
-
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1263
|
-
* the DOM node into which it should be rendered.
|
|
1264
|
-
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1265
|
-
*/
|
|
1266
963
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
1267
964
|
const hostElm = hostRef.$hostElement$;
|
|
1268
965
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -1274,7 +971,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1274
971
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
1275
972
|
}
|
|
1276
973
|
rootVnode.$tag$ = null;
|
|
1277
|
-
rootVnode.$flags$ |= 4 /*
|
|
974
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1278
975
|
hostRef.$vnode$ = rootVnode;
|
|
1279
976
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
1280
977
|
{
|
|
@@ -1282,7 +979,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1282
979
|
}
|
|
1283
980
|
{
|
|
1284
981
|
contentRef = hostElm['s-cr'];
|
|
1285
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /*
|
|
982
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1286
983
|
// always reset
|
|
1287
984
|
checkSlotFallbackVisibility = false;
|
|
1288
985
|
}
|
|
@@ -1291,7 +988,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1291
988
|
{
|
|
1292
989
|
// while we're moving nodes around existing nodes, temporarily disable
|
|
1293
990
|
// the disconnectCallback from working
|
|
1294
|
-
plt.$flags$ |= 1 /*
|
|
991
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1295
992
|
if (checkSlotRelocate) {
|
|
1296
993
|
relocateSlotContent(rootVnode.$elm$);
|
|
1297
994
|
let relocateData;
|
|
@@ -1349,7 +1046,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1349
1046
|
}
|
|
1350
1047
|
else {
|
|
1351
1048
|
// this node doesn't have a slot home to go to, so let's hide it
|
|
1352
|
-
if (nodeToRelocate.nodeType === 1 /*
|
|
1049
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1353
1050
|
nodeToRelocate.hidden = true;
|
|
1354
1051
|
}
|
|
1355
1052
|
}
|
|
@@ -1360,11 +1057,37 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1360
1057
|
}
|
|
1361
1058
|
// done moving nodes around
|
|
1362
1059
|
// allow the disconnect callback to work again
|
|
1363
|
-
plt.$flags$ &= ~1 /*
|
|
1060
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1364
1061
|
// always reset
|
|
1365
1062
|
relocateNodes.length = 0;
|
|
1366
1063
|
}
|
|
1367
1064
|
};
|
|
1065
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
1066
|
+
const createEvent = (ref, name, flags) => {
|
|
1067
|
+
const elm = getElement(ref);
|
|
1068
|
+
return {
|
|
1069
|
+
emit: (detail) => {
|
|
1070
|
+
return emitEvent(elm, name, {
|
|
1071
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1072
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1073
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1074
|
+
detail,
|
|
1075
|
+
});
|
|
1076
|
+
},
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
/**
|
|
1080
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1081
|
+
* @param elm the target of the Event
|
|
1082
|
+
* @param name the name to give the custom Event
|
|
1083
|
+
* @param opts options for configuring a custom Event
|
|
1084
|
+
* @returns the custom Event
|
|
1085
|
+
*/
|
|
1086
|
+
const emitEvent = (elm, name, opts) => {
|
|
1087
|
+
const ev = plt.ce(name, opts);
|
|
1088
|
+
elm.dispatchEvent(ev);
|
|
1089
|
+
return ev;
|
|
1090
|
+
};
|
|
1368
1091
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1369
1092
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1370
1093
|
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
@@ -1372,10 +1095,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
1372
1095
|
};
|
|
1373
1096
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1374
1097
|
{
|
|
1375
|
-
hostRef.$flags$ |= 16 /*
|
|
1098
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1376
1099
|
}
|
|
1377
|
-
if (hostRef.$flags$ & 4 /*
|
|
1378
|
-
hostRef.$flags$ |= 512 /*
|
|
1100
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1101
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1379
1102
|
return;
|
|
1380
1103
|
}
|
|
1381
1104
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -1391,7 +1114,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1391
1114
|
let promise;
|
|
1392
1115
|
if (isInitialLoad) {
|
|
1393
1116
|
{
|
|
1394
|
-
hostRef.$flags$ |= 256 /*
|
|
1117
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1395
1118
|
if (hostRef.$queuedListeners$) {
|
|
1396
1119
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1397
1120
|
hostRef.$queuedListeners$ = null;
|
|
@@ -1437,7 +1160,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1437
1160
|
}
|
|
1438
1161
|
else {
|
|
1439
1162
|
Promise.all(childrenPromises).then(postUpdate);
|
|
1440
|
-
hostRef.$flags$ |= 4 /*
|
|
1163
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1441
1164
|
childrenPromises.length = 0;
|
|
1442
1165
|
}
|
|
1443
1166
|
}
|
|
@@ -1447,10 +1170,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1447
1170
|
renderingRef = instance;
|
|
1448
1171
|
instance = instance.render() ;
|
|
1449
1172
|
{
|
|
1450
|
-
hostRef.$flags$ &= ~16 /*
|
|
1173
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1451
1174
|
}
|
|
1452
1175
|
{
|
|
1453
|
-
hostRef.$flags$ |= 2 /*
|
|
1176
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1454
1177
|
}
|
|
1455
1178
|
{
|
|
1456
1179
|
{
|
|
@@ -1479,8 +1202,8 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1479
1202
|
{
|
|
1480
1203
|
safeCall(instance, 'componentDidRender');
|
|
1481
1204
|
}
|
|
1482
|
-
if (!(hostRef.$flags$ & 64 /*
|
|
1483
|
-
hostRef.$flags$ |= 64 /*
|
|
1205
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1206
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1484
1207
|
{
|
|
1485
1208
|
// DOM WRITE!
|
|
1486
1209
|
addHydratedFlag(elm);
|
|
@@ -1509,10 +1232,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1509
1232
|
hostRef.$onRenderResolve$();
|
|
1510
1233
|
hostRef.$onRenderResolve$ = undefined;
|
|
1511
1234
|
}
|
|
1512
|
-
if (hostRef.$flags$ & 512 /*
|
|
1235
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1513
1236
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1514
1237
|
}
|
|
1515
|
-
hostRef.$flags$ &= ~(4 /*
|
|
1238
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1516
1239
|
}
|
|
1517
1240
|
// ( •_•)
|
|
1518
1241
|
// ( •_•)>⌐■-■
|
|
@@ -1523,7 +1246,7 @@ const forceUpdate = (ref) => {
|
|
|
1523
1246
|
const hostRef = getHostRef(ref);
|
|
1524
1247
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1525
1248
|
if (isConnected &&
|
|
1526
|
-
(hostRef.$flags$ & (2 /*
|
|
1249
|
+
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1527
1250
|
scheduleUpdate(hostRef, false);
|
|
1528
1251
|
}
|
|
1529
1252
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1554,6 +1277,53 @@ const then = (promise, thenFn) => {
|
|
|
1554
1277
|
};
|
|
1555
1278
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1556
1279
|
;
|
|
1280
|
+
/**
|
|
1281
|
+
* Parse a new property value for a given property type.
|
|
1282
|
+
*
|
|
1283
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1284
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1285
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
1286
|
+
* 2. the type stored from `propType`.
|
|
1287
|
+
*
|
|
1288
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1289
|
+
*
|
|
1290
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1291
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1292
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1293
|
+
* ```tsx
|
|
1294
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
1295
|
+
* ```
|
|
1296
|
+
*
|
|
1297
|
+
* HTML prop values on the other hand, will always a string
|
|
1298
|
+
*
|
|
1299
|
+
* @param propValue the new value to coerce to some type
|
|
1300
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
1301
|
+
* @returns the parsed/coerced value
|
|
1302
|
+
*/
|
|
1303
|
+
const parsePropertyValue = (propValue, propType) => {
|
|
1304
|
+
// ensure this value is of the correct prop type
|
|
1305
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
1306
|
+
if (propType & 4 /* Boolean */) {
|
|
1307
|
+
// per the HTML spec, any string value means it is a boolean true value
|
|
1308
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1309
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1310
|
+
}
|
|
1311
|
+
if (propType & 2 /* Number */) {
|
|
1312
|
+
// force it to be a number
|
|
1313
|
+
return parseFloat(propValue);
|
|
1314
|
+
}
|
|
1315
|
+
if (propType & 1 /* String */) {
|
|
1316
|
+
// could have been passed as a number or boolean
|
|
1317
|
+
// but we still want it as a string
|
|
1318
|
+
return String(propValue);
|
|
1319
|
+
}
|
|
1320
|
+
// redundant return here for better minification
|
|
1321
|
+
return propValue;
|
|
1322
|
+
}
|
|
1323
|
+
// not sure exactly what type we want
|
|
1324
|
+
// so no need to change to a different type
|
|
1325
|
+
return propValue;
|
|
1326
|
+
};
|
|
1557
1327
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1558
1328
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1559
1329
|
// check our new property value against our internal value
|
|
@@ -1563,16 +1333,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1563
1333
|
const flags = hostRef.$flags$;
|
|
1564
1334
|
const instance = hostRef.$lazyInstance$ ;
|
|
1565
1335
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1566
|
-
|
|
1567
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1568
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1569
|
-
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1336
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
|
|
1570
1337
|
// gadzooks! the property's value has changed!!
|
|
1571
1338
|
// set our new value!
|
|
1572
1339
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1573
1340
|
if (instance) {
|
|
1574
1341
|
// get an array of method names of watch functions to call
|
|
1575
|
-
if (cmpMeta.$watchers$ && flags & 128 /*
|
|
1342
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1576
1343
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1577
1344
|
if (watchMethods) {
|
|
1578
1345
|
// this instance is watching for when this property changed
|
|
@@ -1587,7 +1354,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1587
1354
|
});
|
|
1588
1355
|
}
|
|
1589
1356
|
}
|
|
1590
|
-
if ((flags & (2 /*
|
|
1357
|
+
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1591
1358
|
// looks like this value actually changed, so we've got work to do!
|
|
1592
1359
|
// but only if we've already rendered, otherwise just chill out
|
|
1593
1360
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1597,16 +1364,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1597
1364
|
}
|
|
1598
1365
|
}
|
|
1599
1366
|
};
|
|
1600
|
-
/**
|
|
1601
|
-
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1602
|
-
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1603
|
-
* decorators, callbacks for when attributes change, and so on.
|
|
1604
|
-
*
|
|
1605
|
-
* @param Cstr the constructor for a component that we need to process
|
|
1606
|
-
* @param cmpMeta metadata collected previously about the component
|
|
1607
|
-
* @param flags a number used to store a series of bit flags
|
|
1608
|
-
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1609
|
-
*/
|
|
1610
1367
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1611
1368
|
if (cmpMeta.$members$) {
|
|
1612
1369
|
if (Cstr.watchers) {
|
|
@@ -1616,8 +1373,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1616
1373
|
const members = Object.entries(cmpMeta.$members$);
|
|
1617
1374
|
const prototype = Cstr.prototype;
|
|
1618
1375
|
members.map(([memberName, [memberFlags]]) => {
|
|
1619
|
-
if ((memberFlags & 31 /*
|
|
1620
|
-
((flags & 2 /*
|
|
1376
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1377
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1621
1378
|
// proxyComponent - prop
|
|
1622
1379
|
Object.defineProperty(prototype, memberName, {
|
|
1623
1380
|
get() {
|
|
@@ -1633,7 +1390,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1633
1390
|
});
|
|
1634
1391
|
}
|
|
1635
1392
|
});
|
|
1636
|
-
if ((flags & 1 /*
|
|
1393
|
+
if ((flags & 1 /* isElementConstructor */)) {
|
|
1637
1394
|
const attrNameToPropName = new Map();
|
|
1638
1395
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1639
1396
|
plt.jmp(() => {
|
|
@@ -1689,11 +1446,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1689
1446
|
// create an array of attributes to observe
|
|
1690
1447
|
// and also create a map of html attribute name to js property name
|
|
1691
1448
|
Cstr.observedAttributes = members
|
|
1692
|
-
.filter(([_, m]) => m[0] & 15 /*
|
|
1449
|
+
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1693
1450
|
.map(([propName, m]) => {
|
|
1694
1451
|
const attrName = m[1] || propName;
|
|
1695
1452
|
attrNameToPropName.set(attrName, propName);
|
|
1696
|
-
if (m[0] & 512 /*
|
|
1453
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1697
1454
|
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1698
1455
|
}
|
|
1699
1456
|
return attrName;
|
|
@@ -1704,10 +1461,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1704
1461
|
};
|
|
1705
1462
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1706
1463
|
// initializeComponent
|
|
1707
|
-
if ((hostRef.$flags$ & 32 /*
|
|
1464
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1708
1465
|
{
|
|
1709
1466
|
// we haven't initialized this element yet
|
|
1710
|
-
hostRef.$flags$ |= 32 /*
|
|
1467
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1711
1468
|
// lazy loaded components
|
|
1712
1469
|
// request the component's implementation to be
|
|
1713
1470
|
// wired up with the host element
|
|
@@ -1725,7 +1482,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1725
1482
|
{
|
|
1726
1483
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1727
1484
|
}
|
|
1728
|
-
proxyComponent(Cstr, cmpMeta, 2 /*
|
|
1485
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1729
1486
|
Cstr.isProxied = true;
|
|
1730
1487
|
}
|
|
1731
1488
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -1733,7 +1490,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1733
1490
|
// but let's keep track of when we start and stop
|
|
1734
1491
|
// so that the getters/setters don't incorrectly step on data
|
|
1735
1492
|
{
|
|
1736
|
-
hostRef.$flags$ |= 8 /*
|
|
1493
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1737
1494
|
}
|
|
1738
1495
|
// construct the lazy-loaded component implementation
|
|
1739
1496
|
// passing the hostRef is very important during
|
|
@@ -1746,10 +1503,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1746
1503
|
consoleError(e);
|
|
1747
1504
|
}
|
|
1748
1505
|
{
|
|
1749
|
-
hostRef.$flags$ &= ~8 /*
|
|
1506
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1750
1507
|
}
|
|
1751
1508
|
{
|
|
1752
|
-
hostRef.$flags$ |= 128 /*
|
|
1509
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1753
1510
|
}
|
|
1754
1511
|
endNewInstance();
|
|
1755
1512
|
}
|
|
@@ -1759,7 +1516,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1759
1516
|
const scopeId = getScopeId(cmpMeta);
|
|
1760
1517
|
if (!styles.has(scopeId)) {
|
|
1761
1518
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1762
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /*
|
|
1519
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1763
1520
|
endRegisterStyles();
|
|
1764
1521
|
}
|
|
1765
1522
|
}
|
|
@@ -1781,19 +1538,19 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1781
1538
|
}
|
|
1782
1539
|
};
|
|
1783
1540
|
const connectedCallback = (elm) => {
|
|
1784
|
-
if ((plt.$flags$ & 1 /*
|
|
1541
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1785
1542
|
const hostRef = getHostRef(elm);
|
|
1786
1543
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1787
1544
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1788
|
-
if (!(hostRef.$flags$ & 1 /*
|
|
1545
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1789
1546
|
// first time this component has connected
|
|
1790
|
-
hostRef.$flags$ |= 1 /*
|
|
1547
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1791
1548
|
{
|
|
1792
1549
|
// initUpdate
|
|
1793
1550
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1794
1551
|
// in here to act as original content anchors as we move nodes around
|
|
1795
1552
|
// host element has been connected to the DOM
|
|
1796
|
-
if ((cmpMeta.$flags$ & (4 /*
|
|
1553
|
+
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1797
1554
|
setContentReference(elm);
|
|
1798
1555
|
}
|
|
1799
1556
|
}
|
|
@@ -1816,7 +1573,7 @@ const connectedCallback = (elm) => {
|
|
|
1816
1573
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1817
1574
|
if (cmpMeta.$members$) {
|
|
1818
1575
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1819
|
-
if (memberFlags & 31 /*
|
|
1576
|
+
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1820
1577
|
const value = elm[memberName];
|
|
1821
1578
|
delete elm[memberName];
|
|
1822
1579
|
elm[memberName] = value;
|
|
@@ -1848,7 +1605,7 @@ const setContentReference = (elm) => {
|
|
|
1848
1605
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1849
1606
|
};
|
|
1850
1607
|
const disconnectedCallback = (elm) => {
|
|
1851
|
-
if ((plt.$flags$ & 1 /*
|
|
1608
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1852
1609
|
const hostRef = getHostRef(elm);
|
|
1853
1610
|
{
|
|
1854
1611
|
if (hostRef.$rmListeners$) {
|
|
@@ -1867,7 +1624,7 @@ const patchCloneNode = (HostElementPrototype) => {
|
|
|
1867
1624
|
if (!isShadowDom && deep) {
|
|
1868
1625
|
let i = 0;
|
|
1869
1626
|
let slotted, nonStencilNode;
|
|
1870
|
-
|
|
1627
|
+
let stencilPrivates = [
|
|
1871
1628
|
's-id',
|
|
1872
1629
|
's-cr',
|
|
1873
1630
|
's-lr',
|
|
@@ -1904,7 +1661,7 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1904
1661
|
return this[n];
|
|
1905
1662
|
}
|
|
1906
1663
|
}
|
|
1907
|
-
if (cmpMeta.$flags$ & 8 /*
|
|
1664
|
+
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1908
1665
|
const childNodesFn = elm.__lookupGetter__('childNodes');
|
|
1909
1666
|
Object.defineProperty(elm, 'children', {
|
|
1910
1667
|
get() {
|
|
@@ -1919,8 +1676,8 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1919
1676
|
Object.defineProperty(elm, 'childNodes', {
|
|
1920
1677
|
get() {
|
|
1921
1678
|
const childNodes = childNodesFn.call(this);
|
|
1922
|
-
if ((plt.$flags$ & 1 /*
|
|
1923
|
-
getHostRef(this).$flags$ & 2 /*
|
|
1679
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 &&
|
|
1680
|
+
getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
1924
1681
|
const result = new FakeNodeList();
|
|
1925
1682
|
for (let i = 0; i < childNodes.length; i++) {
|
|
1926
1683
|
const slot = childNodes[i]['s-nr'];
|
|
@@ -1936,7 +1693,6 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1936
1693
|
}
|
|
1937
1694
|
};
|
|
1938
1695
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1939
|
-
var _a;
|
|
1940
1696
|
const endBootstrap = createTime();
|
|
1941
1697
|
const cmpTags = [];
|
|
1942
1698
|
const exclude = options.exclude || [];
|
|
@@ -1977,7 +1733,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1977
1733
|
super(self);
|
|
1978
1734
|
self = this;
|
|
1979
1735
|
registerHost(self, cmpMeta);
|
|
1980
|
-
if (cmpMeta.$flags$ & 1 /*
|
|
1736
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1981
1737
|
// this component is using shadow dom
|
|
1982
1738
|
// and this browser supports shadow dom
|
|
1983
1739
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -2018,18 +1774,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2018
1774
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2019
1775
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
2020
1776
|
cmpTags.push(tagName);
|
|
2021
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /*
|
|
1777
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
2022
1778
|
}
|
|
2023
1779
|
});
|
|
2024
1780
|
});
|
|
2025
1781
|
{
|
|
2026
1782
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
2027
1783
|
visibilityStyle.setAttribute('data-styles', '');
|
|
2028
|
-
// Apply CSP nonce to the style tag if it exists
|
|
2029
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
2030
|
-
if (nonce != null) {
|
|
2031
|
-
visibilityStyle.setAttribute('nonce', nonce);
|
|
2032
|
-
}
|
|
2033
1784
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
2034
1785
|
}
|
|
2035
1786
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -2045,48 +1796,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2045
1796
|
// Fallback appLoad event
|
|
2046
1797
|
endBootstrap();
|
|
2047
1798
|
};
|
|
2048
|
-
const
|
|
2049
|
-
if (listeners) {
|
|
2050
|
-
listeners.map(([flags, name, method]) => {
|
|
2051
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2052
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
2053
|
-
const opts = hostListenerOpts(flags);
|
|
2054
|
-
plt.ael(target, name, handler, opts);
|
|
2055
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
2056
|
-
});
|
|
2057
|
-
}
|
|
2058
|
-
};
|
|
2059
|
-
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2060
|
-
try {
|
|
2061
|
-
{
|
|
2062
|
-
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
2063
|
-
// instance is ready, let's call it's member method for this event
|
|
2064
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
2065
|
-
}
|
|
2066
|
-
else {
|
|
2067
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2068
|
-
}
|
|
2069
|
-
}
|
|
2070
|
-
}
|
|
2071
|
-
catch (e) {
|
|
2072
|
-
consoleError(e);
|
|
2073
|
-
}
|
|
2074
|
-
};
|
|
2075
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
2076
|
-
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
2077
|
-
return win;
|
|
2078
|
-
return elm;
|
|
2079
|
-
};
|
|
2080
|
-
// prettier-ignore
|
|
2081
|
-
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
2082
|
-
/**
|
|
2083
|
-
* Assigns the given value to the nonce property on the runtime platform object.
|
|
2084
|
-
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
2085
|
-
* @param nonce The value to be assigned to the platform nonce property.
|
|
2086
|
-
* @returns void
|
|
2087
|
-
*/
|
|
2088
|
-
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
2089
|
-
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1799
|
+
const hostRefs = new WeakMap();
|
|
2090
1800
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
2091
1801
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
2092
1802
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -2115,222 +1825,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2115
1825
|
if (module) {
|
|
2116
1826
|
return module[exportName];
|
|
2117
1827
|
}
|
|
2118
|
-
|
|
2119
|
-
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
2120
|
-
const processMod = importedModule => {
|
|
2121
|
-
cmpModules.set(bundleId, importedModule);
|
|
2122
|
-
return importedModule[exportName];
|
|
2123
|
-
}
|
|
2124
|
-
switch(bundleId) {
|
|
2125
|
-
|
|
2126
|
-
case 'pn-bonus-progressbar.cjs':
|
|
2127
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2128
|
-
/* webpackMode: "lazy" */
|
|
2129
|
-
'./pn-bonus-progressbar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2130
|
-
case 'pn-bonus-progressbar-level.cjs':
|
|
2131
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2132
|
-
/* webpackMode: "lazy" */
|
|
2133
|
-
'./pn-bonus-progressbar-level.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2134
|
-
case 'pn-breakpoints.cjs':
|
|
2135
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2136
|
-
/* webpackMode: "lazy" */
|
|
2137
|
-
'./pn-breakpoints.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2138
|
-
case 'pn-chart.cjs':
|
|
2139
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2140
|
-
/* webpackMode: "lazy" */
|
|
2141
|
-
'./pn-chart.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2142
|
-
case 'pn-charts-card.cjs':
|
|
2143
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2144
|
-
/* webpackMode: "lazy" */
|
|
2145
|
-
'./pn-charts-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2146
|
-
case 'pn-customernumber-selector.cjs':
|
|
2147
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2148
|
-
/* webpackMode: "lazy" */
|
|
2149
|
-
'./pn-customernumber-selector.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2150
|
-
case 'pn-customernumber-selector-option.cjs':
|
|
2151
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2152
|
-
/* webpackMode: "lazy" */
|
|
2153
|
-
'./pn-customernumber-selector-option.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2154
|
-
case 'pn-filter-checkbox.cjs':
|
|
2155
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2156
|
-
/* webpackMode: "lazy" */
|
|
2157
|
-
'./pn-filter-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2158
|
-
case 'pn-find-price.cjs':
|
|
2159
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2160
|
-
/* webpackMode: "lazy" */
|
|
2161
|
-
'./pn-find-price.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2162
|
-
case 'pn-find-service-and-price.cjs':
|
|
2163
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2164
|
-
/* webpackMode: "lazy" */
|
|
2165
|
-
'./pn-find-service-and-price.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2166
|
-
case 'pn-line-shape.cjs':
|
|
2167
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2168
|
-
/* webpackMode: "lazy" */
|
|
2169
|
-
'./pn-line-shape.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2170
|
-
case 'pn-marketweb-search.cjs':
|
|
2171
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2172
|
-
/* webpackMode: "lazy" */
|
|
2173
|
-
'./pn-marketweb-search.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2174
|
-
case 'pn-marketweb-sitefooter.cjs':
|
|
2175
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2176
|
-
/* webpackMode: "lazy" */
|
|
2177
|
-
'./pn-marketweb-sitefooter.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2178
|
-
case 'pn-marketweb-siteheader.cjs':
|
|
2179
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2180
|
-
/* webpackMode: "lazy" */
|
|
2181
|
-
'./pn-marketweb-siteheader.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2182
|
-
case 'pn-parcel-tracker.cjs':
|
|
2183
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2184
|
-
/* webpackMode: "lazy" */
|
|
2185
|
-
'./pn-parcel-tracker.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2186
|
-
case 'pn-pex-pricefinder.cjs':
|
|
2187
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2188
|
-
/* webpackMode: "lazy" */
|
|
2189
|
-
'./pn-pex-pricefinder.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2190
|
-
case 'pn-product-pricelist.cjs':
|
|
2191
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2192
|
-
/* webpackMode: "lazy" */
|
|
2193
|
-
'./pn-product-pricelist.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2194
|
-
case 'pn-product-pricelist-result.cjs':
|
|
2195
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2196
|
-
/* webpackMode: "lazy" */
|
|
2197
|
-
'./pn-product-pricelist-result.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2198
|
-
case 'pn-product-tile.cjs':
|
|
2199
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2200
|
-
/* webpackMode: "lazy" */
|
|
2201
|
-
'./pn-product-tile.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2202
|
-
case 'pn-profile-modal.cjs':
|
|
2203
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2204
|
-
/* webpackMode: "lazy" */
|
|
2205
|
-
'./pn-profile-modal.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2206
|
-
case 'pn-profile-modal-customernumber.cjs':
|
|
2207
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2208
|
-
/* webpackMode: "lazy" */
|
|
2209
|
-
'./pn-profile-modal-customernumber.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2210
|
-
case 'pn-profile-modal-profile.cjs':
|
|
2211
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2212
|
-
/* webpackMode: "lazy" */
|
|
2213
|
-
'./pn-profile-modal-profile.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2214
|
-
case 'pn-profile-modal-type.cjs':
|
|
2215
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2216
|
-
/* webpackMode: "lazy" */
|
|
2217
|
-
'./pn-profile-modal-type.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2218
|
-
case 'pn-profile-selector.cjs':
|
|
2219
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2220
|
-
/* webpackMode: "lazy" */
|
|
2221
|
-
'./pn-profile-selector.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2222
|
-
case 'pn-profile-selector-option.cjs':
|
|
2223
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2224
|
-
/* webpackMode: "lazy" */
|
|
2225
|
-
'./pn-profile-selector-option.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2226
|
-
case 'pn-proxio-findprice.cjs':
|
|
2227
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2228
|
-
/* webpackMode: "lazy" */
|
|
2229
|
-
'./pn-proxio-findprice.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2230
|
-
case 'pn-proxio-pricegroup.cjs':
|
|
2231
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2232
|
-
/* webpackMode: "lazy" */
|
|
2233
|
-
'./pn-proxio-pricegroup.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2234
|
-
case 'pn-quick-cta.cjs':
|
|
2235
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2236
|
-
/* webpackMode: "lazy" */
|
|
2237
|
-
'./pn-quick-cta.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2238
|
-
case 'pn-quote-card.cjs':
|
|
2239
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2240
|
-
/* webpackMode: "lazy" */
|
|
2241
|
-
'./pn-quote-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2242
|
-
case 'pn-sidenav.cjs':
|
|
2243
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2244
|
-
/* webpackMode: "lazy" */
|
|
2245
|
-
'./pn-sidenav.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2246
|
-
case 'pn-sidenav-level.cjs':
|
|
2247
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2248
|
-
/* webpackMode: "lazy" */
|
|
2249
|
-
'./pn-sidenav-level.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2250
|
-
case 'pn-sidenav-link.cjs':
|
|
2251
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2252
|
-
/* webpackMode: "lazy" */
|
|
2253
|
-
'./pn-sidenav-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2254
|
-
case 'pn-sidenav-togglebutton.cjs':
|
|
2255
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2256
|
-
/* webpackMode: "lazy" */
|
|
2257
|
-
'./pn-sidenav-togglebutton.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2258
|
-
case 'pn-spotlight.cjs':
|
|
2259
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2260
|
-
/* webpackMode: "lazy" */
|
|
2261
|
-
'./pn-spotlight.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2262
|
-
case 'pn-stats-info.cjs':
|
|
2263
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2264
|
-
/* webpackMode: "lazy" */
|
|
2265
|
-
'./pn-stats-info.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2266
|
-
case 'pn-teaser-card.cjs':
|
|
2267
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2268
|
-
/* webpackMode: "lazy" */
|
|
2269
|
-
'./pn-teaser-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2270
|
-
case 'pn-find-service-and-price-result.cjs':
|
|
2271
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2272
|
-
/* webpackMode: "lazy" */
|
|
2273
|
-
'./pn-find-service-and-price-result.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2274
|
-
case 'pn-language-selector_9.cjs':
|
|
2275
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2276
|
-
/* webpackMode: "lazy" */
|
|
2277
|
-
'./pn-language-selector_9.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2278
|
-
case 'pn-proxio-findprice-result.cjs':
|
|
2279
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2280
|
-
/* webpackMode: "lazy" */
|
|
2281
|
-
'./pn-proxio-findprice-result.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2282
|
-
case 'pn-site-footer_2.cjs':
|
|
2283
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2284
|
-
/* webpackMode: "lazy" */
|
|
2285
|
-
'./pn-site-footer_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2286
|
-
case 'pn-stats-info-data.cjs':
|
|
2287
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2288
|
-
/* webpackMode: "lazy" */
|
|
2289
|
-
'./pn-stats-info-data.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2290
|
-
case 'pn-find-price-result.cjs':
|
|
2291
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2292
|
-
/* webpackMode: "lazy" */
|
|
2293
|
-
'./pn-find-price-result.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2294
|
-
case 'pn-mainnav-link.cjs':
|
|
2295
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2296
|
-
/* webpackMode: "lazy" */
|
|
2297
|
-
'./pn-mainnav-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2298
|
-
case 'pn-marketweb-input.cjs':
|
|
2299
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2300
|
-
/* webpackMode: "lazy" */
|
|
2301
|
-
'./pn-marketweb-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2302
|
-
case 'pn-marketweb-siteheader-login-button_5.cjs':
|
|
2303
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2304
|
-
/* webpackMode: "lazy" */
|
|
2305
|
-
'./pn-marketweb-siteheader-login-button_5.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2306
|
-
case 'pn-product-tile-info_2.cjs':
|
|
2307
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2308
|
-
/* webpackMode: "lazy" */
|
|
2309
|
-
'./pn-product-tile-info_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2310
|
-
case 'pn-choice-button.cjs':
|
|
2311
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2312
|
-
/* webpackMode: "lazy" */
|
|
2313
|
-
'./pn-choice-button.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2314
|
-
case 'pn-proxio-productcard_4.cjs':
|
|
2315
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2316
|
-
/* webpackMode: "lazy" */
|
|
2317
|
-
'./pn-proxio-productcard_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2318
|
-
case 'pn-marketweb-siteheader-login-linklist.cjs':
|
|
2319
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2320
|
-
/* webpackMode: "lazy" */
|
|
2321
|
-
'./pn-marketweb-siteheader-login-linklist.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2322
|
-
case 'pn-product-card_3.cjs':
|
|
2323
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2324
|
-
/* webpackMode: "lazy" */
|
|
2325
|
-
'./pn-product-card_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2326
|
-
case 'pn-titletag.cjs':
|
|
2327
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2328
|
-
/* webpackMode: "lazy" */
|
|
2329
|
-
'./pn-titletag.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
1828
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2333
|
-
/* @vite-ignore */
|
|
2334
1829
|
/* webpackInclude: /\.entry\.js$/ */
|
|
2335
1830
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
2336
1831
|
/* webpackMode: "lazy" */
|
|
@@ -2341,38 +1836,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2341
1836
|
return importedModule[exportName];
|
|
2342
1837
|
}, consoleError);
|
|
2343
1838
|
};
|
|
2344
|
-
const styles =
|
|
2345
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
2346
|
-
const doc = win.document || { head: {} };
|
|
2347
|
-
const H = (win.HTMLElement || class {
|
|
2348
|
-
});
|
|
2349
|
-
const plt = {
|
|
2350
|
-
$flags$: 0,
|
|
2351
|
-
$resourcesUrl$: '',
|
|
2352
|
-
jmp: (h) => h(),
|
|
2353
|
-
raf: (h) => requestAnimationFrame(h),
|
|
2354
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
2355
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2356
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
2357
|
-
};
|
|
2358
|
-
const supportsShadow = true;
|
|
2359
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
2360
|
-
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
2361
|
-
try {
|
|
2362
|
-
new CSSStyleSheet();
|
|
2363
|
-
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
2364
|
-
}
|
|
2365
|
-
catch (e) { }
|
|
2366
|
-
return false;
|
|
2367
|
-
})()
|
|
2368
|
-
;
|
|
1839
|
+
const styles = new Map();
|
|
2369
1840
|
const queueDomReads = [];
|
|
2370
1841
|
const queueDomWrites = [];
|
|
2371
1842
|
const queueTask = (queue, write) => (cb) => {
|
|
2372
1843
|
queue.push(cb);
|
|
2373
1844
|
if (!queuePending) {
|
|
2374
1845
|
queuePending = true;
|
|
2375
|
-
if (write && plt.$flags$ & 4 /*
|
|
1846
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
2376
1847
|
nextTick(flush);
|
|
2377
1848
|
}
|
|
2378
1849
|
else {
|
|
@@ -2421,5 +1892,4 @@ exports.getRenderingRef = getRenderingRef;
|
|
|
2421
1892
|
exports.h = h;
|
|
2422
1893
|
exports.promiseResolve = promiseResolve;
|
|
2423
1894
|
exports.registerInstance = registerInstance;
|
|
2424
|
-
exports.setNonce = setNonce;
|
|
2425
1895
|
exports.win = win;
|