@postnord/pn-marketweb-components 2.4.16 → 2.4.18

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 (326) hide show
  1. package/cjs/index-4199ff85.js +12 -4
  2. package/cjs/index-e4882728.js +72 -0
  3. package/cjs/loader.cjs.js +1 -1
  4. package/cjs/pn-date-and-time.cjs.entry.js +150 -0
  5. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +254 -0
  6. package/cjs/pn-market-web-components.cjs.js +1 -1
  7. package/cjs/pn-multi-formfield.cjs.entry.js +2 -70
  8. package/collection/collection-manifest.json +2 -0
  9. package/collection/components/input/pn-date-and-time/pn-date-and-time.css +23 -0
  10. package/collection/components/input/pn-date-and-time/pn-date-and-time.js +349 -0
  11. package/collection/components/input/pn-date-and-time/pn-date-and-time.stories.js +39 -0
  12. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.css +58 -0
  13. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +508 -0
  14. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +43 -0
  15. package/collection/components/input/pn-dropdown-choice-adds-row/types.js +1 -0
  16. package/components/index.d.ts +2 -0
  17. package/components/index.js +2 -0
  18. package/components/index3.js +61 -178
  19. package/{esm/index-7f77b0ba.js → components/index4.js} +1 -1
  20. package/components/pn-date-and-time.d.ts +11 -0
  21. package/components/pn-date-and-time.js +186 -0
  22. package/components/pn-dropdown-choice-adds-row.d.ts +11 -0
  23. package/components/pn-dropdown-choice-adds-row.js +292 -0
  24. package/components/pn-find-price-result2.js +1 -1
  25. package/components/pn-find-service-and-price-result2.js +1 -1
  26. package/components/pn-mainnav-store.js +1 -1
  27. package/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
  28. package/components/pn-marketweb-siteheader-search2.js +1 -1
  29. package/components/pn-multi-formfield.js +1 -69
  30. package/components/pn-product-pricelist-result.js +1 -1
  31. package/components/pn-profile-modal-store.js +1 -1
  32. package/components/pn-proxio-findprice.js +1 -1
  33. package/components/pn-sidenav-store.js +1 -1
  34. package/esm/index-8976f360.js +70 -0
  35. package/esm/index-b71e0f8e.js +187 -0
  36. package/esm/{index-c118284d.js → index-ee44c065.js} +13 -5
  37. package/esm/loader.js +3 -3
  38. package/esm/pn-animated-tile.entry.js +1 -1
  39. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  40. package/esm/pn-bonus-progressbar.entry.js +1 -1
  41. package/esm/pn-breakpoints.entry.js +1 -1
  42. package/esm/pn-chart.entry.js +1 -1
  43. package/esm/pn-charts-card.entry.js +1 -1
  44. package/esm/pn-choice-button.entry.js +1 -1
  45. package/esm/pn-customernumber-selector-option.entry.js +1 -1
  46. package/esm/pn-customernumber-selector.entry.js +1 -1
  47. package/esm/pn-date-and-time.entry.js +146 -0
  48. package/esm/pn-dropdown-choice-adds-row.entry.js +250 -0
  49. package/esm/pn-filter-checkbox.entry.js +1 -1
  50. package/esm/pn-find-price-result.entry.js +3 -3
  51. package/esm/{pn-find-price-store-e13b6651.js → pn-find-price-store-5810a2b9.js} +1 -1
  52. package/esm/pn-find-price.entry.js +3 -3
  53. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  54. package/esm/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-0b1b3ab7.js} +1 -1
  55. package/esm/pn-find-service-and-price.entry.js +3 -3
  56. package/esm/pn-language-selector_9.entry.js +4 -4
  57. package/esm/pn-line-shape.entry.js +1 -1
  58. package/esm/pn-mainnav-link.entry.js +3 -3
  59. package/esm/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-8c221c2f.js} +1 -1
  60. package/esm/pn-market-web-components.js +3 -3
  61. package/esm/pn-marketweb-input.entry.js +1 -1
  62. package/esm/pn-marketweb-search.entry.js +1 -1
  63. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  64. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
  65. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
  66. package/esm/{pn-marketweb-siteheader-store-9df5290d.js → pn-marketweb-siteheader-store-cea5016e.js} +1 -1
  67. package/esm/pn-marketweb-siteheader.entry.js +3 -3
  68. package/esm/pn-multi-formfield.entry.js +2 -70
  69. package/esm/pn-parcel-tracker.entry.js +1 -1
  70. package/esm/pn-pex-pricefinder.entry.js +1 -1
  71. package/esm/pn-play-on-scroll.entry.js +1 -1
  72. package/esm/pn-product-card_3.entry.js +1 -1
  73. package/esm/pn-product-pricelist-result.entry.js +2 -2
  74. package/esm/pn-product-pricelist.entry.js +3 -3
  75. package/esm/pn-product-tile-info_2.entry.js +1 -1
  76. package/esm/pn-product-tile.entry.js +1 -1
  77. package/esm/pn-profile-modal-customernumber.entry.js +1 -1
  78. package/esm/pn-profile-modal-profile.entry.js +3 -3
  79. package/esm/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-e08316b5.js} +1 -1
  80. package/esm/pn-profile-modal-type.entry.js +3 -3
  81. package/esm/pn-profile-modal.entry.js +3 -3
  82. package/esm/pn-profile-selector-option.entry.js +1 -1
  83. package/esm/pn-profile-selector.entry.js +1 -1
  84. package/esm/pn-proxio-findprice-result.entry.js +1 -1
  85. package/esm/pn-proxio-findprice.entry.js +2 -2
  86. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  87. package/esm/pn-proxio-productcard_4.entry.js +1 -1
  88. package/esm/pn-quick-cta.entry.js +1 -1
  89. package/esm/pn-quote-card.entry.js +1 -1
  90. package/esm/pn-scroll_2.entry.js +1 -1
  91. package/esm/pn-share-item.entry.js +1 -1
  92. package/esm/pn-share.entry.js +1 -1
  93. package/esm/pn-sidenav-level.entry.js +3 -3
  94. package/esm/pn-sidenav-link.entry.js +3 -3
  95. package/esm/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-9530b0da.js} +1 -1
  96. package/esm/pn-sidenav-togglebutton.entry.js +3 -3
  97. package/esm/pn-sidenav.entry.js +3 -3
  98. package/esm/pn-site-footer_3.entry.js +1 -1
  99. package/esm/pn-spotlight.entry.js +1 -1
  100. package/esm/pn-stats-info-data.entry.js +1 -1
  101. package/esm/pn-stats-info.entry.js +1 -1
  102. package/esm/pn-teaser-card.entry.js +1 -1
  103. package/esm/pn-titletag.entry.js +1 -1
  104. package/esm-es5/index-8976f360.js +1 -0
  105. package/esm-es5/{index-7f77b0ba.js → index-b71e0f8e.js} +1 -1
  106. package/esm-es5/{index-c118284d.js → index-ee44c065.js} +1 -1
  107. package/esm-es5/loader.js +1 -1
  108. package/esm-es5/pn-animated-tile.entry.js +1 -1
  109. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  110. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  111. package/esm-es5/pn-breakpoints.entry.js +1 -1
  112. package/esm-es5/pn-chart.entry.js +1 -1
  113. package/esm-es5/pn-charts-card.entry.js +1 -1
  114. package/esm-es5/pn-choice-button.entry.js +1 -1
  115. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  116. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  117. package/esm-es5/pn-date-and-time.entry.js +1 -0
  118. package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -0
  119. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  120. package/esm-es5/pn-find-price-result.entry.js +1 -1
  121. package/esm-es5/{pn-find-price-store-e13b6651.js → pn-find-price-store-5810a2b9.js} +1 -1
  122. package/esm-es5/pn-find-price.entry.js +1 -1
  123. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  124. package/esm-es5/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-0b1b3ab7.js} +1 -1
  125. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  126. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  127. package/esm-es5/pn-line-shape.entry.js +1 -1
  128. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  129. package/esm-es5/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-8c221c2f.js} +1 -1
  130. package/esm-es5/pn-market-web-components.js +1 -1
  131. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  132. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  133. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  134. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  135. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  136. package/esm-es5/pn-marketweb-siteheader-store-cea5016e.js +1 -0
  137. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  138. package/esm-es5/pn-multi-formfield.entry.js +1 -1
  139. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  140. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  141. package/esm-es5/pn-play-on-scroll.entry.js +1 -1
  142. package/esm-es5/pn-product-card_3.entry.js +1 -1
  143. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  144. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  145. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  146. package/esm-es5/pn-product-tile.entry.js +1 -1
  147. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  148. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  149. package/esm-es5/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-e08316b5.js} +1 -1
  150. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  151. package/esm-es5/pn-profile-modal.entry.js +1 -1
  152. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  153. package/esm-es5/pn-profile-selector.entry.js +1 -1
  154. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  155. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  156. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  157. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  158. package/esm-es5/pn-quick-cta.entry.js +1 -1
  159. package/esm-es5/pn-quote-card.entry.js +1 -1
  160. package/esm-es5/pn-scroll_2.entry.js +1 -1
  161. package/esm-es5/pn-share-item.entry.js +1 -1
  162. package/esm-es5/pn-share.entry.js +1 -1
  163. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  164. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  165. package/esm-es5/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-9530b0da.js} +1 -1
  166. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  167. package/esm-es5/pn-sidenav.entry.js +1 -1
  168. package/esm-es5/pn-site-footer_3.entry.js +1 -1
  169. package/esm-es5/pn-spotlight.entry.js +1 -1
  170. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  171. package/esm-es5/pn-stats-info.entry.js +1 -1
  172. package/esm-es5/pn-teaser-card.entry.js +1 -1
  173. package/esm-es5/pn-titletag.entry.js +1 -1
  174. package/package.json +1 -1
  175. package/pn-market-web-components/{p-dbd7837e.entry.js → p-00287dc7.entry.js} +1 -1
  176. package/pn-market-web-components/{p-c1d9a064.entry.js → p-01a37a82.entry.js} +1 -1
  177. package/pn-market-web-components/{p-f7cb2ef9.system.entry.js → p-0739fdcf.system.entry.js} +1 -1
  178. package/pn-market-web-components/{p-8cefd900.system.entry.js → p-0ae0b140.system.entry.js} +1 -1
  179. package/pn-market-web-components/{p-3afc3173.entry.js → p-0be5cbf5.entry.js} +1 -1
  180. package/pn-market-web-components/{p-ffe18938.system.entry.js → p-0c1a0814.system.entry.js} +1 -1
  181. package/pn-market-web-components/{p-ad836c55.system.js → p-0d0e9547.system.js} +1 -1
  182. package/pn-market-web-components/{p-6eabccbc.system.entry.js → p-1135350f.system.entry.js} +1 -1
  183. package/pn-market-web-components/{p-545a40a7.system.entry.js → p-153b4454.system.entry.js} +1 -1
  184. package/pn-market-web-components/{p-9a1c267d.entry.js → p-169ccf69.entry.js} +1 -1
  185. package/pn-market-web-components/{p-b0102ff6.entry.js → p-16fedd71.entry.js} +1 -1
  186. package/pn-market-web-components/p-196b2316.system.entry.js +1 -0
  187. package/pn-market-web-components/{p-87d904e0.entry.js → p-1a8d7eb8.entry.js} +1 -1
  188. package/pn-market-web-components/{p-44c05fba.entry.js → p-1afc6f8f.entry.js} +1 -1
  189. package/pn-market-web-components/{p-589a9a4c.system.entry.js → p-1b4a75b3.system.entry.js} +1 -1
  190. package/pn-market-web-components/{p-beefd9f7.entry.js → p-1bd7e641.entry.js} +1 -1
  191. package/pn-market-web-components/{p-ac62dc33.entry.js → p-1bf35bf0.entry.js} +1 -1
  192. package/pn-market-web-components/{p-b890f3f9.system.entry.js → p-1dc6c4ac.system.entry.js} +1 -1
  193. package/pn-market-web-components/p-2156e251.entry.js +1 -0
  194. package/pn-market-web-components/{p-c5643358.system.entry.js → p-21bf0e64.system.entry.js} +1 -1
  195. package/pn-market-web-components/{p-e8dad7fe.entry.js → p-220140a0.entry.js} +1 -1
  196. package/pn-market-web-components/{p-b35ab163.entry.js → p-267fc52b.entry.js} +1 -1
  197. package/pn-market-web-components/{p-d5ae9797.entry.js → p-2744b30a.entry.js} +1 -1
  198. package/pn-market-web-components/{p-ef721555.system.entry.js → p-28912c0c.system.entry.js} +1 -1
  199. package/pn-market-web-components/p-296637c0.system.js +1 -0
  200. package/pn-market-web-components/{p-6b46c15c.entry.js → p-2cc52ba6.entry.js} +1 -1
  201. package/pn-market-web-components/{p-4ef54288.entry.js → p-2ee328d2.entry.js} +1 -1
  202. package/pn-market-web-components/{p-8d041ecf.system.entry.js → p-37abc8d3.system.entry.js} +1 -1
  203. package/pn-market-web-components/{p-396b254a.system.js → p-38183dee.system.js} +1 -1
  204. package/pn-market-web-components/{p-78543a18.system.entry.js → p-38c861d5.system.entry.js} +1 -1
  205. package/pn-market-web-components/p-3a897643.system.entry.js +1 -0
  206. package/pn-market-web-components/{p-49f60496.entry.js → p-3aef506c.entry.js} +1 -1
  207. package/pn-market-web-components/{p-3a0d8f2e.entry.js → p-3ba2a479.entry.js} +1 -1
  208. package/pn-market-web-components/{p-29d0ec91.system.entry.js → p-3bc31e82.system.entry.js} +1 -1
  209. package/pn-market-web-components/{p-c5031e21.system.entry.js → p-3c38a67e.system.entry.js} +1 -1
  210. package/pn-market-web-components/{p-02632961.system.entry.js → p-3e5d59f2.system.entry.js} +1 -1
  211. package/pn-market-web-components/{p-47d717a3.entry.js → p-3f2bc920.entry.js} +1 -1
  212. package/pn-market-web-components/{p-5d67f772.system.entry.js → p-3fab06aa.system.entry.js} +1 -1
  213. package/pn-market-web-components/{p-8f32fa2b.system.entry.js → p-41f5086b.system.entry.js} +1 -1
  214. package/pn-market-web-components/{p-3a450371.system.js → p-420c307b.system.js} +1 -1
  215. package/pn-market-web-components/{p-15e680a8.entry.js → p-436857a8.entry.js} +1 -1
  216. package/pn-market-web-components/{p-2145d5e0.system.entry.js → p-4529f4b7.system.entry.js} +1 -1
  217. package/pn-market-web-components/{p-2bd40797.system.entry.js → p-46a4dbdd.system.entry.js} +1 -1
  218. package/pn-market-web-components/{p-8079dfd5.system.entry.js → p-47576a14.system.entry.js} +1 -1
  219. package/pn-market-web-components/{p-5a506356.system.entry.js → p-4b71d79d.system.entry.js} +1 -1
  220. package/pn-market-web-components/{p-e4961116.system.entry.js → p-4bd36d2c.system.entry.js} +1 -1
  221. package/pn-market-web-components/{p-1646c170.system.entry.js → p-4d2d81b8.system.entry.js} +1 -1
  222. package/pn-market-web-components/p-4e3d7a56.js +1 -0
  223. package/pn-market-web-components/p-4e7d4e69.entry.js +1 -0
  224. package/pn-market-web-components/{p-6b5ff47f.entry.js → p-4f1df02c.entry.js} +1 -1
  225. package/pn-market-web-components/{p-7d992089.entry.js → p-4f2bdae2.entry.js} +1 -1
  226. package/pn-market-web-components/{p-6525a912.entry.js → p-4fbea675.entry.js} +1 -1
  227. package/pn-market-web-components/{p-156fedd7.entry.js → p-5032302f.entry.js} +1 -1
  228. package/pn-market-web-components/{p-874db3bd.entry.js → p-5427a6ba.entry.js} +1 -1
  229. package/pn-market-web-components/{p-5e768b73.entry.js → p-56ac01d0.entry.js} +1 -1
  230. package/pn-market-web-components/{p-73ee3141.entry.js → p-57957809.entry.js} +1 -1
  231. package/pn-market-web-components/{p-7c1b31e8.js → p-57d37022.js} +1 -1
  232. package/pn-market-web-components/{p-c668f453.entry.js → p-59d44719.entry.js} +1 -1
  233. package/pn-market-web-components/{p-833bab34.entry.js → p-5afd892a.entry.js} +1 -1
  234. package/pn-market-web-components/{p-1d50340b.system.entry.js → p-612adfb3.system.entry.js} +1 -1
  235. package/pn-market-web-components/{p-658f6ff7.system.entry.js → p-62bceebe.system.entry.js} +1 -1
  236. package/pn-market-web-components/{p-853e6559.system.entry.js → p-62de103d.system.entry.js} +1 -1
  237. package/pn-market-web-components/{p-386d72ea.entry.js → p-6e11edfe.entry.js} +1 -1
  238. package/pn-market-web-components/p-6f2e839c.js +1 -0
  239. package/pn-market-web-components/{p-6d050c3a.system.entry.js → p-6fe471aa.system.entry.js} +1 -1
  240. package/pn-market-web-components/{p-fca11f16.system.entry.js → p-70cc4002.system.entry.js} +1 -1
  241. package/pn-market-web-components/{p-14af3f96.system.entry.js → p-70ef1b2d.system.entry.js} +1 -1
  242. package/pn-market-web-components/{p-939b5792.system.entry.js → p-7364721d.system.entry.js} +1 -1
  243. package/pn-market-web-components/{p-1fb4eae4.system.entry.js → p-738c179b.system.entry.js} +1 -1
  244. package/pn-market-web-components/{p-9010c32a.system.entry.js → p-759a2b20.system.entry.js} +1 -1
  245. package/pn-market-web-components/p-76ce7256.entry.js +1 -0
  246. package/pn-market-web-components/{p-abfed655.system.entry.js → p-7877ce39.system.entry.js} +1 -1
  247. package/pn-market-web-components/{p-68324e6f.system.entry.js → p-793bb22f.system.entry.js} +1 -1
  248. package/pn-market-web-components/{p-ed81a6d6.system.entry.js → p-794af3d3.system.entry.js} +1 -1
  249. package/pn-market-web-components/{p-e2abebd7.entry.js → p-7a33e360.entry.js} +1 -1
  250. package/pn-market-web-components/{p-34c0b146.entry.js → p-7bf30d19.entry.js} +1 -1
  251. package/pn-market-web-components/{p-494aa2d2.entry.js → p-7c1e5042.entry.js} +1 -1
  252. package/pn-market-web-components/{p-c761dd91.system.entry.js → p-7e99f631.system.entry.js} +1 -1
  253. package/pn-market-web-components/{p-a5faec68.system.js → p-7ffa5533.system.js} +1 -1
  254. package/pn-market-web-components/{p-aaa94bee.system.entry.js → p-81608e33.system.entry.js} +1 -1
  255. package/pn-market-web-components/{p-8ca063a9.system.entry.js → p-81902554.system.entry.js} +1 -1
  256. package/pn-market-web-components/{p-34f2fb92.entry.js → p-83f39020.entry.js} +1 -1
  257. package/pn-market-web-components/{p-d6ee168b.system.entry.js → p-85ce2d47.system.entry.js} +1 -1
  258. package/pn-market-web-components/{p-e7f43cc2.entry.js → p-8aec3e9e.entry.js} +1 -1
  259. package/pn-market-web-components/{p-71895c6f.entry.js → p-8cc12089.entry.js} +1 -1
  260. package/pn-market-web-components/{p-463e2743.system.entry.js → p-8e9abd24.system.entry.js} +1 -1
  261. package/pn-market-web-components/{p-507f8886.entry.js → p-8e9e0c04.entry.js} +1 -1
  262. package/pn-market-web-components/{p-2e507907.system.entry.js → p-9482937b.system.entry.js} +1 -1
  263. package/pn-market-web-components/{p-0159804c.system.entry.js → p-96729f36.system.entry.js} +1 -1
  264. package/pn-market-web-components/{p-0fbcacf3.system.entry.js → p-969d310d.system.entry.js} +1 -1
  265. package/pn-market-web-components/{p-82db879c.entry.js → p-9d517155.entry.js} +1 -1
  266. package/pn-market-web-components/{p-d702aede.entry.js → p-9e47435e.entry.js} +1 -1
  267. package/pn-market-web-components/{p-37d26cef.entry.js → p-a400365f.entry.js} +1 -1
  268. package/pn-market-web-components/{p-e4fbd06c.entry.js → p-a4fcfc3c.entry.js} +1 -1
  269. package/pn-market-web-components/{p-a1a58fe4.js → p-a7d52aee.js} +1 -1
  270. package/pn-market-web-components/{p-4d561de4.system.entry.js → p-a8aff7ab.system.entry.js} +1 -1
  271. package/pn-market-web-components/{p-9f0f1dd8.system.entry.js → p-ad7a00b6.system.entry.js} +1 -1
  272. package/pn-market-web-components/{p-0f1115aa.entry.js → p-af1be0d9.entry.js} +1 -1
  273. package/pn-market-web-components/{p-8ebe7b15.system.entry.js → p-b28cf3a3.system.entry.js} +1 -1
  274. package/pn-market-web-components/{p-9ed7a18f.entry.js → p-b3831534.entry.js} +1 -1
  275. package/pn-market-web-components/{p-d34c9be2.system.js → p-ba06f541.system.js} +1 -1
  276. package/pn-market-web-components/{p-c576ac3e.system.entry.js → p-bbcd8889.system.entry.js} +1 -1
  277. package/pn-market-web-components/{p-fe0d832d.system.entry.js → p-bed03b9c.system.entry.js} +1 -1
  278. package/pn-market-web-components/{p-dc598ef8.entry.js → p-c02fc405.entry.js} +1 -1
  279. package/pn-market-web-components/p-c0961278.system.entry.js +1 -0
  280. package/pn-market-web-components/{p-864fe276.entry.js → p-c2415b38.entry.js} +1 -1
  281. package/pn-market-web-components/{p-773b59c0.entry.js → p-c86c624a.entry.js} +1 -1
  282. package/pn-market-web-components/{p-7dff99ed.entry.js → p-c954c090.entry.js} +1 -1
  283. package/pn-market-web-components/{p-8fee0115.system.entry.js → p-ca04e415.system.entry.js} +1 -1
  284. package/pn-market-web-components/{p-2a5cd298.entry.js → p-cde2fce7.entry.js} +1 -1
  285. package/pn-market-web-components/{p-c1565c47.entry.js → p-ce1805f0.entry.js} +1 -1
  286. package/pn-market-web-components/{p-e0e45eb0.system.entry.js → p-d1150166.system.entry.js} +1 -1
  287. package/pn-market-web-components/{p-bdd1ec55.entry.js → p-d2ba5b69.entry.js} +1 -1
  288. package/pn-market-web-components/{p-e737c51d.system.entry.js → p-d2ebaf52.system.entry.js} +1 -1
  289. package/pn-market-web-components/{p-17fb8d9e.entry.js → p-d3511e86.entry.js} +1 -1
  290. package/pn-market-web-components/p-d8e0d7e7.js +1 -0
  291. package/pn-market-web-components/{p-1545fb34.entry.js → p-e00b1afa.entry.js} +1 -1
  292. package/pn-market-web-components/{p-752616b7.system.entry.js → p-e247fdf4.system.entry.js} +1 -1
  293. package/pn-market-web-components/{p-1590ae58.system.entry.js → p-e2613cc5.system.entry.js} +1 -1
  294. package/pn-market-web-components/p-e3a65e18.js +1 -0
  295. package/pn-market-web-components/{p-9f95b3c9.system.entry.js → p-e47abff1.system.entry.js} +1 -1
  296. package/pn-market-web-components/{p-441249d9.system.js → p-e5d994ff.system.js} +1 -1
  297. package/pn-market-web-components/p-e5d9f268.entry.js +1 -0
  298. package/pn-market-web-components/{p-48c74c53.entry.js → p-e6e7e18a.entry.js} +1 -1
  299. package/pn-market-web-components/{p-548b62a8.system.entry.js → p-e8b144ff.system.entry.js} +1 -1
  300. package/pn-market-web-components/{p-4b2e76e9.entry.js → p-eab25822.entry.js} +1 -1
  301. package/pn-market-web-components/{p-38f135fd.entry.js → p-f0078106.entry.js} +1 -1
  302. package/pn-market-web-components/{p-13d2d138.system.js → p-f074da8f.system.js} +1 -1
  303. package/pn-market-web-components/{p-c5727e83.js → p-f1962610.js} +1 -1
  304. package/pn-market-web-components/{p-f453732e.entry.js → p-f45f034b.entry.js} +1 -1
  305. package/pn-market-web-components/{p-6f1d6a1a.system.js → p-f4adb442.system.js} +1 -1
  306. package/pn-market-web-components/p-f5eddbe2.js +1 -0
  307. package/pn-market-web-components/{p-a8671fc6.system.entry.js → p-f7165a26.system.entry.js} +1 -1
  308. package/pn-market-web-components/{p-1a9b2a0e.system.entry.js → p-f9b8baf0.system.entry.js} +1 -1
  309. package/pn-market-web-components/p-fcdb7381.system.js +1 -0
  310. package/pn-market-web-components/{p-8666d14d.js → p-fdb1905d.js} +1 -1
  311. package/pn-market-web-components/{p-d70e685c.entry.js → p-fec3dc66.entry.js} +1 -1
  312. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  313. package/pn-market-web-components/pn-market-web-components.js +1 -1
  314. package/types/components/input/pn-date-and-time/pn-date-and-time.d.ts +45 -0
  315. package/types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.d.ts +43 -0
  316. package/types/components/input/pn-dropdown-choice-adds-row/types.d.ts +18 -0
  317. package/types/components.d.ts +79 -0
  318. package/esm-es5/pn-marketweb-siteheader-store-9df5290d.js +0 -1
  319. package/pn-market-web-components/p-3d8925bd.entry.js +0 -1
  320. package/pn-market-web-components/p-44f58f15.js +0 -1
  321. package/pn-market-web-components/p-54544560.system.entry.js +0 -1
  322. package/pn-market-web-components/p-5a6761da.js +0 -1
  323. package/pn-market-web-components/p-a799fee1.entry.js +0 -1
  324. package/pn-market-web-components/p-c0db1ffd.js +0 -1
  325. package/pn-market-web-components/p-d295ef71.system.js +0 -1
  326. package/pn-market-web-components/p-ecaad0c1.js +0 -1
