@postnord/pn-marketweb-components 2.0.7 → 2.0.8-beta1

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.
Files changed (61) hide show
  1. package/cjs/{data-b9e6d752.js → data-3c575c99.js} +14 -1
  2. package/cjs/loader.cjs.js +1 -1
  3. package/cjs/pn-find-price-result.cjs.entry.js +13 -6
  4. package/cjs/{pn-find-price-store-63671327.js → pn-find-price-store-b0ea47ed.js} +3 -1
  5. package/cjs/pn-find-price.cjs.entry.js +17 -11
  6. package/cjs/pn-market-web-components.cjs.js +1 -1
  7. package/cjs/pn-product-card_3.cjs.entry.js +3 -3
  8. package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
  9. package/collection/components/widgets/pn-find-price/data.js +17 -2
  10. package/collection/components/widgets/pn-find-price/find-price.stories.js +2 -2
  11. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +46 -14
  12. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +3 -1
  13. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +10 -5
  14. package/collection/components/widgets/pn-find-price/pn-find-price.js +5 -10
  15. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +1 -9
  16. package/collection/components/widgets/pn-product-card/pn-product-card.css +51 -1
  17. package/collection/components/widgets/pn-product-card/pn-product-card.js +3 -1
  18. package/custom-elements/index.js +46 -19
  19. package/esm/{data-8e7bd46e.js → data-39cfd558.js} +14 -2
  20. package/esm/loader.js +1 -1
  21. package/esm/pn-find-price-result.entry.js +13 -6
  22. package/esm/{pn-find-price-store-55b65ec0.js → pn-find-price-store-625a6d87.js} +3 -1
  23. package/esm/pn-find-price.entry.js +17 -11
  24. package/esm/pn-market-web-components.js +1 -1
  25. package/esm/pn-product-card_3.entry.js +3 -3
  26. package/esm/pn-product-pricelist.entry.js +1 -1
  27. package/esm-es5/{data-8e7bd46e.js → data-39cfd558.js} +1 -1
  28. package/esm-es5/loader.js +1 -1
  29. package/esm-es5/pn-find-price-result.entry.js +1 -1
  30. package/esm-es5/{pn-find-price-store-55b65ec0.js → pn-find-price-store-625a6d87.js} +1 -1
  31. package/esm-es5/pn-find-price.entry.js +1 -1
  32. package/esm-es5/pn-market-web-components.js +1 -1
  33. package/esm-es5/pn-product-card_3.entry.js +1 -1
  34. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  35. package/package.json +1 -1
  36. package/pn-market-web-components/p-0af0c190.system.entry.js +1 -0
  37. package/pn-market-web-components/{p-4d584dca.system.entry.js → p-1c11b615.system.entry.js} +1 -1
  38. package/pn-market-web-components/p-38c50ef1.entry.js +1 -0
  39. package/pn-market-web-components/p-3e4ca70f.system.entry.js +1 -0
  40. package/pn-market-web-components/p-67887512.system.js +1 -1
  41. package/pn-market-web-components/{p-a7421a8e.system.js → p-84955534.system.js} +1 -1
  42. package/pn-market-web-components/{p-28db6d9f.entry.js → p-c1c3777d.entry.js} +1 -1
  43. package/pn-market-web-components/p-c21ceb98.entry.js +1 -0
  44. package/pn-market-web-components/{p-d94d8879.js → p-c4b2c6fa.js} +1 -1
  45. package/pn-market-web-components/p-cfae133f.entry.js +1 -0
  46. package/pn-market-web-components/p-cfd6960e.system.entry.js +1 -0
  47. package/pn-market-web-components/{p-f9586bef.js → p-e3ae421f.js} +1 -1
  48. package/pn-market-web-components/{p-f6fa6caa.system.js → p-e9781689.system.js} +1 -1
  49. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  50. package/types/components/widgets/pn-find-price/pn-find-price-result.d.ts +4 -0
  51. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +4 -0
  52. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +5 -0
  53. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +5 -0
  54. package/types/components.d.ts +2 -0
  55. package/umd/pn-marketweb-salesforce.js +1 -1
  56. package/pn-market-web-components/p-01a615ef.system.entry.js +0 -1
  57. package/pn-market-web-components/p-23902611.system.entry.js +0 -1
  58. package/pn-market-web-components/p-29b8041d.entry.js +0 -1
  59. package/pn-market-web-components/p-606ab75d.system.entry.js +0 -1
  60. package/pn-market-web-components/p-9a8dba33.entry.js +0 -1
  61. package/pn-market-web-components/p-dc869f2f.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as e,h as t,a as n}from"./p-58e8d7d5.js";let i=class{constructor(t){e(this,t)}render(){return t(n,null,t("slot",{name:"illustration"}),t("div",{class:"cardcontent"},t("div",{class:"details"},t("slot",{name:"title"}),t("slot",{name:"content"}),t("div",{class:"info"},t("slot",null)),t("slot",{name:"note"}),t("slot",{name:"additionalUSP"})),t("div",{class:"cardprice"},t("slot",{name:"cardprice"}))))}};i.style="pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title]>[slot]{border-radius:0.4rem;height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem}pn-product-card [slot=title]>[slot] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Billigast]{color:#005E41;background:#DCF6E7}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 2em 0.5em 0}";let r=class{constructor(t){e(this,t)}render(){return t(n,null,this.label?t("div",{class:"cardinfocontent"},this.text?t("pre",{slot:"formatPre"},this.text):null):t("div",{class:"cardinfocontent"},this.paket?t("div",{class:"cardinfocontent-item"},t("strong",null,"Maxmått:"),this.paket.split("/").map((e=>e.split(":").length>0?t("p",null,t("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):t("p",null,e)))):null,this.rulle?t("div",{class:"cardinfocontent-item"},t("strong",null,"Rulle:"),this.rulle.split("/").map((e=>e.split(":").length>0?t("p",null,t("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):t("p",null,e)))):null))}};t("pn-icon",{symbol:"align-center",small:"false",color:"black"}),r.style='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';let o=class{constructor(t){e(this,t)}render(){if(this.amount)return this.url?t(n,{id:this.linkid},t("div",{class:"price"},this.amount?t("span",null,this.amount):null,this.currency?t("span",null," "+this.currency):null),this.note?t("p",null,this.note):null,this.label?t("pn-button",{small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):t(n,null,t("div",{class:"price"},this.amount?t("span",null,this.amount):null,this.currency?t("span",null,this.currency):null))}};o.style="pn-product-card-price{margin-top:1.6rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;margin-top:0.8rem;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";export{i as pn_product_card,r as pn_product_card_info,o as pn_product_card_price}