@postnord/pn-marketweb-components 1.0.49-beta4 → 2.0.1

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 (237) hide show
  1. package/cjs/{index-9027dc96.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-0a6b1eef.js → index-e3e27c79.js} +6 -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-f9766c41.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-914d170b.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 +65 -5
  15. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  16. package/cjs/{pn-mainnav-store-f8bacb50.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 +6 -4
  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-d101b50e.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-eed02285.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/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search-store.js +9 -0
  43. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +79 -3
  44. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +23 -3
  45. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +3 -3
  46. package/collection/components/widgets/pn-find-price/img/clouds.svg +5 -0
  47. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +2 -2
  48. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +0 -1
  49. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +1 -6
  50. package/collection/components/widgets/pn-find-price/pn-find-price.css +14 -4
  51. package/collection/components/widgets/pn-find-price/pn-find-price.js +4 -3
  52. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +10 -2
  53. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +6 -7
  54. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +2 -3
  55. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +22 -5
  56. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +1 -1
  57. package/collection/components/widgets/pn-product-card/pn-product-card.css +88 -30
  58. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  59. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +1 -0
  60. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  61. package/custom-elements/index.d.ts +12 -6
  62. package/custom-elements/index.js +298 -126
  63. package/esm/{index-70b099b5.js → index-5397620b.js} +7 -1
  64. package/esm/{index-d3007e8f.js → index-7b21ecff.js} +1 -1
  65. package/esm/loader.js +2 -2
  66. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  67. package/esm/pn-bonus-progressbar.entry.js +1 -1
  68. package/esm/pn-choice-button.entry.js +1 -1
  69. package/esm/pn-filter-checkbox.entry.js +1 -1
  70. package/esm/pn-find-price-result.entry.js +5 -5
  71. package/esm/{pn-find-price-store-ddd3f427.js → pn-find-price-store-3301df0a.js} +1 -2
  72. package/esm/pn-find-price.entry.js +9 -12
  73. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  74. package/esm/{pn-find-service-and-price-store-012f2e49.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  75. package/esm/pn-find-service-and-price.entry.js +3 -3
  76. package/esm/pn-language-selector_9.entry.js +79 -19
  77. package/esm/pn-mainnav-link.entry.js +3 -3
  78. package/esm/{pn-mainnav-store-395ee066.js → pn-mainnav-store-28571e54.js} +1 -1
  79. package/esm/pn-market-web-components.js +2 -2
  80. package/esm/pn-marketweb-input.entry.js +72 -0
  81. package/esm/pn-marketweb-search.entry.js +99 -0
  82. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  83. package/esm/pn-marketweb-siteheader.entry.js +6 -4
  84. package/esm/pn-pex-pricefinder.entry.js +11 -3
  85. package/esm/pn-product-card_3.entry.js +9 -9
  86. package/esm/pn-product-pricelist-result.entry.js +3 -3
  87. package/esm/{pn-product-pricelist-store-909c5238.js → pn-product-pricelist-store-2c336043.js} +1 -1
  88. package/esm/pn-product-pricelist.entry.js +4 -4
  89. package/esm/pn-product-tile_3.entry.js +1 -1
  90. package/esm/pn-profile-selector-option.entry.js +1 -1
  91. package/esm/pn-profile-selector.entry.js +1 -1
  92. package/esm/pn-sidenav-level.entry.js +3 -3
  93. package/esm/pn-sidenav-link.entry.js +3 -3
  94. package/esm/{pn-sidenav-store-f0db4a1f.js → pn-sidenav-store-50b186d6.js} +1 -1
  95. package/esm/pn-sidenav.entry.js +3 -3
  96. package/esm/pn-site-footer_2.entry.js +1 -1
  97. package/esm-es5/{index-70b099b5.js → index-5397620b.js} +1 -1
  98. package/esm-es5/{index-d3007e8f.js → index-7b21ecff.js} +1 -1
  99. package/esm-es5/loader.js +1 -1
  100. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  101. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  102. package/esm-es5/pn-choice-button.entry.js +1 -1
  103. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  104. package/esm-es5/pn-find-price-result.entry.js +1 -1
  105. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  106. package/esm-es5/pn-find-price.entry.js +1 -1
  107. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  108. package/esm-es5/{pn-find-service-and-price-store-012f2e49.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  109. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  110. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  111. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  112. package/esm-es5/{pn-mainnav-store-395ee066.js → pn-mainnav-store-28571e54.js} +1 -1
  113. package/esm-es5/pn-market-web-components.js +1 -1
  114. package/esm-es5/pn-marketweb-input.entry.js +1 -0
  115. package/esm-es5/pn-marketweb-search.entry.js +1 -0
  116. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  117. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  118. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  119. package/esm-es5/pn-product-card_3.entry.js +1 -1
  120. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  121. package/esm-es5/{pn-product-pricelist-store-909c5238.js → pn-product-pricelist-store-2c336043.js} +1 -1
  122. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  123. package/esm-es5/pn-product-tile_3.entry.js +1 -1
  124. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  125. package/esm-es5/pn-profile-selector.entry.js +1 -1
  126. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  127. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  128. package/esm-es5/{pn-sidenav-store-f0db4a1f.js → pn-sidenav-store-50b186d6.js} +1 -1
  129. package/esm-es5/pn-sidenav.entry.js +1 -1
  130. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  131. package/package.json +1 -1
  132. package/pn-market-web-components/{p-b49c9d34.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
  133. package/pn-market-web-components/{p-7ce21cb3.system.js → p-02ea55ad.system.js} +1 -1
  134. package/pn-market-web-components/{p-71a31b15.entry.js → p-045a349a.entry.js} +1 -1
  135. package/pn-market-web-components/p-07cc9f6b.system.entry.js +1 -0
  136. package/pn-market-web-components/{p-24df62a2.js → p-0cacf9fb.js} +1 -1
  137. package/pn-market-web-components/{p-d26967cb.entry.js → p-10b95894.entry.js} +1 -1
  138. package/pn-market-web-components/p-13eb4c66.system.entry.js +1 -0
  139. package/pn-market-web-components/{p-9aac6bd5.entry.js → p-15112837.entry.js} +1 -1
  140. package/pn-market-web-components/{p-69b751a8.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  141. package/pn-market-web-components/{p-d546d0c3.entry.js → p-227e1d46.entry.js} +1 -1
  142. package/pn-market-web-components/{p-39760c45.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  143. package/pn-market-web-components/{p-702f06b7.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
  144. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  145. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  146. package/pn-market-web-components/{p-5d34bb8f.system.entry.js → p-401b57b1.system.entry.js} +1 -1
  147. package/pn-market-web-components/{p-7598c3ac.entry.js → p-40264b65.entry.js} +1 -1
  148. package/pn-market-web-components/{p-aea09ac6.entry.js → p-51df9292.entry.js} +1 -1
  149. package/pn-market-web-components/{p-a439468a.system.entry.js → p-57cc0679.system.entry.js} +1 -1
  150. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  151. package/pn-market-web-components/{p-3ba257c5.entry.js → p-5c41acb2.entry.js} +1 -1
  152. package/pn-market-web-components/p-5d587499.js +1 -0
  153. package/pn-market-web-components/p-5e78891a.entry.js +1 -0
  154. package/pn-market-web-components/{p-42da096a.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  155. package/pn-market-web-components/p-67887512.system.js +1 -0
  156. package/pn-market-web-components/{p-544f8fb9.entry.js → p-715d1ef7.entry.js} +1 -1
  157. package/pn-market-web-components/p-72195bd8.entry.js +1 -0
  158. package/pn-market-web-components/{p-4d5aa13e.entry.js → p-774b7a9f.entry.js} +1 -1
  159. package/pn-market-web-components/{p-802afa1f.system.entry.js → p-7b93d570.system.entry.js} +1 -1
  160. package/pn-market-web-components/{p-56ba3951.entry.js → p-7d75ea68.entry.js} +1 -1
  161. package/pn-market-web-components/p-7e494e9d.system.entry.js +1 -0
  162. package/pn-market-web-components/p-80dce81e.system.entry.js +1 -0
  163. package/pn-market-web-components/{p-acd9d186.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
  164. package/pn-market-web-components/{p-ac5a749b.entry.js → p-81d764a0.entry.js} +1 -1
  165. package/pn-market-web-components/p-825b8fb8.system.js +1 -0
  166. package/pn-market-web-components/{p-99e471b8.js → p-84699999.js} +1 -1
  167. package/pn-market-web-components/{p-ab699e09.entry.js → p-86b271f4.entry.js} +1 -1
  168. package/pn-market-web-components/p-86f06e26.js +1 -0
  169. package/pn-market-web-components/{p-38e0dc75.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
  170. package/pn-market-web-components/p-8fc7732d.system.entry.js +1 -0
  171. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  172. package/pn-market-web-components/p-9e8c5793.system.entry.js +1 -0
  173. package/pn-market-web-components/p-9edaf6b6.system.entry.js +1 -0
  174. package/pn-market-web-components/p-a5bc1695.system.js +1 -0
  175. package/pn-market-web-components/{p-b4f843da.system.js → p-a5f75560.system.js} +1 -1
  176. package/pn-market-web-components/{p-8897e421.entry.js → p-adc639c8.entry.js} +1 -1
  177. package/pn-market-web-components/{p-6fea1ae6.system.js → p-add7d76c.system.js} +1 -1
  178. package/pn-market-web-components/{p-9ae8e043.js → p-ae2bd55f.js} +1 -1
  179. package/pn-market-web-components/{p-2c361d9e.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
  180. package/pn-market-web-components/{p-3552ae09.entry.js → p-b4f0228c.entry.js} +1 -1
  181. package/pn-market-web-components/p-bb626ab4.js +1 -0
  182. package/pn-market-web-components/p-c0c52dc6.entry.js +1 -0
  183. package/pn-market-web-components/{p-8325d608.entry.js → p-c240b614.entry.js} +1 -1
  184. package/pn-market-web-components/p-c34db063.entry.js +1 -0
  185. package/pn-market-web-components/{p-da2fa398.system.entry.js → p-c418bb48.system.entry.js} +1 -1
  186. package/pn-market-web-components/{p-3f8b459a.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
  187. package/pn-market-web-components/{p-0b796318.system.entry.js → p-d7776336.system.entry.js} +1 -1
  188. package/pn-market-web-components/{p-7fca7510.entry.js → p-e056d2c6.entry.js} +1 -1
  189. package/pn-market-web-components/p-e474b831.entry.js +1 -0
  190. package/pn-market-web-components/p-e5fffc92.entry.js +1 -0
  191. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  192. package/pn-market-web-components/p-f4cb2104.system.entry.js +1 -0
  193. package/pn-market-web-components/{p-00d6033e.entry.js → p-f774e2cc.entry.js} +1 -1
  194. package/pn-market-web-components/{p-4f0f8e9f.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
  195. package/pn-market-web-components/{p-2b120338.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  196. package/pn-market-web-components/p-fc6a09e0.system.entry.js +1 -0
  197. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  198. package/pn-market-web-components/pn-market-web-components.js +1 -1
  199. package/types/components/input/pn-marketweb-input/pn-marketweb-input.d.ts +32 -0
  200. package/types/components/input/{pn-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
  201. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search-store.d.ts +11 -0
  202. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.d.ts +6 -0
  203. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +1 -0
  204. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +2 -0
  205. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +0 -2
  206. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +0 -5
  207. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +0 -1
  208. package/types/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.d.ts +1 -0
  209. package/types/components.d.ts +156 -65
  210. package/cjs/pn-filter-search.cjs.entry.js +0 -69
  211. package/esm/pn-filter-search.entry.js +0 -65
  212. package/esm-es5/pn-filter-search.entry.js +0 -1
  213. package/esm-es5/pn-find-price-store-ddd3f427.js +0 -1
  214. package/pn-market-web-components/p-15836764.js +0 -1
  215. package/pn-market-web-components/p-1ccd3831.entry.js +0 -1
  216. package/pn-market-web-components/p-208a0a7b.entry.js +0 -1
  217. package/pn-market-web-components/p-28316927.js +0 -1
  218. package/pn-market-web-components/p-39ecfda9.system.entry.js +0 -1
  219. package/pn-market-web-components/p-39ff2013.system.entry.js +0 -1
  220. package/pn-market-web-components/p-4c9b1ae9.system.js +0 -1
  221. package/pn-market-web-components/p-4f8537fb.system.js +0 -1
  222. package/pn-market-web-components/p-58623439.entry.js +0 -1
  223. package/pn-market-web-components/p-66fb0f57.entry.js +0 -1
  224. package/pn-market-web-components/p-6df0b06e.entry.js +0 -1
  225. package/pn-market-web-components/p-731efb7b.system.entry.js +0 -1
  226. package/pn-market-web-components/p-7a7f380b.system.js +0 -1
  227. package/pn-market-web-components/p-87a4810e.system.entry.js +0 -1
  228. package/pn-market-web-components/p-ad5b20ce.js +0 -1
  229. package/pn-market-web-components/p-b4a0e5fd.system.entry.js +0 -1
  230. package/pn-market-web-components/p-b4b6ab95.system.js +0 -1
  231. package/pn-market-web-components/p-cf516409.js +0 -1
  232. package/pn-market-web-components/p-cfa3be4a.entry.js +0 -1
  233. package/pn-market-web-components/p-dc48d8f8.system.entry.js +0 -1
  234. package/pn-market-web-components/p-e732c60a.system.entry.js +0 -1
  235. package/pn-market-web-components/p-fbdc9ea5.system.entry.js +0 -1
  236. package/pn-market-web-components/p-fdad9fb6.entry.js +0 -1
  237. package/pn-market-web-components/p-ff678bef.system.js +0 -1
@@ -0,0 +1,76 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e3e27c79.js');
6
+
7
+ const pnMarketwebInputCss = "pn--marketweb-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}pn-marketweb-input input{padding:0.75em;font-size:1em;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:0.8rem;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}pn-marketweb-input input::-webkit-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-moz-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-marketweb-input input:hover{border:0.1rem solid #00A0D6}pn-marketweb-input input:disabled{background:#F3F2F2;border:none}pn-marketweb-input>.input-container{position:relative}pn-marketweb-input>.input-container>button{position:absolute;right:1.2rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#005D92;padding:0.6rem;border-radius:0.8rem;outline:none;-webkit-transition:border 0.1s, background 0.2s, color 0.1s;transition:border 0.1s, background 0.2s, color 0.1s;border:0.1rem solid transparent}pn-marketweb-input>.input-container>button:focus{border:0.1rem solid #005D92}pn-marketweb-input>.input-container>button:hover{background:#E0F8FF}pn-marketweb-input>.input-container>button:active{background:#005D92;color:white}pn-marketweb-input>.input-container>svg{position:absolute;right:0.75em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:1.5em;width:1.5em;pointer-events:none}pn-marketweb-input>.input-container>svg polyline{stroke-linecap:round;-webkit-transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86)}pn-marketweb-input>.input-container>svg.pn-input-checkmark polyline{stroke:#005E41;stroke-dashoffset:23;stroke-dasharray:23}pn-marketweb-input .label-container{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-marketweb-input .label-container label{cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.label-container label.char-count{-ms-flex-negative:0;flex-shrink:0;padding-left:0.5em}pn-marketweb-input small{font-size:0.75em;font-size:max(.6em, 1.2rem);-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86), -webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);margin-top:0.5em;color:#5E554A}pn-input.error{color:#A70707}pn-input.error label{color:#A70707}pn-input.error small{color:#A70707}pn-input.error small>pn-icon{margin-right:0.25em}pn-input.error input{border:0.1rem solid #A70707}pn-input.error input:focus{border:0.1rem solid #A70707;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707}pn-input.error input:hover{border:0.1rem solid #F06365}pn-input.valid{color:#005E41}pn-input.valid .input-container>svg.pn-input-checkmark polyline{stroke-dashoffset:0}pn-input.valid label{color:#005E41}pn-input.valid input{border:0.1rem solid #005E41}pn-input.valid input:focus{border:0.1rem solid #005E41;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41}pn-input.valid input:hover{border:0.1rem solid #5EC584}pn-marketweb-input.password input{padding-right:4em}pn-marketweb-input.icon input{padding-right:2.3em}";
8
+
9
+ let PnMarketwebInput = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.disabled = false;
13
+ /** Error message; will take precedence over helpertext if both are provided (applies invalid styles automatically) */
14
+ this.error = '';
15
+ /** Error state without message (If you want to control the error messaging on your own) */
16
+ this.invalid = false;
17
+ /** Text message placed underneath the input field */
18
+ this.helpertext = '';
19
+ /** Text label placed above the input field */
20
+ this.label = '';
21
+ this.placeholder = '';
22
+ this.inputid = `${Math.random()}`;
23
+ this.name = '';
24
+ this.required = null;
25
+ this.type = 'text';
26
+ this.autocomplete = '';
27
+ this.valid = null;
28
+ this.value = '';
29
+ /** The maximum number of characters the user should be able to add, also adds a visible counter */
30
+ this.maxlength = '';
31
+ this.min = '';
32
+ this.max = '';
33
+ this.step = '';
34
+ this.pattern = '';
35
+ this.showText = false;
36
+ }
37
+ getTextMessage() {
38
+ if (this.error)
39
+ return this.error;
40
+ if (this.helpertext)
41
+ return this.helpertext;
42
+ return null;
43
+ }
44
+ toggleTextVisibility() {
45
+ this.showText = !this.showText;
46
+ }
47
+ getInputType() {
48
+ let types = ['text', 'password', 'url', 'tel', 'search', 'number', 'email', 'date', 'datetime-local', 'month', 'week', 'time'];
49
+ return (types.includes(this.type) && !this.showText) ? this.type : 'text';
50
+ }
51
+ setVal(e) {
52
+ var _a;
53
+ const target = (_a = e.composedPath) === null || _a === void 0 ? void 0 : _a.call(e)[0];
54
+ this.value = target.value;
55
+ }
56
+ getClassNames() {
57
+ let classNames = 'pn-input ';
58
+ if (this.error.length > 0 || this.invalid)
59
+ classNames += 'error ';
60
+ if (this.valid)
61
+ classNames += 'valid ';
62
+ if (this.type === 'password')
63
+ classNames += 'password ';
64
+ if (this.error || this.invalid || this.valid)
65
+ classNames += 'icon ';
66
+ return classNames;
67
+ }
68
+ render() {
69
+ return (index.h(index.Host, { class: this.getClassNames() }, (this.label || this.maxlength) &&
70
+ index.h("div", { class: "label-container" }, this.label && index.h("label", { htmlFor: this.inputid }, this.label), parseInt(this.maxlength) > 0 && index.h("label", { class: "char-count", htmlFor: this.inputid }, `${this.value.length}/${this.maxlength}`)), index.h("div", { class: "input-container" }, index.h("input", { type: this.getInputType(), value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onInput: (e) => this.setVal(e), maxlength: this.maxlength ? this.maxlength : null, min: (this.min ? this.min : null), max: (this.max ? this.max : null), step: (this.step ? this.step : null), pattern: (this.pattern ? this.pattern : null) }), index.h("svg", { class: "pn-input-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, index.h("polyline", { class: "checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" })), this.type === 'password' && !this.disabled && index.h("button", { onClick: () => this.toggleTextVisibility() }, "Show")), this.getTextMessage() &&
71
+ index.h("small", null, this.error && index.h("pn-icon", { symbol: "alert-exclamation-circle", small: true, color: "warning" }), this.getTextMessage())));
72
+ }
73
+ };
74
+ PnMarketwebInput.style = pnMarketwebInputCss;
75
+
76
+ exports.pn_marketweb_input = PnMarketwebInput;
@@ -0,0 +1,103 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e3e27c79.js');
6
+
7
+ const pnMarketwebSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host[list] :host>.input-container .button-container{display:none}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:#FFFFFF;border:none;color:#005D92;padding:0.3rem;margin:0;font-size:0.875em;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent;-webkit-tap-highlight-color:transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host>.input-container button:hover,:host>.input-container button:focus{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host .searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host .searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none input,:host .button-icon-inline input{padding-right:3.3em}:host .button-none pn-spinner,:host .button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host .button-none button.search,:host .button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.loading button,:host .button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-none.loading pn-spinner,:host .button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
8
+
9
+ let PnMarketwebSearch = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.search = index.createEvent(this, "search", 7);
13
+ this.update = index.createEvent(this, "update", 7);
14
+ this.disabled = false;
15
+ this.placeholder = null;
16
+ this.inputid = null;
17
+ this.name = null;
18
+ this.autocomplete = null;
19
+ this.list = null;
20
+ this.value = null;
21
+ /** Label for the button */
22
+ this.label = null;
23
+ /** Loading animation */
24
+ this.loading = false;
25
+ /** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
26
+ this.button = '';
27
+ /** Light instead of dark search button */
28
+ this.light = false;
29
+ this.suggestionObserver = null;
30
+ this.hasClonedInput = false;
31
+ this.listSuggestion = [];
32
+ }
33
+ inputHandler() {
34
+ this.update.emit(this.value);
35
+ }
36
+ emitSearch(e) {
37
+ if (e.type === 'click' ||
38
+ (e.type === 'keydown' && e.key === 'Enter')) {
39
+ // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
40
+ e.preventDefault();
41
+ this.search.emit(this.value);
42
+ }
43
+ }
44
+ setVal(e) {
45
+ this.value = e.target.value;
46
+ }
47
+ clearInput() {
48
+ this.value = '';
49
+ this.update.emit(this.value);
50
+ this.hostElement.querySelector('input').focus();
51
+ }
52
+ getClassNames() {
53
+ let classNames = '';
54
+ const buttonTypes = ['none', 'icon', 'icon-inline'];
55
+ if (this.value)
56
+ classNames += 'searching ';
57
+ if (this.loading)
58
+ classNames += 'loading ';
59
+ if (buttonTypes.includes(this.button))
60
+ classNames += `button-${this.button} `;
61
+ return classNames;
62
+ }
63
+ componentWillRender() {
64
+ this.cloneListContent();
65
+ this.autocompleteEventBinding();
66
+ }
67
+ onSuggestionUpdate() {
68
+ this.cloneListContent();
69
+ }
70
+ autocompleteEventBinding() {
71
+ if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
72
+ return;
73
+ }
74
+ const targetNode = document.getElementById(this.list);
75
+ this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
76
+ this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
77
+ }
78
+ cloneListContent() {
79
+ if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
80
+ return;
81
+ }
82
+ const options = [...document.getElementById(this.list).querySelectorAll('option')];
83
+ this.listSuggestion = options.map((item) => {
84
+ if (item.hasAttribute('value')) {
85
+ return item.getAttribute('value');
86
+ }
87
+ return item.innerText;
88
+ });
89
+ }
90
+ render() {
91
+ return (index.h(index.Host, null, index.h("div", { class: `input-container ${this.getClassNames()}`, "data-haslist": (this.list !== null) + '' }, index.h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, list: this.list, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), index.h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
92
+ index.h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, index.h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
93
+ index.h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, index.h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && index.h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
94
+ index.h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label), (this.list) &&
95
+ index.h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
96
+ return (index.h("option", null, item));
97
+ }))));
98
+ }
99
+ get hostElement() { return index.getElement(this); }
100
+ };
101
+ PnMarketwebSearch.style = pnMarketwebSearchCss;
102
+
103
+ exports.pn_marketweb_search = PnMarketwebSearch;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
  const FetchHelper = require('./FetchHelper-33d3c535.js');
7
7
 
8
8
  const translations = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
  const FetchHelper = require('./FetchHelper-33d3c535.js');
7
7
  const MarketWebLoginManager = require('./MarketWebLoginManager-3c2f4423.js');
8
8
 
@@ -82,6 +82,8 @@ let PnMarketwebSiteheader = class {
82
82
  this.hideSearch = false;
83
83
  /** Hides the login if set to true*/
84
84
  this.hideLogin = false;
85
+ /** Autocomplete endpoint */
86
+ this.AutocompleteEndpoint = "";
85
87
  /** Forward session to backend */
86
88
  this.sessionForward = false;
87
89
  /** If the component should use cached requests */
@@ -94,7 +96,7 @@ let PnMarketwebSiteheader = class {
94
96
  // Menu state
95
97
  this.menuItems = [];
96
98
  // Search
97
- this.search = {};
99
+ this.search = { AutocompleteEndpoint: this.AutocompleteEndpoint };
98
100
  // Site selector
99
101
  this.siteSelector = null;
100
102
  // Language Selector
@@ -208,7 +210,7 @@ let PnMarketwebSiteheader = class {
208
210
  });
209
211
  }
210
212
  // Set search
211
- this.search = data.search;
213
+ this.search = Object.assign(Object.assign({}, data.search), { AutocompleteEndpoint: this.AutocompleteEndpoint });
212
214
  // Set site selector
213
215
  this.siteSelector = data.siteSelectorViewModel;
214
216
  // Set language selector
@@ -312,7 +314,7 @@ let PnMarketwebSiteheader = class {
312
314
  })), index.h("div", { slot: "footer", class: "siteheader-menu-footer" }, (this.gotData && this.loginDialog && !this.hideLogin) && (index.h("pn-marketweb-siteheader-login", { emitEvents: false, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
313
315
  index.h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => index.h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), !this.hideSiteSelector &&
314
316
  index.h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
315
- index.h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => index.h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), index.h("div", { slot: "top", class: "siteheader-menu-top" }, index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
317
+ index.h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => index.h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), index.h("div", { slot: "top", class: "siteheader-menu-top" }, index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), index.h("pn-marketweb-siteheader-search", { primary: true, search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
316
318
  }
317
319
  get hostElement() { return index.getElement(this); }
318
320
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const translations = {
8
8
  'sv': {
@@ -42,16 +42,24 @@ let PnPexPricefinder = class {
42
42
  this.fromzip = null;
43
43
  this.tozip = null;
44
44
  this.weight = 100;
45
- this.when = (new Date()).toISOString().split('T')[0];
45
+ this.when = '';
46
46
  this.response = null;
47
47
  }
48
48
  componentWillLoad() {
49
49
  this.init();
50
50
  }
51
51
  async init() {
52
+ this.setInitialTime();
52
53
  this.checkParameters();
53
54
  this.setLanguage();
54
55
  }
56
+ setInitialTime() {
57
+ const initialTime = (new Date());
58
+ initialTime.setHours(initialTime.getHours() + 1);
59
+ initialTime.setMinutes(0);
60
+ const splitTime = initialTime.toLocaleString('sv', { timeZoneName: 'short' }).split(' ');
61
+ this.when = `${splitTime[0]}T${splitTime[1].substring(0, 5)}`;
62
+ }
55
63
  checkParameters() {
56
64
  const params = new URLSearchParams(window.location.href);
57
65
  if (!params) {
@@ -112,7 +120,7 @@ let PnPexPricefinder = class {
112
120
  console.error('onFetchError(error', error);
113
121
  }
114
122
  render() {
115
- return (index.h(index.Host, null, index.h("div", { class: "pex-pricefinder-top" }, index.h("pn-illustration", { illustration: "PEX-truck" }), index.h("h2", null, this.i18n.heading)), index.h("form", { method: "get", action: "", class: "pex-pricefinder-form", onSubmit: this.onSubmit.bind(this) }, index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelFrom, inputid: "fromzip", name: "fromzip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.fromzip }), index.h("pn-input", { type: "number", label: this.i18n.labelTo, inputid: "tozip", name: "tozip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.tozip }))), index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }), index.h("div", { class: "datepicker" }, index.h("label", { htmlFor: "when" }, this.i18n.labelWhen), index.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 })))), index.h("fieldset", null, index.h("div", null, index.h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))), this.response ? (index.h("div", { class: "pex-pricefinder-response" }, index.h("strong", null, this.response.data.value, " ", this.currency))) : null));
123
+ return (index.h(index.Host, null, index.h("div", { class: "pex-pricefinder-top" }, index.h("pn-illustration", { illustration: "PEX-truck" }), index.h("h2", null, this.i18n.heading)), index.h("form", { method: "get", action: "", class: "pex-pricefinder-form", onSubmit: this.onSubmit.bind(this) }, index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelFrom, inputid: "fromzip", name: "fromzip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.fromzip }), index.h("pn-input", { type: "number", label: this.i18n.labelTo, inputid: "tozip", name: "tozip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.tozip }))), index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }), index.h("div", { class: "datepicker" }, index.h("label", { htmlFor: "when" }, this.i18n.labelWhen), index.h("pn-marketweb-input", { inputid: "when", name: "when", type: "datetime-local", min: (new Date()).toISOString().split('T')[0], value: this.when })))), index.h("fieldset", null, index.h("div", null, index.h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))), this.response ? (index.h("div", { class: "pex-pricefinder-response" }, index.h("strong", null, this.response.data.value, " ", this.currency))) : null));
116
124
  }
