@postnord/pn-marketweb-components 2.1.9 → 2.2.1
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 +39 -11
- 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.css +1 -4
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +560 -509
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +1 -1
- 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 +39 -11
- 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-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-9c18464d.system.entry.js +1 -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-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-dc714241.entry.js +1 -0
- 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
package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js
ADDED
|
@@ -0,0 +1,808 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Stencil Dev Server Client v2.22.2 | MIT Licensed | https://stenciljs.com
|
|
3
|
+
*/
|
|
4
|
+
var appErrorCss = "#dev-server-modal * { box-sizing: border-box !important; } #dev-server-modal { direction: ltr !important; display: block !important; position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 100000; margin: 0 !important; padding: 0 !important; font-family: -apple-system, 'Roboto', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important; font-size: 14px !important; line-height: 1.5 !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-size-adjust: none; word-wrap: break-word; color: #333 !important; background-color: white !important; box-sizing: border-box !important; overflow: hidden; user-select: auto; } #dev-server-modal-inner { position: relative !important; padding: 0 0 30px 0 !important; width: 100% !important; height: 100%; overflow-x: hidden; overflow-y: scroll; -webkit-overflow-scrolling: touch; } .dev-server-diagnostic { margin: 20px !important; border: 1px solid #ddd !important; border-radius: 3px !important; } .dev-server-diagnostic-masthead { padding: 8px 12px 12px 12px !important; } .dev-server-diagnostic-title { margin: 0 !important; font-weight: bold !important; color: #222 !important; } .dev-server-diagnostic-message { margin-top: 4px !important; color: #555 !important; } .dev-server-diagnostic-file { position: relative !important; border-top: 1px solid #ddd !important; } .dev-server-diagnostic-file-header { display: block !important; padding: 5px 10px !important; color: #555 !important; border-bottom: 1px solid #ddd !important; border-top-left-radius: 2px !important; border-top-right-radius: 2px !important; background-color: #f9f9f9 !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; } a.dev-server-diagnostic-file-header { color: #0000ee !important; text-decoration: underline !important; } a.dev-server-diagnostic-file-header:hover { text-decoration: none !important; background-color: #f4f4f4 !important; } .dev-server-diagnostic-file-name { font-weight: bold !important; } .dev-server-diagnostic-blob { overflow-x: auto !important; overflow-y: hidden !important; border-bottom-right-radius: 3px !important; border-bottom-left-radius: 3px !important; } .dev-server-diagnostic-table { margin: 0 !important; padding: 0 !important; border-spacing: 0 !important; border-collapse: collapse !important; border-width: 0 !important; border-style: none !important; -moz-tab-size: 2; tab-size: 2; } .dev-server-diagnostic-table td, .dev-server-diagnostic-table th { padding: 0 !important; border-width: 0 !important; border-style: none !important; } td.dev-server-diagnostic-blob-num { padding-right: 10px !important; padding-left: 10px !important; width: 1% !important; min-width: 50px !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; line-height: 20px !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; vertical-align: top !important; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: solid #eee !important; border-width: 0 1px 0 0 !important; } td.dev-server-diagnostic-blob-num::before { content: attr(data-line-number) !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num { background-color: #ffdddd !important; border-color: #ffc9c9 !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-code { background: rgba(255, 221, 221, 0.25) !important; z-index: -1; } .dev-server-diagnostic-open-in-editor td.dev-server-diagnostic-blob-num:hover { cursor: pointer; background-color: #ffffe3 !important; font-weight: bold; } .dev-server-diagnostic-open-in-editor.dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num:hover { background-color: #ffdada !important; } td.dev-server-diagnostic-blob-code { position: relative !important; padding-right: 10px !important; padding-left: 10px !important; line-height: 20px !important; vertical-align: top !important; overflow: visible !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; color: #333 !important; word-wrap: normal !important; white-space: pre !important; } td.dev-server-diagnostic-blob-code::before { content: '' !important; } .dev-server-diagnostic-error-chr { position: relative !important; } .dev-server-diagnostic-error-chr::before { position: absolute !important; z-index: -1; top: -3px !important; left: 0px !important; width: 8px !important; height: 20px !important; background-color: #ffdddd !important; content: '' !important; } /** * GitHub Gist Theme * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro * https://highlightjs.org/ */ .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; }";
|
|
5
|
+
|
|
6
|
+
const appError = (data) => {
|
|
7
|
+
const results = {
|
|
8
|
+
diagnostics: [],
|
|
9
|
+
status: null,
|
|
10
|
+
};
|
|
11
|
+
if (data && data.window && Array.isArray(data.buildResults.diagnostics)) {
|
|
12
|
+
const diagnostics = data.buildResults.diagnostics.filter((diagnostic) => diagnostic.level === 'error');
|
|
13
|
+
if (diagnostics.length > 0) {
|
|
14
|
+
const modal = getDevServerModal(data.window.document);
|
|
15
|
+
diagnostics.forEach((diagnostic) => {
|
|
16
|
+
results.diagnostics.push(diagnostic);
|
|
17
|
+
appendDiagnostic(data.window.document, data.openInEditor, modal, diagnostic);
|
|
18
|
+
});
|
|
19
|
+
results.status = 'error';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return results;
|
|
23
|
+
};
|
|
24
|
+
const appendDiagnostic = (doc, openInEditor, modal, diagnostic) => {
|
|
25
|
+
const card = doc.createElement('div');
|
|
26
|
+
card.className = 'dev-server-diagnostic';
|
|
27
|
+
const masthead = doc.createElement('div');
|
|
28
|
+
masthead.className = 'dev-server-diagnostic-masthead';
|
|
29
|
+
masthead.title = `${escapeHtml(diagnostic.type)} error: ${escapeHtml(diagnostic.code)}`;
|
|
30
|
+
card.appendChild(masthead);
|
|
31
|
+
const title = doc.createElement('div');
|
|
32
|
+
title.className = 'dev-server-diagnostic-title';
|
|
33
|
+
if (typeof diagnostic.header === 'string' && diagnostic.header.trim().length > 0) {
|
|
34
|
+
title.textContent = diagnostic.header;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
title.textContent = `${titleCase(diagnostic.type)} ${titleCase(diagnostic.level)}`;
|
|
38
|
+
}
|
|
39
|
+
masthead.appendChild(title);
|
|
40
|
+
const message = doc.createElement('div');
|
|
41
|
+
message.className = 'dev-server-diagnostic-message';
|
|
42
|
+
message.textContent = diagnostic.messageText;
|
|
43
|
+
masthead.appendChild(message);
|
|
44
|
+
const file = doc.createElement('div');
|
|
45
|
+
file.className = 'dev-server-diagnostic-file';
|
|
46
|
+
card.appendChild(file);
|
|
47
|
+
const isUrl = typeof diagnostic.absFilePath === 'string' && diagnostic.absFilePath.indexOf('http') === 0;
|
|
48
|
+
const canOpenInEditor = typeof openInEditor === 'function' && typeof diagnostic.absFilePath === 'string' && !isUrl;
|
|
49
|
+
if (isUrl) {
|
|
50
|
+
const fileHeader = doc.createElement('a');
|
|
51
|
+
fileHeader.href = diagnostic.absFilePath;
|
|
52
|
+
fileHeader.setAttribute('target', '_blank');
|
|
53
|
+
fileHeader.setAttribute('rel', 'noopener noreferrer');
|
|
54
|
+
fileHeader.className = 'dev-server-diagnostic-file-header';
|
|
55
|
+
const filePath = doc.createElement('span');
|
|
56
|
+
filePath.className = 'dev-server-diagnostic-file-path';
|
|
57
|
+
filePath.textContent = diagnostic.absFilePath;
|
|
58
|
+
fileHeader.appendChild(filePath);
|
|
59
|
+
file.appendChild(fileHeader);
|
|
60
|
+
}
|
|
61
|
+
else if (diagnostic.relFilePath) {
|
|
62
|
+
const fileHeader = doc.createElement(canOpenInEditor ? 'a' : 'div');
|
|
63
|
+
fileHeader.className = 'dev-server-diagnostic-file-header';
|
|
64
|
+
if (diagnostic.absFilePath) {
|
|
65
|
+
fileHeader.title = escapeHtml(diagnostic.absFilePath);
|
|
66
|
+
if (canOpenInEditor) {
|
|
67
|
+
addOpenInEditor(openInEditor, fileHeader, diagnostic.absFilePath, diagnostic.lineNumber, diagnostic.columnNumber);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const parts = diagnostic.relFilePath.split('/');
|
|
71
|
+
const fileName = doc.createElement('span');
|
|
72
|
+
fileName.className = 'dev-server-diagnostic-file-name';
|
|
73
|
+
fileName.textContent = parts.pop();
|
|
74
|
+
const filePath = doc.createElement('span');
|
|
75
|
+
filePath.className = 'dev-server-diagnostic-file-path';
|
|
76
|
+
filePath.textContent = parts.join('/') + '/';
|
|
77
|
+
fileHeader.appendChild(filePath);
|
|
78
|
+
fileHeader.appendChild(fileName);
|
|
79
|
+
file.appendChild(fileHeader);
|
|
80
|
+
}
|
|
81
|
+
if (diagnostic.lines && diagnostic.lines.length > 0) {
|
|
82
|
+
const blob = doc.createElement('div');
|
|
83
|
+
blob.className = 'dev-server-diagnostic-blob';
|
|
84
|
+
file.appendChild(blob);
|
|
85
|
+
const table = doc.createElement('table');
|
|
86
|
+
table.className = 'dev-server-diagnostic-table';
|
|
87
|
+
blob.appendChild(table);
|
|
88
|
+
prepareLines(diagnostic.lines).forEach((l) => {
|
|
89
|
+
const tr = doc.createElement('tr');
|
|
90
|
+
if (l.errorCharStart > 0) {
|
|
91
|
+
tr.classList.add('dev-server-diagnostic-error-line');
|
|
92
|
+
}
|
|
93
|
+
if (canOpenInEditor) {
|
|
94
|
+
tr.classList.add('dev-server-diagnostic-open-in-editor');
|
|
95
|
+
}
|
|
96
|
+
table.appendChild(tr);
|
|
97
|
+
const tdNum = doc.createElement('td');
|
|
98
|
+
tdNum.className = 'dev-server-diagnostic-blob-num';
|
|
99
|
+
if (l.lineNumber > 0) {
|
|
100
|
+
tdNum.setAttribute('data-line-number', l.lineNumber + '');
|
|
101
|
+
tdNum.title = escapeHtml(diagnostic.relFilePath) + ', line ' + l.lineNumber;
|
|
102
|
+
if (canOpenInEditor) {
|
|
103
|
+
const column = l.lineNumber === diagnostic.lineNumber ? diagnostic.columnNumber : 1;
|
|
104
|
+
addOpenInEditor(openInEditor, tdNum, diagnostic.absFilePath, l.lineNumber, column);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
tr.appendChild(tdNum);
|
|
108
|
+
const tdCode = doc.createElement('td');
|
|
109
|
+
tdCode.className = 'dev-server-diagnostic-blob-code';
|
|
110
|
+
tdCode.innerHTML = highlightError(l.text, l.errorCharStart, l.errorLength);
|
|
111
|
+
tr.appendChild(tdCode);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
modal.appendChild(card);
|
|
115
|
+
};
|
|
116
|
+
const addOpenInEditor = (openInEditor, elm, file, line, column) => {
|
|
117
|
+
if (elm.tagName === 'A') {
|
|
118
|
+
elm.href = '#open-in-editor';
|
|
119
|
+
}
|
|
120
|
+
if (typeof line !== 'number' || line < 1) {
|
|
121
|
+
line = 1;
|
|
122
|
+
}
|
|
123
|
+
if (typeof column !== 'number' || column < 1) {
|
|
124
|
+
column = 1;
|
|
125
|
+
}
|
|
126
|
+
elm.addEventListener('click', (ev) => {
|
|
127
|
+
ev.preventDefault();
|
|
128
|
+
ev.stopPropagation();
|
|
129
|
+
openInEditor({
|
|
130
|
+
file: file,
|
|
131
|
+
line: line,
|
|
132
|
+
column: column,
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
const getDevServerModal = (doc) => {
|
|
137
|
+
let outer = doc.getElementById(DEV_SERVER_MODAL);
|
|
138
|
+
if (!outer) {
|
|
139
|
+
outer = doc.createElement('div');
|
|
140
|
+
outer.id = DEV_SERVER_MODAL;
|
|
141
|
+
outer.setAttribute('role', 'dialog');
|
|
142
|
+
doc.body.appendChild(outer);
|
|
143
|
+
}
|
|
144
|
+
outer.innerHTML = `<style>${appErrorCss}</style><div id="${DEV_SERVER_MODAL}-inner"></div>`;
|
|
145
|
+
return doc.getElementById(`${DEV_SERVER_MODAL}-inner`);
|
|
146
|
+
};
|
|
147
|
+
const clearAppErrorModal = (data) => {
|
|
148
|
+
const appErrorElm = data.window.document.getElementById(DEV_SERVER_MODAL);
|
|
149
|
+
if (appErrorElm) {
|
|
150
|
+
appErrorElm.parentNode.removeChild(appErrorElm);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const escapeHtml = (unsafe) => {
|
|
154
|
+
if (typeof unsafe === 'number' || typeof unsafe === 'boolean') {
|
|
155
|
+
return unsafe.toString();
|
|
156
|
+
}
|
|
157
|
+
if (typeof unsafe === 'string') {
|
|
158
|
+
return unsafe
|
|
159
|
+
.replace(/&/g, '&')
|
|
160
|
+
.replace(/</g, '<')
|
|
161
|
+
.replace(/>/g, '>')
|
|
162
|
+
.replace(/"/g, '"')
|
|
163
|
+
.replace(/'/g, ''');
|
|
164
|
+
}
|
|
165
|
+
return '';
|
|
166
|
+
};
|
|
167
|
+
const titleCase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
168
|
+
const highlightError = (text, errorCharStart, errorLength) => {
|
|
169
|
+
if (typeof text !== 'string') {
|
|
170
|
+
return '';
|
|
171
|
+
}
|
|
172
|
+
const errorCharEnd = errorCharStart + errorLength;
|
|
173
|
+
return text
|
|
174
|
+
.split('')
|
|
175
|
+
.map((inputChar, charIndex) => {
|
|
176
|
+
let outputChar;
|
|
177
|
+
if (inputChar === `<`) {
|
|
178
|
+
outputChar = `<`;
|
|
179
|
+
}
|
|
180
|
+
else if (inputChar === `>`) {
|
|
181
|
+
outputChar = `>`;
|
|
182
|
+
}
|
|
183
|
+
else if (inputChar === `"`) {
|
|
184
|
+
outputChar = `"`;
|
|
185
|
+
}
|
|
186
|
+
else if (inputChar === `'`) {
|
|
187
|
+
outputChar = `'`;
|
|
188
|
+
}
|
|
189
|
+
else if (inputChar === `&`) {
|
|
190
|
+
outputChar = `&`;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
outputChar = inputChar;
|
|
194
|
+
}
|
|
195
|
+
if (charIndex >= errorCharStart && charIndex < errorCharEnd) {
|
|
196
|
+
outputChar = `<span class="dev-server-diagnostic-error-chr">${outputChar}</span>`;
|
|
197
|
+
}
|
|
198
|
+
return outputChar;
|
|
199
|
+
})
|
|
200
|
+
.join('');
|
|
201
|
+
};
|
|
202
|
+
const prepareLines = (orgLines) => {
|
|
203
|
+
const lines = JSON.parse(JSON.stringify(orgLines));
|
|
204
|
+
for (let i = 0; i < 100; i++) {
|
|
205
|
+
if (!eachLineHasLeadingWhitespace(lines)) {
|
|
206
|
+
return lines;
|
|
207
|
+
}
|
|
208
|
+
for (let i = 0; i < lines.length; i++) {
|
|
209
|
+
lines[i].text = lines[i].text.slice(1);
|
|
210
|
+
lines[i].errorCharStart--;
|
|
211
|
+
if (!lines[i].text.length) {
|
|
212
|
+
return lines;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return lines;
|
|
217
|
+
};
|
|
218
|
+
const eachLineHasLeadingWhitespace = (lines) => {
|
|
219
|
+
if (!lines.length) {
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
for (let i = 0; i < lines.length; i++) {
|
|
223
|
+
if (!lines[i].text || lines[i].text.length < 1) {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
const firstChar = lines[i].text.charAt(0);
|
|
227
|
+
if (firstChar !== ' ' && firstChar !== '\t') {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return true;
|
|
232
|
+
};
|
|
233
|
+
const DEV_SERVER_MODAL = `dev-server-modal`;
|
|
234
|
+
|
|
235
|
+
const emitBuildLog = (win, buildLog) => {
|
|
236
|
+
win.dispatchEvent(new CustomEvent(BUILD_LOG, { detail: buildLog }));
|
|
237
|
+
};
|
|
238
|
+
const emitBuildResults = (win, buildResults) => {
|
|
239
|
+
win.dispatchEvent(new CustomEvent(BUILD_RESULTS, { detail: buildResults }));
|
|
240
|
+
};
|
|
241
|
+
const emitBuildStatus = (win, buildStatus) => {
|
|
242
|
+
win.dispatchEvent(new CustomEvent(BUILD_STATUS, { detail: buildStatus }));
|
|
243
|
+
};
|
|
244
|
+
const onBuildLog = (win, cb) => {
|
|
245
|
+
win.addEventListener(BUILD_LOG, (ev) => {
|
|
246
|
+
cb(ev.detail);
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
const onBuildResults = (win, cb) => {
|
|
250
|
+
win.addEventListener(BUILD_RESULTS, (ev) => {
|
|
251
|
+
cb(ev.detail);
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
const onBuildStatus = (win, cb) => {
|
|
255
|
+
win.addEventListener(BUILD_STATUS, (ev) => {
|
|
256
|
+
cb(ev.detail);
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
const BUILD_LOG = `devserver:buildlog`;
|
|
260
|
+
const BUILD_RESULTS = `devserver:buildresults`;
|
|
261
|
+
const BUILD_STATUS = `devserver:buildstatus`;
|
|
262
|
+
|
|
263
|
+
const getHmrHref = (versionId, fileName, testUrl) => {
|
|
264
|
+
if (typeof testUrl === 'string' && testUrl.trim() !== '') {
|
|
265
|
+
if (getUrlFileName(fileName) === getUrlFileName(testUrl)) {
|
|
266
|
+
// only compare by filename w/out querystrings, not full path
|
|
267
|
+
return setHmrQueryString(testUrl, versionId);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return testUrl;
|
|
271
|
+
};
|
|
272
|
+
const getUrlFileName = (url) => {
|
|
273
|
+
// not using URL because IE11 doesn't support it
|
|
274
|
+
const splt = url.split('/');
|
|
275
|
+
return splt[splt.length - 1].split('&')[0].split('?')[0];
|
|
276
|
+
};
|
|
277
|
+
const parseQuerystring = (oldQs) => {
|
|
278
|
+
const newQs = {};
|
|
279
|
+
if (typeof oldQs === 'string') {
|
|
280
|
+
oldQs.split('&').forEach((kv) => {
|
|
281
|
+
const splt = kv.split('=');
|
|
282
|
+
newQs[splt[0]] = splt[1] ? splt[1] : '';
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
return newQs;
|
|
286
|
+
};
|
|
287
|
+
const stringifyQuerystring = (qs) => Object.keys(qs)
|
|
288
|
+
.map((key) => key + '=' + qs[key])
|
|
289
|
+
.join('&');
|
|
290
|
+
const setQueryString = (url, qsKey, qsValue) => {
|
|
291
|
+
// not using URL because IE11 doesn't support it
|
|
292
|
+
const urlSplt = url.split('?');
|
|
293
|
+
const urlPath = urlSplt[0];
|
|
294
|
+
const qs = parseQuerystring(urlSplt[1]);
|
|
295
|
+
qs[qsKey] = qsValue;
|
|
296
|
+
return urlPath + '?' + stringifyQuerystring(qs);
|
|
297
|
+
};
|
|
298
|
+
const setHmrQueryString = (url, versionId) => setQueryString(url, 's-hmr', versionId);
|
|
299
|
+
const updateCssUrlValue = (versionId, fileName, oldCss) => {
|
|
300
|
+
const reg = /url\((['"]?)(.*)\1\)/gi;
|
|
301
|
+
let result;
|
|
302
|
+
let newCss = oldCss;
|
|
303
|
+
while ((result = reg.exec(oldCss)) !== null) {
|
|
304
|
+
const url = result[2];
|
|
305
|
+
newCss = newCss.replace(url, getHmrHref(versionId, fileName, url));
|
|
306
|
+
}
|
|
307
|
+
return newCss;
|
|
308
|
+
};
|
|
309
|
+
const isLinkStylesheet = (elm) => elm.nodeName.toLowerCase() === 'link' &&
|
|
310
|
+
elm.href &&
|
|
311
|
+
elm.rel &&
|
|
312
|
+
elm.rel.toLowerCase() === 'stylesheet';
|
|
313
|
+
const isTemplate = (elm) => elm.nodeName.toLowerCase() === 'template' &&
|
|
314
|
+
!!elm.content &&
|
|
315
|
+
elm.content.nodeType === 11;
|
|
316
|
+
const setHmrAttr = (elm, versionId) => elm.setAttribute('data-hmr', versionId);
|
|
317
|
+
const hasShadowRoot = (elm) => !!elm.shadowRoot && elm.shadowRoot.nodeType === 11 && elm.shadowRoot !== elm;
|
|
318
|
+
const isElement = (elm) => !!elm && elm.nodeType === 1 && !!elm.getAttribute;
|
|
319
|
+
|
|
320
|
+
const hmrComponents = (elm, versionId, hmrTagNames) => {
|
|
321
|
+
const updatedTags = [];
|
|
322
|
+
hmrTagNames.forEach((hmrTagName) => {
|
|
323
|
+
hmrComponent(updatedTags, elm, versionId, hmrTagName);
|
|
324
|
+
});
|
|
325
|
+
return updatedTags.sort();
|
|
326
|
+
};
|
|
327
|
+
const hmrComponent = (updatedTags, elm, versionId, cmpTagName) => {
|
|
328
|
+
// drill down through every node in the page
|
|
329
|
+
// to include shadow roots and look for this
|
|
330
|
+
// component tag to run hmr() on
|
|
331
|
+
if (elm.nodeName.toLowerCase() === cmpTagName && typeof elm['s-hmr'] === 'function') {
|
|
332
|
+
elm['s-hmr'](versionId);
|
|
333
|
+
setHmrAttr(elm, versionId);
|
|
334
|
+
if (updatedTags.indexOf(cmpTagName) === -1) {
|
|
335
|
+
updatedTags.push(cmpTagName);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
if (hasShadowRoot(elm)) {
|
|
339
|
+
hmrComponent(updatedTags, elm.shadowRoot, versionId, cmpTagName);
|
|
340
|
+
}
|
|
341
|
+
if (elm.children) {
|
|
342
|
+
for (let i = 0; i < elm.children.length; i++) {
|
|
343
|
+
hmrComponent(updatedTags, elm.children[i], versionId, cmpTagName);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
const hmrExternalStyles = (elm, versionId, cssFileNames) => {
|
|
349
|
+
if (isLinkStylesheet(elm)) {
|
|
350
|
+
cssFileNames.forEach((cssFileName) => {
|
|
351
|
+
hmrStylesheetLink(elm, versionId, cssFileName);
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
if (isTemplate(elm)) {
|
|
355
|
+
hmrExternalStyles(elm.content, versionId, cssFileNames);
|
|
356
|
+
}
|
|
357
|
+
if (hasShadowRoot(elm)) {
|
|
358
|
+
hmrExternalStyles(elm.shadowRoot, versionId, cssFileNames);
|
|
359
|
+
}
|
|
360
|
+
if (elm.children) {
|
|
361
|
+
for (let i = 0; i < elm.children.length; i++) {
|
|
362
|
+
hmrExternalStyles(elm.children[i], versionId, cssFileNames);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return cssFileNames.sort();
|
|
366
|
+
};
|
|
367
|
+
const hmrStylesheetLink = (styleSheetElm, versionId, cssFileName) => {
|
|
368
|
+
const orgHref = styleSheetElm.getAttribute('href');
|
|
369
|
+
const newHref = getHmrHref(versionId, cssFileName, styleSheetElm.href);
|
|
370
|
+
if (newHref !== orgHref) {
|
|
371
|
+
styleSheetElm.setAttribute('href', newHref);
|
|
372
|
+
setHmrAttr(styleSheetElm, versionId);
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
const hmrImages = (win, doc, versionId, imageFileNames) => {
|
|
377
|
+
if (win.location.protocol !== 'file:' && doc.styleSheets) {
|
|
378
|
+
hmrStyleSheetsImages(doc, versionId, imageFileNames);
|
|
379
|
+
}
|
|
380
|
+
hmrImagesElements(win, doc.documentElement, versionId, imageFileNames);
|
|
381
|
+
return imageFileNames.sort();
|
|
382
|
+
};
|
|
383
|
+
const hmrStyleSheetsImages = (doc, versionId, imageFileNames) => {
|
|
384
|
+
const cssImageProps = Object.keys(doc.documentElement.style).filter((cssProp) => {
|
|
385
|
+
return cssProp.endsWith('Image');
|
|
386
|
+
});
|
|
387
|
+
for (let i = 0; i < doc.styleSheets.length; i++) {
|
|
388
|
+
hmrStyleSheetImages(cssImageProps, doc.styleSheets[i], versionId, imageFileNames);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
const hmrStyleSheetImages = (cssImageProps, styleSheet, versionId, imageFileNames) => {
|
|
392
|
+
try {
|
|
393
|
+
const cssRules = styleSheet.cssRules;
|
|
394
|
+
for (let i = 0; i < cssRules.length; i++) {
|
|
395
|
+
const cssRule = cssRules[i];
|
|
396
|
+
switch (cssRule.type) {
|
|
397
|
+
case CSSRule.IMPORT_RULE:
|
|
398
|
+
hmrStyleSheetImages(cssImageProps, cssRule.styleSheet, versionId, imageFileNames);
|
|
399
|
+
break;
|
|
400
|
+
case CSSRule.STYLE_RULE:
|
|
401
|
+
hmrStyleSheetRuleImages(cssImageProps, cssRule, versionId, imageFileNames);
|
|
402
|
+
break;
|
|
403
|
+
case CSSRule.MEDIA_RULE:
|
|
404
|
+
hmrStyleSheetImages(cssImageProps, cssRule, versionId, imageFileNames);
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
catch (e) {
|
|
410
|
+
console.error('hmrStyleSheetImages: ' + e);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
const hmrStyleSheetRuleImages = (cssImageProps, cssRule, versionId, imageFileNames) => {
|
|
414
|
+
cssImageProps.forEach((cssImageProp) => {
|
|
415
|
+
imageFileNames.forEach((imageFileName) => {
|
|
416
|
+
const oldCssText = cssRule.style[cssImageProp];
|
|
417
|
+
const newCssText = updateCssUrlValue(versionId, imageFileName, oldCssText);
|
|
418
|
+
if (oldCssText !== newCssText) {
|
|
419
|
+
cssRule.style[cssImageProp] = newCssText;
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
});
|
|
423
|
+
};
|
|
424
|
+
const hmrImagesElements = (win, elm, versionId, imageFileNames) => {
|
|
425
|
+
const tagName = elm.nodeName.toLowerCase();
|
|
426
|
+
if (tagName === 'img') {
|
|
427
|
+
hmrImgElement(elm, versionId, imageFileNames);
|
|
428
|
+
}
|
|
429
|
+
if (isElement(elm)) {
|
|
430
|
+
const styleAttr = elm.getAttribute('style');
|
|
431
|
+
if (styleAttr) {
|
|
432
|
+
hmrUpdateStyleAttr(elm, versionId, imageFileNames, styleAttr);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (tagName === 'style') {
|
|
436
|
+
hmrUpdateStyleElementUrl(elm, versionId, imageFileNames);
|
|
437
|
+
}
|
|
438
|
+
if (win.location.protocol !== 'file:' && isLinkStylesheet(elm)) {
|
|
439
|
+
hmrUpdateLinkElementUrl(elm, versionId, imageFileNames);
|
|
440
|
+
}
|
|
441
|
+
if (isTemplate(elm)) {
|
|
442
|
+
hmrImagesElements(win, elm.content, versionId, imageFileNames);
|
|
443
|
+
}
|
|
444
|
+
if (hasShadowRoot(elm)) {
|
|
445
|
+
hmrImagesElements(win, elm.shadowRoot, versionId, imageFileNames);
|
|
446
|
+
}
|
|
447
|
+
if (elm.children) {
|
|
448
|
+
for (let i = 0; i < elm.children.length; i++) {
|
|
449
|
+
hmrImagesElements(win, elm.children[i], versionId, imageFileNames);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
const hmrImgElement = (imgElm, versionId, imageFileNames) => {
|
|
454
|
+
imageFileNames.forEach((imageFileName) => {
|
|
455
|
+
const orgSrc = imgElm.getAttribute('src');
|
|
456
|
+
const newSrc = getHmrHref(versionId, imageFileName, orgSrc);
|
|
457
|
+
if (newSrc !== orgSrc) {
|
|
458
|
+
imgElm.setAttribute('src', newSrc);
|
|
459
|
+
setHmrAttr(imgElm, versionId);
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
};
|
|
463
|
+
const hmrUpdateStyleAttr = (elm, versionId, imageFileNames, oldStyleAttr) => {
|
|
464
|
+
imageFileNames.forEach((imageFileName) => {
|
|
465
|
+
const newStyleAttr = updateCssUrlValue(versionId, imageFileName, oldStyleAttr);
|
|
466
|
+
if (newStyleAttr !== oldStyleAttr) {
|
|
467
|
+
elm.setAttribute('style', newStyleAttr);
|
|
468
|
+
setHmrAttr(elm, versionId);
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
};
|
|
472
|
+
const hmrUpdateStyleElementUrl = (styleElm, versionId, imageFileNames) => {
|
|
473
|
+
imageFileNames.forEach((imageFileName) => {
|
|
474
|
+
const oldCssText = styleElm.innerHTML;
|
|
475
|
+
const newCssText = updateCssUrlValue(versionId, imageFileName, oldCssText);
|
|
476
|
+
if (newCssText !== oldCssText) {
|
|
477
|
+
styleElm.innerHTML = newCssText;
|
|
478
|
+
setHmrAttr(styleElm, versionId);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
};
|
|
482
|
+
const hmrUpdateLinkElementUrl = (linkElm, versionId, imageFileNames) => {
|
|
483
|
+
linkElm.href = setQueryString(linkElm.href, 's-hmr-urls', imageFileNames.sort().join(','));
|
|
484
|
+
linkElm.href = setHmrQueryString(linkElm.href, versionId);
|
|
485
|
+
linkElm.setAttribute('data-hmr', versionId);
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
const hmrInlineStyles = (elm, versionId, stylesUpdatedData) => {
|
|
489
|
+
const stylesUpdated = stylesUpdatedData;
|
|
490
|
+
if (isElement(elm) && elm.nodeName.toLowerCase() === 'style') {
|
|
491
|
+
stylesUpdated.forEach((styleUpdated) => {
|
|
492
|
+
hmrStyleElement(elm, versionId, styleUpdated);
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
if (isTemplate(elm)) {
|
|
496
|
+
hmrInlineStyles(elm.content, versionId, stylesUpdated);
|
|
497
|
+
}
|
|
498
|
+
if (hasShadowRoot(elm)) {
|
|
499
|
+
hmrInlineStyles(elm.shadowRoot, versionId, stylesUpdated);
|
|
500
|
+
}
|
|
501
|
+
if (elm.children) {
|
|
502
|
+
for (let i = 0; i < elm.children.length; i++) {
|
|
503
|
+
hmrInlineStyles(elm.children[i], versionId, stylesUpdated);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
return stylesUpdated
|
|
507
|
+
.map((s) => s.styleTag)
|
|
508
|
+
.reduce((arr, v) => {
|
|
509
|
+
if (arr.indexOf(v) === -1) {
|
|
510
|
+
arr.push(v);
|
|
511
|
+
}
|
|
512
|
+
return arr;
|
|
513
|
+
}, [])
|
|
514
|
+
.sort();
|
|
515
|
+
};
|
|
516
|
+
const hmrStyleElement = (elm, versionId, stylesUpdated) => {
|
|
517
|
+
const styleId = elm.getAttribute('sty-id');
|
|
518
|
+
if (styleId === stylesUpdated.styleId && stylesUpdated.styleText) {
|
|
519
|
+
// if we made it this far then it's a match!
|
|
520
|
+
// update the new style text
|
|
521
|
+
elm.innerHTML = stylesUpdated.styleText.replace(/\\n/g, '\n');
|
|
522
|
+
elm.setAttribute('data-hmr', versionId);
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
const hmrWindow = (data) => {
|
|
527
|
+
const results = {
|
|
528
|
+
updatedComponents: [],
|
|
529
|
+
updatedExternalStyles: [],
|
|
530
|
+
updatedInlineStyles: [],
|
|
531
|
+
updatedImages: [],
|
|
532
|
+
versionId: '',
|
|
533
|
+
};
|
|
534
|
+
try {
|
|
535
|
+
if (!data ||
|
|
536
|
+
!data.window ||
|
|
537
|
+
!data.window.document.documentElement ||
|
|
538
|
+
!data.hmr ||
|
|
539
|
+
typeof data.hmr.versionId !== 'string') {
|
|
540
|
+
return results;
|
|
541
|
+
}
|
|
542
|
+
const win = data.window;
|
|
543
|
+
const doc = win.document;
|
|
544
|
+
const hmr = data.hmr;
|
|
545
|
+
const documentElement = doc.documentElement;
|
|
546
|
+
const versionId = hmr.versionId;
|
|
547
|
+
results.versionId = versionId;
|
|
548
|
+
if (hmr.componentsUpdated) {
|
|
549
|
+
results.updatedComponents = hmrComponents(documentElement, versionId, hmr.componentsUpdated);
|
|
550
|
+
}
|
|
551
|
+
if (hmr.inlineStylesUpdated) {
|
|
552
|
+
results.updatedInlineStyles = hmrInlineStyles(documentElement, versionId, hmr.inlineStylesUpdated);
|
|
553
|
+
}
|
|
554
|
+
if (hmr.externalStylesUpdated) {
|
|
555
|
+
results.updatedExternalStyles = hmrExternalStyles(documentElement, versionId, hmr.externalStylesUpdated);
|
|
556
|
+
}
|
|
557
|
+
if (hmr.imagesUpdated) {
|
|
558
|
+
results.updatedImages = hmrImages(win, doc, versionId, hmr.imagesUpdated);
|
|
559
|
+
}
|
|
560
|
+
setHmrAttr(documentElement, versionId);
|
|
561
|
+
}
|
|
562
|
+
catch (e) {
|
|
563
|
+
console.error(e);
|
|
564
|
+
}
|
|
565
|
+
return results;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
const logBuild = (msg) => log(BLUE, 'Build', msg);
|
|
569
|
+
const logReload = (msg) => logWarn('Reload', msg);
|
|
570
|
+
const logWarn = (prefix, msg) => log(YELLOW, prefix, msg);
|
|
571
|
+
const logDisabled = (prefix, msg) => log(GRAY, prefix, msg);
|
|
572
|
+
const logDiagnostic = (diag) => {
|
|
573
|
+
const diagnostic = diag;
|
|
574
|
+
let color = RED;
|
|
575
|
+
let prefix = 'Error';
|
|
576
|
+
if (diagnostic.level === 'warn') {
|
|
577
|
+
color = YELLOW;
|
|
578
|
+
prefix = 'Warning';
|
|
579
|
+
}
|
|
580
|
+
if (diagnostic.header) {
|
|
581
|
+
prefix = diagnostic.header;
|
|
582
|
+
}
|
|
583
|
+
let msg = ``;
|
|
584
|
+
if (diagnostic.relFilePath) {
|
|
585
|
+
msg += diagnostic.relFilePath;
|
|
586
|
+
if (typeof diagnostic.lineNumber === 'number' && diagnostic.lineNumber > 0) {
|
|
587
|
+
msg += ', line ' + diagnostic.lineNumber;
|
|
588
|
+
if (typeof diagnostic.columnNumber === 'number' && diagnostic.columnNumber > 0) {
|
|
589
|
+
msg += ', column ' + diagnostic.columnNumber;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
msg += `\n`;
|
|
593
|
+
}
|
|
594
|
+
msg += diagnostic.messageText;
|
|
595
|
+
log(color, prefix, msg);
|
|
596
|
+
};
|
|
597
|
+
const log = (color, prefix, msg) => {
|
|
598
|
+
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.indexOf('Trident') > -1) {
|
|
599
|
+
console.log(prefix, msg);
|
|
600
|
+
}
|
|
601
|
+
else {
|
|
602
|
+
console.log.apply(console, [
|
|
603
|
+
'%c' + prefix,
|
|
604
|
+
`background: ${color}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;`,
|
|
605
|
+
msg,
|
|
606
|
+
]);
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
const YELLOW = `#f39c12`;
|
|
610
|
+
const RED = `#c0392b`;
|
|
611
|
+
const BLUE = `#3498db`;
|
|
612
|
+
const GRAY = `#717171`;
|
|
613
|
+
|
|
614
|
+
const initBuildProgress = (data) => {
|
|
615
|
+
const win = data.window;
|
|
616
|
+
const doc = win.document;
|
|
617
|
+
const barColor = `#5851ff`;
|
|
618
|
+
const errorColor = `#b70c19`;
|
|
619
|
+
let addBarTimerId;
|
|
620
|
+
let removeBarTimerId;
|
|
621
|
+
let opacityTimerId;
|
|
622
|
+
let incIntervalId;
|
|
623
|
+
let progressIncrease;
|
|
624
|
+
let currentProgress = 0;
|
|
625
|
+
function update() {
|
|
626
|
+
clearTimeout(opacityTimerId);
|
|
627
|
+
clearTimeout(removeBarTimerId);
|
|
628
|
+
const progressBar = getProgressBar();
|
|
629
|
+
if (!progressBar) {
|
|
630
|
+
createProgressBar();
|
|
631
|
+
addBarTimerId = setTimeout(update, 16);
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
progressBar.style.background = barColor;
|
|
635
|
+
progressBar.style.opacity = `1`;
|
|
636
|
+
progressBar.style.transform = `scaleX(${Math.min(1, displayProgress())})`;
|
|
637
|
+
if (incIntervalId == null) {
|
|
638
|
+
incIntervalId = setInterval(() => {
|
|
639
|
+
progressIncrease += Math.random() * 0.05 + 0.01;
|
|
640
|
+
if (displayProgress() < 0.9) {
|
|
641
|
+
update();
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
clearInterval(incIntervalId);
|
|
645
|
+
}
|
|
646
|
+
}, 800);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
function reset() {
|
|
650
|
+
clearInterval(incIntervalId);
|
|
651
|
+
progressIncrease = 0.05;
|
|
652
|
+
incIntervalId = null;
|
|
653
|
+
clearTimeout(opacityTimerId);
|
|
654
|
+
clearTimeout(addBarTimerId);
|
|
655
|
+
clearTimeout(removeBarTimerId);
|
|
656
|
+
const progressBar = getProgressBar();
|
|
657
|
+
if (progressBar) {
|
|
658
|
+
if (currentProgress >= 1) {
|
|
659
|
+
progressBar.style.transform = `scaleX(1)`;
|
|
660
|
+
}
|
|
661
|
+
opacityTimerId = setTimeout(() => {
|
|
662
|
+
try {
|
|
663
|
+
const progressBar = getProgressBar();
|
|
664
|
+
if (progressBar) {
|
|
665
|
+
progressBar.style.opacity = `0`;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
catch (e) { }
|
|
669
|
+
}, 150);
|
|
670
|
+
removeBarTimerId = setTimeout(() => {
|
|
671
|
+
try {
|
|
672
|
+
const progressBar = getProgressBar();
|
|
673
|
+
if (progressBar) {
|
|
674
|
+
progressBar.parentNode.removeChild(progressBar);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
catch (e) { }
|
|
678
|
+
}, 1000);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
function displayProgress() {
|
|
682
|
+
const p = currentProgress + progressIncrease;
|
|
683
|
+
return Math.max(0, Math.min(1, p));
|
|
684
|
+
}
|
|
685
|
+
reset();
|
|
686
|
+
onBuildLog(win, (buildLog) => {
|
|
687
|
+
currentProgress = buildLog.progress;
|
|
688
|
+
if (currentProgress >= 0 && currentProgress < 1) {
|
|
689
|
+
update();
|
|
690
|
+
}
|
|
691
|
+
else {
|
|
692
|
+
reset();
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
onBuildResults(win, (buildResults) => {
|
|
696
|
+
if (buildResults.hasError) {
|
|
697
|
+
const progressBar = getProgressBar();
|
|
698
|
+
if (progressBar) {
|
|
699
|
+
progressBar.style.transform = `scaleX(1)`;
|
|
700
|
+
progressBar.style.background = errorColor;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
reset();
|
|
704
|
+
});
|
|
705
|
+
onBuildStatus(win, (buildStatus) => {
|
|
706
|
+
if (buildStatus === 'disabled') {
|
|
707
|
+
reset();
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
if (doc.head.dataset.tmpl === 'tmpl-initial-load') {
|
|
711
|
+
update();
|
|
712
|
+
}
|
|
713
|
+
const PROGRESS_BAR_ID = `dev-server-progress-bar`;
|
|
714
|
+
function getProgressBar() {
|
|
715
|
+
return doc.getElementById(PROGRESS_BAR_ID);
|
|
716
|
+
}
|
|
717
|
+
function createProgressBar() {
|
|
718
|
+
const progressBar = doc.createElement('div');
|
|
719
|
+
progressBar.id = PROGRESS_BAR_ID;
|
|
720
|
+
progressBar.style.position = `absolute`;
|
|
721
|
+
progressBar.style.top = `0`;
|
|
722
|
+
progressBar.style.left = `0`;
|
|
723
|
+
progressBar.style.zIndex = `100001`;
|
|
724
|
+
progressBar.style.width = `100%`;
|
|
725
|
+
progressBar.style.height = `2px`;
|
|
726
|
+
progressBar.style.transform = `scaleX(0)`;
|
|
727
|
+
progressBar.style.opacity = `1`;
|
|
728
|
+
progressBar.style.background = barColor;
|
|
729
|
+
progressBar.style.transformOrigin = `left center`;
|
|
730
|
+
progressBar.style.transition = `transform .1s ease-in-out, opacity .5s ease-in`;
|
|
731
|
+
progressBar.style.contain = `strict`;
|
|
732
|
+
doc.body.appendChild(progressBar);
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
const initBuildStatus = (data) => {
|
|
737
|
+
const win = data.window;
|
|
738
|
+
const doc = win.document;
|
|
739
|
+
const iconElms = getFavIcons(doc);
|
|
740
|
+
iconElms.forEach((iconElm) => {
|
|
741
|
+
if (iconElm.href) {
|
|
742
|
+
iconElm.dataset.href = iconElm.href;
|
|
743
|
+
iconElm.dataset.type = iconElm.type;
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
onBuildStatus(win, (buildStatus) => {
|
|
747
|
+
updateBuildStatus(doc, buildStatus);
|
|
748
|
+
});
|
|
749
|
+
};
|
|
750
|
+
const updateBuildStatus = (doc, status) => {
|
|
751
|
+
const iconElms = getFavIcons(doc);
|
|
752
|
+
iconElms.forEach((iconElm) => {
|
|
753
|
+
updateFavIcon(iconElm, status);
|
|
754
|
+
});
|
|
755
|
+
};
|
|
756
|
+
const updateFavIcon = (linkElm, status) => {
|
|
757
|
+
if (status === 'pending') {
|
|
758
|
+
linkElm.href = ICON_PENDING;
|
|
759
|
+
linkElm.type = ICON_TYPE;
|
|
760
|
+
linkElm.setAttribute('data-status', status);
|
|
761
|
+
}
|
|
762
|
+
else if (status === 'error') {
|
|
763
|
+
linkElm.href = ICON_ERROR;
|
|
764
|
+
linkElm.type = ICON_TYPE;
|
|
765
|
+
linkElm.setAttribute('data-status', status);
|
|
766
|
+
}
|
|
767
|
+
else if (status === 'disabled') {
|
|
768
|
+
linkElm.href = ICON_DISABLED;
|
|
769
|
+
linkElm.type = ICON_TYPE;
|
|
770
|
+
linkElm.setAttribute('data-status', status);
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
linkElm.removeAttribute('data-status');
|
|
774
|
+
if (linkElm.dataset.href) {
|
|
775
|
+
linkElm.href = linkElm.dataset.href;
|
|
776
|
+
linkElm.type = linkElm.dataset.type;
|
|
777
|
+
}
|
|
778
|
+
else {
|
|
779
|
+
linkElm.href = ICON_DEFAULT;
|
|
780
|
+
linkElm.type = ICON_TYPE;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
const getFavIcons = (doc) => {
|
|
785
|
+
const iconElms = [];
|
|
786
|
+
const linkElms = doc.querySelectorAll('link');
|
|
787
|
+
for (let i = 0; i < linkElms.length; i++) {
|
|
788
|
+
if (linkElms[i].href &&
|
|
789
|
+
linkElms[i].rel &&
|
|
790
|
+
(linkElms[i].rel.indexOf('shortcut') > -1 || linkElms[i].rel.indexOf('icon') > -1)) {
|
|
791
|
+
iconElms.push(linkElms[i]);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
if (iconElms.length === 0) {
|
|
795
|
+
const linkElm = doc.createElement('link');
|
|
796
|
+
linkElm.rel = 'shortcut icon';
|
|
797
|
+
doc.head.appendChild(linkElm);
|
|
798
|
+
iconElms.push(linkElm);
|
|
799
|
+
}
|
|
800
|
+
return iconElms;
|
|
801
|
+
};
|
|
802
|
+
const ICON_DEFAULT = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4jUzeAAAAM3RSTlMAsGDs4wML8QEbBvr2FMhAM7+ILCUPnNzXrX04otO6j3RiT0ggzLSTcmtWUUWoZlknghZc2mZzAAACrklEQVR42u3dWXLiUAyFYWEwg40x8wxhSIAwJtH+99ZVeeinfriXVpWk5Hyr+C2VrgkAAAAAAAAAAAw5sZQ7aUhYypw07FjKC2ko2yxk2SQFgwYLOWSkYFhlIZ06KWhNWMhqRApGKxYyaZGCeoeFVIekIDuwkEaXFDSXLKRdkoYjS9mRhjlLSUjDO0s5kYYzS+mThn3OQsYqAbQQC7hZSgoGYgHUy0jBa42FvKkEUDERC6CCFIzeWEjtlRRkPbGAG5CCtCIWQAtS0ByzkHxPGvos5UEaNizlnTRsWconhbM4wTpSFHMTrFtKCroNFrLGBOsJLbGAWxWkoFiJBRAmWE/I1r4nWOmNheTeJ1gX0vDJUrYUweAEa04aHs5XePvc9wpPboJ1SCmOsRVkr04aromUEQEAgB9lxaZ++ATFpNDv6Y8qm1QdBk9QTAr9ni6mbFK7DJ6g2LQLXoHZlFCQdMY2nYJXYDb1g1dgNo2boSswm2Zp6ArMptCFyIVtCl2IlDmbNC0QcPEQcD8l4HLvAXdxHnBb5wG3QcDFQ8D9mIDrIeCiIeDiA25oNeA+EHDREHDxAbdmmxBwT0HARQbciW0KDbiEbQoNuB3bFBxwbTYJAfcUBFxkwFG/YlNJAADgxzCRcqUY9m7KGgNSUEx9H3XXO76Puv/OY5wedX/flHk+6j46v2maO79purPvm6Yz+75puua+b5q6Dd/PEsrNMyZfFM5gAMW+ymPtWciYV3ksBpBOwKUH3wHXXLKUM2l4cR5wG+cBlzgPuJ3zgJNb6FRwlP4Ln1X8wrOKeFbxP6Qz3wEn+KzilWLYe5UnMuDwY5BvD+cBt899B9zC+49Bqr4DrlXzHXDF1HfA1Tu+Ay5b+w649OY74OjoO+Bo7jzg7s4DDgAAAAAAAAAA/u0POrfnVIaqz/QAAAAASUVORK5CYII=';
|
|
803
|
+
const ICON_PENDING = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAjVBMVEUAAAD8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjLn7xn3AAAALnRSTlMAsFBgAaDxfPpAdTMcD/fs47kDBhVXJQpvLNbInIiBRvSqIb+TZ2OOONxdzUxpgKSpAAAAA69JREFUeNrt3FtvskAQxvERFQXFioqnCkqth572+3+8947dN00TliF5ZpP53ZOAveg/OzCklFJKKaWUUkoppQTZm77cCGFo+jIhhG/TlwchJAvTk/GIAA6x6Um+JoDti+nJ644A5h+mJ8eMALKj6cnHnAB2r80NLJ4jf3Vz+cuWANZ5cwPTM/l7by6PZwQwGptGQf4q++dLCOHdNIbkb2IvjwjAvYEf8pe6j4/wYxopr/9SQih4BXa3l5eEcJ7a++c9/gkSQE8bcCWvXwcrAjjYADrxHv8KCbi3JasgD5fm8i9IAG1swMXzDv0X2wDaEED21dzA5UDeVoPm8uUbAayvvAI42YA7EIDzA5pv8lc6/UoAoxMv4CZuvyKUpnHn9VNBAG6B7XkBtCeEO6/AbvbyihAiXsB92svfCcA9wap4j19DAmgWs37AZCrnBKvu8vgX9AmWE3BZh/6L7QkWJIA2RxtwHQpml9sAQp9gXWbkbxz4CdYDfIK1qk1j3IV9fPgJFlNECJXhYfSfsBHkhBCKwEd452nYI7wncwQJP8GKTU+uO0I4D/uSkVJKqXAkA5nK9icoIi3nrU9QRHrZtj5BESmetT5BEantPCh7NTJFrUdgMg1bj8BkSv1HYJ8RmjMQKf1HYDdC+/R/IyQFzbD4AxH+CIyPPxCJoEdQ/IFIMgXNEPkDkd8jMLQs5wRcTXA1J+By/BGO+0ovYwQGU3kPRLJfIzCkCSfgpgmhpc5AxD/gIkLb8wKO0DTgoNyaGQQecNfQAy7TgGtHA04DLtyA24UecHngAVdrwIkJuAitU8DJ1Dbghkam9gEnU+uAWxiRjhsdoXagI1TPgKNyIBO+ZpRSSrW3HfblTAA9/juPDwTAfiMK9VG3PY/hwX7Ubc9j+AoCWNWGp+NSH4HflE2IgXUEGPI3TTfmN4ndv2kSsRUJvpUn4W1FShbYb5rc84ySAtzKs3W3IgW4lWfO24q0zsFbebIjaysSjbtt5RHzUf0DHHCrAW8gVYEDzl0LGYW4lefB24uYQgOOfwN7dMANeW/k3DkBJ2CrUNE54GRsFYIHnPNR+iPEgHPWKo5DDDhnrWKeBRhwzlrFeNtlq5CgtYqzAAPODaBzgAH331rFAAOOqsDXKjL3IqboN7ILJ4BCDDh3r3SIAfd0AijEgHP3So/8wQNuvjRBbxVij5A6Bpy8EZJnwIkbIfkFnLwRkm/ASRshXbwDTtYICRRwt7BHqEoppZRSSimllFLqD/8AOXJZHefotiIAAAAASUVORK5CYII=';
|
|
804
|
+
const ICON_ERROR = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAkFBMVEUAAAD5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0H5Q0HYvLBZAAAAL3RSTlMAsGDjA/rsC/ElHRUBBssz9pFCvoh0UEcsD9ec3K19OLiiaNLEYlmoVeiCbmE+GuMl4I8AAAKQSURBVHja7d1njupQDIZhAymEUIZQQu9taN7/7q50pfl/TmTJtvQ9q3hzLDsEAAAAAAAAAACGzFjKiTS0WcqONMxZypg0fH5YyLFPChZdFnIYkILil4VcclLw3bCQ85IULM8sZPMlBfmFhfwWpGBwYCHdESnoH1nIz4c0jFnKnDTsWEqbNJxYyow03FjKlDTUKQtZqwTQXizgtgkpWGQsZKIScL0OCxmqBFC5EQugkhQshyyk0yMFgwkLyRakIGmJBdCeFPTXLCStScOUpdwogsEXrBdpuLKUJ4XDC9afKmUh94QUjLy/YGViAZRTOIMBtypJQXn2HUC5WMBleMFqILmzkLSicBZfsB6k4clSrqTh5XyEd3MeQHXqe4Qn94LVSiicwRHkJScNdVvKkgAAwI+qZdM0/AXFpE4v+AXFpKwIfkExKfR7ulyxSWkV/IJi0zx4BGbTm4IkW7ZpFjwCs2kaPAKzad0PHYHZtE1CR2A2TQahIzCbhnnwCMykVYmAi4aAQ8BZ4T3grgi4BhBwCDgbEHCNIOAQcCYg4BpCwCHgLEDAaYgPuDfbhIBrBAGHgDMhNOBo2rKpIgAA8KNoS6kplq2dsu6CFJQr30vd+dD3Uvf/nTLHS93J3flZwrHznaad852mE/veaXqw752mKvW90zTq+j5LWGS+r/J8xQKoU1AUa2chm1zlsXQWUifgkoPvgOsffQccjZ0H3Mx5wL2dB9zcecB9sJTePOBM3cU+46wiziq6C7hk6zvg3J9VfDK7vir0ch5wN+cBV6e+A27v/ccgme+AkxshTXKKYW6EFH0X29gIKTLgzI2QYgPO2ggpLuDsvaDEBZy9EVJcwBkcIT0IAAAAAAAAAADs+AdjeyF69/r87QAAAABJRU5ErkJggg==';
|
|
805
|
+
const ICON_DISABLED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAeFBMVEUAAAC4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7+4t7/uGGySAAAAJ3RSTlMAsGAE7OMcAQvxJRX69kHWyL8zq5GIdEcsD5zcfVg4uKLNa1JPZoK/xdPIAAACiklEQVR42u3dW5KqUAyF4QgCCggqIt7t9pb5z/Ccvjz2w95UqpJ0r28Uf2WTQAAAAAAAAAAAYMiWpTxJQ8JSTqThwVI2pKFZsJC3ghTs5izkmpKCcspCljNSkB9ZSLsnBfuWhRxzUjBbspBpSQrSKwuZr0lB8cZCFg1p2LCUB2k4sZSENNxYypY0nFlKTxqGmoUcClJwEQu4SUoKdmIBtEpJQZ6xkHeVAKqOYgFUkYL9OwvJclKQrsQCbkcK0olYAF1IQXFgIfVAGnqWcqZwFidYN4phb4L1onCYYMlPsLqUFKwxwRozwTIYcG1FCqrWdwBhgqU7wUo7FlJ7n2DdScPL+RPezfkT3tl5AA217yc89xMssYBbzUjDkEjZEwAA+NFMbOrDJygmZXnwBMWkaRk8QTFpvg6eoJi0aIInKDY9gp/AbEqCJyg2bYOfwGzqKUzPNh2K0Ccwm0IfRBK2KfSLkDvbFPog0tRsUlsh4EZAwP2SgKu9B9wdATcOAg4BZwACbgQEHALOCATcCAg4BJwVCLhREHB/LOAebFNwwC3YJATcKAi4yICjfmJTQwAA4EeZSBkojrWdsvmO4hjbKYtd6ra2Uxa71G1tp0xnqbvo+IPfpe4Nf3K703Ridr3T9OQPfnea7szseaepqX3vNH3NM/xe5fmeZ7i9yiMXQFlJEeydhYy4ymMygCICzmQAxQactbOQMQFnMoBiAs7iVaHIgDN3VSgq4AxeFYoOOGNXhbCUPkaJs4o4q/iXzyp2vgPO/VnFl/OAu/F/jq8KnZ0H3FD7DriL9x+DTH0HXJ75Driq9R1ws6XvgEuvvgOu6HwHHG18BxydnAfc03nAAQAAAAAAAADAz/4BoL2Us9XM2zMAAAAASUVORK5CYII=';
|
|
806
|
+
const ICON_TYPE = 'image/x-icon';
|
|
807
|
+
|
|
808
|
+
export { appError, clearAppErrorModal, emitBuildLog, emitBuildResults, emitBuildStatus, hmrWindow, initBuildProgress, initBuildStatus, logBuild, logDiagnostic, logDisabled, logReload, logWarn, onBuildLog, onBuildResults, onBuildStatus };
|