@postnord/pn-marketweb-components 3.3.9 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +15 -15
  2. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js.map +1 -1
  3. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  4. package/collection/components/animation/pn-animated-tile/pn-animated-tile.stories.js +57 -57
  5. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.stories.js +2 -2
  6. package/collection/components/animation/pn-scroll/pn-scroll.stories.js +4 -4
  7. package/collection/components/cards/pn-quote-card/pn-quote-card.stories.js +2 -2
  8. package/collection/components/cards/pn-teaser-card/pn-teaser-card.stories.js +2 -2
  9. package/collection/components/charts/pn-charts-card/pn-charts-card.stories.js +28 -28
  10. package/collection/components/cta/pn-cta-block/cta-block.stories.js +2 -2
  11. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.stories.js +2 -2
  12. package/collection/components/cta/pn-quick-cta/pn-quick-cta.stories.js +36 -36
  13. package/collection/components/cta/pn-share/pn-share.stories.js +2 -2
  14. package/collection/components/cta/pn-spotlight/pn-spotlight.stories.js +17 -17
  15. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.stories.js +2 -2
  16. package/collection/components/input/pn-address-autofill/pn-address-autofill.stories.js +2 -2
  17. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.stories.js +3 -3
  18. package/collection/components/input/pn-choice-button/choice-button.stories.js +2 -2
  19. package/collection/components/input/pn-date-and-time/pn-date-and-time.stories.js +3 -3
  20. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +2 -2
  21. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js +15 -15
  22. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js.map +1 -1
  23. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.stories.js +2 -2
  24. package/collection/components/input/pn-filter-checkbox/{checkbox.stories.js → pn-filter-checkbox.stories.js} +2 -2
  25. package/collection/components/input/pn-marketweb-input/{marketweb-input.stories.js → pn-marketweb-input.stories.js} +3 -3
  26. package/collection/components/input/pn-marketweb-search/{marketweb-search-field.stories.js → pn-marketweb-search-field.stories.js} +2 -2
  27. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.stories.js +2 -2
  28. package/collection/components/input/pn-multiple-input/pn-multiple-input.stories.js +2 -2
  29. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.stories.js +2 -2
  30. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +29 -21
  31. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js.map +1 -1
  32. package/collection/components/media/pn-media-block/{media-block.stories.js → pn-media-block.stories.js} +2 -2
  33. package/collection/components/minor/pn-app-banner/pn-app-banner.stories.js +7 -7
  34. package/collection/components/minor/pn-marketweb-icon/marketweb-icon.stories.js +2 -2
  35. package/collection/components/minor/pn-swan/pn-swan.stories.js +2 -2
  36. package/collection/components/minor/pn-titletag/{title-tag.stories.js → pn-title-tag.stories.js} +2 -2
  37. package/collection/components/navigation/pn-language-selector/{language-selector.stories.js → pn-language-selector.stories.js} +2 -2
  38. package/collection/components/navigation/pn-mainnav/{main-nav.stories.js → pn-main-nav.stories.js} +2 -2
  39. package/collection/components/navigation/pn-sidenav/{sidenav-.stories.js → pn-sidenav.stories.js} +2 -2
  40. package/collection/components/navigation/pn-site-footer/{site-footer.stories.js → pn-site-footer.stories.js} +2 -2
  41. package/collection/components/navigation/pn-site-selector/site-selector.stories.js +2 -2
  42. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.stories.js +3 -3
  43. package/collection/components/profile/pn-profile-modal/pn-profile-modal.stories.js +2 -2
  44. package/collection/components/profile/pn-profile-selector/pn-profile-selector.stories.js +2 -2
  45. package/collection/components/widgets/pn-find-price/{find-price.stories.js → pn-find-price.stories.js} +5 -5
  46. package/collection/components/widgets/pn-find-service-and-price/{find-service-and-price.stories.js → pn-find-service-and-price.stories.js} +2 -2
  47. package/collection/components/widgets/pn-hero-block-international/{hero-block-international.stories.js → pn-hero-block-international.stories.js} +2 -2
  48. package/collection/components/widgets/pn-link-list/{link-list.stories.js → pn-link-list.stories.js} +2 -2
  49. package/collection/components/widgets/pn-pex-pricefinder/{pex-pricefinder.stories.js → pn-pex-pricefinder.stories.js} +2 -2
  50. package/collection/components/widgets/pn-product-card/product-card.stories.js +2 -2
  51. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +2 -2
  52. package/collection/components/widgets/pn-product-tile/{product-tile.stories.js → pn-product-tile.stories.js} +2 -2
  53. package/collection/components/widgets/pn-proxio-findprice/{find-price.stories.js → pn-find-price.stories.js} +6 -6
  54. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.stories.js +2 -2
  55. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.stories.js +2 -2
  56. package/collection/components/widgets/pn-usp-promoter/{usp-promoter.stories.js → pn-usp-promoter.stories.js} +3 -3
  57. package/collection/globals/documentation/story.js +172 -0
  58. package/collection/globals/documentation/story.js.map +1 -0
  59. package/components/pn-dropdown-with-multi-input-rows.js +15 -15
  60. package/components/pn-dropdown-with-multi-input-rows.js.map +1 -1
  61. package/components/pn-proxio-pricegroup.js +1 -1
  62. package/esm/pn-dropdown-with-multi-input-rows.entry.js +15 -15
  63. package/esm/pn-dropdown-with-multi-input-rows.entry.js.map +1 -1
  64. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  65. package/package.json +11 -8
  66. package/pn-market-web-components/{p-7b05d7c7.entry.js → p-6c673bec.entry.js} +2 -2
  67. package/pn-market-web-components/p-e411b35a.entry.js +2 -0
  68. package/pn-market-web-components/p-e411b35a.entry.js.map +1 -0
  69. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  70. package/types/globals/documentation/story.d.ts +14 -0
  71. package/umd/modules/@postnord/web-components/cjs/{index-68998e5e.js → index-a933b082.js} +767 -761
  72. package/umd/modules/@postnord/web-components/cjs/index-a933b082.js.map +1 -0
  73. package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
  74. package/umd/modules/@postnord/web-components/cjs/pn-accordion_2.cjs.entry.js +12 -13
  75. package/umd/modules/@postnord/web-components/cjs/pn-accordion_2.cjs.entry.js.map +1 -1
  76. package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
  77. package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +1 -1
  78. package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +15 -4
  79. package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js.map +1 -1
  80. package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +2 -2
  81. package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js.map +1 -1
  82. package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +2 -2
  83. package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js.map +1 -1
  84. package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +1 -1
  85. package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +15 -7
  86. package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js.map +1 -1
  87. package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +1 -1
  88. package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
  89. package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
  90. package/umd/modules/@postnord/web-components/cjs/pn-icon.cjs.entry.js +1 -1
  91. package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +1 -1
  92. package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +16 -19
  93. package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js.map +1 -1
  94. package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +1 -1
  95. package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
  96. package/umd/modules/@postnord/web-components/cjs/pn-option_2.cjs.entry.js +2 -2
  97. package/umd/modules/@postnord/web-components/cjs/pn-option_2.cjs.entry.js.map +1 -1
  98. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +2 -2
  99. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +2 -2
  100. package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +2 -2
  101. package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +1 -1
  102. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +1 -1
  103. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +1 -1
  104. package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +1 -1
  105. package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +15 -4
  106. package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js.map +1 -1
  107. package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
  108. package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +1 -1
  109. package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +1 -1
  110. package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +1 -1
  111. package/umd/modules/@postnord/web-components/cjs/pn-tab_2.cjs.entry.js +3 -3
  112. package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +5 -13
  113. package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js.map +1 -1
  114. package/umd/modules/@postnord/web-components/cjs/pn-tag.cjs.entry.js +1 -1
  115. package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
  116. package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +10 -9
  117. package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js.map +1 -1
  118. package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +2 -2
  119. package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +1 -1
  120. package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +25 -6
  121. package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js.map +1 -1
  122. package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +1 -1
  123. package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +3 -3
  124. package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js.map +1 -1
  125. package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
  126. package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js.map +1 -1
  127. package/umd/modules/@postnord/web-components/collection/collection-manifest.json +1 -1
  128. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.css +4 -2
  129. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +1 -4
  130. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js.map +1 -1
  131. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.stories.js +6 -31
  132. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.stories.js.map +1 -1
  133. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.css +20 -11
  134. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.js +17 -16
  135. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.js.map +1 -1
  136. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.stories.js +36 -17
  137. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/row/pn-accordion-row.stories.js.map +1 -1
  138. package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.css +48 -53
  139. package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.js +12 -13
  140. package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.js.map +1 -1
  141. package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.stories.js +11 -6
  142. package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.stories.js.map +1 -1
  143. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +1 -1
  144. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +17 -3
  145. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js.map +1 -1
  146. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.stories.js +137 -41
  147. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.stories.js.map +1 -1
  148. package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +3 -0
  149. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.css +1 -0
  150. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.stories.js +1 -1
  151. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.stories.js.map +1 -1
  152. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.css +2 -1
  153. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +19 -7
  154. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js.map +1 -1
  155. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.stories.js +22 -40
  156. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.stories.js.map +1 -1
  157. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +2 -1
  158. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +14 -17
  159. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js.map +1 -1
  160. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.stories.js +29 -17
  161. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.stories.js.map +1 -1
  162. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +5 -5
  163. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +17 -3
  164. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js.map +1 -1
  165. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.stories.js +57 -72
  166. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.stories.js.map +1 -1
  167. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +1 -0
  168. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +29 -27
  169. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +9 -9
  170. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js.map +1 -1
  171. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.stories.js +8 -15
  172. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.stories.js.map +1 -1
  173. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +179 -63
  174. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +145 -35
  175. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js.map +1 -1
  176. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.stories.js +112 -9
  177. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.stories.js.map +1 -1
  178. package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
  179. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
  180. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
  181. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
  182. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
  183. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +1 -1
  184. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +1 -1
  185. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
  186. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
  187. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
  188. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +2 -2
  189. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js.map +1 -1
  190. package/umd/modules/@postnord/web-components/components/pn-accordion-row.js +9 -7
  191. package/umd/modules/@postnord/web-components/components/pn-accordion-row.js.map +1 -1
  192. package/umd/modules/@postnord/web-components/components/pn-accordion.js +2 -5
  193. package/umd/modules/@postnord/web-components/components/pn-accordion.js.map +1 -1
  194. package/umd/modules/@postnord/web-components/components/pn-checkbox.js +17 -4
  195. package/umd/modules/@postnord/web-components/components/pn-checkbox.js.map +1 -1
  196. package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
  197. package/umd/modules/@postnord/web-components/components/pn-choice-chip.js.map +1 -1
  198. package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
  199. package/umd/modules/@postnord/web-components/components/pn-counter.js.map +1 -1
  200. package/umd/modules/@postnord/web-components/components/pn-fieldset.js +16 -6
  201. package/umd/modules/@postnord/web-components/components/pn-fieldset.js.map +1 -1
  202. package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
  203. package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
  204. package/umd/modules/@postnord/web-components/components/pn-input2.js +15 -18
  205. package/umd/modules/@postnord/web-components/components/pn-input2.js.map +1 -1
  206. package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
  207. package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
  208. package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
  209. package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
  210. package/umd/modules/@postnord/web-components/components/pn-radio-button.js +16 -3
  211. package/umd/modules/@postnord/web-components/components/pn-radio-button.js.map +1 -1
  212. package/umd/modules/@postnord/web-components/components/pn-select.js +1 -1
  213. package/umd/modules/@postnord/web-components/components/pn-select.js.map +1 -1
  214. package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
  215. package/umd/modules/@postnord/web-components/components/pn-table.js +4 -12
  216. package/umd/modules/@postnord/web-components/components/pn-table.js.map +1 -1
  217. package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
  218. package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
  219. package/umd/modules/@postnord/web-components/components/pn-textarea.js +10 -10
  220. package/umd/modules/@postnord/web-components/components/pn-textarea.js.map +1 -1
  221. package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
  222. package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +33 -8
  223. package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js.map +1 -1
  224. package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +2 -2
  225. package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js.map +1 -1
  226. package/umd/modules/@postnord/web-components/esm/{index-0368301a.js → index-d61a8775.js} +767 -761
  227. package/umd/modules/@postnord/web-components/esm/index-d61a8775.js.map +1 -0
  228. package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
  229. package/umd/modules/@postnord/web-components/esm/pn-accordion_2.entry.js +12 -13
  230. package/umd/modules/@postnord/web-components/esm/pn-accordion_2.entry.js.map +1 -1
  231. package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
  232. package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +1 -1
  233. package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +15 -4
  234. package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js.map +1 -1
  235. package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +2 -2
  236. package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js.map +1 -1
  237. package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +2 -2
  238. package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js.map +1 -1
  239. package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +1 -1
  240. package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +15 -7
  241. package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js.map +1 -1
  242. package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +1 -1
  243. package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
  244. package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
  245. package/umd/modules/@postnord/web-components/esm/pn-icon.entry.js +1 -1
  246. package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +1 -1
  247. package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +16 -19
  248. package/umd/modules/@postnord/web-components/esm/pn-input.entry.js.map +1 -1
  249. package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +1 -1
  250. package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
  251. package/umd/modules/@postnord/web-components/esm/pn-option_2.entry.js +2 -2
  252. package/umd/modules/@postnord/web-components/esm/pn-option_2.entry.js.map +1 -1
  253. package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +2 -2
  254. package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +2 -2
  255. package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +2 -2
  256. package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +1 -1
  257. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +1 -1
  258. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +1 -1
  259. package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +1 -1
  260. package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +15 -4
  261. package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js.map +1 -1
  262. package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
  263. package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +1 -1
  264. package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +1 -1
  265. package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +1 -1
  266. package/umd/modules/@postnord/web-components/esm/pn-tab_2.entry.js +3 -3
  267. package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +5 -13
  268. package/umd/modules/@postnord/web-components/esm/pn-table.entry.js.map +1 -1
  269. package/umd/modules/@postnord/web-components/esm/pn-tag.entry.js +1 -1
  270. package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
  271. package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +10 -9
  272. package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js.map +1 -1
  273. package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +2 -2
  274. package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +1 -1
  275. package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +25 -6
  276. package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js.map +1 -1
  277. package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +1 -1
  278. package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +3 -3
  279. package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js.map +1 -1
  280. package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
  281. package/umd/modules/@postnord/web-components/esm/postnord-web-components.js.map +1 -1
  282. package/umd/modules/@postnord/web-components/hydrate/index.d.ts +29 -11
  283. package/umd/modules/@postnord/web-components/hydrate/index.js +429 -379
  284. package/umd/modules/@postnord/web-components/hydrate/index.mjs +23342 -0
  285. package/umd/modules/@postnord/web-components/hydrate/package.json +7 -1
  286. package/umd/modules/@postnord/web-components/loader/index.d.ts +3 -0
  287. package/umd/modules/@postnord/web-components/package.json +13 -14
  288. package/umd/modules/@postnord/web-components/postnord-web-components/{p-6d68ec81.entry.js → p-02931134.entry.js} +2 -2
  289. package/umd/modules/@postnord/web-components/postnord-web-components/{p-cd0a514f.entry.js → p-198d7b11.entry.js} +2 -2
  290. package/umd/modules/@postnord/web-components/postnord-web-components/p-1a183f47.entry.js +6 -0
  291. package/umd/modules/@postnord/web-components/postnord-web-components/p-1a183f47.entry.js.map +1 -0
  292. package/umd/modules/@postnord/web-components/postnord-web-components/{p-952b24c3.entry.js → p-25c27710.entry.js} +2 -2
  293. package/umd/modules/@postnord/web-components/postnord-web-components/{p-7058a77a.entry.js → p-2b37dd56.entry.js} +2 -2
  294. package/umd/modules/@postnord/web-components/postnord-web-components/{p-de2fbdf2.entry.js → p-2d38659f.entry.js} +2 -2
  295. package/umd/modules/@postnord/web-components/postnord-web-components/p-361dc0c8.js +7 -0
  296. package/umd/modules/@postnord/web-components/postnord-web-components/p-361dc0c8.js.map +1 -0
  297. package/umd/modules/@postnord/web-components/postnord-web-components/p-44cd25d0.entry.js +6 -0
  298. package/umd/modules/@postnord/web-components/postnord-web-components/p-44cd25d0.entry.js.map +1 -0
  299. package/umd/modules/@postnord/web-components/postnord-web-components/p-4659571b.entry.js +6 -0
  300. package/umd/modules/@postnord/web-components/postnord-web-components/p-4659571b.entry.js.map +1 -0
  301. package/umd/modules/@postnord/web-components/postnord-web-components/p-484674e4.entry.js +6 -0
  302. package/umd/modules/@postnord/web-components/postnord-web-components/p-484674e4.entry.js.map +1 -0
  303. package/umd/modules/@postnord/web-components/postnord-web-components/p-49787401.entry.js +6 -0
  304. package/umd/modules/@postnord/web-components/postnord-web-components/p-49787401.entry.js.map +1 -0
  305. package/umd/modules/@postnord/web-components/postnord-web-components/{p-25bcdea5.entry.js → p-4b9e3725.entry.js} +2 -2
  306. package/umd/modules/@postnord/web-components/postnord-web-components/p-4f0e4670.entry.js +6 -0
  307. package/umd/modules/@postnord/web-components/postnord-web-components/{p-359752c5.entry.js.map → p-4f0e4670.entry.js.map} +1 -1
  308. package/umd/modules/@postnord/web-components/postnord-web-components/{p-039d11fd.entry.js → p-50792da4.entry.js} +2 -2
  309. package/umd/modules/@postnord/web-components/postnord-web-components/p-5106eb64.entry.js +6 -0
  310. package/umd/modules/@postnord/web-components/postnord-web-components/p-5106eb64.entry.js.map +1 -0
  311. package/umd/modules/@postnord/web-components/postnord-web-components/{p-395206cb.entry.js → p-5a28cb48.entry.js} +2 -2
  312. package/umd/modules/@postnord/web-components/postnord-web-components/{p-239575e3.entry.js → p-61212ca5.entry.js} +2 -2
  313. package/umd/modules/@postnord/web-components/postnord-web-components/{p-0243e0e0.entry.js → p-62b0a68d.entry.js} +2 -2
  314. package/umd/modules/@postnord/web-components/postnord-web-components/{p-d6340bf5.entry.js → p-705a4176.entry.js} +2 -2
  315. package/umd/modules/@postnord/web-components/postnord-web-components/{p-bd31fd3c.entry.js → p-7c2e6dd5.entry.js} +2 -2
  316. package/umd/modules/@postnord/web-components/postnord-web-components/{p-c0a63ccf.entry.js → p-7de9c5b9.entry.js} +2 -2
  317. package/umd/modules/@postnord/web-components/postnord-web-components/{p-04b3f115.entry.js → p-8839e39f.entry.js} +2 -2
  318. package/umd/modules/@postnord/web-components/postnord-web-components/{p-92528e20.entry.js → p-8a697aa7.entry.js} +2 -2
  319. package/umd/modules/@postnord/web-components/postnord-web-components/p-8bdbff5c.entry.js +6 -0
  320. package/umd/modules/@postnord/web-components/postnord-web-components/{p-adbaa543.entry.js → p-8f1a68d5.entry.js} +2 -2
  321. package/umd/modules/@postnord/web-components/postnord-web-components/{p-70c37f6c.entry.js → p-9e27e547.entry.js} +2 -2
  322. package/umd/modules/@postnord/web-components/postnord-web-components/{p-98efe78c.entry.js → p-a579e45f.entry.js} +2 -2
  323. package/umd/modules/@postnord/web-components/postnord-web-components/{p-e6e0120a.entry.js → p-ad22585e.entry.js} +2 -2
  324. package/umd/modules/@postnord/web-components/postnord-web-components/{p-93bfba5c.entry.js → p-ae90d900.entry.js} +2 -2
  325. package/umd/modules/@postnord/web-components/postnord-web-components/{p-93bfba5c.entry.js.map → p-ae90d900.entry.js.map} +1 -1
  326. package/umd/modules/@postnord/web-components/postnord-web-components/{p-07497cb6.entry.js → p-aef3e3ff.entry.js} +2 -2
  327. package/umd/modules/@postnord/web-components/postnord-web-components/{p-e43edf79.entry.js → p-af558162.entry.js} +2 -2
  328. package/umd/modules/@postnord/web-components/postnord-web-components/p-af558162.entry.js.map +1 -0
  329. package/umd/modules/@postnord/web-components/postnord-web-components/{p-84798385.entry.js → p-d3dc32a1.entry.js} +2 -2
  330. package/umd/modules/@postnord/web-components/postnord-web-components/p-daf32d78.entry.js +6 -0
  331. package/umd/modules/@postnord/web-components/postnord-web-components/p-daf32d78.entry.js.map +1 -0
  332. package/umd/modules/@postnord/web-components/postnord-web-components/{p-a0850d7f.entry.js → p-df2aca62.entry.js} +2 -2
  333. package/umd/modules/@postnord/web-components/postnord-web-components/{p-7dea69fa.entry.js → p-e1b5ea84.entry.js} +2 -2
  334. package/umd/modules/@postnord/web-components/postnord-web-components/p-e70c8f3a.entry.js +6 -0
  335. package/umd/modules/@postnord/web-components/postnord-web-components/p-e70c8f3a.entry.js.map +1 -0
  336. package/umd/modules/@postnord/web-components/postnord-web-components/{p-004ba141.entry.js → p-f19bdfa3.entry.js} +2 -2
  337. package/umd/modules/@postnord/web-components/postnord-web-components/{p-9d073847.entry.js → p-fa62950e.entry.js} +2 -2
  338. package/umd/modules/@postnord/web-components/postnord-web-components/{p-d6a5f7ce.entry.js → p-fe881c13.entry.js} +2 -2
  339. package/umd/modules/@postnord/web-components/postnord-web-components/p-ff9b9fbc.entry.js +6 -0
  340. package/umd/modules/@postnord/web-components/postnord-web-components/{p-ebe4320b.entry.js.map → p-ff9b9fbc.entry.js.map} +1 -1
  341. package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
  342. package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js.map +1 -1
  343. package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.d.ts +0 -4
  344. package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.stories.d.ts +1 -1
  345. package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/row/pn-accordion-row.d.ts +7 -8
  346. package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/row/pn-accordion-row.stories.d.ts +15 -4
  347. package/umd/modules/@postnord/web-components/types/components/content/pn-table/pn-table.d.ts +9 -2
  348. package/umd/modules/@postnord/web-components/types/components/content/pn-table/pn-table.stories.d.ts +5 -0
  349. package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +4 -0
  350. package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.stories.d.ts +31 -8
  351. package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.d.ts +5 -3
  352. package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.stories.d.ts +9 -12
  353. package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +4 -5
  354. package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.stories.d.ts +18 -4
  355. package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.d.ts +4 -0
  356. package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.stories.d.ts +23 -78
  357. package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +2 -3
  358. package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.stories.d.ts +2 -10
  359. package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.d.ts +22 -12
  360. package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.stories.d.ts +30 -1
  361. package/umd/modules/@postnord/web-components/types/components.d.ts +103 -31
  362. package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +0 -2
  363. package/umd/modules/@postnord/web-components/vscode-data.json +30 -14
  364. package/umd/pn-marketweb-init.js +1 -1
  365. package/umd/pn-marketweb-salesforce.js +1 -1
  366. package/vscode-data.json +2810 -0
  367. package/pn-market-web-components/p-07cbf119.entry.js +0 -2
  368. package/pn-market-web-components/p-07cbf119.entry.js.map +0 -1
  369. package/umd/modules/@postnord/web-components/cjs/index-68998e5e.js.map +0 -1
  370. package/umd/modules/@postnord/web-components/esm/index-0368301a.js.map +0 -1
  371. package/umd/modules/@postnord/web-components/postnord-web-components/p-016d2a52.entry.js +0 -6
  372. package/umd/modules/@postnord/web-components/postnord-web-components/p-016d2a52.entry.js.map +0 -1
  373. package/umd/modules/@postnord/web-components/postnord-web-components/p-359752c5.entry.js +0 -6
  374. package/umd/modules/@postnord/web-components/postnord-web-components/p-778e8143.js +0 -7
  375. package/umd/modules/@postnord/web-components/postnord-web-components/p-778e8143.js.map +0 -1
  376. package/umd/modules/@postnord/web-components/postnord-web-components/p-937ce2a0.entry.js +0 -6
  377. package/umd/modules/@postnord/web-components/postnord-web-components/p-937ce2a0.entry.js.map +0 -1
  378. package/umd/modules/@postnord/web-components/postnord-web-components/p-948ac554.entry.js +0 -6
  379. package/umd/modules/@postnord/web-components/postnord-web-components/p-948ac554.entry.js.map +0 -1
  380. package/umd/modules/@postnord/web-components/postnord-web-components/p-96d508fe.entry.js +0 -6
  381. package/umd/modules/@postnord/web-components/postnord-web-components/p-96d508fe.entry.js.map +0 -1
  382. package/umd/modules/@postnord/web-components/postnord-web-components/p-9a543cee.entry.js +0 -6
  383. package/umd/modules/@postnord/web-components/postnord-web-components/p-9a543cee.entry.js.map +0 -1
  384. package/umd/modules/@postnord/web-components/postnord-web-components/p-dc31577b.entry.js +0 -6
  385. package/umd/modules/@postnord/web-components/postnord-web-components/p-dc31577b.entry.js.map +0 -1
  386. package/umd/modules/@postnord/web-components/postnord-web-components/p-dd909266.entry.js +0 -6
  387. package/umd/modules/@postnord/web-components/postnord-web-components/p-dd909266.entry.js.map +0 -1
  388. package/umd/modules/@postnord/web-components/postnord-web-components/p-e43edf79.entry.js.map +0 -1
  389. package/umd/modules/@postnord/web-components/postnord-web-components/p-e9a40534.entry.js +0 -6
  390. package/umd/modules/@postnord/web-components/postnord-web-components/p-ebe4320b.entry.js +0 -6
  391. package/umd/modules/@postnord/web-components/postnord-web-components/p-f3b1cc75.entry.js +0 -6
  392. package/umd/modules/@postnord/web-components/postnord-web-components/p-f3b1cc75.entry.js.map +0 -1
  393. /package/pn-market-web-components/{p-7b05d7c7.entry.js.map → p-6c673bec.entry.js.map} +0 -0
  394. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-6d68ec81.entry.js.map → p-02931134.entry.js.map} +0 -0
  395. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-cd0a514f.entry.js.map → p-198d7b11.entry.js.map} +0 -0
  396. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-952b24c3.entry.js.map → p-25c27710.entry.js.map} +0 -0
  397. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-7058a77a.entry.js.map → p-2b37dd56.entry.js.map} +0 -0
  398. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-de2fbdf2.entry.js.map → p-2d38659f.entry.js.map} +0 -0
  399. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-25bcdea5.entry.js.map → p-4b9e3725.entry.js.map} +0 -0
  400. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-039d11fd.entry.js.map → p-50792da4.entry.js.map} +0 -0
  401. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-395206cb.entry.js.map → p-5a28cb48.entry.js.map} +0 -0
  402. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-239575e3.entry.js.map → p-61212ca5.entry.js.map} +0 -0
  403. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-0243e0e0.entry.js.map → p-62b0a68d.entry.js.map} +0 -0
  404. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-d6340bf5.entry.js.map → p-705a4176.entry.js.map} +0 -0
  405. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-bd31fd3c.entry.js.map → p-7c2e6dd5.entry.js.map} +0 -0
  406. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-c0a63ccf.entry.js.map → p-7de9c5b9.entry.js.map} +0 -0
  407. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-04b3f115.entry.js.map → p-8839e39f.entry.js.map} +0 -0
  408. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-92528e20.entry.js.map → p-8a697aa7.entry.js.map} +0 -0
  409. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-e9a40534.entry.js.map → p-8bdbff5c.entry.js.map} +0 -0
  410. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-adbaa543.entry.js.map → p-8f1a68d5.entry.js.map} +0 -0
  411. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-70c37f6c.entry.js.map → p-9e27e547.entry.js.map} +0 -0
  412. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-98efe78c.entry.js.map → p-a579e45f.entry.js.map} +0 -0
  413. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-e6e0120a.entry.js.map → p-ad22585e.entry.js.map} +0 -0
  414. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-07497cb6.entry.js.map → p-aef3e3ff.entry.js.map} +0 -0
  415. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-84798385.entry.js.map → p-d3dc32a1.entry.js.map} +0 -0
  416. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-a0850d7f.entry.js.map → p-df2aca62.entry.js.map} +0 -0
  417. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-7dea69fa.entry.js.map → p-e1b5ea84.entry.js.map} +0 -0
  418. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-004ba141.entry.js.map → p-f19bdfa3.entry.js.map} +0 -0
  419. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-9d073847.entry.js.map → p-fa62950e.entry.js.map} +0 -0
  420. /package/umd/modules/@postnord/web-components/postnord-web-components/{p-d6a5f7ce.entry.js.map → p-fe881c13.entry.js.map} +0 -0