117
125
  get hostElement() { return index.getElement(this); }
118
126
  };
@@ -2,31 +2,31 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
- const pnProductCardCss = "pn-product-card{margin-bottom:1em;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;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.5em}pn-product-card [slot=title]>[slot=Biligast]{color:#005E41;background:#DCF6E7;border-radius:0.37em;width:6.3em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Biligast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92;border-radius:0.37em;width:7em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Snabbast] pn-icon{vertical-align:middle;margin-left:0.6em}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;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card [slot=cardprice]{display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}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}";
7
+ const pnProductCardCss = "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 .cardcontent .description :first-child{max-width:calc(100% - 10rem)}@media screen and (min-width: 48em){pn-product-card .cardcontent .description :first-child{max-width:none}}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}";
8
8
 
9
9
  let PnProductCard = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  }
13
13
  render() {
14
- return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "cardcontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "title" }), index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" }), index.h("slot", { name: "additionalUSP" })), index.h("div", null, index.h("slot", { name: "cardprice" })))));
14
+ return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "cardcontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "title" }), index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" }), index.h("slot", { name: "additionalUSP" })), index.h("div", { class: "cardprice" }, index.h("slot", { name: "cardprice" })))));
15
15
  }
16
16
  };
17
17
  PnProductCard.style = pnProductCardCss;
