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