@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,58 @@
1
+ pn-dropdown-choice-adds-row {
2
+ gap: 1rem;
3
+ }
4
+ pn-dropdown-choice-adds-row .dropdown-choice-form-row {
5
+ display: flex;
6
+ gap: 1rem;
7
+ }
8
+ pn-dropdown-choice-adds-row .pn-row-select-dropdown {
9
+ width: 50%;
10
+ margin-bottom: 1rem;
11
+ }
12
+ @media only screen and (max-width: 640px) {
13
+ pn-dropdown-choice-adds-row .pn-row-select-dropdown {
14
+ width: 100%;
15
+ }
16
+ }
17
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table {
18
+ width: 100%;
19
+ border-spacing: 0rem;
20
+ }
21
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th {
22
+ text-align: left;
23
+ padding: 1rem 0.5rem;
24
+ }
25
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th label {
26
+ color: #5E554A;
27
+ font-size: 1.4rem;
28
+ font-weight: 400;
29
+ }
30
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--name {
31
+ width: 40%;
32
+ }
33
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--dropdown {
34
+ width: 40%;
35
+ }
36
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--input {
37
+ width: 10%;
38
+ }
39
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--delete {
40
+ width: 10%;
41
+ }
42
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody td {
43
+ padding: 0.5rem;
44
+ }
45
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody tr:nth-child(even) {
46
+ background-color: #effbff;
47
+ }
48
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody .tr-delete {
49
+ text-align: center;
50
+ }
51
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td small {
52
+ color: #A70707;
53
+ vertical-align: middle;
54
+ }
55
+ pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td pn-icon {
56
+ margin-right: 0.25em;
57
+ vertical-align: middle;
58
+ }
@@ -0,0 +1,508 @@
1
+ import { h, Host } from '@stencil/core';
2
+ import { debounce } from 'debounce';
3
+ export class pnDropdownChoiceAddsRow {
4
+ constructor() {
5
+ this.pnRowSelectDropdown = null;
6
+ this.tableHead = null;
7
+ this.tableBody = null;
8
+ this.formRowEvent = e => {
9
+ var _a;
10
+ const debouncedAddValue = debounce(this.updateHiddenFieldValue.bind(this), 500);
11
+ if (e.target.matches('input')) {
12
+ ['change', 'keyup'].forEach(eventName => {
13
+ e.target.addEventListener(eventName, debouncedAddValue);
14
+ });
15
+ }
16
+ else {
17
+ const rowDropdown = (_a = e.target.closest('.generated-table-row')) === null || _a === void 0 ? void 0 : _a.querySelector('pn-select');
18
+ if (rowDropdown) {
19
+ rowDropdown.addEventListener('selectchange', debouncedAddValue);
20
+ }
21
+ }
22
+ };
23
+ this.dropdownData = null;
24
+ this.addRowDropdownName = '';
25
+ this.addRowDropdownPlaceholder = '';
26
+ this.addRowDropdownLabel = '';
27
+ this.rowNameLabel = '';
28
+ this.rowHasDropdown = true;
29
+ this.rowDropdownLabel = '';
30
+ this.rowDropdownPlaceholder = '';
31
+ this.rowInputLabel = '';
32
+ this.rowDeleteButtonText = '';
33
+ this.totalInputLimit = 0;
34
+ this.inputLimitWarning = null;
35
+ this.nextRowIndex = null;
36
+ this.rowSelectDropdownArr = null;
37
+ this.columnCount = null;
38
+ this.showWarning = false;
39
+ this.formValue = null;
40
+ }
41
+ dropdownDataWatcher() {
42
+ if (typeof this.dropdownData === 'string') {
43
+ this._dropdownData = JSON.parse(this.dropdownData);
44
+ }
45
+ else {
46
+ this._dropdownData = this.dropdownData;
47
+ }
48
+ }
49
+ componentWillLoad() {
50
+ this.dropdownDataWatcher();
51
+ }
52
+ componentDidLoad() {
53
+ this.setInitialValues();
54
+ this.addEventHandlers();
55
+ }
56
+ addEventHandlers() {
57
+ this.pnRowSelectDropdown.addEventListener('selectchange', this.addRowElement.bind(this));
58
+ }
59
+ setInitialValues() {
60
+ this.nextRowIndex = 0;
61
+ this.columnCount = this.rowHasDropdown ? 4 : 3;
62
+ this.setRowSelectDropdownArr();
63
+ }
64
+ setRowSelectDropdownArr() {
65
+ this.rowSelectDropdownArr = [];
66
+ this._dropdownData.forEach(element => {
67
+ this.rowSelectDropdownArr.push(element.caption);
68
+ });
69
+ }
70
+ updateHiddenFieldValue() {
71
+ const allRows = [...this.tableBody.querySelectorAll('tr')];
72
+ const columnValueCount = this.rowHasDropdown ? 3 : 2;
73
+ const formValues = [];
74
+ if (allRows.length) {
75
+ allRows.forEach(elm => {
76
+ var _a, _b, _c;
77
+ const row = { row: [] };
78
+ const nameElm = elm.querySelector('.tr-name');
79
+ const dropdownElm = elm.querySelector('.tr-dropdown');
80
+ const inputElm = elm.querySelector('.tr-input');
81
+ const nameValue = { name: this.rowNameLabel, value: nameElm === null || nameElm === void 0 ? void 0 : nameElm.innerHTML };
82
+ row.row.push(nameValue);
83
+ const dropdown = dropdownElm.querySelector('.current-selection');
84
+ if (dropdown) {
85
+ const dropdownSelection = (_a = dropdown.textContent) !== null && _a !== void 0 ? _a : '';
86
+ if (dropdownSelection.length) {
87
+ const dropdownValue = {
88
+ name: this.rowDropdownLabel,
89
+ value: dropdownSelection,
90
+ };
91
+ row.row.push(dropdownValue);
92
+ }
93
+ }
94
+ if (!dropdown && columnValueCount === 3) {
95
+ const dropdownValue = {
96
+ name: this.rowDropdownLabel,
97
+ value: '',
98
+ };
99
+ row.row.push(dropdownValue);
100
+ }
101
+ const inputValue = parseInt((_c = (_b = inputElm.querySelector('input')) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : '0');
102
+ if (inputValue > 0) {
103
+ const inputColumnValue = { name: this.rowInputLabel, value: inputValue.toString() };
104
+ row.row.push(inputColumnValue);
105
+ }
106
+ if (row.row.length === columnValueCount) {
107
+ formValues.push(row);
108
+ }
109
+ });
110
+ }
111
+ if (formValues.length && formValues.length === allRows.length) {
112
+ const valueJsonString = JSON.stringify(formValues);
113
+ this.formValue = `PN-JSON|${valueJsonString}`;
114
+ }
115
+ else {
116
+ this.formValue = '';
117
+ }
118
+ this.rowvalues.emit(this.formValue);
119
+ this.checkInputTotal();
120
+ }
121
+ addRowElement() {
122
+ const selected = this.pnRowSelectDropdown.querySelector('.current-selection .pn-option-content');
123
+ const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
124
+ const slotElm = this.tableBody;
125
+ const newRow = document.createElement('tr');
126
+ newRow.setAttribute('index', `${this.nextRowIndex}`);
127
+ newRow.setAttribute('class', 'generated-table-row');
128
+ newRow.onclick = e => this.formRowEvent(e);
129
+ const rowNameColumn = document.createElement('td');
130
+ rowNameColumn.setAttribute('class', 'tr-name');
131
+ rowNameColumn.innerHTML = selectedValue;
132
+ newRow.appendChild(rowNameColumn);
133
+ if (this.rowHasDropdown) {
134
+ const rowDropdownColumn = this.createDropdownColumn(selectedValue);
135
+ newRow.appendChild(rowDropdownColumn);
136
+ }
137
+ const rowInputColumn = this.createInputColumn(selectedValue);
138
+ newRow.appendChild(rowInputColumn);
139
+ const deleteButton = this.createDeleteButtonColumn();
140
+ newRow.appendChild(deleteButton);
141
+ slotElm.appendChild(newRow);
142
+ this.updateRowSelectDropdown();
143
+ this.nextRowIndex++;
144
+ }
145
+ createDropdownColumn(selectedValue) {
146
+ const dropdownColumn = document.createElement('td');
147
+ dropdownColumn.setAttribute('class', 'tr-dropdown');
148
+ const selectedItem = this._dropdownData.find(arr => arr.caption === selectedValue);
149
+ if (Array.isArray(selectedItem.values) && selectedItem.values.length) {
150
+ const dropdown = document.createElement('pn-select');
151
+ dropdown.setAttribute('name', `${selectedValue}-dropdown`);
152
+ dropdown.setAttribute('placeholder', this.rowDropdownPlaceholder);
153
+ selectedItem.values.forEach(childItem => {
154
+ const childOption = document.createElement('pn-option');
155
+ childOption.innerHTML = childItem.caption;
156
+ dropdown.appendChild(childOption);
157
+ });
158
+ dropdownColumn.appendChild(dropdown);
159
+ }
160
+ return dropdownColumn;
161
+ }
162
+ createInputColumn(selectedValue) {
163
+ const inputColumn = document.createElement('td');
164
+ inputColumn.setAttribute('class', 'tr-input');
165
+ const inputElm = document.createElement('pn-marketweb-input');
166
+ inputElm.setAttribute('type', 'number');
167
+ inputElm.setAttribute('name', `${selectedValue}-input`);
168
+ inputElm.setAttribute('placeholder', '0');
169
+ inputColumn.appendChild(inputElm);
170
+ return inputColumn;
171
+ }
172
+ createDeleteButtonColumn() {
173
+ const buttonColumn = document.createElement('td');
174
+ buttonColumn.setAttribute('class', 'tr-delete');
175
+ const buttonElm = document.createElement('pn-button');
176
+ buttonElm.onclick = e => this.deleteRow(e);
177
+ buttonElm.setAttribute('appearance', 'warning');
178
+ buttonElm.setAttribute('small', 'true');
179
+ buttonElm.appendChild(document.createTextNode(this.rowDeleteButtonText));
180
+ buttonColumn.appendChild(buttonElm);
181
+ return buttonColumn;
182
+ }
183
+ updateRowSelectDropdown() {
184
+ const rowNames = [].map.call(this.tableBody.querySelectorAll('.tr-name'), el => {
185
+ return el.innerHTML;
186
+ });
187
+ if (rowNames.length) {
188
+ this.rowSelectDropdownArr = [];
189
+ this._dropdownData.forEach(element => {
190
+ if (!rowNames.includes(element.caption)) {
191
+ this.rowSelectDropdownArr.push(element.caption);
192
+ }
193
+ });
194
+ }
195
+ else {
196
+ this.setRowSelectDropdownArr();
197
+ }
198
+ const selectOptions = this.pnRowSelectDropdown.querySelectorAll('pn-option');
199
+ selectOptions.forEach(elm => {
200
+ elm.removeAttribute('selected');
201
+ });
202
+ const placeholder = this.pnRowSelectDropdown.querySelector('.pn-option-content');
203
+ placeholder.innerHTML = this.addRowDropdownPlaceholder;
204
+ this.updateHiddenFieldValue();
205
+ }
206
+ deleteRow(e) {
207
+ e.preventDefault();
208
+ this.nextRowIndex--;
209
+ const targetElm = e.currentTarget;
210
+ const targetRow = targetElm.closest('tr');
211
+ targetRow.remove();
212
+ const allRows = [...this.tableBody.querySelectorAll('tr')];
213
+ allRows.map((elm, index) => {
214
+ elm.setAttribute('index', `${index}`);
215
+ });
216
+ this.updateRowSelectDropdown();
217
+ }
218
+ checkInputTotal() {
219
+ const allRows = this.tableBody.querySelectorAll('tr');
220
+ if (this.totalInputLimit === 0 || allRows.length < 1) {
221
+ this.showWarning = false;
222
+ return;
223
+ }
224
+ let totalInput = 0;
225
+ allRows.forEach(element => {
226
+ var _a;
227
+ const inputField = element.querySelector('pn-marketweb-input');
228
+ if (inputField.value) {
229
+ totalInput += (_a = parseInt(inputField.value)) !== null && _a !== void 0 ? _a : 0;
230
+ }
231
+ });
232
+ this.showWarning = totalInput > this.totalInputLimit ? true : false;
233
+ }
234
+ render() {
235
+ var _a;
236
+ 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)))));
237
+ }
238
+ static get is() { return "pn-dropdown-choice-adds-row"; }
239
+ static get originalStyleUrls() {
240
+ return {
241
+ "$": ["pn-dropdown-choice-adds-row.scss"]
242
+ };
243
+ }
244
+ static get styleUrls() {
245
+ return {
246
+ "$": ["pn-dropdown-choice-adds-row.css"]
247
+ };
248
+ }
249
+ static get properties() {
250
+ return {
251
+ "dropdownData": {
252
+ "type": "string",
253
+ "mutable": false,
254
+ "complexType": {
255
+ "original": "string | Root[]",
256
+ "resolved": "Root[] | string",
257
+ "references": {
258
+ "Root": {
259
+ "location": "import",
260
+ "path": "./types"
261
+ }
262
+ }
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": ""
269
+ },
270
+ "attribute": "dropdown-data",
271
+ "reflect": false,
272
+ "defaultValue": "null"
273
+ },
274
+ "addRowDropdownName": {
275
+ "type": "string",
276
+ "mutable": false,
277
+ "complexType": {
278
+ "original": "string",
279
+ "resolved": "string",
280
+ "references": {}
281
+ },
282
+ "required": false,
283
+ "optional": false,
284
+ "docs": {
285
+ "tags": [],
286
+ "text": ""
287
+ },
288
+ "attribute": "add-row-dropdown-name",
289
+ "reflect": false,
290
+ "defaultValue": "''"
291
+ },
292
+ "addRowDropdownPlaceholder": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "string",
297
+ "resolved": "string",
298
+ "references": {}
299
+ },
300
+ "required": false,
301
+ "optional": false,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": ""
305
+ },
306
+ "attribute": "add-row-dropdown-placeholder",
307
+ "reflect": false,
308
+ "defaultValue": "''"
309
+ },
310
+ "addRowDropdownLabel": {
311
+ "type": "string",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "string",
315
+ "resolved": "string",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": false,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": ""
323
+ },
324
+ "attribute": "add-row-dropdown-label",
325
+ "reflect": false,
326
+ "defaultValue": "''"
327
+ },
328
+ "rowNameLabel": {
329
+ "type": "string",
330
+ "mutable": false,
331
+ "complexType": {
332
+ "original": "string",
333
+ "resolved": "string",
334
+ "references": {}
335
+ },
336
+ "required": false,
337
+ "optional": false,
338
+ "docs": {
339
+ "tags": [],
340
+ "text": ""
341
+ },
342
+ "attribute": "row-name-label",
343
+ "reflect": false,
344
+ "defaultValue": "''"
345
+ },
346
+ "rowHasDropdown": {
347
+ "type": "boolean",
348
+ "mutable": false,
349
+ "complexType": {
350
+ "original": "boolean",
351
+ "resolved": "boolean",
352
+ "references": {}
353
+ },
354
+ "required": false,
355
+ "optional": false,
356
+ "docs": {
357
+ "tags": [],
358
+ "text": ""
359
+ },
360
+ "attribute": "row-has-dropdown",
361
+ "reflect": false,
362
+ "defaultValue": "true"
363
+ },
364
+ "rowDropdownLabel": {
365
+ "type": "string",
366
+ "mutable": false,
367
+ "complexType": {
368
+ "original": "string",
369
+ "resolved": "string",
370
+ "references": {}
371
+ },
372
+ "required": false,
373
+ "optional": false,
374
+ "docs": {
375
+ "tags": [],
376
+ "text": ""
377
+ },
378
+ "attribute": "row-dropdown-label",
379
+ "reflect": false,
380
+ "defaultValue": "''"
381
+ },
382
+ "rowDropdownPlaceholder": {
383
+ "type": "string",
384
+ "mutable": false,
385
+ "complexType": {
386
+ "original": "string",
387
+ "resolved": "string",
388
+ "references": {}
389
+ },
390
+ "required": false,
391
+ "optional": false,
392
+ "docs": {
393
+ "tags": [],
394
+ "text": ""
395
+ },
396
+ "attribute": "row-dropdown-placeholder",
397
+ "reflect": false,
398
+ "defaultValue": "''"
399
+ },
400
+ "rowInputLabel": {
401
+ "type": "string",
402
+ "mutable": false,
403
+ "complexType": {
404
+ "original": "string",
405
+ "resolved": "string",
406
+ "references": {}
407
+ },
408
+ "required": false,
409
+ "optional": false,
410
+ "docs": {
411
+ "tags": [],
412
+ "text": ""
413
+ },
414
+ "attribute": "row-input-label",
415
+ "reflect": false,
416
+ "defaultValue": "''"
417
+ },
418
+ "rowDeleteButtonText": {
419
+ "type": "string",
420
+ "mutable": false,
421
+ "complexType": {
422
+ "original": "string",
423
+ "resolved": "string",
424
+ "references": {}
425
+ },
426
+ "required": false,
427
+ "optional": false,
428
+ "docs": {
429
+ "tags": [],
430
+ "text": ""
431
+ },
432
+ "attribute": "row-delete-button-text",
433
+ "reflect": false,
434
+ "defaultValue": "''"
435
+ },
436
+ "totalInputLimit": {
437
+ "type": "number",
438
+ "mutable": false,
439
+ "complexType": {
440
+ "original": "number",
441
+ "resolved": "number",
442
+ "references": {}
443
+ },
444
+ "required": false,
445
+ "optional": false,
446
+ "docs": {
447
+ "tags": [],
448
+ "text": ""
449
+ },
450
+ "attribute": "total-input-limit",
451
+ "reflect": false,
452
+ "defaultValue": "0"
453
+ },
454
+ "inputLimitWarning": {
455
+ "type": "string",
456
+ "mutable": false,
457
+ "complexType": {
458
+ "original": "string",
459
+ "resolved": "string",
460
+ "references": {}
461
+ },
462
+ "required": false,
463
+ "optional": false,
464
+ "docs": {
465
+ "tags": [],
466
+ "text": ""
467
+ },
468
+ "attribute": "input-limit-warning",
469
+ "reflect": false,
470
+ "defaultValue": "null"
471
+ }
472
+ };
473
+ }
474
+ static get states() {
475
+ return {
476
+ "nextRowIndex": {},
477
+ "rowSelectDropdownArr": {},
478
+ "columnCount": {},
479
+ "showWarning": {},
480
+ "formValue": {}
481
+ };
482
+ }
483
+ static get events() {
484
+ return [{
485
+ "method": "rowvalues",
486
+ "name": "rowvalues",
487
+ "bubbles": true,
488
+ "cancelable": true,
489
+ "composed": true,
490
+ "docs": {
491
+ "tags": [],
492
+ "text": ""
493
+ },
494
+ "complexType": {
495
+ "original": "string",
496
+ "resolved": "string",
497
+ "references": {}
498
+ }
499
+ }];
500
+ }
501
+ static get elementRef() { return "hostElement"; }
502
+ static get watchers() {
503
+ return [{
504
+ "propName": "dropdownData",
505
+ "methodName": "dropdownDataWatcher"
506
+ }];
507
+ }
508
+ }
@@ -0,0 +1,43 @@
1
+ import readme from './readme.md';
2
+
3
+ export default {
4
+ title: 'input/Dropdownlist choice adds new row',
5
+ parameters: {
6
+ notes: readme,
7
+ },
8
+ };
9
+
10
+ const Template = ({ ...args }) => {
11
+ return `
12
+ <pn-dropdown-choice-adds-row
13
+ dropdown-data='${args.dropdownData}'
14
+ add-row-dropdown-label="${args.addRowDropdownLabel}"
15
+ add-row-dropdown-placeholder="${args.addRowDropdownPlaceholder}"
16
+ row-name-label="${args.rowNameLabel}"
17
+ row-has-dropdown="${args.rowHasDropdown}"
18
+ row-dropdown-label="${args.rowDropdownLabel}"
19
+ row-dropdown-placeholder="${args.rowDropdownPlaceholder}"
20
+ row-input-label="${args.rowInputLabel}"
21
+ row-delete-button-text="${args.rowDeleteButtonText}"
22
+ total-input-limit="${args.totalInputLimit}"
23
+ input-limit-warning="${args.inputLimitWarning}"
24
+ >
25
+ </pn-dropdown-choice-adds-row>`;
26
+ };
27
+
28
+ export const Primary = Template.bind({});
29
+ Primary.args = {
30
+ dropdownData:
31
+ '[{"caption":"First","value":"first","values":[{"caption":"First-child 1","value":"First-child 1"},{"caption":"First-child 2","value":"First-child 2"}]},{"caption":"Second","value":"second","values":[{"caption":"Second-child 1","value":"Second-child 1"},{"caption":"Second-child 2","value":"Second-child 2"}]},{"caption":"Third","value":"Third","values":[]}]',
32
+ addRowDropdownName: '__addrowdropdown',
33
+ addRowDropdownPlaceholder: '-- Vaelg her --',
34
+ addRowDropdownLabel: 'Produkter til afhentning:*',
35
+ rowNameLabel: 'Produkt',
36
+ rowHasDropdown: true,
37
+ rowDropdownLabel: 'Transportenhed',
38
+ rowDropdownPlaceholder: '-- Vaelg her --',
39
+ rowInputLabel: 'Antal',
40
+ rowDeleteButtonText: 'Slet',
41
+ totalInputLimit: 30,
42
+ inputLimitWarning: 'warning',
43
+ };
@@ -8,6 +8,8 @@ export { PnChartsCard as PnChartsCard } from '../types/components/charts/pn-char
8
8
  export { PnChoiceButton as PnChoiceButton } from '../types/components/input/pn-choice-button/pn-choice-button';