18
18
 
19
- const pnProductCardInfoCss = "pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent #sp{width: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}";
19
+ const pnProductCardInfoCss = "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}}[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}";
20
20
 
21
21
  let PnProductCardInfo = class {
22
22
  constructor(hostRef) {
23
23
  index.registerInstance(this, hostRef);
24
24
  }
25
25
  render() {
26
- return (this.label) ? (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, (this.text) ? (index.h("pre", { slot: "formatPre" }, this.text)) : null))) : (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, index.h("div", null, index.h("strong", null, "Paket:"), this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
26
+ return (this.label) ? (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, (this.text) ? (index.h("pre", { slot: "formatPre" }, this.text)) : null))) : (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, index.h("div", { class: "cardinfocontent-item" }, index.h("strong", null, "Paket:"), this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
27
27
  index.h("p", null, index.h("strong", null, item.split(":")[0] + ": "), " ", item.split(":")[1]) :
28
- index.h("p", null, item)))), index.h("div", { id: "sp" }), (this.rulle) ?
29
- (index.h("div", null, index.h("strong", null, "Rulle:"), this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
28
+ index.h("p", null, item)))), (this.rulle) ?
29
+ (index.h("div", { class: "cardinfocontent-item" }, index.h("strong", null, "Rulle:"), this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
30
30
  index.h("p", null, index.h("strong", null, item.split(":")[0] + ": "), " ", item.split(":")[1]) :
31
31
  index.h("p", null, item))))) : null)));
