@postnord/pn-marketweb-components 2.4.29 → 2.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/{index-95e5b7f9.js → index-7ebb05d7.js} +1 -1
- package/cjs/{index-4199ff85.js → index-d6f2e2f9.js} +6 -0
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-e0d1e412.js → pn-find-price-store-1f005e0d.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-0b544d1e.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
- package/cjs/pn-line-shape.cjs.entry.js +1 -1
- package/cjs/pn-link-list.cjs.entry.js +57 -0
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-a31c1d1e.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
- package/cjs/{pn-marketweb-siteheader-store-5ced6902.js → pn-marketweb-siteheader-store-a939014c.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +2 -2
- 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-947b08ae.js → pn-profile-modal-store-2525eee2.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +25 -3
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +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-d2389306.js → pn-sidenav-store-18b8c3ff.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +1 -1
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js +1 -1
- package/collection/components/widgets/pn-link-list/link-list.stories.js +50 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.css +140 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.js +185 -0
- package/collection/components/widgets/pn-proxio-findprice/data.js +20 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +21 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/pn-link-list.d.ts +11 -0
- package/components/pn-link-list.js +80 -0
- package/components/pn-multi-row-connected-dropdown.js +1 -1
- package/components/pn-proxio-findprice.js +24 -1
- package/esm/{index-ee44c065.js → index-be8c3299.js} +6 -0
- package/esm/{index-b71e0f8e.js → index-e6fbe66d.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-choice-button.entry.js +1 -1
- package/esm/pn-cta-block.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-5810a2b9.js → pn-find-price-store-9d2df21a.js} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-0b1b3ab7.js → pn-find-service-and-price-store-60025dfc.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-link-list.entry.js +53 -0
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-8c221c2f.js → pn-mainnav-store-35a91e97.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/{pn-marketweb-siteheader-store-cea5016e.js → pn-marketweb-siteheader-store-aba9e86a.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-multi-formfield.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +2 -2
- 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-e08316b5.js → pn-profile-modal-store-12c5acf9.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +25 -3
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +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-9530b0da.js → pn-sidenav-store-a515dd69.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +1 -1
- package/esm/pn-titletag.entry.js +1 -1
- package/esm-es5/{index-ee44c065.js → index-be8c3299.js} +1 -1
- package/esm-es5/{index-b71e0f8e.js → index-e6fbe66d.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-address-autofill.entry.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -1
- package/esm-es5/pn-app-banner.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +1 -1
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-cta-block.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-date-and-time.entry.js +1 -1
- package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-5810a2b9.js → pn-find-price-store-9d2df21a.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-0b1b3ab7.js → pn-find-service-and-price-store-60025dfc.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-link-list.entry.js +1 -0
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-8c221c2f.js → pn-mainnav-store-35a91e97.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-multi-formfield.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm-es5/pn-multiple-input.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-play-on-scroll.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-e08316b5.js → pn-profile-modal-store-12c5acf9.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-scroll_2.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -1
- package/esm-es5/pn-share.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-9530b0da.js → pn-sidenav-store-a515dd69.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_3.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-cde2fce7.entry.js → p-00d87476.entry.js} +1 -1
- package/pn-market-web-components/{p-b28cf3a3.system.entry.js → p-027911c8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e3a65e18.js → p-03d7d79b.js} +1 -1
- package/pn-market-web-components/{p-4fbea675.entry.js → p-0412e417.entry.js} +1 -1
- package/pn-market-web-components/{p-83c85053.system.entry.js → p-05257edc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fba780f8.system.entry.js → p-087a6e41.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3f2bc920.entry.js → p-0a3aa74f.entry.js} +1 -1
- package/pn-market-web-components/{p-f9b8baf0.system.entry.js → p-0f6f212a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e47abff1.system.entry.js → p-0f73d268.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c2415b38.entry.js → p-103c054e.entry.js} +1 -1
- package/pn-market-web-components/{p-e5d994ff.system.js → p-11f6fb30.system.js} +1 -1
- package/pn-market-web-components/{p-1b282c2b.entry.js → p-132feb89.entry.js} +1 -1
- package/pn-market-web-components/{p-b1527c0c.entry.js → p-13f2cbda.entry.js} +1 -1
- package/pn-market-web-components/{p-bbcd8889.system.entry.js → p-14ebd1f5.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3a897643.system.entry.js → p-1565d46e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9d517155.entry.js → p-15fd32d4.entry.js} +1 -1
- package/pn-market-web-components/{p-16fedd71.entry.js → p-1998b5b1.entry.js} +1 -1
- package/pn-market-web-components/{p-267fc52b.entry.js → p-1e0fd641.entry.js} +1 -1
- package/pn-market-web-components/{p-57957809.entry.js → p-26869f6d.entry.js} +1 -1
- package/pn-market-web-components/{p-af1be0d9.entry.js → p-294cb592.entry.js} +1 -1
- package/pn-market-web-components/{p-62bceebe.system.entry.js → p-29a7c74f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0be5cbf5.entry.js → p-2e6d5633.entry.js} +1 -1
- package/pn-market-web-components/p-2ef39f23.entry.js +1 -0
- package/pn-market-web-components/{p-c954c090.entry.js → p-2f4aa8c6.entry.js} +1 -1
- package/pn-market-web-components/{p-70ef1b2d.system.entry.js → p-30571cc1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0ee378ea.system.entry.js → p-332d070d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e00b1afa.entry.js → p-335d95b7.entry.js} +1 -1
- package/pn-market-web-components/{p-436857a8.entry.js → p-345648e8.entry.js} +1 -1
- package/pn-market-web-components/{p-38c861d5.system.entry.js → p-35b5ea63.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ad952e14.system.entry.js → p-390895ec.system.entry.js} +1 -1
- package/pn-market-web-components/{p-738c179b.system.entry.js → p-39f2c4d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a953d346.entry.js → p-3c2b6fb6.entry.js} +1 -1
- package/pn-market-web-components/{p-ca04e415.system.entry.js → p-3d0c3caa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7877ce39.system.entry.js → p-3ee0f67f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8e9e0c04.entry.js → p-4069761c.entry.js} +1 -1
- package/pn-market-web-components/{p-e5d9f268.entry.js → p-42ea5bd1.entry.js} +1 -1
- package/pn-market-web-components/{p-7364721d.system.entry.js → p-43b76595.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1bf35bf0.entry.js → p-4572f290.entry.js} +1 -1
- package/pn-market-web-components/{p-1b4a75b3.system.entry.js → p-463a5975.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e247fdf4.system.entry.js → p-476c4f58.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6fe471aa.system.entry.js → p-48a38770.system.entry.js} +1 -1
- package/pn-market-web-components/{p-420c307b.system.js → p-48da3826.system.js} +1 -1
- package/pn-market-web-components/{p-759a2b20.system.entry.js → p-49896e47.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4b510969.entry.js → p-4e73bb67.entry.js} +1 -1
- package/pn-market-web-components/{p-96729f36.system.entry.js → p-550b2b29.system.entry.js} +1 -1
- package/pn-market-web-components/p-583df48e.system.entry.js +1 -0
- package/pn-market-web-components/{p-7bf30d19.entry.js → p-5840be2e.entry.js} +1 -1
- package/pn-market-web-components/{p-153b4454.system.entry.js → p-592360ba.system.entry.js} +1 -1
- package/pn-market-web-components/{p-196b2316.system.entry.js → p-595e8f54.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2744b30a.entry.js → p-5e61eb13.entry.js} +1 -1
- package/pn-market-web-components/{p-3e5d59f2.system.entry.js → p-609f1695.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c02fc405.entry.js → p-6125c132.entry.js} +1 -1
- package/pn-market-web-components/{p-7ffa5533.system.js → p-6259e4f4.system.js} +1 -1
- package/pn-market-web-components/{p-59d44719.entry.js → p-63679401.entry.js} +1 -1
- package/pn-market-web-components/{p-c0961278.system.entry.js → p-63b48e94.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4afba818.entry.js → p-64048a03.entry.js} +1 -1
- package/pn-market-web-components/{p-4f2bdae2.entry.js → p-64691d51.entry.js} +1 -1
- package/pn-market-web-components/{p-fec3dc66.entry.js → p-666d2bfb.entry.js} +1 -1
- package/pn-market-web-components/{p-4d2d81b8.system.entry.js → p-688d183e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ad7a00b6.system.entry.js → p-69342caf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a7d52aee.js → p-6a230cb1.js} +1 -1
- package/pn-market-web-components/{p-e6e7e18a.entry.js → p-6a71dc95.entry.js} +1 -1
- package/pn-market-web-components/{p-e05b6e0c.entry.js → p-6aab92c0.entry.js} +1 -1
- package/pn-market-web-components/{p-3aef506c.entry.js → p-6aaf35c7.entry.js} +1 -1
- package/pn-market-web-components/{p-f074da8f.system.js → p-6b02dc02.system.js} +1 -1
- package/pn-market-web-components/p-6d945626.system.entry.js +1 -0
- package/pn-market-web-components/{p-f02617fc.entry.js → p-6d9f011f.entry.js} +1 -1
- package/pn-market-web-components/{p-fdb1905d.js → p-746a2620.js} +1 -1
- package/pn-market-web-components/{p-7c1e5042.entry.js → p-7e6853a7.entry.js} +1 -1
- package/pn-market-web-components/{p-1024c80b.entry.js → p-80b04869.entry.js} +1 -1
- package/pn-market-web-components/{p-2ee328d2.entry.js → p-81876fba.entry.js} +1 -1
- package/pn-market-web-components/{p-81902554.system.entry.js → p-825bdb78.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d3511e86.entry.js → p-83d7a808.entry.js} +1 -1
- package/pn-market-web-components/p-85101fc7.entry.js +1 -0
- package/pn-market-web-components/{p-ce1805f0.entry.js → p-865ee8f6.entry.js} +1 -1
- package/pn-market-web-components/{p-b3831534.entry.js → p-88fb2035.entry.js} +1 -1
- package/pn-market-web-components/p-8bafabe5.js +1 -0
- package/pn-market-web-components/{p-7c876907.entry.js → p-8c7787eb.entry.js} +1 -1
- package/pn-market-web-components/{p-9482937b.system.entry.js → p-8cb21818.system.entry.js} +1 -1
- package/pn-market-web-components/p-8d5a041f.js +1 -0
- package/pn-market-web-components/{p-0739fdcf.system.entry.js → p-8eb8e8b2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-47576a14.system.entry.js → p-8f28f717.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8cc12089.entry.js → p-9294451c.entry.js} +1 -1
- package/pn-market-web-components/{p-37abc8d3.system.entry.js → p-944d00e3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c86c624a.entry.js → p-94e96fcf.entry.js} +1 -1
- package/pn-market-web-components/{p-eab25822.entry.js → p-9556936e.entry.js} +1 -1
- package/pn-market-web-components/{p-62de103d.system.entry.js → p-9685af07.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d2ebaf52.system.entry.js → p-98690006.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b4416838.entry.js → p-9cfde6aa.entry.js} +1 -1
- package/pn-market-web-components/{p-83f39020.entry.js → p-9d0074fb.entry.js} +1 -1
- package/pn-market-web-components/{p-4e7d4e69.entry.js → p-9d331ab6.entry.js} +1 -1
- package/pn-market-web-components/{p-4529f4b7.system.entry.js → p-9db7d43b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-38183dee.system.js → p-a0a92f86.system.js} +1 -1
- package/pn-market-web-components/p-a28fce54.system.js +1 -0
- package/pn-market-web-components/{p-4f1df02c.entry.js → p-a2ced6e6.entry.js} +1 -1
- package/pn-market-web-components/{p-1afc6f8f.entry.js → p-a53b3be1.entry.js} +1 -1
- package/pn-market-web-components/{p-1dc6c4ac.system.entry.js → p-a83c758d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3bc31e82.system.entry.js → p-a8c25cad.system.entry.js} +1 -1
- package/pn-market-web-components/{p-01a37a82.entry.js → p-aa485f7f.entry.js} +1 -1
- package/pn-market-web-components/{p-85ce2d47.system.entry.js → p-aad5018c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9e47435e.entry.js → p-b2fc3594.entry.js} +1 -1
- package/pn-market-web-components/{p-220140a0.entry.js → p-b407caff.entry.js} +1 -1
- package/pn-market-web-components/{p-28912c0c.system.entry.js → p-b49d0553.system.entry.js} +1 -1
- package/pn-market-web-components/{p-169ccf69.entry.js → p-b6301b42.entry.js} +1 -1
- package/pn-market-web-components/{p-7787ca3b.entry.js → p-b8266eeb.entry.js} +1 -1
- package/pn-market-web-components/{p-47239bce.system.entry.js → p-ba1cce09.system.entry.js} +1 -1
- package/pn-market-web-components/{p-52e8d0ec.system.entry.js → p-bb93f102.system.entry.js} +1 -1
- package/pn-market-web-components/p-bdcedfe9.system.js +1 -0
- package/pn-market-web-components/{p-612adfb3.system.entry.js → p-bf1f69fa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f1962610.js → p-c02ddf82.js} +1 -1
- package/pn-market-web-components/{p-a8aff7ab.system.entry.js → p-c1204325.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d2ba5b69.entry.js → p-c1ec42a6.entry.js} +1 -1
- package/pn-market-web-components/{p-2cc52ba6.entry.js → p-c3015b3f.entry.js} +1 -1
- package/pn-market-web-components/{p-c06e3588.system.entry.js → p-c3899747.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8aec3e9e.entry.js → p-c633a40e.entry.js} +1 -1
- package/pn-market-web-components/{p-5d2a19e3.entry.js → p-c6409b81.entry.js} +1 -1
- package/pn-market-web-components/{p-31b84367.system.entry.js → p-c6f91f94.system.entry.js} +1 -1
- package/pn-market-web-components/{p-81608e33.system.entry.js → p-cb9d36ab.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3fab06aa.system.entry.js → p-cc5c611e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7a33e360.entry.js → p-cd8185a6.entry.js} +1 -1
- package/pn-market-web-components/{p-5afd892a.entry.js → p-cd8ae615.entry.js} +1 -1
- package/pn-market-web-components/{p-592b66fc.system.entry.js → p-d0c8d951.system.entry.js} +1 -1
- package/pn-market-web-components/{p-57d37022.js → p-d0e65d70.js} +1 -1
- package/pn-market-web-components/{p-969d310d.system.entry.js → p-d5c43a05.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1bd7e641.entry.js → p-d6492b8a.entry.js} +1 -1
- package/pn-market-web-components/{p-e2613cc5.system.entry.js → p-d6893c90.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4bd36d2c.system.entry.js → p-dc91c260.system.entry.js} +1 -1
- package/pn-market-web-components/{p-356a937e.system.entry.js → p-dd4efba9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-793bb22f.system.entry.js → p-dda5e084.system.entry.js} +1 -1
- package/pn-market-web-components/{p-41f5086b.system.entry.js → p-e07ff731.system.entry.js} +1 -1
- package/pn-market-web-components/{p-46a4dbdd.system.entry.js → p-e13a6bab.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2156e251.entry.js → p-e2892448.entry.js} +1 -1
- package/pn-market-web-components/{p-4b71d79d.system.entry.js → p-e4e67dad.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d1150166.system.entry.js → p-e5c7627c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f4adb442.system.js → p-e5f99384.system.js} +1 -1
- package/pn-market-web-components/{p-5032302f.entry.js → p-e62c4259.entry.js} +1 -1
- package/pn-market-web-components/{p-743b1d06.system.entry.js → p-e64e95a8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0d0e9547.system.js → p-e76bd03c.system.js} +1 -1
- package/pn-market-web-components/{p-71740e7e.system.entry.js → p-e7a1e178.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0c1a0814.system.entry.js → p-eaad04e5.system.entry.js} +1 -1
- package/pn-market-web-components/p-eb110830.js +1 -0
- package/pn-market-web-components/{p-56ac01d0.entry.js → p-eb42a545.entry.js} +1 -1
- package/pn-market-web-components/{p-1135350f.system.entry.js → p-eb9a3c2d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a400365f.entry.js → p-eba15c54.entry.js} +1 -1
- package/pn-market-web-components/{p-313658e7.entry.js → p-ed9dd574.entry.js} +1 -1
- package/pn-market-web-components/{p-e8b144ff.system.entry.js → p-eea5ac80.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7e81b501.system.entry.js → p-f737524e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-70cc4002.system.entry.js → p-f80e46eb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a4fcfc3c.entry.js → p-fab635c7.entry.js} +1 -1
- package/pn-market-web-components/{p-00287dc7.entry.js → p-fba12f1d.entry.js} +1 -1
- package/pn-market-web-components/{p-bed03b9c.system.entry.js → p-fbafd07a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-76ce7256.entry.js → p-fc583d96.entry.js} +1 -1
- package/pn-market-web-components/{p-794af3d3.system.entry.js → p-fce10fa7.system.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/widgets/pn-link-list/pn-link-list.d.ts +17 -0
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice.d.ts +1 -0
- package/types/components.d.ts +25 -0
- package/esm-es5/pn-marketweb-siteheader-store-cea5016e.js +0 -1
- package/pn-market-web-components/p-18aca162.system.entry.js +0 -1
- package/pn-market-web-components/p-372b4cad.entry.js +0 -1
- package/pn-market-web-components/p-6f2e839c.js +0 -1
- package/pn-market-web-components/p-ba06f541.system.js +0 -1
- package/pn-market-web-components/p-d8e0d7e7.js +0 -1
- package/pn-market-web-components/p-f5eddbe2.js +0 -1
- package/pn-market-web-components/p-fcdb7381.system.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(t){"use strict";var c,a,o,n;return{setters:[function(t){c=t.r;a=t.h;o=t.a;n=t.g}],execute:function(){var e="pn-cta-block .cta-block{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;border-radius:2.4rem;padding:3.2rem 2.4rem;width:100%}@media screen and (min-width: 768px){pn-cta-block .cta-block{-ms-flex-direction:row;flex-direction:row;padding:2.4rem}}@media screen and (min-width: 1140px){pn-cta-block .cta-block{margin-right:auto;margin-left:auto;max-width:95%}}@media screen and (min-width: 1440px){pn-cta-block .cta-block{max-width:90%}}pn-cta-block .cta-block[pn-background-color=blue25]{background-color:#EFFBFF}pn-cta-block .cta-block[pn-background-color=coral50]{background-color:#FDEFEE}pn-cta-block .cta-block[pn-background-color=gray25]{background-color:#F9F8F8}pn-cta-block .cta-block[pn-background-color=green25]{background-color:#EDFBF3}pn-cta-block .cta-block--content-top .cta-block__content{-ms-flex-pack:start;justify-content:flex-start}@media screen and (min-width: 768px){pn-cta-block .cta-block--large .cta-block__heading{font-size:3.6rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block--large .cta-block__text{font-size:2rem}}pn-cta-block .cta-block--small{margin-right:auto;margin-left:auto;width:auto}@media screen and (min-width: 992px){pn-cta-block .cta-block--small{max-width:75%}}pn-cta-block .cta-block--center{-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;padding:3.2rem 2.4rem;text-align:center}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__content{max-width:74rem;padding:0}}pn-cta-block .cta-block--center .cta-block__action{margin-top:0.8rem}pn-cta-block .cta-block--center .cta-block__action>[slot=cta-button]{gap:0.8rem}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__action{-ms-flex-direction:row;flex-direction:row;gap:2.4rem;margin-top:1.6rem}pn-cta-block .cta-block--center .cta-block__action.cta-block__button{margin-bottom:0}pn-cta-block .cta-block--center .cta-block__action>[slot=cta-button]{-ms-flex-direction:row;flex-direction:row;gap:2.4rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__image-wrapper{display:block}}pn-cta-block .cta-block--center .cta-block__image-wrapper>[slot=illustration]{padding-right:0}pn-cta-block .cta-block__image-wrapper{margin-bottom:1.6rem}pn-cta-block .cta-block__image-wrapper>[slot=illustration]>picture>img{border-radius:0.8rem;max-width:100%}@media screen and (min-width: 768px){pn-cta-block .cta-block__image-wrapper{display:none;max-width:20%}}@media screen and (min-width: 992px){pn-cta-block .cta-block__image-wrapper{display:block;margin-bottom:0}pn-cta-block .cta-block__image-wrapper>[slot=illustration]{padding-right:3.2rem}}pn-cta-block .cta-block__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 768px){pn-cta-block .cta-block__content{padding-right:2.4rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block__content .cta-block__heading{max-width:74rem}}pn-cta-block .cta-block__content .cta-block__text{margin-bottom:2.4rem}@media screen and (min-width: 768px){pn-cta-block .cta-block__content .cta-block__text{max-width:74rem}}pn-cta-block .cta-block__heading{margin-bottom:0.8rem}pn-cta-block .cta-block__action{display:-ms-flexbox;display:flex}pn-cta-block .cta-block__action>[slot=cta-button]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;row-gap:1.6rem}@media screen and (min-width: 768px){pn-cta-block .cta-block__action>[slot=cta-button]{gap:1.6rem;margin-top:0}}pn-cta-block .cta-block__action>[slot=cta-button]>a{color:#005D92;font-weight:500;font-size:1.6rem;padding:0.1rem;text-decoration:none}pn-cta-block .cta-block__action>[slot=cta-button]>a pn-icon svg{-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out}pn-cta-block .cta-block__action>[slot=cta-button]>a pn-icon svg path{fill:#005D92}pn-cta-block .cta-block__action>[slot=cta-button]>a:hover pn-icon svg{-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:translateX(0.3rem);transform:translateX(0.3rem)}pn-cta-block .cta-block__action>[slot=cta-button]>a:hover pn-icon svg path{fill:#005D92}";var i=t("pn_cta_block",function(){function t(t){c(this,t);this.heading=null;this.bodyText=null;this.pnBackgroundColor=null;this.isLarge=false;this.isCentered=false;this.isSmall=false;this.contentTop=false;this.hasIllustrationSlot=true;this.hasButtonSlot=true}t.prototype.componentWillLoad=function(){this.hasIllustrationSlot=!!this.hostElement.querySelector('[slot="illustration"]');this.hasButtonSlot=!!this.hostElement.querySelector('[slot="cta-button"]')};t.prototype.render=function(){return a(o,null,a("div",{"pn-background-color":this.pnBackgroundColor,class:"cta-block ".concat(this.isLarge?"cta-block--large":""," ").concat(this.isCentered?"cta-block--center":""," ").concat(this.isSmall?"cta-block--small":""," ").concat(this.contentTop?"cta-block--content-top":"")},a("div",{class:"cta-block__image-wrapper"},a("slot",{name:"illustration"})),a("div",{class:"cta-block__content"},a("h2",{class:"cta-block__heading"},this.heading),a("p",{class:"cta-block__text"},this.bodyText)),a("div",{class:"cta-block__action"},a("slot",{name:"cta-button"}))))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());i.style=e}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js","./p-e5f99384.system.js","./p-bdcedfe9.system.js"],(function(e){"use strict";var n,t,o,i,s;return{setters:[function(e){n=e.r;t=e.h;o=e.a;i=e.g},function(e){s=e.s},function(){}],execute:function(){var r="pn-sidenav-togglebutton{display:block;width:100%;padding:0.8rem 1.6rem;background:#EFFBFF}@media screen and (min-width: 64em){pn-sidenav-togglebutton{display:none}}";var u=e("pn_sidenav_togglebutton",function(){function e(e){n(this,e);this.label="";this.i18n={open:"",close:"",navLabel:""}}e.prototype.onClick=function(){s.openMenu=!s.openMenu;var e=document.querySelector("body");e.setAttribute("data-siteheader-sidemenuopen",s.openMenu+"")};e.prototype.render=function(){return t(o,null,t("pn-button",{appearance:"light",icon:s.openMenu?"close-small":"bars","left-icon":true,small:true,onclick:this.onClick.bind(this),label:this.label},t("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());u.style=r}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"./p-03d7d79b.js";const{state:o,onChange:n}=e({openLevel:"",openMenu:!1,i18n:{open:"",close:"",navLabel:""}});export{n as o,o as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as l,a as o,g as r}from"./p-
|
|
1
|
+
import{r as t,h as l,a as o,g as r}from"./p-d0e65d70.js";const e=class{constructor(l){t(this,l),this.icon=null,this.color="green700"}render(){return l(o,null,l("slot",null),this.icon?l("pn-icon",{symbol:this.icon,small:"false",color:this.color}):null)}get hostElement(){return r(this)}};e.style="pn-titletag{display:-ms-inline-flexbox;display:inline-flex;border-radius:0.4rem;min-height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem;gap:0.6em}pn-titletag[color=green700],pn-titletag[color=green]{color:#005E41;background:#DCF6E7}pn-titletag[color=blue700],pn-titletag[color=blue]{background:#E0F8FF;color:#005D92}pn-titletag[color=coral700],pn-titletag[color=coral]{background:#FDEFEE;color:#9B1C2E}pn-titletag[color=gray900],pn-titletag[color=gray],pn-titletag[color=grey]{background:#D3CECB;color:#2D2013}pn-titletag[color=gray50],pn-titletag[color=lightgray],pn-titletag[color=lightgrey]{background:#F3F2F2;color:#2D2013}";export{e as pn_titletag}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(t){"use strict";var i,n,r;return{setters:[function(t){i=t.r;n=t.h;r=t.a}],execute:function(){var e="pn-proxio-productcard .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;border:solid 0.1rem #F9F8F8;border-radius:0.8rem;overflow:hidden;margin-left:auto;margin-right:auto;margin-bottom:1.6rem}@media screen and (max-width: 48em){pn-proxio-productcard .cardcontent{-ms-flex-direction:column;flex-direction:column}}pn-proxio-productcard .carddetails{min-width:70%;padding:2.4rem;display:-ms-flexbox;display:flex;gap:0.8rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 48em){pn-proxio-productcard .carddetails{gap:1.6rem;margin-bottom:0.8rem}}pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile]{display:none}@media screen and (max-width: 48em){pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile]{margin-top:1.6rem;display:block}pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile] .pn-illustration{max-width:8rem;height:8rem;margin-left:auto;margin-right:auto}}pn-proxio-productcard .cardcalltoactions{min-width:30%;background-color:#EFFBFF;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width: 48em){pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration]{display:none}}pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration] .pn-illustration{max-width:8rem;margin-left:auto;margin-right:auto;margin-top:4rem}pn-proxio-productcard [slot=information]{display:-ms-flexbox;display:flex;gap:1rem}@media screen and (max-width: 48em){pn-proxio-productcard [slot=information]{-ms-flex-direction:column;flex-direction:column;gap:1.6rem}}pn-proxio-productcard [slot=uppertags]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:2rem}pn-proxio-productcard [slot=bottomtags]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:2rem;margin:0.8rem 0}pn-proxio-productcard .heading{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}pn-proxio-productcard [slot=title]{text-decoration:underline}@media screen and (max-width: 48em){pn-proxio-productcard [slot=title]{text-decoration:none}}";var o=t("pn_proxio_productcard",function(){function t(t){i(this,t)}t.prototype.render=function(){return n(r,null,n("div",{class:"cardcontent"},n("div",{class:"carddetails"},n("slot",{name:"illustrationmobile"}),n("div",{class:"heading"},n("slot",{name:"title"}),n("slot",{name:"uppertags"})),n("slot",{name:"description"}),n("slot",{name:"information"}),n("slot",{name:"bottomtags"})),n("div",{class:"cardcalltoactions"},n("slot",{name:"illustration"}),n("slot",{name:"pricelink"}),n("slot",{name:"insurance"}))))};return t}());o.style=e;var l="pn-proxio-productcard-description h3{font-size:1.6rem}pn-proxio-productcard-description ul{padding-left:2.5rem}pn-proxio-productcard-description li{font-size:1.6rem;line-height:2.2rem}pn-proxio-productcard-description .highlight{color:#0AA85C}";var a=t("pn_proxio_productcard_description",function(){function t(t){i(this,t);this.heading=undefined;this.highlight=undefined;this.description=undefined;this.list=[]}t.prototype.render=function(){return n(r,null,this.heading?n("h3",null,this.heading):null,this.highlight?n("h3",{class:"highlight"},this.highlight):null,this.description?n("span",null,this.description):null,this.list?n("ul",null,this.list.map((function(t){return n("li",null,t)}))):null)};return t}());a.style=l;var c="pn-proxio-productcard-information p.cardinfocontent-title{margin-bottom:0.4rem}pn-proxio-productcard-information p strong.cardinfocontent-label{font-size:1.4rem;font-weight:500}";var s=t("pn_proxio_productcard_information",function(){function t(t){i(this,t);this.label=undefined;this.information=[]}t.prototype.render=function(){return n(r,null,n("div",{class:"cardinfocontent"},this.information&&this.information.length>0&&this.label?n("div",{class:"cardinfocontent-item"},this.label?n("p",{class:"cardinfocontent-title"},n("strong",null,this.label)):null,this.information.map((function(t){return t?n("p",null,n("strong",{class:"cardinfocontent-label"},t.item1,":")," ",t.item2):null}))):null))};return t}());s.style=c;var d="pn-proxio-productcard-pricelink{-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:2rem 1rem;gap:0.8rem;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width: 48em){pn-proxio-productcard-pricelink{margin:2.4rem 1rem}}pn-proxio-productcard-pricelink h3{font-size:2rem}pn-proxio-productcard-pricelink pn-button{min-width:17.3rem}pn-proxio-productcard-pricelink pn-button a .pn-button-content{font-size:1.4rem;font-weight:500}@media screen and (max-width: 48em){pn-proxio-productcard-pricelink pn-button{min-width:30rem}}pn-proxio-productcard-pricelink .pn-pricelink-vat{font-weight:400}";var p=t("pn_proxio_productcard_pricelink",function(){function t(t){i(this,t);this.price=undefined;this.vatText="";this.link=undefined;this.linktext=undefined}t.prototype.render=function(){return this.link&&this.linktext?n(r,null,this.price?n("h3",null,this.price," ",n("span",{class:"pn-pricelink-vat"},this.vatText)):null,n("pn-button",{small:"true",icon:"arrow-right",appearance:"light",href:this.link,target:"_blank",rel:"noopener nofollower noreferrer"},this.linktext)):null};return t}());p.style=d}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,a as e,g as r}from"./p-
|
|
1
|
+
import{r as o,h as t,a as e,g as r}from"./p-d0e65d70.js";const n=class{constructor(t){o(this,t),this.heading="",this.description="",this.url=""}render(){return t(e,null,t("a",{class:"customernumberoption",href:this.url},t("span",{class:"customernumberoption-text"},t("span",{class:"customernumberoption-title"},this.heading),t("span",{class:"customernumberoption-description"},this.description),t("slot",null))))}get hostElement(){return r(this)}};n.style="pn-customernumber-selector-option{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden}pn-customernumber-selector-option:last-of-type{border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem}.customernumberoption{overflow:hidden;max-width:100%;text-decoration:none;background:#FFFFFF;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;padding:1.6rem 1rem}.customernumberoption:hover,.customernumberoption:focus,.customernumberoption:active{background:#E0F8FF;text-decoration:none}.customernumberoption-text{font-weight:700;color:#2D2013}.customernumberoption-title{display:block;font-size:1em;color:#005D92;font-weight:700}.customernumberoption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";export{n as pn_customernumber_selector_option}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,a as l,g as n}from"./p-57d37022.js";import{d as e}from"./p-4e3d7a56.js";import{v as h}from"./p-d3d7fec8.js";const o=class{constructor(s){t(this,s),this.allFormValues=i(this,"allFormValues",7),this.pnFirstDropdown=null,this.pnSecondDropdown=null,this.pnSumField=null,this.pnConfirmDeleteButton=null,this.pnAbortDeleteButton=null,this._firstDropdownSelection=null,this._secondDropdownSelection=null,this._defaultRow={id:this.generateUniqueId(),firstInput:"",secondInput:this.secondInputWarning.toString(),date:""},this.dropdownData=null,this.languageCode=null,this.firstDropdownLabel=null,this.firstDropdownHelperText=null,this.secondDropdownLabel=null,this.secondDropdownHelperText=null,this.secondDropdownMax=null,this.deleteMultipleRowsWarningText=null,this.confirmDeleteButtonText=null,this.abortDeleteButtonText=null,this.fristInputLabel=null,this.fristInputPlaceholder=null,this.firstInputMin=null,this.firstInputMax=null,this.firstInputWarning=null,this.firstInputWarningText=null,this.firstInputLowErrorText=null,this.firstInputHighErrorText=null,this.secondInputLabel=null,this.secondInputPlaceholder=null,this.secondInputMin=null,this.secondInputMax=null,this.secondInputWarning=null,this.secondInputWarningText=null,this.secondInputLowErrorText=null,this.secondInputHighErrorText=null,this.dateLabel=null,this.datePlaceholder=null,this.dateDaysFromToday=1,this.yearsToAddToEndDate=null,this.sumFieldLabel=null,this.addRowText=null,this.elementHelperText=null,this.dropdownDataRoot=null,this.secondDropdownArr=[],this.rowCount=null,this.rowData=null,this.formValues=null,this.firstValidDateString="",this.lastValidDateString="",this.rowSum=null,this.minRowCount=null,this.showDelteConfirm=!1}componentWillLoad(){this.formValues=[],this.setDropDownData(),this.updateSecondDropdown(),this.setRowData(),this.setFirstValidDate()}componentDidLoad(){this.updateSum()}setDropDownData(){var t;this.dropdownDataRoot="string"==typeof this.dropdownData?JSON.parse(this.dropdownData):this.dropdownData,(null===(t=this.dropdownDataRoot)||void 0===t?void 0:t.length)&&this.dropdownDataRoot.forEach((t=>{t.value||(t.value=0)})),this.dropdownDataRoot.length>0&&(this.dropdownDataRoot[0].checked=!0,this._firstDropdownSelection=this.dropdownDataRoot[0].caption,this._secondDropdownSelection=this.dropdownDataRoot[0].value,this.minRowCount=this.dropdownDataRoot[0].value)}updateSecondDropdown(){const t=this.dropdownDataRoot.find((t=>!0===t.checked));this.secondDropdownArr=[];for(let i=t.value;i<=this.secondDropdownMax;i++)this.secondDropdownArr.push(i)}updateSelectItemArr(t,i){return t.forEach((t=>{t.checked=t.caption===i&&!t.checked})),t}setRowData(){this.rowData=[];for(let t=0;t<this._secondDropdownSelection;t++){const t=Object.assign({},this._defaultRow);t.id=this.generateUniqueId(),this.rowData=[...this.rowData,t]}this.rowCount=this.rowData.length}generateUniqueId(){return h()}setFirstValidDate(){var t;const i=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2,s=new Date;s.setDate(null!==(t=s.getDate()+this.dateDaysFromToday)&&void 0!==t?t:0);const l=s.getFullYear(),n=(s.getMonth()+1).toString().padStart(2,"0"),e=s.getDate().toString().padStart(2,"0"),h=l+i;this.firstValidDateString=`${l.toString()}-${n}-${e}`,this.lastValidDateString=`${h.toString()}-${n}-${e}`}addRow(t){const i=Object.assign({},this.rowData[0]);i.id=t||this.generateUniqueId(),i.date="",this.rowData=[...this.rowData,i],this.rowCount=this.rowData.length,this._secondDropdownSelection=this.rowCount,this.secondDropdownArr=[...this.secondDropdownArr],this.updateSum(),this.emitValuesIfValid()}handleFirstDropdown(){const t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content"),i=null==t?void 0:t.textContent;if(!(null==i?void 0:i.length))return;this.dropdownDataRoot.forEach((t=>{t.checked=!1}));const s=this.dropdownDataRoot.find((t=>t.caption===i));if(s.checked=!0,this._firstDropdownSelection=s.caption,this.minRowCount=s.value,s.value>this._secondDropdownSelection){this.dropdownDataRoot=[...this.dropdownDataRoot];for(let t=this.rowCount;t<s.value;t++)this.addRow(this.generateUniqueId())}this.updateSecondDropdown(),this.updateSum(),this.emitValuesIfValid()}handleSecondDropdown(){const t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content"),i=null==t?void 0:t.textContent;if(!(null==i?void 0:i.length))return;const s=parseInt(i);if(s<this._secondDropdownSelection)this.showDelteConfirm=!0;else for(let l=this.rowCount;l<s;l++)this.addRow(this.generateUniqueId());this.updateSum(),this.emitValuesIfValid()}predefinedValueChange(t){const i=this.rowData.findIndex((i=>i.id===t.detail.id)),s=t.detail;this.rowData[i]=Object.assign(Object.assign({},this.rowData[i]),{firstInput:s.firstInput,secondInput:s.secondInput,date:s.date}),"firstInputChange"===t.type&&0===i&&this.updateFirstInputOfRows(s.firstInput),"secondInputChange"===t.type&&0===i&&this.updateSecondInputOfRows(s.secondInput),this.rowData=[...this.rowData],this.emitValuesIfValid(),this.updateSum()}updateFirstInputOfRows(t){for(let i=1;i<this.rowCount;i++)this.rowData[i]=Object.assign(Object.assign({},this.rowData[i]),{firstInput:t})}updateSecondInputOfRows(t){for(let i=1;i<this.rowCount;i++)this.rowData[i]=Object.assign(Object.assign({},this.rowData[i]),{secondInput:t})}deleteRowEvent(t){const i=this.rowData.findIndex((i=>i.id===t.detail));i<0||(this.rowData.splice(i,1),this.rowData=[...this.rowData],this.rowCount=this.rowData.length,this._secondDropdownSelection=this.rowCount,this.secondDropdownArr=[...this.secondDropdownArr],this.emitValuesIfValid(),this.updateSum())}updateSum(){this.rowSum="";let t=0;this.rowData.forEach((i=>{var s;(null===(s=null==i?void 0:i.firstInput)||void 0===s?void 0:s.length)&&(t+=parseInt(i.firstInput))})),this.rowSum=t.toString()}deleteExcessRows(){const t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content"),i=null==t?void 0:t.textContent;if(!(null==i?void 0:i.length))return;const s=this.rowCount-parseInt(i);for(let l=0;l<s;l++)this.rowData.pop();this.rowData=[...this.rowData],this.showDelteConfirm=!1,this.updateSum()}abortDeleteRows(){this.showDelteConfirm=!1}emitValuesIfValid(){if(this.formValues=[],this.rowData.forEach((t=>{var i,s,l,n;const e={row:[]};(null===(i=this._firstDropdownSelection)||void 0===i?void 0:i.length)&&e.row.push({name:this.firstDropdownLabel,value:this._firstDropdownSelection}),(null===(s=t.firstInput)||void 0===s?void 0:s.length)&&e.row.push({name:this.fristInputLabel,value:t.firstInput}),(null===(l=t.secondInput)||void 0===l?void 0:l.length)&&e.row.push({name:this.secondInputLabel,value:t.secondInput}),(null===(n=t.date)||void 0===n?void 0:n.length)&&e.row.push({name:this.dateLabel,value:t.date}),4===e.row.length&&this.formValues.push(e)})),this.formValues.length===this.rowData.length){const t=JSON.stringify(this.formValues);this.allFormValues.emit(t)}else this.allFormValues.emit("")}render(){var t,i,n,h,o,u;return s(l,{class:"dropdown-with-multi-input-elemet"},s("div",{class:"dropdown-with-multi-input-elemet__row"},s("div",null,s("pn-select",{ref:t=>this.pnFirstDropdown=t,class:"pn-row-select-dropdown dropDown1-dropdown",label:this.firstDropdownLabel},null===(t=this.dropdownDataRoot)||void 0===t?void 0:t.map(((t,i)=>s("pn-option",{index:i,value:t.value,selected:t.checked,onClick:e.debounce(this.handleFirstDropdown.bind(this),500)},t.caption)))),(null===(i=this.firstDropdownHelperText)||void 0===i?void 0:i.length)?s("small",null,this.firstDropdownHelperText):null)),s("div",{class:"dropdown-with-multi-input-elemet__row"},s("div",null,s("pn-select",{ref:t=>this.pnSecondDropdown=t,class:"pn-row-select-dropdown dropDown2-dropdown",label:this.secondDropdownLabel},null===(n=this.secondDropdownArr)||void 0===n?void 0:n.map(((t,i)=>s("pn-option",{index:i,value:t,selected:t===this._secondDropdownSelection,onClick:e.debounce(this.handleSecondDropdown.bind(this),500)},t)))),(null===(h=this.secondDropdownHelperText)||void 0===h?void 0:h.length)?s("small",null,this.secondDropdownHelperText):null)),this.showDelteConfirm?s("div",{class:"dropdown-with-multi-input-elemet__delete"},s("p",null,this.deleteMultipleRowsWarningText),s("pn-button",{ref:t=>this.pnConfirmDeleteButton=t,small:"true",appearance:"warning",onClick:this.deleteExcessRows.bind(this)},this.confirmDeleteButtonText),s("pn-button",{ref:t=>this.pnAbortDeleteButton=t,small:"true",appearance:"light",onClick:this.abortDeleteRows.bind(this)},this.abortDeleteButtonText)):null,s("div",{class:"dropdown-with-multi-input-elemet__label-row"},s("div",{class:"dropdown-with-multi-input-elemet__label"},s("label",null,this.fristInputLabel)),s("div",{class:"dropdown-with-multi-input-elemet__label"},s("label",null,this.secondInputLabel)),s("div",{class:"dropdown-with-multi-input-elemet__label"},s("label",null,this.dateLabel))),null===(o=this.rowData)||void 0===o?void 0:o.map(((t,i)=>s("div",{class:"dropdown-with-multi-input-elemet__row generated-row-"+i,id:"generated-row-"+i},s("pn-dropdown-with-multi-input-rows-row",{"language-code":this.languageCode,"frist-input-placeholder":this.fristInputPlaceholder,"first-input-min":this.firstInputMin,"first-input-max":this.firstInputMax,"first-input-warning":this.firstInputWarning,"first-input-warning-text":this.firstInputWarningText,"first-input-low-error-text":this.firstInputLowErrorText,"first-input-high-error-text":this.firstInputHighErrorText,"second-input-placeholder":this.secondInputPlaceholder,"second-input-min":this.secondInputMin,"second-input-max":this.secondInputMax,"second-input-warning":this.secondInputWarning,"second-input-warning-text":this.secondInputWarningText,"second-input-low-error-text":this.secondInputLowErrorText,"second-input-high-error-text":this.secondInputHighErrorText,datePlaceholder:this.datePlaceholder,firstValidDate:this.firstValidDateString,lastValidDate:this.lastValidDateString,"predefined-value":JSON.stringify(t),"min-row-count":this.minRowCount,"row-index":i})))),s("div",{class:"dropdown-with-multi-input-elemet__row sum-row"},s("pn-marketweb-input",{disabled:!0,ref:t=>this.pnSumField=t,type:"number",value:this.rowSum,label:this.sumFieldLabel}),s("pn-button",{"icon-only":!this.addRowText,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:()=>{this.addRow(this.generateUniqueId())}},this.addRowText)),(null===(u=this.elementHelperText)||void 0===u?void 0:u.length)?s("div",{class:"dropdown-with-multi-input-elemet__row"},this.elementHelperText):null)}get hostElement(){return n(this)}};o.style="pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row{margin-bottom:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem;padding:1rem;background-color:#F9F8F8}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button{margin-top:0.9rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label{width:30%;font-size:0.875em;color:#5e554a}pn-dropdown-with-multi-input-rows .sum-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";export{o as pn_dropdown_with_multi_input_rows}
|
|
1
|
+
import{r as t,c as i,h as s,a as l,g as n}from"./p-d0e65d70.js";import{d as e}from"./p-4e3d7a56.js";import{v as h}from"./p-d3d7fec8.js";const o=class{constructor(s){t(this,s),this.allFormValues=i(this,"allFormValues",7),this.pnFirstDropdown=null,this.pnSecondDropdown=null,this.pnSumField=null,this.pnConfirmDeleteButton=null,this.pnAbortDeleteButton=null,this._firstDropdownSelection=null,this._secondDropdownSelection=null,this._defaultRow={id:this.generateUniqueId(),firstInput:"",secondInput:this.secondInputWarning.toString(),date:""},this.dropdownData=null,this.languageCode=null,this.firstDropdownLabel=null,this.firstDropdownHelperText=null,this.secondDropdownLabel=null,this.secondDropdownHelperText=null,this.secondDropdownMax=null,this.deleteMultipleRowsWarningText=null,this.confirmDeleteButtonText=null,this.abortDeleteButtonText=null,this.fristInputLabel=null,this.fristInputPlaceholder=null,this.firstInputMin=null,this.firstInputMax=null,this.firstInputWarning=null,this.firstInputWarningText=null,this.firstInputLowErrorText=null,this.firstInputHighErrorText=null,this.secondInputLabel=null,this.secondInputPlaceholder=null,this.secondInputMin=null,this.secondInputMax=null,this.secondInputWarning=null,this.secondInputWarningText=null,this.secondInputLowErrorText=null,this.secondInputHighErrorText=null,this.dateLabel=null,this.datePlaceholder=null,this.dateDaysFromToday=1,this.yearsToAddToEndDate=null,this.sumFieldLabel=null,this.addRowText=null,this.elementHelperText=null,this.dropdownDataRoot=null,this.secondDropdownArr=[],this.rowCount=null,this.rowData=null,this.formValues=null,this.firstValidDateString="",this.lastValidDateString="",this.rowSum=null,this.minRowCount=null,this.showDelteConfirm=!1}componentWillLoad(){this.formValues=[],this.setDropDownData(),this.updateSecondDropdown(),this.setRowData(),this.setFirstValidDate()}componentDidLoad(){this.updateSum()}setDropDownData(){var t;this.dropdownDataRoot="string"==typeof this.dropdownData?JSON.parse(this.dropdownData):this.dropdownData,(null===(t=this.dropdownDataRoot)||void 0===t?void 0:t.length)&&this.dropdownDataRoot.forEach((t=>{t.value||(t.value=0)})),this.dropdownDataRoot.length>0&&(this.dropdownDataRoot[0].checked=!0,this._firstDropdownSelection=this.dropdownDataRoot[0].caption,this._secondDropdownSelection=this.dropdownDataRoot[0].value,this.minRowCount=this.dropdownDataRoot[0].value)}updateSecondDropdown(){const t=this.dropdownDataRoot.find((t=>!0===t.checked));this.secondDropdownArr=[];for(let i=t.value;i<=this.secondDropdownMax;i++)this.secondDropdownArr.push(i)}updateSelectItemArr(t,i){return t.forEach((t=>{t.checked=t.caption===i&&!t.checked})),t}setRowData(){this.rowData=[];for(let t=0;t<this._secondDropdownSelection;t++){const t=Object.assign({},this._defaultRow);t.id=this.generateUniqueId(),this.rowData=[...this.rowData,t]}this.rowCount=this.rowData.length}generateUniqueId(){return h()}setFirstValidDate(){var t;const i=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2,s=new Date;s.setDate(null!==(t=s.getDate()+this.dateDaysFromToday)&&void 0!==t?t:0);const l=s.getFullYear(),n=(s.getMonth()+1).toString().padStart(2,"0"),e=s.getDate().toString().padStart(2,"0"),h=l+i;this.firstValidDateString=`${l.toString()}-${n}-${e}`,this.lastValidDateString=`${h.toString()}-${n}-${e}`}addRow(t){const i=Object.assign({},this.rowData[0]);i.id=t||this.generateUniqueId(),i.date="",this.rowData=[...this.rowData,i],this.rowCount=this.rowData.length,this._secondDropdownSelection=this.rowCount,this.secondDropdownArr=[...this.secondDropdownArr],this.updateSum(),this.emitValuesIfValid()}handleFirstDropdown(){const t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content"),i=null==t?void 0:t.textContent;if(!(null==i?void 0:i.length))return;this.dropdownDataRoot.forEach((t=>{t.checked=!1}));const s=this.dropdownDataRoot.find((t=>t.caption===i));if(s.checked=!0,this._firstDropdownSelection=s.caption,this.minRowCount=s.value,s.value>this._secondDropdownSelection){this.dropdownDataRoot=[...this.dropdownDataRoot];for(let t=this.rowCount;t<s.value;t++)this.addRow(this.generateUniqueId())}this.updateSecondDropdown(),this.updateSum(),this.emitValuesIfValid()}handleSecondDropdown(){const t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content"),i=null==t?void 0:t.textContent;if(!(null==i?void 0:i.length))return;const s=parseInt(i);if(s<this._secondDropdownSelection)this.showDelteConfirm=!0;else for(let l=this.rowCount;l<s;l++)this.addRow(this.generateUniqueId());this.updateSum(),this.emitValuesIfValid()}predefinedValueChange(t){const i=this.rowData.findIndex((i=>i.id===t.detail.id)),s=t.detail;this.rowData[i]=Object.assign(Object.assign({},this.rowData[i]),{firstInput:s.firstInput,secondInput:s.secondInput,date:s.date}),"firstInputChange"===t.type&&0===i&&this.updateFirstInputOfRows(s.firstInput),"secondInputChange"===t.type&&0===i&&this.updateSecondInputOfRows(s.secondInput),this.rowData=[...this.rowData],this.emitValuesIfValid(),this.updateSum()}updateFirstInputOfRows(t){for(let i=1;i<this.rowCount;i++)this.rowData[i]=Object.assign(Object.assign({},this.rowData[i]),{firstInput:t})}updateSecondInputOfRows(t){for(let i=1;i<this.rowCount;i++)this.rowData[i]=Object.assign(Object.assign({},this.rowData[i]),{secondInput:t})}deleteRowEvent(t){const i=this.rowData.findIndex((i=>i.id===t.detail));i<0||(this.rowData.splice(i,1),this.rowData=[...this.rowData],this.rowCount=this.rowData.length,this._secondDropdownSelection=this.rowCount,this.secondDropdownArr=[...this.secondDropdownArr],this.emitValuesIfValid(),this.updateSum())}updateSum(){this.rowSum="";let t=0;this.rowData.forEach((i=>{var s;(null===(s=null==i?void 0:i.firstInput)||void 0===s?void 0:s.length)&&(t+=parseInt(i.firstInput))})),this.rowSum=t.toString()}deleteExcessRows(){const t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content"),i=null==t?void 0:t.textContent;if(!(null==i?void 0:i.length))return;const s=this.rowCount-parseInt(i);for(let l=0;l<s;l++)this.rowData.pop();this.rowData=[...this.rowData],this.showDelteConfirm=!1,this.updateSum()}abortDeleteRows(){this.showDelteConfirm=!1}emitValuesIfValid(){if(this.formValues=[],this.rowData.forEach((t=>{var i,s,l,n;const e={row:[]};(null===(i=this._firstDropdownSelection)||void 0===i?void 0:i.length)&&e.row.push({name:this.firstDropdownLabel,value:this._firstDropdownSelection}),(null===(s=t.firstInput)||void 0===s?void 0:s.length)&&e.row.push({name:this.fristInputLabel,value:t.firstInput}),(null===(l=t.secondInput)||void 0===l?void 0:l.length)&&e.row.push({name:this.secondInputLabel,value:t.secondInput}),(null===(n=t.date)||void 0===n?void 0:n.length)&&e.row.push({name:this.dateLabel,value:t.date}),4===e.row.length&&this.formValues.push(e)})),this.formValues.length===this.rowData.length){const t=JSON.stringify(this.formValues);this.allFormValues.emit(t)}else this.allFormValues.emit("")}render(){var t,i,n,h,o,u;return s(l,{class:"dropdown-with-multi-input-elemet"},s("div",{class:"dropdown-with-multi-input-elemet__row"},s("div",null,s("pn-select",{ref:t=>this.pnFirstDropdown=t,class:"pn-row-select-dropdown dropDown1-dropdown",label:this.firstDropdownLabel},null===(t=this.dropdownDataRoot)||void 0===t?void 0:t.map(((t,i)=>s("pn-option",{index:i,value:t.value,selected:t.checked,onClick:e.debounce(this.handleFirstDropdown.bind(this),500)},t.caption)))),(null===(i=this.firstDropdownHelperText)||void 0===i?void 0:i.length)?s("small",null,this.firstDropdownHelperText):null)),s("div",{class:"dropdown-with-multi-input-elemet__row"},s("div",null,s("pn-select",{ref:t=>this.pnSecondDropdown=t,class:"pn-row-select-dropdown dropDown2-dropdown",label:this.secondDropdownLabel},null===(n=this.secondDropdownArr)||void 0===n?void 0:n.map(((t,i)=>s("pn-option",{index:i,value:t,selected:t===this._secondDropdownSelection,onClick:e.debounce(this.handleSecondDropdown.bind(this),500)},t)))),(null===(h=this.secondDropdownHelperText)||void 0===h?void 0:h.length)?s("small",null,this.secondDropdownHelperText):null)),this.showDelteConfirm?s("div",{class:"dropdown-with-multi-input-elemet__delete"},s("p",null,this.deleteMultipleRowsWarningText),s("pn-button",{ref:t=>this.pnConfirmDeleteButton=t,small:"true",appearance:"warning",onClick:this.deleteExcessRows.bind(this)},this.confirmDeleteButtonText),s("pn-button",{ref:t=>this.pnAbortDeleteButton=t,small:"true",appearance:"light",onClick:this.abortDeleteRows.bind(this)},this.abortDeleteButtonText)):null,s("div",{class:"dropdown-with-multi-input-elemet__label-row"},s("div",{class:"dropdown-with-multi-input-elemet__label"},s("label",null,this.fristInputLabel)),s("div",{class:"dropdown-with-multi-input-elemet__label"},s("label",null,this.secondInputLabel)),s("div",{class:"dropdown-with-multi-input-elemet__label"},s("label",null,this.dateLabel))),null===(o=this.rowData)||void 0===o?void 0:o.map(((t,i)=>s("div",{class:"dropdown-with-multi-input-elemet__row generated-row-"+i,id:"generated-row-"+i},s("pn-dropdown-with-multi-input-rows-row",{"language-code":this.languageCode,"frist-input-placeholder":this.fristInputPlaceholder,"first-input-min":this.firstInputMin,"first-input-max":this.firstInputMax,"first-input-warning":this.firstInputWarning,"first-input-warning-text":this.firstInputWarningText,"first-input-low-error-text":this.firstInputLowErrorText,"first-input-high-error-text":this.firstInputHighErrorText,"second-input-placeholder":this.secondInputPlaceholder,"second-input-min":this.secondInputMin,"second-input-max":this.secondInputMax,"second-input-warning":this.secondInputWarning,"second-input-warning-text":this.secondInputWarningText,"second-input-low-error-text":this.secondInputLowErrorText,"second-input-high-error-text":this.secondInputHighErrorText,datePlaceholder:this.datePlaceholder,firstValidDate:this.firstValidDateString,lastValidDate:this.lastValidDateString,"predefined-value":JSON.stringify(t),"min-row-count":this.minRowCount,"row-index":i})))),s("div",{class:"dropdown-with-multi-input-elemet__row sum-row"},s("pn-marketweb-input",{disabled:!0,ref:t=>this.pnSumField=t,type:"number",value:this.rowSum,label:this.sumFieldLabel}),s("pn-button",{"icon-only":!this.addRowText,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:()=>{this.addRow(this.generateUniqueId())}},this.addRowText)),(null===(u=this.elementHelperText)||void 0===u?void 0:u.length)?s("div",{class:"dropdown-with-multi-input-elemet__row"},this.elementHelperText):null)}get hostElement(){return n(this)}};o.style="pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row{margin-bottom:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem;padding:1rem;background-color:#F9F8F8}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button{margin-top:0.9rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label{width:30%;font-size:0.875em;color:#5e554a}pn-dropdown-with-multi-input-rows .sum-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";export{o as pn_dropdown_with_multi_input_rows}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js","./p-2488c326.system.js"],(function(t){"use strict";var i,o,e,r;return{setters:[function(t){i=t.r;o=t.h;e=t.a},function(t){r=t.t}],execute:function(){var n="pn-proxio-findprice-result [slot=insurance]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}pn-proxio-findprice-result .insurance-box{padding:0.4rem 0.8rem;border-radius:0.8rem;background-color:#8EDDF9;text-align:center;font-size:1.2rem;font-weight:400;margin-bottom:2.4rem}";var s=t("pn_proxio_findprice_result",function(){function t(t){i(this,t);this.item=null;this.activeweight=null;this.shownitems=[];this.Usp1=undefined;this.Usp2=undefined;this.Usp3=undefined;this.description=[];this.showMeasurement=false;this.showInternational=false;this.selectedCountrycode="";this.market="";this.language="sv";this.weightText="";this.linkId="";this.shopLabel="";this.shopUrl="";this.shopId="";this.i18n=r[this.language]}t.prototype.componentWillLoad=function(){this.composeItems()};t.prototype.composeItems=function(){this.shownitems=[this.item]};t.prototype.getPriceString=function(t){var i=this;var o,e;if(!t.productWeightGroupList){return null}var r=t.productWeightGroupList.findIndex((function(t){return t.item1===i.activeweight}));var n="";if(this.showInternational&&this.selectedCountrycode&&this.selectedCountrycode!==this.market&&t.weightPriceCountryList){var s=t.weightPriceCountryList.filter((function(t){return t.item3.includes(i.selectedCountrycode.toUpperCase())}));n=s?(o=s[r])===null||o===void 0?void 0:o.item2:""}else{n=t.weightAndPriceList?(e=t===null||t===void 0?void 0:t.weightAndPriceList[r])===null||e===void 0?void 0:e.item2:""}return n?this.i18n.from+n:""};t.prototype.getProductLink=function(t,i){var o=this;var e;if(t.productWeightGroupList){var r=t.productWeightGroupList.findIndex((function(t){return t.item1===o.activeweight}));var n=(e=i[r])===null||e===void 0?void 0:e.item2;var s=t.productLink?t===null||t===void 0?void 0:t.productLink:"";return s?s+(n?"?productId="+n:""):""}return null};t.prototype.getDeliveryInformation=function(t){var i=this;var o,e;if(!this.showInternational||!t.deliveryDateInternationalInformation){return t.deliveryDateInformation}var r=(o=t===null||t===void 0?void 0:t.deliveryDateInternationalInformation)===null||o===void 0?void 0:o.find((function(t){return t.item1.toLowerCase()===i.selectedCountrycode.toLowerCase()}));if((e=!(r===null||r===void 0?void 0:r.item2))!==null&&e!==void 0?e:true){return t.deliveryDateInformation}return r.item2};t.prototype.getInsuranceAmountText=function(t){var i=this;var o,e;if(!t.insuranceAmounts){return""}var r=(o=t===null||t===void 0?void 0:t.insuranceAmounts)===null||o===void 0?void 0:o.find((function(t){return t.item1.toLowerCase()===i.selectedCountrycode.toLowerCase()}));if((e=!(r===null||r===void 0?void 0:r.item2))!==null&&e!==void 0?e:true){return""}return r.item2};t.prototype.render=function(){var t=this;return o(e,null,o("pn-proxio-productcard",null,o("pn-illustration",{slot:"illustrationmobile",illustration:this.item.proxioProduct.productIcon}),o("h2",{slot:"title"},this.item.proxioProduct.productTitle),o("pn-proxio-productcard-description",{slot:"description",heading:this.item.proxioProduct.productPreamble,highlight:this.getDeliveryInformation(this.item.proxioProduct),list:this.item.proxioProduct.productDescriptionBulletListItems}),o("div",{slot:"information"},o("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensions,information:this.item.proxioProduct.productPackageDimensionsList}),o("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensionsRoll,information:this.item.proxioProduct.productRollDimensionsList})),o("div",{slot:"bottomtags"},this.item.proxioProduct.usp1?o("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp1):null,this.item.proxioProduct.usp2?o("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp2):null,this.item.proxioProduct.usp3?o("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp3):null),o("pn-illustration",{slot:"illustration",illustration:this.item.proxioProduct.productIcon}),o("div",{slot:"pricelink"},o("pn-proxio-productcard-pricelink",{price:this.getPriceString(this.item.proxioProduct),link:this.getProductLink(this.item.proxioProduct,this.item.proxioProduct.productWeightGroupList),linktext:this.item.proxioProduct.productLinkText}),this.item.relatedProxioProducts?this.item.relatedProxioProducts.map((function(i){return o("pn-proxio-productcard-pricelink",{price:t.getPriceString(i),link:i.productLink,linktext:i.productLinkText})})):null),this.getInsuranceAmountText(this.item.proxioProduct)?o("div",{slot:"insurance"},o("div",{class:"insurance-box"},this.getInsuranceAmountText(this.item.proxioProduct))):null))};Object.defineProperty(t,"watchers",{get:function(){return{item:["composeItems"],activeweight:["getPriceString","getProductLink"]}},enumerable:false,configurable:true});return t}());s.style=n}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++){if(i||!(o in t)){if(!i)i=Array.prototype.slice.call(t,0,o);i[o]=t[o]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-7ffa5533.system.js","./p-296637c0.system.js","./p-e351523a.system.js"],(function(e){"use strict";var t,n,o,r,i,a,d;return{setters:[function(e){t=e.r;n=e.c;o=e.h;r=e.a;i=e.g},function(e){a=e.d},function(e){d=e.v}],execute:function(){var s="pn-multi-row-connected-dropdown-row{gap:1rem}pn-multi-row-connected-dropdown-row .connected-dropdown-parent-element{margin-bottom:0.5rem}pn-multi-row-connected-dropdown-row pn-select{width:35%}pn-multi-row-connected-dropdown-row pn-marketweb-input{width:10%}pn-multi-row-connected-dropdown-row pn-marketweb-input input{height:4.3rem}pn-multi-row-connected-dropdown-row .connected-dropdown{padding:1rem;border-left:0.2rem solid #005D92}pn-multi-row-connected-dropdown-row .connected-dropdown:hover{background-color:#F9F8F8}pn-multi-row-connected-dropdown-row .connected-dropdown__toggle-date-button{width:20%;margin-bottom:0.5rem}pn-multi-row-connected-dropdown-row .connected-dropdown__row{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:1rem;margin-bottom:1rem;-ms-flex-pack:justify;justify-content:space-between}pn-multi-row-connected-dropdown-row .connected-dropdown__row__no-margin{margin:0}pn-multi-row-connected-dropdown-row .connected-dropdown__multi-date-row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1rem;margin-bottom:1rem}pn-multi-row-connected-dropdown-row .connected-dropdown__button-container{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:1rem}pn-multi-row-connected-dropdown-row .connected-dropdown__button{background-color:#ffffff;border:solid;border-width:0.1rem;border-radius:0.8rem;border-color:#005D92;padding:0.4rem 0.8rem;color:#005D92;font-size:1.4rem;text-align:center;text-decoration:none;cursor:pointer}pn-multi-row-connected-dropdown-row .connected-dropdown__button:hover,pn-multi-row-connected-dropdown-row .connected-dropdown__button.active{background-color:#0D234B;border-color:#0D234B;color:#ffffff}pn-multi-row-connected-dropdown-row .connected-dropdown__buttom-container-right{display:-ms-flexbox;display:flex}pn-multi-row-connected-dropdown-row .connected-dropdown__button-right{margin-left:auto}pn-multi-row-connected-dropdown-row .connected-dropdown__label-container{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-multi-row-connected-dropdown-row .connected-dropdown__checkbox{display:-ms-flexbox;display:flex;gap:0.5rem}pn-multi-row-connected-dropdown-row .connected-dropdown__date-slot{border:0.1rem solid #005D92;margin-bottom:1rem;padding:1rem}pn-multi-row-connected-dropdown-row .generated-date-row{border-bottom:0.1rem solid #005D92}";var l=e("pn_multi_row_connected_dropdown_row",function(){function e(e){t(this,e);this.rowValueChange=n(this,"rowValueChange",7);this.deleteRowEvent=n(this,"deleteRowEvent",7);this.pnConnectedDropdown=null;this.pnConnectedDropdownSlotElement=null;this.pnAddFieldButton=null;this.pnFirstDropdown=null;this.pnSecondDropdown=null;this.pnInputField=null;this.pnSingleDatePicker=null;this.pnStartDate=null;this.pnEndDate=null;this.pnShowDateRangeFiledButton=null;this.pnDateRangeContainer=null;this.pnGenerateDatesButton=null;this.pnDaysRow=null;this.pnGeneratedDatesSlot=null;this.pnSaveGeneratedDatesButton=null;this.pnDeleteRowButton=null;this.dropdownData=null;this.languageCode=null;this.label=null;this.firstDropdownLabel=null;this.secondDropdownLabel=null;this.dropdownPlaceholder=null;this.addRowText=null;this.inputFildLabel=null;this.inputFildPlaceholder=null;this.dateButtonText=null;this.datePlaceholder=null;this.dateDaysFromToday=1;this.allowMultipleDates=null;this.startDateLabel=null;this.endDateLabel=null;this.multiDateHelperText=null;this.generateDatesButtonText=null;this.saveDateButtonText=null;this.noDatesText=null;this.index=null;this.predefinedValue=null;this.yearsToAddToEndDate=null;this.buttonsArray=null;this.firstDropdownArr=null;this.secondDropdownArr=[];this.firstDropdownClass=null;this.secondDropdownClass=null;this.firstValidDateString="";this.lastValidDateString="";this.firstDropdownPlaceholder="-";this.secondDropdownPlaceholder="-";this.starDateValue="";this.endDateValue="";this.generatedDatesArr=[];this.selectedButtonValue="";this.inputFieldValue="";this.dateValue="";this.daysArr=null}e.prototype.componentWillLoad=function(){this.getPredefinedValues();this.setDropDownData();this.setFirstValidDate()};e.prototype.componentDidLoad=function(){this.setInitialValues();this.addEventHandlers();this.emittRowValues()};e.prototype.setDropDownData=function(){if(typeof this.dropdownData==="string"){this._dropdownData=JSON.parse(this.dropdownData)}else{this._dropdownData=this.dropdownData}};e.prototype.getPredefinedValues=function(){this._predefinedValue=JSON.parse(this.predefinedValue)};e.prototype.applyPredefinedValue=function(){this.getPredefinedValues();this.setInitialValues()};e.prototype.setInitialValues=function(){this.setButtonsValue();this.setFirstDropdownValues();this.setSecondDropdownValues();this.setInputField();this.setDateValue();this.setDateRangeDefaults();this.firstDropdownClass=this.firstDropdownLabel.replace(" ","_")+"-dropdown";this.secondDropdownClass=this.secondDropdownLabel.replace(" ","_")+"-dropdown"};e.prototype.setButtonsValue=function(){var e=this;var t;this.buttonsArray=[];if((t=this._predefinedValue.buttons)===null||t===void 0?void 0:t.length){this.buttonsArray=this._predefinedValue.buttons;this.buttonsArray.forEach((function(t){if(t.selected){e.selectedButtonValue=t.value}}))}else{this._dropdownData.forEach((function(t){var n={selected:false,value:t.caption,caption:t.caption};e.buttonsArray.push(n)}))}};e.prototype.setFirstDropdownValues=function(){var e;this.firstDropdownArr=[];if((e=this._predefinedValue.firstDropdown)===null||e===void 0?void 0:e.length){this.firstDropdownArr=__spreadArray([],this._predefinedValue.firstDropdown,true)}};e.prototype.setSecondDropdownValues=function(){var e;this.secondDropdownArr=[];if((e=this._predefinedValue.secondDropdown)===null||e===void 0?void 0:e.length){this.secondDropdownArr=__spreadArray([],this._predefinedValue.secondDropdown,true)}};e.prototype.setInputField=function(){var e;this.inputFieldValue=((e=this._predefinedValue.input)===null||e===void 0?void 0:e.length)?this._predefinedValue.input:""};e.prototype.setDateValue=function(){var e,t,n;if(this.allowMultipleDates){this.pnDateRangeContainer.style.display=((e=this._predefinedValue.dates)===null||e===void 0?void 0:e.length)?"":"none";this.generatedDatesArr=((t=this._predefinedValue.dates)===null||t===void 0?void 0:t.length)?this._predefinedValue.dates.split(","):[];this.saveGeneratedDates()}else{this.dateValue=((n=this._predefinedValue.dates)===null||n===void 0?void 0:n.length)?this._predefinedValue.dates:""}};e.prototype.setDateRangeDefaults=function(){var e,t;this.daysArr=this._predefinedValue.dateRange.days;this.starDateValue=((e=this._predefinedValue.dateRange.startDate)===null||e===void 0?void 0:e.length)?this._predefinedValue.dateRange.startDate:"";this.endDateValue=((t=this._predefinedValue.dateRange.endDate)===null||t===void 0?void 0:t.length)?this._predefinedValue.dateRange.endDate:""};e.prototype.setFirstValidDate=function(){var e;var t=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2;var n=new Date;n.setDate((e=n.getDate()+this.dateDaysFromToday)!==null&&e!==void 0?e:0);var o=n.getFullYear();var r=(n.getMonth()+1).toString().padStart(2,"0");var i=n.getDate().toString().padStart(2,"0");var a=o+t;this.firstValidDateString="".concat(o.toString(),"-").concat(r,"-").concat(i);this.lastValidDateString="".concat(a.toString(),"-").concat(r,"-").concat(i)};e.prototype.addEventHandlers=function(){var e=a.debounce(this.emittRowValues.bind(this),500);this.pnInputField.addEventListener("keyup",this.handleInput.bind(this));this.pnInputField.addEventListener("change",this.handleInput.bind(this));this.pnInputField.addEventListener("keyup",e);this.pnInputField.addEventListener("change",e);if(this.allowMultipleDates){this.pnShowDateRangeFiledButton.addEventListener("click",this.showDateRangeRow.bind(this));this.pnStartDate.addEventListener("dateselection",this.HandleRangeDatePickers.bind(this));this.pnEndDate.addEventListener("dateselection",this.HandleRangeDatePickers.bind(this));this.pnGenerateDatesButton.addEventListener("click",this.generateDates.bind(this));this.pnSaveGeneratedDatesButton.addEventListener("click",this.saveGeneratedDates.bind(this));this.pnSaveGeneratedDatesButton.addEventListener("click",e)}else{this.pnSingleDatePicker.addEventListener("dateselection",this.setSingleDateValue.bind(this));this.pnSingleDatePicker.addEventListener("dateselection",e)}if(this.index>0){this.pnDeleteRowButton.addEventListener("click",this.deleteRow.bind(this))}};e.prototype.generateUniqueId=function(){return d()};e.prototype.updateSelectItemArr=function(e,t){e.forEach((function(e){if(e.value===t){e.selected=!e.selected}else{e.selected=false}}));return e};e.prototype.handleOptionButtonClick=function(e){var t=this;var n;e.preventDefault();var o=e.target.innerHTML;this.buttonsArray=__spreadArray([],this.updateSelectItemArr(this.buttonsArray,o),true);this.selectedButtonValue=this.buttonsArray.filter((function(e){return e.selected===true})).length>0?o:"";if((n=this.selectedButtonValue)===null||n===void 0?void 0:n.length){this.firstDropdownArr=[];var r=this._dropdownData.find((function(e){return e.caption===o}));r.values.forEach((function(e){t.firstDropdownArr.push({selected:false,value:e.caption,caption:e.caption})}));this.firstDropdownArr=__spreadArray([],this.firstDropdownArr,true);this.firstDropdownPlaceholder=this.dropdownPlaceholder;var i=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");i.innerHTML=this.dropdownPlaceholder;this.secondDropdownArr=[];this.secondDropdownPlaceholder="-";var a=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");a.innerHTML=this.secondDropdownPlaceholder}else{this.firstDropdownArr=[];this.firstDropdownPlaceholder="-";var i=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");i.innerHTML=this.firstDropdownPlaceholder;this.secondDropdownArr=[];this.secondDropdownPlaceholder="-";var a=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");a.innerHTML=this.secondDropdownPlaceholder}this.emittRowValues()};e.prototype.handleFirstDropdownChange=function(){var e=this;var t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");var n=t===null||t===void 0?void 0:t.textContent;this.firstDropdownArr=__spreadArray([],this.updateSelectItemArr(this.firstDropdownArr,n),true);this.secondDropdownArr=[];var o=this.buttonsArray.findIndex((function(e){return e.selected===true}));var r=this._dropdownData.find((function(t){return t.caption===e.buttonsArray[o].value}));var i=r.values.find((function(e){return e.caption===n}));i.values.forEach((function(t){e.secondDropdownArr.push({selected:false,value:t.caption,caption:t.caption})}));this.secondDropdownPlaceholder=this.dropdownPlaceholder;var a=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");a.innerHTML=this.secondDropdownPlaceholder;this.emittRowValues()};e.prototype.handleSecondDropdownChange=function(){var e=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var t=e===null||e===void 0?void 0:e.textContent;this.secondDropdownArr=__spreadArray([],this.updateSelectItemArr(this.secondDropdownArr,t),true);this.emittRowValues()};e.prototype.handleInput=function(e){var t=e.target;if(t.value!=="0"){this.inputFieldValue=t.value}};e.prototype.showDateRangeRow=function(){if(this.pnDateRangeContainer.style.display==="none"){this.pnDateRangeContainer.style.display=""}else{this.pnDateRangeContainer.style.display="none"}};e.prototype.HandleRangeDatePickers=function(e){var t=e.target;if(t===this.pnStartDate){this.starDateValue=e.detail}if(t===this.pnEndDate){this.endDateValue=e.detail}};e.prototype.generateDates=function(e){var t;e.preventDefault();var n=this.pnDaysRow.querySelectorAll("pn-filter-checkbox");var o=[];this.generatedDatesArr=[];n.forEach((function(e){var t=e.querySelector("input");if(t.value){o.push(t.value)}}));if(o.length&&this.starDateValue&&this.endDateValue){this.daysArr.forEach((function(e){if(o.some((function(t){return t===e.value}))){e.selected=true}else{e.selected=false}}));var r=new Date(Date.parse(this.starDateValue));var i=new Date(Date.parse(this.endDateValue));for(var a=r;a<=i;a.setDate(a.getDate()+1)){var d=this.daysArr.findIndex((function(e){return parseInt(e.value)===a.getDay()}));if((t=this.daysArr[d])===null||t===void 0?void 0:t.selected){var s=a.getFullYear();var l=(a.getMonth()+1).toString().padStart(2,"0");var c=a.getDate().toString().padStart(2,"0");this.generatedDatesArr.push("".concat(s,"-").concat(l,"-").concat(c))}}}};e.prototype.deleteGeneratedDateRow=function(e){this.generatedDatesArr.splice(e,1);this.generatedDatesArr=__spreadArray([],this.generatedDatesArr,true)};e.prototype.saveGeneratedDates=function(){var e;if((e=this.generatedDatesArr)===null||e===void 0?void 0:e.length){this.dateValue=String(this.generatedDatesArr);var t=this.generatedDatesArr.length;var n=this.pnShowDateRangeFiledButton.querySelector(".pn-button-content");n.innerHTML=t>0?"".concat(this.dateButtonText," (").concat(t,")"):this.dateButtonText;this.showDateRangeRow()}};e.prototype.setSingleDateValue=function(e){var t=e.target;if(t===this.pnSingleDatePicker){this.dateValue=e.detail}};e.prototype.emittRowValues=function(){this.rowValueChange.emit({id:this._predefinedValue.id,buttons:this.buttonsArray,firstDropdown:this.firstDropdownArr,secondDropdown:this.secondDropdownArr,input:this.inputFieldValue,dates:this.dateValue,dateRange:{days:this.daysArr,startDate:this.starDateValue,endDate:this.endDateValue}})};e.prototype.deleteRow=function(){this.deleteRowEvent.emit(this._predefinedValue.id)};e.prototype.setActive=function(e){return e?"connected-dropdown__button active":"connected-dropdown__button"};e.prototype.render=function(){var e=this;var t,n,i,d,s,l,c,p,u;return o(r,null,o("div",{ref:function(t){return e.pnConnectedDropdownSlotElement=t},class:"connected-dropdown-slot-element"},o("div",{class:"connected-dropdown-parent-element connected-dropdown"},o("div",{class:"connected-dropdown__row__no-margin"},o("label",null,this.label)),o("div",{class:"connected-dropdown__row button-row"},o("div",{class:"connected-dropdown__button-container option-buttons"},(t=this.buttonsArray)===null||t===void 0?void 0:t.map((function(t){return o("button",{class:"".concat(e.setActive(t.selected)),id:e.generateUniqueId(),onClick:e.handleOptionButtonClick.bind(e)},t.value)}))),o("div",{class:"connected-dropdown__button-container delete-button"},this.index>0?o("pn-button",{ref:function(t){return e.pnDeleteRowButton=t},small:"true","icon-only":"true",icon:"minus",appearance:"warning",index:this.index},"Delete"):null)),o("div",{class:"connected-dropdown__row input-row"},o("pn-select",{ref:function(t){return e.pnFirstDropdown=t},class:"pn-row-select-dropdown dropDown1-dropdown",placeholder:this.firstDropdownPlaceholder,label:this.firstDropdownLabel},(n=this.firstDropdownArr)===null||n===void 0?void 0:n.map((function(t,n){return o("pn-option",{index:n,value:t.value,selected:t.selected,onClick:a.debounce(e.handleFirstDropdownChange.bind(e),500)},t.value)}))),o("pn-select",{ref:function(t){return e.pnSecondDropdown=t},class:"pn-row-select-dropdown dropDown2-dropdown",placeholder:this.secondDropdownPlaceholder,label:this.secondDropdownLabel},(i=this.secondDropdownArr)===null||i===void 0?void 0:i.map((function(t,n){return o("pn-option",{index:n,value:t.value,selected:t.selected,onClick:a.debounce(e.handleSecondDropdownChange.bind(e),500)},t.value)}))),o("pn-marketweb-input",{ref:function(t){return e.pnInputField=t},type:"number",placeholder:"0",label:this.inputFildLabel,value:this.inputFieldValue,min:"1"}),this.allowMultipleDates?o("pn-button",{ref:function(t){return e.pnShowDateRangeFiledButton=t},class:"connected-dropdown__toggle-date-button",small:"true",appearance:"light"},this.dateButtonText):o("div",{class:"connected-dropdown__date-container"},o("div",{class:"connected-dropdown__label-container"},o("label",null,this.dateButtonText)),o("pn-date-picker",{ref:function(t){return e.pnSingleDatePicker=t},range:"false","disable-weekends":true,"min-date":this.firstValidDateString,language:this.languageCode,placeholder:this.datePlaceholder,class:"connected-dropdown__date-picker",start:((d=this.dateValue)===null||d===void 0?void 0:d.length)?this.dateValue:null}))),this.allowMultipleDates?o("div",{ref:function(t){return e.pnDateRangeContainer=t},class:"connected-dropdown__date-container",style:{display:"none"}},this.multiDateHelperText?o("div",{class:"connected-dropdown__row"},o("p",null,this.multiDateHelperText)):null,o("div",{class:"connected-dropdown__multi-date-row"},o("div",{class:"connected-dropdown__date-container"},o("div",{class:"connected-dropdown__label-container"},o("label",null,this.startDateLabel)),o("pn-date-picker",{ref:function(t){return e.pnStartDate=t},range:"false","disable-weekends":true,class:"connected-dropdown__date-picker","min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.languageCode,placeholder:this.datePlaceholder,start:((s=this.starDateValue)===null||s===void 0?void 0:s.length)?this.starDateValue:null})),o("div",{class:"connected-dropdown__date-container"},o("div",{class:"connected-dropdown__label-container"},o("label",null,this.endDateLabel)),o("pn-date-picker",{ref:function(t){return e.pnEndDate=t},range:"false","disable-weekends":true,class:"connected-dropdown__date-picker","min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.languageCode,placeholder:this.datePlaceholder,start:((l=this.endDateValue)===null||l===void 0?void 0:l.length)?this.endDateValue:null}))),o("div",{ref:function(t){return e.pnDaysRow=t},class:"connected-dropdown__multi-date-row"},(c=this.daysArr)===null||c===void 0?void 0:c.map((function(e){return o("div",{class:"connected-dropdown__checkbox"},o("pn-filter-checkbox",{checkboxid:"day-"+e.value,name:"__"+e.caption,value:e.value,checked:e.selected}),o("label",{htmlFor:"day-"+e.value},e.caption))}))),o("div",{class:"connected-dropdown__row"},o("pn-button",{ref:function(t){return e.pnGenerateDatesButton=t},small:"true"},this.generateDatesButtonText)),o("div",{ref:function(t){return e.pnGeneratedDatesSlot=t},class:"connected-dropdown__date-slot"},(p=this.generatedDatesArr)===null||p===void 0?void 0:p.map((function(t,n){return o("div",{class:"connected-dropdown__row generated-date-row"},o("p",null,t),o("pn-button",{index:n,small:"true","icon-only":"true",icon:"minus",appearance:"warning",id:"delete-date-"+n,onClick:e.deleteGeneratedDateRow.bind(e,n)},t))})),!((u=this.generatedDatesArr)===null||u===void 0?void 0:u.length)?o("p",null,this.noDatesText):null),o("div",{class:"connected-dropdown__row"},o("pn-button",{ref:function(t){return e.pnSaveGeneratedDatesButton=t},class:"connected-dropdown__button-right",small:"true"},this.saveDateButtonText))):null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{predefinedValue:["applyPredefinedValue"]}},enumerable:false,configurable:true});return e}());l.style=s}}}));
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++){if(i||!(o in t)){if(!i)i=Array.prototype.slice.call(t,0,o);i[o]=t[o]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-6259e4f4.system.js","./p-296637c0.system.js","./p-e351523a.system.js"],(function(e){"use strict";var t,n,o,r,i,a,d;return{setters:[function(e){t=e.r;n=e.c;o=e.h;r=e.a;i=e.g},function(e){a=e.d},function(e){d=e.v}],execute:function(){var s="pn-multi-row-connected-dropdown-row{gap:1rem}pn-multi-row-connected-dropdown-row .connected-dropdown-parent-element{margin-bottom:0.5rem}pn-multi-row-connected-dropdown-row pn-select{width:35%}pn-multi-row-connected-dropdown-row pn-marketweb-input{width:10%}pn-multi-row-connected-dropdown-row pn-marketweb-input input{height:4.3rem}pn-multi-row-connected-dropdown-row .connected-dropdown{padding:1rem;border-left:0.2rem solid #005D92}pn-multi-row-connected-dropdown-row .connected-dropdown:hover{background-color:#F9F8F8}pn-multi-row-connected-dropdown-row .connected-dropdown__toggle-date-button{width:20%;margin-bottom:0.5rem}pn-multi-row-connected-dropdown-row .connected-dropdown__row{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:1rem;margin-bottom:1rem;-ms-flex-pack:justify;justify-content:space-between}pn-multi-row-connected-dropdown-row .connected-dropdown__row__no-margin{margin:0}pn-multi-row-connected-dropdown-row .connected-dropdown__multi-date-row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1rem;margin-bottom:1rem}pn-multi-row-connected-dropdown-row .connected-dropdown__button-container{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:1rem}pn-multi-row-connected-dropdown-row .connected-dropdown__button{background-color:#ffffff;border:solid;border-width:0.1rem;border-radius:0.8rem;border-color:#005D92;padding:0.4rem 0.8rem;color:#005D92;font-size:1.4rem;text-align:center;text-decoration:none;cursor:pointer}pn-multi-row-connected-dropdown-row .connected-dropdown__button:hover,pn-multi-row-connected-dropdown-row .connected-dropdown__button.active{background-color:#0D234B;border-color:#0D234B;color:#ffffff}pn-multi-row-connected-dropdown-row .connected-dropdown__buttom-container-right{display:-ms-flexbox;display:flex}pn-multi-row-connected-dropdown-row .connected-dropdown__button-right{margin-left:auto}pn-multi-row-connected-dropdown-row .connected-dropdown__label-container{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-multi-row-connected-dropdown-row .connected-dropdown__checkbox{display:-ms-flexbox;display:flex;gap:0.5rem}pn-multi-row-connected-dropdown-row .connected-dropdown__date-slot{border:0.1rem solid #005D92;margin-bottom:1rem;padding:1rem}pn-multi-row-connected-dropdown-row .generated-date-row{border-bottom:0.1rem solid #005D92}";var l=e("pn_multi_row_connected_dropdown_row",function(){function e(e){t(this,e);this.rowValueChange=n(this,"rowValueChange",7);this.deleteRowEvent=n(this,"deleteRowEvent",7);this.pnConnectedDropdown=null;this.pnConnectedDropdownSlotElement=null;this.pnAddFieldButton=null;this.pnFirstDropdown=null;this.pnSecondDropdown=null;this.pnInputField=null;this.pnSingleDatePicker=null;this.pnStartDate=null;this.pnEndDate=null;this.pnShowDateRangeFiledButton=null;this.pnDateRangeContainer=null;this.pnGenerateDatesButton=null;this.pnDaysRow=null;this.pnGeneratedDatesSlot=null;this.pnSaveGeneratedDatesButton=null;this.pnDeleteRowButton=null;this.dropdownData=null;this.languageCode=null;this.label=null;this.firstDropdownLabel=null;this.secondDropdownLabel=null;this.dropdownPlaceholder=null;this.addRowText=null;this.inputFildLabel=null;this.inputFildPlaceholder=null;this.dateButtonText=null;this.datePlaceholder=null;this.dateDaysFromToday=1;this.allowMultipleDates=null;this.startDateLabel=null;this.endDateLabel=null;this.multiDateHelperText=null;this.generateDatesButtonText=null;this.saveDateButtonText=null;this.noDatesText=null;this.index=null;this.predefinedValue=null;this.yearsToAddToEndDate=null;this.buttonsArray=null;this.firstDropdownArr=null;this.secondDropdownArr=[];this.firstDropdownClass=null;this.secondDropdownClass=null;this.firstValidDateString="";this.lastValidDateString="";this.firstDropdownPlaceholder="-";this.secondDropdownPlaceholder="-";this.starDateValue="";this.endDateValue="";this.generatedDatesArr=[];this.selectedButtonValue="";this.inputFieldValue="";this.dateValue="";this.daysArr=null}e.prototype.componentWillLoad=function(){this.getPredefinedValues();this.setDropDownData();this.setFirstValidDate()};e.prototype.componentDidLoad=function(){this.setInitialValues();this.addEventHandlers();this.emittRowValues()};e.prototype.setDropDownData=function(){if(typeof this.dropdownData==="string"){this._dropdownData=JSON.parse(this.dropdownData)}else{this._dropdownData=this.dropdownData}};e.prototype.getPredefinedValues=function(){this._predefinedValue=JSON.parse(this.predefinedValue)};e.prototype.applyPredefinedValue=function(){this.getPredefinedValues();this.setInitialValues()};e.prototype.setInitialValues=function(){this.setButtonsValue();this.setFirstDropdownValues();this.setSecondDropdownValues();this.setInputField();this.setDateValue();this.setDateRangeDefaults();this.firstDropdownClass=this.firstDropdownLabel.replace(" ","_")+"-dropdown";this.secondDropdownClass=this.secondDropdownLabel.replace(" ","_")+"-dropdown"};e.prototype.setButtonsValue=function(){var e=this;var t;this.buttonsArray=[];if((t=this._predefinedValue.buttons)===null||t===void 0?void 0:t.length){this.buttonsArray=this._predefinedValue.buttons;this.buttonsArray.forEach((function(t){if(t.selected){e.selectedButtonValue=t.value}}))}else{this._dropdownData.forEach((function(t){var n={selected:false,value:t.caption,caption:t.caption};e.buttonsArray.push(n)}))}};e.prototype.setFirstDropdownValues=function(){var e;this.firstDropdownArr=[];if((e=this._predefinedValue.firstDropdown)===null||e===void 0?void 0:e.length){this.firstDropdownArr=__spreadArray([],this._predefinedValue.firstDropdown,true)}};e.prototype.setSecondDropdownValues=function(){var e;this.secondDropdownArr=[];if((e=this._predefinedValue.secondDropdown)===null||e===void 0?void 0:e.length){this.secondDropdownArr=__spreadArray([],this._predefinedValue.secondDropdown,true)}};e.prototype.setInputField=function(){var e;this.inputFieldValue=((e=this._predefinedValue.input)===null||e===void 0?void 0:e.length)?this._predefinedValue.input:""};e.prototype.setDateValue=function(){var e,t,n;if(this.allowMultipleDates){this.pnDateRangeContainer.style.display=((e=this._predefinedValue.dates)===null||e===void 0?void 0:e.length)?"":"none";this.generatedDatesArr=((t=this._predefinedValue.dates)===null||t===void 0?void 0:t.length)?this._predefinedValue.dates.split(","):[];this.saveGeneratedDates()}else{this.dateValue=((n=this._predefinedValue.dates)===null||n===void 0?void 0:n.length)?this._predefinedValue.dates:""}};e.prototype.setDateRangeDefaults=function(){var e,t;this.daysArr=this._predefinedValue.dateRange.days;this.starDateValue=((e=this._predefinedValue.dateRange.startDate)===null||e===void 0?void 0:e.length)?this._predefinedValue.dateRange.startDate:"";this.endDateValue=((t=this._predefinedValue.dateRange.endDate)===null||t===void 0?void 0:t.length)?this._predefinedValue.dateRange.endDate:""};e.prototype.setFirstValidDate=function(){var e;var t=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2;var n=new Date;n.setDate((e=n.getDate()+this.dateDaysFromToday)!==null&&e!==void 0?e:0);var o=n.getFullYear();var r=(n.getMonth()+1).toString().padStart(2,"0");var i=n.getDate().toString().padStart(2,"0");var a=o+t;this.firstValidDateString="".concat(o.toString(),"-").concat(r,"-").concat(i);this.lastValidDateString="".concat(a.toString(),"-").concat(r,"-").concat(i)};e.prototype.addEventHandlers=function(){var e=a.debounce(this.emittRowValues.bind(this),500);this.pnInputField.addEventListener("keyup",this.handleInput.bind(this));this.pnInputField.addEventListener("change",this.handleInput.bind(this));this.pnInputField.addEventListener("keyup",e);this.pnInputField.addEventListener("change",e);if(this.allowMultipleDates){this.pnShowDateRangeFiledButton.addEventListener("click",this.showDateRangeRow.bind(this));this.pnStartDate.addEventListener("dateselection",this.HandleRangeDatePickers.bind(this));this.pnEndDate.addEventListener("dateselection",this.HandleRangeDatePickers.bind(this));this.pnGenerateDatesButton.addEventListener("click",this.generateDates.bind(this));this.pnSaveGeneratedDatesButton.addEventListener("click",this.saveGeneratedDates.bind(this));this.pnSaveGeneratedDatesButton.addEventListener("click",e)}else{this.pnSingleDatePicker.addEventListener("dateselection",this.setSingleDateValue.bind(this));this.pnSingleDatePicker.addEventListener("dateselection",e)}if(this.index>0){this.pnDeleteRowButton.addEventListener("click",this.deleteRow.bind(this))}};e.prototype.generateUniqueId=function(){return d()};e.prototype.updateSelectItemArr=function(e,t){e.forEach((function(e){if(e.value===t){e.selected=!e.selected}else{e.selected=false}}));return e};e.prototype.handleOptionButtonClick=function(e){var t=this;var n;e.preventDefault();var o=e.target.innerHTML;this.buttonsArray=__spreadArray([],this.updateSelectItemArr(this.buttonsArray,o),true);this.selectedButtonValue=this.buttonsArray.filter((function(e){return e.selected===true})).length>0?o:"";if((n=this.selectedButtonValue)===null||n===void 0?void 0:n.length){this.firstDropdownArr=[];var r=this._dropdownData.find((function(e){return e.caption===o}));r.values.forEach((function(e){t.firstDropdownArr.push({selected:false,value:e.caption,caption:e.caption})}));this.firstDropdownArr=__spreadArray([],this.firstDropdownArr,true);this.firstDropdownPlaceholder=this.dropdownPlaceholder;var i=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");i.innerHTML=this.dropdownPlaceholder;this.secondDropdownArr=[];this.secondDropdownPlaceholder="-";var a=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");a.innerHTML=this.secondDropdownPlaceholder}else{this.firstDropdownArr=[];this.firstDropdownPlaceholder="-";var i=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");i.innerHTML=this.firstDropdownPlaceholder;this.secondDropdownArr=[];this.secondDropdownPlaceholder="-";var a=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");a.innerHTML=this.secondDropdownPlaceholder}this.emittRowValues()};e.prototype.handleFirstDropdownChange=function(){var e=this;var t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");var n=t===null||t===void 0?void 0:t.textContent;this.firstDropdownArr=__spreadArray([],this.updateSelectItemArr(this.firstDropdownArr,n),true);this.secondDropdownArr=[];var o=this.buttonsArray.findIndex((function(e){return e.selected===true}));var r=this._dropdownData.find((function(t){return t.caption===e.buttonsArray[o].value}));var i=r.values.find((function(e){return e.caption===n}));i.values.forEach((function(t){e.secondDropdownArr.push({selected:false,value:t.caption,caption:t.caption})}));this.secondDropdownPlaceholder=this.dropdownPlaceholder;var a=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");a.innerHTML=this.secondDropdownPlaceholder;this.emittRowValues()};e.prototype.handleSecondDropdownChange=function(){var e=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var t=e===null||e===void 0?void 0:e.textContent;this.secondDropdownArr=__spreadArray([],this.updateSelectItemArr(this.secondDropdownArr,t),true);this.emittRowValues()};e.prototype.handleInput=function(e){var t=e.target;if(t.value!=="0"){this.inputFieldValue=t.value}};e.prototype.showDateRangeRow=function(){if(this.pnDateRangeContainer.style.display==="none"){this.pnDateRangeContainer.style.display=""}else{this.pnDateRangeContainer.style.display="none"}};e.prototype.HandleRangeDatePickers=function(e){var t=e.target;if(t===this.pnStartDate){this.starDateValue=e.detail}if(t===this.pnEndDate){this.endDateValue=e.detail}};e.prototype.generateDates=function(e){var t;e.preventDefault();var n=this.pnDaysRow.querySelectorAll("pn-filter-checkbox");var o=[];this.generatedDatesArr=[];n.forEach((function(e){var t=e.querySelector("input");if(t.value){o.push(t.value)}}));if(o.length&&this.starDateValue&&this.endDateValue){this.daysArr.forEach((function(e){if(o.some((function(t){return t===e.value}))){e.selected=true}else{e.selected=false}}));var r=new Date(Date.parse(this.starDateValue));var i=new Date(Date.parse(this.endDateValue));for(var a=r;a<=i;a.setDate(a.getDate()+1)){var d=this.daysArr.findIndex((function(e){return parseInt(e.value)===a.getDay()}));if((t=this.daysArr[d])===null||t===void 0?void 0:t.selected){var s=a.getFullYear();var l=(a.getMonth()+1).toString().padStart(2,"0");var c=a.getDate().toString().padStart(2,"0");this.generatedDatesArr.push("".concat(s,"-").concat(l,"-").concat(c))}}}};e.prototype.deleteGeneratedDateRow=function(e){this.generatedDatesArr.splice(e,1);this.generatedDatesArr=__spreadArray([],this.generatedDatesArr,true)};e.prototype.saveGeneratedDates=function(){var e;if((e=this.generatedDatesArr)===null||e===void 0?void 0:e.length){this.dateValue=String(this.generatedDatesArr);var t=this.generatedDatesArr.length;var n=this.pnShowDateRangeFiledButton.querySelector(".pn-button-content");n.innerHTML=t>0?"".concat(this.dateButtonText," (").concat(t,")"):this.dateButtonText;this.showDateRangeRow()}};e.prototype.setSingleDateValue=function(e){var t=e.target;if(t===this.pnSingleDatePicker){this.dateValue=e.detail}};e.prototype.emittRowValues=function(){this.rowValueChange.emit({id:this._predefinedValue.id,buttons:this.buttonsArray,firstDropdown:this.firstDropdownArr,secondDropdown:this.secondDropdownArr,input:this.inputFieldValue,dates:this.dateValue,dateRange:{days:this.daysArr,startDate:this.starDateValue,endDate:this.endDateValue}})};e.prototype.deleteRow=function(){this.deleteRowEvent.emit(this._predefinedValue.id)};e.prototype.setActive=function(e){return e?"connected-dropdown__button active":"connected-dropdown__button"};e.prototype.render=function(){var e=this;var t,n,i,d,s,l,c,p,u;return o(r,null,o("div",{ref:function(t){return e.pnConnectedDropdownSlotElement=t},class:"connected-dropdown-slot-element"},o("div",{class:"connected-dropdown-parent-element connected-dropdown"},o("div",{class:"connected-dropdown__row__no-margin"},o("label",null,this.label)),o("div",{class:"connected-dropdown__row button-row"},o("div",{class:"connected-dropdown__button-container option-buttons"},(t=this.buttonsArray)===null||t===void 0?void 0:t.map((function(t){return o("button",{class:"".concat(e.setActive(t.selected)),id:e.generateUniqueId(),onClick:e.handleOptionButtonClick.bind(e)},t.value)}))),o("div",{class:"connected-dropdown__button-container delete-button"},this.index>0?o("pn-button",{ref:function(t){return e.pnDeleteRowButton=t},small:"true","icon-only":"true",icon:"minus",appearance:"warning",index:this.index},"Delete"):null)),o("div",{class:"connected-dropdown__row input-row"},o("pn-select",{ref:function(t){return e.pnFirstDropdown=t},class:"pn-row-select-dropdown dropDown1-dropdown",placeholder:this.firstDropdownPlaceholder,label:this.firstDropdownLabel},(n=this.firstDropdownArr)===null||n===void 0?void 0:n.map((function(t,n){return o("pn-option",{index:n,value:t.value,selected:t.selected,onClick:a.debounce(e.handleFirstDropdownChange.bind(e),500)},t.value)}))),o("pn-select",{ref:function(t){return e.pnSecondDropdown=t},class:"pn-row-select-dropdown dropDown2-dropdown",placeholder:this.secondDropdownPlaceholder,label:this.secondDropdownLabel},(i=this.secondDropdownArr)===null||i===void 0?void 0:i.map((function(t,n){return o("pn-option",{index:n,value:t.value,selected:t.selected,onClick:a.debounce(e.handleSecondDropdownChange.bind(e),500)},t.value)}))),o("pn-marketweb-input",{ref:function(t){return e.pnInputField=t},type:"number",placeholder:"0",label:this.inputFildLabel,value:this.inputFieldValue,min:"1"}),this.allowMultipleDates?o("pn-button",{ref:function(t){return e.pnShowDateRangeFiledButton=t},class:"connected-dropdown__toggle-date-button",small:"true",appearance:"light"},this.dateButtonText):o("div",{class:"connected-dropdown__date-container"},o("div",{class:"connected-dropdown__label-container"},o("label",null,this.dateButtonText)),o("pn-date-picker",{ref:function(t){return e.pnSingleDatePicker=t},range:"false","disable-weekends":true,"min-date":this.firstValidDateString,language:this.languageCode,placeholder:this.datePlaceholder,class:"connected-dropdown__date-picker",start:((d=this.dateValue)===null||d===void 0?void 0:d.length)?this.dateValue:null}))),this.allowMultipleDates?o("div",{ref:function(t){return e.pnDateRangeContainer=t},class:"connected-dropdown__date-container",style:{display:"none"}},this.multiDateHelperText?o("div",{class:"connected-dropdown__row"},o("p",null,this.multiDateHelperText)):null,o("div",{class:"connected-dropdown__multi-date-row"},o("div",{class:"connected-dropdown__date-container"},o("div",{class:"connected-dropdown__label-container"},o("label",null,this.startDateLabel)),o("pn-date-picker",{ref:function(t){return e.pnStartDate=t},range:"false","disable-weekends":true,class:"connected-dropdown__date-picker","min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.languageCode,placeholder:this.datePlaceholder,start:((s=this.starDateValue)===null||s===void 0?void 0:s.length)?this.starDateValue:null})),o("div",{class:"connected-dropdown__date-container"},o("div",{class:"connected-dropdown__label-container"},o("label",null,this.endDateLabel)),o("pn-date-picker",{ref:function(t){return e.pnEndDate=t},range:"false","disable-weekends":true,class:"connected-dropdown__date-picker","min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.languageCode,placeholder:this.datePlaceholder,start:((l=this.endDateValue)===null||l===void 0?void 0:l.length)?this.endDateValue:null}))),o("div",{ref:function(t){return e.pnDaysRow=t},class:"connected-dropdown__multi-date-row"},(c=this.daysArr)===null||c===void 0?void 0:c.map((function(e){return o("div",{class:"connected-dropdown__checkbox"},o("pn-filter-checkbox",{checkboxid:"day-"+e.value,name:"__"+e.caption,value:e.value,checked:e.selected}),o("label",{htmlFor:"day-"+e.value},e.caption))}))),o("div",{class:"connected-dropdown__row"},o("pn-button",{ref:function(t){return e.pnGenerateDatesButton=t},small:"true"},this.generateDatesButtonText)),o("div",{ref:function(t){return e.pnGeneratedDatesSlot=t},class:"connected-dropdown__date-slot"},(p=this.generatedDatesArr)===null||p===void 0?void 0:p.map((function(t,n){return o("div",{class:"connected-dropdown__row generated-date-row"},o("p",null,t),o("pn-button",{index:n,small:"true","icon-only":"true",icon:"minus",appearance:"warning",id:"delete-date-"+n,onClick:e.deleteGeneratedDateRow.bind(e,n)},t))})),!((u=this.generatedDatesArr)===null||u===void 0?void 0:u.length)?o("p",null,this.noDatesText):null),o("div",{class:"connected-dropdown__row"},o("pn-button",{ref:function(t){return e.pnSaveGeneratedDatesButton=t},class:"connected-dropdown__button-right",small:"true"},this.saveDateButtonText))):null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{predefinedValue:["applyPredefinedValue"]}},enumerable:false,configurable:true});return e}());l.style=s}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(t){"use strict";var c,n,e,a;return{setters:[function(t){c=t.r;n=t.h;e=t.a;a=t.g}],execute:function(){var i="pn-quick-cta{width:100%}pn-quick-cta .quick-cta__content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;gap:2.4rem;width:100%}pn-quick-cta .quick-cta__content .quick-cta__content__heading{padding:0;margin:0;font-size:2.4rem;font-weight:500;color:#0D234B}@media screen and (max-width: 768px){pn-quick-cta .quick-cta__content .quick-cta__content__heading{display:none}}@media screen and (min-width: 1640px){pn-quick-cta .quick-cta__content .quick-cta__content__heading{font-size:2.8rem;font-weight:700}}pn-quick-cta .quick-cta__content .quick-cta__content__preamble{font-weight:400;font-size:1.6rem;line-height:140%;padding:0;margin:0;color:#2D2013}pn-quick-cta .quick-cta__content [slot=quick-cta-cta] a{white-space:nowrap}pn-quick-cta .quick-cta__content [slot=quick-cta-cta] a:hover{text-decoration:none}pn-spotlight[data-cta-color=business] .quick-cta__content__heading{color:#F06365}pn-spotlight[data-cta-color=business] .quick-cta__content__preamble{color:#EFFBFF}pn-spotlight[data-cta-color=private] .quick-cta__content__heading,pn-spotlight[data-cta-color=private] .quick-cta__content__preamble{color:#FFFFFF}pn-spotlight[data-cta-color=hybrid] .quick-cta__content__heading{color:#005D92}pn-spotlight[data-cta-color=hybrid] .quick-cta__content__preamble{color:#2D2013}";var o=t("pn_quick_cta",function(){function t(t){c(this,t);this.heading=null;this.preamble=null}t.prototype.render=function(){return n(e,null,n("div",{class:"quick-cta__content"},n("h2",{class:"quick-cta__content__heading"},this.heading),n("p",{class:"quick-cta__content__preamble"},this.preamble),n("slot",{name:"quick-cta-cta"})))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());o.style=i}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,h as e,a as i,g as s}from"./p-
|
|
1
|
+
import{r as n,h as e,a as i,g as s}from"./p-d0e65d70.js";import{s as t}from"./p-eb110830.js";import"./p-03d7d79b.js";const o=class{constructor(e){n(this,e),this.name="",this.href="",this.target=null,this.linkid=null,this.icon="",this.current=!1,this.levelId="",this.open=!1,this.hasChildren=!1}componentWillLoad(){this.hasChildren=this.hostElement.querySelectorAll("pn-sidenav-level").length>0;const n=this.name.toLowerCase().replace(/\W/gi,"_");this.hasChildren&&this.name&&(this.levelId=`sidenav-lvl2-${n}`),!this.linkid&&this.name&&(this.linkid=`sidenav-link-${n}`)}onExpandClick(){t.openLevel=t.openLevel+""==this.levelId+""?"":this.levelId}getTagName(){return this.href?"a":"button"}render(){const n=this.getTagName(),s={href:this.href,target:this.target,id:this.linkid,class:"pn-sidenav-link"};let o={"aria-controls":this.levelId,"aria-pressed":"","aria-label":(this.open?t.i18n.close:t.i18n.open)+" "+this.name,"aria-expanded":(t.openLevel+""==this.levelId+"")+"",onClick:this.onExpandClick.bind(this)};return e(i,{role:"listitem",name:this.name,href:this.href,linkid:this.linkid,current:this.current+""},e(n,Object.assign({},s,"button"===n&&Object.assign({},o)),this.icon?e("pn-icon",{symbol:this.icon,color:"blue700"}):null,e("span",null,this.name),this.hasChildren&&"button"===n?e("div",{class:"pn-sidenav-link-expand"},e("pn-icon",this.open?{class:"first-level_icon",symbol:"angle-small-up",color:"blue700"}:{class:"first-level_icon",symbol:"angle-small-down",color:"blue700"})):null),this.hasChildren&&"a"===n?e("button",Object.assign({},o,{class:"pn-sidenav-link-expand"}),e("pn-icon",this.open?{class:"first-level_icon",symbol:"angle-small-up",color:"blue700"}:{class:"first-level_icon",symbol:"angle-small-down",color:"blue700"})):null,e("slot",null))}get hostElement(){return s(this)}};o.style='pn-sidenav-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.pn-sidenav-link{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92;font-size:1em;padding:1.1rem 1.5rem 1.1rem;overflow:hidden;text-decoration:none;cursor:pointer;-ms-flex-positive:1;flex-grow:1}.pn-sidenav-link::before{content:"";display:block;width:0.4rem;border-top-right-radius:0.3rem;border-bottom-right-radius:0.3rem;height:100%;position:absolute;left:0;top:0;bottom:0;-webkit-transform:translateX(-0.4rem);transform:translateX(-0.4rem);background:#005D92;-webkit-transition:-webkit-transform linear 0.35s;transition:-webkit-transform linear 0.35s;transition:transform linear 0.35s;transition:transform linear 0.35s, -webkit-transform linear 0.35s}.pn-sidenav-link:hover,.pn-sidenav-link:focus,[current=true]>.pn-sidenav-link{background-color:#E0F8FF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link:hover::before,.pn-sidenav-link:focus::before,[current=true]>.pn-sidenav-link::before{-webkit-transform:none;transform:none}.pn-sidenav-link:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link>pn-icon{padding-right:1em}.pn-sidenav-link-expand{margin-left:auto;border:0;font-size:1em;background:transparent;outline:0;padding:0 1em 0 0.5em;cursor:pointer}.pn-sidenav-link-expand:hover,.pn-sidenav-link-expand:focus,[current=true]>.pn-sidenav-link-expand{background-color:#E0F8FF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link-expand:hover::before,.pn-sidenav-link-expand:focus::before,[current=true]>.pn-sidenav-link-expand::before{-webkit-transform:none;transform:none}button>.pn-sidenav-link-expand{padding-right:0}.pn-sidenav-link-expand pn-icon{width:14px}';export{o as pn_sidenav_link}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a as r,g as s}from"./p-
|
|
1
|
+
import{r as e,h as t,a as r,g as s}from"./p-d0e65d70.js";const o=class{constructor(t){e(this,t),this.current=!1,this.value=0,this.bonuspercentage="",this.visualpercentage=0,this.percentage=0,this.max=0,this.min=0,this.currency=""}componentWillLoad(){this.max=parseInt(this.hostElement.parentElement.parentElement.getAttribute("max"),10),this.min=parseInt(this.hostElement.parentElement.parentElement.getAttribute("min"),10),this.currency=this.hostElement.parentElement.parentElement.getAttribute("currency"),this.percentage=this.value/this.max*100,this.visualpercentage>0||(this.visualpercentage=0===this.value?0:(this.value-this.min)/(this.max-this.min)*100)}formatValue(){return`${this.value.toLocaleString("sv-SE",{maximumFractionDigits:0})} ${this.currency}`}render(){return t(r,{style:{left:`${this.visualpercentage}%`}},t("div",{class:"progressbar-level-percentage"},this.bonuspercentage),t("div",{class:"progressbar-level-value"},this.formatValue()))}get hostElement(){return s(this)}};o.style='pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:"";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9B1C2E;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(odd)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-value{top:4.2rem}';export{o as pn_bonus_progressbar_level}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js","./p-3e668a3f.system.js","./p-fe1f76a3.system.js"],(function(t){"use strict";var e,a,n,i,o;return{setters:[function(t){e=t.r;a=t.h;n=t.a;i=t.g},function(t){o=t.c},function(){}],execute:function(){var s="pn-animated-tile .pn-animated-tile__container{position:relative;border-radius:2.4rem;height:56rem;cursor:default}pn-animated-tile .pn-animated-tile__content{position:relative;display:-ms-flexbox;display:flex;height:100%;width:100%;background-color:transparent}pn-animated-tile [slot=side-a],pn-animated-tile [slot=side-b]{position:absolute;-ms-flex-item-align:stretch;align-self:stretch;top:0;left:0;width:100%;height:100%}pn-animated-tile [slot=side-a]{padding:0;opacity:1}pn-animated-tile [slot=side-b]{z-index:-1;padding:2.4rem 2.4rem 7rem 2.4rem;opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}pn-animated-tile .pn-animated-tile__toggle{z-index:2;position:absolute;bottom:2.4rem;right:2.4rem;padding:0.8rem;border-radius:50%;border:none;cursor:pointer;background-color:#FFFFFF;-webkit-transition:background-color 0.45s ease-in-out;transition:background-color 0.45s ease-in-out}pn-animated-tile .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF;-webkit-transition:background-color 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s, -webkit-transform 0.45s ease-in-out 0.5s}pn-animated-tile .pn-animated-tile__toggle:hover{background-color:#e9e6e5}pn-animated-tile .pn-animated-tile__toggle:hover pn-icon{background-color:#e9e6e5}pn-animated-tile .button-tooltip{display:none}.cat-animate [slot=side-a],.cat-animate [slot=side-b]{-webkit-transition:opacity 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s, -webkit-transform 0.45s ease-in-out 0.5s}.cat-animate.fade [slot=side-a]{opacity:0;z-index:-1}.cat-animate.fade [slot=side-b]{z-index:1;opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-a]{opacity:1;-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-b]{opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}.cat-animate.toggle.animate pn-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}[data-cat-theme=white] .pn-animated-tile__container{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle{background-color:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon{background-color:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon svg>path{fill:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle:hover{background-color:#005D92}[data-cat-theme=white] .pn-animated-tile__toggle:hover pn-icon{background-color:#005D92}[data-cat-theme=white] .pn-animated-tile__toggle:focus,[data-cat-theme=white] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-theme=coral400] .pn-animated-tile__container{background-color:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon svg>path{fill:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle:focus,[data-cat-theme=coral400] .pn-animated-tile__toggle:focus-visible{outline-color:#F06365}[data-cat-theme=private] .pn-animated-tile__container{background-color:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon svg>path{fill:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle:focus,[data-cat-theme=private] .pn-animated-tile__toggle:focus-visible{outline-color:#00A0D6}[data-cat-theme=business] .pn-animated-tile__container{background-color:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon svg>path{fill:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle:focus,[data-cat-theme=business] .pn-animated-tile__toggle:focus-visible{outline-color:#0D234B}[data-cat-theme=hybrid] .pn-animated-tile__container{background-color:#e9e6e5}[data-cat-theme=hybrid] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon svg>path{fill:#005D92}[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus,[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-firstpage-only=true] [slot=side-b],[data-cat-firstpage-only=true] .pn-animated-tile__toggle{display:none}";var r=t("pn_animated_tile",function(){function t(t){var a=this;e(this,t);this.onClickHandler=function(){a.toggled=!a.toggled};this.toggled=false;this.transitionClassName="";this.animateIcon=""}t.prototype.onToggledHandler=function(){this.transitionClassName=o({fade:this.toggled,"fade--reversed":!this.toggled});this.animateIcon=o({animate:this.toggled,"":!this.toggled})};t.prototype.render=function(){return a(n,null,a("div",{class:"pn-animated-tile__container"},a("div",{class:"pn-animated-tile__content cat-animate ".concat(this.transitionClassName)},a("slot",{name:"side-a"}),a("slot",{name:"side-b"})),a("button",{type:"button","aria-label":"Read more",class:"pn-animated-tile__toggle cat-animate toggle ".concat(this.animateIcon),onClick:this.onClickHandler},a("pn-icon",{symbol:"plus"}))))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{toggled:["onToggledHandler"]}},enumerable:false,configurable:true});return t}());r.style=s}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,a as e,g as n}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,a as e,g as n}from"./p-d0e65d70.js";const a=class{constructor(s){t(this,s),this.dateandtimerange=i(this,"dateandtimerange",7),this.pnDatePicker=null,this.pnTimeFromHourDropdown=null,this.pnTimeFromMinuteDropdown=null,this.pnTimeToHourDropdown=null,this.pnTimeToMinuteDropdown=null,this.languageCode=null,this.dateAndTimeLabel="",this.dateDaysFromToday=0,this.validTimeRangeMinutes=0,this.errorMessage="",this.dateHelperText="",this.timeHelperText="",this.disableWeekends=!1,this.datePlacehodler="",this.language=null,this.hourArr=null,this.minuteArr=null,this.formValue=null,this.invalidTimespan=!1,this.selectedDate=null,this.selectedFromHour=null,this.selectedFromMin=null,this.selectedToHour=null,this.selectedToMin=null,this.firstValidDateString="",this.lastValidDateString=""}componentWillLoad(){this.setInitialValues()}componentDidLoad(){this.setDefaultHiddenValue(),this.addEventHandlers()}async setInitialValues(){this.setLangugaeCode(),this.setFirstValidDate(),this.hourArr=this.getNumbersAsStringArr(6,22,1),this.minuteArr=this.getNumbersAsStringArr(0,50,10)}setFirstValidDate(){var t;const i=new Date;i.setDate(null!==(t=i.getDate()+this.dateDaysFromToday)&&void 0!==t?t:0);const s=i.getFullYear(),e=(i.getMonth()+1).toString().padStart(2,"0"),n=i.getDate().toString().padStart(2,"0"),a=s+2;this.firstValidDateString=`${s.toString()}-${e}-${n}`,this.lastValidDateString=`${a.toString()}-${e}-${n}`}setLangugaeCode(){this.language="string"==typeof this.languageCode&&""===this.languageCode.trim()?document.querySelector("html").lang:this.languageCode}setDefaultHiddenValue(){this.selectedFromHour=parseInt(this.hourArr[8]),this.selectedFromMin=0,this.selectedToHour=parseInt(this.hourArr[12]),this.selectedToMin=0,this.updateHiddenValue()}addEventHandlers(){this.pnDatePicker.addEventListener("dateselection",this.handleChange.bind(this)),this.pnTimeFromHourDropdown.addEventListener("selectchange",this.handleChange.bind(this)),this.pnTimeFromMinuteDropdown.addEventListener("selectchange",this.handleChange.bind(this)),this.pnTimeToHourDropdown.addEventListener("selectchange",this.handleChange.bind(this)),this.pnTimeToMinuteDropdown.addEventListener("selectchange",this.handleChange.bind(this))}handleChange(t){const i=t.target;i===this.pnDatePicker&&(this.selectedDate=t.detail),i!==this.pnTimeFromHourDropdown&&i!==this.pnTimeFromMinuteDropdown&&i!==this.pnTimeToHourDropdown&&i!==this.pnTimeToMinuteDropdown||this.handleTimeChange(),this.updateHiddenValue()}handleTimeChange(){var t,i,s,e;const n=null===(t=this.pnTimeFromHourDropdown.querySelector(".current-selection .pn-option-content"))||void 0===t?void 0:t.textContent,a=null===(i=this.pnTimeFromMinuteDropdown.querySelector(".current-selection .pn-option-content"))||void 0===i?void 0:i.textContent,l=null===(s=this.pnTimeToHourDropdown.querySelector(".current-selection .pn-option-content"))||void 0===s?void 0:s.textContent,h=null===(e=this.pnTimeToMinuteDropdown.querySelector(".current-selection .pn-option-content"))||void 0===e?void 0:e.textContent;this.selectedFromHour=parseInt(n),this.selectedFromMin=parseInt(a),this.selectedToHour=parseInt(l),this.selectedToMin=parseInt(h)}updateHiddenValue(){const t=new Date,i=new Date(t.getFullYear(),t.getMonth(),t.getDate(),this.selectedFromHour,this.selectedFromMin,0,0),s=new Date(t.getFullYear(),t.getMonth(),t.getDate(),this.selectedToHour,this.selectedToMin,0,0);if(this.validateTimeRange(i.getTime(),s.getTime()),this.invalidTimespan||!this.selectedDate)this.formValue="";else{const t=this.selectedFromMin.toString().padStart(2,"0"),i=this.selectedToMin.toString().padStart(2,"0");this.formValue=`${this.selectedDate}, ${this.selectedFromHour}:${t}-${this.selectedToHour}:${i}`}this.dateandtimerange.emit(this.formValue)}validateTimeRange(t,i){let s=(i-t)/1e3;s/=60,this.invalidTimespan=s<this.validTimeRangeMinutes}getNumbersAsStringArr(t,i,s){const e=Array.from({length:(i-t)/s+1},((i,e)=>t+e*s)),n=[];return e.forEach((t=>{const i=t.toString().padStart(2,"0");n.push(i)})),n}removePnOptionSelected(){this.hostElement.querySelectorAll("pn-option").forEach((t=>{t.removeAttribute("selected")}))}render(){var t,i,n,a;return s(e,null,s("div",{class:"date-and-time-group"},this.dateAndTimeLabel?s("div",{class:"date-and-time-row"},s("label",null,this.dateAndTimeLabel)):null,s("div",{class:"date-and-time-row"},s("pn-date-picker",{ref:t=>this.pnDatePicker=t,range:"false","disable-weekends":this.disableWeekends,"min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.language,placeholder:this.datePlacehodler})),this.dateHelperText?s("small",{class:"date-and-time-row helper-text"},this.dateHelperText):null),s("div",{class:"date-and-time-group"},s("div",{class:"date-and-time-row"},s("pn-select",{ref:t=>this.pnTimeFromHourDropdown=t,name:"date-and-time-from-houre",placeholder:this.hourArr[8],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},null===(t=this.hourArr)||void 0===t?void 0:t.map((t=>s("pn-option",null,t)))),s("pn-select",{ref:t=>this.pnTimeFromMinuteDropdown=t,name:"date-and-time-from-minute",placeholder:this.minuteArr[0],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},null===(i=this.minuteArr)||void 0===i?void 0:i.map((t=>s("pn-option",null,t)))),s("div",{class:"time-separator"},s("span",null,"-")),s("pn-select",{ref:t=>this.pnTimeToHourDropdown=t,name:"date-and-time-to-hour",placeholder:this.hourArr[12],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},null===(n=this.hourArr)||void 0===n?void 0:n.map((t=>s("pn-option",null,t)))),s("pn-select",{ref:t=>this.pnTimeToMinuteDropdown=t,name:"date-and-time-to-minute",placeholder:this.minuteArr[0],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},null===(a=this.minuteArr)||void 0===a?void 0:a.map((t=>s("pn-option",null,t))))),this.timeHelperText?s("small",{class:"date-and-time-row helper-text"},this.timeHelperText):null,this.invalidTimespan&&this.errorMessage?s("small",{class:"date-and-time-row error-message"},s("pn-icon",{symbol:"alert-info-circle",small:"false",color:"warning"}),this.errorMessage):null))}get hostElement(){return n(this)}};a.style="pn-date-and-time label{color:#5E554A;font-size:1.4rem}pn-date-and-time .time-separator{margin-top:auto;margin-bottom:auto}pn-date-and-time .date-and-time-group{margin-bottom:1rem}pn-date-and-time .date-and-time-row{display:-ms-flexbox;display:flex;gap:1rem}pn-date-and-time .helper-text{margin-top:0.2rem;color:#5E554A;display:block}pn-date-and-time .error-message{color:#a70707}";export{a as pn_date_and_time}
|