@@ -0,0 +1,292 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { d as debounce_1 } from './index3.js';
3
+ import { d as defineCustomElement$2 } from './pn-marketweb-input2.js';
4
+
5
+ const pnDropdownChoiceAddsRowCss = "pn-dropdown-choice-adds-row{gap:1rem}pn-dropdown-choice-adds-row .dropdown-choice-form-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:50%;margin-bottom:1rem}@media only screen and (max-width: 640px){pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:100%}}pn-dropdown-choice-adds-row .pn-dropdown-choice-table{width:100%;border-spacing:0rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th{text-align:left;padding:1rem 0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th label{color:#5E554A;font-size:1.4rem;font-weight:400}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--name{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--dropdown{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--input{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--delete{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody td{padding:0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody tr:nth-child(even){background-color:#effbff}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody .tr-delete{text-align:center}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td small{color:#A70707;vertical-align:middle}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td pn-icon{margin-right:0.25em;vertical-align:middle}";
6
+
7
+ const pnDropdownChoiceAddsRow = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.rowvalues = createEvent(this, "rowvalues", 7);
12
+ this.pnRowSelectDropdown = null;
13
+ this.tableHead = null;
14
+ this.tableBody = null;
15
+ this.formRowEvent = e => {
16
+ var _a;
17
+ const debouncedAddValue = debounce_1.debounce(this.updateHiddenFieldValue.bind(this), 500);
18
+ if (e.target.matches('input')) {
19
+ ['change', 'keyup'].forEach(eventName => {
20
+ e.target.addEventListener(eventName, debouncedAddValue);
21
+ });
22
+ }
23
+ else {
24
+ const rowDropdown = (_a = e.target.closest('.generated-table-row')) === null || _a === void 0 ? void 0 : _a.querySelector('pn-select');
25
+ if (rowDropdown) {
26
+ rowDropdown.addEventListener('selectchange', debouncedAddValue);
27
+ }
28
+ }
29
+ };
30
+ this.dropdownData = null;
31
+ this.addRowDropdownName = '';
32
+ this.addRowDropdownPlaceholder = '';
33
+ this.addRowDropdownLabel = '';
34
+ this.rowNameLabel = '';
35
+ this.rowHasDropdown = true;
36
+ this.rowDropdownLabel = '';
37
+ this.rowDropdownPlaceholder = '';
38
+ this.rowInputLabel = '';
39
+ this.rowDeleteButtonText = '';
40
+ this.totalInputLimit = 0;
41
+ this.inputLimitWarning = null;
42
+ this.nextRowIndex = null;
43
+ this.rowSelectDropdownArr = null;
44
+ this.columnCount = null;
45
+ this.showWarning = false;
46
+ this.formValue = null;
47
+ }
48
+ dropdownDataWatcher() {
49
+ if (typeof this.dropdownData === 'string') {
50
+ this._dropdownData = JSON.parse(this.dropdownData);
51
+ }
52
+ else {
53
+ this._dropdownData = this.dropdownData;
54
+ }
55
+ }
56
+ componentWillLoad() {
57
+ this.dropdownDataWatcher();
58
+ }
59
+ componentDidLoad() {
60
+ this.setInitialValues();
61
+ this.addEventHandlers();
62
+ }
63
+ addEventHandlers() {
64
+ this.pnRowSelectDropdown.addEventListener('selectchange', this.addRowElement.bind(this));
65
+ }
66
+ setInitialValues() {
67
+ this.nextRowIndex = 0;
68
+ this.columnCount = this.rowHasDropdown ? 4 : 3;
69
+ this.setRowSelectDropdownArr();
70
+ }
71
+ setRowSelectDropdownArr() {
72
+ this.rowSelectDropdownArr = [];
73
+ this._dropdownData.forEach(element => {
74
+ this.rowSelectDropdownArr.push(element.caption);
75
+ });
76
+ }
77
+ updateHiddenFieldValue() {
78
+ const allRows = [...this.tableBody.querySelectorAll('tr')];
79
+ const columnValueCount = this.rowHasDropdown ? 3 : 2;
80
+ const formValues = [];
81
+ if (allRows.length) {
82
+ allRows.forEach(elm => {
83
+ var _a, _b, _c;
84
+ const row = { row: [] };
85
+ const nameElm = elm.querySelector('.tr-name');
86
+ const dropdownElm = elm.querySelector('.tr-dropdown');
87
+ const inputElm = elm.querySelector('.tr-input');
88
+ const nameValue = { name: this.rowNameLabel, value: nameElm === null || nameElm === void 0 ? void 0 : nameElm.innerHTML };
89
+ row.row.push(nameValue);
90
+ const dropdown = dropdownElm.querySelector('.current-selection');
91
+ if (dropdown) {
92
+ const dropdownSelection = (_a = dropdown.textContent) !== null && _a !== void 0 ? _a : '';
93
+ if (dropdownSelection.length) {
94
+ const dropdownValue = {
95
+ name: this.rowDropdownLabel,
96
+ value: dropdownSelection,
97
+ };
98
+ row.row.push(dropdownValue);
99
+ }
100
+ }
101
+ if (!dropdown && columnValueCount === 3) {
102
+ const dropdownValue = {
103
+ name: this.rowDropdownLabel,
104
+ value: '',
105
+ };
106
+ row.row.push(dropdownValue);
107
+ }
108
+ const inputValue = parseInt((_c = (_b = inputElm.querySelector('input')) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : '0');
109
+ if (inputValue > 0) {
110
+ const inputColumnValue = { name: this.rowInputLabel, value: inputValue.toString() };
111
+ row.row.push(inputColumnValue);
112
+ }
113
+ if (row.row.length === columnValueCount) {
114
+ formValues.push(row);
115
+ }
116
+ });
117
+ }
118
+ if (formValues.length && formValues.length === allRows.length) {
119
+ const valueJsonString = JSON.stringify(formValues);
120
+ this.formValue = `PN-JSON|${valueJsonString}`;
121
+ }
122
+ else {
123
+ this.formValue = '';
124
+ }
125
+ this.rowvalues.emit(this.formValue);
126
+ this.checkInputTotal();
127
+ }
128
+ addRowElement() {
129
+ const selected = this.pnRowSelectDropdown.querySelector('.current-selection .pn-option-content');
130
+ const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
131
+ const slotElm = this.tableBody;
132
+ const newRow = document.createElement('tr');
133
+ newRow.setAttribute('index', `${this.nextRowIndex}`);
134
+ newRow.setAttribute('class', 'generated-table-row');
135
+ newRow.onclick = e => this.formRowEvent(e);
136
+ const rowNameColumn = document.createElement('td');
137
+ rowNameColumn.setAttribute('class', 'tr-name');
138
+ rowNameColumn.innerHTML = selectedValue;
139
+ newRow.appendChild(rowNameColumn);
140
+ if (this.rowHasDropdown) {
141
+ const rowDropdownColumn = this.createDropdownColumn(selectedValue);
142
+ newRow.appendChild(rowDropdownColumn);
143
+ }
144
+ const rowInputColumn = this.createInputColumn(selectedValue);
145
+ newRow.appendChild(rowInputColumn);
146
+ const deleteButton = this.createDeleteButtonColumn();
147
+ newRow.appendChild(deleteButton);
148
+ slotElm.appendChild(newRow);
149
+ this.updateRowSelectDropdown();
150
+ this.nextRowIndex++;
151
+ }
152
+ createDropdownColumn(selectedValue) {
153
+ const dropdownColumn = document.createElement('td');
154
+ dropdownColumn.setAttribute('class', 'tr-dropdown');
155
+ const selectedItem = this._dropdownData.find(arr => arr.caption === selectedValue);
156
+ if (Array.isArray(selectedItem.values) && selectedItem.values.length) {
157
+ const dropdown = document.createElement('pn-select');
158
+ dropdown.setAttribute('name', `${selectedValue}-dropdown`);
159
+ dropdown.setAttribute('placeholder', this.rowDropdownPlaceholder);
160
+ selectedItem.values.forEach(childItem => {
161
+ const childOption = document.createElement('pn-option');
162
+ childOption.innerHTML = childItem.caption;
163
+ dropdown.appendChild(childOption);
164
+ });
165
+ dropdownColumn.appendChild(dropdown);
166
+ }
167
+ return dropdownColumn;
168
+ }
169
+ createInputColumn(selectedValue) {
170
+ const inputColumn = document.createElement('td');
171
+ inputColumn.setAttribute('class', 'tr-input');
172
+ const inputElm = document.createElement('pn-marketweb-input');
173
+ inputElm.setAttribute('type', 'number');
174
+ inputElm.setAttribute('name', `${selectedValue}-input`);
175
+ inputElm.setAttribute('placeholder', '0');
176
+ inputColumn.appendChild(inputElm);
177
+ return inputColumn;
178
+ }
179
+ createDeleteButtonColumn() {
180
+ const buttonColumn = document.createElement('td');
181
+ buttonColumn.setAttribute('class', 'tr-delete');
182
+ const buttonElm = document.createElement('pn-button');
183
+ buttonElm.onclick = e => this.deleteRow(e);
184
+ buttonElm.setAttribute('appearance', 'warning');
185
+ buttonElm.setAttribute('small', 'true');
186
+ buttonElm.appendChild(document.createTextNode(this.rowDeleteButtonText));
187
+ buttonColumn.appendChild(buttonElm);
188
+ return buttonColumn;
189
+ }
190
+ updateRowSelectDropdown() {
191
+ const rowNames = [].map.call(this.tableBody.querySelectorAll('.tr-name'), el => {
192
+ return el.innerHTML;
193
+ });
194
+ if (rowNames.length) {
195
+ this.rowSelectDropdownArr = [];
196
+ this._dropdownData.forEach(element => {
197
+ if (!rowNames.includes(element.caption)) {
198
+ this.rowSelectDropdownArr.push(element.caption);
199
+ }
200
+ });
201
+ }
202
+ else {
203
+ this.setRowSelectDropdownArr();
204
+ }
205
+ const selectOptions = this.pnRowSelectDropdown.querySelectorAll('pn-option');
206
+ selectOptions.forEach(elm => {
207
+ elm.removeAttribute('selected');
208
+ });
209
+ const placeholder = this.pnRowSelectDropdown.querySelector('.pn-option-content');
210
+ placeholder.innerHTML = this.addRowDropdownPlaceholder;
211
+ this.updateHiddenFieldValue();
212
+ }
213
+ deleteRow(e) {
214
+ e.preventDefault();
215
+ this.nextRowIndex--;
216
+ const targetElm = e.currentTarget;
217
+ const targetRow = targetElm.closest('tr');
218
+ targetRow.remove();
219
+ const allRows = [...this.tableBody.querySelectorAll('tr')];
220
+ allRows.map((elm, index) => {
221
+ elm.setAttribute('index', `${index}`);
222
+ });
223
+ this.updateRowSelectDropdown();
224
+ }
225
+ checkInputTotal() {
226
+ const allRows = this.tableBody.querySelectorAll('tr');
227
+ if (this.totalInputLimit === 0 || allRows.length < 1) {
228
+ this.showWarning = false;
229
+ return;
230
+ }
231
+ let totalInput = 0;
232
+ allRows.forEach(element => {
233
+ var _a;
234
+ const inputField = element.querySelector('pn-marketweb-input');
235
+ if (inputField.value) {
236
+ totalInput += (_a = parseInt(inputField.value)) !== null && _a !== void 0 ? _a : 0;
237
+ }
238
+ });
239
+ this.showWarning = totalInput > this.totalInputLimit ? true : false;
240
+ }
241
+ render() {
242
+ var _a;
243
+ return (h(Host, null, h("div", { class: "dropdown-choice-form-row" }, h("pn-select", { ref: el => (this.pnRowSelectDropdown = el), name: this.addRowDropdownName, placeholder: this.addRowDropdownPlaceholder, label: this.addRowDropdownLabel, class: "pn-row-select-dropdown" }, (_a = this.rowSelectDropdownArr) === null || _a === void 0 ? void 0 : _a.map((value) => (h("pn-option", null, value))))), h("div", { class: "dropdown-choice-form-row" }, h("table", { class: "pn-dropdown-choice-table" }, h("thead", { ref: el => (this.tableHead = el) }, this.nextRowIndex === 0 ? null : (h("tr", null, h("th", { class: "table-header--name" }, h("label", null, this.rowNameLabel)), this.rowHasDropdown ? (h("th", { class: "table-header--dropdown" }, h("label", null, this.rowDropdownLabel))) : null, h("th", { class: "table-header--input" }, h("label", null, this.rowInputLabel)), h("th", { class: "table-header--delete" })))), h("tbody", { ref: el => (this.tableBody = el), class: "pn-dropdown-choice-table-slot" }, h("slot", null)), h("tfoot", null, this.showWarning ? (h("tr", null, h("td", { colSpan: this.columnCount }, h("pn-icon", { symbol: "alert-exclamation-circle", small: true, color: "warning" }), h("small", { class: "dropdown-choice-error-message" }, this.inputLimitWarning)))) : null)))));
244
+ }
245
+ get hostElement() { return this; }
246
+ static get watchers() { return {
247
+ "dropdownData": ["dropdownDataWatcher"]
248
+ }; }
249
+ static get style() { return pnDropdownChoiceAddsRowCss; }
250
+ }, [4, "pn-dropdown-choice-adds-row", {
251
+ "dropdownData": [1, "dropdown-data"],
252
+ "addRowDropdownName": [1, "add-row-dropdown-name"],
253
+ "addRowDropdownPlaceholder": [1, "add-row-dropdown-placeholder"],
254
+ "addRowDropdownLabel": [1, "add-row-dropdown-label"],
255
+ "rowNameLabel": [1, "row-name-label"],
256
+ "rowHasDropdown": [4, "row-has-dropdown"],
257
+ "rowDropdownLabel": [1, "row-dropdown-label"],
258
+ "rowDropdownPlaceholder": [1, "row-dropdown-placeholder"],
259
+ "rowInputLabel": [1, "row-input-label"],
260
+ "rowDeleteButtonText": [1, "row-delete-button-text"],
261
+ "totalInputLimit": [2, "total-input-limit"],
262
+ "inputLimitWarning": [1, "input-limit-warning"],
263
+ "nextRowIndex": [32],
264
+ "rowSelectDropdownArr": [32],
265
+ "columnCount": [32],
266
+ "showWarning": [32],
267
+ "formValue": [32]
268
+ }]);
269
+ function defineCustomElement$1() {
270
+ if (typeof customElements === "undefined") {
271
+ return;
272
+ }
273
+ const components = ["pn-dropdown-choice-adds-row", "pn-marketweb-input"];
274
+ components.forEach(tagName => { switch (tagName) {
275
+ case "pn-dropdown-choice-adds-row":
276
+ if (!customElements.get(tagName)) {
277
+ customElements.define(tagName, pnDropdownChoiceAddsRow);
278
+ }
279
+ break;
280
+ case "pn-marketweb-input":
281
+ if (!customElements.get(tagName)) {
282
+ defineCustomElement$2();
283
+ }
284
+ break;
285
+ } });
286
+ }
287
+ defineCustomElement$1();
288
+
289
+ const PnDropdownChoiceAddsRow = pnDropdownChoiceAddsRow;
290
+ const defineCustomElement = defineCustomElement$1;
291
+
292
+ export { PnDropdownChoiceAddsRow, defineCustomElement };
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as createStore } from './index3.js';
2
+ import { c as createStore } from './index4.js';
3
3
  import { d as defineCustomElement$4 } from './pn-product-card2.js';