32
32
  }
@@ -34,7 +34,7 @@ let PnProductCardInfo = class {
34
34
  index.h("pn-icon", { symbol: "align-center", small: "false", color: "black" });
35
35
  PnProductCardInfo.style = pnProductCardInfoCss;
36
36
 
37
- const pnProductCardPriceCss = "pn-product-card-price{margin-top:1em;white-space:nowrap;text-align:center}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 pn-button{width:12.8em;margin-bottom:1em;margin-top:0.5em;font-size:1.25}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.5em}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";
37
+ const pnProductCardPriceCss = "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 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 h3{-ms-flex-order:1;order:1}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}";
38
38
 
39
39
  let PnProductCardPrice = class {
40
40
  constructor(hostRef) {
@@ -44,7 +44,7 @@ let PnProductCardPrice = class {
44
44
  if (!this.amount) {
45
45
  return;
46
46
  }
47
- return (this.url) ? (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, " " + this.currency)) : null), (this.note) ? (index.h("p", null, this.note)) : null, (this.label) ? (index.h("pn-button", { small: "true", icon: "arrow-right", appearance: "secondary", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, this.currency)) : null)));
47
+ return (this.url) ? (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, " " + this.currency)) : null), (this.note) ? (index.h("p", null, this.note)) : null, (this.label) ? (index.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)) : (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, this.currency)) : null)));
48
48
  }
