@postnord/pn-marketweb-components 1.0.50 → 2.0.0

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 (184) 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 +3 -3
  9. package/cjs/{pn-find-price-store-d1977b2e.js → pn-find-price-store-c6cb51c1.js} +1 -1
  10. package/cjs/pn-find-price.cjs.entry.js +3 -3
  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-search.cjs.entry.js +103 -0
  19. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  20. package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
  21. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  22. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  23. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  24. package/cjs/{pn-product-pricelist-store-c88813f7.js → pn-product-pricelist-store-86310b5a.js} +1 -1
  25. package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
  26. package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
  27. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  28. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  29. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  30. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  31. package/cjs/{pn-sidenav-store-a753d3d7.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  32. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  33. package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
  34. package/collection/collection-manifest.json +1 -1
  35. package/collection/components/input/{pn-filter-search/search-field.stories.js → pn-marketweb-search/marketweb-search-field.stories.js} +15 -3
  36. package/collection/components/input/{pn-filter-search/pn-filter-search.css → pn-marketweb-search/pn-marketweb-search.css} +4 -2
  37. package/collection/components/input/{pn-filter-search/pn-filter-search.js → pn-marketweb-search/pn-marketweb-search.js} +65 -7
  38. package/custom-elements/index.d.ts +6 -6
  39. package/custom-elements/index.js +102 -68
  40. package/esm/{index-02847864.js → index-5397620b.js} +4 -1
  41. package/esm/{index-1978107a.js → index-7b21ecff.js} +1 -1
  42. package/esm/loader.js +2 -2
  43. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  44. package/esm/pn-bonus-progressbar.entry.js +1 -1
  45. package/esm/pn-choice-button.entry.js +1 -1
  46. package/esm/pn-filter-checkbox.entry.js +1 -1
  47. package/esm/pn-find-price-result.entry.js +3 -3
  48. package/esm/{pn-find-price-store-b2f18af4.js → pn-find-price-store-c857dbc4.js} +1 -1
  49. package/esm/pn-find-price.entry.js +3 -3
  50. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  51. package/esm/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  52. package/esm/pn-find-service-and-price.entry.js +3 -3
  53. package/esm/pn-language-selector_9.entry.js +3 -3
  54. package/esm/pn-mainnav-link.entry.js +3 -3
  55. package/esm/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  56. package/esm/pn-market-web-components.js +2 -2
  57. package/esm/pn-marketweb-search.entry.js +99 -0
  58. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  59. package/esm/pn-marketweb-siteheader.entry.js +1 -1
  60. package/esm/pn-pex-pricefinder.entry.js +1 -1
  61. package/esm/pn-product-card_3.entry.js +1 -1
  62. package/esm/pn-product-pricelist-result.entry.js +3 -3
  63. package/esm/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  64. package/esm/pn-product-pricelist.entry.js +3 -3
  65. package/esm/pn-product-tile_3.entry.js +1 -1
  66. package/esm/pn-profile-selector-option.entry.js +1 -1
  67. package/esm/pn-profile-selector.entry.js +1 -1
  68. package/esm/pn-sidenav-level.entry.js +3 -3
  69. package/esm/pn-sidenav-link.entry.js +3 -3
  70. package/esm/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  71. package/esm/pn-sidenav.entry.js +3 -3
  72. package/esm/pn-site-footer_2.entry.js +1 -1
  73. package/esm-es5/{index-02847864.js → index-5397620b.js} +1 -1
  74. package/esm-es5/{index-1978107a.js → index-7b21ecff.js} +1 -1
  75. package/esm-es5/loader.js +1 -1
  76. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  77. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  78. package/esm-es5/pn-choice-button.entry.js +1 -1
  79. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  80. package/esm-es5/pn-find-price-result.entry.js +1 -1
  81. package/esm-es5/{pn-find-price-store-b2f18af4.js → pn-find-price-store-c857dbc4.js} +1 -1
  82. package/esm-es5/pn-find-price.entry.js +1 -1
  83. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  84. package/esm-es5/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  85. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  86. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  87. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  88. package/esm-es5/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  89. package/esm-es5/pn-market-web-components.js +1 -1
  90. package/esm-es5/pn-marketweb-search.entry.js +1 -0
  91. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  92. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  93. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  94. package/esm-es5/pn-product-card_3.entry.js +1 -1
  95. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  96. package/esm-es5/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  97. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  98. package/esm-es5/pn-product-tile_3.entry.js +1 -1
  99. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  100. package/esm-es5/pn-profile-selector.entry.js +1 -1
  101. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  102. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  103. package/esm-es5/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  104. package/esm-es5/pn-sidenav.entry.js +1 -1
  105. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  106. package/package.json +1 -1
  107. package/pn-market-web-components/{p-0f17a915.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
  108. package/pn-market-web-components/{p-3163e45b.system.js → p-02ea55ad.system.js} +1 -1
  109. package/pn-market-web-components/{p-2f899d96.js → p-0cacf9fb.js} +1 -1
  110. package/pn-market-web-components/{p-ebc83f89.entry.js → p-0cff4955.entry.js} +1 -1
  111. package/pn-market-web-components/{p-1663fe37.entry.js → p-0fe71e75.entry.js} +1 -1
  112. package/pn-market-web-components/{p-b99c5d79.entry.js → p-10b95894.entry.js} +1 -1
  113. package/pn-market-web-components/{p-0e4a8305.system.entry.js → p-13eb4c66.system.entry.js} +1 -1
  114. package/pn-market-web-components/{p-ad2c41d8.entry.js → p-15112837.entry.js} +1 -1
  115. package/pn-market-web-components/{p-89907168.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  116. package/pn-market-web-components/p-2239befa.system.entry.js +1 -0
  117. package/pn-market-web-components/{p-75654937.entry.js → p-227e1d46.entry.js} +1 -1
  118. package/pn-market-web-components/{p-3e3fed19.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  119. package/pn-market-web-components/{p-0a95c2b9.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
  120. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  121. package/pn-market-web-components/{p-b7b78fb0.system.entry.js → p-38c4be82.system.entry.js} +1 -1
  122. package/pn-market-web-components/{p-b6769599.entry.js → p-3ddbc14c.entry.js} +1 -1
  123. package/pn-market-web-components/{p-8bb99125.system.entry.js → p-401b57b1.system.entry.js} +1 -1
  124. package/pn-market-web-components/{p-f2ca2961.entry.js → p-40264b65.entry.js} +1 -1
  125. package/pn-market-web-components/{p-c932f5f5.entry.js → p-51df9292.entry.js} +1 -1
  126. package/pn-market-web-components/{p-c089e9b5.system.entry.js → p-57cc0679.system.entry.js} +1 -1
  127. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  128. package/pn-market-web-components/{p-b0a2b362.entry.js → p-5c41acb2.entry.js} +1 -1
  129. package/pn-market-web-components/{p-8a3c3674.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  130. package/pn-market-web-components/p-67887512.system.js +1 -0
  131. package/pn-market-web-components/p-6b505c69.entry.js +1 -0
  132. package/pn-market-web-components/{p-d944756c.system.js → p-6fab218d.system.js} +1 -1
  133. package/pn-market-web-components/{p-465baa55.entry.js → p-715d1ef7.entry.js} +1 -1
  134. package/pn-market-web-components/{p-bb69b9ff.entry.js → p-774b7a9f.entry.js} +1 -1
  135. package/pn-market-web-components/{p-b14d20bd.system.entry.js → p-7b93d570.system.entry.js} +1 -1
  136. package/pn-market-web-components/{p-bc4da3dd.entry.js → p-7d75ea68.entry.js} +1 -1
  137. package/pn-market-web-components/{p-ec78fe82.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
  138. package/pn-market-web-components/{p-27168bcc.entry.js → p-81d764a0.entry.js} +1 -1
  139. package/pn-market-web-components/{p-aa625cb0.system.js → p-825b8fb8.system.js} +1 -1
  140. package/pn-market-web-components/{p-271f42e8.js → p-84699999.js} +1 -1
  141. package/pn-market-web-components/{p-5629de79.entry.js → p-86b271f4.entry.js} +1 -1
  142. package/pn-market-web-components/p-86f06e26.js +1 -0
  143. package/pn-market-web-components/{p-547a9203.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
  144. package/pn-market-web-components/{p-90c11ea0.system.entry.js → p-89ef9dad.system.entry.js} +1 -1
  145. package/pn-market-web-components/p-a5bc1695.system.js +1 -0
  146. package/pn-market-web-components/{p-b5fbf807.system.js → p-a5f75560.system.js} +1 -1
  147. package/pn-market-web-components/{p-fed64b11.entry.js → p-adc639c8.entry.js} +1 -1
  148. package/pn-market-web-components/{p-aa59101e.system.js → p-add7d76c.system.js} +1 -1
  149. package/pn-market-web-components/{p-99d6a75c.js → p-ae2bd55f.js} +1 -1
  150. package/pn-market-web-components/{p-c74ee774.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
  151. package/pn-market-web-components/{p-d71027bc.entry.js → p-b4f0228c.entry.js} +1 -1
  152. package/pn-market-web-components/{p-5ff39f75.system.entry.js → p-b82f45b9.system.entry.js} +1 -1
  153. package/pn-market-web-components/p-bb626ab4.js +1 -0
  154. package/pn-market-web-components/{p-5cb8ae86.entry.js → p-c0c52dc6.entry.js} +1 -1
  155. package/pn-market-web-components/{p-415b6c13.entry.js → p-c240b614.entry.js} +1 -1
  156. package/pn-market-web-components/{p-3bef52c8.system.entry.js → p-c418bb48.system.entry.js} +1 -1
  157. package/pn-market-web-components/{p-6926ecdf.entry.js → p-c7c3361a.entry.js} +1 -1
  158. package/pn-market-web-components/{p-07733b06.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
  159. package/pn-market-web-components/{p-15a18941.system.entry.js → p-d7776336.system.entry.js} +1 -1
  160. package/pn-market-web-components/{p-f2307b30.entry.js → p-e056d2c6.entry.js} +1 -1
  161. package/pn-market-web-components/{p-0c1d92ed.entry.js → p-e474b831.entry.js} +1 -1
  162. package/pn-market-web-components/{p-6855204a.entry.js → p-f0a468ef.entry.js} +1 -1
  163. package/pn-market-web-components/{p-9ae0afa8.js → p-f20380fb.js} +1 -1
  164. package/pn-market-web-components/{p-df87670c.system.entry.js → p-f4cb2104.system.entry.js} +1 -1
  165. package/pn-market-web-components/{p-d30c5783.system.entry.js → p-f5f1287a.system.entry.js} +1 -1
  166. package/pn-market-web-components/{p-7a14e808.entry.js → p-f774e2cc.entry.js} +1 -1
  167. package/pn-market-web-components/{p-cf058789.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
  168. package/pn-market-web-components/{p-8f309dad.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  169. package/pn-market-web-components/{p-1662a0e9.system.entry.js → p-fc41fcf6.system.entry.js} +1 -1
  170. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  171. package/pn-market-web-components/pn-market-web-components.js +1 -1
  172. package/types/components/input/{pn-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
  173. package/types/components.d.ts +67 -65
  174. package/cjs/pn-filter-search.cjs.entry.js +0 -69
  175. package/esm/pn-filter-search.entry.js +0 -65
  176. package/esm-es5/pn-filter-search.entry.js +0 -1
  177. package/pn-market-web-components/p-0065e309.system.js +0 -1
  178. package/pn-market-web-components/p-9d2ff751.system.entry.js +0 -1
  179. package/pn-market-web-components/p-a110366f.entry.js +0 -1
  180. package/pn-market-web-components/p-af1ac826.js +0 -1
  181. package/pn-market-web-components/p-b429c99d.system.js +0 -1
  182. package/pn-market-web-components/p-dde0c959.js +0 -1
  183. package/pn-market-web-components/p-e1a8308e.system.js +0 -1
  184. package/pn-market-web-components/p-e422ad85.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.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,7 @@
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-search/pn-marketweb-search.js",
8
8
  "./components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js",
9
9
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js",
10
10
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js",
@@ -1,7 +1,7 @@
1
1
  import readme from "./readme.md";
2
2
 
3
3
  export default {
4
- title: "input/Filter search field",
4
+ title: "input/Market web search field",
5
5
  parameters: {
6
6
  notes: readme,
7
7
  layout: 'centered'
@@ -10,7 +10,7 @@ export default {
10
10
 
11
11
  const Template = ({ ...args }) => {
12
12
  return `
13
- <pn-filter-search
13
+ <pn-marketweb-search
14
14
  label="${args.label}"
15
15
  name="${args.name}"
16
16
  inputid="${args.inputid}"
@@ -20,7 +20,19 @@ const Template = ({ ...args }) => {
20
20
  disabled=${args.disabled}
21
21
  loading=${args.loading}
22
22
  light="${args.light}"
23
- ></pn-filter-search>
23
+ list="listexample"
24
+ ></pn-marketweb-search>
25
+ <datalist id="listexample">
26
+ <option>Autocomplete example</option>
27
+ <option>More autocomplete examples</option>
28
+ </datalist>
29
+ <script>
30
+ // window.setTimeout(function() {
31
+ // const newOpt = document.createElement("option");
32
+ // newOpt.innerHTML = "new item";
33
+ // document.getElementById("listexample").appendChild(newOpt);
34
+ // }, 500);
35
+ </script>
24
36
  `;
25
37
  };
26
38
  export const Primary = Template.bind({});
@@ -75,19 +75,21 @@
75
75
  border: none;
76
76
  color: #005D92;
77
77
  padding: 0.3rem;
78
+ margin: 0;
79
+ font-size: 0.875em;
78
80
  border-radius: 50%;
79
81
  outline: none;
80
82
  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;
81
83
  border: 0.1rem solid transparent;
84
+ -webkit-tap-highlight-color: transparent;
82
85
  }
83
86
  :host > .input-container button.clear, :host > .input-container button.search {
84
87
  cursor: pointer;
85
88
  }
86
89
  :host > .input-container button:focus {
87
90
  box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;
88
- background: #8EDDF9;
89
91
  }
90
- :host > .input-container button:hover {
92
+ :host > .input-container button:hover, :host > .input-container button:focus {
91
93
  background: #E0F8FF;
92
94
  }
93
95
  :host > .input-container button:active {
@@ -1,11 +1,12 @@
1
- import { Component, Prop, h, Host, Event, Element, Listen } from "@stencil/core";
2
- export class PnFilterSearch {
1
+ import { Component, Prop, h, Host, Event, Element, Listen, State } from "@stencil/core";
2
+ export class PnMarketwebSearch {
3
3
  constructor() {
4
4
  this.disabled = false;
5
5
  this.placeholder = null;
6
6
  this.inputid = null;
7
7
  this.name = null;
8
8
  this.autocomplete = null;
9
+ this.list = null;
9
10
  this.value = null;
10
11
  /** Label for the button */
11
12
  this.label = null;
@@ -15,6 +16,9 @@ export class PnFilterSearch {
15
16
  this.button = '';
16
17
  /** Light instead of dark search button */
17
18
  this.light = false;
19
+ this.suggestionObserver = null;
20
+ this.hasClonedInput = false;
21
+ this.listSuggestion = [];
18
22
  }
19
23
  inputHandler() {
20
24
  this.update.emit(this.value);
@@ -46,10 +50,37 @@ export class PnFilterSearch {
46
50
  classNames += `button-${this.button} `;
47
51
  return classNames;
48
52
  }
53
+ componentWillRender() {
54
+ this.cloneListContent();
55
+ this.autocompleteEventBinding();
56
+ }
57
+ onSuggestionUpdate() {
58
+ this.cloneListContent();
59
+ }
60
+ autocompleteEventBinding() {
61
+ if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
62
+ return;
63
+ }
64
+ const targetNode = document.getElementById(this.list);
65
+ this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
66
+ this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
67
+ }
68
+ cloneListContent() {
69
+ if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
70
+ return;
71
+ }
72
+ const options = [...document.getElementById(this.list).querySelectorAll('option')];
73
+ this.listSuggestion = options.map((item) => {
74
+ if (item.hasAttribute('value')) {
75
+ return item.getAttribute('value');
76
+ }
77
+ return item.innerText;
78
+ });
79
+ }
49
80
  render() {
50
81
  return (h(Host, { class: this.getClassNames() },
51
82
  h("div", { class: "input-container" },
52
- h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }),
83
+ 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) }),
53
84
  h("div", { class: "button-container" },
54
85
  (this.button === 'none' || this.button === 'icon-inline') &&
55
86
  h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" },
@@ -59,15 +90,19 @@ export class PnFilterSearch {
59
90
  h("pn-icon", { symbol: "close-small", color: "blue700" })),
60
91
  this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))),
61
92
  (this.button !== 'none' && this.button !== 'icon-inline') &&
62
- 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)));
93
+ 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),
94
+ (this.list) &&
95
+ h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
96
+ return (h("option", null, item));
97
+ }))));
63
98
  }
64
- static get is() { return "pn-filter-search"; }
99
+ static get is() { return "pn-marketweb-search"; }
65
100
  static get encapsulation() { return "shadow"; }
66
101
  static get originalStyleUrls() { return {
67
- "$": ["pn-filter-search.scss"]
102
+ "$": ["pn-marketweb-search.scss"]
68
103
  }; }
69
104
  static get styleUrls() { return {
70
- "$": ["pn-filter-search.css"]
105
+ "$": ["pn-marketweb-search.css"]
71
106
  }; }
72
107
  static get properties() { return {
73
108
  "disabled": {
@@ -160,6 +195,24 @@ export class PnFilterSearch {
160
195
  "reflect": false,
161
196
  "defaultValue": "null"
162
197
  },
198
+ "list": {
199
+ "type": "string",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "string",
203
+ "resolved": "string",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "list",
213
+ "reflect": false,
214
+ "defaultValue": "null"
215
+ },
163
216
  "value": {
164
217
  "type": "string",
165
218
  "mutable": false,
@@ -251,6 +304,11 @@ export class PnFilterSearch {
251
304
  "defaultValue": "false"
252
305
  }
253
306
  }; }
307
+ static get states() { return {
308
+ "suggestionObserver": {},
309
+ "hasClonedInput": {},
310
+ "listSuggestion": {}
311
+ }; }
254
312
  static get events() { return [{
255
313
  "method": "search",
256
314
  "name": "search",
@@ -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,12 @@ export const PnMainnavList: {
92
86
  new (): PnMainnavList;
93
87
  };
94
88
 
89
+ interface PnMarketwebSearch extends Components.PnMarketwebSearch, HTMLElement {}
90
+ export const PnMarketwebSearch: {
91
+ prototype: PnMarketwebSearch;
92
+ new (): PnMarketwebSearch;
93
+ };
94
+
95
95
  interface PnMarketwebSitefooter extends Components.PnMarketwebSitefooter, HTMLElement {}
96
96
  export const PnMarketwebSitefooter: {
97
97
  prototype: PnMarketwebSitefooter;
@@ -1,4 +1,4 @@
1
- import { HTMLElement, h, Host, createEvent, getRenderingRef, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
1
+ import { HTMLElement, h, Host, getRenderingRef, forceUpdate, createEvent, proxyCustomElement } from '@stencil/core/internal/client';
2
2
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
3
 
4
4
  const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-top-percentage{margin-left:auto;padding:0.5em}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
@@ -217,70 +217,6 @@ let PnFilterCheckbox$1 = class extends HTMLElement {
217
217
  static get style() { return pnFilterCheckboxCss; }
218
218
  };
219
219
 
220
- const pnFilterSearchCss = ":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>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;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}: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;background:#8EDDF9}:host>.input-container button:hover{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%)}";
221
-
222
- let PnFilterSearch$1 = class extends HTMLElement {
223
- constructor() {
224
- super();
225
- this.__registerHost();
226
- this.__attachShadow();
227
- this.search = createEvent(this, "search", 7);
228
- this.update = createEvent(this, "update", 7);
229
- this.disabled = false;
230
- this.placeholder = null;
231
- this.inputid = null;
232
- this.name = null;
233
- this.autocomplete = null;
234
- this.value = null;
235
- /** Label for the button */
236
- this.label = null;
237
- /** Loading animation */
238
- this.loading = false;
239
- /** 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) */
240
- this.button = '';
241
- /** Light instead of dark search button */
242
- this.light = false;
243
- }
244
- inputHandler() {
245
- this.update.emit(this.value);
246
- }
247
- emitSearch(e) {
248
- if (e.type === 'click' ||
249
- (e.type === 'keydown' && e.key === 'Enter')) {
250
- // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
251
- e.preventDefault();
252
- this.search.emit(this.value);
253
- }
254
- }
255
- setVal(e) {
256
- this.value = e.target.value;
257
- }
258
- clearInput() {
259
- this.value = '';
260
- this.update.emit(this.value);
261
- this.hostElement.querySelector('input').focus();
262
- }
263
- getClassNames() {
264
- let classNames = '';
265
- const buttonTypes = ['none', 'icon', 'icon-inline'];
266
- if (this.value)
267
- classNames += 'searching ';
268
- if (this.loading)
269
- classNames += 'loading ';
270
- if (buttonTypes.includes(this.button))
271
- classNames += `button-${this.button} `;
272
- return classNames;
273
- }
274
- render() {
275
- return (h(Host, { class: this.getClassNames() }, h("div", { class: "input-container" }, h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
276
- h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
277
- h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
278
- 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)));
279
- }
280
- get hostElement() { return this; }
281
- static get style() { return pnFilterSearchCss; }
282
- };
283
-
284
220
  const translations$9 = {
285
221
  'sv': {
286
222
  'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
@@ -3269,6 +3205,104 @@ let PnMainnavList$1 = class extends HTMLElement {
3269
3205
  static get style() { return pnMainnavListCss; }
3270
3206
  };
3271
3207
 
3208
+ 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>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;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%)}";
3209
+
3210
+ let PnMarketwebSearch$1 = class extends HTMLElement {
3211
+ constructor() {
3212
+ super();
3213
+ this.__registerHost();
3214
+ this.__attachShadow();
3215
+ this.search = createEvent(this, "search", 7);
3216
+ this.update = createEvent(this, "update", 7);
3217
+ this.disabled = false;
3218
+ this.placeholder = null;
3219
+ this.inputid = null;
3220
+ this.name = null;
3221
+ this.autocomplete = null;
3222
+ this.list = null;
3223
+ this.value = null;
3224
+ /** Label for the button */
3225
+ this.label = null;
3226
+ /** Loading animation */
3227
+ this.loading = false;
3228
+ /** 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) */
3229
+ this.button = '';
3230
+ /** Light instead of dark search button */
3231
+ this.light = false;
3232
+ this.suggestionObserver = null;
3233
+ this.hasClonedInput = false;
3234
+ this.listSuggestion = [];
3235
+ }
3236
+ inputHandler() {
3237
+ this.update.emit(this.value);
3238
+ }
3239
+ emitSearch(e) {
3240
+ if (e.type === 'click' ||
3241
+ (e.type === 'keydown' && e.key === 'Enter')) {
3242
+ // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
3243
+ e.preventDefault();
3244
+ this.search.emit(this.value);
3245
+ }
3246
+ }
3247
+ setVal(e) {
3248
+ this.value = e.target.value;
3249
+ }
3250
+ clearInput() {
3251
+ this.value = '';
3252
+ this.update.emit(this.value);
3253
+ this.hostElement.querySelector('input').focus();
3254
+ }
3255
+ getClassNames() {
3256
+ let classNames = '';
3257
+ const buttonTypes = ['none', 'icon', 'icon-inline'];
3258
+ if (this.value)
3259
+ classNames += 'searching ';
3260
+ if (this.loading)
3261
+ classNames += 'loading ';
3262
+ if (buttonTypes.includes(this.button))
3263
+ classNames += `button-${this.button} `;
3264
+ return classNames;
3265
+ }
3266
+ componentWillRender() {
3267
+ this.cloneListContent();
3268
+ this.autocompleteEventBinding();
3269
+ }
3270
+ onSuggestionUpdate() {
3271
+ this.cloneListContent();
3272
+ }
3273
+ autocompleteEventBinding() {
3274
+ if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
3275
+ return;
3276
+ }
3277
+ const targetNode = document.getElementById(this.list);
3278
+ this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
3279
+ this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
3280
+ }
3281
+ cloneListContent() {
3282
+ if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
3283
+ return;
3284
+ }
3285
+ const options = [...document.getElementById(this.list).querySelectorAll('option')];
3286
+ this.listSuggestion = options.map((item) => {
3287
+ if (item.hasAttribute('value')) {
3288
+ return item.getAttribute('value');
3289
+ }
3290
+ return item.innerText;
3291
+ });
3292
+ }
3293
+ render() {
3294
+ return (h(Host, { class: this.getClassNames() }, h("div", { class: "input-container" }, 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) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
3295
+ h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
3296
+ h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
3297
+ 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) &&
3298
+ h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
3299
+ return (h("option", null, item));
3300
+ }))));
3301
+ }
3302
+ get hostElement() { return this; }
3303
+ static get style() { return pnMarketwebSearchCss; }
3304
+ };
3305
+
3272
3306
  const translations$5 = {
3273
3307
  'sv': {
3274
3308
  "searchlabel": "Sök",
@@ -5339,7 +5373,6 @@ const PnBonusProgressbar = /*@__PURE__*/proxyCustomElement(PnBonusProgressbar$1,
5339
5373
  const PnBonusProgressbarLevel = /*@__PURE__*/proxyCustomElement(PnBonusProgressbarLevel$1, [0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]);
5340
5374
  const PnChoiceButton = /*@__PURE__*/proxyCustomElement(PnChoiceButton$1, [4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
5341
5375
  const PnFilterCheckbox = /*@__PURE__*/proxyCustomElement(PnFilterCheckbox$1, [1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
5342
- const PnFilterSearch = /*@__PURE__*/proxyCustomElement(PnFilterSearch$1, [1,"pn-filter-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4]},[[0,"input","inputHandler"]]]);
5343
5376
  const PnFindPrice = /*@__PURE__*/proxyCustomElement(PnfindPrice, [0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]);
5344
5377
  const PnFindPriceResult = /*@__PURE__*/proxyCustomElement(PnfindPriceResult, [0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"weightText":[32]}]);
5345
5378
  const PnFindServiceAndPrice = /*@__PURE__*/proxyCustomElement(PnfindServiceAndPrice, [0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]);
@@ -5350,6 +5383,7 @@ const PnMainnav = /*@__PURE__*/proxyCustomElement(PnMainnav$1, [4,"pn-mainnav",{
5350
5383
  const PnMainnavLevel = /*@__PURE__*/proxyCustomElement(PnMainnavLevel$1, [4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}]);
5351
5384
  const PnMainnavLink = /*@__PURE__*/proxyCustomElement(PnMainnavLink$1, [4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]);
5352
5385
  const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}]);
5386
+ const PnMarketwebSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSearch$1, [1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]);
5353
5387
  const PnMarketwebSitefooter = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$2, [0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]);
5354
5388
  const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]);
5355
5389
  const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}]);
@@ -5379,7 +5413,6 @@ const defineCustomElements = (opts) => {
5379
5413
  PnBonusProgressbarLevel,
5380
5414
  PnChoiceButton,
5381
5415
  PnFilterCheckbox,
5382
- PnFilterSearch,
5383
5416
  PnFindPrice,
5384
5417
  PnFindPriceResult,
5385
5418
  PnFindServiceAndPrice,
@@ -5390,6 +5423,7 @@ const defineCustomElements = (opts) => {
5390
5423
  PnMainnavLevel,
5391
5424
  PnMainnavLink,
5392
5425
  PnMainnavList,
5426
+ PnMarketwebSearch,
5393
5427
  PnMarketwebSitefooter,
5394
5428
  PnMarketwebSiteheader,
5395
5429
  PnMarketwebSiteheaderLogin,
@@ -5420,4 +5454,4 @@ const defineCustomElements = (opts) => {
5420
5454
  }
5421
5455
  };
5422
5456
 
5423
- export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnFilterCheckbox, PnFilterSearch, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, defineCustomElements };
5457
+ export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, defineCustomElements };
@@ -1102,6 +1102,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1102
1102
  promise = safeCall(instance, 'componentWillLoad');
1103
1103
  }
1104
1104
  }
1105
+ {
1106
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1107
+ }
1105
1108
  endSchedule();
1106
1109
  return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1107
1110
  };
@@ -1855,4 +1858,4 @@ const flush = () => {
1855
1858
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1856
1859
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1857
1860
 
1858
- export { H, NAMESPACE as N, Host as a, bootstrapLazy as b, createEvent as c, doc as d, getRenderingRef as e, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, win as w };
1861
+ export { H, NAMESPACE as N, Host as a, bootstrapLazy as b, getRenderingRef as c, doc as d, createEvent as e, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, win as w };
@@ -1,4 +1,4 @@
1
- import { e as getRenderingRef, f as forceUpdate } from './index-02847864.js';
1
+ import { c as getRenderingRef, f as forceUpdate } from './index-5397620b.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  const items = map.get(propName);
package/esm/loader.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-02847864.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-5397620b.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Esm v2.14.0 | MIT Licensed | https://stenciljs.com
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["pn-marketweb-siteheader",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-marketweb-sitefooter",[[0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-filter-checkbox",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-filter-search",[[1,"pn-filter-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4]},[[0,"input","inputHandler"]]]]],["pn-pex-pricefinder",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-profile-selector",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option",[[0,"pn-profile-selector-option",{"name":[1],"identifier":[1],"url":[1]}]]],["pn-sidenav",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-find-price-result",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"weightText":[32]}]]],["pn-find-service-and-price-result",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-product-pricelist-result",[[0,"pn-product-pricelist-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-site-footer_2",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-product-card_3",[[4,"pn-product-card"],[0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}],[0,"pn-product-card-price",{"label":[1],"amount":[1],"currency":[1],"note":[1],"url":[1],"service":[1]}]]],["pn-language-selector_9",[[4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}],[4,"pn-language-selector",{"value":[1537],"selectedLanguageName":[32],"options":[32],"i18n":[32]}],[0,"pn-language-selector-option",{"name":[1],"code":[1],"url":[1],"selected":[4],"currentLanguage":[1,"current-language"]}],[4,"pn-mainnav",{"market":[1],"language":[1],"navigationId":[1,"navigation-id"],"openMenu":[1028,"open-menu"],"navLabel":[1,"nav-label"]},[[0,"language","setLanguage"],[0,"market","setMarket"],[0,"menuLanguageChange","onLanguageChange"],[0,"setmenuopenstate","setMenuOpenState"],[0,"openMenuLevelChange","onOpenMenuLevelChange"]]],[4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}],[0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}],[0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}],[4,"pn-site-selector",{"buttontext":[1537],"heading":[1537],"language":[1537],"i18n":[32]}],[0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]]],["pn-product-tile_3",[[4,"pn-product-tile"],[0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}],[0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]]]], options);
13
+ return bootstrapLazy([["pn-marketweb-siteheader",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-marketweb-sitefooter",[[0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-filter-checkbox",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-marketweb-search",[[1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]]],["pn-pex-pricefinder",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-profile-selector",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option",[[0,"pn-profile-selector-option",{"name":[1],"identifier":[1],"url":[1]}]]],["pn-sidenav",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-find-price-result",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"weightText":[32]}]]],["pn-find-service-and-price-result",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-product-pricelist-result",[[0,"pn-product-pricelist-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-site-footer_2",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-product-card_3",[[4,"pn-product-card"],[0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}],[0,"pn-product-card-price",{"label":[1],"amount":[1],"currency":[1],"note":[1],"url":[1],"service":[1]}]]],["pn-language-selector_9",[[4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}],[4,"pn-language-selector",{"value":[1537],"selectedLanguageName":[32],"options":[32],"i18n":[32]}],[0,"pn-language-selector-option",{"name":[1],"code":[1],"url":[1],"selected":[4],"currentLanguage":[1,"current-language"]}],[4,"pn-mainnav",{"market":[1],"language":[1],"navigationId":[1,"navigation-id"],"openMenu":[1028,"open-menu"],"navLabel":[1,"nav-label"]},[[0,"language","setLanguage"],[0,"market","setMarket"],[0,"menuLanguageChange","onLanguageChange"],[0,"setmenuopenstate","setMenuOpenState"],[0,"openMenuLevelChange","onOpenMenuLevelChange"]]],[4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}],[0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}],[0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}],[4,"pn-site-selector",{"buttontext":[1537],"heading":[1537],"language":[1537],"i18n":[32]}],[0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]]],["pn-product-tile_3",[[4,"pn-product-tile"],[0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}],[0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-02847864.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
2
2
 
3
3
  const pnBonusProgressbarLevelCss = "pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:\"\";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9B1C2E;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(even)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(even) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(even) .progressbar-level-value{top:4.2rem}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-02847864.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
2
2
 
3
3
  const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-top-percentage{margin-left:auto;padding:0.5em}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-02847864.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
2
2
 
3
3
  const pnChoiceButtonCss = "pn-choice-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative;margin:0.2em 0.4em}pn-choice-button input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-button label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0.4rem 0.8rem;border:0.1rem solid #D3CECB;color:#005D92;font-weight:500;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-button label pn-illustration{display:inline-block;width:3rem;height:3rem;margin-right:0.9rem}pn-choice-button>input:checked+label.pn-choice-button{background:#E0F8FF;color:#005D92;border-color:#005D92;-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)}pn-choice-button>input:indeterminate+label.pn-choice-button{background:#FFFFFF;color:#005D92}pn-choice-button>input:hover+label.pn-choice-button{background:#E0F8FF}pn-choice-button>input:focus+label.pn-choice-button,pn-choice-button>input:active+label.pn-choice-button{-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-choice-button>input:active+label.pn-choice-button{background:#8EDDF9}pn-choice-button>input:disabled+label.pn-choice-button{background-color:#D3CECB}pn-choice-button>input:checked+label.pn-choice-button:hover{background:#8EDDF9}pn-choice-button>input:checked+label.pn-choice-button:active{background:#8EDDF9;border:0.1rem solid #00A0D6}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-02847864.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
2
2
 
3
3
  const pnFilterCheckboxCss = ":host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host input{opacity:0;position:absolute}:host input[type=checkbox]+label.pn-checkbox{width:1.5em;min-width:1.5em;height:1.5em;min-height:1.5em;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;border:0.1rem solid #969087;cursor:pointer;border-radius:0.4rem;cursor:pointer;-webkit-transition-duration:220ms;transition-duration:220ms;-webkit-transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);-webkit-transition-property:border, background, -webkit-box-shadow;transition-property:border, background, -webkit-box-shadow;transition-property:border, background, box-shadow;transition-property:border, background, box-shadow, -webkit-box-shadow}:host input[type=checkbox]+label.pn-checkbox svg{width:80%;fill:none}:host input[type=checkbox]+label.pn-checkbox svg polyline{stroke:#FFF;-webkit-transform-origin:0 0;transform-origin:0 0;stroke-linecap:round;stroke-dasharray:23;stroke-dashoffset:23;-webkit-transition-delay:none;transition-delay:none;-webkit-transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86)}:host input[type=checkbox]:hover+label.pn-checkbox{border:0.1rem solid #005D92;background:#E0F8FF}:host input[type=checkbox]:checked+label.pn-checkbox,:host input[type=checkbox]:indeterminate+label.pn-checkbox{background:#005D92;border:0.1rem solid #005D92}:host input[type=checkbox]:checked+label.pn-checkbox svg polyline,:host input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline{-webkit-transition-delay:220ms;transition-delay:220ms}:host input[type=checkbox]:checked+label.pn-checkbox svg polyline.checkmark-path{stroke-dashoffset:0}:host input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline.indeterminate-path{stroke-dashoffset:0}:host input[type=checkbox]:focus+label.pn-checkbox,:host input[type=checkbox]:active+label.pn-checkbox{-webkit-box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92;box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92}:host input[type=checkbox]:disabled+label.pn-checkbox{background-color:#D3CECB;border:0.1rem solid #969087;cursor:not-allowed}:host input[type=checkbox]:disabled+label.pn-checkbox svg polyline{stroke:#969087}:host input[type=checkbox]:disabled:checked+label.pn-checkbox{border:0.1rem solid transparent}:host input[type=checkbox]:disabled:active+label.pn-checkbox{-webkit-box-shadow:none;box-shadow:none}";
4
4
 
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, a as Host } from './index-02847864.js';
2
- import { s as state } from './pn-find-price-store-b2f18af4.js';
3
- import './index-1978107a.js';
1
+ import { r as registerInstance, h, a as Host } from './index-5397620b.js';
2
+ import { s as state } from './pn-find-price-store-c857dbc4.js';
3
+ import './index-7b21ecff.js';
4
4
 
5
5
  const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}.resultcontent{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
6
6
 
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index-1978107a.js';
1
+ import { c as createStore } from './index-7b21ecff.js';
2
2
 
3
3
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
4
4
  const { state, onChange } = createStore({