@postnord/pn-marketweb-components 4.3.6 → 4.3.7

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 (417) hide show
  1. package/cjs/{convert-9361e443.js → convert-aa209554.js} +27 -17
  2. package/cjs/convert-aa209554.js.map +1 -0
  3. package/cjs/pn-find-price.cjs.entry.js +1 -1
  4. package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
  5. package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
  6. package/cjs/pn-teaser-card.cjs.entry.js +1 -1
  7. package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
  8. package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +2 -2
  9. package/components/convert.js +26 -16
  10. package/components/convert.js.map +1 -1
  11. package/components/pn-teaser-card.js +1 -1
  12. package/components/pn-teaser-card.js.map +1 -1
  13. package/esm/{convert-ecca01b6.js → convert-a9a18794.js} +27 -17
  14. package/esm/convert-a9a18794.js.map +1 -0
  15. package/esm/pn-find-price.entry.js +1 -1
  16. package/esm/pn-find-service-and-price.entry.js +1 -1
  17. package/esm/pn-product-pricelist.entry.js +1 -1
  18. package/esm/pn-teaser-card.entry.js +1 -1
  19. package/esm/pn-teaser-card.entry.js.map +1 -1
  20. package/package.json +1 -1
  21. package/pn-market-web-components/p-00e6bb4b.js +2 -0
  22. package/pn-market-web-components/p-00e6bb4b.js.map +1 -0
  23. package/pn-market-web-components/{p-c4059cc1.entry.js → p-181e40ee.entry.js} +2 -2
  24. package/pn-market-web-components/{p-6d263c6e.entry.js → p-96d81eb2.entry.js} +2 -2
  25. package/pn-market-web-components/p-96d81eb2.entry.js.map +1 -0
  26. package/pn-market-web-components/{p-f8ccc718.entry.js → p-a0d7154f.entry.js} +2 -2
  27. package/pn-market-web-components/{p-413afe7c.entry.js → p-c18154a4.entry.js} +2 -2
  28. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  29. package/umd/modules/@postnord/web-components/cem.json +12220 -0
  30. package/umd/modules/@postnord/web-components/cjs/{index-CfUQZtlH.js → index-DWu-2oJc.js} +144 -85
  31. package/umd/modules/@postnord/web-components/cjs/{index-CNdVg5VI.js → index-vOySuOUW.js} +1 -1
  32. package/umd/modules/@postnord/web-components/cjs/index.cjs.js +18 -16
  33. package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
  34. package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +2 -2
  35. package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +5 -4
  36. package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +6 -6
  37. package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
  38. package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +3 -3
  39. package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +4 -4
  40. package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +63 -21
  41. package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +38 -18
  42. package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +71 -37
  43. package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +185 -103
  44. package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +33 -27
  45. package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +73 -42
  46. package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
  47. package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
  48. package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +8 -10
  49. package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +3 -3
  50. package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +122 -89
  51. package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +24 -12
  52. package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +136 -52
  53. package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
  54. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +3 -3
  55. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +3 -3
  56. package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +3 -3
  57. package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +4 -4
  58. package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +2 -2
  59. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +3 -3
  60. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +3 -3
  61. package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +2 -2
  62. package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +61 -20
  63. package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +88 -43
  64. package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
  65. package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +42 -25
  66. package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +16 -11
  67. package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +21 -21
  68. package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +90 -35
  69. package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +15 -10
  70. package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +1 -1
  71. package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +5 -4
  72. package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
  73. package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +88 -34
  74. package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +3 -3
  75. package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +5 -5
  76. package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +56 -20
  77. package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +2 -2
  78. package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +71 -49
  79. package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +3 -3
  80. package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
  81. package/umd/modules/@postnord/web-components/collection/collection-manifest.json +4 -1
  82. package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.css +1 -10
  83. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +5 -4
  84. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.css +13 -9
  85. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js +12 -14
  86. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.css +6 -2
  87. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js +7 -1
  88. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.css +4 -1
  89. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js +71 -13
  90. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js +1 -1
  91. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js +1 -1
  92. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js +1 -1
  93. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js +1 -1
  94. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js +1 -1
  95. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js +1 -1
  96. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js +1 -1
  97. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.css +5 -5
  98. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js +70 -45
  99. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +3 -1
  100. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +213 -52
  101. package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +1 -1
  102. package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js +128 -68
  103. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +305 -154
  104. package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +562 -275
  105. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.css +21 -16
  106. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +114 -54
  107. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.css +37 -50
  108. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +159 -97
  109. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js +7 -0
  110. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +1 -1
  111. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +415 -264
  112. package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +13 -24
  113. package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +316 -131
  114. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +3 -1
  115. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +223 -63
  116. package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +3 -0
  117. package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +357 -191
  118. package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.css +6 -9
  119. package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +177 -90
  120. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.css +1 -1
  121. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +24 -24
  122. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +84 -37
  123. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +18 -14
  124. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +237 -90
  125. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +6 -5
  126. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +255 -115
  127. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +5 -3
  128. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +216 -68
  129. package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
  130. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.css +2 -2
  131. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
  132. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
  133. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
  134. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
  135. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
  136. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
  137. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +4 -3
  138. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.css +3 -3
  139. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +11 -6
  140. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
  141. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
  142. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
  143. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
  144. package/umd/modules/@postnord/web-components/collection/globals/helpers.js +16 -14
  145. package/umd/modules/@postnord/web-components/components/helpers.js +1 -1
  146. package/umd/modules/@postnord/web-components/components/pn-accordion.js +1 -1
  147. package/umd/modules/@postnord/web-components/components/pn-action-menu.js +1 -1
  148. package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
  149. package/umd/modules/@postnord/web-components/components/pn-checkbox.js +1 -1
  150. package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
  151. package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
  152. package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1
  153. package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -1
  154. package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -1
  155. package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
  156. package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
  157. package/umd/modules/@postnord/web-components/components/pn-icon2.js +1 -1
  158. package/umd/modules/@postnord/web-components/components/pn-illustration2.js +1 -1
  159. package/umd/modules/@postnord/web-components/components/pn-input2.js +1 -1
  160. package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -1
  161. package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
  162. package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
  163. package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
  164. package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
  165. package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
  166. package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
  167. package/umd/modules/@postnord/web-components/components/pn-progress-bar2.js +1 -1
  168. package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js +1 -1
  169. package/umd/modules/@postnord/web-components/components/pn-progress-indicator.js +1 -1
  170. package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js +1 -1
  171. package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
  172. package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
  173. package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
  174. package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
  175. package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
  176. package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
  177. package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -1
  178. package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
  179. package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
  180. package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
  181. package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
  182. package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
  183. package/umd/modules/@postnord/web-components/components/pn-toast.js +1 -1
  184. package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
  185. package/umd/modules/@postnord/web-components/components/pn-tooltip.js +1 -1
  186. package/umd/modules/@postnord/web-components/components/pn-wizard.js +1 -1
  187. package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
  188. package/umd/modules/@postnord/web-components/esm/{index-CosyroON.js → index-DyhO6xPY.js} +1 -1
  189. package/umd/modules/@postnord/web-components/esm/{index-CAEP792y.js → index-XKg-ydzH.js} +144 -85
  190. package/umd/modules/@postnord/web-components/esm/index.js +19 -17
  191. package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
  192. package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +2 -2
  193. package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +5 -4
  194. package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +6 -6
  195. package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
  196. package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +3 -3
  197. package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +4 -4
  198. package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +63 -21
  199. package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +38 -18
  200. package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +71 -37
  201. package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +185 -103
  202. package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +33 -27
  203. package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +73 -42
  204. package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
  205. package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
  206. package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +8 -10
  207. package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +3 -3
  208. package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +122 -89
  209. package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +24 -12
  210. package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +137 -53
  211. package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
  212. package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +3 -3
  213. package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +3 -3
  214. package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +3 -3
  215. package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +4 -4
  216. package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +2 -2
  217. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +3 -3
  218. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +3 -3
  219. package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +2 -2
  220. package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +61 -20
  221. package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +88 -43
  222. package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
  223. package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +42 -25
  224. package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +16 -11
  225. package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +21 -21
  226. package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +90 -35
  227. package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +15 -10
  228. package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +1 -1
  229. package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +5 -4
  230. package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
  231. package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +88 -34
  232. package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +3 -3
  233. package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +5 -5
  234. package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +56 -20
  235. package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +2 -2
  236. package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +71 -49
  237. package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +3 -3
  238. package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
  239. package/umd/modules/@postnord/web-components/hydrate/index.js +1715 -940
  240. package/umd/modules/@postnord/web-components/hydrate/index.mjs +1715 -940
  241. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/package.json +1 -1
  242. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node +0 -0
  243. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/package.json +1 -1
  244. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node +0 -0
  245. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +3 -2
  246. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +3 -2
  247. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
  248. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
  249. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +3312 -561
  250. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +1 -1
  251. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
  252. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +2 -2
  253. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +1 -1
  254. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
  255. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +2 -2
  256. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
  257. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
  258. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +246 -179
  259. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
  260. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
  261. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +1 -1
  262. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +245 -180
  263. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
  264. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +59 -22
  265. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
  266. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +1 -0
  267. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +1 -1
  268. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +49 -0
  269. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +51 -1
  270. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +26 -0
  271. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +23 -2
  272. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +238 -169
  273. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
  274. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +59 -22
  275. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +12 -3
  276. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +59 -22
  277. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
  278. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +10 -10
  279. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1 -1
  280. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
  281. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +1 -1
  282. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/460.node-fetch.js +3 -3
  283. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +2 -2
  284. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -1
  285. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -1
  286. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +32 -32
  287. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +4 -4
  288. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
  289. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -1
  290. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
  291. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +33 -1
  292. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
  293. package/umd/modules/@postnord/web-components/package.json +16 -16
  294. package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -1
  295. package/umd/modules/@postnord/web-components/postnord-web-components/{p-ea50ecd2.entry.js → p-020ee3f4.entry.js} +1 -1
  296. package/umd/modules/@postnord/web-components/postnord-web-components/p-060b6ad2.entry.js +5 -0
  297. package/umd/modules/@postnord/web-components/postnord-web-components/p-0bf70d44.entry.js +5 -0
  298. package/umd/modules/@postnord/web-components/postnord-web-components/p-1ec52623.entry.js +5 -0
  299. package/umd/modules/@postnord/web-components/postnord-web-components/p-27c71f60.entry.js +5 -0
  300. package/umd/modules/@postnord/web-components/postnord-web-components/p-292a7591.entry.js +5 -0
  301. package/umd/modules/@postnord/web-components/postnord-web-components/{p-3d2cac86.entry.js → p-3709c995.entry.js} +1 -1
  302. package/umd/modules/@postnord/web-components/postnord-web-components/p-3db02038.entry.js +5 -0
  303. package/umd/modules/@postnord/web-components/postnord-web-components/{p-2f4ad4a4.entry.js → p-4b9fb0fc.entry.js} +1 -1
  304. package/umd/modules/@postnord/web-components/postnord-web-components/p-506a801d.entry.js +5 -0
  305. package/umd/modules/@postnord/web-components/postnord-web-components/p-518651ad.entry.js +5 -0
  306. package/umd/modules/@postnord/web-components/postnord-web-components/p-54917d9f.entry.js +5 -0
  307. package/umd/modules/@postnord/web-components/postnord-web-components/p-56ade97b.entry.js +5 -0
  308. package/umd/modules/@postnord/web-components/postnord-web-components/p-64207923.entry.js +5 -0
  309. package/umd/modules/@postnord/web-components/postnord-web-components/p-665af57e.entry.js +5 -0
  310. package/umd/modules/@postnord/web-components/postnord-web-components/p-6d85c967.entry.js +5 -0
  311. package/umd/modules/@postnord/web-components/postnord-web-components/p-6e407015.entry.js +5 -0
  312. package/umd/modules/@postnord/web-components/postnord-web-components/{p-01ac1c67.entry.js → p-720b8b90.entry.js} +1 -1
  313. package/umd/modules/@postnord/web-components/postnord-web-components/p-7aea3de5.entry.js +5 -0
  314. package/umd/modules/@postnord/web-components/postnord-web-components/p-7b6ae520.entry.js +5 -0
  315. package/umd/modules/@postnord/web-components/postnord-web-components/p-83d02093.entry.js +5 -0
  316. package/umd/modules/@postnord/web-components/postnord-web-components/p-88344f8d.entry.js +5 -0
  317. package/umd/modules/@postnord/web-components/postnord-web-components/{p-3c96cb61.entry.js → p-895acf7f.entry.js} +1 -1
  318. package/umd/modules/@postnord/web-components/postnord-web-components/p-8cedf2e0.entry.js +5 -0
  319. package/umd/modules/@postnord/web-components/postnord-web-components/p-91c6a8cf.entry.js +5 -0
  320. package/umd/modules/@postnord/web-components/postnord-web-components/p-98a37be9.entry.js +5 -0
  321. package/umd/modules/@postnord/web-components/postnord-web-components/p-9a6c90e4.entry.js +5 -0
  322. package/umd/modules/@postnord/web-components/postnord-web-components/p-9d2ee77a.entry.js +5 -0
  323. package/umd/modules/@postnord/web-components/postnord-web-components/p-9d56fb64.entry.js +5 -0
  324. package/umd/modules/@postnord/web-components/postnord-web-components/{p-BlM_xfdt.js → p-BWAVaTWQ.js} +1 -1
  325. package/umd/modules/@postnord/web-components/postnord-web-components/p-XKg-ydzH.js +6 -0
  326. package/umd/modules/@postnord/web-components/postnord-web-components/p-a1f92f19.entry.js +5 -0
  327. package/umd/modules/@postnord/web-components/postnord-web-components/p-a31d93db.entry.js +5 -0
  328. package/umd/modules/@postnord/web-components/postnord-web-components/p-aa15469e.entry.js +5 -0
  329. package/umd/modules/@postnord/web-components/postnord-web-components/{p-db2b7e5d.entry.js → p-b45e58df.entry.js} +1 -1
  330. package/umd/modules/@postnord/web-components/postnord-web-components/p-b72f9866.entry.js +5 -0
  331. package/umd/modules/@postnord/web-components/postnord-web-components/{p-b0710b87.entry.js → p-b7a2e5b0.entry.js} +1 -1
  332. package/umd/modules/@postnord/web-components/postnord-web-components/p-c09179d6.entry.js +5 -0
  333. package/umd/modules/@postnord/web-components/postnord-web-components/{p-38e44ed0.entry.js → p-ce2c2395.entry.js} +1 -1
  334. package/umd/modules/@postnord/web-components/postnord-web-components/p-d228b929.entry.js +5 -0
  335. package/umd/modules/@postnord/web-components/postnord-web-components/p-d71054df.entry.js +5 -0
  336. package/umd/modules/@postnord/web-components/postnord-web-components/p-d81b4ede.entry.js +5 -0
  337. package/umd/modules/@postnord/web-components/postnord-web-components/p-e11b4af5.entry.js +5 -0
  338. package/umd/modules/@postnord/web-components/postnord-web-components/{p-c4c4c75b.entry.js → p-e5574624.entry.js} +1 -1
  339. package/umd/modules/@postnord/web-components/postnord-web-components/p-e6ad75f9.entry.js +5 -0
  340. package/umd/modules/@postnord/web-components/postnord-web-components/p-e6cd4c7f.entry.js +5 -0
  341. package/umd/modules/@postnord/web-components/postnord-web-components/p-ede550f0.entry.js +5 -0
  342. package/umd/modules/@postnord/web-components/postnord-web-components/p-ef00ef4d.entry.js +5 -0
  343. package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
  344. package/umd/modules/@postnord/web-components/types/components/buttons/pn-action-menu/pn-action-menu.d.ts +111 -0
  345. package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.d.ts +2 -2
  346. package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-icon/pn-icon.d.ts +5 -7
  347. package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-illustration/pn-illustration.d.ts +8 -2
  348. package/umd/modules/@postnord/web-components/types/components/feedback/pn-modal/pn-modal.d.ts +17 -6
  349. package/umd/modules/@postnord/web-components/types/components/feedback/pn-toast/pn-toast.d.ts +100 -0
  350. package/umd/modules/@postnord/web-components/types/components/feedback/pn-wizard/pn-wizard.d.ts +6 -1
  351. package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +124 -0
  352. package/umd/modules/@postnord/web-components/types/components/input/pn-choice-chip/pn-choice-chip.d.ts +31 -15
  353. package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +51 -27
  354. package/umd/modules/@postnord/web-components/types/components/input/pn-date-picker/pn-date-picker.d.ts +338 -0
  355. package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.d.ts +24 -15
  356. package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/pn-file-upload.d.ts +36 -27
  357. package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/translation.d.ts +7 -0
  358. package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +89 -66
  359. package/umd/modules/@postnord/web-components/types/components/input/pn-multiselect/pn-multiselect.d.ts +265 -0
  360. package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.d.ts +124 -0
  361. package/umd/modules/@postnord/web-components/types/components/input/pn-range/pn-range.d.ts +73 -42
  362. package/umd/modules/@postnord/web-components/types/components/input/pn-search-field/pn-search-field.d.ts +32 -21
  363. package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/pn-segmented-control.d.ts +19 -18
  364. package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/segment/pn-segment.d.ts +12 -9
  365. package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +51 -31
  366. package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +58 -27
  367. package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.d.ts +36 -14
  368. package/umd/modules/@postnord/web-components/types/components.d.ts +1851 -511
  369. package/umd/modules/@postnord/web-components/types/globals/mixins/index.d.ts +21 -0
  370. package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +23 -2
  371. package/umd/modules/@postnord/web-components/vscode-data.json +218 -38
  372. package/cjs/convert-9361e443.js.map +0 -1
  373. package/esm/convert-ecca01b6.js.map +0 -1
  374. package/pn-market-web-components/p-63ff7fa2.js +0 -2
  375. package/pn-market-web-components/p-63ff7fa2.js.map +0 -1
  376. package/pn-market-web-components/p-6d263c6e.entry.js.map +0 -1
  377. package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +0 -5
  378. package/umd/modules/@postnord/web-components/postnord-web-components/p-0e94a4dd.entry.js +0 -5
  379. package/umd/modules/@postnord/web-components/postnord-web-components/p-0ed2ee53.entry.js +0 -5
  380. package/umd/modules/@postnord/web-components/postnord-web-components/p-109ba1fc.entry.js +0 -5
  381. package/umd/modules/@postnord/web-components/postnord-web-components/p-153311c8.entry.js +0 -5
  382. package/umd/modules/@postnord/web-components/postnord-web-components/p-1a3c49ba.entry.js +0 -5
  383. package/umd/modules/@postnord/web-components/postnord-web-components/p-2610f8ab.entry.js +0 -5
  384. package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +0 -5
  385. package/umd/modules/@postnord/web-components/postnord-web-components/p-2a364778.entry.js +0 -5
  386. package/umd/modules/@postnord/web-components/postnord-web-components/p-2a682ff9.entry.js +0 -5
  387. package/umd/modules/@postnord/web-components/postnord-web-components/p-2cce8a9f.entry.js +0 -5
  388. package/umd/modules/@postnord/web-components/postnord-web-components/p-306ec758.entry.js +0 -5
  389. package/umd/modules/@postnord/web-components/postnord-web-components/p-3d459401.entry.js +0 -5
  390. package/umd/modules/@postnord/web-components/postnord-web-components/p-3deb5a9e.entry.js +0 -5
  391. package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +0 -5
  392. package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +0 -5
  393. package/umd/modules/@postnord/web-components/postnord-web-components/p-50116c0d.entry.js +0 -5
  394. package/umd/modules/@postnord/web-components/postnord-web-components/p-502b8430.entry.js +0 -5
  395. package/umd/modules/@postnord/web-components/postnord-web-components/p-5b7c1333.entry.js +0 -5
  396. package/umd/modules/@postnord/web-components/postnord-web-components/p-67f55491.entry.js +0 -5
  397. package/umd/modules/@postnord/web-components/postnord-web-components/p-838c17b9.entry.js +0 -5
  398. package/umd/modules/@postnord/web-components/postnord-web-components/p-849d48c6.entry.js +0 -5
  399. package/umd/modules/@postnord/web-components/postnord-web-components/p-89aaa3c8.entry.js +0 -5
  400. package/umd/modules/@postnord/web-components/postnord-web-components/p-8b2b6f5d.entry.js +0 -5
  401. package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +0 -5
  402. package/umd/modules/@postnord/web-components/postnord-web-components/p-97ffc4b3.entry.js +0 -5
  403. package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +0 -6
  404. package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +0 -5
  405. package/umd/modules/@postnord/web-components/postnord-web-components/p-b8c4423b.entry.js +0 -5
  406. package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +0 -5
  407. package/umd/modules/@postnord/web-components/postnord-web-components/p-c0ae367c.entry.js +0 -5
  408. package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +0 -5
  409. package/umd/modules/@postnord/web-components/postnord-web-components/p-d1e27524.entry.js +0 -5
  410. package/umd/modules/@postnord/web-components/postnord-web-components/p-d214e930.entry.js +0 -5
  411. package/umd/modules/@postnord/web-components/postnord-web-components/p-d7091312.entry.js +0 -5
  412. package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +0 -5
  413. package/umd/modules/@postnord/web-components/postnord-web-components/p-e83de0b1.entry.js +0 -5
  414. package/umd/modules/@postnord/web-components/postnord-web-components/p-edc28eee.entry.js +0 -5
  415. /package/pn-market-web-components/{p-c4059cc1.entry.js.map → p-181e40ee.entry.js.map} +0 -0
  416. /package/pn-market-web-components/{p-f8ccc718.entry.js.map → p-a0d7154f.entry.js.map} +0 -0
  417. /package/pn-market-web-components/{p-413afe7c.entry.js.map → p-c18154a4.entry.js.map} +0 -0