9
9
  export { PnCustomernumberSelector as PnCustomernumberSelector } from '../types/components/profile/pn-customernumber-selector/pn-customernumber-selector';
10
10
  export { PnProfileSelectorOption as PnCustomernumberSelectorOption } from '../types/components/profile/pn-customernumber-selector/pn-customernumber-selector-option';
11
+ export { PnDateAndTime as PnDateAndTime } from '../types/components/input/pn-date-and-time/pn-date-and-time';
12
+ export { pnDropdownChoiceAddsRow as PnDropdownChoiceAddsRow } from '../types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row';
11
13
  export { PnFilterCheckbox as PnFilterCheckbox } from '../types/components/input/pn-filter-checkbox/pn-filter-checkbox';
12
14
  export { PnfindPrice as PnFindPrice } from '../types/components/widgets/pn-find-price/pn-find-price';
13
15
  export { PnfindPriceResult as PnFindPriceResult } from '../types/components/widgets/pn-find-price/pn-find-price-result';
@@ -8,6 +8,8 @@ export { PnChartsCard, defineCustomElement as defineCustomElementPnChartsCard }
8
8
  export { PnChoiceButton, defineCustomElement as defineCustomElementPnChoiceButton } from './pn-choice-button.js';
9
9
  export { PnCustomernumberSelector, defineCustomElement as defineCustomElementPnCustomernumberSelector } from './pn-customernumber-selector.js';
10
10
  export { PnCustomernumberSelectorOption, defineCustomElement as defineCustomElementPnCustomernumberSelectorOption } from './pn-customernumber-selector-option.js';
11
+ export { PnDateAndTime, defineCustomElement as defineCustomElementPnDateAndTime } from './pn-date-and-time.js';
12
+ export { PnDropdownChoiceAddsRow, defineCustomElement as defineCustomElementPnDropdownChoiceAddsRow } from './pn-dropdown-choice-adds-row.js';
11
13
  export { PnFilterCheckbox, defineCustomElement as defineCustomElementPnFilterCheckbox } from './pn-filter-checkbox.js';
12
14
  export { PnFindPrice, defineCustomElement as defineCustomElementPnFindPrice } from './pn-find-price.js';
13
15
  export { PnFindPriceResult, defineCustomElement as defineCustomElementPnFindPriceResult } from './pn-find-price-result.js';