@@ -168,7 +168,7 @@ const PnDropdownWithMultiInputRows = class {
168
168
  this.minRowCount = selectionRoot.value;
169
169
  if (selectionRoot.value > this._secondDropdownSelection) {
170
170
  this.dropdownDataRoot = [...this.dropdownDataRoot];
171
- for (let index = this.rowData.length; index < selectionRoot.value; index++) {
171
+ for (let index = this.rowData?.length; index < selectionRoot.value; index++) {
172
172
  this.addRow(this.generateUniqueId());
173
173
  }
174
174
  }
@@ -192,7 +192,7 @@ const PnDropdownWithMultiInputRows = class {
192
192
  this.showDelteConfirm = true;
193
193
  }
194
194
  else {
195
- for (let index = this.rowData.length; index < value; index++) {
195
+ for (let index = this.rowData?.length; index < value; index++) {
196
196
  this.addRow(this.generateUniqueId());
197
197
  }
198
198
  }
@@ -200,7 +200,7 @@ const PnDropdownWithMultiInputRows = class {
200
200
  this.emitValuesIfValid();
201
201
  });
202
202
  predefinedValueChange(e) {
203
- const indexToUpdate = this.rowData.findIndex(data => data.id === e.detail.id);
203
+ const indexToUpdate = this.rowData?.findIndex(data => data.id === e.detail.id);
204
204
  const val = e.detail;
205
205
  this.rowData[indexToUpdate] = {
206
206
  ...this.rowData[indexToUpdate],
@@ -219,7 +219,7 @@ const PnDropdownWithMultiInputRows = class {
219
219
  this.updateSum();
220
220
  }
221
221
  updateFirstInputOfRows(value) {
222
- for (let index = 1; index < this.rowData.length; index++) {
222
+ for (let index = 1; index < this.rowData?.length; index++) {
223
223
  this.rowData[index] = {
224
224
  ...this.rowData[index],
225
225
  firstInput: value,
@@ -227,7 +227,7 @@ const PnDropdownWithMultiInputRows = class {
227
227
  }
228
228
  }
229
229
  updateSecondInputOfRows(value) {
230
- for (let index = 1; index < this.rowData.length; index++) {
230
+ for (let index = 1; index < this.rowData?.length; index++) {
231
231
  this.rowData[index] = {
232
232
  ...this.rowData[index],
233
233
  secondInput: value,
@@ -235,11 +235,11 @@ const PnDropdownWithMultiInputRows = class {
235
235
  }
236
236
  }
237
237
  deleteRowEvent(e) {
238
- const indexToRemove = this.rowData.findIndex(data => data.id === e.detail);
238
+ const indexToRemove = this.rowData?.findIndex(data => data.id === e.detail);
239
239
  if (indexToRemove < 0) {
240
240
  return;
241
241
  }
242
- this.rowData.splice(indexToRemove, 1);
242
+ this.rowData?.splice(indexToRemove, 1);
243
243
  this.rowData = [...this.rowData];
244
244
  this.secondDropdownArr = [...this.secondDropdownArr];
245
245
  this.emitValuesIfValid();
@@ -248,12 +248,12 @@ const PnDropdownWithMultiInputRows = class {
248
248
  updateSum() {
249
249
  this.rowSum = '';
250
250
  let sum = 0;
251
- this.rowData.forEach(element => {
251
+ this.rowData?.forEach(element => {
252
252
  if (element?.firstInput?.length) {
253
253
  sum += parseInt(element.firstInput);
254
254
  }
255
255
  });
256
- this._secondDropdownSelection = this.rowData.length;
256
+ this._secondDropdownSelection = this.rowData?.length;
257
257
  this.rowSum = sum.toString();
258
258
  }
259
259
  deleteExcessRows() {
@@ -262,9 +262,9 @@ const PnDropdownWithMultiInputRows = class {
262
262
  if (!selectedValue?.length) {
263
263
  return;
264
264
  }
265
- const rowsToDelete = this.rowData.length - parseInt(selectedValue);
265
+ const rowsToDelete = this.rowData?.length - parseInt(selectedValue);
266
266
  for (let index = 0; index < rowsToDelete; index++) {
267
- this.rowData.pop();
267
+ this.rowData?.pop();
268
268
  }
269
269
  this.rowData = [...this.rowData];
270
270
  this.showDelteConfirm = false;
@@ -275,7 +275,7 @@ const PnDropdownWithMultiInputRows = class {
275
275
  }
276
276
  emitValuesIfValid() {
277
277
  this.formValues = [];
278
- this.rowData.forEach(item => {
278
+ this.rowData?.forEach(item => {
279
279
  const rowValue = { row: [] };
280
280
  if (this._firstDropdownSelection?.length) {
281
281
  const dropDownValue = { name: this.firstDropdownLabel, value: this._firstDropdownSelection };
@@ -297,7 +297,7 @@ const PnDropdownWithMultiInputRows = class {
297
297
  this.formValues.push(rowValue);
298
298
  }
299
299
  });
300
- if (this.formValues.length === this.rowData.length) {
300
+ if (this.formValues.length === this.rowData?.length) {
301
301
  const valueJsonString = JSON.stringify(this.formValues);
302
302
  this.allFormValues.emit(valueJsonString);
303
303
  }
@@ -306,9 +306,9 @@ const PnDropdownWithMultiInputRows = class {
306
306
  }
307
307
  }
308
308
  render() {
309
- return (index.h(index.Host, { key: '1b2ce1244402900792cd19a121010a681df91dd1', class: "dropdown-with-multi-input-element" }, index.h("div", { key: '43d5e5841cab456791acf26ce3770da74b11e188', class: "dropdown-with-multi-input-element__row" }, index.h("div", { key: 'f4faf2204b5280cd699ae81124c020729e14de1d', class: "dropdown-with-multi-input-element__dropdown" }, index.h("pn-select", { key: 'a2f1a2e84249227e1f487227d6bc0d90b6095d1f', ref: el => (this.pnFirstDropdown = el), class: "pn-row-select-dropdown dropDown1-dropdown", label: this.firstDropdownLabel, "empty-option": "true", language: this.languageCode }, this.dropdownDataRoot?.map((item, i) => (index.h("pn-option", { index: i, label: item.label, value: item.value, selected: item.checked, onClick: index$1.debounce(this.handleFirstDropdown.bind(this), 500) })))), this.firstDropdownHelperText?.length ? index.h("small", null, this.firstDropdownHelperText) : null)), index.h("div", { key: '26ceb17b261af37382f434753cbc8343d5b55171', class: "dropdown-with-multi-input-element__row" }, index.h("div", { key: '186be34ee93068754f3769d299da63471a76c55b', class: "dropdown-with-multi-input-element__dropdown" }, index.h("pn-select", { key: '40cc9947939786ac7ef8b27fe1e8cfa2581c6746', ref: el => (this.pnSecondDropdown = el), class: "pn-row-select-dropdown dropDown2-dropdown", label: this.secondDropdownLabel, "empty-option": "true", language: this.languageCode }, this.secondDropdownArr?.map((item, i) => (index.h("pn-option", { index: i, label: item, value: item, selected: item === this._secondDropdownSelection, onClick: index$1.debounce(this.handleSecondDropdown.bind(this), 500) })))), this.secondDropdownHelperText?.length ? index.h("small", null, this.secondDropdownHelperText) : null)), this.showDelteConfirm ? (index.h("div", { class: "dropdown-with-multi-input-element__delete" }, index.h("p", null, this.deleteMultipleRowsWarningText), index.h("pn-button", { ref: el => (this.pnConfirmDeleteButton = el), small: "true", appearance: "warning", onClick: this.deleteExcessRows.bind(this) }, this.confirmDeleteButtonText), index.h("pn-button", { ref: el => (this.pnAbortDeleteButton = el), small: "true", appearance: "light", onClick: this.abortDeleteRows.bind(this) }, this.abortDeleteButtonText))) : null, index.h("div", { key: 'c9e0f1d490a042d9372aefa94f54c921dca094a6', class: "dropdown-with-multi-input-element__label-row" }, index.h("div", { key: '8e9dcbca9890a70831adfe004d6dde16fbdfd3b0', class: "dropdown-with-multi-input-element__label" }, index.h("label", { key: '8a0c479c47261ac108b3b26822cedff2b4c30546' }, this.fristInputLabel)), index.h("div", { key: '9fa93fe98527bd9473dfa7b7c6e717dd6084d600', class: "dropdown-with-multi-input-element__label" }, index.h("label", { key: '4554958a6c0b7cbf68e41245e4326b9f33761d92' }, this.secondInputLabel)), index.h("div", { key: '01e677bdc71deb85972e876e9c01cf9dc3b8d417', class: "dropdown-with-multi-input-element__label" }, index.h("label", { key: 'fd73f7c4901b0f6a461ef80f150a5366f1f21a32' }, this.dateLabel))), this.rowData?.map((data, i) => {
309
+ return (index.h(index.Host, { key: 'e9dc9f749ae4365e501772d12fed36d5a729b16d', class: "dropdown-with-multi-input-element" }, index.h("div", { key: 'dc0a0e5504932241119532c874353916ffdf50f5', class: "dropdown-with-multi-input-element__row" }, index.h("div", { key: 'b4bfbf9ba001ed5f58f3586453025d19acb429b2', class: "dropdown-with-multi-input-element__dropdown" }, index.h("pn-select", { key: '0c66a027bc5bae8d52765abb3ba28dabbf7c52bc', ref: el => (this.pnFirstDropdown = el), class: "pn-row-select-dropdown dropDown1-dropdown", label: this.firstDropdownLabel, "empty-option": "true", language: this.languageCode }, this.dropdownDataRoot?.map((item, i) => (index.h("pn-option", { index: i, label: item.label, value: item.value, selected: item.checked, onClick: index$1.debounce(this.handleFirstDropdown.bind(this), 500) })))), this.firstDropdownHelperText?.length ? index.h("small", null, this.firstDropdownHelperText) : null)), index.h("div", { key: '9513d9d71061e56898af9d989804980602570b00', class: "dropdown-with-multi-input-element__row" }, index.h("div", { key: 'e44eda7ca5bde14ff34ef765a38e774f5e6dd0c1', class: "dropdown-with-multi-input-element__dropdown" }, index.h("pn-select", { key: 'deaad3fcac4be739c2c3892a4bf7c7539c346bd8', ref: el => (this.pnSecondDropdown = el), class: "pn-row-select-dropdown dropDown2-dropdown", label: this.secondDropdownLabel, "empty-option": "true", language: this.languageCode }, this.secondDropdownArr?.map((item, i) => (index.h("pn-option", { index: i, label: item, value: item, selected: item === this._secondDropdownSelection, onClick: index$1.debounce(this.handleSecondDropdown.bind(this), 500) })))), this.secondDropdownHelperText?.length ? index.h("small", null, this.secondDropdownHelperText) : null)), this.showDelteConfirm ? (index.h("div", { class: "dropdown-with-multi-input-element__delete" }, index.h("p", null, this.deleteMultipleRowsWarningText), index.h("pn-button", { ref: el => (this.pnConfirmDeleteButton = el), small: "true", appearance: "warning", onClick: this.deleteExcessRows.bind(this) }, this.confirmDeleteButtonText), index.h("pn-button", { ref: el => (this.pnAbortDeleteButton = el), small: "true", appearance: "light", onClick: this.abortDeleteRows.bind(this) }, this.abortDeleteButtonText))) : null, index.h("div", { key: 'b355ce1daff342ea82fdb6f4a2f521b4deb32377', class: "dropdown-with-multi-input-element__label-row" }, index.h("div", { key: '8163d255875440e2ea95710593fd9419252342d9', class: "dropdown-with-multi-input-element__label" }, index.h("label", { key: 'c87304fe159f377f0e989a69ddfed40f54d48de0' }, this.fristInputLabel)), index.h("div", { key: 'b40c19154d80a4999ef24ca9a405263ef94a63e4', class: "dropdown-with-multi-input-element__label" }, index.h("label", { key: 'e5745a6965290972d81b897cfc95b0742747cab4' }, this.secondInputLabel)), index.h("div", { key: 'b64a92fe13a9bf4894b0a2bdd225649297b2db8c', class: "dropdown-with-multi-input-element__label" }, index.h("label", { key: '91f12cd1acaefacf37c83062810e159b0be153a3' }, this.dateLabel))), this.rowData?.map((data, i) => {
310
310
  return (index.h("div", { class: 'dropdown-with-multi-input-element__row generated-row-' + i, id: 'generated-row-' + i }, index.h("pn-dropdown-with-multi-input-rows-row", { "language-code": this.languageCode, "frist-input-placeholder": this.fristInputPlaceholder, "first-input-min": this.firstInputMin, "first-input-max": this.firstInputMax, "first-input-warning": this.firstInputWarning, "first-input-warning-text": this.firstInputWarningText, "first-input-low-error-text": this.firstInputLowErrorText, "first-input-high-error-text": this.firstInputHighErrorText, "second-input-placeholder": this.secondInputPlaceholder, "second-input-min": this.secondInputMin, "second-input-max": this.secondInputMax, "second-input-warning": this.secondInputWarning, "second-input-warning-text": this.secondInputWarningText, "second-input-low-error-text": this.secondInputLowErrorText, "second-input-high-error-text": this.secondInputHighErrorText, datePlaceholder: this.datePlaceholder, firstValidDate: this.firstValidDateString, lastValidDate: this.lastValidDateString, "predefined-value": JSON.stringify(data), "min-row-count": this.minRowCount, "row-index": i })));
311
- }), index.h("div", { key: '673c8a9070fc1cdbb7ed3d6ee035eb1161c04088', class: "dropdown-with-multi-input-element__row sum-row" }, index.h("pn-marketweb-input", { key: '9228defa70da6617973fcf7dfdfbc1b2bf913f56', disabled: true, ref: el => (this.pnSumField = el), type: "number", value: this.rowSum, label: this.sumFieldLabel }), index.h("pn-button", { key: '0678472d1dbb5a228ad5023d43ef8be36e41a9d9', tooltip: this.addRowText ? this.addRowText : null, "left-icon": "true", arialabel: "Add", icon: plus.plus, appearance: "light", variant: "borderless", class: "connected-dropdown__button-right", onClick: () => {
311
+ }), index.h("div", { key: '5e61626feb6744e7fea1520e0fccd6a5db887b3b', class: "dropdown-with-multi-input-element__row sum-row" }, index.h("pn-marketweb-input", { key: '7b5ec2dc448af5a420cda2df9b886b7302065380', disabled: true, ref: el => (this.pnSumField = el), type: "number", value: this.rowSum, label: this.sumFieldLabel }), index.h("pn-button", { key: 'ed7bd68e74de062f0c09ae055f1d6f7b6728d828', tooltip: this.addRowText ? this.addRowText : null, "left-icon": "true", arialabel: "Add", icon: plus.plus, appearance: "light", variant: "borderless", class: "connected-dropdown__button-right", onClick: () => {
312
312
  this.addRow(this.generateUniqueId());
313
313
  } }, this.addRowText)), this.elementHelperText?.length ? index.h("div", { class: "dropdown-with-multi-input-element__row" }, this.elementHelperText) : null));
314
314
  }
@@ -1 +1 @@
1
- {"file":"pn-dropdown-with-multi-input-rows.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,+BAA+B,GAAG,opCAAopC,CAAC;AAC7rC,2CAAe,+BAA+B;;MCSjC,4BAA4B;;IAEvC,eAAe,GAAgB,IAAI,CAAC;IACpC,gBAAgB,GAAgB,IAAI,CAAC;IACrC,UAAU,GAAgB,IAAI,CAAC;IAC/B,qBAAqB,GAAgB,IAAI,CAAC;IAC1C,mBAAmB,GAAgB,IAAI,CAAC;IA8C/B,aAAa,CAAuB;IAErC,uBAAuB,GAAW,IAAI,CAAC;IACvC,wBAAwB,GAAW,IAAI,CAAC;IAExC,WAAW,CAAmB;IAEtC;;;4BAnDwC,IAAI;4BACb,IAAI;kCACE,IAAI;uCACC,IAAI;mCACR,IAA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wBAAwB,EAC3D,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,cAAc,EAAE,IAAI,CAAC,oBAAoB,EACzC,aAAa,EAAE,IAAI,CAAC,mBAAmB,sBACrB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBACvB,IAAI,CAAC,WAAW,eACpB,CAAC,GAC2B,CACrC,EACN;SACH,CAAC,EAEFA,kEAAK,KAAK,EAAC,gDAAgD,IACzDA,iFAAoB,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,UAAU,GAAG,EAAiB,CAAC,EAAE,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,GAAuB,EAExKA,wEACE,OAAO,EAAE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,eACvC,MAAM,EAChB,SAAS,EAAC,KAAK,EACf,IAAI,EAAEE,SAAI,EACV,UAAU,EAAC,OAAO,EAClB,OAAO,EAAC,YAAY,EACpB,KAAK,EAAC,kCAAkC,EACxC,OAAO,EAAE;gBACP,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;aACtC,IAEA,IAAI,CAAC,UAAU,CACN,CACR,EAEL,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAGF,iBAAK,KAAK,EAAC,wCAAwC,IAAE,IAAI,CAAC,iBAAiB,CAAO,GAAG,IAAI,CACtH,EACP;KACH;;;;;;","names":["uuidv4","debounce","h","Host","plus"],"sources":["src/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.scss?tag=pn-dropdown-with-multi-input-rows","src/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-dropdown-with-multi-input-rows {\n .dropdown-with-multi-input-element {\n &__row {\n margin-bottom: 1rem;\n }\n\n &__delete {\n display: flex;\n gap: 1rem;\n margin-bottom: 1rem;\n padding: 1rem;\n background-color: $gray25;\n\n pn-button {\n margin-top: 0.9rem;\n }\n }\n\n &__label-row {\n display: flex;\n gap: 1rem;\n }\n\n &__label {\n width: 30%;\n font-size: 0.875em;\n color: #5e554a;\n }\n }\n\n \n .sum-row {\n display: flex;\n justify-content: space-between;\n }\n \n .dropdown-with-multi-input-element__dropdown {\n display: inline-flex;\n align-items: center;\n }\n \n small {\n max-width: 70%;\n margin: 1rem;\n align-self: center;\n position: relative;\n top: 1rem;\n }\n \n .dropdown-with-multi-input-element__row \n .dropdown-with-multi-input-element__dropdown \n .pn-row-select-dropdown \n .pn-select \n .pn-select-input\n .pn-select-content {\n width: 18rem;\n }\n\n}\n","import { Component, Prop, h, Element, State, Host, Watch, Event, EventEmitter, Listen } from '@stencil/core';\nimport { FormValue, RowValue, Root, PredefinedValues } from './types';\nimport { v4 as uuidv4 } from 'uuid';\nimport debounce from 'debounce';\nimport { plus } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-dropdown-with-multi-input-rows',\n styleUrl: 'pn-dropdown-with-multi-input-rows.scss',\n})\nexport class PnDropdownWithMultiInputRows {\n @Element() hostElement: Element;\n pnFirstDropdown: HTMLElement = null;\n pnSecondDropdown: HTMLElement = null;\n pnSumField: HTMLElement = null;\n pnConfirmDeleteButton: HTMLElement = null;\n pnAbortDeleteButton: HTMLElement = null;\n\n @Prop() dropdownData: string | Root[] = null;\n @Prop() languageCode: string = null;\n @Prop() firstDropdownLabel: string = null;\n @Prop() firstDropdownHelperText: string = null;\n @Prop() secondDropdownLabel: string = null;\n @Prop() secondDropdownHelperText: string = null;\n @Prop() secondDropdownMax: number = null;\n @Prop() deleteMultipleRowsWarningText: string = null;\n @Prop() confirmDeleteButtonText: string = null;\n @Prop() abortDeleteButtonText: string = null;\n @Prop() fristInputLabel: string = null;\n @Prop() fristInputPlaceholder: string = null;\n @Prop() firstInputMin: number = null;\n @Prop() firstInputMax: number = null;\n @Prop() firstInputWarning: number = null;\n @Prop() firstInputWarningText: string = null;\n @Prop() firstInputLowErrorText: string = null;\n @Prop() firstInputHighErrorText: string = null;\n @Prop() secondInputLabel: string = null;\n @Prop() secondInputPlaceholder: string = null;\n @Prop() secondInputMin: number = null;\n @Prop() secondInputMax: number = null;\n @Prop() secondInputWarning: number = null;\n @Prop() secondInputWarningText: string = null;\n @Prop() secondInputLowErrorText: string = null;\n @Prop() secondInputHighErrorText: string = null;\n @Prop() dateLabel: string = null;\n @Prop() datePlaceholder: string = null;\n @Prop() dateDaysFromToday: number = 1;\n @Prop() yearsToAddToEndDate: number = null;\n @Prop() sumFieldLabel: string = null;\n @Prop() addRowText: string = null;\n @Prop() elementHelperText: string = null;\n\n @State() dropdownDataRoot: Root[] = null;\n @State() secondDropdownArr: number[] = [];\n @State() rowData: PredefinedValues[] = null;\n @State() formValues: FormValue[] = null;\n @State() firstValidDateString: string = '';\n @State() lastValidDateString: string = '';\n @State() rowSum: string = null;\n @State() minRowCount: number = null;\n @State() showDelteConfirm: boolean = false;\n\n @Event() allFormValues: EventEmitter<string>;\n\n private _firstDropdownSelection: string = null;\n private _secondDropdownSelection: number = null;\n\n private _defaultRow: PredefinedValues;\n\n constructor() {\n this._defaultRow = {\n id: this.generateUniqueId(),\n firstInput: '',\n secondInput: this.secondInputWarning !== null ? this.secondInputWarning.toString() : '',\n date: '',\n };\n }\n\n componentWillLoad() {\n this.formValues = [];\n this.setDropDownData();\n this.updateSecondDropdown();\n this.setRowData();\n this.setFirstValidDate();\n }\n\n componentDidLoad() {\n this.updateSum();\n }\n\n setDropDownData() {\n if (typeof this.dropdownData === 'string') {\n this.dropdownDataRoot = JSON.parse(this.dropdownData);\n } else {\n this.dropdownDataRoot = this.dropdownData;\n }\n\n if (this.dropdownDataRoot?.length) {\n this.dropdownDataRoot.forEach(element => {\n if (!element.value) {\n element.value = 0;\n }\n });\n }\n\n if (this.dropdownDataRoot.length > 0) {\n this.dropdownDataRoot[0].checked = true;\n this._firstDropdownSelection = this.dropdownDataRoot[0].label;\n this._secondDropdownSelection = this.dropdownDataRoot[0].value;\n this.minRowCount = this.dropdownDataRoot[0].value;\n }\n }\n\n updateSecondDropdown() {\n const selectedItem = this.dropdownDataRoot.find(arr => arr.checked === true);\n this.secondDropdownArr = [];\n\n for (let index = selectedItem.value; index <= this.secondDropdownMax; index++) {\n this.secondDropdownArr.push(index);\n }\n }\n\n updateSelectItemArr(arr: Root[], caption: string) {\n arr.forEach(item => {\n if (item.label === caption) {\n item.checked = !item.checked;\n } else {\n item.checked = false;\n }\n });\n return arr;\n }\n\n setRowData() {\n this.rowData = [];\n for (let index = 0; index < this._secondDropdownSelection; index++) {\n const row = Object.assign({}, this._defaultRow);\n row.id = this.generateUniqueId();\n this.rowData = [...this.rowData, row];\n }\n }\n\n generateUniqueId() {\n return uuidv4();\n }\n\n setFirstValidDate() {\n const yearsToadd = this.yearsToAddToEndDate ? this.yearsToAddToEndDate : 2;\n const date = new Date();\n date.setDate(date.getDate() + this.dateDaysFromToday ?? 0);\n\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const day = date.getDate().toString().padStart(2, '0');\n const endYear = year + yearsToadd;\n\n this.firstValidDateString = `${year.toString()}-${month}-${day}`;\n this.lastValidDateString = `${endYear.toString()}-${month}-${day}`;\n }\n\n addRow(newRowId: string) {\n const newRow = Object.assign({}, this.rowData[0]);\n newRow.id = newRowId ? newRowId : this.generateUniqueId();\n newRow.date = '';\n this.rowData = [...this.rowData, newRow];\n\n this.secondDropdownArr = [...this.secondDropdownArr];\n this.updateSum();\n this.emitValuesIfValid();\n }\n\n handleFirstDropdown() {\n const selected = this.pnFirstDropdown.querySelector('[aria-selected=true]');\n const selectedValue = selected?.textContent;\n if (!selectedValue?.length) {\n return;\n }\n\n this.dropdownDataRoot.forEach(element => {\n element.checked = false;\n });\n const selectionRoot = this.dropdownDataRoot.find(x => x.label === selectedValue);\n selectionRoot.checked = true;\n this._firstDropdownSelection = selectionRoot.label;\n this.minRowCount = selectionRoot.value;\n\n if (selectionRoot.value > this._secondDropdownSelection) {\n this.dropdownDataRoot = [...this.dropdownDataRoot];\n\n for (let index = this.rowData.length; index < selectionRoot.value; index++) {\n this.addRow(this.generateUniqueId());\n }\n }\n\n this.updateSecondDropdown();\n this.updateSum();\n this.emitValuesIfValid();\n }\n\n handleSecondDropdown = debounce((e: Event) => {\n const target = e.target as HTMLElement | null;\n const selectedOption = target?.closest('pn-option') as HTMLElement | null;\n \n if (!selectedOption) {\n console.error('Selected option is null');\n return;\n }\n \n const selectedValue = selectedOption.textContent?.trim();\n\n if (!selectedValue?.length) {\n return;\n }\n\n const value = parseInt(selectedValue);\n if (value < this._secondDropdownSelection) {\n this.showDelteConfirm = true;\n } else {\n for (let index = this.rowData.length; index < value; index++) {\n this.addRow(this.generateUniqueId());\n }\n }\n this.updateSum();\n this.emitValuesIfValid();\n })\n\n @Listen('rowValueChange')\n @Listen('firstInputChange')\n @Listen('secondInputChange')\n predefinedValueChange(e) {\n const indexToUpdate = this.rowData.findIndex(data => data.id === e.detail.id);\n const val: PredefinedValues = e.detail;\n this.rowData[indexToUpdate] = {\n ...this.rowData[indexToUpdate],\n firstInput: val.firstInput,\n secondInput: val.secondInput,\n date: val.date,\n };\n\n if (e.type === 'firstInputChange' && indexToUpdate === 0) {\n this.updateFirstInputOfRows(val.firstInput);\n }\n\n if (e.type === 'secondInputChange' && indexToUpdate === 0) {\n this.updateSecondInputOfRows(val.secondInput);\n }\n\n this.rowData = [...this.rowData];\n this.emitValuesIfValid();\n this.updateSum();\n }\n\n updateFirstInputOfRows(value: string) {\n for (let index = 1; index < this.rowData.length; index++) {\n this.rowData[index] = {\n ...this.rowData[index],\n firstInput: value,\n };\n }\n }\n\n updateSecondInputOfRows(value: string) {\n for (let index = 1; index < this.rowData.length; index++) {\n this.rowData[index] = {\n ...this.rowData[index],\n secondInput: value,\n };\n }\n }\n\n @Listen('deleteRowEvent')\n deleteRowEvent(e) {\n const indexToRemove = this.rowData.findIndex(data => data.id === e.detail);\n if (indexToRemove < 0) {\n return;\n }\n\n this.rowData.splice(indexToRemove, 1);\n this.rowData = [...this.rowData];\n\n this.secondDropdownArr = [...this.secondDropdownArr];\n this.emitValuesIfValid();\n this.updateSum();\n }\n\n updateSum() {\n this.rowSum = '';\n let sum = 0;\n this.rowData.forEach(element => {\n if (element?.firstInput?.length) {\n sum += parseInt(element.firstInput);\n }\n });\n\n this._secondDropdownSelection = this.rowData.length;\n this.rowSum = sum.toString();\n }\n\n deleteExcessRows() {\n const selectedButton = this.pnSecondDropdown.querySelector('button span');\n const selectedValue = selectedButton?.textContent?.trim();\n\n if (!selectedValue?.length) {\n return;\n }\n const rowsToDelete = this.rowData.length - parseInt(selectedValue);\n for (let index = 0; index < rowsToDelete; index++) {\n this.rowData.pop();\n }\n this.rowData = [...this.rowData];\n this.showDelteConfirm = false;\n this.updateSum();\n }\n\n abortDeleteRows() {\n this.showDelteConfirm = false;\n }\n\n emitValuesIfValid() {\n this.formValues = [];\n this.rowData.forEach(item => {\n const rowValue: FormValue = { row: [] };\n if (this._firstDropdownSelection?.length) {\n const dropDownValue: RowValue = { name: this.firstDropdownLabel, value: this._firstDropdownSelection };\n rowValue.row.push(dropDownValue);\n }\n \n if (item.firstInput?.length) {\n const firstInputValue: RowValue = { name: this.fristInputLabel, value: item.firstInput };\n rowValue.row.push(firstInputValue);\n }\n \n if (item.secondInput?.length) {\n const secondInputValue: RowValue = { name: this.secondInputLabel, value: item.secondInput };\n rowValue.row.push(secondInputValue);\n }\n\n if (item.date) {\n const dateValue: RowValue = { name: this.dateLabel, value: item.date };\n rowValue.row.push(dateValue);\n }\n \n if (rowValue.row.length === 4) {\n this.formValues.push(rowValue);\n }\n });\n \n if (this.formValues.length === this.rowData.length) {\n const valueJsonString = JSON.stringify(this.formValues);\n this.allFormValues.emit(valueJsonString);\n } else {\n this.allFormValues.emit('');\n }\n }\n\n render() {\n return (\n <Host class=\"dropdown-with-multi-input-element\">\n <div class=\"dropdown-with-multi-input-element__row\">\n <div class=\"dropdown-with-multi-input-element__dropdown\">\n <pn-select ref={el => (this.pnFirstDropdown = el as HTMLElement)} class=\"pn-row-select-dropdown dropDown1-dropdown\" label={this.firstDropdownLabel} empty-option=\"true\" language={this.languageCode}>\n {this.dropdownDataRoot?.map((item, i) => (\n <pn-option index={i} label={item.label} value={item.value} selected={item.checked} onClick={debounce(this.handleFirstDropdown.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n {this.firstDropdownHelperText?.length ? <small>{this.firstDropdownHelperText}</small> : null}\n </div>\n </div>\n\n <div class=\"dropdown-with-multi-input-element__row\">\n <div class=\"dropdown-with-multi-input-element__dropdown\">\n <pn-select ref={el => (this.pnSecondDropdown = el as HTMLElement)} class=\"pn-row-select-dropdown dropDown2-dropdown\" label={this.secondDropdownLabel} empty-option=\"true\" language={this.languageCode}>\n {this.secondDropdownArr?.map((item, i) => (\n <pn-option index={i} label={item} value={item} selected={item === this._secondDropdownSelection} onClick={debounce(this.handleSecondDropdown.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n {this.secondDropdownHelperText?.length ? <small>{this.secondDropdownHelperText}</small> : null}\n </div>\n </div>\n\n {this.showDelteConfirm ? (\n <div class=\"dropdown-with-multi-input-element__delete\">\n <p>{this.deleteMultipleRowsWarningText}</p>\n <pn-button ref={el => (this.pnConfirmDeleteButton = el as HTMLElement)} small=\"true\" appearance=\"warning\" onClick={this.deleteExcessRows.bind(this)}>\n {this.confirmDeleteButtonText}\n </pn-button>\n <pn-button ref={el => (this.pnAbortDeleteButton = el as HTMLElement)} small=\"true\" appearance=\"light\" onClick={this.abortDeleteRows.bind(this)}>\n {this.abortDeleteButtonText}\n </pn-button>\n </div>\n ) : null}\n\n <div class=\"dropdown-with-multi-input-element__label-row\">\n <div class=\"dropdown-with-multi-input-element__label\">\n <label>{this.fristInputLabel}</label>\n </div>\n <div class=\"dropdown-with-multi-input-element__label\">\n <label>{this.secondInputLabel}</label>\n </div>\n <div class=\"dropdown-with-multi-input-element__label\">\n <label>{this.dateLabel}</label>\n </div>\n </div>\n\n {this.rowData?.map((data, i) => {\n return (\n <div class={'dropdown-with-multi-input-element__row generated-row-' + i} id={'generated-row-' + i}>\n <pn-dropdown-with-multi-input-rows-row\n language-code={this.languageCode}\n frist-input-placeholder={this.fristInputPlaceholder}\n first-input-min={this.firstInputMin}\n first-input-max={this.firstInputMax}\n first-input-warning={this.firstInputWarning}\n first-input-warning-text={this.firstInputWarningText}\n first-input-low-error-text={this.firstInputLowErrorText}\n first-input-high-error-text={this.firstInputHighErrorText}\n second-input-placeholder={this.secondInputPlaceholder}\n second-input-min={this.secondInputMin}\n second-input-max={this.secondInputMax}\n second-input-warning={this.secondInputWarning}\n second-input-warning-text={this.secondInputWarningText}\n second-input-low-error-text={this.secondInputLowErrorText}\n second-input-high-error-text={this.secondInputHighErrorText}\n datePlaceholder={this.datePlaceholder}\n firstValidDate={this.firstValidDateString}\n lastValidDate={this.lastValidDateString}\n predefined-value={JSON.stringify(data)}\n min-row-count={this.minRowCount}\n row-index={i}\n ></pn-dropdown-with-multi-input-rows-row>\n </div>\n );\n })}\n\n <div class=\"dropdown-with-multi-input-element__row sum-row\">\n <pn-marketweb-input disabled={true} ref={el => (this.pnSumField = el as HTMLElement)} type=\"number\" value={this.rowSum} label={this.sumFieldLabel}></pn-marketweb-input>\n\n <pn-button\n tooltip={this.addRowText ? this.addRowText : null}\n left-icon=\"true\"\n arialabel=\"Add\"\n icon={plus}\n appearance=\"light\"\n variant=\"borderless\"\n class=\"connected-dropdown__button-right\"\n onClick={() => {\n this.addRow(this.generateUniqueId());\n }}\n >\n {this.addRowText}\n </pn-button>\n </div>\n\n {this.elementHelperText?.length ? <div class=\"dropdown-with-multi-input-element__row\">{this.elementHelperText}</div> : null}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-dropdown-with-multi-input-rows.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM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EL,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAGF,iBAAK,KAAK,EAAC,wCAAwC,IAAE,IAAI,CAAC,iBAAiB,CAAO,GAAG,IAAI,CACtH,EACP;KACH;;;;;;","names":["uuidv4","debounce","h","Host","plus"],"sources":["src/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.scss?tag=pn-dropdown-with-multi-input-rows","src/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-dropdown-with-multi-input-rows {\n .dropdown-with-multi-input-element {\n &__row {\n margin-bottom: 1rem;\n }\n\n &__delete {\n display: flex;\n gap: 1rem;\n margin-bottom: 1rem;\n padding: 1rem;\n background-color: $gray25;\n\n pn-button {\n margin-top: 0.9rem;\n }\n }\n\n &__label-row {\n display: flex;\n gap: 1rem;\n }\n\n &__label {\n width: 30%;\n font-size: 0.875em;\n color: #5e554a;\n }\n }\n\n \n .sum-row {\n display: flex;\n justify-content: space-between;\n }\n \n .dropdown-with-multi-input-element__dropdown {\n display: inline-flex;\n align-items: center;\n }\n \n small {\n max-width: 70%;\n margin: 1rem;\n align-self: center;\n position: relative;\n top: 1rem;\n }\n \n .dropdown-with-multi-input-element__row \n .dropdown-with-multi-input-element__dropdown \n .pn-row-select-dropdown \n .pn-select \n .pn-select-input\n .pn-select-content {\n width: 18rem;\n }\n\n}\n","import { Component, Prop, h, Element, State, Host, Watch, Event, EventEmitter, Listen } from '@stencil/core';\nimport { FormValue, RowValue, Root, PredefinedValues } from './types';\nimport { v4 as uuidv4 } from 'uuid';\nimport debounce from 'debounce';\nimport { plus } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-dropdown-with-multi-input-rows',\n styleUrl: 'pn-dropdown-with-multi-input-rows.scss',\n})\nexport class PnDropdownWithMultiInputRows {\n @Element() hostElement: Element;\n pnFirstDropdown: HTMLElement = null;\n pnSecondDropdown: HTMLElement = null;\n pnSumField: HTMLElement = null;\n pnConfirmDeleteButton: HTMLElement = null;\n pnAbortDeleteButton: HTMLElement = null;\n\n @Prop() dropdownData: string | Root[] = null;\n @Prop() languageCode: string = null;\n @Prop() firstDropdownLabel: string = null;\n @Prop() firstDropdownHelperText: string = null;\n @Prop() secondDropdownLabel: string = null;\n @Prop() secondDropdownHelperText: string = null;\n @Prop() secondDropdownMax: number = null;\n @Prop() deleteMultipleRowsWarningText: string = null;\n @Prop() confirmDeleteButtonText: string = null;\n @Prop() abortDeleteButtonText: string = null;\n @Prop() fristInputLabel: string = null;\n @Prop() fristInputPlaceholder: string = null;\n @Prop() firstInputMin: number = null;\n @Prop() firstInputMax: number = null;\n @Prop() firstInputWarning: number = null;\n @Prop() firstInputWarningText: string = null;\n @Prop() firstInputLowErrorText: string = null;\n @Prop() firstInputHighErrorText: string = null;\n @Prop() secondInputLabel: string = null;\n @Prop() secondInputPlaceholder: string = null;\n @Prop() secondInputMin: number = null;\n @Prop() secondInputMax: number = null;\n @Prop() secondInputWarning: number = null;\n @Prop() secondInputWarningText: string = null;\n @Prop() secondInputLowErrorText: string = null;\n @Prop() secondInputHighErrorText: string = null;\n @Prop() dateLabel: string = null;\n @Prop() datePlaceholder: string = null;\n @Prop() dateDaysFromToday: number = 1;\n @Prop() yearsToAddToEndDate: number = null;\n @Prop() sumFieldLabel: string = null;\n @Prop() addRowText: string = null;\n @Prop() elementHelperText: string = null;\n\n @State() dropdownDataRoot: Root[] = null;\n @State() secondDropdownArr: number[] = [];\n @State() rowData: PredefinedValues[] = null;\n @State() formValues: FormValue[] = null;\n @State() firstValidDateString: string = '';\n @State() lastValidDateString: string = '';\n @State() rowSum: string = null;\n @State() minRowCount: number = null;\n @State() showDelteConfirm: boolean = false;\n\n @Event() allFormValues: EventEmitter<string>;\n\n private _firstDropdownSelection: string = null;\n private _secondDropdownSelection: number = null;\n\n private _defaultRow: PredefinedValues;\n\n constructor() {\n this._defaultRow = {\n id: this.generateUniqueId(),\n firstInput: '',\n secondInput: this.secondInputWarning !== null ? this.secondInputWarning.toString() : '',\n date: '',\n };\n }\n\n componentWillLoad() {\n this.formValues = [];\n this.setDropDownData();\n this.updateSecondDropdown();\n this.setRowData();\n this.setFirstValidDate();\n }\n\n componentDidLoad() {\n this.updateSum();\n }\n\n setDropDownData() {\n if (typeof this.dropdownData === 'string') {\n this.dropdownDataRoot = JSON.parse(this.dropdownData);\n } else {\n this.dropdownDataRoot = this.dropdownData;\n }\n\n if (this.dropdownDataRoot?.length) {\n this.dropdownDataRoot.forEach(element => {\n if (!element.value) {\n element.value = 0;\n }\n });\n }\n\n if (this.dropdownDataRoot.length > 0) {\n this.dropdownDataRoot[0].checked = true;\n this._firstDropdownSelection = this.dropdownDataRoot[0].label;\n this._secondDropdownSelection = this.dropdownDataRoot[0].value;\n this.minRowCount = this.dropdownDataRoot[0].value;\n }\n }\n\n updateSecondDropdown() {\n const selectedItem = this.dropdownDataRoot.find(arr => arr.checked === true);\n this.secondDropdownArr = [];\n\n for (let index = selectedItem.value; index <= this.secondDropdownMax; index++) {\n this.secondDropdownArr.push(index);\n }\n }\n\n updateSelectItemArr(arr: Root[], caption: string) {\n arr.forEach(item => {\n if (item.label === caption) {\n item.checked = !item.checked;\n } else {\n item.checked = false;\n }\n });\n return arr;\n }\n\n setRowData() {\n this.rowData = [];\n for (let index = 0; index < this._secondDropdownSelection; index++) {\n const row = Object.assign({}, this._defaultRow);\n row.id = this.generateUniqueId();\n this.rowData = [...this.rowData, row];\n }\n }\n\n generateUniqueId() {\n return uuidv4();\n }\n\n setFirstValidDate() {\n const yearsToadd = this.yearsToAddToEndDate ? this.yearsToAddToEndDate : 2;\n const date = new Date();\n date.setDate(date.getDate() + this.dateDaysFromToday ?? 0);\n\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const day = date.getDate().toString().padStart(2, '0');\n const endYear = year + yearsToadd;\n\n this.firstValidDateString = `${year.toString()}-${month}-${day}`;\n this.lastValidDateString = `${endYear.toString()}-${month}-${day}`;\n }\n\n addRow(newRowId: string) {\n const newRow = Object.assign({}, this.rowData[0]);\n newRow.id = newRowId ? newRowId : this.generateUniqueId();\n newRow.date = '';\n this.rowData = [...this.rowData, newRow];\n\n this.secondDropdownArr = [...this.secondDropdownArr];\n this.updateSum();\n this.emitValuesIfValid();\n }\n\n handleFirstDropdown() {\n const selected = this.pnFirstDropdown.querySelector('[aria-selected=true]');\n const selectedValue = selected?.textContent;\n if (!selectedValue?.length) {\n return;\n }\n\n this.dropdownDataRoot.forEach(element => {\n element.checked = false;\n });\n const selectionRoot = this.dropdownDataRoot.find(x => x.label === selectedValue);\n selectionRoot.checked = true;\n this._firstDropdownSelection = selectionRoot.label;\n this.minRowCount = selectionRoot.value;\n\n if (selectionRoot.value > this._secondDropdownSelection) {\n this.dropdownDataRoot = [...this.dropdownDataRoot];\n\n for (let index = this.rowData?.length; index < selectionRoot.value; index++) {\n this.addRow(this.generateUniqueId());\n }\n }\n\n this.updateSecondDropdown();\n this.updateSum();\n this.emitValuesIfValid();\n }\n\n handleSecondDropdown = debounce((e: Event) => {\n const target = e.target as HTMLElement | null;\n const selectedOption = target?.closest('pn-option') as HTMLElement | null;\n \n if (!selectedOption) {\n console.error('Selected option is null');\n return;\n }\n \n const selectedValue = selectedOption.textContent?.trim();\n\n if (!selectedValue?.length) {\n return;\n }\n\n const value = parseInt(selectedValue);\n if (value < this._secondDropdownSelection) {\n this.showDelteConfirm = true;\n } else {\n for (let index = this.rowData?.length; index < value; index++) {\n this.addRow(this.generateUniqueId());\n }\n }\n this.updateSum();\n this.emitValuesIfValid();\n })\n\n @Listen('rowValueChange')\n @Listen('firstInputChange')\n @Listen('secondInputChange')\n predefinedValueChange(e) {\n const indexToUpdate = this.rowData?.findIndex(data => data.id === e.detail.id);\n const val: PredefinedValues = e.detail;\n this.rowData[indexToUpdate] = {\n ...this.rowData[indexToUpdate],\n firstInput: val.firstInput,\n secondInput: val.secondInput,\n date: val.date,\n };\n\n if (e.type === 'firstInputChange' && indexToUpdate === 0) {\n this.updateFirstInputOfRows(val.firstInput);\n }\n\n if (e.type === 'secondInputChange' && indexToUpdate === 0) {\n this.updateSecondInputOfRows(val.secondInput);\n }\n\n this.rowData = [...this.rowData];\n this.emitValuesIfValid();\n this.updateSum();\n }\n\n updateFirstInputOfRows(value: string) {\n for (let index = 1; index < this.rowData?.length; index++) {\n this.rowData[index] = {\n ...this.rowData[index],\n firstInput: value,\n };\n }\n }\n\n updateSecondInputOfRows(value: string) {\n for (let index = 1; index < this.rowData?.length; index++) {\n this.rowData[index] = {\n ...this.rowData[index],\n secondInput: value,\n };\n }\n }\n\n @Listen('deleteRowEvent')\n deleteRowEvent(e) {\n const indexToRemove = this.rowData?.findIndex(data => data.id === e.detail);\n if (indexToRemove < 0) {\n return;\n }\n\n this.rowData?.splice(indexToRemove, 1);\n this.rowData = [...this.rowData];\n\n this.secondDropdownArr = [...this.secondDropdownArr];\n this.emitValuesIfValid();\n this.updateSum();\n }\n\n updateSum() {\n this.rowSum = '';\n let sum = 0;\n this.rowData?.forEach(element => {\n if (element?.firstInput?.length) {\n sum += parseInt(element.firstInput);\n }\n });\n\n this._secondDropdownSelection = this.rowData?.length;\n this.rowSum = sum.toString();\n }\n\n deleteExcessRows() {\n const selectedButton = this.pnSecondDropdown.querySelector('button span');\n const selectedValue = selectedButton?.textContent?.trim();\n\n if (!selectedValue?.length) {\n return;\n }\n const rowsToDelete = this.rowData?.length - parseInt(selectedValue);\n for (let index = 0; index < rowsToDelete; index++) {\n this.rowData?.pop();\n }\n this.rowData = [...this.rowData];\n this.showDelteConfirm = false;\n this.updateSum();\n }\n\n abortDeleteRows() {\n this.showDelteConfirm = false;\n }\n\n emitValuesIfValid() {\n this.formValues = [];\n this.rowData?.forEach(item => {\n const rowValue: FormValue = { row: [] };\n if (this._firstDropdownSelection?.length) {\n const dropDownValue: RowValue = { name: this.firstDropdownLabel, value: this._firstDropdownSelection };\n rowValue.row.push(dropDownValue);\n }\n \n if (item.firstInput?.length) {\n const firstInputValue: RowValue = { name: this.fristInputLabel, value: item.firstInput };\n rowValue.row.push(firstInputValue);\n }\n \n if (item.secondInput?.length) {\n const secondInputValue: RowValue = { name: this.secondInputLabel, value: item.secondInput };\n rowValue.row.push(secondInputValue);\n }\n\n if (item.date) {\n const dateValue: RowValue = { name: this.dateLabel, value: item.date };\n rowValue.row.push(dateValue);\n }\n \n if (rowValue.row.length === 4) {\n this.formValues.push(rowValue);\n }\n });\n \n if (this.formValues.length === this.rowData?.length) {\n const valueJsonString = JSON.stringify(this.formValues);\n this.allFormValues.emit(valueJsonString);\n } else {\n this.allFormValues.emit('');\n }\n }\n\n render() {\n return (\n <Host class=\"dropdown-with-multi-input-element\">\n <div class=\"dropdown-with-multi-input-element__row\">\n <div class=\"dropdown-with-multi-input-element__dropdown\">\n <pn-select ref={el => (this.pnFirstDropdown = el as HTMLElement)} class=\"pn-row-select-dropdown dropDown1-dropdown\" label={this.firstDropdownLabel} empty-option=\"true\" language={this.languageCode}>\n {this.dropdownDataRoot?.map((item, i) => (\n <pn-option index={i} label={item.label} value={item.value} selected={item.checked} onClick={debounce(this.handleFirstDropdown.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n {this.firstDropdownHelperText?.length ? <small>{this.firstDropdownHelperText}</small> : null}\n </div>\n </div>\n\n <div class=\"dropdown-with-multi-input-element__row\">\n <div class=\"dropdown-with-multi-input-element__dropdown\">\n <pn-select ref={el => (this.pnSecondDropdown = el as HTMLElement)} class=\"pn-row-select-dropdown dropDown2-dropdown\" label={this.secondDropdownLabel} empty-option=\"true\" language={this.languageCode}>\n {this.secondDropdownArr?.map((item, i) => (\n <pn-option index={i} label={item} value={item} selected={item === this._secondDropdownSelection} onClick={debounce(this.handleSecondDropdown.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n {this.secondDropdownHelperText?.length ? <small>{this.secondDropdownHelperText}</small> : null}\n </div>\n </div>\n\n {this.showDelteConfirm ? (\n <div class=\"dropdown-with-multi-input-element__delete\">\n <p>{this.deleteMultipleRowsWarningText}</p>\n <pn-button ref={el => (this.pnConfirmDeleteButton = el as HTMLElement)} small=\"true\" appearance=\"warning\" onClick={this.deleteExcessRows.bind(this)}>\n {this.confirmDeleteButtonText}\n </pn-button>\n <pn-button ref={el => (this.pnAbortDeleteButton = el as HTMLElement)} small=\"true\" appearance=\"light\" onClick={this.abortDeleteRows.bind(this)}>\n {this.abortDeleteButtonText}\n </pn-button>\n </div>\n ) : null}\n\n <div class=\"dropdown-with-multi-input-element__label-row\">\n <div class=\"dropdown-with-multi-input-element__label\">\n <label>{this.fristInputLabel}</label>\n </div>\n <div class=\"dropdown-with-multi-input-element__label\">\n <label>{this.secondInputLabel}</label>\n </div>\n <div class=\"dropdown-with-multi-input-element__label\">\n <label>{this.dateLabel}</label>\n </div>\n </div>\n\n {this.rowData?.map((data, i) => {\n return (\n <div class={'dropdown-with-multi-input-element__row generated-row-' + i} id={'generated-row-' + i}>\n <pn-dropdown-with-multi-input-rows-row\n language-code={this.languageCode}\n frist-input-placeholder={this.fristInputPlaceholder}\n first-input-min={this.firstInputMin}\n first-input-max={this.firstInputMax}\n first-input-warning={this.firstInputWarning}\n first-input-warning-text={this.firstInputWarningText}\n first-input-low-error-text={this.firstInputLowErrorText}\n first-input-high-error-text={this.firstInputHighErrorText}\n second-input-placeholder={this.secondInputPlaceholder}\n second-input-min={this.secondInputMin}\n second-input-max={this.secondInputMax}\n second-input-warning={this.secondInputWarning}\n second-input-warning-text={this.secondInputWarningText}\n second-input-low-error-text={this.secondInputLowErrorText}\n second-input-high-error-text={this.secondInputHighErrorText}\n datePlaceholder={this.datePlaceholder}\n firstValidDate={this.firstValidDateString}\n lastValidDate={this.lastValidDateString}\n predefined-value={JSON.stringify(data)}\n min-row-count={this.minRowCount}\n row-index={i}\n ></pn-dropdown-with-multi-input-rows-row>\n </div>\n );\n })}\n\n <div class=\"dropdown-with-multi-input-element__row sum-row\">\n <pn-marketweb-input disabled={true} ref={el => (this.pnSumField = el as HTMLElement)} type=\"number\" value={this.rowSum} label={this.sumFieldLabel}></pn-marketweb-input>\n\n <pn-button\n tooltip={this.addRowText ? this.addRowText : null}\n left-icon=\"true\"\n arialabel=\"Add\"\n icon={plus}\n appearance=\"light\"\n variant=\"borderless\"\n class=\"connected-dropdown__button-right\"\n onClick={() => {\n this.addRow(this.generateUniqueId());\n }}\n >\n {this.addRowText}\n </pn-button>\n </div>\n\n {this.elementHelperText?.length ? <div class=\"dropdown-with-multi-input-element__row\">{this.elementHelperText}</div> : null}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-bca6f414.js');
6
6
  const FetchHelper = require('./FetchHelper-dcfe4038.js');
7
7
  const translations = require('./translations-67ac592a.js');
8
- const arrow_left = require('./arrow_left-71879efe.js');
9
8
  const arrow_right = require('./arrow_right-66958158.js');
9
+ const arrow_left = require('./arrow_left-71879efe.js');
10
10
 
11
11
  const pnProxioPricegroupCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightvaluecontainer pn-button button::before{display:none}pn-proxio-pricegroup div.weightradios{display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap;color:#005d92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:flex;flex-direction:column;align-items:center;align-content:center;flex-wrap:wrap;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position=\"0\"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position=\"2\"],pn-proxio-pricegroup div.weightdata[data-carousel-position=\"-2\"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005d92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;box-shadow:0 0 0 0.3rem #ffffff, 0 0 0 0.4rem #005d92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#f3f2f2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#ffffff}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{box-shadow:none}";
12
12
  const PnProxioPricegroupStyle0 = pnProxioPricegroupCss;
@@ -1,21 +1,21 @@
1
- import readme from './readme.md?raw';
1
+ import docs from "./pn-animated-tile-docs.json";
2
2
 
3
3
  export default {
4
4
  title: 'Components/Animation/Flip',
5
5
  parameters: {
6
- notes: readme,
6
+ notes: docs,
7
7
  layout: 'fullscreen',
8
8
  },
9
9
  };
10
10
 
11
11
  const FlipDefault = args => {
12
- return `
12
+ return `
13
13
  <div style="width:100%; display:flex; flex-direction:row; gap:16px;">
14
14
  <div style="width:33%">
15
15
  <pn-animated-tile data-cat-theme="private" data-cat-firstpage-only="true">
16
16
  <div slot="side-a">
17
17
  <div style="width:100%;height:100%; display: flex;justify-content: flex-end;align-items: center;">
18
- <h2 style="color:#fff; font-size:7.2rem; text-align:right;">No <span style="display:block;color:#00A0D6; border-radius:0.4rem; background-color:#fff; padding: 0 0.8rem">side-b</span></h2>
18
+ <h2 style="color:#fff; font-size:7.2rem; text-align:right;">No <span style="display:block;color:#00A0D6; border-radius:0.4rem; background-color:#fff; padding: 0 0.8rem">side-b</span></h2>
19
19
  </div>
20
20
  </div>
21
21
  <div slot="side-b"></div>
@@ -26,63 +26,63 @@ const FlipDefault = args => {
26
26
  <pn-animated-tile data-cat-theme="white" data-cat-firstpage-only="false">
27
27
  <div slot="side-a">
28
28
  <div style="width:100%;height:100%; display: flex;justify-content: center;align-items: center;">
29
- <h2 style="color:#FFF; font-size:7.2rem; text-align:right;">Track <span style="color:#F06365; border-radius:0.4rem; background-color:#005D92; padding: 0 0.8rem">shipments</span></h2>
29
+ <h2 style="color:#FFF; font-size:7.2rem; text-align:right;">Track <span style="color:#F06365; border-radius:0.4rem; background-color:#005D92; padding: 0 0.8rem">shipments</span></h2>
30
30
  </div>
31
31
  </div>
32
32
  <div slot="side-b">
33
- <div style="display:flex; flex-direction:column; justify-content:center; overflow-y:scroll; height:100%;">
33
+ <div style="display:flex; flex-direction:column; justify-content:center; overflow-y:scroll; height:100%;">
34
34
  <h2 style="color:#FFF; padding:0 0.8rem">Heading</h2>
35
35
  <p style="color:#FFF; padding:0 0.8rem">
36
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
36
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
37
37
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
38
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
39
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
40
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
41
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
42
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
43
- Vivamus porta non ex vitae mollis.
44
-
45
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
38
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
39
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
40
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
41
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
42
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
43
+ Vivamus porta non ex vitae mollis.
44
+
45
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
46
46
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
47
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
48
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
49
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
50
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
51
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
52
- Vivamus porta non ex vitae mollis.
47
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
48
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
49
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
50
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
51
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
52
+ Vivamus porta non ex vitae mollis.
53
53
 
54
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
54
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
55
55
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
56
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
57
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
58
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
59
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
60
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
61
- Vivamus porta non ex vitae mollis.
62
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
56
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
57
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
58
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
59
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
60
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
61
+ Vivamus porta non ex vitae mollis.
62
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
63
63
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
64
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
65
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
66
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
67
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
68
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
69
- Vivamus porta non ex vitae mollis.
70
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
64
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
65
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
66
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
67
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
68
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
69
+ Vivamus porta non ex vitae mollis.
70
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
71
71
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
72
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
73
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
74
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
75
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
76
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
77
- Vivamus porta non ex vitae mollis.
78
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
72
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
73
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
74
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
75
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
76
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
77
+ Vivamus porta non ex vitae mollis.
78
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
79
79
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
80
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
81
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
82
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
83
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
84
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
85
- Vivamus porta non ex vitae mollis.
80
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
81
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
82
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
83
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
84
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
85
+ Vivamus porta non ex vitae mollis.
86
86
  </p>
87
87
  </div>
88
88
  </div>
@@ -93,17 +93,17 @@ const FlipDefault = args => {
93
93
  <pn-animated-tile data-cat-theme="hybrid">
94
94
  <div slot="side-a"></div>
95
95
  <div slot="side-b">
96
- <div style="display:flex; flex-direction:column; justify-content:center; height:100%;">
96
+ <div style="display:flex; flex-direction:column; justify-content:center; height:100%;">
97
97
  <h2 style="color:#2D2013; padding:0 0.8rem">Heading</h2>
98
98
  <p style="color:#2D2013; padding:0 0.8rem">
99
- Nam interdum urna ipsum, a volutpat tortor iaculis non.
99
+ Nam interdum urna ipsum, a volutpat tortor iaculis non.
100
100
  Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
101
- Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
102
- Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
103
- Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
104
- Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
105
- Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
106
- Vivamus porta non ex vitae mollis.
101
+ Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
102
+ Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
103
+ Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
104
+ Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
105
+ Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
106
+ Vivamus porta non ex vitae mollis.
107
107
  </p>
108
108
  </div>
109
109
  </div>
@@ -1,9 +1,9 @@
1
- import readme from './readme.md?raw';
1
+ import docs from "./pn-play-on-scroll-docs.json";
2
2
 
3
3
  export default {
4
4
  title: 'Components/Scroller/Fade',
5
5
  parameters: {
6
- notes: readme,
6
+ notes: docs,
7
7
  layout: 'fullscreen',
8
8
  },
9
9
  };
@@ -1,9 +1,9 @@
1
- import readme from './readme.md?raw';
1
+ import docs from "./pn-scroll-docs.json";
2
2
 
3
3
  export default {
4
4
  title: 'Components/Animation/Scroll',
5
5
  parameters: {
6
- notes: readme,
6
+ notes: docs,
7
7
  layout: 'fullscreen',
8
8
  },
9
9
  };
@@ -66,9 +66,9 @@ const ScrollTemplateFade = args => {
66
66
  <br>
67
67
  <br>
68
68
  <br>
69
- <br>
69
+ <br>
70
70
  <pn-scroll><p slot="scroll-affected" style="background:blue">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque fringilla sem sed lectus convallis, sit amet posuere dolor imperdiet. Morbi in arcu consectetur, ultricies orci et, dignissim magna. Nulla nec erat sed mi eleifend efficitur. Donec placerat felis vel cursus mattis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean facilisis purus id arcu consequat facilisis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam interdum nulla a odio facilisis sodales. Vivamus finibus vestibulum orci nec rutrum. Aenean in ullamcorper eros, eget hendrerit quam.</p></pn-scroll>
71
- <br>
71
+ <br>
72
72
  <br>
73
73
  <br>
74
74
  <br>
@@ -1,9 +1,9 @@
1
- import readme from './readme.md?raw';
1
+ import docs from "./pn-quote-card-docs.json";
2
2
 
3
3
  export default {
4
4
  title: 'Components/Cards/Quote Card',
5
5
  parameters: {
6
- notes: readme,
6
+ notes: docs,
7
7
  layout: 'fullscreen',
8
8
  },
9
9
  };
@@ -1,10 +1,10 @@
1
- import readme from './readme.md?raw';
1
+ import docs from "./pn-teaser-card-docs.json";
2
2
  import { open_in_new, arrow_right } from 'pn-design-assets/pn-assets/icons';
3
3
 
4
4
  export default {
5
5
  title: 'Components/Cards/Teaser Card',
6
6
  parameters: {
7
- notes: readme,
7
+ notes: docs,
8
8
  layout: 'centered',
9
9
  },
10
10
  };