@@ -9,75 +9,129 @@ import { uuidv4 } from "../../../globals/helpers";
9
9
  * This means you can use native events to listen to the input.
10
10
  *
11
11
  * @nativeInput Use the `input` event to listen to content being modified by the user.
12
+ *
13
+ * @slot helpertext - You can use this slot instead of the prop `helpertext`. Recommended, only if you need to include additional HTML markup. Such as a `pn-text-link`. Use a `span` element to wrap the text and link. {@since v7.25.0}
14
+ * @slot error - You can use this slot instead of the prop `error`. Recommended, only if you need to include additional HTML markup. Such as a `pn-text-link`. Use a `span` element to wrap the text and link. {@since v7.25.0}
12
15
  */
13
16
  export class PnTextarea {
14
17
  id = `pn-textarea-${uuidv4()}`;
15
18
  idHelper = `${this.id}-text`;
19
+ idError = `${this.id}-error`;
16
20
  hostElement;
17
21
  /** The label describing the textarea. */
18
22
  label;
19
- /** The textarea content, do not provide slotted content. */
20
- value = '';
21
23
  /** Helper text that will appear underneath the textarea. Will be overwritten if you set an `error` string */
22
24
  helpertext;
23
- /** Use the compact label variant. @since v7.21.0 */
24
- compact = false;
25
- /** A unique ID connecting the element to the label. @category HTML Textarea */
26
- textareaid = this.id;
27
- /** HTML name. @category HTML Textarea */
25
+ /** The textarea content, do not provide slotted content. @category Native attributes */
26
+ value = '';
27
+ /** HTML name. @category Native attributes */
28
28
  name;
29
- /** Set the associated form. @category HTML Textarea*/
29
+ /** Placeholder for the textarea. @category Native attributes */
30
+ placeholder;
31
+ /** Set the associated form. @category Native attributes */
30
32
  form;
31
- /** Set the row count for the textarea. @category HTML Textarea */
33
+ /** Set the row count for the textarea. @category Native attributes */
32
34
  rows = 2;
33
- /** Set the col count for the textarea. @category HTML Textarea */
35
+ /** Set the col count for the textarea. @category Native attributes */
34
36
  cols = 20;
35
- /** Set the wrap control. @category HTML Textarea */
37
+ /** Set the wrap control. @category Native attributes */
36
38
  wrap = 'soft';
37
- /** The maximum number of characters the user should be able to add, also adds a visible counter. @category HTML Textarea */
39
+ /** The maximum number of characters the user should be able to add, also adds a visible counter. @category Native attributes */
38
40
  maxlength;
39
- /** Allow the browser to autocomplete the textarea. @category HTML Textarea */
41
+ /** Allow the browser to autocomplete the textarea. @category Native attributes */
40
42
  autocomplete = 'off';
41
- /** Allow the browser to spellcheck the textarea. @category HTML Textarea */
43
+ /** Allow the browser to spellcheck the textarea. @category Native attributes */
42
44
  spellcheck = false;
43
- /** Placeholder for the textarea. @category HTML Textarea */
44
- placeholder;
45
- /** Allow the user to resize the textarea vertically. Handle width in your own layout. @category HTML Textarea */
45
+ /** Allow the user to resize the textarea vertically. Handle width in your own layout. @category Native attributes */
46
46
  resize = false;
47
- /** Make the textarea required. @category HTML Textarea */
47
+ /** Make the textarea required. @category Native attributes */
48
48
  required = false;
49
- /** Set the textarea as `valid`, will make the Label and focus rings green. @category State */
49
+ /** Disable the textarea. @category Native attributes */
50
+ disabled = false;
51
+ /** Make the textarea readonly. @category Native attributes */
52
+ readonly = false;
53
+ /** Use the compact label variant. @since v7.21.0 @category Features */
54
+ compact = false;
55
+ /** Set the textarea as `valid`, will make the Label and focus rings green. @category Features */
50
56
  valid = false;
51
- /** Set the textarea as `invalid`, will make the Label and focus rings red. @category State */
57
+ /** Set the textarea as `invalid`, will make the Label and focus rings red. @category Features */
52
58
  invalid = false;
53
- /** Same as `invalid`, but will display the string as an error message under the textarea. @category State */
59
+ /** Same as `invalid`, but will display the string as an error message under the textarea. @category Features */
54
60
  error;
55
- /** Disable the textarea. @category State */
56
- disabled = false;
57
- /** Make the textarea readonly. @category State */
58
- readonly = false;
61
+ /** Set a custom ID for the textarea. @since v7.25.0 @category HTML attributes */
62
+ pnId;
63
+ /**
64
+ * Provide the label via an aria attribute.
65
+ * We strongly recommend you use the `label` prop instead.
66
+ * @since v7.25.0
67
+ * @category HTML attributes
68
+ */
69
+ pnAriaLabel;
70
+ /**
71
+ * Provide the label from another element via its ID.
72
+ * We strongly recommend you use the `label` prop instead.
73
+ * @since v7.25.0
74
+ * @category HTML attributes
75
+ */
76
+ pnAriaLabelledby;
77
+ /** Set a custom ID for the textarea. @deprecated Use `pn-id` instead. @category HTML attributes */
78
+ textareaid;
59
79
  handleId() {
60
- if (this.textareaid !== this.id)
61
- this.idHelper = `${this.getId()}-helper`;
80
+ this.idHelper = `${this.getId()}-helpertext`;
81
+ this.idError = `${this.getId()}-error`;
62
82
  }
63
83
  setVal(event) {
64
84
  const value = event.target.value;
65
85
  this.value = value;
66
86
  }
87
+ hasHelperText() {
88
+ return this.helpertext?.length > 0 || this.checkSlottedHelper();
89
+ }
90
+ /** If any `error` text is present, either via prop/slot. */
91
+ hasErrorMessage() {
92
+ return this.error?.length > 0 || this.checkSlottedError();
93
+ }
94
+ /** If any `error` is active, either via the prop `invalid` or `error` prop/slot. */
67
95
  hasError() {
68
- return this.invalid || !!this.error;
96
+ return this.hasErrorMessage() || this.invalid || this.checkSlottedError();
69
97
  }
70
- hasMessage() {
71
- return !!(this.helpertext?.length || this.error?.length);
98
+ checkSlottedHelper() {
99
+ return !!this.hostElement.querySelector('[slot=helpertext]');
100
+ }
101
+ checkSlottedError() {
102
+ return !!this.hostElement.querySelector('[slot=error]');
103
+ }
104
+ hideHelpertext() {
105
+ return this.hasErrorMessage() || !this.hasHelperText();
106
+ }
107
+ hideError() {
108
+ return !this.hasErrorMessage();
72
109
  }
73
110
  getId() {
74
- return this.textareaid || this.id;
111
+ return this.pnId || this.textareaid || this.id;
112
+ }
113
+ displayLabel() {
114
+ return !!this.label;
115
+ }
116
+ getAriaLabel() {
117
+ return !this.displayLabel() && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
118
+ }
119
+ getAriaLabelledby() {
120
+ return !this.displayLabel() && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
121
+ }
122
+ getAriaDescribedby() {
123
+ const list = [];
124
+ if (this.hasErrorMessage())
125
+ list.push(this.idError);
126
+ else if (this.hasHelperText())
127
+ list.push(this.idHelper);
128
+ return list.length ? list.join(' ') : null;
75
129
  }
76
130
  renderLabel() {
77
131
  return (h("label", { class: "pn-textarea-label", htmlFor: this.getId(), "data-compact": this.compact }, h("span", null, this.label), this.maxlength >= 1 && h("span", null, `${this.value?.length || 0}/${this.maxlength}`)));
78
132
  }
79
133
  render() {
80
- return (h(Host, { key: '890e6c29daa489bdf44588c91457e71172e40dae' }, h("div", { key: 'c35d279a237c2411faebd0823d3a03f8212c54d0', class: "pn-textarea", "data-valid": this.valid, "data-error": this.hasError(), "data-resize": this.resize }, !this.compact && this.renderLabel(), h("textarea", { key: 'f2358babec0d5eb02e1d3ba5c21c33998e9582b3', class: "pn-textarea-element", id: this.getId(), name: this.name, rows: this.rows, cols: this.cols, wrap: this.wrap, autocomplete: this.autocomplete, spellcheck: this.spellcheck, placeholder: this.compact ? this.placeholder || ' ' : this.placeholder, maxlength: this.maxlength, value: this.value, required: this.required, disabled: this.disabled, readonly: this.readonly, "aria-describedby": this.hasMessage() ? this.idHelper : null, "aria-invalid": this.hasError().toString(), "data-compact": this.compact, onInput: e => this.setVal(e) }), this.compact && this.renderLabel(), this.hasMessage() && (h("p", { key: 'ccdaed7f958b1ef07da159973690ddd86be791f3', id: this.idHelper, class: "pn-textarea-text", role: this.error?.length ? 'alert' : null }, h("span", { key: '62d9b78ed5370629548e67001689b3d14d40deaa' }, this.error || this.helpertext))))));
134
+ return (h(Host, { key: '30ea927b4d57c041164f7ccfd052121d3723591b' }, h("div", { key: '2c927468a5159cd2544af2bd351df2b45a5abf55', class: "pn-textarea", "data-valid": this.valid, "data-error": this.hasError(), "data-resize": this.resize }, !this.compact && this.renderLabel(), h("textarea", { key: '2f933bd8e3477c3f7010d676f4fde0f49e2ebc9e', class: "pn-textarea-element", id: this.getId(), value: this.value, name: this.name, placeholder: this.compact ? this.placeholder || ' ' : this.placeholder, rows: this.rows, cols: this.cols, wrap: this.wrap, autocomplete: this.autocomplete, spellcheck: this.spellcheck, maxlength: this.maxlength, required: this.required, disabled: this.disabled, readonly: this.readonly, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.getAriaDescribedby(), "aria-invalid": this.hasError().toString(), "data-compact": this.compact, onInput: e => this.setVal(e) }), this.compact && this.renderLabel(), h("p", { key: '368de1a346ca5161b8e6da6170453cd68605e92c', id: this.idHelper, class: "pn-textarea-text", hidden: this.hideHelpertext() }, h("span", { key: '055d5ea03484c61e64bb674bad2a8bc5bffb253e' }, this.helpertext), h("slot", { key: '3782f2b397e46f3dd8e0d4253b1071b1d98ffb65', name: "helpertext" })), h("p", { key: '7a092d28df13950e4fba9e4df46c8e6176a70ae3', id: this.idError, class: "pn-textarea-text", role: "alert", hidden: this.hideError() }, h("span", { key: '49ef6664c21f2a4281dd8f8919cfa0d66d7554fb' }, this.error), h("slot", { key: '51819bfeff00a85706a4c60de35926e65e3cd22d', name: "error" })))));
81
135
  }
82
136
  static get is() { return "pn-textarea"; }
83
137
  static get originalStyleUrls() {
@@ -100,8 +154,8 @@ export class PnTextarea {
100
154
  "resolved": "string",
101
155
  "references": {}
102
156
  },
103
- "required": true,
104
- "optional": false,
157
+ "required": false,
158
+ "optional": true,
105
159
  "docs": {
106
160
  "tags": [],
107
161
  "text": "The label describing the textarea."
@@ -111,26 +165,6 @@ export class PnTextarea {
111
165
  "reflect": false,
112
166
  "attribute": "label"
113
167
  },
114
- "value": {
115
- "type": "string",
116
- "mutable": true,
117
- "complexType": {
118
- "original": "string",
119
- "resolved": "string",
120
- "references": {}
121
- },
122
- "required": false,
123
- "optional": false,
124
- "docs": {
125
- "tags": [],
126
- "text": "The textarea content, do not provide slotted content."
127
- },
128
- "getter": false,
129
- "setter": false,
130
- "reflect": false,
131
- "attribute": "value",
132
- "defaultValue": "''"
133
- },
134
168
  "helpertext": {
135
169
  "type": "string",
136
170
  "mutable": false,
@@ -150,30 +184,30 @@ export class PnTextarea {
150
184
  "reflect": false,
151
185
  "attribute": "helpertext"
152
186
  },
153
- "compact": {
154
- "type": "boolean",
155
- "mutable": false,
187
+ "value": {
188
+ "type": "string",
189
+ "mutable": true,
156
190
  "complexType": {
157
- "original": "boolean",
158
- "resolved": "boolean",
191
+ "original": "string",
192
+ "resolved": "string",
159
193
  "references": {}
160
194
  },
161
195
  "required": false,
162
- "optional": true,
196
+ "optional": false,
163
197
  "docs": {
164
198
  "tags": [{
165
- "name": "since",
166
- "text": "v7.21.0"
199
+ "name": "category",
200
+ "text": "Native attributes"
167
201
  }],
168
- "text": "Use the compact label variant."
202
+ "text": "The textarea content, do not provide slotted content."
169
203
  },
170
204
  "getter": false,
171
205
  "setter": false,
172
206
  "reflect": false,
173
- "attribute": "compact",
174
- "defaultValue": "false"
207
+ "attribute": "value",
208
+ "defaultValue": "''"
175
209
  },
176
- "textareaid": {
210
+ "name": {
177
211
  "type": "string",
178
212
  "mutable": false,
179
213
  "complexType": {
@@ -186,17 +220,16 @@ export class PnTextarea {
186
220
  "docs": {
187
221
  "tags": [{
188
222
  "name": "category",
189
- "text": "HTML Textarea"
223
+ "text": "Native attributes"
190
224
  }],
191
- "text": "A unique ID connecting the element to the label."
225
+ "text": "HTML name."
192
226
  },
193
227
  "getter": false,
194
228
  "setter": false,
195
229
  "reflect": false,
196
- "attribute": "textareaid",
197
- "defaultValue": "this.id"
230
+ "attribute": "name"
198
231
  },
199
- "name": {
232
+ "placeholder": {
200
233
  "type": "string",
201
234
  "mutable": false,
202
235
  "complexType": {
@@ -209,14 +242,14 @@ export class PnTextarea {
209
242
  "docs": {
210
243
  "tags": [{
211
244
  "name": "category",
212
- "text": "HTML Textarea"
245
+ "text": "Native attributes"
213
246
  }],
214
- "text": "HTML name."
247
+ "text": "Placeholder for the textarea."
215
248
  },
216
249
  "getter": false,
217
250
  "setter": false,
218
251
  "reflect": false,
219
- "attribute": "name"
252
+ "attribute": "placeholder"
220
253
  },
221
254
  "form": {
222
255
  "type": "string",
@@ -231,7 +264,7 @@ export class PnTextarea {
231
264
  "docs": {
232
265
  "tags": [{
233
266
  "name": "category",
234
- "text": "HTML Textarea"
267
+ "text": "Native attributes"
235
268
  }],
236
269
  "text": "Set the associated form."
237
270
  },
@@ -253,7 +286,7 @@ export class PnTextarea {
253
286
  "docs": {
254
287
  "tags": [{
255
288
  "name": "category",
256
- "text": "HTML Textarea"
289
+ "text": "Native attributes"
257
290
  }],
258
291
  "text": "Set the row count for the textarea."
259
292
  },
@@ -276,7 +309,7 @@ export class PnTextarea {
276
309
  "docs": {
277
310
  "tags": [{
278
311
  "name": "category",
279
- "text": "HTML Textarea"
312
+ "text": "Native attributes"
280
313
  }],
281
314
  "text": "Set the col count for the textarea."
282
315
  },
@@ -299,7 +332,7 @@ export class PnTextarea {
299
332
  "docs": {
300
333
  "tags": [{
301
334
  "name": "category",
302
- "text": "HTML Textarea"
335
+ "text": "Native attributes"
303
336
  }],
304
337
  "text": "Set the wrap control."
305
338
  },
@@ -322,7 +355,7 @@ export class PnTextarea {
322
355
  "docs": {
323
356
  "tags": [{
324
357
  "name": "category",
325
- "text": "HTML Textarea"
358
+ "text": "Native attributes"
326
359
  }],
327
360
  "text": "The maximum number of characters the user should be able to add, also adds a visible counter."
328
361
  },
@@ -344,7 +377,7 @@ export class PnTextarea {
344
377
  "docs": {
345
378
  "tags": [{
346
379
  "name": "category",
347
- "text": "HTML Textarea"
380
+ "text": "Native attributes"
348
381
  }],
349
382
  "text": "Allow the browser to autocomplete the textarea."
350
383
  },
@@ -367,7 +400,7 @@ export class PnTextarea {
367
400
  "docs": {
368
401
  "tags": [{
369
402
  "name": "category",
370
- "text": "HTML Textarea"
403
+ "text": "Native attributes"
371
404
  }],
372
405
  "text": "Allow the browser to spellcheck the textarea."
373
406
  },
@@ -377,12 +410,12 @@ export class PnTextarea {
377
410
  "attribute": "spellcheck",
378
411
  "defaultValue": "false"
379
412
  },
380
- "placeholder": {
381
- "type": "string",
413
+ "resize": {
414
+ "type": "boolean",
382
415
  "mutable": false,
383
416
  "complexType": {
384
- "original": "string",
385
- "resolved": "string",
417
+ "original": "boolean",
418
+ "resolved": "boolean",
386
419
  "references": {}
387
420
  },
388
421
  "required": false,
@@ -390,16 +423,17 @@ export class PnTextarea {
390
423
  "docs": {
391
424
  "tags": [{
392
425
  "name": "category",
393
- "text": "HTML Textarea"
426
+ "text": "Native attributes"
394
427
  }],
395
- "text": "Placeholder for the textarea."
428
+ "text": "Allow the user to resize the textarea vertically. Handle width in your own layout."
396
429
  },
397
430
  "getter": false,
398
431
  "setter": false,
399
432
  "reflect": false,
400
- "attribute": "placeholder"
433
+ "attribute": "resize",
434
+ "defaultValue": "false"
401
435
  },
402
- "resize": {
436
+ "required": {
403
437
  "type": "boolean",
404
438
  "mutable": false,
405
439
  "complexType": {
@@ -412,17 +446,17 @@ export class PnTextarea {
412
446
  "docs": {
413
447
  "tags": [{
414
448
  "name": "category",
415
- "text": "HTML Textarea"
449
+ "text": "Native attributes"
416
450
  }],
417
- "text": "Allow the user to resize the textarea vertically. Handle width in your own layout."
451
+ "text": "Make the textarea required."
418
452
  },
419
453
  "getter": false,
420
454
  "setter": false,
421
455
  "reflect": false,
422
- "attribute": "resize",
456
+ "attribute": "required",
423
457
  "defaultValue": "false"
424
458
  },
425
- "required": {
459
+ "disabled": {
426
460
  "type": "boolean",
427
461
  "mutable": false,
428
462
  "complexType": {
@@ -435,14 +469,63 @@ export class PnTextarea {
435
469
  "docs": {
436
470
  "tags": [{
437
471
  "name": "category",
438
- "text": "HTML Textarea"
472
+ "text": "Native attributes"
439
473
  }],
440
- "text": "Make the textarea required."
474
+ "text": "Disable the textarea."
441
475
  },
442
476
  "getter": false,
443
477
  "setter": false,
444
478
  "reflect": false,
445
- "attribute": "required",
479
+ "attribute": "disabled",
480
+ "defaultValue": "false"
481
+ },
482
+ "readonly": {
483
+ "type": "boolean",
484
+ "mutable": false,
485
+ "complexType": {
486
+ "original": "boolean",
487
+ "resolved": "boolean",
488
+ "references": {}
489
+ },
490
+ "required": false,
491
+ "optional": true,
492
+ "docs": {
493
+ "tags": [{
494
+ "name": "category",
495
+ "text": "Native attributes"
496
+ }],
497
+ "text": "Make the textarea readonly."
498
+ },
499
+ "getter": false,
500
+ "setter": false,
501
+ "reflect": false,
502
+ "attribute": "readonly",
503
+ "defaultValue": "false"
504
+ },
505
+ "compact": {
506
+ "type": "boolean",
507
+ "mutable": false,
508
+ "complexType": {
509
+ "original": "boolean",
510
+ "resolved": "boolean",
511
+ "references": {}
512
+ },
513
+ "required": false,
514
+ "optional": true,
515
+ "docs": {
516
+ "tags": [{
517
+ "name": "since",
518
+ "text": "v7.21.0"
519
+ }, {
520
+ "name": "category",
521
+ "text": "Features"
522
+ }],
523
+ "text": "Use the compact label variant."
524
+ },
525
+ "getter": false,
526
+ "setter": false,
527
+ "reflect": false,
528
+ "attribute": "compact",
446
529
  "defaultValue": "false"
447
530
  },
448
531
  "valid": {
@@ -458,7 +541,7 @@ export class PnTextarea {
458
541
  "docs": {
459
542
  "tags": [{
460
543
  "name": "category",
461
- "text": "State"
544
+ "text": "Features"
462
545
  }],
463
546
  "text": "Set the textarea as `valid`, will make the Label and focus rings green."
464
547
  },
@@ -481,7 +564,7 @@ export class PnTextarea {
481
564
  "docs": {
482
565
  "tags": [{
483
566
  "name": "category",
484
- "text": "State"
567
+ "text": "Features"
485
568
  }],
486
569
  "text": "Set the textarea as `invalid`, will make the Label and focus rings red."
487
570
  },
@@ -504,7 +587,7 @@ export class PnTextarea {
504
587
  "docs": {
505
588
  "tags": [{
506
589
  "name": "category",
507
- "text": "State"
590
+ "text": "Features"
508
591
  }],
509
592
  "text": "Same as `invalid`, but will display the string as an error message under the textarea."
510
593
  },
@@ -513,51 +596,105 @@ export class PnTextarea {
513
596
  "reflect": false,
514
597
  "attribute": "error"
515
598
  },
516
- "disabled": {
517
- "type": "boolean",
599
+ "pnId": {
600
+ "type": "string",
518
601
  "mutable": false,
519
602
  "complexType": {
520
- "original": "boolean",
521
- "resolved": "boolean",
603
+ "original": "string",
604
+ "resolved": "string",
522
605
  "references": {}
523
606
  },
524
607
  "required": false,
525
608
  "optional": true,
526
609
  "docs": {
527
610
  "tags": [{
611
+ "name": "since",
612
+ "text": "v7.25.0"
613
+ }, {
528
614
  "name": "category",
529
- "text": "State"
615
+ "text": "HTML attributes"
530
616
  }],
531
- "text": "Disable the textarea."
617
+ "text": "Set a custom ID for the textarea."
532
618
  },
533
619
  "getter": false,
534
620
  "setter": false,
535
621
  "reflect": false,
536
- "attribute": "disabled",
537
- "defaultValue": "false"
622
+ "attribute": "pn-id"
538
623
  },
539
- "readonly": {
540
- "type": "boolean",
624
+ "pnAriaLabel": {
625
+ "type": "string",
541
626
  "mutable": false,
542
627
  "complexType": {
543
- "original": "boolean",
544
- "resolved": "boolean",
628
+ "original": "string",
629
+ "resolved": "string",
545
630
  "references": {}
546
631
  },
547
632
  "required": false,
548
633
  "optional": true,
549
634
  "docs": {
550
635
  "tags": [{
636
+ "name": "since",
637
+ "text": "v7.25.0"
638
+ }, {
551
639
  "name": "category",
552
- "text": "State"
640
+ "text": "HTML attributes"
553
641
  }],
554
- "text": "Make the textarea readonly."
642
+ "text": "Provide the label via an aria attribute.\nWe strongly recommend you use the `label` prop instead."
555
643
  },
556
644
  "getter": false,
557
645
  "setter": false,
558
646
  "reflect": false,
559
- "attribute": "readonly",
560
- "defaultValue": "false"
647
+ "attribute": "pn-aria-label"
648
+ },
649
+ "pnAriaLabelledby": {
650
+ "type": "string",
651
+ "mutable": false,
652
+ "complexType": {
653
+ "original": "string",
654
+ "resolved": "string",
655
+ "references": {}
656
+ },
657
+ "required": false,
658
+ "optional": true,
659
+ "docs": {
660
+ "tags": [{
661
+ "name": "since",
662
+ "text": "v7.25.0"
663
+ }, {
664
+ "name": "category",
665
+ "text": "HTML attributes"
666
+ }],
667
+ "text": "Provide the label from another element via its ID.\nWe strongly recommend you use the `label` prop instead."
668
+ },
669
+ "getter": false,
670
+ "setter": false,
671
+ "reflect": false,
672
+ "attribute": "pn-aria-labelledby"
673
+ },
674
+ "textareaid": {
675
+ "type": "string",
676
+ "mutable": false,
677
+ "complexType": {
678
+ "original": "string",
679
+ "resolved": "string",
680
+ "references": {}
681
+ },
682
+ "required": false,
683
+ "optional": true,
684
+ "docs": {
685
+ "tags": [{
686
+ "name": "deprecated",
687
+ "text": "Use `pn-id` instead."
688
+ }, {
689
+ "name": "category",
690
+ "text": "HTML attributes"
691
+ }],
692
+ "text": "Set a custom ID for the textarea."
693
+ },
694
+ "getter": false,
695
+ "setter": false,
696
+ "reflect": false,
697
+ "attribute": "textareaid"
561
698
  }
562
699
  };
563
700
  }
@@ -565,6 +702,9 @@ export class PnTextarea {
565
702
  static get watchers() {
566
703
  return [{
567
704
  "propName": "textareaid",
705
+ "methodName": "handleId"
706
+ }, {
707
+ "propName": "pnId",
568
708
  "methodName": "handleId",
569
709
  "handlerOptions": {
570
710
  "immediate": true
@@ -105,6 +105,10 @@ pn-toggle-switch .pn-toggle-button[data-loading] .pn-toggle-element:checked ~ .p
105
105
  }
106
106
  pn-toggle-switch .pn-toggle-button[data-loading] pn-spinner {
107
107
  opacity: 1;
108
+ transform: translate(-50%, -50%);
109
+ position: absolute;
110
+ top: 50%;
111
+ left: 50%;
108
112
  }
109
113
  pn-toggle-switch .pn-toggle-bg {
110
114
  position: absolute;
@@ -137,6 +141,7 @@ pn-toggle-switch .pn-toggle-circle {
137
141
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
138
142
  border-radius: 50%;
139
143
  padding: 0.25em;
144
+ transform: translateX(0%);
140
145
  transition-property: transform, background-color;
141
146
  transition-duration: 0.2s;
142
147
  transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
@@ -147,9 +152,6 @@ pn-toggle-switch .pn-toggle-circle {
147
152
  transition-delay: 0s;
148
153
  }
149
154
  }
150
- pn-toggle-switch .pn-toggle-circle {
151
- transform: translateX(0%);
152
- }
153
155
  pn-toggle-switch .pn-toggle-element {
154
156
  position: absolute;
155
157
  z-index: 3;