@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
@@ -20,15 +20,14 @@ import { translations } from "./translations";
20
20
  */
21
21
  export class PnInput {
22
22
  id = `pn-input-${uuidv4()}`;
23
- idMessage = `${this.id}-message`;
23
+ idHelper = `${this.id}-helper`;
24
+ idError = `${this.id}-error`;
24
25
  prefix;
25
26
  suffix;
26
27
  mo;
27
28
  hostElement;
28
29
  offsetLeft = 0;
29
30
  offsetRight = 0;
30
- showHelperSlot = false;
31
- showErrorSlot = false;
32
31
  showPassword = false;
33
32
  togglePassword() {
34
33
  this.showPassword = !this.showPassword;
@@ -37,70 +36,38 @@ export class PnInput {
37
36
  label;
38
37
  /** Text message placed underneath the input field. */
39
38
  helpertext;
40
- /**
41
- * Provide a unique HTML id to connect the input with the label.
42
- * A unique uuid ID will be generated if this field is left empty.
43
- **/
44
- inputid = this.id;
45
- /** Set the value of the input. */
46
- value = '';
47
39
  /**
48
40
  * Set the language manually for the translations of show/hide/clear button text.
49
41
  * Not needed if you have the pntopbar on the page.
50
42
  **/
51
- language = null;
52
- /** Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time. @since v7.21.0 */
53
- compact = false;
54
- /**
55
- * Select an icon to display before the input field value.
56
- * `icon` takes precedence over the `text-prefix` prop.
57
- *
58
- * @see {@link textPrefix}
59
- * @category Visual
60
- **/
61
- icon;
62
- /**
63
- * Set a small text before the input field value.
64
- * Cannot be used together with an `icon` at the same time.
65
- *
66
- * @see {@link icon}
67
- * @see {@link textSuffix}
68
- * @category Visual
69
- **/
70
- textPrefix;
71
- /**
72
- * Set a small text after the input field value.
73
- * Cannot be used with the `text-prefix` prop at the same time.
74
- *
75
- * @see {@link textPrefix}
76
- * @category Visual
77
- **/
78
- textSuffix;
79
- /** pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`. @category HTML input */
43
+ language = undefined;
44
+ /** Set the value of the input. @category Native attributes */
45
+ value = '';
46
+ /** pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`. @category Native attributes */
80
47
  type = 'text';
81
48
  /**
82
49
  * HTML input name. Setting a name will help the browser understand what type of data the input have
83
50
  * and can better assist with autofill data based on previous entires much better.
84
- *
85
- * @category HTML input
51
+ * @category Native attributes
86
52
  **/
87
53
  name;
88
54
  /**
89
55
  * Provide a placeholder text. Remember that this is no replacement for a label.
90
56
  * The placeholder should be a nice addition to the label/helpertext, not important information.
91
57
  *
92
- * @category HTML input
58
+ * @category Native attributes
93
59
  **/
94
60
  placeholder;
95
61
  /**
96
62
  * Let the browser know what type of autocorrects the input should use.
97
- * Works much better if a `name` and `inputid` is supplied.
63
+ * Works much better if a `name` and `pn-id` is supplied.
98
64
  * @see {@link name}
99
65
  * @see {@link inputid}
100
66
  *
101
- * @category HTML input */
67
+ * @category Native attributes
68
+ */
102
69
  autocomplete;
103
- /** The maximum number of characters the user should be able to add, also adds a visible counter. @category HTML input */
70
+ /** The maximum number of characters the user should be able to add, also adds a visible counter. @category Native attributes */
104
71
  maxlength;
105
72
  /**
106
73
  * Hint the browser about what type of virtual keyboard should be used.
@@ -109,35 +76,62 @@ export class PnInput {
109
76
  *
110
77
  * Leave empty or with a `''` value if you want the browsers default behaviour (`text`).
111
78
  *
112
- * @category HTML input
79
+ * @category Native attributes
113
80
  **/
114
81
  inputmode;
115
- /** Point to a datalist element for this input. @category HTML input */
82
+ /** Point to a datalist element for this input. @category Native attributes */
116
83
  list;
117
- /** Pattern prop. @category HTML input*/
84
+ /** Pattern prop. @category Native attributes */
118
85
  pattern;
119
- /** Set the `min` value of the `number` input. @category HTML input */
86
+ /** Set the `min` value of the `number` input. @category Native attributes */
120
87
  min;
121
- /** Set the `max` value of the `number` input. @category HTML input */
88
+ /** Set the `max` value of the `number` input. @category Native attributes */
122
89
  max;
123
- /** Set a `step` for the number input. @category HTML input */
90
+ /** Set a `step` for the number input. @category Native attributes */
124
91
  step;
125
- /** While you can use the `aria-label`, using a `label` is far more accessible. @category HTML input */
126
- arialabel;
127
- /** Set the ID of what this input controls. @category HTML input */
128
- ariacontrols;
129
- /** Set the input as `required`. @category State */
92
+ /** Set the input as `required`. @category Native attributes */
130
93
  required = false;
131
- /** Set the input as `disabled`. @category State */
132
- disabled = false;
133
- /** Set the input as `readonly`. @category State */
94
+ /** Set the input as `readonly`. @category Native attributes */
134
95
  readonly = false;
135
- /** Set the input as `valid`. Provides a green color and a check icon. @category Validation */
96
+ /** Set the input as `disabled`. @category Native attributes */
97
+ disabled = false;
98
+ /**
99
+ * Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time.
100
+ * @since v7.21.0
101
+ * @category Features
102
+ */
103
+ compact = false;
104
+ /**
105
+ * Select an icon to display before the input field value.
106
+ * `icon` takes precedence over the `text-prefix` prop.
107
+ *
108
+ * @see {@link textPrefix}
109
+ * @category Features
110
+ **/
111
+ icon;
112
+ /**
113
+ * Set a small text before the input field value.
114
+ * Cannot be used together with an `icon` at the same time.
115
+ *
116
+ * @see {@link icon}
117
+ * @see {@link textSuffix}
118
+ * @category Features
119
+ **/
120
+ textPrefix;
121
+ /**
122
+ * Set a small text after the input field value.
123
+ * Cannot be used with the `text-prefix` prop at the same time.
124
+ *
125
+ * @see {@link textPrefix}
126
+ * @category Features
127
+ **/
128
+ textSuffix;
129
+ /** Set the input as `valid`. Provides a green color and a check icon. @category Features */
136
130
  valid = false;
137
131
  /**
138
132
  * Set the input as `invalid`. Provides a red color and red warning icon.
139
133
  * @see{@link error Provide an error message.}
140
- * @category Validation
134
+ * @category Features
141
135
  **/
142
136
  invalid = false;
143
137
  /**
@@ -145,9 +139,33 @@ export class PnInput {
145
139
  *
146
140
  * Error message; will take precedence over helpertext if both are provided.
147
141
  * @see{@link invalid Set invalid without an error message.}
148
- * @category Validation
142
+ * @category Features
149
143
  **/
150
144
  error;
145
+ /** Set a custom ID for the input (default is a generated UUID). @since v7.25.0 @category HTML attributes */
146
+ pnId;
147
+ /**
148
+ * Provide the label via an aria attribute.
149
+ * We strongly recommend you use the `label` prop instead.
150
+ * @since v7.25.0
151
+ * @category HTML attributes
152
+ */
153
+ pnAriaLabel;
154
+ /**
155
+ * Provide the label from another element via its ID.
156
+ * We strongly recommend you use the `label` prop instead.
157
+ * @since v7.25.0
158
+ * @category HTML attributes
159
+ */
160
+ pnAriaLabelledby;
161
+ /** Set the ID of what this input controls. @since v7.25.0 @category HTML attributes */
162
+ pnAriaControls;
163
+ /** Set a custom ID for the input (default is a generated UUID). @deprecated Use `pn-id` instead. @category HTML attributes */
164
+ inputid;
165
+ /** While you can use the `aria-label`, using a `label` is far more accessible. @deprecated Use `pn-aria-label` instead. @category HTML attributes */
166
+ arialabel;
167
+ /** Set the ID of what this input controls. @deprecated Use `pn-aria-controls` instead. @category HTML attributes */
168
+ ariacontrols;
151
169
  handleOffset() {
152
170
  requestAnimationFrame(() => {
153
171
  const left = this.prefix?.clientWidth ? this.prefix.clientWidth + 8 : 0;
@@ -156,15 +174,14 @@ export class PnInput {
156
174
  this.offsetRight = right;
157
175
  });
158
176
  }
159
- handleMessage() {
160
- this.checkSlottedHelper();
161
- this.checkSlottedError();
177
+ handleId() {
178
+ this.idHelper = `${this.getId()}-helper`;
179
+ this.idError = `${this.getId()}-error`;
162
180
  }
163
181
  connectedCallback() {
164
182
  this.mo = new MutationObserver(() => {
165
183
  forceUpdate(this.hostElement);
166
184
  this.handleOffset();
167
- this.handleMessage();
168
185
  });
169
186
  this.mo.observe(this.hostElement, { childList: true, subtree: true });
170
187
  }
@@ -173,15 +190,15 @@ export class PnInput {
173
190
  this.mo.disconnect();
174
191
  }
175
192
  async componentWillLoad() {
176
- this.handleMessage();
177
- if (this.inputid !== this.id)
178
- this.idMessage = `${this.inputid}-message`;
179
- if (this.language === null)
193
+ if (this.language === undefined)
180
194
  await awaitTopbar(this.hostElement);
181
195
  }
182
196
  componentDidLoad() {
183
197
  this.handleOffset();
184
198
  }
199
+ getId() {
200
+ return this.pnId || this.inputid || this.id;
201
+ }
185
202
  setVal(event) {
186
203
  const target = event.composedPath?.()[0];
187
204
  this.value = target.value;
@@ -198,26 +215,26 @@ export class PnInput {
198
215
  return translations?.[prop]?.[this.language || en];
199
216
  }
200
217
  hasHelperText() {
201
- return this.helpertext?.length > 0 || this.showHelperSlot;
218
+ return this.helpertext?.length > 0 || this.checkSlottedHelper();
202
219
  }
203
220
  hasErrorMessage() {
204
- return this.error?.length > 0 || this.showErrorSlot;
221
+ return this.error?.length > 0 || this.checkSlottedError();
205
222
  }
206
223
  /** If any error is active, either via the prop `invalid` or `error` prop/slot. */
207
224
  hasError() {
208
- return this.hasErrorMessage() || this.invalid || this.showErrorSlot;
225
+ return this.hasErrorMessage() || this.invalid;
209
226
  }
210
- /** If any helpertext or error message is active. Checks both props and slots. */
211
- hasMessage() {
212
- return this.hasHelperText() || this.hasErrorMessage();
227
+ hideHelpertext() {
228
+ return this.hasErrorMessage() || !this.hasHelperText();
229
+ }
230
+ hideError() {
231
+ return !this.hasErrorMessage();
213
232
  }
214
233
  checkSlottedHelper() {
215
- const slottedHelper = this.hostElement.querySelector('[slot=helpertext]')?.textContent;
216
- this.showHelperSlot = !!slottedHelper?.length;
234
+ return !!this.hostElement.querySelector('[slot=helpertext]');
217
235
  }
218
236
  checkSlottedError() {
219
- const slottedError = this.hostElement.querySelector('[slot=error]')?.textContent;
220
- this.showErrorSlot = !!slottedError?.length;
237
+ return !!this.hostElement.querySelector('[slot=error]');
221
238
  }
222
239
  getInputType() {
223
240
  const types = ['text', 'password', 'url', 'tel', 'search', 'number', 'email'];
@@ -275,14 +292,30 @@ export class PnInput {
275
292
  useCompactLabel() {
276
293
  return this.validLabel() && this.compact;
277
294
  }
295
+ displayLabel() {
296
+ return !!this.label;
297
+ }
298
+ getAriaLabel() {
299
+ return !this.displayLabel() && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
300
+ }
301
+ getAriaLabelledby() {
302
+ return !this.displayLabel() && !(this.pnAriaLabel || this.arialabel) ? this.pnAriaLabelledby : null;
303
+ }
304
+ getAriaDescribedby() {
305
+ if (this.hasErrorMessage())
306
+ return this.idError;
307
+ else if (this.hasHelperText())
308
+ return this.idHelper;
309
+ return null;
310
+ }
278
311
  renderLabel() {
279
- return (h("label", { htmlFor: this.inputid, class: "pn-input-label", "data-compact": this.compact }, this.label && h("span", null, this.label), this.maxlength >= 0 && h("span", null, `${this.value.length}/${this.maxlength}`)));
312
+ return (h("label", { htmlFor: this.getId(), class: "pn-input-label", "data-compact": this.compact }, this.label && h("span", null, this.label), this.maxlength >= 0 && h("span", null, `${this.value.length}/${this.maxlength}`)));
280
313
  }
281
314
  render() {
282
- return (h(Host, { key: '3250630450288d09811b7c78bca5091ba93ec7ab' }, h("div", { key: 'db673ba19f300966eaf5c38136fe7d6143aa661d', class: "pn-input", "data-valid": this.valid, "data-error": this.hasError(), style: {
315
+ return (h(Host, { key: '800f4fb8490656e28657f7a4a041ba0c6dc46af2' }, h("div", { key: '8defa078a3e541509bc17278751f8e59f59f3bd7', class: "pn-input", "data-valid": this.valid, "data-error": this.hasError(), style: {
283
316
  '--pn-input-offset-left': `${this.offsetLeft}px`,
284
317
  '--pn-input-offset-right': `${this.offsetRight}px`,
285
- } }, this.useLabel() && this.renderLabel(), h("div", { key: 'b216b7f951be237aed6e46f1ccbcfd29b2a3cad1', class: "pn-input-group" }, h("input", { key: '4ee129c35c6a74a359df9d611b236132d7afac38', type: this.getInputType(), id: this.inputid, class: "pn-input-element", name: this.name, placeholder: this.compact ? this.placeholder || ' ' : this.placeholder, autocomplete: this.autocomplete, maxlength: this.maxlength, list: this.list, pattern: this.pattern, min: this.min, max: this.max, step: this.step, value: this.value, inputmode: this.inputmode, disabled: this.disabled, required: this.required, readonly: this.readonly, "aria-label": this.arialabel, "aria-describedby": this.hasMessage() ? this.idMessage : null, "aria-controls": this.ariacontrols, "aria-invalid": this.hasError()?.toString(), "data-compact": this.compact, "data-value": this.value?.length > 0, onInput: e => this.setVal(e) }), this.useCompactLabel() && this.renderLabel(), h("div", { key: '753a9abeaf5bfa5ffb3be10042a76aa7863bce9c', class: "pn-input-eyecandy", "data-prefix": true, ref: el => (this.prefix = el) }, !!this.icon && h("pn-icon", { key: 'acf1a6e42c9d37cab6f6a0453d8ea674df1cd0c3', icon: this.icon, "aria-hidden": "true" }), this.showPrefix() && h("span", { key: '70d2eb7e94e790d665a57557595c2bce4855b827', class: "pn-input-text" }, this.textPrefix)), h("div", { key: '1dcae3fb8489d2dc6aa7325baea693591acef31c', class: "pn-input-eyecandy", "data-suffix": true, ref: el => (this.suffix = el) }, this.showSuffix() && h("span", { key: '05044f3fbea582d507de30a0ff751abaf1da3206', class: "pn-input-text" }, this.textSuffix), this.displayState() && h("pn-icon", { key: '727650c9e6c9b9da2ef43e933fab95b6adc8a6bb', "aria-hidden": "true", icon: this.stateIcon(), color: this.stateColor() }), this.isPassword() && (h("pn-button", { key: '4e28eddff11c9aea670a6764aeb0316bccba1c1c', icon: this.showPassword ? preview_on : preview_off, iconOnly: true, arialabel: this.passwordText(), small: true, appearance: "light", variant: "borderless", onClick: () => this.togglePassword() })), this.showClear() && (h("pn-button", { key: '2181adb68c152d837ef03bf9b7e0eb66eb3ea6d2', icon: close, iconOnly: true, arialabel: this.translate('CLEAR'), small: true, appearance: "light", variant: "borderless", onClick: () => this.clearVal() })))), h("p", { key: 'b8b1039a61a23efd24ebd71285b15cce7bfc5ec0', class: "pn-input-message", id: this.idMessage, role: this.hasErrorMessage() ? 'alert' : null, hidden: !this.hasMessage() }, this.hasHelperText() && !this.hasError() && h("span", { key: '4433df6b700cc40ce2ae698d2474f57163b398a1', class: "pn-input-helper" }, this.helpertext), h("span", { key: '41c8fb1cbbc17b7c349922cac2ff42244a017e0c', class: "pn-input-helper-slot", hidden: !this.showHelperSlot || this.hasError() }, h("slot", { key: '5628bbc8db75161d18ad3e75c259bf3eb5fc9052', name: "helpertext" })), this.hasErrorMessage() && h("span", { key: 'e41145d7fab9f3ae35dd428971c79673d0531301', class: "pn-input-error" }, this.error), h("span", { key: 'ae85a9420fcb449cc874eadc7a066dd772f097a9', class: "pn-input-error-slot", hidden: !this.showErrorSlot }, h("slot", { key: 'bdd31ab2f706cac6e243562d035361a381ecfa43', name: "error" }))))));
318
+ } }, this.useLabel() && this.renderLabel(), h("div", { key: 'dc01fb7fdb2a60ee89473f0152d833243be4ff8d', class: "pn-input-group" }, h("input", { key: '32f63d4aa1c6edd2d10f8876ebd3371cff366eb7', type: this.getInputType(), id: this.getId(), class: "pn-input-element", name: this.name, placeholder: this.compact ? this.placeholder || ' ' : this.placeholder, autocomplete: this.autocomplete, maxlength: this.maxlength, list: this.list, pattern: this.pattern, min: this.min, max: this.max, step: this.step, value: this.value, inputmode: this.inputmode, disabled: this.disabled, required: this.required, readonly: this.readonly, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.getAriaDescribedby(), "aria-controls": this.pnAriaControls || this.ariacontrols, "aria-invalid": this.hasError()?.toString(), "data-compact": this.compact, "data-value": this.value?.length > 0, onInput: e => this.setVal(e) }), this.useCompactLabel() && this.renderLabel(), h("div", { key: 'b52d9bfa61569635f422fedc22edd09c768ab9d8', class: "pn-input-eyecandy", "data-prefix": true, ref: el => (this.prefix = el) }, !!this.icon && h("pn-icon", { key: 'e5035273e663855094ba88ed0b485a4e8ffed56c', icon: this.icon, "aria-hidden": "true" }), this.showPrefix() && h("span", { key: '1d0e5355c5dbfecf3dbb693589726a233e3b7df6', class: "pn-input-text" }, this.textPrefix)), h("div", { key: 'e1faa82f19dcfdb6c427d5d2967bfb6694508675', class: "pn-input-eyecandy", "data-suffix": true, ref: el => (this.suffix = el) }, this.showSuffix() && h("span", { key: '4c5ecf7c19bf64eea77b21b05d9ffe491bf4b91c', class: "pn-input-text" }, this.textSuffix), this.displayState() && h("pn-icon", { key: 'f7014e0c31faf3c563c846e4a7061c6f4b35a64a', "aria-hidden": "true", icon: this.stateIcon(), color: this.stateColor() }), this.isPassword() && (h("pn-button", { key: '21518c4f16245de370fcba302b177cfe04e91904', icon: this.showPassword ? preview_on : preview_off, iconOnly: true, arialabel: this.passwordText(), small: true, appearance: "light", variant: "borderless", onClick: () => this.togglePassword() })), this.showClear() && (h("pn-button", { key: '60263a255ee8c8d3ed72ea89a26abfbe9be11d0d', icon: close, iconOnly: true, arialabel: this.translate('CLEAR'), small: true, appearance: "light", variant: "borderless", onClick: () => this.clearVal() })))), h("p", { key: 'd23165556ffcdbfcf7229a04f5c1ea8686432c97', id: this.idHelper, class: "pn-input-message", hidden: this.hideHelpertext() }, !!this.helpertext && h("span", { key: 'b7e31855d677953bbc7a4f65cb0b26a5eac8887b' }, this.helpertext), h("slot", { key: 'a6bbaeceb31e2cc38d1e110b900e13b4f0957c6e', name: "helpertext" })), h("p", { key: '3668fbc1a512f92d3f5a2c6f1f7d86cf04df148b', id: this.idError, class: "pn-input-message", role: "alert", hidden: this.hideError() }, !!this.error && h("span", { key: 'c14fb6ab8e17c7d17813c83c0993f95d079f8274' }, this.error), h("slot", { key: '75ba01e945315e6a3bbf2f5e5ac34c73fe7ab57f', name: "error" })))));
286
319
  }
287
320
  static get is() { return "pn-input"; }
288
321
  static get originalStyleUrls() {
@@ -305,8 +338,8 @@ export class PnInput {
305
338
  "resolved": "string",
306
339
  "references": {}
307
340
  },
308
- "required": true,
309
- "optional": false,
341
+ "required": false,
342
+ "optional": true,
310
343
  "docs": {
311
344
  "tags": [],
312
345
  "text": "Text label placed above the input field."
@@ -335,46 +368,6 @@ export class PnInput {
335
368
  "reflect": false,
336
369
  "attribute": "helpertext"
337
370
  },
338
- "inputid": {
339
- "type": "string",
340
- "mutable": false,
341
- "complexType": {
342
- "original": "string",
343
- "resolved": "string",
344
- "references": {}
345
- },
346
- "required": false,
347
- "optional": false,
348
- "docs": {
349
- "tags": [],
350
- "text": "Provide a unique HTML id to connect the input with the label.\nA unique uuid ID will be generated if this field is left empty."
351
- },
352
- "getter": false,
353
- "setter": false,
354
- "reflect": false,
355
- "attribute": "inputid",
356
- "defaultValue": "this.id"
357
- },
358
- "value": {
359
- "type": "string",
360
- "mutable": true,
361
- "complexType": {
362
- "original": "string",
363
- "resolved": "string",
364
- "references": {}
365
- },
366
- "required": false,
367
- "optional": false,
368
- "docs": {
369
- "tags": [],
370
- "text": "Set the value of the input."
371
- },
372
- "getter": false,
373
- "setter": false,
374
- "reflect": false,
375
- "attribute": "value",
376
- "defaultValue": "''"
377
- },
378
371
  "language": {
379
372
  "type": "string",
380
373
  "mutable": false,
@@ -400,87 +393,11 @@ export class PnInput {
400
393
  "setter": false,
401
394
  "reflect": false,
402
395
  "attribute": "language",
403
- "defaultValue": "null"
404
- },
405
- "compact": {
406
- "type": "boolean",
407
- "mutable": false,
408
- "complexType": {
409
- "original": "boolean",
410
- "resolved": "boolean",
411
- "references": {}
412
- },
413
- "required": false,
414
- "optional": true,
415
- "docs": {
416
- "tags": [{
417
- "name": "since",
418
- "text": "v7.21.0"
419
- }],
420
- "text": "Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time."
421
- },
422
- "getter": false,
423
- "setter": false,
424
- "reflect": false,
425
- "attribute": "compact",
426
- "defaultValue": "false"
427
- },
428
- "icon": {
429
- "type": "string",
430
- "mutable": false,
431
- "complexType": {
432
- "original": "string",
433
- "resolved": "string",
434
- "references": {}
435
- },
436
- "required": false,
437
- "optional": false,
438
- "docs": {
439
- "tags": [{
440
- "name": "see",
441
- "text": "{@link textPrefix }"
442
- }, {
443
- "name": "category",
444
- "text": "Visual"
445
- }],
446
- "text": "Select an icon to display before the input field value.\n`icon` takes precedence over the `text-prefix` prop."
447
- },
448
- "getter": false,
449
- "setter": false,
450
- "reflect": false,
451
- "attribute": "icon"
452
- },
453
- "textPrefix": {
454
- "type": "string",
455
- "mutable": false,
456
- "complexType": {
457
- "original": "string",
458
- "resolved": "string",
459
- "references": {}
460
- },
461
- "required": false,
462
- "optional": false,
463
- "docs": {
464
- "tags": [{
465
- "name": "see",
466
- "text": "{@link icon }"
467
- }, {
468
- "name": "see",
469
- "text": "{@link textSuffix }"
470
- }, {
471
- "name": "category",
472
- "text": "Visual"
473
- }],
474
- "text": "Set a small text before the input field value.\nCannot be used together with an `icon` at the same time."
475
- },
476
- "getter": false,
477
- "setter": false,
478
- "reflect": false,
479
- "attribute": "text-prefix"
396
+ "defaultValue": "undefined"
480
397
  },
481
- "textSuffix": {
398
+ "value": {
482
399
  "type": "string",
483
- "mutable": false,
400
+ "mutable": true,
484
401
  "complexType": {
485
402
  "original": "string",
486
403
  "resolved": "string",
@@ -490,18 +407,16 @@ export class PnInput {
490
407
  "optional": false,
491
408
  "docs": {
492
409
  "tags": [{
493
- "name": "see",
494
- "text": "{@link textPrefix }"
495
- }, {
496
410
  "name": "category",
497
- "text": "Visual"
411
+ "text": "Native attributes"
498
412
  }],
499
- "text": "Set a small text after the input field value.\nCannot be used with the `text-prefix` prop at the same time."
413
+ "text": "Set the value of the input."
500
414
  },
501
415
  "getter": false,
502
416
  "setter": false,
503
417
  "reflect": false,
504
- "attribute": "text-suffix"
418
+ "attribute": "value",
419
+ "defaultValue": "''"
505
420
  },
506
421
  "type": {
507
422
  "type": "string",
@@ -516,7 +431,7 @@ export class PnInput {
516
431
  "docs": {
517
432
  "tags": [{
518
433
  "name": "category",
519
- "text": "HTML input"
434
+ "text": "Native attributes"
520
435
  }],
521
436
  "text": "pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`."
522
437
  },
@@ -539,7 +454,7 @@ export class PnInput {
539
454
  "docs": {
540
455
  "tags": [{
541
456
  "name": "category",
542
- "text": "HTML input"
457
+ "text": "Native attributes"
543
458
  }],
544
459
  "text": "HTML input name. Setting a name will help the browser understand what type of data the input have\nand can better assist with autofill data based on previous entires much better."
545
460
  },
@@ -561,7 +476,7 @@ export class PnInput {
561
476
  "docs": {
562
477
  "tags": [{
563
478
  "name": "category",
564
- "text": "HTML input"
479
+ "text": "Native attributes"
565
480
  }],
566
481
  "text": "Provide a placeholder text. Remember that this is no replacement for a label.\nThe placeholder should be a nice addition to the label/helpertext, not important information."
567
482
  },
@@ -589,9 +504,9 @@ export class PnInput {
589
504
  "text": "{@link inputid }"
590
505
  }, {
591
506
  "name": "category",
592
- "text": "HTML input"
507
+ "text": "Native attributes"
593
508
  }],
594
- "text": "Let the browser know what type of autocorrects the input should use.\nWorks much better if a `name` and `inputid` is supplied."
509
+ "text": "Let the browser know what type of autocorrects the input should use.\nWorks much better if a `name` and `pn-id` is supplied."
595
510
  },
596
511
  "getter": false,
597
512
  "setter": false,
@@ -611,7 +526,7 @@ export class PnInput {
611
526
  "docs": {
612
527
  "tags": [{
613
528
  "name": "category",
614
- "text": "HTML input"
529
+ "text": "Native attributes"
615
530
  }],
616
531
  "text": "The maximum number of characters the user should be able to add, also adds a visible counter."
617
532
  },
@@ -633,7 +548,7 @@ export class PnInput {
633
548
  "docs": {
634
549
  "tags": [{
635
550
  "name": "category",
636
- "text": "HTML input"
551
+ "text": "Native attributes"
637
552
  }],
638
553
  "text": "Hint the browser about what type of virtual keyboard should be used.\nThe browser will be able to decide this on its own most of the time,\nespecially if you use the `type`, `name` and `inputid` props.\n\nLeave empty or with a `''` value if you want the browsers default behaviour (`text`)."
639
554
  },
@@ -655,7 +570,7 @@ export class PnInput {
655
570
  "docs": {
656
571
  "tags": [{
657
572
  "name": "category",
658
- "text": "HTML input"
573
+ "text": "Native attributes"
659
574
  }],
660
575
  "text": "Point to a datalist element for this input."
661
576
  },
@@ -677,7 +592,7 @@ export class PnInput {
677
592
  "docs": {
678
593
  "tags": [{
679
594
  "name": "category",
680
- "text": "HTML input"
595
+ "text": "Native attributes"
681
596
  }],
682
597
  "text": "Pattern prop."
683
598
  },
@@ -699,7 +614,7 @@ export class PnInput {
699
614
  "docs": {
700
615
  "tags": [{
701
616
  "name": "category",
702
- "text": "HTML input"
617
+ "text": "Native attributes"
703
618
  }],
704
619
  "text": "Set the `min` value of the `number` input."
705
620
  },
@@ -721,7 +636,7 @@ export class PnInput {
721
636
  "docs": {
722
637
  "tags": [{
723
638
  "name": "category",
724
- "text": "HTML input"
639
+ "text": "Native attributes"
725
640
  }],
726
641
  "text": "Set the `max` value of the `number` input."
727
642
  },
@@ -743,7 +658,7 @@ export class PnInput {
743
658
  "docs": {
744
659
  "tags": [{
745
660
  "name": "category",
746
- "text": "HTML input"
661
+ "text": "Native attributes"
747
662
  }],
748
663
  "text": "Set a `step` for the number input."
749
664
  },
@@ -752,51 +667,53 @@ export class PnInput {
752
667
  "reflect": false,
753
668
  "attribute": "step"
754
669
  },
755
- "arialabel": {
756
- "type": "string",
670
+ "required": {
671
+ "type": "boolean",
757
672
  "mutable": false,
758
673
  "complexType": {
759
- "original": "string",
760
- "resolved": "string",
674
+ "original": "boolean",
675
+ "resolved": "boolean",
761
676
  "references": {}
762
677
  },
763
678
  "required": false,
764
- "optional": true,
679
+ "optional": false,
765
680
  "docs": {
766
681
  "tags": [{
767
682
  "name": "category",
768
- "text": "HTML input"
683
+ "text": "Native attributes"
769
684
  }],
770
- "text": "While you can use the `aria-label`, using a `label` is far more accessible."
685
+ "text": "Set the input as `required`."
771
686
  },
772
687
  "getter": false,
773
688
  "setter": false,
774
689
  "reflect": false,
775
- "attribute": "arialabel"
690
+ "attribute": "required",
691
+ "defaultValue": "false"
776
692
  },
777
- "ariacontrols": {
778
- "type": "string",
693
+ "readonly": {
694
+ "type": "boolean",
779
695
  "mutable": false,
780
696
  "complexType": {
781
- "original": "string",
782
- "resolved": "string",
697
+ "original": "boolean",
698
+ "resolved": "boolean",
783
699
  "references": {}
784
700
  },
785
701
  "required": false,
786
- "optional": true,
702
+ "optional": false,
787
703
  "docs": {
788
704
  "tags": [{
789
705
  "name": "category",
790
- "text": "HTML input"
706
+ "text": "Native attributes"
791
707
  }],
792
- "text": "Set the ID of what this input controls."
708
+ "text": "Set the input as `readonly`."
793
709
  },
794
710
  "getter": false,
795
711
  "setter": false,
796
712
  "reflect": false,
797
- "attribute": "ariacontrols"
713
+ "attribute": "readonly",
714
+ "defaultValue": "false"
798
715
  },
799
- "required": {
716
+ "disabled": {
800
717
  "type": "boolean",
801
718
  "mutable": false,
802
719
  "complexType": {
@@ -809,17 +726,17 @@ export class PnInput {
809
726
  "docs": {
810
727
  "tags": [{
811
728
  "name": "category",
812
- "text": "State"
729
+ "text": "Native attributes"
813
730
  }],
814
- "text": "Set the input as `required`."
731
+ "text": "Set the input as `disabled`."
815
732
  },
816
733
  "getter": false,
817
734
  "setter": false,
818
735
  "reflect": false,
819
- "attribute": "required",
736
+ "attribute": "disabled",
820
737
  "defaultValue": "false"
821
738
  },
822
- "disabled": {
739
+ "compact": {
823
740
  "type": "boolean",
824
741
  "mutable": false,
825
742
  "complexType": {
@@ -828,42 +745,100 @@ export class PnInput {
828
745
  "references": {}
829
746
  },
830
747
  "required": false,
831
- "optional": false,
748
+ "optional": true,
832
749
  "docs": {
833
750
  "tags": [{
751
+ "name": "since",
752
+ "text": "v7.21.0"
753
+ }, {
834
754
  "name": "category",
835
- "text": "State"
755
+ "text": "Features"
836
756
  }],
837
- "text": "Set the input as `disabled`."
757
+ "text": "Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time."
838
758
  },
839
759
  "getter": false,
840
760
  "setter": false,
841
761
  "reflect": false,
842
- "attribute": "disabled",
762
+ "attribute": "compact",
843
763
  "defaultValue": "false"
844
764
  },
845
- "readonly": {
846
- "type": "boolean",
765
+ "icon": {
766
+ "type": "string",
847
767
  "mutable": false,
848
768
  "complexType": {
849
- "original": "boolean",
850
- "resolved": "boolean",
769
+ "original": "string",
770
+ "resolved": "string",
851
771
  "references": {}
852
772
  },
853
773
  "required": false,
854
774
  "optional": false,
855
775
  "docs": {
856
776
  "tags": [{
777
+ "name": "see",
778
+ "text": "{@link textPrefix }"
779
+ }, {
857
780
  "name": "category",
858
- "text": "State"
781
+ "text": "Features"
859
782
  }],
860
- "text": "Set the input as `readonly`."
783
+ "text": "Select an icon to display before the input field value.\n`icon` takes precedence over the `text-prefix` prop."
861
784
  },
862
785
  "getter": false,
863
786
  "setter": false,
864
787
  "reflect": false,
865
- "attribute": "readonly",
866
- "defaultValue": "false"
788
+ "attribute": "icon"
789
+ },
790
+ "textPrefix": {
791
+ "type": "string",
792
+ "mutable": false,
793
+ "complexType": {
794
+ "original": "string",
795
+ "resolved": "string",
796
+ "references": {}
797
+ },
798
+ "required": false,
799
+ "optional": false,
800
+ "docs": {
801
+ "tags": [{
802
+ "name": "see",
803
+ "text": "{@link icon }"
804
+ }, {
805
+ "name": "see",
806
+ "text": "{@link textSuffix }"
807
+ }, {
808
+ "name": "category",
809
+ "text": "Features"
810
+ }],
811
+ "text": "Set a small text before the input field value.\nCannot be used together with an `icon` at the same time."
812
+ },
813
+ "getter": false,
814
+ "setter": false,
815
+ "reflect": false,
816
+ "attribute": "text-prefix"
817
+ },
818
+ "textSuffix": {
819
+ "type": "string",
820
+ "mutable": false,
821
+ "complexType": {
822
+ "original": "string",
823
+ "resolved": "string",
824
+ "references": {}
825
+ },
826
+ "required": false,
827
+ "optional": false,
828
+ "docs": {
829
+ "tags": [{
830
+ "name": "see",
831
+ "text": "{@link textPrefix }"
832
+ }, {
833
+ "name": "category",
834
+ "text": "Features"
835
+ }],
836
+ "text": "Set a small text after the input field value.\nCannot be used with the `text-prefix` prop at the same time."
837
+ },
838
+ "getter": false,
839
+ "setter": false,
840
+ "reflect": false,
841
+ "attribute": "text-suffix"
867
842
  },
868
843
  "valid": {
869
844
  "type": "boolean",
@@ -878,7 +853,7 @@ export class PnInput {
878
853
  "docs": {
879
854
  "tags": [{
880
855
  "name": "category",
881
- "text": "Validation"
856
+ "text": "Features"
882
857
  }],
883
858
  "text": "Set the input as `valid`. Provides a green color and a check icon."
884
859
  },
@@ -904,7 +879,7 @@ export class PnInput {
904
879
  "text": "{@link error Provide an error message.}"
905
880
  }, {
906
881
  "name": "category",
907
- "text": "Validation"
882
+ "text": "Features"
908
883
  }],
909
884
  "text": "Set the input as `invalid`. Provides a red color and red warning icon."
910
885
  },
@@ -930,7 +905,7 @@ export class PnInput {
930
905
  "text": "{@link invalid Set invalid without an error message.}"
931
906
  }, {
932
907
  "name": "category",
933
- "text": "Validation"
908
+ "text": "Features"
934
909
  }],
935
910
  "text": "Set the input as `invalid` and display an error message (applies the same style as `invalid`).\n\nError message; will take precedence over helpertext if both are provided."
936
911
  },
@@ -938,6 +913,181 @@ export class PnInput {
938
913
  "setter": false,
939
914
  "reflect": false,
940
915
  "attribute": "error"
916
+ },
917
+ "pnId": {
918
+ "type": "string",
919
+ "mutable": false,
920
+ "complexType": {
921
+ "original": "string",
922
+ "resolved": "string",
923
+ "references": {}
924
+ },
925
+ "required": false,
926
+ "optional": true,
927
+ "docs": {
928
+ "tags": [{
929
+ "name": "since",
930
+ "text": "v7.25.0"
931
+ }, {
932
+ "name": "category",
933
+ "text": "HTML attributes"
934
+ }],
935
+ "text": "Set a custom ID for the input (default is a generated UUID)."
936
+ },
937
+ "getter": false,
938
+ "setter": false,
939
+ "reflect": false,
940
+ "attribute": "pn-id"
941
+ },
942
+ "pnAriaLabel": {
943
+ "type": "string",
944
+ "mutable": false,
945
+ "complexType": {
946
+ "original": "string",
947
+ "resolved": "string",
948
+ "references": {}
949
+ },
950
+ "required": false,
951
+ "optional": true,
952
+ "docs": {
953
+ "tags": [{
954
+ "name": "since",
955
+ "text": "v7.25.0"
956
+ }, {
957
+ "name": "category",
958
+ "text": "HTML attributes"
959
+ }],
960
+ "text": "Provide the label via an aria attribute.\nWe strongly recommend you use the `label` prop instead."
961
+ },
962
+ "getter": false,
963
+ "setter": false,
964
+ "reflect": false,
965
+ "attribute": "pn-aria-label"
966
+ },
967
+ "pnAriaLabelledby": {
968
+ "type": "string",
969
+ "mutable": false,
970
+ "complexType": {
971
+ "original": "string",
972
+ "resolved": "string",
973
+ "references": {}
974
+ },
975
+ "required": false,
976
+ "optional": true,
977
+ "docs": {
978
+ "tags": [{
979
+ "name": "since",
980
+ "text": "v7.25.0"
981
+ }, {
982
+ "name": "category",
983
+ "text": "HTML attributes"
984
+ }],
985
+ "text": "Provide the label from another element via its ID.\nWe strongly recommend you use the `label` prop instead."
986
+ },
987
+ "getter": false,
988
+ "setter": false,
989
+ "reflect": false,
990
+ "attribute": "pn-aria-labelledby"
991
+ },
992
+ "pnAriaControls": {
993
+ "type": "string",
994
+ "mutable": false,
995
+ "complexType": {
996
+ "original": "string",
997
+ "resolved": "string",
998
+ "references": {}
999
+ },
1000
+ "required": false,
1001
+ "optional": true,
1002
+ "docs": {
1003
+ "tags": [{
1004
+ "name": "since",
1005
+ "text": "v7.25.0"
1006
+ }, {
1007
+ "name": "category",
1008
+ "text": "HTML attributes"
1009
+ }],
1010
+ "text": "Set the ID of what this input controls."
1011
+ },
1012
+ "getter": false,
1013
+ "setter": false,
1014
+ "reflect": false,
1015
+ "attribute": "pn-aria-controls"
1016
+ },
1017
+ "inputid": {
1018
+ "type": "string",
1019
+ "mutable": false,
1020
+ "complexType": {
1021
+ "original": "string",
1022
+ "resolved": "string",
1023
+ "references": {}
1024
+ },
1025
+ "required": false,
1026
+ "optional": true,
1027
+ "docs": {
1028
+ "tags": [{
1029
+ "name": "deprecated",
1030
+ "text": "Use `pn-id` instead."
1031
+ }, {
1032
+ "name": "category",
1033
+ "text": "HTML attributes"
1034
+ }],
1035
+ "text": "Set a custom ID for the input (default is a generated UUID)."
1036
+ },
1037
+ "getter": false,
1038
+ "setter": false,
1039
+ "reflect": false,
1040
+ "attribute": "inputid"
1041
+ },
1042
+ "arialabel": {
1043
+ "type": "string",
1044
+ "mutable": false,
1045
+ "complexType": {
1046
+ "original": "string",
1047
+ "resolved": "string",
1048
+ "references": {}
1049
+ },
1050
+ "required": false,
1051
+ "optional": true,
1052
+ "docs": {
1053
+ "tags": [{
1054
+ "name": "deprecated",
1055
+ "text": "Use `pn-aria-label` instead."
1056
+ }, {
1057
+ "name": "category",
1058
+ "text": "HTML attributes"
1059
+ }],
1060
+ "text": "While you can use the `aria-label`, using a `label` is far more accessible."
1061
+ },
1062
+ "getter": false,
1063
+ "setter": false,
1064
+ "reflect": false,
1065
+ "attribute": "arialabel"
1066
+ },
1067
+ "ariacontrols": {
1068
+ "type": "string",
1069
+ "mutable": false,
1070
+ "complexType": {
1071
+ "original": "string",
1072
+ "resolved": "string",
1073
+ "references": {}
1074
+ },
1075
+ "required": false,
1076
+ "optional": true,
1077
+ "docs": {
1078
+ "tags": [{
1079
+ "name": "deprecated",
1080
+ "text": "Use `pn-aria-controls` instead."
1081
+ }, {
1082
+ "name": "category",
1083
+ "text": "HTML attributes"
1084
+ }],
1085
+ "text": "Set the ID of what this input controls."
1086
+ },
1087
+ "getter": false,
1088
+ "setter": false,
1089
+ "reflect": false,
1090
+ "attribute": "ariacontrols"
941
1091
  }
942
1092
  };
943
1093
  }
@@ -945,8 +1095,6 @@ export class PnInput {
945
1095
  return {
946
1096
  "offsetLeft": {},
947
1097
  "offsetRight": {},
948
- "showHelperSlot": {},
949
- "showErrorSlot": {},
950
1098
  "showPassword": {}
951
1099
  };
952
1100
  }
@@ -959,11 +1107,14 @@ export class PnInput {
959
1107
  "propName": "textSuffix",
960
1108
  "methodName": "handleOffset"
961
1109
  }, {
962
- "propName": "helpertext",
963
- "methodName": "handleMessage"
1110
+ "propName": "inputid",
1111
+ "methodName": "handleId"
964
1112
  }, {
965
- "propName": "error",
966
- "methodName": "handleMessage"
1113
+ "propName": "pnId",
1114
+ "methodName": "handleId",
1115
+ "handlerOptions": {
1116
+ "immediate": true
1117
+ }
967
1118
  }];
968
1119
  }
969
1120
  }