4
4
  import { d as defineCustomElement$3 } from './pn-product-card-info2.js';
5
5
  import { d as defineCustomElement$2 } from './pn-product-card-price2.js';
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as createStore } from './index3.js';
2
+ import { c as createStore } from './index4.js';
3
3
  import { d as defineCustomElement$3 } from './pn-product-card2.js';
4
4
  import { d as defineCustomElement$2 } from './pn-product-tile-info2.js';
5
5
  import { d as defineCustomElement$1 } from './pn-product-tile-price2.js';
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index3.js';
1
+ import { c as createStore } from './index4.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({
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as createStore } from './index3.js';
2
+ import { c as createStore } from './index4.js';
3
3
 
4
4
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
5
5
  const { state, onChange } = createStore({
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { c as createStore } from './index3.js';
2
+ import { c as createStore } from './index4.js';
3
3
 
4
4
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
5
5
  const { state, onChange } = createStore({
@@ -1,75 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { d as debounce_1 } from './index3.js';
2
3
  import { v as v4 } from './v4.js';
3
4
 
4
- /**
5
- * Returns a function, that, as long as it continues to be invoked, will not
6
- * be triggered. The function will be called after it stops being called for
7
- * N milliseconds. If `immediate` is passed, trigger the function on the
8
- * leading edge, instead of the trailing. The function also has a property 'clear'
9
- * that is a function which will clear the timer to prevent previously scheduled executions.
10
- *
11
- * @source underscore.js
12
- * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
13
- * @param {Function} function to wrap
14
- * @param {Number} timeout in ms (`100`)
15
- * @param {Boolean} whether to execute at the beginning (`false`)
16
- * @api public
17
- */
18
- function debounce(func, wait, immediate){
19
- var timeout, args, context, timestamp, result;
20
- if (null == wait) wait = 100;
21
-
22
- function later() {
23
- var last = Date.now() - timestamp;
24
-
25
- if (last < wait && last >= 0) {
26
- timeout = setTimeout(later, wait - last);
27
- } else {
28
- timeout = null;
29
- if (!immediate) {
30
- result = func.apply(context, args);
31
- context = args = null;
32
- }
33
- }
34
- }
35
- var debounced = function(){
36
- context = this;
37
- args = arguments;
38
- timestamp = Date.now();
39
- var callNow = immediate && !timeout;
40
- if (!timeout) timeout = setTimeout(later, wait);
41
- if (callNow) {
42
- result = func.apply(context, args);
43
- context = args = null;
44
- }
45
-
46
- return result;
47
- };
48
-
49
- debounced.clear = function() {
50
- if (timeout) {
51
- clearTimeout(timeout);
52
- timeout = null;
53
- }
54
- };
55
-
56
- debounced.flush = function() {
57
- if (timeout) {
58
- result = func.apply(context, args);
59
- context = args = null;
60
-
61
- clearTimeout(timeout);
62
- timeout = null;
63
- }
64
- };
65
-
66
- return debounced;
67
- }
68
- // Adds compatibility for ES modules
69
- debounce.debounce = debounce;
70
-
71
- var debounce_1 = debounce;
72
-
73
5
  const pnMultiFormfieldCss = ".pn-multi-formfield{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}";
74
6
 
75
7
  const PnMultiFormField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as createStore } from './index3.js';
2
+ import { c as createStore } from './index4.js';
3
3
  import { s as sendDirectUrl, a as stampShopUrl } from './data.js';
4
4
  import { d as defineCustomElement$5 } from './pn-product-card2.js';
5
5
  import { d as defineCustomElement$4 } from './pn-product-card-info2.js';
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index3.js';
1
+ import { c as createStore } from './index4.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({
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { F as FetchHelper, M as MarketWebContextService } from './MarketWebContextService.js';
3
- import { c as createStore } from './index3.js';
3
+ import { c as createStore } from './index4.js';
4
4
  import { d as defineCustomElement$8 } from './pn-choice-button2.js';
5
5
  import { d as defineCustomElement$7 } from './pn-proxio-findprice-result2.js';
6
6
  import { d as defineCustomElement$6 } from './pn-proxio-productcard2.js';
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index3.js';
1
+ import { c as createStore } from './index4.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({
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Returns a function, that, as long as it continues to be invoked, will not
3
+ * be triggered. The function will be called after it stops being called for
4
+ * N milliseconds. If `immediate` is passed, trigger the function on the
5
+ * leading edge, instead of the trailing. The function also has a property 'clear'
6
+ * that is a function which will clear the timer to prevent previously scheduled executions.
7
+ *
8
+ * @source underscore.js
9
+ * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
10
+ * @param {Function} function to wrap
11
+ * @param {Number} timeout in ms (`100`)
12
+ * @param {Boolean} whether to execute at the beginning (`false`)
13
+ * @api public
14
+ */
15
+ function debounce(func, wait, immediate){
16
+ var timeout, args, context, timestamp, result;
17
+ if (null == wait) wait = 100;
18
+
19
+ function later() {
20
+ var last = Date.now() - timestamp;
21
+
22
+ if (last < wait && last >= 0) {
23
+ timeout = setTimeout(later, wait - last);
24
+ } else {
25
+ timeout = null;
26
+ if (!immediate) {
27
+ result = func.apply(context, args);
28
+ context = args = null;
29
+ }
30
+ }
31
+ }
32
+ var debounced = function(){
33
+ context = this;
34
+ args = arguments;
35
+ timestamp = Date.now();
36
+ var callNow = immediate && !timeout;
37
+ if (!timeout) timeout = setTimeout(later, wait);
38
+ if (callNow) {
39
+ result = func.apply(context, args);
40
+ context = args = null;
41
+ }
42
+
43
+ return result;
44
+ };
45
+
46
+ debounced.clear = function() {
47
+ if (timeout) {
48
+ clearTimeout(timeout);
49
+ timeout = null;
50
+ }
51
+ };
52
+
53
+ debounced.flush = function() {
54
+ if (timeout) {
55
+ result = func.apply(context, args);
56
+ context = args = null;
57
+
58
+ clearTimeout(timeout);
59
+ timeout = null;
60
+ }
61
+ };
62
+
63
+ return debounced;
64
+ }
65
+ // Adds compatibility for ES modules
66
+ debounce.debounce = debounce;
67
+
68
+ var debounce_1 = debounce;
69
+
70
+ export { debounce_1 as d };