@postnord/pn-marketweb-components 1.0.50 → 2.0.2-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 (224) hide show
  1. package/cjs/{index-5d2abef7.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-b6e46a26.js → index-e3e27c79.js} +3 -0
  3. package/cjs/loader.cjs.js +2 -2
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  6. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  7. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  8. package/cjs/pn-find-price-result.cjs.entry.js +5 -5
  9. package/cjs/{pn-find-price-store-d1977b2e.js → pn-find-price-store-6aab7fd0.js} +1 -2
  10. package/cjs/pn-find-price.cjs.entry.js +9 -12
  11. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  12. package/cjs/{pn-find-service-and-price-store-2d7dd8e3.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
  13. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  14. package/cjs/pn-language-selector_9.cjs.entry.js +3 -3
  15. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  16. package/cjs/{pn-mainnav-store-bbe3a1cf.js → pn-mainnav-store-61a75ea0.js} +1 -1
  17. package/cjs/pn-market-web-components.cjs.js +2 -2
  18. package/cjs/pn-marketweb-input.cjs.entry.js +76 -0
  19. package/cjs/pn-marketweb-search.cjs.entry.js +103 -0
  20. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  21. package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
  22. package/cjs/pn-pex-pricefinder.cjs.entry.js +11 -3
  23. package/cjs/pn-product-card_3.cjs.entry.js +9 -9
  24. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  25. package/cjs/{pn-product-pricelist-store-c88813f7.js → pn-product-pricelist-store-86310b5a.js} +1 -1
  26. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  27. package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
  28. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  29. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  30. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  31. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  32. package/cjs/{pn-sidenav-store-a753d3d7.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  33. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  34. package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
  35. package/collection/collection-manifest.json +2 -1
  36. package/collection/components/input/pn-marketweb-input/marketweb-input.stories.js +51 -0
  37. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +156 -0
  38. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +412 -0
  39. package/collection/components/input/{pn-filter-search/search-field.stories.js → pn-marketweb-search/marketweb-search-field.stories.js} +15 -3
  40. package/collection/components/input/{pn-filter-search/pn-filter-search.css → pn-marketweb-search/pn-marketweb-search.css} +22 -17
  41. package/collection/components/input/{pn-filter-search/pn-filter-search.js → pn-marketweb-search/pn-marketweb-search.js} +67 -9
  42. package/collection/components/widgets/pn-find-price/img/clouds.svg +5 -0
  43. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +2 -2
  44. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +0 -1
  45. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +1 -6
  46. package/collection/components/widgets/pn-find-price/pn-find-price.css +17 -4
  47. package/collection/components/widgets/pn-find-price/pn-find-price.js +4 -3
  48. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +10 -2
  49. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +6 -7
  50. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +2 -3
  51. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +22 -5
  52. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +1 -1
  53. package/collection/components/widgets/pn-product-card/pn-product-card.css +88 -30
  54. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  55. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +1 -0
  56. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  57. package/custom-elements/index.d.ts +12 -6
  58. package/custom-elements/index.js +201 -91
  59. package/esm/{index-02847864.js → index-5397620b.js} +4 -1
  60. package/esm/{index-1978107a.js → index-7b21ecff.js} +1 -1
  61. package/esm/loader.js +2 -2
  62. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  63. package/esm/pn-bonus-progressbar.entry.js +1 -1
  64. package/esm/pn-choice-button.entry.js +1 -1
  65. package/esm/pn-filter-checkbox.entry.js +1 -1
  66. package/esm/pn-find-price-result.entry.js +5 -5
  67. package/esm/{pn-find-price-store-b2f18af4.js → pn-find-price-store-3301df0a.js} +1 -2
  68. package/esm/pn-find-price.entry.js +9 -12
  69. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  70. package/esm/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  71. package/esm/pn-find-service-and-price.entry.js +3 -3
  72. package/esm/pn-language-selector_9.entry.js +3 -3
  73. package/esm/pn-mainnav-link.entry.js +3 -3
  74. package/esm/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  75. package/esm/pn-market-web-components.js +2 -2
  76. package/esm/pn-marketweb-input.entry.js +72 -0
  77. package/esm/pn-marketweb-search.entry.js +99 -0
  78. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  79. package/esm/pn-marketweb-siteheader.entry.js +1 -1
  80. package/esm/pn-pex-pricefinder.entry.js +11 -3
  81. package/esm/pn-product-card_3.entry.js +9 -9
  82. package/esm/pn-product-pricelist-result.entry.js +3 -3
  83. package/esm/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  84. package/esm/pn-product-pricelist.entry.js +4 -4
  85. package/esm/pn-product-tile_3.entry.js +1 -1
  86. package/esm/pn-profile-selector-option.entry.js +1 -1
  87. package/esm/pn-profile-selector.entry.js +1 -1
  88. package/esm/pn-sidenav-level.entry.js +3 -3
  89. package/esm/pn-sidenav-link.entry.js +3 -3
  90. package/esm/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  91. package/esm/pn-sidenav.entry.js +3 -3
  92. package/esm/pn-site-footer_2.entry.js +1 -1
  93. package/esm-es5/{index-02847864.js → index-5397620b.js} +1 -1
  94. package/esm-es5/{index-1978107a.js → index-7b21ecff.js} +1 -1
  95. package/esm-es5/loader.js +1 -1
  96. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  97. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  98. package/esm-es5/pn-choice-button.entry.js +1 -1
  99. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  100. package/esm-es5/pn-find-price-result.entry.js +1 -1
  101. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  102. package/esm-es5/pn-find-price.entry.js +1 -1
  103. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  104. package/esm-es5/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  105. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  106. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  107. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  108. package/esm-es5/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  109. package/esm-es5/pn-market-web-components.js +1 -1
  110. package/esm-es5/pn-marketweb-input.entry.js +1 -0
  111. package/esm-es5/pn-marketweb-search.entry.js +1 -0
  112. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  113. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  114. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  115. package/esm-es5/pn-product-card_3.entry.js +1 -1
  116. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  117. package/esm-es5/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  118. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  119. package/esm-es5/pn-product-tile_3.entry.js +1 -1
  120. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  121. package/esm-es5/pn-profile-selector.entry.js +1 -1
  122. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  123. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  124. package/esm-es5/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  125. package/esm-es5/pn-sidenav.entry.js +1 -1
  126. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  127. package/package.json +1 -1
  128. package/pn-market-web-components/{p-0f17a915.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
  129. package/pn-market-web-components/{p-3163e45b.system.js → p-02ea55ad.system.js} +1 -1
  130. package/pn-market-web-components/{p-6926ecdf.entry.js → p-045a349a.entry.js} +1 -1
  131. package/pn-market-web-components/p-07cc9f6b.system.entry.js +1 -0
  132. package/pn-market-web-components/{p-2f899d96.js → p-0cacf9fb.js} +1 -1
  133. package/pn-market-web-components/{p-b99c5d79.entry.js → p-10b95894.entry.js} +1 -1
  134. package/pn-market-web-components/{p-0e4a8305.system.entry.js → p-13eb4c66.system.entry.js} +1 -1
  135. package/pn-market-web-components/{p-ad2c41d8.entry.js → p-15112837.entry.js} +1 -1
  136. package/pn-market-web-components/{p-89907168.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  137. package/pn-market-web-components/{p-75654937.entry.js → p-227e1d46.entry.js} +1 -1
  138. package/pn-market-web-components/{p-3e3fed19.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  139. package/pn-market-web-components/{p-0a95c2b9.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
  140. package/pn-market-web-components/p-29d5e118.entry.js +1 -0
  141. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  142. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  143. package/pn-market-web-components/p-3af9dfc5.system.entry.js +1 -0
  144. package/pn-market-web-components/{p-8bb99125.system.entry.js → p-401b57b1.system.entry.js} +1 -1
  145. package/pn-market-web-components/{p-f2ca2961.entry.js → p-40264b65.entry.js} +1 -1
  146. package/pn-market-web-components/{p-c932f5f5.entry.js → p-51df9292.entry.js} +1 -1
  147. package/pn-market-web-components/{p-c089e9b5.system.entry.js → p-57cc0679.system.entry.js} +1 -1
  148. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  149. package/pn-market-web-components/{p-b0a2b362.entry.js → p-5c41acb2.entry.js} +1 -1
  150. package/pn-market-web-components/p-5d587499.js +1 -0
  151. package/pn-market-web-components/{p-8a3c3674.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  152. package/pn-market-web-components/p-67887512.system.js +1 -0
  153. package/pn-market-web-components/{p-465baa55.entry.js → p-715d1ef7.entry.js} +1 -1
  154. package/pn-market-web-components/p-72195bd8.entry.js +1 -0
  155. package/pn-market-web-components/{p-bb69b9ff.entry.js → p-774b7a9f.entry.js} +1 -1
  156. package/pn-market-web-components/{p-b14d20bd.system.entry.js → p-7b93d570.system.entry.js} +1 -1
  157. package/pn-market-web-components/{p-bc4da3dd.entry.js → p-7d75ea68.entry.js} +1 -1
  158. package/pn-market-web-components/p-7e494e9d.system.entry.js +1 -0
  159. package/pn-market-web-components/p-80dce81e.system.entry.js +1 -0
  160. package/pn-market-web-components/{p-ec78fe82.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
  161. package/pn-market-web-components/{p-27168bcc.entry.js → p-81d764a0.entry.js} +1 -1
  162. package/pn-market-web-components/{p-aa625cb0.system.js → p-825b8fb8.system.js} +1 -1
  163. package/pn-market-web-components/{p-271f42e8.js → p-84699999.js} +1 -1
  164. package/pn-market-web-components/{p-5629de79.entry.js → p-86b271f4.entry.js} +1 -1
  165. package/pn-market-web-components/p-86f06e26.js +1 -0
  166. package/pn-market-web-components/{p-547a9203.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
  167. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  168. package/pn-market-web-components/p-9e8c5793.system.entry.js +1 -0
  169. package/pn-market-web-components/p-9edaf6b6.system.entry.js +1 -0
  170. package/pn-market-web-components/p-a5bc1695.system.js +1 -0
  171. package/pn-market-web-components/{p-b5fbf807.system.js → p-a5f75560.system.js} +1 -1
  172. package/pn-market-web-components/{p-fed64b11.entry.js → p-adc639c8.entry.js} +1 -1
  173. package/pn-market-web-components/{p-aa59101e.system.js → p-add7d76c.system.js} +1 -1
  174. package/pn-market-web-components/{p-99d6a75c.js → p-ae2bd55f.js} +1 -1
  175. package/pn-market-web-components/{p-c74ee774.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
  176. package/pn-market-web-components/{p-d71027bc.entry.js → p-b4f0228c.entry.js} +1 -1
  177. package/pn-market-web-components/p-bb626ab4.js +1 -0
  178. package/pn-market-web-components/{p-5cb8ae86.entry.js → p-c0c52dc6.entry.js} +1 -1
  179. package/pn-market-web-components/{p-415b6c13.entry.js → p-c240b614.entry.js} +1 -1
  180. package/pn-market-web-components/p-c34db063.entry.js +1 -0
  181. package/pn-market-web-components/{p-3bef52c8.system.entry.js → p-c418bb48.system.entry.js} +1 -1
  182. package/pn-market-web-components/{p-07733b06.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
  183. package/pn-market-web-components/{p-15a18941.system.entry.js → p-d7776336.system.entry.js} +1 -1
  184. package/pn-market-web-components/{p-f2307b30.entry.js → p-e056d2c6.entry.js} +1 -1
  185. package/pn-market-web-components/{p-0c1d92ed.entry.js → p-e474b831.entry.js} +1 -1
  186. package/pn-market-web-components/p-e5fffc92.entry.js +1 -0
  187. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  188. package/pn-market-web-components/{p-df87670c.system.entry.js → p-f4cb2104.system.entry.js} +1 -1
  189. package/pn-market-web-components/{p-7a14e808.entry.js → p-f774e2cc.entry.js} +1 -1
  190. package/pn-market-web-components/{p-cf058789.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
  191. package/pn-market-web-components/{p-8f309dad.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  192. package/pn-market-web-components/p-fc6a09e0.system.entry.js +1 -0
  193. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  194. package/pn-market-web-components/pn-market-web-components.js +1 -1
  195. package/types/components/input/pn-marketweb-input/pn-marketweb-input.d.ts +32 -0
  196. package/types/components/input/{pn-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
  197. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +0 -2
  198. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +0 -5
  199. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +0 -1
  200. package/types/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.d.ts +1 -0
  201. package/types/components.d.ts +146 -65
  202. package/cjs/pn-filter-search.cjs.entry.js +0 -69
  203. package/esm/pn-filter-search.entry.js +0 -65
  204. package/esm-es5/pn-filter-search.entry.js +0 -1
  205. package/esm-es5/pn-find-price-store-b2f18af4.js +0 -1
  206. package/pn-market-web-components/p-0065e309.system.js +0 -1
  207. package/pn-market-web-components/p-1662a0e9.system.entry.js +0 -1
  208. package/pn-market-web-components/p-1663fe37.entry.js +0 -1
  209. package/pn-market-web-components/p-5ff39f75.system.entry.js +0 -1
  210. package/pn-market-web-components/p-6855204a.entry.js +0 -1
  211. package/pn-market-web-components/p-90c11ea0.system.entry.js +0 -1
  212. package/pn-market-web-components/p-9ae0afa8.js +0 -1
  213. package/pn-market-web-components/p-9d2ff751.system.entry.js +0 -1
  214. package/pn-market-web-components/p-a110366f.entry.js +0 -1
  215. package/pn-market-web-components/p-af1ac826.js +0 -1
  216. package/pn-market-web-components/p-b429c99d.system.js +0 -1
  217. package/pn-market-web-components/p-b6769599.entry.js +0 -1
  218. package/pn-market-web-components/p-b7b78fb0.system.entry.js +0 -1
  219. package/pn-market-web-components/p-d30c5783.system.entry.js +0 -1
  220. package/pn-market-web-components/p-d944756c.system.js +0 -1
  221. package/pn-market-web-components/p-dde0c959.js +0 -1
  222. package/pn-market-web-components/p-e1a8308e.system.js +0 -1
  223. package/pn-market-web-components/p-e422ad85.js +0 -1
  224. package/pn-market-web-components/p-ebc83f89.entry.js +0 -1
@@ -30,7 +30,7 @@ export class PnfindPriceResult {
30
30
  " "),
31
31
  (this.item.highestrankusp) ?
32
32
  (this.item.highestrankusp === "Billigast") ?
33
- (h("span", { slot: "Biligast" },
33
+ (h("span", { slot: "Billigast" },
34
34
  this.item.highestrankusp,
35
35
  h("pn-icon", { symbol: "box-label", small: "false", color: "green700" })))
36
36
  : (h("span", { slot: "Snabbast" },
@@ -50,7 +50,7 @@ export class PnfindPriceResult {
50
50
  h("div", { slot: "cardprice" },
51
51
  this.item.priceagent ? (h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop" })) : null,
52
52
  this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/", service: this.item.name + "-portal" })) : null,
53
- this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop", note: state.i18n.message })) : null))));
53
+ this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop" })) : null))));
54
54
  }
55
55
  static get is() { return "pn-find-price-result"; }
56
56
  static get originalStyleUrls() { return {
@@ -4,7 +4,6 @@ const { state, onChange } = createStore({
4
4
  i18n: {
5
5
  componentheading: '',
6
6
  deliveryscopeheading: '',
7
- sizeheading: '',
8
7
  resultlistheading: '',
9
8
  weightlabel: '',
10
9
  maxweightlabel: '',
@@ -2,7 +2,6 @@ export const translations = {
2
2
  'sv': {
3
3
  'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
4
4
  'deliveryscopeheading': 'Endast leveranser inom Sverige',
5
- 'sizeheading': 'Uppskatta storlek och vikt på din försändelse',
6
5
  'resultlistheading': 'Några bra alternativ för dig',
7
6
  'weightlabel': 'Vikt',
8
7
  'maxweightlabel': 'Maxvikt',
@@ -11,12 +10,11 @@ export const translations = {
11
10
  'stampshopcta': 'Beställ fysiska frimärken',
12
11
  'message': '*Vid köp hos valfritt ombud',
13
12
  'servicePointHeader': 'Eller hitta närmaste serviceställe',
14
- 'servicePointLink': 'Sök brevlåda eller serviceställe'
13
+ 'servicePointLink': 'Sök serviceställe eller brevlåda'
15
14
  },
16
15
  'en': {
17
16
  'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
18
17
  'deliveryscopeheading': 'Deliveries within Sweden only',
19
- 'sizeheading': 'Estimate the size and weight of your shipment',
20
18
  'resultlistheading': 'Some suitable options for you',
21
19
  'weightlabel': 'Weight',
22
20
  'maxweightlabel': 'Max weight',
@@ -30,7 +28,6 @@ export const translations = {
30
28
  'da': {
31
29
  'componentheading': 'Vad vill du skicka?',
32
30
  'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
33
- 'sizeheading': 'How much does it weigh?',
34
31
  'resultlistheading': 'Some suitable options for you',
35
32
  'weightlabel': 'Vægt',
36
33
  'maxweightlabel': 'Max vægt',
@@ -41,7 +38,6 @@ export const translations = {
41
38
  'no': {
42
39
  'componentheading': 'Vad vill du skicka?',
43
40
  'deliveryscopeheading': 'Kun leveranser innen Sverige',
44
- 'sizeheading': 'How much does it weigh?',
45
41
  'resultlistheading': 'Some suitable options for you',
46
42
  'weightlabel': 'Vekt',
47
43
  'maxweightlabel': 'Maks vekt',
@@ -52,7 +48,6 @@ export const translations = {
52
48
  'fi': {
53
49
  'componentheading': 'Vad vill du skicka?',
54
50
  'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
55
- 'sizeheading': 'How much does it weigh?',
56
51
  'resultlistheading': 'Some suitable options for you',
57
52
  'weightlabel': 'Paino',
58
53
  'maxweightlabel': 'Max paino',
@@ -2,12 +2,20 @@
2
2
  pn-find-price .sizeTable {
3
3
  border-style: none !important;
4
4
  border: 0 !important;
5
+ position: relative;
5
6
  }
6
7
  pn-find-price .sizeTable > tr td {
7
8
  margin-bottom: 1em;
8
9
  text-align: center;
9
10
  vertical-align: bottom;
10
11
  padding-right: 1em;
12
+ padding-top: 1em;
13
+ }
14
+ pn-find-price .sizeTable #clouds {
15
+ position: absolute;
16
+ top: 0em;
17
+ left: 4em;
18
+ z-index: -1;
11
19
  }
12
20
  pn-find-price .firstCell {
13
21
  margin-right: 0;
@@ -18,19 +26,19 @@ pn-find-price .findprice-form {
18
26
  margin: 0 auto 3em auto;
19
27
  }
20
28
  pn-find-price h2,
21
- pn-find-price .heading, pn-find-price .resultHeading {
29
+ pn-find-price .heading {
22
30
  text-align: center;
23
31
  font-size: 1.5em;
24
32
  line-height: 1.1;
25
33
  font-weight: bold;
26
34
  margin-bottom: 1rem;
27
35
  }
28
- pn-find-price .sizeheading {
36
+ pn-find-price .resultHeading {
29
37
  text-align: center;
30
- font-size: 1.25em;
38
+ font-size: 1.5em;
31
39
  line-height: 1.1;
32
40
  font-weight: bold;
33
- margin-bottom: 1rem;
41
+ margin-bottom: 2em;
34
42
  }
35
43
  pn-find-price .sizecategory {
36
44
  margin-top: 5em;
@@ -80,4 +88,9 @@ pn-find-price .servicePoint h3 {
80
88
  }
81
89
  pn-find-price .servicePoint a {
82
90
  color: #005D92;
91
+ text-decoration: none;
92
+ }
93
+ pn-find-price .servicePoint a:hover {
94
+ color: #0D234B;
95
+ text-decoration: underline;
83
96
  }
@@ -7,6 +7,7 @@ import small from "./img/small-package.svg";
7
7
  import medium from "./img/medium-package.svg";
8
8
  import large from "./img/large-package.svg";
9
9
  import person from "./img/postnord-person1.svg";
10
+ import clouds from "./img/clouds.svg";
10
11
  export class PnfindPrice {
11
12
  constructor() {
12
13
  this.source = fileLocation;
@@ -84,9 +85,9 @@ export class PnfindPrice {
84
85
  render() {
85
86
  return (h("div", { class: "findprice-form" },
86
87
  h("div", null,
87
- (h("div", { class: "sizeheading" }, state.i18n.sizeheading)),
88
88
  h("div", { class: "sizecategory" },
89
89
  h("table", { class: "sizeTable" },
90
+ h("img", { id: "clouds", src: clouds }),
90
91
  h("tr", null,
91
92
  h("td", null,
92
93
  h("img", { class: "firstCell", src: person })),
@@ -116,8 +117,8 @@ export class PnfindPrice {
116
117
  h("pn-illustration", { illustration: "character-box-letters-house" }),
117
118
  h("h3", null, state.i18n.servicePointHeader),
118
119
  h("a", { href: ServicePointUrl, target: "_blank" },
119
- state.i18n.servicePointLink,
120
- h("pn-icon", { symbol: "map-marker", color: "blue700" }))))) : null));
120
+ h("pn-icon", { symbol: "map-marker", color: "blue700" }),
121
+ state.i18n.servicePointLink)))) : null));
121
122
  }
122
123
  static get is() { return "pn-find-price"; }
123
124
  static get originalStyleUrls() { return {
@@ -12,16 +12,24 @@ export class PnPexPricefinder {
12
12
  this.fromzip = null;
13
13
  this.tozip = null;
14
14
  this.weight = 100;
15
- this.when = (new Date()).toISOString().split('T')[0];
15
+ this.when = '';
16
16
  this.response = null;
17
17
  }
18
18
  componentWillLoad() {
19
19
  this.init();
20
20
  }
21
21
  async init() {
22
+ this.setInitialTime();
22
23
  this.checkParameters();
23
24
  this.setLanguage();
24
25
  }
26
+ setInitialTime() {
27
+ const initialTime = (new Date());
28
+ initialTime.setHours(initialTime.getHours() + 1);
29
+ initialTime.setMinutes(0);
30
+ const splitTime = initialTime.toLocaleString('sv', { timeZoneName: 'short' }).split(' ');
31
+ this.when = `${splitTime[0]}T${splitTime[1].substring(0, 5)}`;
32
+ }
25
33
  checkParameters() {
26
34
  const params = new URLSearchParams(window.location.href);
27
35
  if (!params) {
@@ -96,7 +104,7 @@ export class PnPexPricefinder {
96
104
  h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }),
97
105
  h("div", { class: "datepicker" },
98
106
  h("label", { htmlFor: "when" }, this.i18n.labelWhen),
99
- h("pn-date-picker", { inputid: "when", name: "when", "start-of-week": "1", min: (new Date()).toISOString().split('T')[0], language: this.language, value: this.when })))),
107
+ h("pn-marketweb-input", { inputid: "when", name: "when", type: "datetime-local", min: (new Date()).toISOString().split('T')[0], value: this.when })))),
100
108
  h("fieldset", null,
101
109
  h("div", null,
102
110
  h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))),
@@ -4,18 +4,17 @@ pn-product-card-info {
4
4
 
5
5
  .cardinfocontent {
6
6
  display: flex;
7
- flex-direction: row;
7
+ flex-direction: column;
8
8
  justify-content: space-between;
9
9
  flex-grow: 1;
10
10
  font-size: 0.875em;
11
+ gap: 1.6rem;
11
12
  }
12
- .cardinfocontent > div p {
13
- margin: 0.25em 0.25em 0 0;
14
- }
15
- .cardinfocontent #sp {
16
- width: 5em;
13
+ @media screen and (min-width: 36em) {
14
+ .cardinfocontent {
15
+ flex-direction: row;
16
+ }
17
17
  }
18
-
19
18
  [slot=formatPre] {
20
19
  font-family: "PostNordSans", "Verdana";
21
20
  margin: 0.5em 3em 0 0;
@@ -4,7 +4,7 @@ export class PnProductCardInfo {
4
4
  return (this.label) ? (h(Host, null,
5
5
  h("div", { class: "cardinfocontent" }, (this.text) ? (h("pre", { slot: "formatPre" }, this.text)) : null))) : (h(Host, null,
6
6
  h("div", { class: "cardinfocontent" },
7
- h("div", null,
7
+ h("div", { class: "cardinfocontent-item" },
8
8
  h("strong", null, "Paket:"),
9
9
  this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
10
10
  h("p", null,
@@ -12,9 +12,8 @@ export class PnProductCardInfo {
12
12
  " ",
13
13
  item.split(":")[1]) :
14
14
  h("p", null, item)))),
15
- h("div", { id: "sp" }),
16
15
  (this.rulle) ?
17
- (h("div", null,
16
+ (h("div", { class: "cardinfocontent-item" },
18
17
  h("strong", null, "Rulle:"),
19
18
  this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
20
19
  h("p", null,
@@ -1,7 +1,9 @@
1
1
  pn-product-card-price {
2
- margin-top: 1em;
2
+ margin-top: 1.6rem;
3
3
  white-space: nowrap;
4
4
  text-align: center;
5
+ display: flex;
6
+ flex-direction: column;
5
7
  }
6
8
  pn-product-card-price span:last-child {
7
9
  display: inline-block;
@@ -15,16 +17,31 @@ pn-product-card-price pn-icon {
15
17
  align-self: center;
16
18
  }
17
19
  pn-product-card-price pn-button {
18
- width: 12.8em;
19
- margin-bottom: 1em;
20
- margin-top: 0.5em;
20
+ min-width: 12.8em;
21
+ margin-top: 0.8rem;
21
22
  font-size: 1.25;
23
+ order: 2;
24
+ }
25
+ @media screen and (min-width: 48em) {
26
+ pn-product-card-price pn-button {
27
+ order: 3;
28
+ margin-bottom: 1.6rem;
29
+ }
30
+ }
31
+ pn-product-card-price h3 {
32
+ order: 1;
22
33
  }
23
34
  pn-product-card-price p {
24
35
  font-weight: lighter;
25
36
  font-size: 0.875em;
26
37
  align-self: center;
27
- margin-top: 0.5em;
38
+ margin-top: 0.8rem;
39
+ order: 3;
40
+ }
41
+ @media screen and (min-width: 48em) {
42
+ pn-product-card-price p {
43
+ order: 2;
44
+ }
28
45
  }
29
46
  pn-product-card-price a {
30
47
  text-decoration: none;
@@ -9,7 +9,7 @@ export class PnProductCardPrice {
9
9
  (this.amount) ? (h("span", null, this.amount)) : null,
10
10
  (this.currency) ? (h("span", null, " " + this.currency)) : null),
11
11
  (this.note) ? (h("p", null, this.note)) : null,
12
- (this.label) ? (h("pn-button", { small: "true", icon: "arrow-right", appearance: "secondary", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null,
12
+ (this.label) ? (h("pn-button", { small: "true", icon: "open-in-new", appearance: "light", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null,
13
13
  h("h3", null,
14
14
  (this.amount) ? (h("span", null, this.amount)) : null,
15
15
  (this.currency) ? (h("span", null, this.currency)) : null)));
@@ -1,53 +1,63 @@
1
1
  pn-product-card {
2
- margin-bottom: 1em;
3
2
  border: 0.1rem solid #D3CECB;
4
3
  outline: none;
5
4
  background: #FFFFFF;
6
5
  box-shadow: 0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);
7
6
  display: flex;
8
- padding: 1.5em;
9
7
  word-break: break-word;
10
8
  text-decoration: none;
11
9
  border-radius: 0.8rem;
10
+ position: relative;
11
+ padding: 11rem 2.4rem 2.4rem;
12
+ margin-bottom: 1.6rem;
13
+ }
14
+ @media screen and (min-width: 36em) {
15
+ pn-product-card {
16
+ padding: 2.4rem;
17
+ }
12
18
  }
13
19
  pn-product-card [slot=title] {
14
20
  display: flex;
15
21
  width: 100%;
16
- margin-bottom: 0.5em;
22
+ margin-bottom: 0.8rem;
23
+ gap: 1.6rem;
24
+ flex-direction: column;
25
+ align-items: center;
17
26
  }
18
- pn-product-card [slot=title] > [slot=Biligast] {
19
- color: #005E41;
20
- background: #DCF6E7;
21
- border-radius: 0.37em;
22
- width: 6.3em;
23
- height: 2em;
24
- margin-left: 1.5em;
27
+ @media screen and (min-width: 36em) {
28
+ pn-product-card [slot=title] {
29
+ flex-direction: row;
30
+ align-items: inherit;
31
+ }
32
+ }
33
+ pn-product-card [slot=title] h2 {
34
+ width: 100%;
35
+ }
36
+ @media screen and (min-width: 36em) {
37
+ pn-product-card [slot=title] h2 {
38
+ width: auto;
39
+ }
40
+ }
41
+ pn-product-card [slot=title] > [slot] {
42
+ border-radius: 0.4rem;
43
+ height: 2.5em;
25
44
  font-weight: normal;
26
45
  font-size: 0.75em;
27
46
  text-align: center;
28
47
  vertical-align: bottom;
29
- padding-top: 0.25em;
48
+ padding: 0.6rem;
30
49
  }
31
- pn-product-card [slot=title] > [slot=Biligast] pn-icon {
50
+ pn-product-card [slot=title] > [slot] pn-icon {
32
51
  vertical-align: middle;
33
52
  margin-left: 0.6em;
34
53
  }
54
+ pn-product-card [slot=title] > [slot=Billigast] {
55
+ color: #005E41;
56
+ background: #DCF6E7;
57
+ }
35
58
  pn-product-card [slot=title] > [slot=Snabbast] {
36
59
  background: #E0F8FF;
37
60
  color: #005D92;
38
- border-radius: 0.37em;
39
- width: 7em;
40
- height: 2em;
41
- margin-left: 1.5em;
42
- font-weight: normal;
43
- font-size: 0.75em;
44
- text-align: center;
45
- vertical-align: bottom;
46
- padding-top: 0.25em;
47
- }
48
- pn-product-card [slot=title] > [slot=Snabbast] pn-icon {
49
- vertical-align: middle;
50
- margin-left: 0.6em;
51
61
  }
52
62
  pn-product-card [slot=note] {
53
63
  margin-top: 1em;
@@ -73,22 +83,70 @@ pn-product-card > pn-illustration {
73
83
  min-width: 8rem;
74
84
  width: 8rem;
75
85
  height: 8rem;
76
- margin-right: 3rem;
77
86
  align-self: center;
87
+ position: absolute;
88
+ top: 1.6rem;
89
+ transform: translateX(-50%);
90
+ left: 50%;
91
+ box-shadow: 0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);
92
+ border-radius: 100%;
93
+ }
94
+ @media screen and (min-width: 36em) {
95
+ pn-product-card > pn-illustration {
96
+ box-shadow: none;
97
+ top: 1.6rem;
98
+ right: 1.6rem;
99
+ left: auto;
100
+ transform: none;
101
+ }
102
+ }
103
+ @media screen and (min-width: 48em) {
104
+ pn-product-card > pn-illustration {
105
+ position: static;
106
+ top: auto;
107
+ right: auto;
108
+ margin-right: 3rem;
109
+ }
78
110
  }
79
111
  pn-product-card .cardcontent {
80
112
  display: flex;
81
- flex-direction: row;
113
+ flex-direction: column;
82
114
  justify-content: center;
83
115
  flex-grow: 1;
84
116
  }
117
+ @media screen and (min-width: 48em) {
118
+ pn-product-card .cardcontent {
119
+ flex-direction: row;
120
+ gap: 1.6rem;
121
+ }
122
+ }
123
+ pn-product-card .cardcontent .description :first-child {
124
+ max-width: calc(100% - 10rem);
125
+ }
126
+ @media screen and (min-width: 48em) {
127
+ pn-product-card .cardcontent .description :first-child {
128
+ max-width: none;
129
+ }
130
+ }
85
131
  pn-product-card [slot=cardprice] {
86
- display: block;
87
- flex-direction: row;
88
- align-items: flex-end;
132
+ display: flex;
133
+ flex-direction: column;
89
134
  justify-content: center;
90
135
  flex-grow: 1;
91
136
  }
137
+ @media screen and (min-width: 36em) {
138
+ pn-product-card [slot=cardprice] {
139
+ flex-direction: row;
140
+ justify-content: space-between;
141
+ }
142
+ }
143
+ @media screen and (min-width: 48em) {
144
+ pn-product-card [slot=cardprice] {
145
+ flex-direction: column;
146
+ justify-content: center;
147
+ align-items: flex-end;
148
+ }
149
+ }
92
150
  pn-product-card .details {
93
151
  display: flex;
94
152
  flex-direction: column;
@@ -11,7 +11,7 @@ export class PnProductCard {
11
11
  h("slot", null)),
12
12
  h("slot", { name: "note" }),
13
13
  h("slot", { name: "additionalUSP" })),
14
- h("div", null,
14
+ h("div", { class: "cardprice" },
15
15
  h("slot", { name: "cardprice" })))));
16
16
  }
17
17
  static get is() { return "pn-product-card"; }
@@ -21,6 +21,7 @@ pn-product-pricelist .weightoption {
21
21
  pn-product-pricelist .weightoption-input {
22
22
  width: 5em;
23
23
  position: relative;
24
+ display: none;
24
25
  }
25
26
  pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,
26
27
  pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button {
@@ -31,5 +31,5 @@ Primary.args = {
31
31
  source: 'https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx',
32
32
  language: 'sv',
33
33
  market: 'se',
34
- productid: 'expressletter'
34
+ productid: 'registered10000'
35
35
  };
@@ -26,12 +26,6 @@ export const PnFilterCheckbox: {
26
26
  new (): PnFilterCheckbox;
27
27
  };
28
28
 
29
- interface PnFilterSearch extends Components.PnFilterSearch, HTMLElement {}
30
- export const PnFilterSearch: {
31
- prototype: PnFilterSearch;
32
- new (): PnFilterSearch;
33
- };
34
-
35
29
  interface PnFindPrice extends Components.PnFindPrice, HTMLElement {}
36
30
  export const PnFindPrice: {
37
31
  prototype: PnFindPrice;
@@ -92,6 +86,18 @@ export const PnMainnavList: {
92
86
  new (): PnMainnavList;
93
87
  };
94
88
 
89
+ interface PnMarketwebInput extends Components.PnMarketwebInput, HTMLElement {}
90
+ export const PnMarketwebInput: {
91
+ prototype: PnMarketwebInput;
92
+ new (): PnMarketwebInput;
93
+ };
94
+
95
+ interface PnMarketwebSearch extends Components.PnMarketwebSearch, HTMLElement {}
96
+ export const PnMarketwebSearch: {
97
+ prototype: PnMarketwebSearch;
98
+ new (): PnMarketwebSearch;
99
+ };
100
+
95
101
  interface PnMarketwebSitefooter extends Components.PnMarketwebSitefooter, HTMLElement {}
96
102
  export const PnMarketwebSitefooter: {
97
103
  prototype: PnMarketwebSitefooter;