49
49
  };
50
50
  PnProductCardPrice.style = pnProductCardPriceCss;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
6
- const pnProductPricelistStore = require('./pn-product-pricelist-store-d101b50e.js');
7
- require('./index-9027dc96.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnProductPricelistStore = require('./pn-product-pricelist-store-86310b5a.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const pnProductPricelistResultCss = "";
10
10
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-9027dc96.js');
3
+ const index = require('./index-28bbc937.js');
4
4
 
5
5
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
6
6
  const { state, onChange } = index.createStore({
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
  const convert = require('./convert-362ef5e6.js');
7
- const pnProductPricelistStore = require('./pn-product-pricelist-store-d101b50e.js');
8
- require('./index-9027dc96.js');
7
+ const pnProductPricelistStore = require('./pn-product-pricelist-store-86310b5a.js');
8
+ require('./index-28bbc937.js');
9
9
 
10
10
  const translations = {
11
11
  'sv': {
@@ -96,7 +96,7 @@ const weights = {
96
96
  ]
97
97
  };
98
98
 
99
- const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
99
+ const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
100
100
 
101
101
  let PnFindProductPricelist = class {
102
102
  constructor(hostRef) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const pnProductTileCss = "pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-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;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .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-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const pnProfileSelectorOptionCss = "pn-profile-selector-option{display:-ms-flexbox;display:flex;width:100%;border-bottom:1px solid #D3CECB;padding:1.2rem 0}pn-profile-selector-option:first-of-type{margin-top:2.4rem}pn-profile-selector-option:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-selector-option:last-of-type .profileselectoroption{padding-bottom:0}.profileselectoroption{display:-ms-flexbox;display:flex;width:100%;padding:1.2rem 0;text-decoration:none}.profileselectoroption pn-icon{-ms-flex-item-align:center;align-self:center;position:relative;-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform 0.25s linear;transition:-webkit-transform 0.25s linear;transition:transform 0.25s linear;transition:transform 0.25s linear, -webkit-transform 0.25s linear}.profileselectoroption:hover .profileselectoroption-name,.profileselectoroption:focus .profileselectoroption-name,.profileselectoroption:active .profileselectoroption-name{text-decoration:underline}.profileselectoroption:hover pn-icon,.profileselectoroption:focus pn-icon,.profileselectoroption:active pn-icon{-webkit-transform:none;transform:none;-webkit-transition-timing-function:ease;transition-timing-function:ease}.profileselectoroption-text{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselectoroption-name{font-size:1em;color:#005D92;font-weight:700}.profileselectoroption-identifier{color:#5E554A;font-size:0.75em}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const translations = {
8
8
  'sv': {
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
6
- const pnSidenavStore = require('./pn-sidenav-store-eed02285.js');
7
- require('./index-9027dc96.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnSidenavStore = require('./pn-sidenav-store-d9bd9e00.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const pnSidenavLevelCss = "pn-sidenav-level{display:block;-ms-flex-preferred-size:100%;flex-basis:100%}pn-sidenav-level[data-level=\"2\"]{padding-left:2.5em;overflow:hidden;-webkit-transition:max-height ease 0.2s;transition:max-height ease 0.2s;max-height:40em}pn-sidenav-level[data-level=\"2\"][aria-hidden=true]{max-height:0}";
10
10
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
6
- const pnSidenavStore = require('./pn-sidenav-store-eed02285.js');
7
- require('./index-9027dc96.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnSidenavStore = require('./pn-sidenav-store-d9bd9e00.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const pnSidenavLinkCss = "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}";
10
10
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-9027dc96.js');
3
+ const index = require('./index-28bbc937.js');
4
4
 
5
5
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
6
6
  const { state, onChange } = index.createStore({
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
6
- const pnSidenavStore = require('./pn-sidenav-store-eed02285.js');
7
- require('./index-9027dc96.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnSidenavStore = require('./pn-sidenav-store-d9bd9e00.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const translations = {
10
10
  'sv': {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0a6b1eef.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const pnSiteFooterCss = "pn-site-footer{display:block;line-height:1.5}pn-site-footer a{color:#005D92}pn-site-footer a:hover{color:#0D234B;text-decoration:underline}pn-site-footer h3{font-size:2.4rem;margin-bottom:0.5rem;line-height:1.2}pn-site-footer p{font-size:1.6rem}pn-site-footer ul.social-media{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row}pn-site-footer ul.social-media li{margin-right:1.6rem}pn-site-footer>svg{display:block}pn-site-footer>div{background:#F3F2F2}.pn-sitefooter-top{display:-ms-flexbox;display:flex}.pn-sitefooter-cols{-ms-flex-item-align:center;align-self:center;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;margin:0 auto;max-width:90em}.pn-sitefooter-bottom [slot=bottom]{max-width:90em;margin:0 auto;padding:1.6rem 0;display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB}.pn-sitefooter-bottom [slot=bottom] span,.pn-sitefooter-bottom [slot=bottom] a{line-height:2;margin:0 1.6rem;text-decoration:none}.pn-sitefooter-bottom [slot=bottom] li{line-height:2em;margin:0 1.6rem}.pn-sitefooter-logo{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;padding:3rem}.pn-sitefooter-logo svg{display:block;width:13.3rem;height:2.6rem}";
8
8
 
@@ -4,7 +4,8 @@
4
4
  "./components/input/pn-bonus-progressbar/pn-bonus-progressbar.js",
5
5
  "./components/input/pn-choice-button/pn-choice-button.js",
6
6
  "./components/input/pn-filter-checkbox/pn-filter-checkbox.js",
7
- "./components/input/pn-filter-search/pn-filter-search.js",
7
+ "./components/input/pn-marketweb-input/pn-marketweb-input.js",
8
+ "./components/input/pn-marketweb-search/pn-marketweb-search.js",
8
9
  "./components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js",
9
10
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js",
10
11
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js",
@@ -0,0 +1,51 @@
1
+ import readme from "./readme.md";
2
+
3
+ export default {
4
+ title: "input/Input",
5
+ parameters: {
6
+ notes: readme,
7
+ layout: 'centered'
8
+ },
9
+ };
10
+
11
+ const Template = ({ ...args }) => {
12
+
13
+ return `
14
+ <pn-marketweb-input
15
+ type="${args.type}"
16
+ value="${args.value}"
17
+ ></pn-marketweb-input>
18
+ `;
19
+ };
20
+ export const Primary = Template.bind({});
21
+ Primary.args = {
22
+ type: 'text',
23
+ };
24
+
25
+ export const DatetimeLocal = Template.bind({});
26
+ DatetimeLocal.args = {
27
+ type: 'datetime-local',
28
+ value: `${(new Date()).toISOString().split('T')[0]}T${(new Date()).toISOString().split('T')[1].substring(0, 5)}`
29
+ };
30
+
31
+ export const Time = Template.bind({});
32
+ Time.args = {
33
+ type: 'time',
34
+ value: (new Date()).toISOString().split('T')[1].substring(0, 5)
35
+ };
36
+
37
+ export const Week = Template.bind({});
38
+ Week.args = {
39
+ type: 'week',
40
+ };
41
+
42
+ export const Month = Template.bind({});
43
+ Month.args = {
44
+ type: 'month',
45
+ };
46
+
47
+ export const DateInput = Template.bind({});
48
+ DateInput.args = {
49
+ type: 'date',
50
+ value: (new Date()).toISOString().split('T')[0]
51
+ };