@postnord/pn-marketweb-components 4.1.0 → 4.1.2
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/{HeadingTag-19376e1f.js → HeadingTag-190a9892.js} +2 -2
- package/cjs/{HeadingTag-19376e1f.js.map → HeadingTag-190a9892.js.map} +1 -1
- package/cjs/{index-b02670c2.js → index-9a9efa1c.js} +10 -4
- package/cjs/index-9a9efa1c.js.map +1 -0
- package/cjs/{index-4067c6a5.js → index-a8de2b09.js} +2 -2
- package/cjs/{index-4067c6a5.js.map → index-a8de2b09.js.map} +1 -1
- package/cjs/index.cjs.js +1 -1
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +1 -1
- package/cjs/pn-chat-message_2.cjs.entry.js +1 -1
- package/cjs/pn-chat.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +18 -4
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-0c8256c7.js → pn-find-price-store-880fb647.js} +2 -2
- package/cjs/{pn-find-price-store-0c8256c7.js.map → pn-find-price-store-880fb647.js.map} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-13f060e0.js → pn-find-service-and-price-store-1b5945fe.js} +2 -2
- package/cjs/{pn-find-service-and-price-store-13f060e0.js.map → pn-find-service-and-price-store-1b5945fe.js.map} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-hero-block-international.cjs.entry.js +1 -1
- package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
- package/cjs/pn-level-up-modal.cjs.entry.js +11 -5
- package/cjs/pn-level-up-modal.cjs.entry.js.map +1 -1
- package/cjs/pn-level-up.cjs.entry.js +11 -9
- package/cjs/pn-level-up.cjs.entry.js.map +1 -1
- package/cjs/pn-line-shape.cjs.entry.js +1 -1
- package/cjs/pn-link-list.cjs.entry.js +1 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-5732f3ca.js → pn-mainnav-store-13aaa243.js} +2 -2
- package/cjs/{pn-mainnav-store-5732f3ca.js.map → pn-mainnav-store-13aaa243.js.map} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-icon.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +2 -2
- package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js +1 -1
- package/cjs/{pn-marketweb-siteheader-store-ce9d9ac7.js → pn-marketweb-siteheader-store-7548aafe.js} +2 -2
- package/cjs/{pn-marketweb-siteheader-store-ce9d9ac7.js.map → pn-marketweb-siteheader-store-7548aafe.js.map} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-table.cjs.entry.js +2 -2
- package/cjs/pn-media-block.cjs.entry.js +2 -2
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-play-on-scroll.cjs.entry.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
- package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
- package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
- package/cjs/{pn-profile-modal-store-16f8092a.js → pn-profile-modal-store-d96aaa77.js} +2 -2
- package/cjs/{pn-profile-modal-store-16f8092a.js.map → pn-profile-modal-store-d96aaa77.js.map} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-qr-code-generator.cjs.entry.js +25 -9
- package/cjs/pn-qr-code-generator.cjs.entry.js.map +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +1 -1
- package/cjs/pn-share-item.cjs.entry.js +1 -1
- package/cjs/pn-share.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
- package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
- package/cjs/{pn-sidenav-store-236c8806.js → pn-sidenav-store-41848c2e.js} +2 -2
- package/cjs/{pn-sidenav-store-236c8806.js.map → pn-sidenav-store-41848c2e.js.map} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +2 -2
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +53 -3
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +4 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js +30 -7
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js.map +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js.map +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up.js +9 -7
- package/collection/components/widgets/pn-level-up/pn-level-up.js.map +1 -1
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js +24 -8
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js.map +1 -1
- package/components/pn-dropdown-choice-adds-row.js +19 -3
- package/components/pn-dropdown-choice-adds-row.js.map +1 -1
- package/components/pn-level-up-modal2.js +12 -6
- package/components/pn-level-up-modal2.js.map +1 -1
- package/components/pn-level-up.js +9 -7
- package/components/pn-level-up.js.map +1 -1
- package/components/pn-qr-code-generator2.js +24 -8
- package/components/pn-qr-code-generator2.js.map +1 -1
- package/esm/{HeadingTag-e20016ab.js → HeadingTag-11a27410.js} +2 -2
- package/esm/{HeadingTag-e20016ab.js.map → HeadingTag-11a27410.js.map} +1 -1
- package/esm/{index-ae60ebec.js → index-a0a6fb88.js} +2 -2
- package/esm/{index-ae60ebec.js.map → index-a0a6fb88.js.map} +1 -1
- package/esm/{index-c311acd6.js → index-c0a4d8bd.js} +10 -4
- package/esm/index-c0a4d8bd.js.map +1 -0
- package/esm/index.js +1 -1
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +1 -1
- package/esm/pn-animated-tile.entry.js +1 -1
- package/esm/pn-app-banner.entry.js +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chart.entry.js +1 -1
- package/esm/pn-charts-card.entry.js +1 -1
- package/esm/pn-chat-message_2.entry.js +1 -1
- package/esm/pn-chat.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- package/esm/pn-cta-block.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +18 -4
- package/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-f97f2325.js → pn-find-price-store-8a0a5cf0.js} +2 -2
- package/esm/{pn-find-price-store-f97f2325.js.map → pn-find-price-store-8a0a5cf0.js.map} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-6553566d.js → pn-find-service-and-price-store-0302dd23.js} +2 -2
- package/esm/{pn-find-service-and-price-store-6553566d.js.map → pn-find-service-and-price-store-0302dd23.js.map} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-hero-block-international.entry.js +1 -1
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-level-up-modal.entry.js +11 -5
- package/esm/pn-level-up-modal.entry.js.map +1 -1
- package/esm/pn-level-up.entry.js +11 -9
- package/esm/pn-level-up.entry.js.map +1 -1
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-link-list.entry.js +1 -1
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-23387019.js → pn-mainnav-store-c98d831e.js} +2 -2
- package/esm/{pn-mainnav-store-23387019.js.map → pn-mainnav-store-c98d831e.js.map} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-icon.entry.js +1 -1
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +2 -2
- package/esm/pn-marketweb-siteheader-login-button_4.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js +1 -1
- package/esm/{pn-marketweb-siteheader-store-f60eb1e4.js → pn-marketweb-siteheader-store-69bcd7eb.js} +2 -2
- package/esm/{pn-marketweb-siteheader-store-f60eb1e4.js.map → pn-marketweb-siteheader-store-69bcd7eb.js.map} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-marketweb-table.entry.js +2 -2
- package/esm/pn-media-block.entry.js +2 -2
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-play-on-scroll.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +2 -2
- package/esm/pn-product-pricelist.entry.js +3 -3
- package/esm/pn-product-tile-info_2.entry.js +1 -1
- package/esm/pn-product-tile.entry.js +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm/pn-profile-modal-profile.entry.js +3 -3
- package/esm/{pn-profile-modal-store-5d651bd5.js → pn-profile-modal-store-2832b3e3.js} +2 -2
- package/esm/{pn-profile-modal-store-5d651bd5.js.map → pn-profile-modal-store-2832b3e3.js.map} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +2 -2
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-qr-code-generator.entry.js +25 -9
- package/esm/pn-qr-code-generator.entry.js.map +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +1 -1
- package/esm/pn-share-item.entry.js +1 -1
- package/esm/pn-share.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-e2038d79.js → pn-sidenav-store-e1da18e9.js} +2 -2
- package/esm/{pn-sidenav-store-e2038d79.js.map → pn-sidenav-store-e1da18e9.js.map} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +2 -2
- package/esm/pn-titletag.entry.js +1 -1
- package/esm/pn-usp-promoter.entry.js +1 -1
- package/package.json +3 -2
- package/pn-market-web-components/index.esm.js +1 -1
- package/pn-market-web-components/p-02094ddb.entry.js +2 -0
- package/pn-market-web-components/p-02094ddb.entry.js.map +1 -0
- package/pn-market-web-components/{p-41cdac85.entry.js → p-02cc3319.entry.js} +2 -2
- package/pn-market-web-components/{p-34a98554.entry.js → p-096cbbcb.entry.js} +2 -2
- package/pn-market-web-components/{p-79e4715c.entry.js → p-0b092a5c.entry.js} +2 -2
- package/pn-market-web-components/{p-17c43a96.entry.js → p-0b7d3d23.entry.js} +2 -2
- package/pn-market-web-components/{p-f28059f4.entry.js → p-0d67f0af.entry.js} +2 -2
- package/pn-market-web-components/{p-eb21f772.entry.js → p-0f2148b7.entry.js} +2 -2
- package/pn-market-web-components/{p-920ce5f2.entry.js → p-133c7313.entry.js} +2 -2
- package/pn-market-web-components/{p-230ef9aa.entry.js → p-1cb0f3fa.entry.js} +2 -2
- package/pn-market-web-components/{p-8836de82.js → p-2132ad75.js} +2 -2
- package/pn-market-web-components/{p-0b5a125d.entry.js → p-24bfee5d.entry.js} +2 -2
- package/pn-market-web-components/{p-9454075f.entry.js → p-2f324058.entry.js} +2 -2
- package/pn-market-web-components/{p-71db6836.entry.js → p-315b9cba.entry.js} +2 -2
- package/pn-market-web-components/{p-389a94e7.entry.js → p-317fcddf.entry.js} +2 -2
- package/pn-market-web-components/{p-b85c020c.entry.js → p-34cb1e2e.entry.js} +2 -2
- package/pn-market-web-components/{p-95d32ab4.entry.js → p-368aa69f.entry.js} +2 -2
- package/pn-market-web-components/{p-015127bf.entry.js → p-3737defb.entry.js} +2 -2
- package/pn-market-web-components/{p-5a981927.entry.js → p-3a298543.entry.js} +2 -2
- package/pn-market-web-components/{p-8a651698.entry.js → p-3d11fd8a.entry.js} +2 -2
- package/pn-market-web-components/{p-72f57a04.entry.js → p-44175dbd.entry.js} +2 -2
- package/pn-market-web-components/{p-4aedb76c.entry.js → p-46711387.entry.js} +2 -2
- package/pn-market-web-components/{p-7b4f9fdf.entry.js → p-4aa7cec5.entry.js} +2 -2
- package/pn-market-web-components/{p-930e2943.js → p-4bd72b91.js} +2 -2
- package/pn-market-web-components/{p-0fc01d3f.entry.js → p-4bf2c8ab.entry.js} +2 -2
- package/pn-market-web-components/{p-fb4cdf98.js → p-53039fa7.js} +2 -2
- package/pn-market-web-components/{p-c89cb749.entry.js → p-588525ac.entry.js} +2 -2
- package/pn-market-web-components/{p-84fc8e05.entry.js → p-5d70be75.entry.js} +2 -2
- package/pn-market-web-components/{p-d7170c0e.entry.js → p-5d8eb438.entry.js} +2 -2
- package/pn-market-web-components/{p-8d98f709.entry.js → p-5f904742.entry.js} +2 -2
- package/pn-market-web-components/{p-268dc1fa.entry.js → p-60e3ba3d.entry.js} +2 -2
- package/pn-market-web-components/p-62ce6700.entry.js +2 -0
- package/pn-market-web-components/p-62ce6700.entry.js.map +1 -0
- package/pn-market-web-components/{p-efab81a9.entry.js → p-6a5cb4ca.entry.js} +2 -2
- package/pn-market-web-components/{p-7ab49269.entry.js → p-6b6aeeab.entry.js} +2 -2
- package/pn-market-web-components/{p-bfd604f2.entry.js → p-6d263c6e.entry.js} +2 -2
- package/pn-market-web-components/{p-923aa6d2.entry.js → p-6d6ae33e.entry.js} +2 -2
- package/pn-market-web-components/{p-542f949d.entry.js → p-6e3c311a.entry.js} +2 -2
- package/pn-market-web-components/{p-b9590d81.entry.js → p-6f1bf16b.entry.js} +2 -2
- package/pn-market-web-components/{p-f9083b7a.js → p-70a9d4eb.js} +2 -2
- package/pn-market-web-components/{p-64851da0.entry.js → p-7526d49d.entry.js} +2 -2
- package/pn-market-web-components/{p-28d2f7fa.entry.js → p-778ae152.entry.js} +2 -2
- package/pn-market-web-components/p-778ae152.entry.js.map +1 -0
- package/pn-market-web-components/{p-ad9a7633.entry.js → p-7a721a2a.entry.js} +2 -2
- package/pn-market-web-components/{p-0b920554.js → p-885d59e8.js} +2 -2
- package/pn-market-web-components/{p-daa74e60.entry.js → p-89272a6b.entry.js} +2 -2
- package/pn-market-web-components/{p-a298a263.entry.js → p-8afc2d30.entry.js} +2 -2
- package/pn-market-web-components/{p-763a4e13.entry.js → p-8b506b9b.entry.js} +2 -2
- package/pn-market-web-components/p-8c42f598.js +2 -0
- package/pn-market-web-components/{p-ef668a3b.entry.js → p-92e8e287.entry.js} +2 -2
- package/pn-market-web-components/{p-8d874454.entry.js → p-9638d206.entry.js} +2 -2
- package/pn-market-web-components/{p-2a58d83b.entry.js → p-9b709942.entry.js} +2 -2
- package/pn-market-web-components/{p-da56370b.entry.js → p-9c0243fd.entry.js} +2 -2
- package/pn-market-web-components/{p-2c19edca.entry.js → p-9fc3711d.entry.js} +2 -2
- package/pn-market-web-components/{p-39b75c62.entry.js → p-a6941ea3.entry.js} +2 -2
- package/pn-market-web-components/{p-40bce1b1.entry.js → p-ab291285.entry.js} +2 -2
- package/pn-market-web-components/{p-35847eda.entry.js → p-ad807e2c.entry.js} +2 -2
- package/pn-market-web-components/p-ae5756dd.js +2 -0
- package/pn-market-web-components/{p-f4b14be8.entry.js → p-aee65729.entry.js} +2 -2
- package/pn-market-web-components/{p-659a4db5.entry.js → p-b20d2e1b.entry.js} +2 -2
- package/pn-market-web-components/{p-292db484.entry.js → p-b3605a96.entry.js} +2 -2
- package/pn-market-web-components/{p-82546a44.js → p-b3a13b6a.js} +3 -3
- package/pn-market-web-components/p-b3a13b6a.js.map +1 -0
- package/pn-market-web-components/{p-f0df7694.entry.js → p-b697755f.entry.js} +2 -2
- package/pn-market-web-components/{p-c4e353b3.entry.js → p-b9774a2d.entry.js} +2 -2
- package/pn-market-web-components/{p-ce87ff8a.entry.js → p-bb5a6883.entry.js} +2 -2
- package/pn-market-web-components/{p-65a046be.entry.js → p-c030c263.entry.js} +2 -2
- package/pn-market-web-components/{p-4f639380.entry.js → p-c6db243c.entry.js} +2 -2
- package/pn-market-web-components/{p-51f136f3.entry.js → p-c7d41f58.entry.js} +2 -2
- package/pn-market-web-components/{p-08b473e0.entry.js → p-d07efc2e.entry.js} +2 -2
- package/pn-market-web-components/{p-f28d0971.entry.js → p-d18b9aff.entry.js} +2 -2
- package/pn-market-web-components/{p-59bf4b98.entry.js → p-d3b4c8d7.entry.js} +2 -2
- package/pn-market-web-components/{p-85b42b44.entry.js → p-d49d093f.entry.js} +2 -2
- package/pn-market-web-components/p-d5d1098a.entry.js +2 -0
- package/pn-market-web-components/{p-3e197670.entry.js.map → p-d5d1098a.entry.js.map} +1 -1
- package/pn-market-web-components/{p-61bd81d7.entry.js → p-dc11fc75.entry.js} +2 -2
- package/pn-market-web-components/{p-7b7629c5.entry.js → p-de55f656.entry.js} +2 -2
- package/pn-market-web-components/{p-9088d3f5.entry.js → p-e07d8b18.entry.js} +2 -2
- package/pn-market-web-components/{p-619f2143.entry.js → p-e1c20440.entry.js} +2 -2
- package/pn-market-web-components/{p-60b77eed.entry.js → p-e1ccd651.entry.js} +2 -2
- package/pn-market-web-components/{p-793e1339.js → p-e3b2486a.js} +2 -2
- package/pn-market-web-components/{p-cbb1d57d.entry.js → p-e55e5b49.entry.js} +2 -2
- package/pn-market-web-components/{p-4e924d13.entry.js → p-e69d8395.entry.js} +2 -2
- package/pn-market-web-components/p-e69d8395.entry.js.map +1 -0
- package/pn-market-web-components/{p-d17af75d.entry.js → p-e9d495e3.entry.js} +2 -2
- package/pn-market-web-components/{p-809ed802.entry.js → p-eafffc4b.entry.js} +2 -2
- package/pn-market-web-components/{p-66da6e15.entry.js → p-ebba8dd2.entry.js} +2 -2
- package/pn-market-web-components/{p-d5c45da2.entry.js → p-ec7a8e5a.entry.js} +2 -2
- package/pn-market-web-components/{p-7db6ef34.entry.js → p-ed5c0dcc.entry.js} +2 -2
- package/pn-market-web-components/{p-19bbac6d.entry.js → p-f6c5c4de.entry.js} +2 -2
- package/pn-market-web-components/{p-ad282b7c.entry.js → p-f962fd3e.entry.js} +2 -2
- package/pn-market-web-components/{p-3a936c5d.entry.js → p-f97e58b8.entry.js} +2 -2
- package/pn-market-web-components/{p-3d10bc37.entry.js → p-fc5c33e7.entry.js} +2 -2
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
- package/types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.d.ts +2 -0
- package/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.d.ts +3 -1
- package/types/components/widgets/pn-level-up/pn-level-up.d.ts +2 -0
- package/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.d.ts +3 -2
- package/types/components.d.ts +22 -2
- package/umd/modules/@postnord/web-components/cjs/alert_exclamation_circle-BiBEJK9P.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/alert_info_circle-BaN88M1m.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/app-globals-DztCprK-.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/arrow_left-Crkz484c.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/arrow_right-CABi9Wkp.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/check-CQU2BD5S.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/check_circle-BSQcdFEJ.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/chevron_down-BLU6_yOG.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/chevron_right-CApgqZb0.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/close-Bn5ieKko.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/colors-Dzlq0FRO.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/{index-Bbyn8a0b.js → index-CNdVg5VI.js} +1 -4
- package/umd/modules/@postnord/web-components/cjs/{index-ChnvH99O.js → index-CfUQZtlH.js} +412 -304
- package/umd/modules/@postnord/web-components/cjs/index.cjs.js +11 -6
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -3
- package/umd/modules/@postnord/web-components/cjs/open_in_new-B-zmn5xr.js +0 -3
- package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +3 -4
- package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +5 -6
- package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +13 -8
- package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +6 -5
- package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +11 -8
- package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +7 -6
- package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +10 -7
- package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +3 -4
- package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +20 -19
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +52 -21
- package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +7 -6
- package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +10 -7
- package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +7 -6
- package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +8 -7
- package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +6 -5
- package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +46 -22
- package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +9 -6
- package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +29 -11
- package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +16 -13
- package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +13 -8
- package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +6 -5
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +3 -4
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +12 -7
- package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +11 -8
- package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +326 -0
- package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +9 -6
- package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +9 -8
- package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +11 -5
- package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +7 -8
- package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +3 -4
- package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +11 -8
- package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +20 -11
- package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +7 -6
- package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +7 -6
- package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +6 -5
- package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +12 -8
- package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +4 -5
- package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -4
- package/umd/modules/@postnord/web-components/collection/collection-manifest.json +3 -2
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.js +10 -6
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/translation.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-button/pn-button.js +4 -3
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-button-dropdown/pn-button-dropdown.js +4 -3
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-read-only-button/pn-read-only-button.js +2 -2
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-tag/pn-tag.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js +3 -3
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js +2 -2
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/translation.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js +2 -2
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js +2 -2
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/translation.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/translation.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.css +69 -27
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +36 -15
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.css +38 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +42 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload-error.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +17 -10
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +49 -10
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +57 -17
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +63 -22
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +48 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +417 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +905 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +53 -14
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +31 -2
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +54 -5
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +45 -14
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +3 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/urls.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +3 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -2
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +3 -3
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +3 -3
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/translations.js +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/date/index.js +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/helpers.js +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/mixins/index.js +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/types.js +0 -1
- package/umd/modules/@postnord/web-components/collection/index.js +1 -1
- package/umd/modules/@postnord/web-components/components/alert_exclamation_circle.js +1 -7
- package/umd/modules/@postnord/web-components/components/alert_info_circle.js +1 -7
- package/umd/modules/@postnord/web-components/components/arrow_left.js +1 -7
- package/umd/modules/@postnord/web-components/components/arrow_right.js +1 -7
- package/umd/modules/@postnord/web-components/components/check.js +1 -7
- package/umd/modules/@postnord/web-components/components/check_circle.js +1 -7
- package/umd/modules/@postnord/web-components/components/chevron_down.js +1 -7
- package/umd/modules/@postnord/web-components/components/chevron_right.js +1 -10
- package/umd/modules/@postnord/web-components/components/close.js +1 -7
- package/umd/modules/@postnord/web-components/components/colors.js +1 -81
- package/umd/modules/@postnord/web-components/components/helpers.js +1 -186
- package/umd/modules/@postnord/web-components/components/index.d.ts +3 -0
- package/umd/modules/@postnord/web-components/components/index.js +1 -52
- package/umd/modules/@postnord/web-components/components/index2.js +1 -71
- package/umd/modules/@postnord/web-components/components/open_in_new.js +1 -7
- package/umd/modules/@postnord/web-components/components/pn-accordion-row.js +1 -152
- package/umd/modules/@postnord/web-components/components/pn-accordion.js +1 -62
- package/umd/modules/@postnord/web-components/components/pn-action-menu.js +1 -456
- package/umd/modules/@postnord/web-components/components/pn-button-dropdown.js +1 -151
- package/umd/modules/@postnord/web-components/components/pn-button.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-button2.js +1 -278
- package/umd/modules/@postnord/web-components/components/pn-card.js +1 -145
- package/umd/modules/@postnord/web-components/components/pn-checkbox.js +1 -157
- package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -82
- package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -301
- package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1333
- package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -116
- package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -523
- package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -217
- package/umd/modules/@postnord/web-components/components/pn-header.js +1 -114
- package/umd/modules/@postnord/web-components/components/pn-icon.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-icon2.js +1 -68
- package/umd/modules/@postnord/web-components/components/pn-illustration.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-illustration2.js +1 -84
- package/umd/modules/@postnord/web-components/components/pn-input.js +1 -378
- package/umd/modules/@postnord/web-components/components/pn-input2.js +5 -0
- package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -244
- package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -722
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -193
- package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -79
- package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -62
- package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -347
- package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -297
- package/umd/modules/@postnord/web-components/components/pn-progress-bar.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-progress-bar2.js +1 -116
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js +1 -96
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator.js +1 -62
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js +1 -143
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -175
- package/umd/modules/@postnord/web-components/components/pn-range.d.ts +11 -0
- package/umd/modules/@postnord/web-components/components/pn-range.js +5 -0
- package/umd/modules/@postnord/web-components/components/pn-read-only-button.js +1 -153
- package/umd/modules/@postnord/web-components/components/pn-search-field.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -192
- package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -74
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -168
- package/umd/modules/@postnord/web-components/components/pn-select.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -106
- package/umd/modules/@postnord/web-components/components/pn-spinner.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -50
- package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -163
- package/umd/modules/@postnord/web-components/components/pn-table.js +1 -52
- package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -224
- package/umd/modules/@postnord/web-components/components/pn-tag.js +1 -85
- package/umd/modules/@postnord/web-components/components/pn-text-link.js +1 -9
- package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -78
- package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -120
- package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -118
- package/umd/modules/@postnord/web-components/components/pn-toast.js +1 -210
- package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -102
- package/umd/modules/@postnord/web-components/components/pn-tooltip.js +1 -123
- package/umd/modules/@postnord/web-components/components/pn-wizard.js +1 -437
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -179
- package/umd/modules/@postnord/web-components/esm/alert_exclamation_circle-B88w-Zxn.js +0 -3
- package/umd/modules/@postnord/web-components/esm/alert_info_circle-BTqkgfeH.js +0 -3
- package/umd/modules/@postnord/web-components/esm/app-globals-Dh478Si7.js +0 -3
- package/umd/modules/@postnord/web-components/esm/arrow_left-CQaMdITw.js +0 -3
- package/umd/modules/@postnord/web-components/esm/arrow_right-D_UyW-KH.js +0 -3
- package/umd/modules/@postnord/web-components/esm/check-BpI8peGn.js +0 -3
- package/umd/modules/@postnord/web-components/esm/check_circle-D4GZ__oQ.js +0 -3
- package/umd/modules/@postnord/web-components/esm/chevron_down-DrYFvs2M.js +0 -3
- package/umd/modules/@postnord/web-components/esm/chevron_right-B6SVpr61.js +0 -3
- package/umd/modules/@postnord/web-components/esm/close-BvuWkoyY.js +0 -3
- package/umd/modules/@postnord/web-components/esm/colors-C_nYl55V.js +0 -3
- package/umd/modules/@postnord/web-components/esm/{index-BNA0ko5y.js → index-CAEP792y.js} +409 -304
- package/umd/modules/@postnord/web-components/esm/{index-CJTbRJfo.js → index-CosyroON.js} +1 -4
- package/umd/modules/@postnord/web-components/esm/index.js +11 -6
- package/umd/modules/@postnord/web-components/esm/loader.js +3 -4
- package/umd/modules/@postnord/web-components/esm/open_in_new-IFVOY5Gf.js +0 -3
- package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +3 -4
- package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +5 -6
- package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +13 -8
- package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +6 -5
- package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +11 -8
- package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +7 -6
- package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +10 -7
- package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +3 -4
- package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +20 -19
- package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +52 -21
- package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +7 -6
- package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +10 -7
- package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +7 -6
- package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +8 -7
- package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +6 -5
- package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +46 -22
- package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +9 -6
- package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +29 -11
- package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +16 -13
- package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +13 -8
- package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +6 -5
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +3 -4
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +12 -7
- package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +11 -8
- package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +324 -0
- package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +9 -6
- package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +9 -8
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +11 -5
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +7 -8
- package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +3 -4
- package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +11 -8
- package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +20 -11
- package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +7 -6
- package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +7 -6
- package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +6 -5
- package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +12 -8
- package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +4 -5
- package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -5
- package/umd/modules/@postnord/web-components/hydrate/index.d.ts +12 -0
- package/umd/modules/@postnord/web-components/hydrate/index.js +6041 -2029
- package/umd/modules/@postnord/web-components/hydrate/index.mjs +6040 -2030
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/config-flags.d.ts +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +1625 -61
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +1625 -61
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.d.ts +4826 -14645
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.iterable.d.ts +25 -103
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.wellknown.d.ts +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.sharedmemory.d.ts +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.intl.d.ts +1 -25
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es5.d.ts +2 -9
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.d.ts +0 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.float16.d.ts +0 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.d.ts +1342 -4598
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.iterable.d.ts +19 -72
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +27894 -17484
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +12 -12
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +3 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +1685 -119
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.cjs +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +468 -341
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +3 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +2258 -466
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +2188 -448
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/jsx-dev-runtime.cjs +7 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/jsx-dev-runtime.d.ts +41 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/jsx-dev-runtime.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/jsx-runtime.cjs +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/jsx-runtime.d.ts +40 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/jsx-runtime.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +48 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +62 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +11 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +87 -4
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +2353 -548
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-dev-runtime.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-dev-runtime.js +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-runtime.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-runtime.js +9 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +435 -383
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +4 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +436 -383
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +28 -4
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1635 -52
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +3 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +40 -40
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +1844 -183
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-browser.d.ts +1 -1
- package/umd/modules/@postnord/web-components/package.json +20 -20
- package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-01ac1c67.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0e94a4dd.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0ed2ee53.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-109ba1fc.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1a3c49ba.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2610f8ab.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a364778.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a682ff9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2cce8a9f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2f4ad4a4.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-306ec758.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-38e44ed0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3c96cb61.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3d2cac86.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3d459401.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3deb5a9e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-50116c0d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-502b8430.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5b7c1333.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-67f55491.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-838c17b9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-849d48c6.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-89aaa3c8.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8b2b6f5d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-97ffc4b3.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-B6SVpr61.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-B88w-Zxn.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BTqkgfeH.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BlM_xfdt.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BpI8peGn.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BvuWkoyY.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +6 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-CQaMdITw.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-C_nYl55V.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-D4GZ__oQ.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-D_UyW-KH.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-Dh478Si7.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-DrYFvs2M.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-IFVOY5Gf.js +1 -2
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b0710b87.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b8c4423b.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c0ae367c.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c3e851f9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c4c4c75b.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d1e27524.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d214e930.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d7091312.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-db2b7e5d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e83de0b1.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ea50ecd2.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-edc28eee.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -2
- package/umd/modules/@postnord/web-components/readme.md +97 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +27 -26
- package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +9 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-range/pn-range.d.ts +141 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +3 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +10 -8
- package/umd/modules/@postnord/web-components/types/components.d.ts +410 -0
- package/umd/modules/@postnord/web-components/types/index.d.ts +1 -0
- package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +87 -4
- package/umd/modules/@postnord/web-components/vscode-data.json +160 -35
- package/vscode-data.json +9 -9
- package/cjs/index-b02670c2.js.map +0 -1
- package/esm/index-c311acd6.js.map +0 -1
- package/pn-market-web-components/p-28d2f7fa.entry.js.map +0 -1
- package/pn-market-web-components/p-3e197670.entry.js +0 -2
- package/pn-market-web-components/p-4e924d13.entry.js.map +0 -1
- package/pn-market-web-components/p-72828265.js +0 -2
- package/pn-market-web-components/p-82546a44.js.map +0 -1
- package/pn-market-web-components/p-d75a2f7c.entry.js +0 -2
- package/pn-market-web-components/p-d75a2f7c.entry.js.map +0 -1
- package/pn-market-web-components/p-dc2ee6f8.entry.js +0 -2
- package/pn-market-web-components/p-dc2ee6f8.entry.js.map +0 -1
- package/pn-market-web-components/p-fe466661.js +0 -2
- package/umd/modules/@postnord/web-components/cjs/alert_exclamation_circle-BiBEJK9P.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/alert_info_circle-BaN88M1m.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/app-globals-DztCprK-.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/arrow_left-Crkz484c.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/arrow_right-CABi9Wkp.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/check-CQU2BD5S.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/check_circle-BSQcdFEJ.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/chevron_down-BLU6_yOG.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/chevron_right-CApgqZb0.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/close-Bn5ieKko.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/colors-Dzlq0FRO.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/index-Bbyn8a0b.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/index-ChnvH99O.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/index.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/open_in_new-B-zmn5xr.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-accordion.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-action-menu.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-button.pn-spinner.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-card.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-checkbox.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-counter.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-fieldset.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-file-upload.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-footer.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-header.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-icon.pn-tag.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-illustration.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-input.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-modal.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-multiselect.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-pagination.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-radio-button.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-search-field.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-segment.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-select.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tab.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-table.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tablist.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-text-link.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-textarea.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tile.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-toast.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tooltip.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-wizard.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.entry.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/translation.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-button/pn-button.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-button-dropdown/pn-button-dropdown.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-read-only-button/pn-read-only-button.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/content/pn-tag/pn-tag.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/translation.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/translation.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/translation.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload-error.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/urls.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/translations.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/date/index.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/helpers.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/mixins/index.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/globals/types.js.map +0 -1
- package/umd/modules/@postnord/web-components/collection/index.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/alert_exclamation_circle.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/alert_info_circle.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/arrow_left.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/arrow_right.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/check.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/check_circle.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/chevron_down.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/chevron_right.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/close.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/colors.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/helpers.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/index.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/index2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/open_in_new.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-accordion-row.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-accordion.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-action-menu.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-button-dropdown.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-button.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-button2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-card.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-checkbox.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-choice-chip.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-counter.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-date-picker.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-fieldset.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-file-upload.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-footer.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-header.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-icon.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-icon2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-illustration.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-illustration2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-input.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-modal.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-multiselect.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-pagination.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-bar.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-bar2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-read-only-button.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-segment.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-select.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-select2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-spinner.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-spinner2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-tab.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-table.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-tablist.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-tag.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-text-link.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-text-link2.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-textarea.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-tile.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-toast.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-tooltip.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-wizard.js.map +0 -1
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/alert_exclamation_circle-B88w-Zxn.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/alert_info_circle-BTqkgfeH.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/app-globals-Dh478Si7.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/arrow_left-CQaMdITw.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/arrow_right-D_UyW-KH.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/check-BpI8peGn.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/check_circle-D4GZ__oQ.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/chevron_down-DrYFvs2M.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/chevron_right-B6SVpr61.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/close-BvuWkoyY.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/colors-C_nYl55V.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/index-BNA0ko5y.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/index-CJTbRJfo.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/index.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/loader.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/open_in_new-IFVOY5Gf.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-button.pn-spinner.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-card.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-header.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-icon.pn-tag.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-input.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-table.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/esm/postnord-web-components.js.map +0 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.error.d.ts +0 -24
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.sharedmemory.d.ts +0 -25
- package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/loader.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0b73e708.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0b73e708.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-13d5a525.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-13d5a525.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-16aacb54.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-16aacb54.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1943dc9a.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1943dc9a.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1ab03b27.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1ab03b27.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-26f6191c.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-26f6191c.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2abae92e.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2abae92e.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-34d50f65.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-34d50f65.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-37e91e60.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-37e91e60.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-40e79be6.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-40e79be6.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-4306cd57.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-4306cd57.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-4d17461c.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-4d17461c.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-56a6680a.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-56a6680a.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-61269e0d.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-61269e0d.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6894a9d1.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6894a9d1.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-68c63ef9.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-68c63ef9.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-72a8abdf.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-72a8abdf.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8662ed7c.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8662ed7c.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-86b58ebf.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-86b58ebf.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8c66a482.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8c66a482.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8d356d3e.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8d356d3e.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8ec90dfa.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8ec90dfa.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8fff1887.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8fff1887.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-983152d9.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-983152d9.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9884ede8.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9884ede8.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9e8f6ffa.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9e8f6ffa.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-B6SVpr61.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-B88w-Zxn.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BNA0ko5y.js +0 -7
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BNA0ko5y.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BTqkgfeH.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BpI8peGn.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-BvuWkoyY.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-C18BEeVU.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-C18BEeVU.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-CQaMdITw.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-C_nYl55V.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-D4GZ__oQ.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-D_UyW-KH.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-Dh478Si7.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-DrYFvs2M.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-IFVOY5Gf.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a6bb25f4.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a6bb25f4.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa2d25dc.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa2d25dc.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ab18b769.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ab18b769.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-afb1f37a.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-afb1f37a.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b0ce2c3d.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b0ce2c3d.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b6449612.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b6449612.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b6bf5958.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b6bf5958.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ba6de886.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ba6de886.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c0c9b98e.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c0c9b98e.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c9dd5e8b.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c9dd5e8b.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-cd527042.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-cd527042.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ce2a97e3.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ce2a97e3.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d096c083.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d096c083.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-da0b4675.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-da0b4675.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-da7b4e15.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-da7b4e15.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e78da8bd.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e78da8bd.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e9955b50.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e9955b50.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ee2a687f.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ee2a687f.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-f5b054fb.entry.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-f5b054fb.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-accordion-row.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-accordion.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-action-menu.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-button-dropdown.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-button.pn-spinner.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-card.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-checkbox.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-choice-chip.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-counter.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-date-picker.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-fieldset.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-file-upload.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-footer.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-header.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-icon.pn-tag.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-illustration.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-input.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-modal.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-multiselect.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-ocr-search.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-page-nav-dropdown-item.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-page-nav-item.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-page-nav.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-pagination.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-progress-bar.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-progress-indicator-step.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-progress-indicator.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-progress-stepper.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-radio-button.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-read-only-button.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-search-field.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-segment.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-segmented-control.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-select.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-tab.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-table.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-tablist.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-text-link.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-textarea.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-tile.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-toast.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-toggle-switch.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-tooltip.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-wizard.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/pn-zipcode-search.entry.esm.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js.map +0 -1
- /package/pn-market-web-components/{p-41cdac85.entry.js.map → p-02cc3319.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-34a98554.entry.js.map → p-096cbbcb.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-79e4715c.entry.js.map → p-0b092a5c.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-17c43a96.entry.js.map → p-0b7d3d23.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f28059f4.entry.js.map → p-0d67f0af.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-eb21f772.entry.js.map → p-0f2148b7.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-920ce5f2.entry.js.map → p-133c7313.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-230ef9aa.entry.js.map → p-1cb0f3fa.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8836de82.js.map → p-2132ad75.js.map} +0 -0
- /package/pn-market-web-components/{p-0b5a125d.entry.js.map → p-24bfee5d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-9454075f.entry.js.map → p-2f324058.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-71db6836.entry.js.map → p-315b9cba.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-389a94e7.entry.js.map → p-317fcddf.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-b85c020c.entry.js.map → p-34cb1e2e.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-95d32ab4.entry.js.map → p-368aa69f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-015127bf.entry.js.map → p-3737defb.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-5a981927.entry.js.map → p-3a298543.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8a651698.entry.js.map → p-3d11fd8a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-72f57a04.entry.js.map → p-44175dbd.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-4aedb76c.entry.js.map → p-46711387.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-7b4f9fdf.entry.js.map → p-4aa7cec5.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-930e2943.js.map → p-4bd72b91.js.map} +0 -0
- /package/pn-market-web-components/{p-0fc01d3f.entry.js.map → p-4bf2c8ab.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-fb4cdf98.js.map → p-53039fa7.js.map} +0 -0
- /package/pn-market-web-components/{p-c89cb749.entry.js.map → p-588525ac.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-84fc8e05.entry.js.map → p-5d70be75.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-d7170c0e.entry.js.map → p-5d8eb438.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8d98f709.entry.js.map → p-5f904742.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-268dc1fa.entry.js.map → p-60e3ba3d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-efab81a9.entry.js.map → p-6a5cb4ca.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-7ab49269.entry.js.map → p-6b6aeeab.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-bfd604f2.entry.js.map → p-6d263c6e.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-923aa6d2.entry.js.map → p-6d6ae33e.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-542f949d.entry.js.map → p-6e3c311a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-b9590d81.entry.js.map → p-6f1bf16b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f9083b7a.js.map → p-70a9d4eb.js.map} +0 -0
- /package/pn-market-web-components/{p-64851da0.entry.js.map → p-7526d49d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-ad9a7633.entry.js.map → p-7a721a2a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-0b920554.js.map → p-885d59e8.js.map} +0 -0
- /package/pn-market-web-components/{p-daa74e60.entry.js.map → p-89272a6b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-a298a263.entry.js.map → p-8afc2d30.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-763a4e13.entry.js.map → p-8b506b9b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-fe466661.js.map → p-8c42f598.js.map} +0 -0
- /package/pn-market-web-components/{p-ef668a3b.entry.js.map → p-92e8e287.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8d874454.entry.js.map → p-9638d206.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-2a58d83b.entry.js.map → p-9b709942.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-da56370b.entry.js.map → p-9c0243fd.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-2c19edca.entry.js.map → p-9fc3711d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-39b75c62.entry.js.map → p-a6941ea3.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-40bce1b1.entry.js.map → p-ab291285.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-35847eda.entry.js.map → p-ad807e2c.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-72828265.js.map → p-ae5756dd.js.map} +0 -0
- /package/pn-market-web-components/{p-f4b14be8.entry.js.map → p-aee65729.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-659a4db5.entry.js.map → p-b20d2e1b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-292db484.entry.js.map → p-b3605a96.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f0df7694.entry.js.map → p-b697755f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-c4e353b3.entry.js.map → p-b9774a2d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-ce87ff8a.entry.js.map → p-bb5a6883.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-65a046be.entry.js.map → p-c030c263.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-4f639380.entry.js.map → p-c6db243c.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-51f136f3.entry.js.map → p-c7d41f58.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-08b473e0.entry.js.map → p-d07efc2e.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f28d0971.entry.js.map → p-d18b9aff.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-59bf4b98.entry.js.map → p-d3b4c8d7.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-85b42b44.entry.js.map → p-d49d093f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-61bd81d7.entry.js.map → p-dc11fc75.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-7b7629c5.entry.js.map → p-de55f656.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-9088d3f5.entry.js.map → p-e07d8b18.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-619f2143.entry.js.map → p-e1c20440.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-60b77eed.entry.js.map → p-e1ccd651.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-793e1339.js.map → p-e3b2486a.js.map} +0 -0
- /package/pn-market-web-components/{p-cbb1d57d.entry.js.map → p-e55e5b49.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-d17af75d.entry.js.map → p-e9d495e3.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-809ed802.entry.js.map → p-eafffc4b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-66da6e15.entry.js.map → p-ebba8dd2.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-d5c45da2.entry.js.map → p-ec7a8e5a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-7db6ef34.entry.js.map → p-ed5c0dcc.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-19bbac6d.entry.js.map → p-f6c5c4de.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-ad282b7c.entry.js.map → p-f962fd3e.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-3a936c5d.entry.js.map → p-f97e58b8.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-3d10bc37.entry.js.map → p-fc5c33e7.entry.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-action-menu.js","sourceRoot":"","sources":["../../../../src/components/buttons/pn-action-menu/pn-action-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAA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,IAAI,EAChD,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,uBACf,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EACrC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,EACxC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,GAClC;gBACD,IAAI,CAAC,UAAU,EAAE,CACd,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, State, Watch, Element, h, Host, Event, EventEmitter, Listen, Mixin } from '@stencil/core';\nimport { HTMLStencilElement } from '@stencil/core/internal';\nimport { animateHeightFactory } from '@/globals/mixins';\n\nimport { awaitTopbar, en, getMenuWidth, getTotalHeightOffset, isSmallScreen, ripple, uuidv4 } from '@/index';\nimport type {\n PnLanguages,\n PnActionMenuItem,\n Components,\n PnActionMenuInput,\n PnActionMenuGroup,\n PnMeasurements,\n} from '@/index';\n\nimport { translations, PnMenuTextProp } from './translation';\n\nimport { chevron_down, chevron_left, chevron_right, open_in_new } from 'pn-design-assets/pn-assets/icons.js';\n\n/**\n * Create a list of actions in an accessible way.\n *\n * Option types include:\n *\n * - Regular button, click and it will collapse the menu,\n * - Checkbox/radio, toggle the option on/off\n * - Link, behaves like a regular `a[href]` element.\n *\n * You can group these actions in groups and/or sub menus.\n *\n * - `group`, an array of options. The label will act as a title for the items.\n * - `options`, an array of options. These items will appear in a sub-menu that can be toggled.\n *\n * @since v7.13.0\n * @see {@link PnActionMenuItem}\n */\n@Component({\n tag: 'pn-action-menu',\n styleUrl: 'pn-action-menu.scss',\n})\nexport class PnActionMenu extends Mixin(animateHeightFactory) {\n private readonly id: string = `pn-action-menu-${uuidv4()}`;\n\n private menuButtonId: string = `${this.id}-button`;\n private menuListId: string = `${this.id}-list`;\n\n private menuTrigger: HTMLPnButtonElement;\n private menuContainer: HTMLDivElement;\n private menuList: HTMLMenuElement;\n\n private timeout: NodeJS.Timeout;\n\n /** 16em */\n private readonly menuWidth: number = 256;\n\n @Element() private hostElement: HTMLElement;\n\n @State() private smallMenu: boolean = null;\n @State() private upwards: boolean = false;\n\n @State() private activeSubmenu: PnActionMenuItem['value'][] = [];\n\n /** Array of action menu options. @see {@link PnActionMenuItem} */\n @Prop() options: PnActionMenuItem[] = [];\n /** Set any prop from the `pn-button` component here. @see {@link Components.PnButton} */\n @Prop() button: Components.PnButton;\n\n /** Set a custom ID for the menu. */\n @Prop() menuId?: string = this.id;\n /** Manually set the language. */\n @Prop({ mutable: true }) language?: PnLanguages = null;\n\n /** Open/close the action menu manually. @category Features */\n @Prop({ mutable: true, reflect: true }) open?: boolean = false;\n /** Prefer that the menu open upwards, if there is enough space. @category Features */\n @Prop() menuUp?: boolean = false;\n /** Prefer that the submenus opens to the left, if there is enough space. @category Features */\n @Prop() menuLeft?: boolean = false;\n\n /** Emitted when the menu is opened or closed. */\n @Event() private menuToggle: EventEmitter<{ open: boolean }>;\n /** Emitted when the menu is fully hidden/visible after the animation has played. */\n @Event() private menuVisible: EventEmitter<{ visible: boolean }>;\n /** Emitted when an option is clicked (button, link, input or submenus). */\n @Event() private menuOption: EventEmitter<{\n /** Which type of menu item was clicked. */\n type: 'button' | 'link' | 'input' | 'submenu';\n /** If its an `input` type (checkbox/radio), it will be a generic `Event` (ChangeEvent) instead of `MouseEvent`. */\n click: MouseEvent | Event;\n /** The full {@link PnActionMenuItem} object. */\n option: PnActionMenuItem;\n /** If the submenu is open/closed. */\n open?: Boolean;\n }>;\n\n @Watch('options')\n handleOptions() {\n this.setMenuLayout();\n }\n\n @Watch('open')\n openHandler() {\n this.setAnimationDuration();\n\n requestAnimationFrame(() => {\n if (this.open && !this.isMoving()) {\n this.setOffset();\n this.setMenuLayout();\n }\n\n this.dropdownHandler();\n\n this.menuToggle.emit({ open: this.open });\n\n clearTimeout(this.timeout);\n this.timeout = setTimeout(() => {\n if (!this.open) {\n this.activeSubmenu = [];\n const subMenus = this.hostElement.querySelectorAll<HTMLUListElement>('[data-x]');\n Array.from(subMenus).forEach(el => {\n el.removeAttribute('data-x');\n el.removeAttribute('data-y');\n });\n }\n\n this.menuVisible.emit({ visible: this.open });\n }, this.animationDuration);\n });\n }\n\n @Watch('menuId')\n handleMenuId() {\n this.menuButtonId = `${this.menuId}-button`;\n this.menuListId = `${this.menuId}-list`;\n }\n\n @Listen('resize', { target: 'window' })\n handleResize() {\n if (this.open) this.toggleActionMenu(false);\n }\n\n async componentWillLoad() {\n if (!this.options.length) console.warn(`${this.hostElement.localName}: No options set.`);\n\n this.handleMenuId();\n this.setAnimationDuration();\n\n if (this.language !== null) await awaitTopbar(this.hostElement);\n }\n\n componentDidLoad() {\n this.setOffset();\n\n requestAnimationFrame(() => this.open && this.dropdownHandler());\n }\n\n private translate(prop: PnMenuTextProp) {\n return translations[prop][this.language || en];\n }\n\n private globalEvents = (event: PointerEvent | KeyboardEvent) => {\n const target = event.target as HTMLElement;\n const isWithinActionMenu = target?.closest(this.hostElement.localName);\n if (!isWithinActionMenu) this.closeEachSubMenu(true);\n };\n\n private addGlobalEventListeners() {\n const root: Document = this.hostElement.getRootNode() as Document;\n\n root.addEventListener('click', this.globalEvents);\n }\n\n private removeGlobalEventListeners() {\n const root: Document = this.hostElement.getRootNode() as Document;\n\n root.removeEventListener('click', this.globalEvents);\n }\n\n /** Open/close the action menu. */\n private toggleActionMenu(state?: boolean) {\n this.open = state ?? !this.open;\n }\n\n private setMenuLayout() {\n if (!this.menuContainer) return;\n\n if (!this.isMoving()) this.resetMaxHeight();\n\n const measurements = this.getMenuMeasurements();\n\n this.setDirection(measurements);\n this.setMenuSize(measurements);\n this.setMaxHeight(measurements);\n }\n\n private setDirection({ hUp, hDown, sUp, sDown }: PnMeasurements) {\n const fitsUpwards = sUp > hUp;\n const fitsDownards = sDown > hDown;\n const moreSpaceDown = sDown > sUp;\n this.upwards = (this.menuUp && fitsUpwards) || (!fitsDownards && !moreSpaceDown);\n }\n\n private setMenuSize({ hUp, hDown, sUp, sDown }: PnMeasurements) {\n const isWidthSmall = isSmallScreen();\n const menuFits = this.upwards ? sUp > hUp : sDown > hDown;\n const isSmall = isWidthSmall || !menuFits;\n\n if (isSmall !== this.smallMenu) {\n this.smallMenu = isSmall;\n }\n }\n\n private setMaxHeight({ hUp, hDown, sUp, sDown }: PnMeasurements) {\n if (this.smallMenu) {\n const heightUp = hUp > sUp ? hUp - 16 : hUp;\n const heightDown = hDown > sDown ? hDown - 8 : hDown;\n this.hostElement.style.setProperty('--pn-menu-height', `${this.upwards ? heightUp : heightDown}px`);\n } else this.resetMaxHeight();\n }\n\n private resetMaxHeight() {\n this.hostElement.style.setProperty('--pn-menu-height', 'unset');\n }\n\n private getRect(element: HTMLStencilElement | HTMLElement): DOMRect {\n return element.getBoundingClientRect();\n }\n\n private getMenuMeasurements(): PnMeasurements {\n const allLists = Array.from(this.menuContainer.querySelectorAll('menu'));\n const maxHeight = Math.max(...allLists.map(el => el.scrollHeight));\n\n const rectButton = this.getRect(this.menuTrigger);\n const rectMenu = this.getRect(this.menuContainer);\n\n /** Measurements upwards. */\n const sUp = rectButton.top - getTotalHeightOffset();\n const hUp = sUp > maxHeight ? maxHeight : sUp;\n\n /** Measurements downwards. */\n const sDown = innerHeight - rectMenu.top;\n const hDown = sDown > maxHeight ? maxHeight : sDown;\n\n return {\n hUp,\n hDown,\n sUp,\n sDown,\n };\n }\n\n private setOffset() {\n const data = this.getRect(this.hostElement);\n const sideMenuWidth = getMenuWidth();\n\n // Calculate potential menu position\n const menuLeft = data.left;\n const menuRight = data.left + this.menuWidth;\n\n // Define boundaries\n const leftBoundary = sideMenuWidth + 16; // Left menu + buffer\n const rightBoundary = innerWidth - 16; // Right edge - buffer\n\n let offset = 0;\n\n // Check if menu would overlap left menu or go off left edge\n if (menuLeft < leftBoundary) {\n offset = leftBoundary - menuLeft;\n }\n // Check if menu would go off right edge\n else if (menuRight > rightBoundary) {\n offset = rightBoundary - menuRight;\n }\n\n if (this.menuContainer) this.menuContainer.style.setProperty('--pn-action-menu-offset', `${offset}px`);\n }\n\n private getListId(option: PnActionMenuItem) {\n return `pn-menu-${option.value}-list`;\n }\n\n private getButtonId(option: PnActionMenuItem) {\n return `pn-menu-${option.value}-button`;\n }\n\n private getTriggerIcon() {\n if (this.button?.icon) return;\n return chevron_down;\n }\n\n /** Set the path of open sub menus. */\n private getSubMenuPath(options: PnActionMenuItem[], value: string, path = []): string[] {\n for (const item of options) {\n const newPath = [...path, item.value];\n if (item.value === value) return newPath;\n\n if (item.options || item.group) {\n const result = this.getSubMenuPath(item.options || item.group, value, newPath);\n if (result) return result;\n }\n }\n return null;\n }\n\n private closeEachSubMenu(preventFocus: boolean = false) {\n if (!preventFocus) this.menuTrigger?.querySelector('button')?.focus({ preventScroll: true });\n\n const interval = setInterval(() => {\n if (this.smallMenu || this.activeSubmenu.length === 0) {\n clearInterval(interval);\n this.toggleActionMenu(false);\n } else {\n this.activeSubmenu.pop();\n this.activeSubmenu = [...this.activeSubmenu];\n }\n }, 150);\n }\n\n private escButton(event: KeyboardEvent, option: PnActionMenuItem) {\n const { key } = event;\n\n if (key === 'Escape') {\n event.preventDefault();\n event.stopImmediatePropagation();\n\n this.isSubmenuActive(option.value) ? this.toggleSub(option) : this.toggleActionMenu();\n }\n }\n\n // Animation Start\n\n private dropdownHandler() {\n if (this.open) {\n this.addGlobalEventListeners();\n this.openDropdown(this.menuContainer, this.menuList.clientHeight);\n } else {\n this.removeGlobalEventListeners();\n this.closeDropdown(this.menuContainer, this.menuList.clientHeight);\n }\n }\n\n // Animation end\n\n private async optionSelect(option: PnActionMenuItem, click: MouseEvent | Event) {\n const type = option?.options?.length ? 'submenu' : !!option.input ? 'input' : option.href ? 'link' : 'button';\n const isSubMenu = type === 'submenu';\n\n if (isSubMenu) this.toggleSub(option);\n else if (type === 'button') this.closeEachSubMenu();\n else if (type === 'input') option.checked = (click.target as HTMLInputElement).checked;\n\n this.menuOption.emit({\n option,\n type,\n click,\n open: isSubMenu ? this.isSubmenuActive(option.value) : null,\n });\n\n const target = click.target as HTMLElement;\n const element =\n target.localName === 'input'\n ? (target.nextElementSibling as HTMLElement)\n : target.className === 'pn-action-menu-button'\n ? target\n : target.closest<HTMLElement>('.pn-action-menu-button');\n\n const { x, width, y, top } = this.getRect(element as HTMLElement);\n const clientCor = { clientX: x + width - 24, clientY: y - top };\n\n ripple(click.type === 'click' ? (click as MouseEvent) : clientCor, element);\n\n this.menuContainer.scrollTo({ top: 0 });\n }\n\n /** Toggle individual sub-menus inside the action menu by using the `option['value']`. */\n private toggleSub(option: PnActionMenuItem) {\n const { value } = option;\n\n const path = this.getSubMenuPath(this.options, value);\n const isActive = this.activeSubmenu.includes(value);\n isActive && path.splice(this.activeSubmenu.indexOf(value), 1);\n\n const item = this.hostElement.querySelector<HTMLElement>(`#${this.getListId(option)}`);\n const data = this.getRect(item);\n\n const spaceLeft = data.left;\n const spaceRight = innerWidth - data.right - 8;\n\n const fitsLeft = spaceLeft > data.width;\n const fitsRight = spaceRight > data.width;\n\n const climbUp = this.menuUp && data.top - data.height > 0;\n const yDirection = climbUp ? 'top' : 'bottom';\n\n if (!isActive && !item.dataset.x)\n item.setAttribute(\n 'data-x',\n this.menuLeft && fitsLeft ? 'left' : fitsRight ? 'right' : fitsLeft ? 'left' : 'center',\n );\n if (!isActive && !item.dataset.y) item.setAttribute('data-y', yDirection);\n\n if (JSON.stringify(path) === JSON.stringify(this.activeSubmenu))\n this.activeSubmenu = this.activeSubmenu.filter(item => item !== value);\n else this.activeSubmenu = [...path];\n }\n\n /** Check if a sub-menu is active. */\n private isSubmenuActive(value: string): boolean {\n return this.activeSubmenu.includes(value);\n }\n\n private isMenuActive() {\n const isRootSubInsideGroup = this.options.find(({ value }) => this.activeSubmenu.every(val => val === value));\n return this.smallMenu && (this.activeSubmenu?.length === 0 || isRootSubInsideGroup);\n }\n\n private isCurrentSubMenu(value: string) {\n return Boolean(this.activeSubmenu[this.activeSubmenu.length - 1] === value);\n }\n\n private getOptionTrailing(option: PnActionMenuItem) {\n const useButtonIcon = option.options?.length && chevron_right;\n const useTrailingIcon = option.trailingIcon;\n const useLinkIcon = option.target === '_blank' && open_in_new;\n\n /** If the user has defined a trialing icon, use it first. */\n const icon = useButtonIcon || useTrailingIcon || useLinkIcon;\n\n if (icon) {\n return <pn-icon icon={icon} color=\"blue700\" data-suffix data-active={this.isSubmenuActive(option.value)} />;\n }\n if (option.suffix) {\n return <span class=\"pn-action-menu-item-suffix\">{option.suffix}</span>;\n }\n }\n\n private renderCheckbox(option: PnActionMenuInput) {\n const id = `pn-menu-${option.value}-label`;\n const idHelper = `pn-menu-${option.value}-helpertext`;\n return (\n <div class=\"pn-action-menu-item-content\">\n <input\n type={option.input}\n id={id}\n class=\"pn-action-menu-input\"\n name={option.name}\n value={option.value}\n checked={option.checked}\n disabled={option.disabled}\n aria-describedby={option.helpertext ? idHelper : null}\n onInput={event => this.optionSelect(option, event)}\n tabIndex={this.open ? null : -1}\n />\n\n <div class=\"pn-action-menu-button\">\n {!!option.icon && <pn-icon icon={option.icon} color=\"blue700\" />}\n\n <div class=\"pn-action-menu-item-text\">\n <label htmlFor={id} class=\"pn-action-menu-item-label\">\n {option.label}\n </label>\n {option.helpertext && (\n <p id={idHelper} class=\"pn-action-menu-item-helpertext\">\n <span>{option.helpertext}</span>\n </p>\n )}\n </div>\n {option.input === 'checkbox' ? (\n <div class=\"pn-action-menu-checkbox\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <polyline class=\"pn-action-menu-checkbox-checkmark-path\" points=\"4,12 9,17 20,6\" stroke-width=\"3\" />\n </svg>\n </div>\n ) : (\n <div class=\"pn-action-menu-radio\">\n <div class=\"pn-action-menu-radio-outer\">\n <div class=\"pn-action-menu-radio-inner\" />\n </div>\n </div>\n )}\n </div>\n </div>\n );\n }\n\n private renderButton(option: PnActionMenuItem) {\n const isCloseButton = option.label === 'BACK';\n const isSub = !!option?.options?.length;\n const isGroup = !!option?.group?.length;\n const isLink = !!option.href && !isSub && !isGroup;\n\n const appendedId = isCloseButton ? '-close' : '';\n const hasIcon = isCloseButton || !!option.icon;\n\n const trailingObject = isCloseButton ? null : this.getOptionTrailing(option);\n const open = this.isSubmenuActive(option.value);\n const subMenuAttrs = isSub\n ? {\n 'aria-haspopup': 'true',\n 'aria-controls': open ? this.getListId(option) : null,\n 'aria-expanded': open?.toString(),\n }\n : {};\n\n const attrs = isLink\n ? {\n href: option.href,\n target: option.target,\n }\n : {\n disabled: option.disabled,\n };\n\n const Tag = isLink ? 'a' : 'button';\n\n return isGroup ? (\n <div class=\"pn-action-menu-group-label\">\n <p class=\"pn-action-menu-p\">{option.label}</p>\n {option.helpertext && <p class=\"pn-action-menu-group-helpertext\">{option.helpertext}</p>}\n </div>\n ) : (\n <div class=\"pn-action-menu-item-content\" data-close={isCloseButton}>\n <Tag\n id={this.getButtonId(option) + appendedId}\n class=\"pn-action-menu-button\"\n {...subMenuAttrs}\n {...attrs}\n tabIndex={this.open ? null : -1}\n onClick={event => this.optionSelect(option, event)}\n onKeyDown={(event: KeyboardEvent) => this.escButton(event, option)}\n >\n {hasIcon && <pn-icon icon={isCloseButton ? chevron_left : option.icon} color=\"blue700\" />}\n <div class=\"pn-action-menu-item-text\">\n <span class=\"pn-action-menu-item-label\">{isCloseButton ? this.translate('BACK') : option.label}</span>\n {option.helpertext && !isLink && <span class=\"pn-action-menu-item-helpertext\">{option.helpertext}</span>}\n </div>\n {trailingObject}\n </Tag>\n </div>\n );\n }\n\n private renderSub(option: PnActionMenuItem) {\n return (\n <menu\n id={this.getListId(option)}\n aria-labelledby={this.getButtonId(option)}\n class=\"pn-action-menu-sub\"\n data-open={this.isSubmenuActive(option.value)?.toString()}\n data-current={this.isCurrentSubMenu(option.value)}\n >\n {this.smallMenu && (\n <li class=\"pn-action-menu-item\">\n {this.renderButton({\n label: 'BACK',\n value: option.value,\n options: option.options,\n })}\n </li>\n )}\n {option.options.map(item => this.renderMenuItem(item))}\n </menu>\n );\n }\n\n private renderGroup(option: PnActionMenuGroup) {\n return <menu class=\"pn-action-menu-group\">{option.group.map(item => this.renderMenuItem(item))}</menu>;\n }\n\n private renderMenuItem(option: PnActionMenuItem) {\n const isSub = !!option?.options?.length;\n const isGroup = !isSub && !!option?.group?.length;\n\n const isCheckbox = !!option.input && !isSub && !isGroup;\n\n return (\n <li class=\"pn-action-menu-item\" data-group={isGroup} data-sub={isSub}>\n {isCheckbox ? this.renderCheckbox(option) : this.renderButton(option)}\n {isSub ? this.renderSub(option) : isGroup && this.renderGroup(option)}\n </li>\n );\n }\n\n private renderMenu() {\n return (\n <div\n id={this.menuListId}\n class=\"pn-action-menu-container\"\n role=\"region\"\n aria-labelledby={this.menuButtonId}\n data-open={this.open}\n data-upwards={this.upwards}\n data-small={this.smallMenu}\n style={{ height: '0px' }}\n ref={el => (this.menuContainer = el)}\n >\n <menu class=\"pn-action-menu-list\" data-current={this.isMenuActive()} ref={el => (this.menuList = el)}>\n {this.options?.map(option => this.renderMenuItem(option))}\n </menu>\n </div>\n );\n }\n\n render() {\n return (\n <Host>\n <div id={this.menuId !== this.id ? this.menuId : null} class=\"pn-action-menu\">\n <pn-button\n icon={this.getTriggerIcon()}\n {...this.button}\n buttonId={this.menuButtonId}\n tooltipUp={!this.upwards}\n ariahaspopup=\"true\"\n ariacontrols={this.open ? this.menuListId : null}\n ariaexpanded={this.open.toString()}\n data-default-icon={!this.button?.icon}\n onPnClick={() => this.toggleActionMenu()}\n ref={el => (this.menuTrigger = el)}\n />\n {this.renderMenu()}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../../src/components/buttons/pn-action-menu/translation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;KACd;CACF,CAAC","sourcesContent":["export const translations = {\n BACK: {\n sv: 'Tillbaka',\n en: 'Back',\n da: 'Tilbage',\n fi: 'Takaisin',\n no: 'Tilbake',\n },\n};\n\nexport type PnMenuTextProp = keyof typeof translations;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-button.js","sourceRoot":"","sources":["../../../../src/components/buttons/pn-button/pn-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,MAAM,EAAuC,MAAM,SAAS,CAAC;AAEtE;;;;GAIG;AAKH,MAAM,OAAO,QAAQ;IACnB,QAAQ,CAAc;IACtB,SAAS,CAAiB;IAC1B,SAAS,CAAS;IAElB,UAAU,GAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC9C,WAAW,GAAa,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAC5E,cAAc,GAAa,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAE1D,WAAW,CAAc;IAE3B,WAAW,GAAY,KAAK,CAAC;IAC7B,cAAc,GAAY,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AC,wBAAwB,IAAE,IAAI,CAAC,OAAO,CAAQ,CACtD,CACE,CACL,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Element, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { ripple, PnButtonAppearance, PnButtonVariant } from '@/index';\n\n/**\n * The `pn-button` is built with a native `button` or `a` element, if you use the `href` attribute.\n *\n * @nativeClick Use the `click` event to listen when the button is clicked.\n */\n@Component({\n tag: 'pn-button',\n styleUrl: 'pn-button.scss',\n})\nexport class PnButton {\n buttonEl: HTMLElement;\n tooltipEl: HTMLDivElement;\n tooltipDx: number;\n\n openEvents: string[] = ['mouseover', 'focus'];\n closeEvents: string[] = ['mouseleave', 'blur', 'touchcancel', 'touchleave'];\n eventListeners: string[] = [...this.openEvents, ...this.closeEvents];\n\n @Element() hostElement: HTMLElement;\n\n @State() tooltipOpen: boolean = false;\n @State() tooltipUpwards: boolean = false;\n\n /** The label of the button, this is the same as using the default slot. @since v7.4.0 */\n @Prop() label?: string = '';\n /**\n * Select the button appearance: default (blue), `light` (white) and `warning` (red).\n *\n * @category Visual\n */\n @Prop() appearance?: PnButtonAppearance = '';\n /**\n * Select the button variant: default (colored background), `outlined` (bordered, no background) and `borderless` (borderless, no background).\n *\n * @category Visual\n */\n @Prop() variant?: PnButtonVariant = '';\n /** Use the small button. @category Visual */\n @Prop() small?: boolean = false;\n /** Display the loading indicator. @category Visual */\n @Prop({ reflect: true }) loading?: boolean = false;\n\n /**\n * The SVG content of the icon you want.\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/docs-assets--docs pn-design-assets}\n * @category Icon\n */\n @Prop() icon?: string;\n /**\n * Turn the button into an icon only. Requires `icon` and one of the following props to work: `tooltip`, `arialabel` or `arialabelledby`.\n * @summary __You need an `icon` selected, as well as either `tooltip`, `arialabel` or `arialabelledby` for this to work__.\n * @see {@link icon}\n * @since v7.4.0\n * @category Icon\n */\n @Prop() iconOnly?: boolean = false;\n /**\n * Place the `icon` to the left of the button.\n *\n * @summary __You need an `icon` selected for this to work__.\n * @see {@link icon}\n * @category Icon\n */\n @Prop() leftIcon?: boolean = false;\n\n /**\n * When the user focus/hover the button, the `tooltip` text will show up.\n *\n * @category Tooltip\n */\n @Prop() tooltip?: string;\n /**\n * Prefer the tooltip to open upwards. Will still go downwards if there is no space.\n * @since v7.4.0\n * @category Tooltip\n */\n @Prop() tooltipUp?: boolean = false;\n\n /** Select HTML button type. @category Button */\n @Prop() type?: 'button' | 'reset' | 'submit' | '' = 'button';\n /**\n * Connect this button to a HTML form.\n * @category Button\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form HTML button form}\n */\n @Prop() form?: string;\n\n /** Pass an href to make the button into link (a-tag). @category Link */\n @Prop() href?: string;\n /** The rel attribute of the link. @category Link */\n @Prop() rel?: string;\n /** The target attribute of the link. @category Link */\n @Prop() target?: string;\n /** The download attribute of the link. @category Link */\n @Prop() download?: string;\n\n /** HTML ID. @category HTML attributes */\n @Prop() buttonId?: string = null;\n /** HTML aria-label attribute. @category HTML attributes */\n @Prop() arialabel?: string = null;\n /** HTML aria-labelledby attribute. @category HTML attributes */\n @Prop() arialabelledby?: string = null;\n /** HTML aria-current attribute. @since v7.9.0 @category HTML attributes */\n @Prop() ariacurrent?: string = null;\n /** HTML aria-controls attribute. @category HTML attributes */\n @Prop() ariacontrols?: string = null;\n /** HTML aria-pressed attribute. @category HTML attributes */\n @Prop() ariapressed?: string = null;\n /** HTML aria-haspopup attribute. @category HTML attributes */\n @Prop() ariahaspopup?: string = null;\n /** HTML aria-expanded attribute. @category HTML attributes */\n @Prop() ariaexpanded?: string = null;\n /** HTML tabindex. @category HTML attributes */\n @Prop() noTab?: boolean = false;\n\n @Watch('tooltipOpen')\n openHandler() {\n if (this.tooltipOpen) this.checkTooltipPosition();\n }\n\n @Watch('tooltip')\n iconOnlyHandler() {\n this.checkTooltipPosition();\n if (this.tooltip) this.initTooltip();\n else this.removeTooltip();\n }\n\n /**\n * This event is fired when the `button`/`a` element of the `pn-button` is clicked.\n * Setting an eventListener for `click` on the `pn-button` will trigger if you click outside of the button area\n * or if the button is `disabled` with the `loading` prop.\n * @since v7.4.0\n **/\n @Event() pnClick: EventEmitter<MouseEvent>;\n\n componentWillLoad() {\n this.tooltipUpwards = this.tooltipUp;\n }\n\n componentDidLoad() {\n this.iconOnlyHandler();\n }\n\n getRect(element: HTMLElement): DOMRect {\n return element.getBoundingClientRect();\n }\n\n initTooltip() {\n this.eventListeners.forEach(e => this.buttonEl.addEventListener(e, this.toggleTooltip));\n }\n\n removeTooltip() {\n this.eventListeners.forEach(e => this.buttonEl.removeEventListener(e, this.toggleTooltip));\n }\n\n toggleTooltip = (event: MouseEvent | FocusEvent) => {\n this.tooltipOpen = this.openEvents.includes(event.type);\n };\n\n setTooltipOffset() {\n this.tooltipEl.style.setProperty('--pn-dx', `${this.tooltipDx}px`);\n }\n\n checkTooltipPosition() {\n this.tooltipEl.style.transform = 'translateX(-50%)';\n this.tooltipUpwards = this.tooltipUp;\n\n requestAnimationFrame(() => {\n const { top, x, y, right, height } = this.getRect(this.tooltipEl);\n const extraMargin = 16;\n this.tooltipDx = 0;\n\n this.tooltipUpwards = this.tooltipUp ? top > height : y + height > window.innerHeight;\n this.tooltipEl.style.transform = '';\n\n if (x < 0) this.tooltipDx = x * -1 + extraMargin;\n if (right > window.innerWidth) this.tooltipDx = window.innerWidth - right - extraMargin - 8;\n\n requestAnimationFrame(() => this.setTooltipOffset());\n });\n }\n\n getAttributes() {\n const attrs = this.href\n ? {\n 'href': this.href,\n 'rel': !this.rel && this.target === '_blank' ? 'noopener' : this.rel,\n 'target': this.target ?? null,\n 'download': this.download ?? null,\n 'aria-current': this.ariacurrent,\n 'aria-disabled': this.loading ? 'true' : null,\n }\n : {\n 'type': this.type,\n 'form': this.form,\n 'disabled': this.loading,\n 'aria-pressed': this.ariapressed,\n 'aria-controls': this.ariacontrols,\n 'aria-haspopup': this.ariahaspopup,\n 'aria-expanded': this.ariaexpanded,\n };\n\n const appearances: PnButtonAppearance[] = ['light', 'warning'];\n const variations: PnButtonVariant[] = ['borderless', 'outlined'];\n\n return {\n 'tabindex': this.noTab || (this.href && this.loading) ? '-1' : null,\n 'data-small': this.small,\n 'data-loading': this.loading,\n 'data-tooltip-open': this.tooltipOpen,\n 'data-tooltip-upwards': this.tooltipUpwards,\n 'data-icon-only': this.showIconOnly(),\n 'data-left-icon': this.leftIcon,\n 'data-appearance': appearances.includes(this.appearance) ? this.appearance : null,\n 'data-variant': variations.includes(this.variant) ? this.variant : null,\n ...attrs,\n };\n }\n\n getTagName() {\n return this.href ? 'a' : 'button';\n }\n\n showIconOnly(): boolean {\n return !!this.icon && this.iconOnly && !!(this.tooltip || this.arialabel || this.arialabelledby);\n }\n\n handleClick(event: MouseEvent) {\n ripple(event, this.hostElement, '.pn-button-bg');\n this.pnClick.emit(event);\n }\n\n render() {\n const TagName = this.getTagName();\n\n return (\n <Host>\n <TagName\n class=\"pn-button\"\n id={this.buttonId}\n aria-label={this.arialabel}\n aria-labelledby={this.arialabelledby}\n onClick={e => this.handleClick(e)}\n {...this.getAttributes()}\n ref={(el: HTMLElement) => (this.buttonEl = el)}\n >\n <div class=\"pn-button-bg\"></div>\n <div class=\"pn-button-content\">\n <div class=\"pn-button-text\" hidden={this.showIconOnly()}>\n {this.label}\n <slot />\n </div>\n {!!this.icon && <pn-icon icon={this.icon} />}\n </div>\n <pn-spinner light />\n\n <div class=\"pn-button-tooltip\" hidden={!this.tooltip} ref={el => (this.tooltipEl = el)}>\n <span class=\"pn-button-tooltip-text\">{this.tooltip}</span>\n </div>\n </TagName>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-button-dropdown.js","sourceRoot":"","sources":["../../../../src/components/buttons/pn-button-dropdown/pn-button-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,MAAM,EAAuC,MAAM,SAAS,CAAC;AAEtE;;;;GAIG;AAKH,MAAM,OAAO,gBAAgB;IAC3B,EAAE,GAAW,aAAa,MAAM,EAAE,EAAE,CAAC;IACrC,iBAAiB,CAAgE;IACjF,SAAS,CAAiB;IAE1B,gBAAgB,GAAW,GAAG,IAAI,CAAC,EAAE,WAAW,CAAC;IACjD,iBAAiB,GAAW,GAAG,IAAI,CAAC,EAAE,UAAU,CAAC;IAEtC,WAAW,CAAc;IAE3B,KAAK,GAAY,KAAK,CAAC;IACvB,GAAG,GAAY,KAAK,CAAC;IAE9B,wCAAw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AAE,IAAI,CAAC,iBAAiB,EAC1B,KAAK,EAAC,8BAA8B,EACpC,IAAI,EAAC,QAAQ,qBACI,IAAI,CAAC,gBAAgB,gBAC1B,IAAI,CAAC,KAAK,cACZ,IAAI,CAAC,GAAG;oBAElB,4DAAK,KAAK,EAAC,4BAA4B;wBACrC,8DAAQ,CACJ,CACF,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, State, Watch, Element, h, Host } from '@stencil/core';\nimport { uuidv4, PnButtonAppearance, PnButtonVariant } from '@/index';\n\n/**\n * The open/closing of the dropdown is handled by the component itself.\n *\n * @nativeClick Use the `click` event to listen when the button is clicked.\n */\n@Component({\n tag: 'pn-button-dropdown',\n styleUrl: 'pn-button-dropdown.scss',\n})\nexport class PnButtonDropdown {\n id: string = `pn-button-${uuidv4()}`;\n focusableElements: Array<HTMLLinkElement | HTMLButtonElement | HTMLInputElement>;\n container: HTMLDivElement;\n\n dropdownButtonId: string = `${this.id}-dropdown`;\n dropdownContentId: string = `${this.id}-content`;\n\n @Element() hostElement: HTMLElement;\n\n @State() right: boolean = false;\n @State() top: boolean = false;\n\n /** The required label on the button. */\n @Prop() label!: string;\n /** The optional SVG content of the icon you want. */\n @Prop() icon?: string;\n /** Select between `light` and `warning`. */\n @Prop() appearance?: PnButtonAppearance = '';\n /** Select between `outlined` and `borderless`. */\n @Prop() variant?: PnButtonVariant = '';\n /** Smaller button. */\n @Prop() small: boolean = false;\n /** Tooltip (required for Icon Only). */\n @Prop() tooltip: string;\n /** Open/close the dropdown without user interaction. */\n @Prop({ mutable: true, reflect: true }) open: boolean = false;\n\n @Watch('open')\n openHandler() {\n this.toggleDropdown();\n\n if (this.open) {\n document.addEventListener('click', this.globalHandler);\n document.addEventListener('keyup', this.globalHandler);\n } else {\n document.removeEventListener('click', this.globalHandler);\n document.removeEventListener('keyup', this.globalHandler);\n }\n }\n\n componentDidLoad() {\n if (this.open) this.openHandler();\n }\n\n getRect(element: HTMLElement): DOMRect {\n return element.getBoundingClientRect();\n }\n\n globalHandler = (e: KeyboardEvent) => {\n // global events that we want to track to close the select, like \"click outside\" or tab out\n if (!this.hostElement.contains(e.target as Element) || e?.key === 'Escape') {\n this.open = false;\n }\n };\n\n toggleDropdown() {\n this.right = this.hostElement.offsetLeft > window.innerWidth / 2;\n\n requestAnimationFrame(() => {\n if (this.open) {\n this.container.style.transition = 'none';\n this.container.style.transform = 'none';\n }\n\n const containerRect = this.getRect(this.container);\n const hostElementRect = this.getRect(this.hostElement);\n\n // Calculate if dropdown should open upwards\n // if there is enough space above button\n const enoughSpaceAbove = hostElementRect.top > containerRect.height + window.innerWidth * 0.025;\n this.top =\n enoughSpaceAbove &&\n hostElementRect.top + hostElementRect.height + containerRect.height >\n window.innerHeight - window.innerWidth * 0.025;\n\n let xAxis: number = 0;\n\n if (containerRect.right > window.innerWidth || containerRect.x < 0) {\n // 0.025 because the max width of the element is 95vw and we want the same margin on both sides\n xAxis = containerRect.x + containerRect.width + window.innerWidth * 0.025 - window.innerWidth;\n }\n\n this.container.style.transform = '';\n\n requestAnimationFrame(() => {\n this.container.style.transition = '';\n this.container.style.transform = this.open ? `scale(1) translateX(-${xAxis}px)` : '';\n\n requestAnimationFrame(() => {\n this.hostElement.querySelector<HTMLDivElement>('.pn-button-dropdown').dataset.open = `${this.open}`;\n });\n });\n });\n }\n\n toggle = () => {\n this.open = !this.open;\n };\n\n render() {\n return (\n <Host>\n <div class=\"pn-button-dropdown\">\n <pn-button\n label={this.label}\n buttonId={this.dropdownButtonId}\n class=\"pn-button-dropdown-label\"\n appearance={this.appearance}\n variant={this.variant}\n small={this.small}\n icon={this.icon}\n iconOnly={!!this.tooltip && !!this.icon && !this.label}\n ariacontrols={this.dropdownContentId}\n ariahaspopup=\"true\"\n ariaexpanded={this.open.toString()}\n tooltip={this.tooltip}\n tooltipUp={!this.top}\n onPnClick={this.toggle}\n />\n <div\n ref={el => (this.container = el)}\n id={this.dropdownContentId}\n class=\"pn-button-dropdown-container\"\n role=\"region\"\n aria-labelledby={this.dropdownButtonId}\n data-right={this.right}\n data-top={this.top}\n >\n <div class=\"pn-button-dropdown-content\">\n <slot />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-read-only-button.js","sourceRoot":"","sources":["../../../../src/components/buttons/pn-read-only-button/pn-read-only-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;;;;GAKG;AAKH,MAAM,OAAO,gBAAgB;IAChB,WAAW,CAAc;IAE3B,gBAAgB,GAAG,EAAE,CAAC;IACtB,WAAW,GAAY,KAAK,CAAC;IAC7B,SAAS,CAAiB;IAC1B,SAAS,CAAS;IAE3B,4CAA4C;IACpC,IAAI,CAAU;IACtB,qDAAqD;IAC7C,QAAQ,GAAY,KAAK,CAAC;IAClC,iGAAiG;IACzF,QAAQ,GAAY,KAAK,CAAC;IAClC,sBAAsB;IACd,KAAK,GAAY,KAAK,CAAC;IAC/B,iCAAiC;IACzB,QAAQ,GAAiB,IAAI,CAAC;IAGtC,mBAAmB;QACjB,MAAM,YAAY,GAAG;YACnB,EAAE,EAAE,yDAAyD;YAC7D,EAAE,EAAE,uDAAuD;YAC3D,EAAE,EAAE,kEAAkE;YACtE,EAAE,EAAE,oDAAoD;YACxD,EAAE,EAAE,6DAA6D;SAClE,CAAC;QAEF,IAAI,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O,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,qBAAqB;YAC/B,+DAAQ,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,uBAAqB,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI;gBACrF,CAAC,IAAI,CAAC,QAAQ,IAAI,8DAAQ;gBAC1B,IAAI,CAAC,IAAI,IAAI,gEAAS,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,SAAS,GAAG;gBAEzD,IAAI,CAAC,QAAQ,IAAI,CAChB,6DAAM,KAAK,EAAC,qBAAqB;oBAC/B,8DAAQ,CACH,CACR;gBAED,4DAAK,KAAK,EAAC,gBAAgB,IAAE,IAAI,CAAC,gBAAgB,CAAO,CAClD,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State, Host, Element, Watch } from '@stencil/core';\nimport { awaitTopbar } from '@/globals/helpers';\nimport { PnLanguages } from '@/globals/types';\n\n/**\n * There are no events or features other than the `icon`, `small` and `language` prop.\n *\n * Our rule is to not have disabled buttons.\n * However, this component is an exception for a very specific use case regarding portal users.\n */\n@Component({\n tag: 'pn-read-only-button',\n styleUrl: 'pn-read-only-button.scss',\n})\nexport class PnReadOnlyButton {\n @Element() hostElement: HTMLElement;\n\n @State() readOnlyModeText = '';\n @State() tooltipOpen: boolean = false;\n @State() tooltipEl: HTMLDivElement;\n @State() tooltipDx: string;\n\n /** The SVG content of the icon you want. */\n @Prop() icon?: string;\n /** Icon on the left side instead of on the right. */\n @Prop() leftIcon: boolean = false;\n /** If you're using a button with only an icon, button text is still REQUIRED for the tooltip. */\n @Prop() iconOnly: boolean = false;\n /** Smaller button. */\n @Prop() small: boolean = false;\n /** Set the language manually. */\n @Prop() language?: PnLanguages = null;\n\n @Watch('language')\n setReadOnlyModeText() {\n const translations = {\n en: 'You cannot complete this action while in read only mode',\n sv: 'Du kan inte utföra denna handling i skrivskyddat läge',\n da: 'Du kan ikke gennemføre denne handling i skrivebeskyttet tilstand',\n fi: 'Et voi suorittaa tätä toimintoa vain luku -tilassa',\n no: 'Du kan ikke utføre denne handlingen i skrivebeskyttet modus',\n };\n\n this.readOnlyModeText = translations[this.language];\n }\n\n async componentWillLoad() {\n this.setReadOnlyModeText();\n\n if (this.language) return;\n await awaitTopbar(this.hostElement);\n }\n\n componentDidLoad() {\n this.initTooltip();\n }\n\n /*---------------------------------------TOOLTIP LOGIC-------------------------------------------*/\n\n @Watch('tooltipOpen')\n openHandler(): void {\n if (this.tooltipOpen) {\n this.checkTooltipPosition();\n return;\n }\n this.setTooltipOffset();\n }\n\n initTooltip(): void {\n this.tooltipEl = this.hostElement.querySelector('.button-tooltip');\n const tooltipAnchor = this.hostElement;\n\n const openEvents = ['mouseenter', 'focus'];\n const closeEvents = ['mouseleave', 'blur'];\n\n const eventListeners = [...openEvents, ...closeEvents];\n\n eventListeners.forEach(e => {\n tooltipAnchor.addEventListener(e, event => {\n // Should open?\n if (openEvents.includes(event.type)) {\n this.tooltipOpen = true;\n return;\n }\n // Should close?\n if (closeEvents.includes(event.type)) {\n this.tooltipOpen = false;\n }\n });\n });\n }\n\n setTooltipOffset(): void {\n this.tooltipEl.style.transform = `translateX(-50%) translateX(${this.tooltipDx}px)`;\n }\n\n checkTooltipPosition(): void {\n this.tooltipEl.style.transform = 'translateX(-50%)';\n\n requestAnimationFrame(() => {\n const { x, right } = this.tooltipEl.getBoundingClientRect();\n const extraMargin = 8;\n this.tooltipDx = '0';\n this.tooltipEl.style.transform = '';\n\n if (x < 0) this.tooltipDx = `${x * -1 + extraMargin}`;\n if (right > window.innerWidth) this.tooltipDx = `${window.innerWidth - right - extraMargin}`;\n\n requestAnimationFrame(() => {\n this.setTooltipOffset();\n });\n });\n }\n /* ---------------------------------------/TOOLTIP--------------------------------------- */\n\n getClassNames(): string {\n let classNames = 'pn-button ';\n\n if (this.small) classNames += 'pn-button-small ';\n if (this.leftIcon) classNames += 'pn-button-left-icon ';\n if (this.iconOnly) classNames += 'icon-only ';\n\n return classNames;\n }\n\n render() {\n return (\n <Host class=\"pn-read-only-button\">\n <button class={this.getClassNames()} data-tooltip-open={this.tooltipOpen} disabled={true}>\n {!this.iconOnly && <slot />}\n {this.icon && <pn-icon icon={this.icon} color=\"gray700\" />}\n\n {this.iconOnly && (\n <span class=\"read-only-icon-only\">\n <slot />\n </span>\n )}\n\n <div class=\"button-tooltip\">{this.readOnlyModeText}</div>\n </button>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-accordion.js","sourceRoot":"","sources":["../../../../src/components/content/pn-accordion/pn-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvF;;;;GAIG;AAKH,MAAM,OAAO,WAAW;IACtB,EAAE,CAAoB;IAEtB,UAAU,GAAG,IAAI,WAAW,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEjD,WAAW,CAAc;IAEpC,gEAAgE;IACxD,MAAM,GAAY,KAAK,CAAC;IAChC,mGAAmG;IAC3F,WAAW,GAAY,KAAK,CAAC;IAErC,iBAAiB;QACf,IAAI,CAAC,EAAE,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAEpE,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACvB,CAAC;IAGD,eAAe,CAAC,EAAE,MAAM,EAAE;QACxB,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO;QAEzB,MAAM,OAAO,GAAuB,MAAM,CAAC,OAAO,CAAC;QACnD,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAEtD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAE/E,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxF,CAAC;IACD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,cAAc,sBAAmB,IAAI,CAAC,WAAW;YAC3D,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Element, forceUpdate, Prop, Listen } from '@stencil/core';\n\n/**\n * The `pn-accordion` is a wrapper for `pn-accordion-row` components.\n * This component gives the accordion rows some space between each one and provides the `single` feature.\n * Which will force the rule that only a single row to be open at one time.\n */\n@Component({\n tag: 'pn-accordion',\n styleUrl: 'pn-accordion.scss',\n})\nexport class PnAccordion {\n mo?: MutationObserver;\n\n closeEvent = new CustomEvent('rowstate', { detail: false });\n\n @Element() hostElement: HTMLElement;\n\n /** Only allow a single row to be open at once. @since v7.8.0 */\n @Prop() single: boolean = false;\n /** Optional prop that removes the default white background on the accordion row. @since v7.10.0 */\n @Prop() transparent: boolean = false;\n\n connectedCallback() {\n this.mo = new MutationObserver(() => forceUpdate(this.hostElement));\n\n this.mo.observe(this.hostElement, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n this.mo.disconnect();\n }\n\n @Listen('togglerow')\n handleSingleRow({ detail }) {\n if (!this.single) return;\n\n const element: HTMLDetailsElement = detail.element;\n const activeRow = element.closest('pn-accordion-row');\n\n const rows = Array.from(this.hostElement.querySelectorAll('pn-accordion-row'));\n\n rows.forEach(row => !row.isSameNode(activeRow) && row.dispatchEvent(this.closeEvent));\n }\n render() {\n return (\n <Host class=\"pn-accordion\" data-transparent={this.transparent}>\n <slot />\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-accordion-row.js","sourceRoot":"","sources":["../../../../../src/components/content/pn-accordion/row/pn-accordion-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;;;;GAUG;AAKH,MAAM,OAAO,cAAc;IACjB,OAAO,CAAqB;IAC5B,OAAO,CAAc;IACrB,OAAO,CAAiB;IACxB,SAAS,CAAY;IAEZ,wBAAwB,GAAW,GAAG,CAAC;IAChD,iBAAiB,GAAW,IAAI,CAAC,wBAAwB,CAAC;IAEvD,WAAW,CAAc;IAE3B,SAAS,GAAG,KAAK,CAAC;IAClB,WAAW,GAAG,KAAK,CAAC;IAE7B,4IAA4I;IACnH,KAAK,CAAS;IACvC,kDAAkD;IACzB,KAAK,GAAa,KAAK,CAAC;IAEjD,iEAAiE;IACzD,QAAQ,CAAU;IAC1B,oFAAoF;IAC5E,SAAS,CAAU;IAC3B,mGAAmG;IAC3F,WAAW,GAAY,KAAK,CAAC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CAAC,EAAsB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;gBACtG,gEACE,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,KAAK,EAAC,0BAA0B,EAChC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAClC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;oBAE9B,4DAAK,KAAK,EAAC,uBAAuB,sBAAmB,IAAI,CAAC,WAAW;wBAClE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;wBAC7B,6DAAM,IAAI,EAAC,OAAO,GAAG;wBAErB,gEAAS,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAE,YAAY,GAAI,CACzD,CACE;gBAEV,4DAAK,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAC,0BAA0B,EAAC,GAAG,EAAE,CAAC,EAAkB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;oBACxG,8DAAQ,CACJ,CACE,CACL,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Element, Event, EventEmitter, Prop, State, Listen } from '@stencil/core';\nimport { chevron_down } from 'pn-design-assets/pn-assets/icons.js';\nimport { reduceMotion, ripple } from '@/index';\n\n/**\n * Use this row component inside a `pn-accordion` to create an accordion group.\n *\n * **Note**: you can use the `pn-accordion-row` without the parent accordion.\n * But you will have to style the gap between each row.\n *\n * @slot label - Include your own HTML as the label.\n * ```\n * <h3 slot=\"label\">Custom title</h3>\n * ```\n */\n@Component({\n tag: 'pn-accordion-row',\n styleUrl: 'pn-accordion-row.scss',\n})\nexport class PnAccordionRow {\n private details: HTMLDetailsElement;\n private summary: HTMLElement;\n private content: HTMLDivElement;\n private animation: Animation;\n\n private readonly defaultAnimationDuration: number = 400;\n private animationDuration: number = this.defaultAnimationDuration;\n\n @Element() hostElement: HTMLElement;\n\n @State() isClosing = false;\n @State() isExpanding = false;\n\n /** The label/title of the accordion row, you can also pass a slot with the name \"label\" if you want to put custom HTML content in there. */\n @Prop({ mutable: true }) label: string;\n /** The open/close status of the accordion row. */\n @Prop({ mutable: true }) state?: boolean = false;\n\n /** Optional unique id for the `summary` element. @category ID */\n @Prop() buttonid?: string;\n /** Optional unique id for the `div` element containing the content. @category ID */\n @Prop() contentid?: string;\n /** Optional prop that removes the default white background on the accordion row. @since v7.10.0 */\n @Prop() transparent: boolean = false;\n\n /** Dispatched every time the row is toggled. Includes the row element and the boolean `state` prop. */\n @Event() togglerow: EventEmitter<{ element: HTMLElement; state: Boolean }>;\n\n /** Internal function for closing rows when using the `single` prop on the `pn-accordion`. */\n @Listen('rowstate')\n handleRowState(event: CustomEvent) {\n if (event.detail !== this.state) {\n this.details.style.overflow = 'hidden';\n this.closeAccordion();\n }\n }\n\n componentWillLoad() {\n const slottedLabel = !!this.hostElement.querySelector('[slot=\"label\"]');\n this.label = slottedLabel ? null : this.label;\n }\n\n private toggleOpen(open?: boolean) {\n const state = open ?? !this.state;\n if (this.state !== open) this.togglerow.emit({ element: this.details, state });\n this.state = state;\n }\n\n private clickHandler(e: MouseEvent) {\n e.preventDefault();\n\n this.details.style.overflow = 'hidden';\n\n if (this.isClosing || !this.state) this.openAccordion();\n else if (this.isClosing || this.state) this.closeAccordion();\n\n const { x, width, y, top } = this.hostElement.getBoundingClientRect();\n const clientCor = e.clientX === 0 && e.clientY === 0 ? { clientX: x + width - 24, clientY: y - top } : e;\n\n ripple(clientCor, this.hostElement, '.pn-accordion-row-text');\n }\n\n private openAccordion() {\n this.details.style.height = `${this.details.offsetHeight}px`;\n this.toggleOpen(true);\n\n requestAnimationFrame(() => {\n this.isExpanding = true;\n\n const startHeight = `${this.details.offsetHeight}px`;\n const endHeight = `${this.summary.offsetHeight + this.content.offsetHeight}px`;\n\n this.cancelAnimations();\n\n this.animate(true, startHeight, endHeight);\n });\n }\n\n private closeAccordion() {\n this.isClosing = true;\n\n const startHeight = `${this.details.offsetHeight}px`;\n const endHeight = `${this.summary.offsetHeight}px`;\n\n this.cancelAnimations();\n\n this.animate(false, startHeight, endHeight);\n }\n\n private animate(open: boolean, startHeight: string, endHeight: string) {\n if (reduceMotion()) this.animationDuration = 0;\n else this.animationDuration = this.defaultAnimationDuration;\n\n this.animation = this.details.animate(\n {\n height: [startHeight, endHeight],\n },\n {\n duration: this.animationDuration,\n easing: 'cubic-bezier(0.6, 0, 0.2, 1)',\n },\n );\n\n this.animation.onfinish = () => this.animationFinish(open);\n\n this.animation.oncancel = () => {\n if (open) this.isExpanding = false;\n else this.isClosing = false;\n };\n }\n\n private animationFinish(open: boolean) {\n this.toggleOpen(open);\n this.cancelAnimations();\n\n this.isClosing = false;\n this.isExpanding = false;\n\n this.details.style.height = '';\n this.details.style.overflow = '';\n }\n\n private cancelAnimations() {\n if (this.animation) this.animation.cancel();\n }\n\n render() {\n return (\n <Host>\n <details class=\"pn-accordion-row\" open={this.state} ref={(el: HTMLDetailsElement) => (this.details = el)}>\n <summary\n id={this.buttonid}\n class=\"pn-accordion-row-summary\"\n onClick={e => this.clickHandler(e)}\n ref={el => (this.summary = el)}\n >\n <div class=\"pn-accordion-row-text\" data-transparent={this.transparent}>\n {this.label ? this.label : ''}\n <slot name=\"label\" />\n\n <pn-icon class=\"pn-accordion-row-icon\" icon={chevron_down} />\n </div>\n </summary>\n\n <div id={this.contentid} class=\"pn-accordion-row-content\" ref={(el: HTMLDivElement) => (this.content = el)}>\n <slot />\n </div>\n </details>\n </Host>\n );\n }\n}\n"]}
|
package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-table.js","sourceRoot":"","sources":["../../../../src/components/content/pn-table/pn-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElE;;;;;;IAMI;AAKJ,MAAM,OAAO,OAAO;IACP,WAAW,CAAc;IAEpC,4CAA4C;IACpC,IAAI,GAAY,KAAK,CAAC;IAC9B,2BAA2B;IACnB,QAAQ,GAAY,KAAK,CAAC;IAClC,8BAA8B;IACtB,OAAO,GAAY,KAAK,CAAC;IAEjC,aAAa;QACX,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE,IAAI,CAAC,QAAQ,IAAI,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;QAElH,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE;YAC/B,4DAAK,KAAK,EAAC,oBAAoB;gBAC7B,8DAAQ,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Prop, Host, h } from '@stencil/core';\n\n/**\n * The `pn-table` component is just a wrapper for your HTML table element.\n * You need to create the markup, but the component will deal with the styling.\n *\n * We have a built in class for divs inside table colums called `column-wrapper`.\n * This will line up your content and provide a grid gap.\n **/\n@Component({\n tag: 'pn-table',\n styleUrl: 'pn-table.scss',\n})\nexport class PnTable {\n @Element() hostElement: HTMLElement;\n\n /** Use the gray variant instead of blue. */\n @Prop() gray: boolean = false;\n /** Add border to table. */\n @Prop() bordered: boolean = false;\n /** Make the table striped. */\n @Prop() striped: boolean = false;\n\n getClassNames(): string {\n const classes = [this.striped && 'striped', this.bordered && 'bordered', this.gray ? 'color-gray' : 'color-blue'];\n\n return classes.filter(Boolean).join(' ');\n }\n\n render() {\n return (\n <Host class={this.getClassNames()}>\n <div class=\"pn-table-container\">\n <slot />\n </div>\n </Host>\n );\n }\n}\n"]}
|
package/umd/modules/@postnord/web-components/collection/components/content/pn-tag/pn-tag.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-tag.js","sourceRoot":"","sources":["../../../../src/components/content/pn-tag/pn-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,8HAA8H;AAK9H,MAAM,OAAO,KAAK;IAChB,4BAA4B;IACpB,KAAK,CAAU;IACvB;;;;;;OAMG;IACK,IAAI,CAAU;IACtB,wFAAwF;IAChF,UAAU,GAAwD,EAAE,CAAC;IAC7E;;;;;;;OAOG;IACK,IAAI,GAAa,KAAK,CAAC;IAC/B,qCAAqC;IAC7B,KAAK,GAAa,KAAK,CAAC;IAChC,sCAAsC;IAC9B,KAAK,GAAa,KAAK,CAAC;IAChC,yDAAyD;IACjD,MAAM,GAAa,KAAK,CAAC;IAEjC,mBAAmB;QACjB,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;IAClH,CAAC;IAED,QAAQ;QACN,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DACE,KAAK,EAAC,QAAQ,qBACG,IAAI,CAAC,UAAU,eACrB,CAAC,CAAC,IAAI,CAAC,IAAI,eACX,IAAI,CAAC,IAAI,gBACR,IAAI,CAAC,KAAK,iBACT,IAAI,CAAC,MAAM,gBACZ,IAAI,CAAC,KAAK;gBAErB,IAAI,CAAC,QAAQ,EAAE,IAAI,gEAAS,IAAI,EAAE,IAAI,CAAC,IAAI,GAAY;gBACxD,6DAAM,KAAK,EAAC,cAAc,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC1C,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Host } from '@stencil/core';\n\n/** The `pn-tag` is a non-interactive visual marker designed to emphasize important aspects of an item, such as its status. */\n@Component({\n tag: 'pn-tag',\n styleUrl: 'pn-tag.scss',\n})\nexport class PnTag {\n /** The label of the tag. */\n @Prop() label!: string;\n /**\n * Select icon from out `pn-design-assets` list. Works with any SVG content.\n *\n * **Please note**: Can not be used with the `xsmall` prop due to the small size.\n *\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/docs-assets--docs Get started with PostNord assets.}\n */\n @Prop() icon?: string;\n /** Set tag appearance: `discrete`, `positive`, `warning` & `error`. @category Visual */\n @Prop() appearance?: '' | 'discrete' | 'positive' | 'warning' | 'error' = '';\n /**\n * Set darker background-color on the tag.\n *\n * This is intended for better tag visibility on colored background.\n *\n * @category Visual\n * @deprecated Will be removed in v8.0.0\n */\n @Prop() dark?: boolean = false;\n /** Set larger tag. @category Size */\n @Prop() large?: boolean = false;\n /** Set smaller tag. @category Size */\n @Prop() small?: boolean = false;\n /** Set extra small tag. @since v7.11.0 @category Size */\n @Prop() xsmall?: boolean = false;\n\n componentWillRender() {\n if (!!this.icon && this.xsmall) console.warn(`pn-tag: Icon was not rendered because tag size is set to xsmall`);\n }\n\n showIcon() {\n return !!this.icon && !this.xsmall;\n }\n\n render() {\n return (\n <Host>\n <div\n class=\"pn-tag\"\n data-appearance={this.appearance}\n data-icon={!!this.icon}\n data-dark={this.dark}\n data-small={this.small}\n data-xsmall={this.xsmall}\n data-large={this.large}\n >\n {this.showIcon() && <pn-icon icon={this.icon}></pn-icon>}\n <span class=\"pn-tag-label\">{this.label}</span>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-icon.js","sourceRoot":"","sources":["../../../../src/components/design-tokens/pn-icon/pn-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAC;AAG/D;;;;;;IAMI;AAKJ,MAAM,OAAO,MAAM;IACN,WAAW,CAAc;IAEpC;;;;;;;QAOI;IACI,IAAI,GAAW,EAAE,CAAC;IAC1B,gDAAgD;IACvB,KAAK,GAAY,KAAK,CAAC;IAChD;;;QAGI;IACI,KAAK,GAAc,SAAS,CAAC;IAErC,WAAW;QACT,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC;QACnD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,IAAI,qDAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAE,IAAI,CAAC,IAAI,GAAS,CAAC;IACjF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Prop, h, Host, Watch } from '@stencil/core';\nimport * as colors from 'pn-design-assets/pn-assets/colors.js';\nimport type { PnColors } from '@/index';\n\n/**\n * The `pn-icon` is a wrapper for an SVG string.\n * While its built with PostNords specific icon dimensions in mind (24x24px), you can use any SVG content in this component.\n * As long as its 3x3 in size, there should be no problem.\n *\n * The color feature will not overwrite the color of flags.\n **/\n@Component({\n tag: 'pn-icon',\n styleUrl: 'pn-icon.scss',\n})\nexport class PnIcon {\n @Element() hostElement: HTMLElement;\n\n /**\n * The SVG content of the icon you want to use.\n *\n * Flags cannot be colored.\n *\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/components-design-tokens-icon--docs|PostNord Icons (Storybook)}\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/components-design-tokens-flag--docs|PostNord Flags (Storybook)}\n **/\n @Prop() icon: string = '';\n /** Make the icon small (16 instead of 24px). */\n @Prop({ reflect: true }) small: boolean = false;\n /**\n * Color the icon with one of the follwing colors from our library.\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/components-design-tokens-colors--docs|PostNord Colors (Storybook)}\n **/\n @Prop() color?: PnColors = 'gray900';\n @Watch('color')\n handleColor() {\n const color = colors[this.color] || colors.gray900;\n this.hostElement.style.setProperty('--pn-icon-color', color);\n }\n\n componentWillLoad() {\n this.handleColor();\n }\n\n render() {\n return <Host role=\"presentation\" class=\"pn-icon\" innerHTML={this.icon}></Host>;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-illustration.js","sourceRoot":"","sources":["../../../../src/components/design-tokens/pn-illustration/pn-illustration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EA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AAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QAEpC,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACjE,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,IAAI,qDAAC,IAAI,EAAC,cAAc,EAAC,SAAS,EAAE,IAAI,CAAC,YAAY,eAAa,IAAI,CAAC,IAAI,GAAS,CAAC;IAC/F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Element, Host, Watch } from '@stencil/core';\n@Component({\n tag: 'pn-illustration',\n styleUrl: 'pn-illustration.scss',\n})\nexport class PnIllustration {\n @Element() hostElement: HTMLElement;\n\n /** The SVG content of the illustration you want to use. The viewBox property will be used to determine width/height */\n @Prop() illustration!: string;\n /** Set the width of the SVG element. Any valid CSS width value is allowed */\n @Prop({ mutable: true }) width?: string;\n /** Set the height of the SVG element. Any valid CSS height value is allowed */\n @Prop({ mutable: true }) height?: string;\n\n /** Make the SVG fill to its parent size (sets width/height 100% and `display: block` instead of `inline-block`) */\n @Prop() fill?: boolean = false;\n @Watch('fill')\n handleFill() {\n if (this.fill) {\n this.width = '100%';\n this.height = '100%';\n }\n }\n\n componentWillRender() {\n this.handleFill();\n if (this.width || this.height) return this.setSizes();\n this.getSizeFromSvg();\n }\n\n componentDidRender() {\n this.hostElement.querySelector('svg')?.setAttribute('width', this.width);\n this.hostElement.querySelector('svg')?.setAttribute('height', this.height);\n }\n\n getSizeFromSvg() {\n const viewBox = this.illustration?.match(/<svg[^>]*?viewBox=([\"\\'])?((?:.(?!\\1|>))*.?)\\1?/)?.[2];\n\n if (!viewBox) return;\n\n const [, , width = '', height = ''] = viewBox?.split(' ') || [];\n\n if (!width || !height) return;\n\n this.width = `${Number(width)}px`;\n this.height = `${Number(height)}px`;\n\n this.setSizes();\n }\n\n setSizes() {\n this.hostElement.style.setProperty('--pn-width', this.width);\n this.hostElement.style.setProperty('--pn-height', this.height);\n }\n\n render() {\n return <Host role=\"presentation\" innerHTML={this.illustration} data-fill={this.fill}></Host>;\n }\n}\n"]}
|
package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-modal.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-modal/pn-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EAEL,WAAW,EACX,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAkB,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7D;;;;;;;;;;GAUG;AAKH,MAAM,OAAO,OAAO;IACV,EAAE,CAAmB;IAEZ,yBAAyB,GAAG,GAAG,CAAC;IACzC,iBAAiB,GAAW,IAAI,CAAC,yBAAyB,CAAC;IAE3D,YAAY,CAAiB;IAE7B,YAAY,CAAoB;IAChC,cAAc,CAAiB;IAC/B,YAAY,CAAqB;IAE9B,WAAW,CAAc;IAE3B,SAAS,GAAY,KAAK,CAAC;IAC3B,SAAS,GAAY,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n h,\n Host,\n Prop,\n Watch,\n Event,\n EventEmitter,\n forceUpdate,\n State,\n Listen,\n} from '@stencil/core';\nimport { awaitTopbar, en, isSmallScreen, reduceMotion } from '@/index';\nimport type { PnLanguages } from '@/index';\n\nimport { close as closeIcon } from 'pn-design-assets/pn-assets/icons.js';\nimport { PnTranslations, translations } from './translation';\n\n/**\n * Present content in a modal that overlays everything on the current page.\n * Use the prop `open` to toggle the visiblity.\n * Use the event `modalToggle` to determine when the modal is being closed/opened by the user.\n *\n * @slot - The default slot, will be placed in the middle content area.\n * @slot image - Place an image or illustration at the top of the modal. {@since v7.15.0}\n * @slot header - Place the title + lead text in the header. {@since v7.14.0}\n * @slot buttons - Place buttons inside the modal at the bottom.\n * pn-buttons aligns automatically to the right, set the data-left attribute on the button you want to align to the left.\n */\n@Component({\n tag: 'pn-modal',\n styleUrl: 'pn-modal.scss',\n})\nexport class PnModal {\n private mo: MutationObserver;\n\n private readonly standardAnimationDuration = 400;\n private animationDuration: number = this.standardAnimationDuration;\n\n private modalTimeout: NodeJS.Timeout;\n\n private modalElement: HTMLDialogElement;\n private modalContainer: HTMLDivElement;\n private modalPicture: HTMLPictureElement;\n\n @Element() hostElement: HTMLElement;\n\n @State() isClosing: boolean = false;\n @State() isOpening: boolean = false;\n\n /** If true, the modal content will remove overflow CSS property. */\n @State() removeOverflow: boolean = false;\n\n /** Set a label for the modal. @since v7.14.0 */\n @Prop() label?: string;\n /** Set a descriptive text for the modal. @since v7.14.0 */\n @Prop() helpertext?: string;\n /** Set the language. @since v7.14.0 */\n @Prop() language?: PnLanguages = null;\n\n /** Bind to this property if you want to control the visibility of the modal from your own data. @category Features */\n @Prop({ mutable: true, reflect: true }) open?: boolean = false;\n /**\n * Prevent users from closing the modal by clicking on the backdrop or the `ESC` key.\n * @since v7.14.0\n * @category Features\n */\n @Prop() persistent?: boolean = false;\n /**\n * Hide the close button. If you disable this, make sure you build your own cancel button.\n * @since v7.14.0\n * @category Features\n */\n @Prop() hideClose?: boolean = false;\n /**\n * Allow overflow if possible. When the modal opens, it will check scrollHeight > offsetHeight.\n * Do not use if you have a lot of conditional rendering inside the modal.\n * @since v7.14.0\n */\n @Prop() allowOverflow?: boolean = false;\n\n /**\n * Use the `sheet` visual. Aligns the modal to the right.\n * @since v7.14.0\n * @category Visual\n */\n @Prop() sheet?: boolean = false;\n /**\n * Define your own max width of the modal. Default is `45em`.\n * @category Visual\n * @since v7.14.0\n */\n @Prop() maxWidth?: string = null;\n\n @Watch('open')\n handleOpen() {\n if (this.open) this.openModal();\n else {\n this.closeModal();\n /** In the next update, we can remove this one so you can finally stack modals. */\n this.close.emit(true);\n }\n\n this.handleOverflow();\n\n clearTimeout(this.modalTimeout);\n this.isClosing = !this.open && true;\n\n if (reduceMotion()) this.animationDuration = 0;\n else this.animationDuration = this.standardAnimationDuration;\n\n this.modalTimeout = setTimeout(() => {\n this.isClosing = false;\n this.modalVisiblity.emit({ visible: this.open });\n }, this.animationDuration);\n }\n\n @Watch('maxWidth')\n handleMaxWidth() {\n const width = this.maxWidth || '45em';\n this.modalElement.style.setProperty('--pn-modal-max-width', width);\n }\n\n @Listen('resize', { target: 'window' })\n handleOverflow() {\n if (this.allowOverflow) this.setOverflow();\n }\n\n /** This event is fired when the modal is toggled. {@since v7.14.0} */\n @Event() modalToggle: EventEmitter<{ open: boolean }>;\n /** This event is dispatched after the opening/closing animation has finished playing. {@since v7.14.0} */\n @Event() modalVisiblity: EventEmitter<{ visible: boolean }>;\n /**\n * Event fired when the modal is closed, either by clicking on the dark background or by clicking on the close button.\n * @deprecated Use the new `modalToggle` event instead.\n */\n @Event() close: EventEmitter<boolean>;\n\n connectedCallback() {\n this.mo = new MutationObserver(() => forceUpdate(this.hostElement));\n this.mo.observe(this.hostElement, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n if (this.mo) this.mo.disconnect();\n }\n\n async componentWillLoad() {\n if (this.language === null) await awaitTopbar(this.hostElement);\n }\n\n componentDidLoad() {\n this.handleMaxWidth();\n if (this.open) this.openModal();\n }\n\n private translate(prop: PnTranslations) {\n return translations?.[prop]?.[this.language || en] || prop;\n }\n\n private showImage() {\n return !!this.modalPicture?.innerHTML;\n }\n\n private showHeader() {\n return !!(this.label || this.helpertext || this.hostElement.querySelector('[slot=\"header\"]')?.textContent);\n }\n\n private setOverflow() {\n this.removeOverflow = !this.hasOverflow();\n }\n\n private hasOverflow(): boolean {\n const multiplyWith = isSmallScreen() ? 0.95 : 0.85;\n return this.modalContainer?.scrollHeight > innerHeight * multiplyWith;\n }\n\n private isSameModal(target: HTMLElement): boolean {\n return this.modalElement.isSameNode(target);\n }\n\n private handleKeyboard(event: KeyboardEvent) {\n if (event.key !== 'Escape') return;\n\n event.preventDefault();\n event.stopImmediatePropagation();\n\n if (!this.persistent) this.setModalClose();\n }\n\n private clickModalBackground(event: MouseEvent) {\n const { clientY, clientX } = event;\n\n const notInsideAnyModal = (event.target as HTMLDialogElement).localName !== this.modalElement.localName;\n const notThisModal = !this.isSameModal(event.target as HTMLElement);\n\n if (notInsideAnyModal || notThisModal) return;\n\n const { top, left, height, width } = this.modalElement.getBoundingClientRect();\n const isInModal = top <= clientY && clientY <= top + height && left <= clientX && clientX <= left + width;\n\n if (!isInModal && !this.persistent) this.toggleOpen(false);\n }\n\n private setModalClose() {\n this.toggleOpen(false);\n }\n\n private closeModal() {\n this.modalElement.close();\n }\n\n private openModal() {\n this.modalElement.showModal();\n }\n\n private toggleOpen(state?: boolean) {\n this.open = state ?? !this.open;\n }\n\n render() {\n return (\n <Host>\n <dialog\n class=\"pn-modal\"\n data-closing={this.isClosing}\n data-sheet={this.sheet}\n data-image={this.showImage()}\n data-allow-overflow={this.removeOverflow}\n onClose={() => this.setModalClose()}\n onCancel={() => this.setModalClose()}\n onToggle={() => this.modalToggle.emit({ open: this.open })}\n onKeyDown={event => this.handleKeyboard(event)}\n onClick={event => this.clickModalBackground(event)}\n ref={el => (this.modalElement = el)}\n >\n {!this.hideClose && (\n <pn-button\n small\n class=\"pn-modal-close-button\"\n icon={closeIcon}\n iconOnly={true}\n arialabel={this.translate('CLOSE_MODAL')}\n appearance=\"light\"\n variant=\"borderless\"\n type=\"button\"\n onPnClick={() => this.setModalClose()}\n />\n )}\n <div class=\"pn-modal-container\" ref={el => (this.modalContainer = el)}>\n <div class=\"pn-modal-image\" hidden={!this.showImage()}>\n <picture class=\"pn-modal-picture\" ref={el => (this.modalPicture = el)}>\n <slot name=\"image\"></slot>\n </picture>\n </div>\n <header class=\"pn-modal-header\" hidden={!this.showHeader()}>\n {this.label && <h2 class=\"pn-modal-label\">{this.label}</h2>}\n {this.helpertext && <p class=\"pn-modal-text\">{this.helpertext}</p>}\n\n <slot name=\"header\"></slot>\n </header>\n <section class=\"pn-modal-content\">\n <slot></slot>\n </section>\n <nav class=\"pn-modal-buttons\">\n <slot name=\"buttons\"></slot>\n </nav>\n </div>\n </dialog>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-modal/translation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACX,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,mBAAmB;QACvB,EAAE,EAAE,gBAAgB;QACpB,EAAE,EAAE,qBAAqB;QACzB,EAAE,EAAE,mBAAmB;KACxB;CACF,CAAC","sourcesContent":["export const translations = {\n CLOSE_MODAL: {\n en: 'Close dialog',\n sv: 'Stäng dialogrutan',\n da: 'Luk dialogboks',\n fi: 'Sulje valintaikkuna',\n no: 'Lukk dialogboksen',\n },\n};\n\nexport type PnTranslations = keyof typeof translations;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-progress-bar.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-progress-bar/pn-progress-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAM3C,MAAM,OAAO,aAAa;IACxB,QAAQ,GAAW,MAAM,EAAE,CAAC;IAE5B,UAAU,GAAW,mBAAmB,IAAI,CAAC,QAAQ,EAAE,CAAC;IACxD,OAAO,GAAW,GAAG,IAAI,CAAC,UAAU,QAAQ,CAAC;IAC7C,MAAM,GAAW,GAAG,IAAI,CAAC,UAAU,OAAO,CAAC;IAEhC,WAAW,CAAc;IAE3B,kBAAkB,CAAS;IAEpC,uCAAuC;IAC/B,KAAK,CAAU;IACvB,4BAA4B;IACpB,QAAQ,GAAW,CAAC,CAAC;IAC7B,oDAAoD;IAC5C,YAAY,CAAU;IAC9B,oCAAoC;IAC5B,WAAW,CAAU;IAC7B,6CAA6C;IACrC,KAAK,CAAU;IACvB,6CAA6C;IACrC,UAAU,GAAW,IAAI,CAAC,UAAU,CAAC;IAG7C,WAAW;QACT,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;YAAE,OAAO;QAE7C,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAA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, check_circle } from 'pn-design-assets/pn-assets/icons.js';\nimport { uuidv4 } from '@/globals/helpers';\n\n@Component({\n tag: 'pn-progress-bar',\n styleUrl: 'pn-progress-bar.scss',\n})\nexport class PnProgressBar {\n uniqueId: string = uuidv4();\n\n idProgress: string = `pn-progress-bar-${this.uniqueId}`;\n idLabel: string = `${this.idProgress}-label`;\n idText: string = `${this.idProgress}-text`;\n\n @Element() hostElement: HTMLElement;\n\n @State() progressPercentage: string;\n\n /** Set a label for the progress bar */\n @Prop() label?: string;\n /** Progress value, 0-100 */\n @Prop() progress: number = 0;\n /** Replaces the default progress percentage text */\n @Prop() progressText?: string;\n /** Text shown on success (100%) */\n @Prop() successText?: string;\n /** Trigger an error and display a message */\n @Prop() error?: string;\n /** A unique HTML id fror the progress bar */\n @Prop() progressId: string = this.idProgress;\n\n @Watch('progress')\n setProgress(): void {\n if (!Number.isInteger(this.progress)) return;\n\n const progressWidth = this.progress < 100 ? Math.ceil(this.progress) : 100;\n\n this.progressPercentage = `${progressWidth.toString()}%`;\n\n this.hostElement.style.setProperty('--progress-value', this.progressPercentage);\n }\n\n componentWillLoad() {\n this.setProgress();\n }\n\n hasLabel(): boolean {\n return !!this.label?.length;\n }\n\n hasText(): boolean {\n return !!this.successText?.length;\n }\n\n hasError(): boolean {\n return !!this.error?.length;\n }\n\n isValid(): boolean {\n return this.progress === 100;\n }\n\n hasIcon(): boolean {\n return this.isValid() || this.hasError();\n }\n\n getSubtext() {\n if (this.hasError()) return this.error;\n if (this.isValid() && this.hasText()) return this.successText;\n\n return this.progressText ? this.progressText : this.progressPercentage;\n }\n\n getIconSvg() {\n if (this.hasError()) return alert_exclamation_circle;\n return check_circle;\n }\n\n getIconColor() {\n if (this.hasError()) return 'warning';\n return 'green500';\n }\n\n render() {\n return (\n <Host>\n {this.hasLabel() && (\n <p id={this.idLabel} class=\"pn-progress-bar-label\">\n <span>{this.label}</span>\n {this.hasIcon() && <pn-icon icon={this.getIconSvg()} color={this.getIconColor()}></pn-icon>}\n </p>\n )}\n <div\n id={this.progressId}\n class=\"pn-progress-bar-container\"\n role=\"progressbar\"\n aria-labelledby={this.idLabel}\n aria-describedby={this.hasIcon() ? this.idText : null}\n aria-valuenow={this.progress}\n aria-valuetext={this.progressPercentage}\n >\n <div class=\"pn-progress-bar-meter\">\n <div class=\"pn-progress-bar-value\" data-error={this.hasError()} data-valid={this.isValid()}></div>\n </div>\n </div>\n <p id={this.idText} class=\"pn-progress-bar-subtext\" role={this.hasError() ? 'alert' : null}>\n <span>{this.getSubtext()}</span>\n </p>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-progress-indicator-step.js","sourceRoot":"","sources":["../../../../../src/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAE7D;;;GAGG;AAKH,MAAM,OAAO,uBAAuB;IACzB,SAAS,CAAU;IACnB,IAAI,CAAU;IAEvB,mEAAmE;IAC3D,UAAU,CAAS;IAC3B,mEAAmE;IAC3D,KAAK,CAAS;IACtB,qBAAqB;IACb,IAAI,CAAS;IACrB,uEAAuE;IAC/D,OAAO,GAAY,KAAK,CAAC;IACjC,mEAAmE;IAC3D,MAAM,CAAgB;IAErB,aAAa,CAAuB;IAC7C,oBAAoB;QAClB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,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I,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAC3B,WACE,KAAK,EAAC,4BAA4B,uBAChB,eAAe,EACjC,EAAE,EAAC,WAAW,EACd,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW;gBAEnB,gBACE,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,gBAAgB,EACvB,MAAM,EAAE,KAAK,uBACK,IAAI,kBACT,GAAG,GAChB,CACE,CACP,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { white } from 'pn-design-assets/pn-assets/colors.js';\n\n/**\n * @deprecated This component will be removed in v8. Please use the `pn-progress-stepper` instead.\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/components-feedback-progress-stepper--docs Use `pn-progress-stepper` instead.}\n */\n@Component({\n tag: 'pn-progress-indicator-step',\n styleUrl: 'pn-progress-indicator-step.scss',\n})\nexport class PnProgressIndicatorStep {\n @State() activated: boolean;\n @State() done: boolean;\n\n /** Set by the parent component. Do not use manually. @hide true */\n @Prop() activeStep: number;\n /** Set by the parent component. Do not use manually. @hide true */\n @Prop() index: number;\n /** The step name. */\n @Prop() name: string;\n /** Set the step as checked, meaning a white check mark will appear. */\n @Prop() checked: boolean = false;\n /** Set by the parent component. Do not use manually. @hide true */\n @Prop() active?: 'yes' | 'no';\n\n @Event() setactivestep: EventEmitter<number>;\n setActiveStepHandler() {\n if (this.done || this.activated) {\n this.setactivestep.emit(this.index);\n }\n }\n\n componentWillLoad() {\n this.checkStatus();\n }\n\n componentDidUpdate() {\n this.checkStatus();\n }\n\n checkStatus() {\n if (!this.done) {\n this.done = this.checked || this.activeStep > this.index;\n }\n\n if (this.active === 'yes') {\n this.activated = true;\n } else if (this.active === 'no') {\n this.activated = false;\n this.done = false;\n } else if (!this.activated) {\n this.activated = this.activeStep >= this.index;\n }\n }\n\n getClassNames() {\n let className = 'pn-progress-indicator-step';\n if (this.done || this.checked) className += ' done';\n if (this.activated) className += ' activated';\n if (this.activeStep === this.index) className += ' active';\n return className;\n }\n\n render() {\n return (\n <Host class={this.getClassNames()} onClick={() => this.setActiveStepHandler()}>\n <div class=\"progress-line\" />\n <div class=\"info-container\">\n <slot />\n {this.name}\n </div>\n <div class=\"circle\">\n {this.done || this.checked ? (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n enable-background=\"new 0 0 24 24\"\n id=\"checkmark\"\n version=\"1.0\"\n viewBox=\"0 0 24 24\"\n >\n <polyline\n class=\"checkmark-path\"\n fill=\"none\"\n points=\"20,6 9,17 4,12\"\n stroke={white}\n stroke-miterlimit=\"10\"\n stroke-width=\"3\"\n />\n </svg>\n ) : (\n ''\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-progress-indicator.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-progress-indicator/pn-progress-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,eAAe,CAAC;AAEzF;;;GAGG;AAKH,MAAM,OAAO,mBAAmB;IACnB,WAAW,CAAc;IAEpC,yCAAyC;IAChB,UAAU,GAAW,CAAC,CAAC;IAEhD,iGAAiG;IACxF,cAAc,CAAuB;IAG9C,oBAAoB,CAAC,EAAE,MAAM,EAAE;QAC7B,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;QACzB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAED,mBAAmB;QACjB,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAqC,4BAA4B,CAAC,CACpG,CAAC;QAEF,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;YAC5B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YACnC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAC,uBAAuB;YAChC,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, Element, Listen, Event, EventEmitter, h } from '@stencil/core';\n\n/**\n * @deprecated This component will be removed in v8. Please use the `pn-progress-stepper` instead.\n * @see {@link https://portal.postnord.com/web-components/?path=/docs/components-feedback-progress-stepper--docs Use `pn-progress-stepper` instead.}\n */\n@Component({\n tag: 'pn-progress-indicator',\n styleUrl: 'pn-progress-indicator.scss',\n})\nexport class PnProgressIndicator {\n @Element() hostElement: HTMLElement;\n\n /** Takes the index of the active step */\n @Prop({ mutable: true }) activeStep: number = 0;\n\n /** This will emit when progress is changed and is the value you want to bind to your VM state */\n @Event() progresschange: EventEmitter<number>;\n\n @Listen('setactivestep')\n setActiveStepHandler({ detail }) {\n this.activeStep = detail;\n this.progresschange.emit(this.activeStep);\n }\n\n componentWillLoad() {\n this.passPropsToChildren();\n }\n\n componentDidUpdate() {\n this.passPropsToChildren();\n }\n\n passPropsToChildren() {\n const children = Array.from(\n this.hostElement.querySelectorAll<HTMLPnProgressIndicatorStepElement>('pn-progress-indicator-step'),\n );\n\n children.forEach((child, i) => {\n child.activeStep = this.activeStep;\n child.index = i;\n });\n }\n\n render() {\n return (\n <div class=\"pn-progress-indicator\">\n <slot />\n </div>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-progress-stepper.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-progress-stepper/pn-progress-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG5D;;IAEI;AAKJ,MAAM,OAAO,iBAAiB;IACX,EAAE,GAAW,uBAAuB,MAAM,EAAE,EAAE,CAAC;IAE/C,OAAO,GAAM,CAAC,CAAC;IACf,OAAO,GAAM,CAAC,CAAC;IAErB,WAAW,CAAc;IAEnB,YAAY,CAAS;IACtC,2DAA2D;IAC1C,aAAa,GAAW,CAAC,CAAC;IAE3C,iEAAiE;IACzD,KAAK,GAAY,EAAE,CAAC;IAC5B,iGAAiG;IACzF,iBAAiB,GAAY,EAAE,CAAC;IACxC;;;QAGI;IACI,QAAQ,GAAiB,IAAI,CAAC;IAEtC,yEAAyE;IAChD,UAAU,GAAW,IAAI,CAAC,OAAO,CAAC;IAC3D,gEAAgE;IACvC,WAAW,GAAW,IAAI,CAAC,OAAO,CAAC;IAC5D,iHAAiH;IACzG,QAAQ,CAAU;IAE1B;;;;;;;OAOG;IACK,IAAI,GAAY,KAAK,CAAC;IAI9B,YAAY,CAAC,CAAS,EAAE,CAAS,EAAE,CAA+B;QAChE,IAAI,CAAC,KAAK,aAAa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BAClG;oBACG,IAAI,CAAC,QAAQ,EAAE;;oBAAG,IAAI,CAAC,WAAW;;oBAAG,IAAI,CAAC,UAAU,CAChD;gBACN,IAAI,CAAC,QAAQ,IAAI;;oBAAU,IAAI,CAAC,QAAQ,CAAQ,CAC3C;YACR,iEAAU,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,EAAC,qBAAqB,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAE,IAAI,CAAC,aAAa,GAAI;YAE9F,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,WAAK,KAAK,EAAC,kBAAkB,iBAAa,MAAM,IAC7C,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACzC,WAAK,KAAK,EAAC,iBAAiB,iBAAc,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,GAAI,CAChF,CAAC,CACE,CACP,CAAC,CAAC,CAAC,CACF,0BAAiB,MAAM,EAAC,KAAK,EAAC,aAAa;gBACzC,WAAK,KAAK,EAAC,mBAAmB,eAAY,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,UAAU,GAAI,CAC9E,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { translations } from './translations';\nimport { en, awaitTopbar, uuidv4 } from '@/globals/helpers';\nimport type { PnLanguages, PnStepProps } from '@/globals/types';\n\n/**\n * The `pn-progress-stepper` is used to visualize the users progress through a flow (checkout/survey, etc...).\n **/\n@Component({\n tag: 'pn-progress-stepper',\n styleUrl: 'pn-progress-stepper.scss',\n})\nexport class PnProgressStepper {\n private readonly id: string = `pn-progress-stepper-${uuidv4()}`;\n\n private readonly minStep: 1 = 1;\n private readonly maxStep: 7 = 7;\n\n @Element() hostElement: HTMLElement;\n\n @State() private builtInLabel: string;\n /** Percentage calculated with currentStep / totalSteps. */\n @State() private progressValue: number = 0;\n\n /** Set custom label for the stepper, default label is \"Step\". */\n @Prop() label?: string = '';\n /** Set a custom HTML id on the progress stepper element to associate progress bar with label. */\n @Prop() progressStepperId?: string = '';\n /**\n * Set the language manually, only use this prop if the pnTopbar is not loaded.\n * Will not overwrite the custom `label` prop if used.\n **/\n @Prop() language?: PnLanguages = null;\n\n /** Set total amount of steps, maximum allowed is `7`. @category Steps */\n @Prop({ mutable: true }) totalSteps: number = this.maxStep;\n /** The current step of the progress stepper. @category Steps */\n @Prop({ mutable: true }) currentStep: number = this.minStep;\n /** You can add a custom optional string to the label if you need a name for the current step. @category Steps */\n @Prop() stepName?: string;\n\n /**\n * Use the dots visual, instead of the bar.\n *\n * This will hide the label from view, but is still accessible to screenreaders.\n *\n * @since v7.16.0\n * @category Visual\n */\n @Prop() dots: boolean = false;\n\n @Watch('currentStep')\n @Watch('totalSteps')\n stepWatchers(a: number, b: number, c: 'currentStep' | 'totalSteps') {\n if (c === 'currentStep') this.validate(a, 'currentStep');\n if (c === 'totalSteps') this.validate(b, 'totalSteps');\n this.calculateProgress();\n }\n\n @Watch('language')\n watchLanguage() {\n this.builtInLabel = translations.STEP[this.language || en];\n }\n\n async componentWillLoad() {\n this.watchLanguage();\n\n this.validate(this.currentStep, 'currentStep');\n this.validate(this.totalSteps, 'totalSteps');\n\n this.calculateProgress();\n\n if (this.language === null) await awaitTopbar(this.hostElement);\n }\n\n private validate(step: number, prop: PnStepProps) {\n const componentName = this.hostElement.localName;\n if (step < this.minStep) {\n console.warn(\n `${componentName}: The ${prop} ${step} is below the minimum allowed steps of ${this.minStep}. ${prop} will default to ${this.minStep}.`,\n );\n this[prop] = this.minStep;\n }\n if (prop === 'currentStep' && step > this.totalSteps) {\n console.warn(\n `${componentName}: The ${prop} ${step} is above totalSteps ${this.totalSteps}, ${prop} will default to ${this.totalSteps}.`,\n );\n this[prop] = this.totalSteps;\n }\n if (step > this.maxStep) {\n console.warn(\n `${componentName}: The ${prop} ${step} is above the maximum allowed steps of ${this.maxStep}. ${prop} will default to ${this.maxStep}.`,\n );\n this[prop] = this.maxStep;\n }\n }\n\n private calculateProgress() {\n try {\n this.progressValue = Math.floor((this.currentStep / this.totalSteps) * 100);\n this.hostElement.style.setProperty('--pn-progress-value', `${this.progressValue}%`);\n } catch (error) {\n console.error(`${this.hostElement.localName}:`, error.message);\n }\n }\n\n private getLabel() {\n return this.label || this.builtInLabel;\n }\n\n private getId() {\n return this.progressStepperId || this.id;\n }\n\n render() {\n return (\n <Host>\n <label htmlFor={this.getId()} class={'pn-progress-label' + (this.dots ? ' pn-progress-sr-only' : '')}>\n <span>\n {this.getLabel()} {this.currentStep}/{this.totalSteps}\n </span>\n {this.stepName && <span> - {this.stepName}</span>}\n </label>\n <progress id={this.getId()} class=\"pn-progress-sr-only\" max=\"100\" value={this.progressValue} />\n\n {this.dots ? (\n <div class=\"pn-progress-dots\" aria-hidden=\"true\">\n {[...Array(this.totalSteps)].map((_, i) => (\n <div class=\"pn-progress-dot\" data-active={i + 1 <= this.currentStep} key={i} />\n ))}\n </div>\n ) : (\n <div aria-hidden=\"true\" class=\"pn-progress\">\n <div class=\"pn-progress-value\" data-full={this.currentStep === this.totalSteps} />\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-progress-stepper/translations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,MAAM;KACX;CACF,CAAC","sourcesContent":["export const translations = {\n STEP: {\n da: 'Trin',\n en: 'Step',\n fi: 'Vaihe',\n no: 'Trinn',\n sv: 'Steg',\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-spinner.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-spinner/pn-spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAElE,qDAAqD;AAKrD,MAAM,OAAO,SAAS;IACT,WAAW,CAAc;IAEpC,oCAAoC;IAC5B,KAAK,GAAY,KAAK,CAAC;IAC/B,kBAAkB;IACV,IAAI,GAAW,GAAG,CAAC;IAEnB,QAAQ;QACd,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,MAAM,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IAEO,OAAO;QACb,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC;IAC1B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DACE,KAAK,EAAC,YAAY,EAClB,KAAK,EAAE,EAAE,mBAAmB,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,oBAAoB,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,EACrF,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM;gBAEX,+DAAQ,KAAK,EAAC,mBAAmB,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,kBAAc,GAAG,GAAG;gBAC5E,+DAAQ,KAAK,EAAC,gBAAgB,EAAC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,MAAM,GAAG,CACxD,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Prop, h, Host } from '@stencil/core';\n\n/** Display a spinner to indicate a loading state. */\n@Component({\n tag: 'pn-spinner',\n styleUrl: 'pn-spinner.scss',\n})\nexport class PnSpinner {\n @Element() hostElement: HTMLElement;\n\n /** Light version of the spinner. */\n @Prop() light: boolean = false;\n /** Size in em. */\n @Prop() size: number = 1.5;\n\n private getColor() {\n if (this.light) return '#fff';\n return '#005d92';\n }\n\n private getSize() {\n return `${this.size}em`;\n }\n\n render() {\n return (\n <Host>\n <svg\n class=\"pn-spinner\"\n style={{ '--pn-spinner-size': this.getSize(), '--pn-spinner-color': this.getColor() }}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <circle class=\"pn-spinner-circle\" cx=\"12\" cy=\"12\" r=\"10\" stroke-width=\"3\" />\n <circle class=\"pn-spinner-dot\" cx=\"21.3\" cy=\"16\" r=\"1.48\" />\n </svg>\n </Host>\n );\n }\n}\n"]}
|
package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-toast.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-toast/pn-toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAgB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EACL,iBAA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IAAI,CAAK;oBACtD,8DAAQ,CACJ;gBAEL,IAAI,CAAC,gBAAgB,EAAE,IAAI,wEAAiB,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,GAAG;gBAE5G,IAAI,CAAC,QAAQ,IAAI,CAChB,+DACE,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,QAAQ,gBACD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAClC,OAAO,EAAE,CAAC,KAAmB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EACzD,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;oBAE7B,gEAAS,IAAI,EAAE,KAAK,GAAI,CACjB,CACV,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Element, EventEmitter, Event, State, Watch, Mixin } from '@stencil/core';\nimport { animateHeightFactory } from '@/globals/mixins';\n\nimport type { PnLanguages } from '@/index';\nimport { awaitTopbar, en, ripple } from '@/index';\n\nimport {\n alert_info_circle,\n check_circle,\n alert_exclamation_triangle,\n alert_exclamation_circle,\n close,\n} from 'pn-design-assets/pn-assets/icons.js';\nimport { translations } from './translation';\n\n/**\n * This component is able to fill many roles of a classic toast.\n * It has 4 different colors, a temporary state, hide button, icon and illustration support.\n *\n * The `pn-toast` will expand to its parent containers full width.\n * Either limit the parent width or set a CSS rule to your specific width if needed.\n */\n@Component({\n tag: 'pn-toast',\n styleUrl: 'pn-toast.scss',\n})\nexport class PnToast extends Mixin(animateHeightFactory) {\n toast: HTMLDivElement;\n button: HTMLButtonElement;\n\n @Element() hostElement: HTMLElement;\n\n @State() hasSlottedContent: boolean = false;\n\n /**\n * Set a title for the toast. Requires the `text` prop in order to work.\n * @description Can be used together with slotted content.\n */\n @Prop() heading?: string = '';\n /**\n * Set a paragraph of text for the toast.\n * @description Can be used together with slotted content.\n */\n @Prop() text?: string = '';\n /** Give the toast a HTML ID. */\n @Prop() toastId?: string;\n /**\n * Default color is blue, you also have the option of success (green), warning (orange) and error (red).\n * @category Visual\n */\n @Prop() appearance?: '' | 'success' | 'warning' | 'error';\n /**\n * This will apply a shadow and border to the toast.\n * @category Visual\n */\n @Prop() temporary: boolean = false;\n /**\n * Set an SVG icon.\n * @category Visual\n */\n @Prop() icon?: string;\n /**\n * Set an SVG illustration.\n * @category Visual\n */\n @Prop() illustration?: string;\n /**\n * Control the visibility of the toast. If the `closable` prop is active, the toast will set the `hide` prop on its own.\n * @see {@link closable}\n * @category Features\n */\n @Prop({ mutable: true, reflect: true }) hide: boolean = false;\n /**\n * Show close button.\n * @category Features\n */\n @Prop() closable: boolean = false;\n /**\n * Manually set the language, only needed if the `closable` prop is enabled.\n * @see {@link closable}\n * @category Features\n */\n @Prop({ mutable: true }) language?: PnLanguages = null;\n\n @Watch('hide')\n handleHide() {\n this.hostElement.style.overflow = 'hidden';\n\n requestAnimationFrame(() => this.toggleToastVisibility());\n }\n\n /** Event fired when the close button is pressed. */\n @Event() close: EventEmitter<boolean>;\n /**\n * This event is fired when the toast is fully hidden after the animation is finished.\n * Triggers from the close button or if the prop `hide` is set to true.\n * @since v7.6.0\n **/\n @Event() hidden: EventEmitter<boolean>;\n\n async componentWillLoad() {\n if (this.hide) {\n this.hostElement.style.height = '0';\n this.hostElement.style.overflow = 'hidden';\n }\n\n // Any text content at this stage means there is slotted content present.\n this.hasSlottedContent = !!this.hostElement.textContent;\n\n if (this.language === null) await awaitTopbar(this.hostElement);\n }\n\n componentDidLoad() {\n if (!!this.heading && !this.text && !this.hasSlottedContent)\n console.warn('The %s prop is only available if you use the %s prop or slotted content.', 'heading', 'text');\n }\n\n private toggleToastVisibility() {\n if (this.hide) this.closeDropdown(this.hostElement, this.toast.clientHeight);\n else this.openDropdown(this.hostElement, this.toast.clientHeight);\n }\n\n private handleClick(event: PointerEvent) {\n this.hide = true;\n this.close.emit(this.hide);\n ripple(event, this.toast);\n }\n\n private getIcon(): string {\n if (this.illustration) return '';\n if (this.icon) return this.icon;\n if (this.appearance === 'success') return check_circle;\n if (this.appearance === 'warning') return alert_exclamation_triangle;\n if (this.appearance === 'error') return alert_exclamation_circle;\n return alert_info_circle;\n }\n\n private getRole(): string {\n return this.appearance === 'error' ? 'alert' : 'status';\n }\n\n private showIcon(): boolean {\n return !this.illustration;\n }\n\n private showIllustration(): boolean {\n return !this.showIcon();\n }\n\n private showTitle(): boolean {\n return (this.hasSlottedContent || !!this.text) && !!this.heading;\n }\n\n private translate(prop: string): string {\n return translations?.[prop]?.[this.language || en] || prop;\n }\n\n private hideToast(): boolean {\n return this.hide && !this.isMoving();\n }\n\n render() {\n return (\n <Host>\n <div\n id={this.toastId}\n class=\"pn-toast\"\n role={this.getRole()}\n data-appearance={this.appearance}\n data-temporary={this.temporary}\n data-hide={this.hideToast()}\n ref={el => (this.toast = el)}\n >\n {this.showIcon() && <pn-icon class=\"pn-toast-icon\" icon={this.getIcon()} />}\n\n <div class=\"pn-toast-content\">\n {this.showTitle() && <h4 class=\"pn-toast-heading\">{this.heading}</h4>}\n {this.text && <p class=\"pn-toast-text\">{this.text}</p>}\n <slot />\n </div>\n\n {this.showIllustration() && <pn-illustration illustration={this.illustration} width=\"5.5em\" height=\"5.5em\" />}\n\n {this.closable && (\n <button\n class=\"pn-toast-button\"\n type=\"button\"\n aria-label={this.translate('HIDE')}\n onClick={(event: PointerEvent) => this.handleClick(event)}\n ref={el => (this.button = el)}\n >\n <pn-icon icon={close} />\n </button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-toast/translation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,EAAE,EAAE,kBAAkB;QACtB,EAAE,EAAE,iBAAiB;QACrB,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,eAAe;QACnB,EAAE,EAAE,iBAAiB;KACtB;CACF,CAAC","sourcesContent":["export const translations = {\n HIDE: {\n sv: 'Stäng meddelande',\n en: 'Dismiss message',\n da: 'Afvis besked',\n fi: 'Hylkää viesti',\n no: 'Avvis meldingen',\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-tooltip.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-tooltip/pn-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEtG;;;;;GAKG;AAKH,MAAM,OAAO,SAAS;IACpB,OAAO,CAAiB;IACxB,MAAM,CAAoB;IAE1B,UAAU,GAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC9C,WAAW,GAAa,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAC5E,cAAc,GAAa,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAErE,OAAO,CAAiB;IAEb,WAAW,CAAc;IAE3B,SAAS,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EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;YAE7B,gEAAS,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,iBAAe,CAAC,CAAC,IAAI,CAAC,OAAO,GAAI;YAChE,4DAAK,KAAK,EAAC,oBAAoB,iBAAc,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;gBACxF,IAAI,CAAC,OAAO;gBACb,4DAAK,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;oBACzB,8DAAQ,CACJ,CACF,CACC,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Element, Component, Prop, h, State, Watch } from '@stencil/core';\nimport { alert_exclamation_circle, alert_question_circle } from 'pn-design-assets/pn-assets/icons.js';\n\n/**\n * The `pn-tooltip` can display slotted HTML content or a text `string` with the `tooltip` prop.\n *\n * Remember that the component is techincally a `button` element, don't put any HTML content that would be out of place in a regular button\n * (no headlines, other input elements, etc...).\n */\n@Component({\n tag: 'pn-tooltip',\n styleUrl: 'pn-tooltip.scss',\n})\nexport class PnTooltip {\n content: HTMLDivElement;\n button: HTMLButtonElement;\n\n openEvents: string[] = ['mouseover', 'focus'];\n closeEvents: string[] = ['mouseleave', 'blur', 'touchcancel', 'touchleave'];\n eventListeners: string[] = [...this.openEvents, ...this.closeEvents];\n\n timeout: NodeJS.Timeout;\n\n @Element() hostElement: HTMLElement;\n\n @State() downwards: boolean = false;\n @State() open: boolean = false;\n @State() deltaX: string | number = '0';\n\n /** Apply the warning color and change the icon to `!`. */\n @Prop() warning: boolean = false;\n /** Apply the light color if you use a dark background. */\n @Prop() light: boolean = false;\n /** Overrides the slotted content to create a small tooltip instead. @since v7.3.0 */\n @Prop() tooltip?: string;\n\n @Watch('open')\n openHandler() {\n if (this.open) this.checkPosition();\n else this.setTransform();\n }\n\n componentDidLoad() {\n this.initTooltip();\n }\n\n private setTransform() {\n this.content.style.transform = `scale(${Number(this.open)}) translateX(-50%) translateX(${this.deltaX}px)`;\n }\n\n private getSymbol(): string {\n return this.warning ? alert_exclamation_circle : alert_question_circle;\n }\n\n private checkPosition() {\n this.content.style.transition = 'none';\n this.content.style.transform = 'scale(1) translateX(-50%)';\n this.downwards = false;\n\n requestAnimationFrame(() => {\n const { x, y, right } = this.content.getBoundingClientRect();\n const extraMargin = 8;\n this.deltaX = '0';\n this.downwards = y < 0;\n this.content.style.transform = '';\n\n if (x < 0) this.deltaX = `${x * -1 + extraMargin}`; // left edge\n if (right > window.innerWidth) this.deltaX = `${window.innerWidth - right - extraMargin}`; // right edge\n\n requestAnimationFrame(() => {\n this.content.style.transition = '';\n this.setTransform();\n });\n });\n }\n\n private initTooltip() {\n this.eventListeners.forEach(name =>\n this.button.addEventListener(name, (event: MouseEvent | FocusEvent) => this.toggleTooltip(event)),\n );\n }\n\n private toggleTooltip(event: MouseEvent | FocusEvent) {\n const status = this.openEvents.includes(event.type);\n\n let time = 500;\n\n if (status) time = 0;\n\n clearTimeout(this.timeout);\n\n this.timeout = setTimeout(() => {\n this.open = status;\n }, time);\n }\n\n render() {\n return (\n <button\n class=\"pn-tooltip\"\n data-light={this.light}\n data-warning={this.warning}\n data-downwards={this.downwards}\n data-open={this.open}\n ref={el => (this.button = el)}\n >\n <pn-icon icon={this.getSymbol()} data-simple={!!this.tooltip} />\n <div class=\"pn-tooltip-content\" data-simple={!!this.tooltip} ref={el => (this.content = el)}>\n {this.tooltip}\n <div hidden={!!this.tooltip}>\n <slot />\n </div>\n </div>\n </button>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-wizard.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-wizard/pn-wizard.tsx"],"names":[],"mappings":"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AC,cAAc,EAAE,IAAI,CACxB,kEACE,KAAK,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAC/C,KAAK,QACL,UAAU,EAAC,OAAO,EAClB,OAAO,EAAC,UAAU,EAClB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAChC,CACH;wBACA,IAAI,CAAC,cAAc,EAAE,IAAI,CACxB,kEAAW,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,QAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAI,CACrG,CACG,CACF,CACC,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { awaitTopbar, en, isSmallScreen, PnLanguages, reduceMotion, uuidv4 } from '@/index';\nimport { Component, Host, Prop, Event, EventEmitter, Watch, h, Element, Listen } from '@stencil/core';\nimport { arrow_right, close } from 'pn-design-assets/pn-assets/icons';\nimport { translations } from './translation';\n\n/**\n * The wizard component lets you highlight areas on the page\n * that is accompanied with a modal for user guidance.\n *\n * Either use the label & helpertext props to set a title and description,\n * or use the default slot to add custom HTML content.\n *\n * The steps prop takes an array of querySelectors that the wizard will highlight in order.\n * Set the step prop to start the wizard at a specific step (0-indexed). -1 closes the wizard.\n *\n * @slot - The default slot can be used to add custom content to the wizard modal.\n * @slot buttons - Use this slot to add custom buttons to the wizard controls area.\n * Its a good idea to combine these with the `hide-back`, `hide-next` and `hide-finish` props.\n *\n * @since v7.19.0\n */\n@Component({\n tag: 'pn-wizard',\n styleUrl: 'pn-wizard.scss',\n})\nexport class PnWizard {\n private readonly id: string = `pn-wizard-${uuidv4()}`;\n private wizardIdLabel: string;\n private wizardIdHelpertext: string;\n\n private wizardElement: HTMLDialogElement;\n private wizardContent: HTMLDivElement;\n private wizardArrow: HTMLDivElement;\n\n private timeoutRerender: NodeJS.Timeout;\n\n @Element() hostElement: HTMLElement;\n\n /** Set a title for the wizard. */\n @Prop() label?: string = '';\n /** Set a helpertext for the wizard. */\n @Prop() helpertext?: string = '';\n /** Manually set the language. */\n @Prop({ mutable: true }) language?: PnLanguages = null;\n /** Set a custom HTML id. */\n @Prop({ mutable: true }) pnId?: string = this.id;\n\n /**\n * Assign the current step.\n * Any value above -1 is valid and will start the wizard.\n * @category Wizard steps\n **/\n @Prop({ mutable: true, reflect: true }) step: number = -1;\n /**\n * The list of querySelectors that the wizards will highlight.\n * Recommended maximum of 7 steps.\n * @category Wizard steps\n **/\n @Prop() steps: string[] = [];\n\n /**\n * Choose to display one of 2 built in progress steppers.\n * - `dots`: The pn-progress-stepper with the `dots` prop.\n * - `text`: simple text indicator \"current/total\"\n * @category Features\n */\n @Prop() progress?: '' | 'dots' | 'text' = '';\n /** Choose where the scrolling will focus on the highlighted elements. @category Features */\n @Prop() scrollBlock: 'start' | 'center' | 'end' | 'nearest' = 'center';\n /**\n * By default, the component will hide the overflow on the body element when active.\n * You may wish to disable this if your HTML/CSS structure is not compatible with this behavior.\n * @category Features\n */\n @Prop() displayOverflow: boolean = false;\n\n /** Hide the back button. @category Buttons */\n @Prop() hideBack?: boolean = false;\n /** Hide the next button. @category Buttons */\n @Prop() hideNext: boolean = false;\n /** Hide the finish button. @category Buttons */\n @Prop() hideFinish?: boolean = false;\n /** Set a custom label for the back button. @category Buttons */\n @Prop() labelBack?: string = '';\n /** Set a custom label for the next button. @category Buttons */\n @Prop() labelNext?: string = '';\n /** Set a custom label for the finish button. @category Buttons */\n @Prop() labelFinish?: string = '';\n\n /** Emitted when the wizard step changes. */\n @Event() wizardStep: EventEmitter<{ step: number; next: boolean; prev: boolean }>;\n /** Emitted when the highlighted area is clicked. */\n @Event() wizardHighlightClick: EventEmitter<PointerEvent>;\n /** Emitted when the wizard is canceled or finished. */\n @Event() wizardClose: EventEmitter<{ step: number; finished: boolean }>;\n\n @Watch('step')\n handleStepChange(step: number, prevStep: number) {\n if (prevStep === -1) {\n this.highlightElement();\n this.positionModal();\n }\n\n if (step === -1) {\n this.wizardClose.emit({ step: prevStep, finished: this.isLastStep(prevStep) });\n }\n\n if (!this.isActive()) {\n this.wizardElement?.close();\n setTimeout(() => this.handleDisplayOverflow(), reduceMotion() ? 0 : 400);\n return;\n }\n\n if (!this.wizardElement.open) {\n this.handleDisplayOverflow();\n this.wizardElement?.showModal();\n }\n\n this.wizardStep.emit({\n step,\n next: step > (prevStep ?? -1),\n prev: step < (prevStep ?? -1),\n });\n }\n\n @Watch('pnId')\n handleIdChange() {\n this.wizardIdLabel = `${this.pnId || this.id}-label`;\n this.wizardIdHelpertext = `${this.pnId || this.id}-helpertext`;\n }\n\n @Listen('resize', { target: 'window' })\n handleOverflow() {\n if (!this.isActive()) return;\n\n clearTimeout(this.timeoutRerender);\n this.timeoutRerender = setTimeout(() => {\n this.highlightElement();\n this.positionModal();\n }, 250);\n }\n\n async componentWillLoad() {\n this.handleIdChange();\n if (this.language === null) await awaitTopbar(this.hostElement);\n }\n\n componentDidRender() {\n this.runStepLogic();\n }\n\n private getRect(element: HTMLElement): DOMRect {\n return element.getBoundingClientRect();\n }\n\n private translate(prop: string): string {\n return translations?.[prop]?.[this.language || en] || prop;\n }\n\n private handleDisplayOverflow() {\n if (this.displayOverflow) return;\n const body = document.body;\n const scrollbarWidth = innerWidth - document.documentElement.clientWidth;\n\n if (this.isActive()) {\n body.style.setProperty('overflow', 'hidden');\n body.style.marginRight = `${scrollbarWidth}px`;\n } else {\n body.style.removeProperty('overflow');\n body.style.removeProperty('margin-right');\n }\n }\n\n /** Is the step within the valid range of available {@link steps}. */\n private isActive(step: number = this.step): boolean {\n return step >= 0 && step < this.steps.length;\n }\n\n private isOpen(): boolean {\n return this.isActive() && this.wizardElement?.open;\n }\n\n private isClosed(step: number = this.step): boolean {\n return step === -1;\n }\n\n private isFirstStep(): boolean {\n return this.step === 0;\n }\n\n private isLastStep(step: number = this.step): boolean {\n if (this.steps.length === 1) return true;\n return step === this.steps.length - 1;\n }\n\n private isProgressDots(): boolean {\n return this.progress === 'dots';\n }\n\n private isProgressText() {\n return this.progress === 'text';\n }\n\n /**\n * By default, the `pn-progress-stepper` will always render,\n * but is hidden from view unless `dots` is assinged to {@link progress}.\n *\n * The only exception is when there are more than 7 steps. Something that the stepper does not allow.\n */\n private renderProgress(): boolean {\n return 7 >= this.steps.length && (this.isProgressDots() || this.isProgressText());\n }\n\n private showBackButton() {\n if (this.hideBack || this.isClosed() || this.isFirstStep()) return false;\n return true;\n }\n\n private showNextButton() {\n if (this.hideNext) return false;\n return !this.isLastStep() || this.showFinishButton();\n }\n\n private showFinishButton() {\n return !this.hideFinish && this.isLastStep();\n }\n\n private runStepLogic() {\n if (this.isOpen()) {\n requestAnimationFrame(() => {\n this.highlightElement();\n this.positionModal();\n this.scrollToElement();\n });\n }\n }\n\n private nextStep() {\n const next = this.step + 1;\n this.step = next;\n }\n\n private prevStep() {\n const prev = this.step - 1;\n this.step = prev;\n }\n\n private endWizard() {\n this.step = -1;\n }\n\n private getNextLabel() {\n const finish = this.labelFinish || 'FINISH';\n const next = this.labelNext || 'NEXT';\n const prop = this.isLastStep() ? finish : next;\n return this.translate(prop);\n }\n\n private getHighlightTarget() {\n const selector = this.steps[this.step];\n const target = document.querySelector<HTMLElement>(selector);\n return target;\n }\n\n private getHighlightRect() {\n const target = this.getHighlightTarget();\n\n if (!target) return;\n\n const rect = this.getRect(target);\n\n const margin = parseFloat(getComputedStyle(target).margin) || 0;\n const top = rect.top + window.scrollY - margin;\n const left = rect.left + window.scrollX - margin;\n const width = rect.width + margin * 2;\n const height = rect.height + margin * 2;\n const radius = parseFloat(getComputedStyle(target).borderRadius) || 4;\n\n return { top, left, width, height, radius };\n }\n\n private scrollToElement() {\n const target = this.getHighlightTarget();\n if (!target) return;\n\n target.scrollIntoView({ behavior: 'smooth', block: this.scrollBlock });\n }\n\n private highlightElement() {\n const target = this.getHighlightTarget();\n if (!target) return;\n this.setHighlightVars(this.getHighlightRect());\n }\n\n private positionModal() {\n const target = this.getHighlightTarget();\n\n if (!target) return;\n\n const gap = 16;\n\n // Target = Highlighted element\n const { top: targetTop, left: targetLeft, width: targetWidth, height: targetHeight } = this.getHighlightRect();\n // Modal = Wizard content\n const { width: modalWidth, height: modalHeight } = this.getRect(this.wizardContent);\n\n const targetCenter = targetLeft + targetWidth / 2;\n\n let contentX: number = 0;\n let contentY: number = 0;\n\n // Get viewport dimensions and scroll position\n const { scrollY, scrollX, innerWidth, innerHeight } = window;\n\n const scrollbarWidth = innerWidth - document.documentElement.clientWidth;\n\n // If highlight is very tall, position wizardContent left or right\n // const highlightIsTall = modalHeight > targetTop && modalHeight > innerHeight - (targetTop + targetHeight);\n\n // Where does the modal fit?\n const modalFitsDown = targetTop + targetHeight + gap + modalHeight < scrollY + innerHeight;\n const modalFitsUp = targetTop - gap - modalHeight > scrollY;\n const modalFitsLeft = targetLeft - gap - modalWidth > scrollX;\n const modalFitsRight = targetLeft + targetWidth + gap + modalWidth < scrollX + innerWidth;\n\n const modalFitsNone = !modalFitsDown && !modalFitsUp && !modalFitsLeft && !modalFitsRight;\n\n const fitsY = modalFitsDown || modalFitsUp;\n const fitsX = modalFitsLeft || modalFitsRight;\n\n let maxY: number = 8;\n let maxX: number = 8;\n\n maxY = modalFitsDown ? targetTop + targetHeight + gap : targetTop - modalHeight - gap;\n maxX = scrollX + innerWidth - modalWidth - scrollbarWidth - 8;\n\n // Arrow stuff\n let arrowOffset: number = 0;\n let arrowDirection: 'top' | 'bottom' | 'left' | 'right' = 'top';\n\n if (fitsY) {\n contentX = targetCenter - modalWidth / 2;\n contentY = modalFitsDown ? targetTop + targetHeight + gap : targetTop - modalHeight - gap;\n\n arrowDirection = modalFitsDown ? 'top' : 'bottom';\n arrowOffset = targetCenter - contentX;\n } else if (fitsX) {\n contentX = modalFitsRight ? targetLeft + targetWidth + gap : targetLeft - modalWidth - gap;\n contentY = targetTop + targetHeight / 2 - modalHeight / 2;\n\n maxY = targetTop + targetHeight / 2;\n\n arrowDirection = modalFitsRight ? 'left' : 'right';\n arrowOffset = modalHeight / 2;\n } else if (modalFitsNone) {\n contentX = targetCenter - modalWidth / 2;\n contentY = targetTop + targetHeight - modalHeight / 2;\n\n maxY = innerHeight - modalHeight - 8;\n\n arrowDirection = 'top';\n arrowOffset = targetCenter - contentX;\n }\n\n // Clamp horizontally within viewport\n const minX = scrollX + scrollbarWidth || 8;\n contentX = Math.max(minX, Math.min(contentX, maxX));\n\n // Clamp vertically within viewport\n const minY = 8;\n contentY = Math.max(minY, Math.min(contentY, maxY));\n\n this.setModalVars({ top: contentY, left: contentX });\n\n if (isSmallScreen()) {\n arrowDirection = 'top';\n }\n\n // Adjust arrow offset based on final position\n if (arrowDirection === 'top' || arrowDirection === 'bottom') {\n arrowOffset = targetCenter - contentX;\n } else {\n arrowOffset = targetTop + targetHeight / 2 - contentY;\n }\n\n arrowOffset = Math.max(\n 32, // Minimum offset from edge\n Math.min(arrowOffset - 8, (fitsX ? modalHeight : modalWidth) - 32),\n );\n\n this.setArrowVars(arrowDirection, arrowOffset);\n }\n\n private setHighlightVars({\n top,\n left,\n width,\n height,\n radius,\n }: {\n top: number;\n left: number;\n width: number;\n height: number;\n radius: number;\n }) {\n // Center and scale the highlight using transform\n this.hostElement.style.setProperty('--pn-spotlight-x', `${Math.round(left)}px`);\n this.hostElement.style.setProperty('--pn-spotlight-y', `${Math.round(top)}px`);\n this.hostElement.style.setProperty('--pn-spotlight-width', `${Math.round(width)}px`);\n this.hostElement.style.setProperty('--pn-spotlight-height', `${Math.round(height)}px`);\n this.hostElement.style.setProperty('--pn-spotlight-radius', `${Math.round(radius)}px`);\n }\n\n private setModalVars({ top, left }: { top: number; left: number }) {\n this.hostElement.style.setProperty('--pn-wizard-content-x', `${Math.round(left)}px`);\n this.hostElement.style.setProperty('--pn-wizard-content-y', `${Math.round(top)}px`);\n }\n\n private setArrowVars(direction: string, offset: number) {\n this.wizardArrow.setAttribute('data-arrow', direction);\n this.hostElement.style.setProperty('--pn-arrow-offset', `${Math.round(offset)}px`);\n }\n\n render() {\n return (\n <Host>\n <dialog\n id={this.pnId}\n aria-labelledby={this.label ? this.wizardIdLabel : null}\n aria-describedby={this.helpertext ? this.wizardIdHelpertext : null}\n class=\"pn-wizard\"\n ref={el => (this.wizardElement = el)}\n onCancel={() => this.endWizard()}\n onClose={() => this.endWizard()}\n >\n <div class=\"pn-wizard-overlay\">\n <div class=\"pn-wizard-highlight\" onClick={e => this.wizardHighlightClick.emit(e)}></div>\n </div>\n\n <div class=\"pn-wizard-content\" ref={el => (this.wizardContent = el)}>\n <pn-button\n class=\"pn-wizard-cancel\"\n arialabel={this.translate('CANCEL')}\n icon={close}\n iconOnly\n small\n appearance=\"light\"\n variant=\"borderless\"\n onPnClick={() => this.endWizard()}\n />\n\n <div class=\"pn-wizard-text\">\n {this.label && (\n <h2 class=\"pn-wizard-label\" id={this.wizardIdLabel}>\n {this.label}\n </h2>\n )}\n {this.helpertext && (\n <p class=\"pn-wizard-helpertext\" id={this.wizardIdHelpertext}>\n {this.helpertext}\n </p>\n )}\n\n <slot></slot>\n\n {this.renderProgress() && (\n <pn-progress-stepper\n class={!this.isProgressDots() && 'pn-wizard-sr-only'}\n totalSteps={this.steps.length}\n currentStep={this.step > 0 ? this.step + 1 : 1}\n dots\n />\n )}\n </div>\n <div class=\"pn-wizard-arrow\" ref={el => (this.wizardArrow = el)}></div>\n <div class=\"pn-wizard-controls\">\n {this.isProgressText() && (\n <span class=\"pn-wizard-indicator\" aria-hidden=\"true\">\n {this.step + 1}/{this.steps.length}\n </span>\n )}\n <slot name=\"buttons\"></slot>\n {this.showBackButton() && (\n <pn-button\n label={this.labelBack || this.translate('PREV')}\n small\n appearance=\"light\"\n variant=\"outlined\"\n onPnClick={() => this.prevStep()}\n />\n )}\n {this.showNextButton() && (\n <pn-button label={this.getNextLabel()} small icon={arrow_right} onPnClick={() => this.nextStep()} />\n )}\n </div>\n </div>\n </dialog>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../../src/components/feedback/pn-wizard/translation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,OAAO;KACZ;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,YAAY;QAChB,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,WAAW;QACf,EAAE,EAAE,SAAS;KACd;IACD,MAAM,EAAE;QACN,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,SAAS;KACd;IACD,MAAM,EAAE;QACN,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,QAAQ;KACb;CACF,CAAC","sourcesContent":["export const translations = {\n NEXT: {\n sv: 'Nästa',\n en: 'Next',\n da: 'Næste',\n fi: 'Seuraava',\n no: 'Neste',\n },\n PREV: {\n sv: 'Föregående',\n en: 'Previous',\n da: 'Forrige',\n fi: 'Edellinen',\n no: 'Forrige',\n },\n FINISH: {\n sv: 'Slutför',\n en: 'Finish',\n da: 'Afslut',\n fi: 'Valmis',\n no: 'Fullfør',\n },\n CANCEL: {\n sv: 'Avbryt',\n en: 'Cancel',\n da: 'Annuller',\n fi: 'Peruuta',\n no: 'Avbryt',\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pn-checkbox.js","sourceRoot":"","sources":["../../../../src/components/input/pn-checkbox/pn-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;;;;;GAUG;AAKH,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,oBAAoB,CAAC;;;;IACxC,EAAE,GAAW,eAAe,MAAM,EAAE,EAAE,CAAC;IAChD,YAAY,GAAW,GAAG,IAAI,CAAC,EAAE,aAAa,CAAC;IAE/C,WAAW,CAAc;IAEtB,WAAW,CAAc;IAEpC,yBAAyB;IACjB,KAAK,CAAU;IACvB,wDAAwD;IAChD,UAAU,CAAU;IAE5B,uDAAuD;IAC9B,KAAK,CAAU;IACxC,sCAAsC;IAC9B,IAAI,CAAU;IACtB,0BAA0B;IACD,OAAO,GAAa,KAAK,CAAC;IACnD,yCAAyC;IACjC,UAAU,GAAY,IAAI,CAAC,EAAE,CAAC;IAEtC,oDAAoD;IAC5C,QAAQ,GAAa,KAAK,CAAC;IACnC,4CAA4C;IACpC,QAAQ,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { uuidv4 } from '@/globals/helpers';\nimport { Component, Element, h, Host, Prop, Watch, Mixin } from '@stencil/core';\nimport { animateHeightFactory } from '@/globals/mixins';\n\n/**\n * The `pn-checkbox` is built with a native `input[type=\"checkbox\"]` in the background.\n * This means you can use native events to listen to the changes.\n *\n * @nativeChange Use the `change` event to listen when the checkbox state is being toggled.\n *\n * @slot - The default slot for adding custom HTML under the label/helpertext. {@since v7.17.0}\n * @slot helpertext - Use this slot to add custom HTML inside of the helpertext element.\n * Only recommended if you need a link without the `tile` prop. {@since v7.17.0}\n * @slot content - When using the `tile` and `expand` props, this slot will be revealed when the input is checked. {@since v7.17.0}\n */\n@Component({\n tag: 'pn-checkbox',\n styleUrl: 'pn-checkbox.scss',\n})\nexport class PnCheckbox extends Mixin(animateHeightFactory) {\n private readonly id: string = `pn-checkbox-${uuidv4()}`;\n private idHelpertext: string = `${this.id}-helpertext`;\n\n private contentArea: HTMLElement;\n\n @Element() hostElement: HTMLElement;\n\n /** The checkbox label */\n @Prop() label?: string;\n /** This adds an optional helpertext under the label. */\n @Prop() helpertext?: string;\n\n /** This will be emitted on change and input events. */\n @Prop({ reflect: true }) value!: string;\n /** The name of the checkbox group. */\n @Prop() name?: string;\n /** Check the checkbox. */\n @Prop({ mutable: true }) checked?: boolean = false;\n /** A unique HTML ID for the checkbox. */\n @Prop() checkboxid?: string = this.id;\n\n /** Set the checkbox as required. @category State */\n @Prop() required?: boolean = false;\n /** Disable the checkbox. @category State */\n @Prop() disabled?: boolean = false;\n /** If set to true, color scheme will turn red, indicating that there is an issue or incorrect input related the checkbox. @category State */\n @Prop() invalid?: boolean = false;\n /** Sets the checkbox to an indeterminate state, allowing for a mixed or intermediate checkbox state. @category State */\n @Prop({ mutable: true }) indeterminate: boolean = false;\n\n /**\n * Turn the checkbox into a clickable tile. A border and padding is added.\n *\n * **Do not** use interactive elements (links/buttons) inside of the slots when using this prop.\n * An exception is made when using the `tile` + `expand` props together,\n * which allows you to use interactive elements.\n *\n * @category Tile\n */\n @Prop() tile?: boolean = false;\n /**\n * Allow the checkbox to control the slot area \"content\".\n * When checked, the area is visible, when unchecked, the area is hidden.\n *\n * The prop `tile` must be used at the same time.\n * @see {@link tile}\n * @since v7.17.0\n * @category Tile\n */\n @Prop() expand?: boolean = false;\n /**\n * Add an icon on the right of your checkbox tile. The `tile` prop must be `true` for the icon to work.\n * @see {@link tile}\n * @category Tile\n */\n @Prop() icon?: string = null;\n\n @Watch('checkboxid')\n handleId() {\n this.idHelpertext = `${this.checkboxid}-helpertext`;\n }\n\n @Watch('checked')\n handleChecked() {\n if (this.displayContent()) {\n this.checked ? this.openDropdown(this.contentArea) : this.closeDropdown(this.contentArea);\n }\n }\n\n componentWillLoad() {\n this.handleId();\n }\n\n componentDidLoad() {\n if (this.displayContent() && this.checked) {\n requestAnimationFrame(() => this.openDropdown(this.contentArea));\n }\n }\n\n private handleChange(e: Event) {\n const { checked } = e.target as HTMLInputElement;\n this.indeterminate = false;\n this.checked = checked;\n }\n\n private isInvalid(): boolean {\n return this.invalid && !this.disabled;\n }\n\n private displayText(): boolean {\n return this.displayLabel() || this.displayHelpertext();\n }\n\n private displayLabel(): boolean {\n return !!this.label;\n }\n\n private displayHelpertext(): boolean {\n return !!(this.helpertext || this.hostElement.querySelector('[slot=\"helpertext\"]')?.textContent);\n }\n\n private displayIcon(): boolean {\n return this.tile && !!this.icon;\n }\n\n private displayContent(): boolean {\n return this.tile && this.expand;\n }\n\n render() {\n return (\n <Host>\n <input\n type=\"checkbox\"\n id={this.checkboxid}\n class=\"pn-checkbox-input\"\n value={this.value}\n name={this.name}\n disabled={this.disabled}\n checked={this.checked}\n required={this.required}\n indeterminate={this.indeterminate}\n aria-invalid={this.isInvalid()?.toString()}\n aria-describedby={this.helpertext && this.idHelpertext}\n data-tile={this.tile}\n data-expand={this.expand}\n onChange={e => this.handleChange(e)}\n />\n <div class=\"pn-checkbox\" data-tile={this.tile} data-expand={this.expand} data-invalid={this.isInvalid()}>\n <div class=\"pn-checkbox-outer\">\n <svg class=\"pn-checkbox-svg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <polyline\n class=\"pn-checkbox-svg-line pn-checkbox-svg-checkmark\"\n points=\"4,12 9,17 20,6\"\n stroke-width=\"3\"\n />\n <polyline\n class=\"pn-checkbox-svg-line pn-checkbox-svg-indeterminate\"\n points=\"4,12 20,12\"\n stroke-width=\"3\"\n />\n </svg>\n </div>\n\n <p class=\"pn-checkbox-content\" hidden={!this.displayText()}>\n <label htmlFor={this.checkboxid} class=\"pn-checkbox-label\" hidden={!this.displayLabel()}>\n {this.label}\n </label>\n <span id={this.idHelpertext} class=\"pn-checkbox-helpertext\" hidden={!this.displayHelpertext()}>\n {this.helpertext}\n <slot name=\"helpertext\"></slot>\n </span>\n <slot></slot>\n </p>\n\n {this.displayIcon() && <pn-icon icon={this.icon} color=\"gray900\" />}\n\n <div\n class=\"pn-checkbox-container\"\n data-open={this.checked}\n hidden={!this.displayContent()}\n style={{ height: '0px' }}\n ref={el => (this.contentArea = el)}\n >\n <div class=\"pn-checkbox-area\">\n <slot name=\"content\"></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|