@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
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- var index = require('./index-CfUQZtlH.js');
7
+ var index = require('./index-DWu-2oJc.js');
8
8
  var index$1 = require('./index.cjs.js');
9
9
  var alert_exclamation_circle = require('./alert_exclamation_circle-BiBEJK9P.js');
10
10
  var check = require('./check-CQU2BD5S.js');
@@ -40,22 +40,21 @@ const translations = {
40
40
  },
41
41
  };
42
42
 
43
- const pnInputCss = () => `${index.transformTag("pn-input")}{display:inline-flex;flex-direction:column}${index.transformTag("pn-input")} .pn-input{--pn-input-offset-left:0em;--pn-input-offset-right:0em}${index.transformTag("pn-input")} .pn-input-label{cursor:pointer;display:flex;justify-content:space-between;align-items:flex-end;font-weight:400;color:#2d2013;margin:0 0 0.25em 0;gap:0.5em;-webkit-tap-highlight-color:transparent;transition-property:color, transform;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-input")} .pn-input-label{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-input")} .pn-input-label[data-compact]{position:absolute;top:1.5625em;left:calc(var(--pn-input-offset-left, 0px) + 0.75em + 0.0625em);margin:0;pointer-events:none;align-items:center;height:1.5em;max-width:calc(100% - (var(--pn-input-offset-left, 0px) + 0.75em) - (var(--pn-input-offset-right, 0px) + 0.75em));transform:translateY(-50%) scale(1) translateZ(0);transform-origin:0 0;transition-delay:0.2s}${index.transformTag("pn-input")} .pn-input-label[data-compact]>span{font-size:1em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;line-height:1.5em}${index.transformTag("pn-input")} .pn-input-label>span{font-size:0.875em}${index.transformTag("pn-input")} .pn-input-group{position:relative}${index.transformTag("pn-input")} .pn-input-element{width:100%;color:#2d2013;background-color:#ffffff;border:0.0625em solid #969087;border-radius:0.5em;padding:0.75em calc(0.75em + var(--pn-input-offset-right)) 0.75em calc(0.75em + var(--pn-input-offset-left));font-family:inherit;font-size:1em;font-weight:500;line-height:1.5em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill,${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill:hover,${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill:focus,${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #e0f8ff inset;-webkit-text-fill-color:#2d2013}${index.transformTag("pn-input")} .pn-input-element{outline:0.2rem solid transparent;outline-offset:0.2rem}${index.transformTag("pn-input")} .pn-input-element:focus-visible{outline-color:#005d92;background-color:#ffffff;border-color:#005d92}${index.transformTag("pn-input")} .pn-input-element{transition-property:outline-color, background-color, border-color, color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-input")} .pn-input-element{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-input")} .pn-input-element[data-compact]{text-align:left;padding-top:1.125em;padding-bottom:0.375em;max-width:unset}${index.transformTag("pn-input")} .pn-input-element[data-compact]::placeholder{color:transparent}${index.transformTag("pn-input")} .pn-input-element[data-compact]:focus+.pn-input-label,${index.transformTag("pn-input")} .pn-input-element[data-compact]:not(:placeholder-shown)+.pn-input-label{transform:translateY(-85%) scale(0.75);transition-delay:0s}${index.transformTag("pn-input")} .pn-input-element::placeholder{color:#5e554a;font-weight:normal}${index.transformTag("pn-input")} .pn-input-element:hover{border-color:#005d92}${index.transformTag("pn-input")} .pn-input-element:disabled{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2}${index.transformTag("pn-input")} .pn-input-element:read-only{border-color:#ffffff}${index.transformTag("pn-input")} .pn-input-element:disabled~.pn-input-eyecandy>${index.transformTag("pn-icon")}>.pn-icon-svg>path{fill:#969087}${index.transformTag("pn-input")} .pn-input-element::-webkit-calendar-picker-indicator{visibility:hidden;display:none !important}${index.transformTag("pn-input")} .pn-input-element::-webkit-textfield-decoration-container,${index.transformTag("pn-input")} .pn-input-element::-webkit-search-cancel-button,${index.transformTag("pn-input")} .pn-input-element::-webkit-inner-spin-button,${index.transformTag("pn-input")} .pn-input-element::-webkit-outer-spin-button,${index.transformTag("pn-input")} .pn-input-element::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}${index.transformTag("pn-input")} .pn-input-element[type=number]{appearance:textfield}${index.transformTag("pn-input")} .pn-input-eyecandy{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:0.5em;height:1.5em}${index.transformTag("pn-input")} .pn-input-eyecandy[data-prefix]{left:0.75em}${index.transformTag("pn-input")} .pn-input-eyecandy[data-suffix]{right:0.75em}${index.transformTag("pn-input")} .pn-input-text{color:#5e554a;font-weight:400;line-height:1.5em}${index.transformTag("pn-input")} .pn-input-message{color:#5e554a;font-size:0.875em;font-weight:400;margin:0.25em 0 0 0;display:flex;flex-direction:column;gap:0.25em}${index.transformTag("pn-input")} .pn-input-message[hidden],${index.transformTag("pn-input")} .pn-input-message>span[hidden]{display:none}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-label{color:#a70707}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element{border-color:#a70707}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:hover{border-color:#500715}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:focus-visible{background-color:#ffffff;border-color:#a70707;outline-color:#a70707}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill,${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill:hover,${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill:focus,${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #fef7f6 inset;-webkit-text-fill-color:#2d2013}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-message[role=alert]{color:#a70707}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-label{color:#005e41}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element{border-color:#005e41}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:hover{border-color:#002f24}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:focus-visible{background-color:#ffffff;border-color:#005e41;outline-color:#005e41}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill,${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill:hover,${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill:focus,${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #edfbf3 inset;-webkit-text-fill-color:#2d2013}`;
43
+ const pnInputCss = () => `${index.transformTag("pn-input")}{display:inline-flex;flex-direction:column}${index.transformTag("pn-input")} .pn-input{--pn-input-offset-left:0em;--pn-input-offset-right:0em}${index.transformTag("pn-input")} .pn-input-label{cursor:pointer;display:flex;justify-content:space-between;align-items:flex-end;font-weight:400;color:#2d2013;margin:0 0 0.25em 0;gap:0.5em;-webkit-tap-highlight-color:transparent;transition-property:color, transform;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-input")} .pn-input-label{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-input")} .pn-input-label[data-compact]{position:absolute;top:1.5625em;left:calc(var(--pn-input-offset-left, 0px) + 0.75em + 0.0625em);margin:0;pointer-events:none;align-items:center;height:1.5em;max-width:calc(100% - (var(--pn-input-offset-left, 0px) + 0.75em) - (var(--pn-input-offset-right, 0px) + 0.75em));transform:translateY(-50%) scale(1) translateZ(0);transform-origin:0 0;transition-delay:0.2s}${index.transformTag("pn-input")} .pn-input-label[data-compact]>span{font-size:1em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;line-height:1.5em}${index.transformTag("pn-input")} .pn-input-label>span{font-size:0.875em}${index.transformTag("pn-input")} .pn-input-group{position:relative}${index.transformTag("pn-input")} .pn-input-element{width:100%;color:#2d2013;background-color:#ffffff;border:0.0625em solid #969087;border-radius:0.5em;padding:0.75em calc(0.75em + var(--pn-input-offset-right)) 0.75em calc(0.75em + var(--pn-input-offset-left));font-family:inherit;font-size:1em;font-weight:500;line-height:1.5em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill,${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill:hover,${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill:focus,${index.transformTag("pn-input")} .pn-input-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #e0f8ff inset;-webkit-text-fill-color:#2d2013}${index.transformTag("pn-input")} .pn-input-element{outline:0.2rem solid transparent;outline-offset:0.2rem}${index.transformTag("pn-input")} .pn-input-element:focus-visible{outline-color:#005d92;background-color:#ffffff;border-color:#005d92}${index.transformTag("pn-input")} .pn-input-element{transition-property:outline-color, background-color, border-color, color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-input")} .pn-input-element{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-input")} .pn-input-element[data-compact]{text-align:left;padding-top:1.125em;padding-bottom:0.375em;max-width:unset}${index.transformTag("pn-input")} .pn-input-element[data-compact]::placeholder{color:transparent}${index.transformTag("pn-input")} .pn-input-element[data-compact]:focus+.pn-input-label,${index.transformTag("pn-input")} .pn-input-element[data-compact]:not(:placeholder-shown)+.pn-input-label{transform:translateY(-85%) scale(0.75);transition-delay:0s}${index.transformTag("pn-input")} .pn-input-element::placeholder{color:#5e554a;font-weight:normal}${index.transformTag("pn-input")} .pn-input-element:hover{border-color:#005d92}${index.transformTag("pn-input")} .pn-input-element:disabled{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2}${index.transformTag("pn-input")} .pn-input-element:read-only{border-color:#ffffff}${index.transformTag("pn-input")} .pn-input-element:disabled~.pn-input-eyecandy>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#969087}${index.transformTag("pn-input")} .pn-input-element::-webkit-calendar-picker-indicator{visibility:hidden;display:none !important}${index.transformTag("pn-input")} .pn-input-element::-webkit-textfield-decoration-container,${index.transformTag("pn-input")} .pn-input-element::-webkit-search-cancel-button,${index.transformTag("pn-input")} .pn-input-element::-webkit-inner-spin-button,${index.transformTag("pn-input")} .pn-input-element::-webkit-outer-spin-button,${index.transformTag("pn-input")} .pn-input-element::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}${index.transformTag("pn-input")} .pn-input-element[type=number]{appearance:textfield}${index.transformTag("pn-input")} .pn-input-eyecandy{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:0.5em;height:1.5em}${index.transformTag("pn-input")} .pn-input-eyecandy[data-prefix]{left:0.75em}${index.transformTag("pn-input")} .pn-input-eyecandy[data-suffix]{right:0.75em}${index.transformTag("pn-input")} .pn-input-text{color:#5e554a;font-weight:400;line-height:1.5em}${index.transformTag("pn-input")} .pn-input-message{color:#5e554a;font-size:0.875em;font-weight:400;margin:0.25em 0 0 0;display:flex;flex-direction:column;gap:0.25em}${index.transformTag("pn-input")} .pn-input-message[hidden],${index.transformTag("pn-input")} .pn-input-message>span[hidden]{display:none}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-label{color:#a70707}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element{border-color:#a70707}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:hover{border-color:#500715}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:focus-visible{background-color:#ffffff;border-color:#a70707;outline-color:#a70707}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill,${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill:hover,${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill:focus,${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-group>.pn-input-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #fef7f6 inset;-webkit-text-fill-color:#2d2013}${index.transformTag("pn-input")} .pn-input[data-error]>.pn-input-message[role=alert]{color:#a70707}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-label{color:#005e41}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element{border-color:#005e41}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:hover{border-color:#002f24}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:focus-visible{background-color:#ffffff;border-color:#005e41;outline-color:#005e41}${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill,${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill:hover,${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill:focus,${index.transformTag("pn-input")} .pn-input[data-valid]>.pn-input-group>.pn-input-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #edfbf3 inset;-webkit-text-fill-color:#2d2013}`;
44
44
 
45
45
  const PnInput = class {
46
46
  constructor(hostRef) {
47
47
  index.registerInstance(this, hostRef);
48
48
  }
49
49
  id = `pn-input-${index$1.uuidv4()}`;
50
- idMessage = `${this.id}-message`;
50
+ idHelper = `${this.id}-helper`;
51
+ idError = `${this.id}-error`;
51
52
  prefix;
52
53
  suffix;
53
54
  mo;
54
55
  get hostElement() { return index.getElement(this); }
55
56
  offsetLeft = 0;
56
57
  offsetRight = 0;
57
- showHelperSlot = false;
58
- showErrorSlot = false;
59
58
  showPassword = false;
60
59
  togglePassword() {
61
60
  this.showPassword = !this.showPassword;
@@ -64,70 +63,38 @@ const PnInput = class {
64
63
  label;
65
64
  /** Text message placed underneath the input field. */
66
65
  helpertext;
67
- /**
68
- * Provide a unique HTML id to connect the input with the label.
69
- * A unique uuid ID will be generated if this field is left empty.
70
- **/
71
- inputid = this.id;
72
- /** Set the value of the input. */
73
- value = '';
74
66
  /**
75
67
  * Set the language manually for the translations of show/hide/clear button text.
76
68
  * Not needed if you have the pntopbar on the page.
77
69
  **/
78
- language = null;
79
- /** Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time. @since v7.21.0 */
80
- compact = false;
81
- /**
82
- * Select an icon to display before the input field value.
83
- * `icon` takes precedence over the `text-prefix` prop.
84
- *
85
- * @see {@link textPrefix}
86
- * @category Visual
87
- **/
88
- icon;
89
- /**
90
- * Set a small text before the input field value.
91
- * Cannot be used together with an `icon` at the same time.
92
- *
93
- * @see {@link icon}
94
- * @see {@link textSuffix}
95
- * @category Visual
96
- **/
97
- textPrefix;
98
- /**
99
- * Set a small text after the input field value.
100
- * Cannot be used with the `text-prefix` prop at the same time.
101
- *
102
- * @see {@link textPrefix}
103
- * @category Visual
104
- **/
105
- textSuffix;
106
- /** pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`. @category HTML input */
70
+ language = undefined;
71
+ /** Set the value of the input. @category Native attributes */
72
+ value = '';
73
+ /** pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`. @category Native attributes */
107
74
  type = 'text';
108
75
  /**
109
76
  * HTML input name. Setting a name will help the browser understand what type of data the input have
110
77
  * and can better assist with autofill data based on previous entires much better.
111
- *
112
- * @category HTML input
78
+ * @category Native attributes
113
79
  **/
114
80
  name;
115
81
  /**
116
82
  * Provide a placeholder text. Remember that this is no replacement for a label.
117
83
  * The placeholder should be a nice addition to the label/helpertext, not important information.
118
84
  *
119
- * @category HTML input
85
+ * @category Native attributes
120
86
  **/
121
87
  placeholder;
122
88
  /**
123
89
  * Let the browser know what type of autocorrects the input should use.
124
- * Works much better if a `name` and `inputid` is supplied.
90
+ * Works much better if a `name` and `pn-id` is supplied.
125
91
  * @see {@link name}
126
92
  * @see {@link inputid}
127
93
  *
128
- * @category HTML input */
94
+ * @category Native attributes
95
+ */
129
96
  autocomplete;
130
- /** The maximum number of characters the user should be able to add, also adds a visible counter. @category HTML input */
97
+ /** The maximum number of characters the user should be able to add, also adds a visible counter. @category Native attributes */
131
98
  maxlength;
132
99
  /**
133
100
  * Hint the browser about what type of virtual keyboard should be used.
@@ -136,35 +103,62 @@ const PnInput = class {
136
103
  *
137
104
  * Leave empty or with a `''` value if you want the browsers default behaviour (`text`).
138
105
  *
139
- * @category HTML input
106
+ * @category Native attributes
140
107
  **/
141
108
  inputmode;
142
- /** Point to a datalist element for this input. @category HTML input */
109
+ /** Point to a datalist element for this input. @category Native attributes */
143
110
  list;
144
- /** Pattern prop. @category HTML input*/
111
+ /** Pattern prop. @category Native attributes */
145
112
  pattern;
146
- /** Set the `min` value of the `number` input. @category HTML input */
113
+ /** Set the `min` value of the `number` input. @category Native attributes */
147
114
  min;
148
- /** Set the `max` value of the `number` input. @category HTML input */
115
+ /** Set the `max` value of the `number` input. @category Native attributes */
149
116
  max;
150
- /** Set a `step` for the number input. @category HTML input */
117
+ /** Set a `step` for the number input. @category Native attributes */
151
118
  step;
152
- /** While you can use the `aria-label`, using a `label` is far more accessible. @category HTML input */
153
- arialabel;
154
- /** Set the ID of what this input controls. @category HTML input */
155
- ariacontrols;
156
- /** Set the input as `required`. @category State */
119
+ /** Set the input as `required`. @category Native attributes */
157
120
  required = false;
158
- /** Set the input as `disabled`. @category State */
159
- disabled = false;
160
- /** Set the input as `readonly`. @category State */
121
+ /** Set the input as `readonly`. @category Native attributes */
161
122
  readonly = false;
162
- /** Set the input as `valid`. Provides a green color and a check icon. @category Validation */
123
+ /** Set the input as `disabled`. @category Native attributes */
124
+ disabled = false;
125
+ /**
126
+ * Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time.
127
+ * @since v7.21.0
128
+ * @category Features
129
+ */
130
+ compact = false;
131
+ /**
132
+ * Select an icon to display before the input field value.
133
+ * `icon` takes precedence over the `text-prefix` prop.
134
+ *
135
+ * @see {@link textPrefix}
136
+ * @category Features
137
+ **/
138
+ icon;
139
+ /**
140
+ * Set a small text before the input field value.
141
+ * Cannot be used together with an `icon` at the same time.
142
+ *
143
+ * @see {@link icon}
144
+ * @see {@link textSuffix}
145
+ * @category Features
146
+ **/
147
+ textPrefix;
148
+ /**
149
+ * Set a small text after the input field value.
150
+ * Cannot be used with the `text-prefix` prop at the same time.
151
+ *
152
+ * @see {@link textPrefix}
153
+ * @category Features
154
+ **/
155
+ textSuffix;
156
+ /** Set the input as `valid`. Provides a green color and a check icon. @category Features */
163
157
  valid = false;
164
158
  /**
165
159
  * Set the input as `invalid`. Provides a red color and red warning icon.
166
160
  * @see{@link error Provide an error message.}
167
- * @category Validation
161
+ * @category Features
168
162
  **/
169
163
  invalid = false;
170
164
  /**
@@ -172,9 +166,33 @@ const PnInput = class {
172
166
  *
173
167
  * Error message; will take precedence over helpertext if both are provided.
174
168
  * @see{@link invalid Set invalid without an error message.}
175
- * @category Validation
169
+ * @category Features
176
170
  **/
177
171
  error;
172
+ /** Set a custom ID for the input (default is a generated UUID). @since v7.25.0 @category HTML attributes */
173
+ pnId;
174
+ /**
175
+ * Provide the label via an aria attribute.
176
+ * We strongly recommend you use the `label` prop instead.
177
+ * @since v7.25.0
178
+ * @category HTML attributes
179
+ */
180
+ pnAriaLabel;
181
+ /**
182
+ * Provide the label from another element via its ID.
183
+ * We strongly recommend you use the `label` prop instead.
184
+ * @since v7.25.0
185
+ * @category HTML attributes
186
+ */
187
+ pnAriaLabelledby;
188
+ /** Set the ID of what this input controls. @since v7.25.0 @category HTML attributes */
189
+ pnAriaControls;
190
+ /** Set a custom ID for the input (default is a generated UUID). @deprecated Use `pn-id` instead. @category HTML attributes */
191
+ inputid;
192
+ /** While you can use the `aria-label`, using a `label` is far more accessible. @deprecated Use `pn-aria-label` instead. @category HTML attributes */
193
+ arialabel;
194
+ /** Set the ID of what this input controls. @deprecated Use `pn-aria-controls` instead. @category HTML attributes */
195
+ ariacontrols;
178
196
  handleOffset() {
179
197
  requestAnimationFrame(() => {
180
198
  const left = this.prefix?.clientWidth ? this.prefix.clientWidth + 8 : 0;
@@ -183,15 +201,14 @@ const PnInput = class {
183
201
  this.offsetRight = right;
184
202
  });
185
203
  }
186
- handleMessage() {
187
- this.checkSlottedHelper();
188
- this.checkSlottedError();
204
+ handleId() {
205
+ this.idHelper = `${this.getId()}-helper`;
206
+ this.idError = `${this.getId()}-error`;
189
207
  }
190
208
  connectedCallback() {
191
209
  this.mo = new MutationObserver(() => {
192
210
  index.forceUpdate(this.hostElement);
193
211
  this.handleOffset();
194
- this.handleMessage();
195
212
  });
196
213
  this.mo.observe(this.hostElement, { childList: true, subtree: true });
197
214
  }
@@ -200,15 +217,15 @@ const PnInput = class {
200
217
  this.mo.disconnect();
201
218
  }
202
219
  async componentWillLoad() {
203
- this.handleMessage();
204
- if (this.inputid !== this.id)
205
- this.idMessage = `${this.inputid}-message`;
206
- if (this.language === null)
220
+ if (this.language === undefined)
207
221
  await index$1.awaitTopbar(this.hostElement);
208
222
  }
209
223
  componentDidLoad() {
210
224
  this.handleOffset();
211
225
  }
226
+ getId() {
227
+ return this.pnId || this.inputid || this.id;
228
+ }
212
229
  setVal(event) {
213
230
  const target = event.composedPath?.()[0];
214
231
  this.value = target.value;
@@ -225,26 +242,26 @@ const PnInput = class {
225
242
  return translations?.[prop]?.[this.language || index$1.en];
226
243
  }
227
244
  hasHelperText() {
228
- return this.helpertext?.length > 0 || this.showHelperSlot;
245
+ return this.helpertext?.length > 0 || this.checkSlottedHelper();
229
246
  }
230
247
  hasErrorMessage() {
231
- return this.error?.length > 0 || this.showErrorSlot;
248
+ return this.error?.length > 0 || this.checkSlottedError();
232
249
  }
233
250
  /** If any error is active, either via the prop `invalid` or `error` prop/slot. */
234
251
  hasError() {
235
- return this.hasErrorMessage() || this.invalid || this.showErrorSlot;
252
+ return this.hasErrorMessage() || this.invalid;
253
+ }
254
+ hideHelpertext() {
255
+ return this.hasErrorMessage() || !this.hasHelperText();
236
256
  }
237
- /** If any helpertext or error message is active. Checks both props and slots. */
238
- hasMessage() {
239
- return this.hasHelperText() || this.hasErrorMessage();
257
+ hideError() {
258
+ return !this.hasErrorMessage();
240
259
  }
241
260
  checkSlottedHelper() {
242
- const slottedHelper = this.hostElement.querySelector('[slot=helpertext]')?.textContent;
243
- this.showHelperSlot = !!slottedHelper?.length;
261
+ return !!this.hostElement.querySelector('[slot=helpertext]');
244
262
  }
245
263
  checkSlottedError() {
246
- const slottedError = this.hostElement.querySelector('[slot=error]')?.textContent;
247
- this.showErrorSlot = !!slottedError?.length;
264
+ return !!this.hostElement.querySelector('[slot=error]');
248
265
  }
249
266
  getInputType() {
250
267
  const types = ['text', 'password', 'url', 'tel', 'search', 'number', 'email'];
@@ -302,14 +319,30 @@ const PnInput = class {
302
319
  useCompactLabel() {
303
320
  return this.validLabel() && this.compact;
304
321
  }
322
+ displayLabel() {
323
+ return !!this.label;
324
+ }
325
+ getAriaLabel() {
326
+ return !this.displayLabel() && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
327
+ }
328
+ getAriaLabelledby() {
329
+ return !this.displayLabel() && !(this.pnAriaLabel || this.arialabel) ? this.pnAriaLabelledby : null;
330
+ }
331
+ getAriaDescribedby() {
332
+ if (this.hasErrorMessage())
333
+ return this.idError;
334
+ else if (this.hasHelperText())
335
+ return this.idHelper;
336
+ return null;
337
+ }
305
338
  renderLabel() {
306
- return (index.h("label", { htmlFor: this.inputid, class: "pn-input-label", "data-compact": this.compact }, this.label && index.h("span", null, this.label), this.maxlength >= 0 && index.h("span", null, `${this.value.length}/${this.maxlength}`)));
339
+ return (index.h("label", { htmlFor: this.getId(), class: "pn-input-label", "data-compact": this.compact }, this.label && index.h("span", null, this.label), this.maxlength >= 0 && index.h("span", null, `${this.value.length}/${this.maxlength}`)));
307
340
  }
308
341
  render() {
309
- return (index.h(index.Host, { key: '3250630450288d09811b7c78bca5091ba93ec7ab' }, index.h("div", { key: 'db673ba19f300966eaf5c38136fe7d6143aa661d', class: "pn-input", "data-valid": this.valid, "data-error": this.hasError(), style: {
342
+ return (index.h(index.Host, { key: '800f4fb8490656e28657f7a4a041ba0c6dc46af2' }, index.h("div", { key: '8defa078a3e541509bc17278751f8e59f59f3bd7', class: "pn-input", "data-valid": this.valid, "data-error": this.hasError(), style: {
310
343
  '--pn-input-offset-left': `${this.offsetLeft}px`,
311
344
  '--pn-input-offset-right': `${this.offsetRight}px`,
312
- } }, this.useLabel() && this.renderLabel(), index.h("div", { key: 'b216b7f951be237aed6e46f1ccbcfd29b2a3cad1', class: "pn-input-group" }, index.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(), index.h("div", { key: '753a9abeaf5bfa5ffb3be10042a76aa7863bce9c', class: "pn-input-eyecandy", "data-prefix": true, ref: el => (this.prefix = el) }, !!this.icon && index.h("pn-icon", { key: 'acf1a6e42c9d37cab6f6a0453d8ea674df1cd0c3', icon: this.icon, "aria-hidden": "true" }), this.showPrefix() && index.h("span", { key: '70d2eb7e94e790d665a57557595c2bce4855b827', class: "pn-input-text" }, this.textPrefix)), index.h("div", { key: '1dcae3fb8489d2dc6aa7325baea693591acef31c', class: "pn-input-eyecandy", "data-suffix": true, ref: el => (this.suffix = el) }, this.showSuffix() && index.h("span", { key: '05044f3fbea582d507de30a0ff751abaf1da3206', class: "pn-input-text" }, this.textSuffix), this.displayState() && index.h("pn-icon", { key: '727650c9e6c9b9da2ef43e933fab95b6adc8a6bb', "aria-hidden": "true", icon: this.stateIcon(), color: this.stateColor() }), this.isPassword() && (index.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() && (index.h("pn-button", { key: '2181adb68c152d837ef03bf9b7e0eb66eb3ea6d2', icon: close.close, iconOnly: true, arialabel: this.translate('CLEAR'), small: true, appearance: "light", variant: "borderless", onClick: () => this.clearVal() })))), index.h("p", { key: 'b8b1039a61a23efd24ebd71285b15cce7bfc5ec0', class: "pn-input-message", id: this.idMessage, role: this.hasErrorMessage() ? 'alert' : null, hidden: !this.hasMessage() }, this.hasHelperText() && !this.hasError() && index.h("span", { key: '4433df6b700cc40ce2ae698d2474f57163b398a1', class: "pn-input-helper" }, this.helpertext), index.h("span", { key: '41c8fb1cbbc17b7c349922cac2ff42244a017e0c', class: "pn-input-helper-slot", hidden: !this.showHelperSlot || this.hasError() }, index.h("slot", { key: '5628bbc8db75161d18ad3e75c259bf3eb5fc9052', name: "helpertext" })), this.hasErrorMessage() && index.h("span", { key: 'e41145d7fab9f3ae35dd428971c79673d0531301', class: "pn-input-error" }, this.error), index.h("span", { key: 'ae85a9420fcb449cc874eadc7a066dd772f097a9', class: "pn-input-error-slot", hidden: !this.showErrorSlot }, index.h("slot", { key: 'bdd31ab2f706cac6e243562d035361a381ecfa43', name: "error" }))))));
345
+ } }, this.useLabel() && this.renderLabel(), index.h("div", { key: 'dc01fb7fdb2a60ee89473f0152d833243be4ff8d', class: "pn-input-group" }, index.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(), index.h("div", { key: 'b52d9bfa61569635f422fedc22edd09c768ab9d8', class: "pn-input-eyecandy", "data-prefix": true, ref: el => (this.prefix = el) }, !!this.icon && index.h("pn-icon", { key: 'e5035273e663855094ba88ed0b485a4e8ffed56c', icon: this.icon, "aria-hidden": "true" }), this.showPrefix() && index.h("span", { key: '1d0e5355c5dbfecf3dbb693589726a233e3b7df6', class: "pn-input-text" }, this.textPrefix)), index.h("div", { key: 'e1faa82f19dcfdb6c427d5d2967bfb6694508675', class: "pn-input-eyecandy", "data-suffix": true, ref: el => (this.suffix = el) }, this.showSuffix() && index.h("span", { key: '4c5ecf7c19bf64eea77b21b05d9ffe491bf4b91c', class: "pn-input-text" }, this.textSuffix), this.displayState() && index.h("pn-icon", { key: 'f7014e0c31faf3c563c846e4a7061c6f4b35a64a', "aria-hidden": "true", icon: this.stateIcon(), color: this.stateColor() }), this.isPassword() && (index.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() && (index.h("pn-button", { key: '60263a255ee8c8d3ed72ea89a26abfbe9be11d0d', icon: close.close, iconOnly: true, arialabel: this.translate('CLEAR'), small: true, appearance: "light", variant: "borderless", onClick: () => this.clearVal() })))), index.h("p", { key: 'd23165556ffcdbfcf7229a04f5c1ea8686432c97', id: this.idHelper, class: "pn-input-message", hidden: this.hideHelpertext() }, !!this.helpertext && index.h("span", { key: 'b7e31855d677953bbc7a4f65cb0b26a5eac8887b' }, this.helpertext), index.h("slot", { key: 'a6bbaeceb31e2cc38d1e110b900e13b4f0957c6e', name: "helpertext" })), index.h("p", { key: '3668fbc1a512f92d3f5a2c6f1f7d86cf04df148b', id: this.idError, class: "pn-input-message", role: "alert", hidden: this.hideError() }, !!this.error && index.h("span", { key: 'c14fb6ab8e17c7d17813c83c0993f95d079f8274' }, this.error), index.h("slot", { key: '75ba01e945315e6a3bbf2f5e5ac34c73fe7ab57f', name: "error" })))));
313
346
  }
314
347
  static get watchers() { return {
315
348
  "textPrefix": [{
@@ -318,11 +351,11 @@ const PnInput = class {
318
351
  "textSuffix": [{
319
352
  "handleOffset": 0
320
353
  }],
321
- "helpertext": [{
322
- "handleMessage": 0
354
+ "inputid": [{
355
+ "handleId": 0
323
356
  }],
324
- "error": [{
325
- "handleMessage": 0
357
+ "pnId": [{
358
+ "handleId": 1
326
359
  }]
327
360
  }; }
328
361
  };
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- var index = require('./index-CfUQZtlH.js');
7
+ var index = require('./index-DWu-2oJc.js');
8
8
  var index$1 = require('./index.cjs.js');
9
9
  var close = require('./close-Bn5ieKko.js');
10
10
 
@@ -18,14 +18,15 @@ const translations = {
18
18
  },
19
19
  };
20
20
 
21
- const pnModalCss = () => `${index.transformTag("pn-modal")} .pn-modal{--pn-modal-max-width:45em;z-index:10000;position:fixed;top:0;inset-block-start:0;inset-block-end:0;margin:auto;padding:0;max-width:var(--pn-modal-max-width);overflow:hidden;border:0;border-radius:1.5em;box-shadow:0 0.25em 0.875em rgba(0, 0, 0, 0.18), 0 1.625em 3.5em rgba(0, 0, 0, 0.22);background-color:#ffffff;display:none;opacity:0;transform:translate(0%, 20%);outline:0.2rem solid transparent;outline-offset:0.2rem}${index.transformTag("pn-modal")} .pn-modal:focus-visible{outline-color:#ffffff}${index.transformTag("pn-modal")} .pn-modal{transition-property:opacity, overlay, display, transform, outline-color, border-radius;transition-duration:0.4s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-modal")} .pn-modal{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-modal")} .pn-modal{transition-behavior:allow-discrete}${index.transformTag("pn-modal")} .pn-modal[data-allow-overflow]{overflow:unset}${index.transformTag("pn-modal")} .pn-modal[data-allow-overflow] .pn-modal-container{overflow:unset}${index.transformTag("pn-modal")} .pn-modal[data-allow-overflow] .pn-modal-picture{border-top-right-radius:1.5em}${index.transformTag("pn-modal")} .pn-modal[data-image]{padding-top:0}${index.transformTag("pn-modal")} .pn-modal[data-sheet]{margin:0 0 0 auto;height:100%;max-height:unset;border-radius:1.5em 0 0 1.5em;transform:translate(20%, 0%)}${index.transformTag("pn-modal")} .pn-modal[data-sheet] .pn-modal-container{max-height:unset}${index.transformTag("pn-modal")} .pn-modal[open]{display:flex;opacity:1;transform:translate(0%, 0%)}@starting-style{${index.transformTag("pn-modal")} .pn-modal[open]{display:flex;opacity:0;transform:translate(0%, 20%)}}${index.transformTag("pn-modal")} .pn-modal[open][data-sheet]{transform:translate(0%, 0%)}@starting-style{${index.transformTag("pn-modal")} .pn-modal[open][data-sheet]{transform:translate(20%, 0%)}}${index.transformTag("pn-modal")} .pn-modal::backdrop{background-color:rgba(0, 0, 0, 0);transition-property:opacity, background-color, overlay, display;transition-duration:0.4s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-modal")} .pn-modal::backdrop{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-modal")} .pn-modal::backdrop{transition-behavior:allow-discrete}${index.transformTag("pn-modal")} .pn-modal[open]::backdrop{background-color:rgba(0, 0, 0, 0.55)}@starting-style{${index.transformTag("pn-modal")} .pn-modal[open]::backdrop{background-color:rgba(0, 0, 0, 0)}}${index.transformTag("pn-modal")} .pn-modal-container{max-height:85vh;display:flex;flex-direction:column;align-items:stretch;overflow:hidden auto}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar{background-color:#ffffff;width:0.875em;border-radius:0.5em}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-track{background-color:#ffffff;border-radius:0.5em}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-thumb{cursor:pointer;background-color:#969087;border-radius:1em;border:0.25em solid #ffffff}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-thumb:hover{background-color:#5e554a}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-corner,${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-button{display:none}${index.transformTag("pn-modal")} .pn-modal-close-button{position:absolute;z-index:10;right:0.75em;top:0.75em}${index.transformTag("pn-modal")} .pn-modal-header{display:flex;flex-direction:column;gap:0.5em;padding:clamp(1em, 5vw, 1.5em)}${index.transformTag("pn-modal")} .pn-modal-header[hidden]{display:none}${index.transformTag("pn-modal")} .pn-modal-header:not([hidden])+.pn-modal-content:not([hidden]){padding-top:0}${index.transformTag("pn-modal")} .pn-modal-label{line-height:1.5;padding-right:1.5em;margin:0}${index.transformTag("pn-modal")} .pn-modal-text{margin:0}${index.transformTag("pn-modal")} .pn-modal-content{padding:clamp(1em, 5vw, 1.5em)}${index.transformTag("pn-modal")} .pn-modal-image{position:relative;display:flex;flex-direction:column}${index.transformTag("pn-modal")} .pn-modal-image[hidden]{display:none}${index.transformTag("pn-modal")} .pn-modal-picture{margin:0;padding:0;display:block;overflow:hidden;border-radius:1.5em 0 0 0}${index.transformTag("pn-modal")} .pn-modal-picture>*[slot=image]{display:block;height:100%;width:100%;object-fit:cover}${index.transformTag("pn-modal")} .pn-modal-buttons{background-color:#ffffff;border-top:0.0625em solid #d3cecb;padding:clamp(1em, 5vw, 1.5em);display:flex;justify-content:flex-end;gap:0.5em;border-radius:0 0 1.5em 1.5em}${index.transformTag("pn-modal")} .pn-modal-buttons>[slot=buttons]:not(${index.transformTag("pn-button")}){display:flex;justify-content:flex-end;gap:0.5em}${index.transformTag("pn-modal")} .pn-modal-buttons>[slot=buttons]:not(${index.transformTag("pn-button")})>[data-left]{margin-right:auto}${index.transformTag("pn-modal")} .pn-modal-buttons>[data-left]{margin-right:auto}${index.transformTag("pn-modal")} .pn-modal-buttons:empty{display:none}@media (max-width: 55em){${index.transformTag("pn-modal")} .pn-modal{max-height:95vh;margin-bottom:0;bottom:0;transform:translate(0%, 20%);border-bottom-left-radius:0;border-bottom-right-radius:0}}`;
21
+ const pnModalCss = () => `${index.transformTag("pn-modal")} .pn-modal{--pn-modal-max-width:45em;z-index:10000;position:fixed;top:0;inset-block-start:0;inset-block-end:0;margin:auto;padding:0;max-width:var(--pn-modal-max-width);overflow:hidden;border:0;border-radius:1.5em;box-shadow:0 0.25em 0.875em rgba(0, 0, 0, 0.18), 0 1.625em 3.5em rgba(0, 0, 0, 0.22);background-color:#ffffff;display:none;opacity:0;transform:translate(0%, 20%);outline:0.2rem solid transparent;outline-offset:0.2rem}${index.transformTag("pn-modal")} .pn-modal:focus-visible{outline-color:#ffffff}${index.transformTag("pn-modal")} .pn-modal{transition-property:opacity, overlay, display, transform, outline-color, border-radius;transition-duration:0.4s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-modal")} .pn-modal{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-modal")} .pn-modal{transition-behavior:allow-discrete}${index.transformTag("pn-modal")} .pn-modal[data-allow-overflow]{overflow:unset}${index.transformTag("pn-modal")} .pn-modal[data-allow-overflow] .pn-modal-container{overflow:unset}${index.transformTag("pn-modal")} .pn-modal[data-allow-overflow] .pn-modal-picture{border-top-right-radius:1.5em}${index.transformTag("pn-modal")} .pn-modal[data-image]{padding-top:0}${index.transformTag("pn-modal")} .pn-modal[data-sheet]{margin:0 0 0 auto;height:100%;max-height:unset;border-radius:1.5em 0 0 1.5em;transform:translate(20%, 0%)}${index.transformTag("pn-modal")} .pn-modal[data-sheet] .pn-modal-container{max-height:unset}${index.transformTag("pn-modal")} .pn-modal[open]{display:flex;opacity:1;transform:translate(0%, 0%)}@starting-style{${index.transformTag("pn-modal")} .pn-modal[open]{display:flex;opacity:0;transform:translate(0%, 20%)}}${index.transformTag("pn-modal")} .pn-modal[open][data-sheet]{transform:translate(0%, 0%)}@starting-style{${index.transformTag("pn-modal")} .pn-modal[open][data-sheet]{transform:translate(20%, 0%)}}${index.transformTag("pn-modal")} .pn-modal::backdrop{background-color:rgba(0, 0, 0, 0);transition-property:opacity, background-color, overlay, display;transition-duration:0.4s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${index.transformTag("pn-modal")} .pn-modal::backdrop{transition-duration:0s;transition-delay:0s}}${index.transformTag("pn-modal")} .pn-modal::backdrop{transition-behavior:allow-discrete}${index.transformTag("pn-modal")} .pn-modal[open]::backdrop{background-color:rgba(0, 0, 0, 0.55)}@starting-style{${index.transformTag("pn-modal")} .pn-modal[open]::backdrop{background-color:rgba(0, 0, 0, 0)}}${index.transformTag("pn-modal")} .pn-modal-container{max-height:85vh;display:flex;flex-direction:column;align-items:stretch;overflow:hidden auto}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar{background-color:#ffffff;width:0.875em;border-radius:0.5em}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-track{background-color:#ffffff;border-radius:0.5em}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-thumb{cursor:pointer;background-color:#969087;border-radius:1em;border:0.25em solid #ffffff}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-thumb:hover{background-color:#5e554a}${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-corner,${index.transformTag("pn-modal")} .pn-modal-container::-webkit-scrollbar-button{display:none}${index.transformTag("pn-modal")} .pn-modal-close-button{position:absolute;z-index:10;right:0.75em;top:0.75em}${index.transformTag("pn-modal")} .pn-modal-header{display:flex;flex-direction:column;gap:0.5em;padding:clamp(1em, 5vw, 1.5em)}${index.transformTag("pn-modal")} .pn-modal-header[hidden]{display:none}${index.transformTag("pn-modal")} .pn-modal-header:not([hidden])+.pn-modal-content:not([hidden]){padding-top:0}${index.transformTag("pn-modal")} .pn-modal-label{line-height:1.5;padding-right:1.5em;margin:0}${index.transformTag("pn-modal")} .pn-modal-text{margin:0}${index.transformTag("pn-modal")} .pn-modal-content{padding:clamp(1em, 5vw, 1.5em)}${index.transformTag("pn-modal")} .pn-modal-image{position:relative;display:flex;flex-direction:column}${index.transformTag("pn-modal")} .pn-modal-image[hidden]{display:none}${index.transformTag("pn-modal")} .pn-modal-picture{margin:0;padding:0;display:block;overflow:hidden;border-radius:1.5em 0 0 0}${index.transformTag("pn-modal")} .pn-modal-picture>*[slot=image]{display:block;height:100%;width:100%;object-fit:cover}${index.transformTag("pn-modal")} .pn-modal-buttons{background-color:#ffffff;padding:clamp(1em, 5vw, 1.5em);display:flex;justify-content:flex-end;gap:0.5em;border-radius:0 0 1.5em 1.5em}${index.transformTag("pn-modal")} .pn-modal-buttons[data-divider]{border-top:0.0625em solid #d3cecb;margin-top:auto}${index.transformTag("pn-modal")} .pn-modal-buttons>[slot=buttons]:not(${index.transformTag("pn-button")}){display:flex;justify-content:flex-end;gap:0.5em}${index.transformTag("pn-modal")} .pn-modal-buttons>[slot=buttons]:not(${index.transformTag("pn-button")})>[data-left]{margin-right:auto}${index.transformTag("pn-modal")} .pn-modal-buttons>[data-left]{margin-right:auto}${index.transformTag("pn-modal")} .pn-modal-buttons:empty{display:none}@media (max-width: 55em){${index.transformTag("pn-modal")} .pn-modal{max-height:95vh;margin-bottom:0;bottom:0;transform:translate(0%, 20%);border-bottom-left-radius:0;border-bottom-right-radius:0}}`;
22
22
 
23
23
  const PnModal = class {
24
24
  constructor(hostRef) {
25
25
  index.registerInstance(this, hostRef);
26
- this.modalToggle = index.createEvent(this, "modalToggle");
27
- this.modalVisiblity = index.createEvent(this, "modalVisiblity");
28
- this.close = index.createEvent(this, "close");
26
+ this.modalToggle = index.createEvent(this, "modalToggle", 7);
27
+ this.modalVisibility = index.createEvent(this, "modalVisibility", 7);
28
+ this.modalVisiblity = index.createEvent(this, "modalVisiblity", 7);
29
+ this.close = index.createEvent(this, "close", 7);
29
30
  }
30
31
  mo;
31
32
  standardAnimationDuration = 400;
@@ -45,7 +46,9 @@ const PnModal = class {
45
46
  helpertext;
46
47
  /** Set the language. @since v7.14.0 */
47
48
  language = null;
48
- /** Bind to this property if you want to control the visibility of the modal from your own data. @category Features */
49
+ /** Set a custom HTML id. @since v7.24.0 */
50
+ pnId = null;
51
+ /** Use this prop if you want to control the visibility of the modal programmatically. @category Features */
49
52
  open = false;
50
53
  /**
51
54
  * Prevent users from closing the modal by clicking on the backdrop or the `ESC` key.
@@ -54,19 +57,20 @@ const PnModal = class {
54
57
  */
55
58
  persistent = false;
56
59
  /**
57
- * Hide the close button. If you disable this, make sure you build your own cancel button.
60
+ * Hide the close button. If you enable this, make sure you build your own cancel button.
58
61
  * @since v7.14.0
59
62
  * @category Features
60
63
  */
61
64
  hideClose = false;
62
65
  /**
63
- * Allow overflow if possible. When the modal opens, it will check scrollHeight > offsetHeight.
64
- * Do not use if you have a lot of conditional rendering inside the modal.
66
+ * Allow overflow *when* it is possible.
67
+ * Do not use if you have a lot of conditional rendering inside the modal as it can cause layout shifts.
65
68
  * @since v7.14.0
69
+ * @category Features
66
70
  */
67
71
  allowOverflow = false;
68
72
  /**
69
- * Use the `sheet` visual. Aligns the modal to the right.
73
+ * Use the `sheet` visual. Aligns the modal to the right instead of the center.
70
74
  * @since v7.14.0
71
75
  * @category Visual
72
76
  */
@@ -94,7 +98,9 @@ const PnModal = class {
94
98
  this.animationDuration = this.standardAnimationDuration;
95
99
  this.modalTimeout = setTimeout(() => {
96
100
  this.isClosing = false;
101
+ /** @todo remove in v8.0.0 */
97
102
  this.modalVisiblity.emit({ visible: this.open });
103
+ this.modalVisibility.emit({ visible: this.open });
98
104
  }, this.animationDuration);
99
105
  }
100
106
  handleMaxWidth() {
@@ -107,7 +113,13 @@ const PnModal = class {
107
113
  }
108
114
  /** This event is fired when the modal is toggled. {@since v7.14.0} */
109
115
  modalToggle;
110
- /** This event is dispatched after the opening/closing animation has finished playing. {@since v7.14.0} */
116
+ /** This event is dispatched after the opening/closing animation has finished playing. {@since v7.22.0} */
117
+ modalVisibility;
118
+ /**
119
+ * This event is dispatched after the opening/closing animation has finished playing.
120
+ * @since v7.14.0
121
+ * @deprecated v7.22.0. Use `modalVisibility` instead due to typo.
122
+ */
111
123
  modalVisiblity;
112
124
  /**
113
125
  * Event fired when the modal is closed, either by clicking on the dark background or by clicking on the close button.
@@ -182,7 +194,7 @@ const PnModal = class {
182
194
  this.open = state ?? !this.open;
183
195
  }
184
196
  render() {
185
- return (index.h(index.Host, { key: 'd965a05833b311fed1f1f7ba245c9401ab77b765' }, index.h("dialog", { key: 'd60d253a75dd3f82b684fce659a9a917d6181c62', class: "pn-modal", "data-closing": this.isClosing, "data-sheet": this.sheet, "data-image": this.showImage(), "data-allow-overflow": this.removeOverflow, onClose: () => this.setModalClose(), onCancel: () => this.setModalClose(), onToggle: () => this.modalToggle.emit({ open: this.open }), onKeyDown: event => this.handleKeyboard(event), onClick: event => this.clickModalBackground(event), ref: el => (this.modalElement = el) }, !this.hideClose && (index.h("pn-button", { key: '4d25a2e559a8aca6286a9fc7a94f82285bd8ad4e', small: true, class: "pn-modal-close-button", icon: close.close, iconOnly: true, arialabel: this.translate('CLOSE_MODAL'), appearance: "light", variant: "borderless", type: "button", onPnClick: () => this.setModalClose() })), index.h("div", { key: '3953eef2505ccda4786177c01ae9af92874d65a1', class: "pn-modal-container", ref: el => (this.modalContainer = el) }, index.h("div", { key: 'de0730ef36d305f2ff2652510838df85bdbdee5e', class: "pn-modal-image", hidden: !this.showImage() }, index.h("picture", { key: 'c26ae160c243b630d7a1ba71a8d4cac523096cfd', class: "pn-modal-picture", ref: el => (this.modalPicture = el) }, index.h("slot", { key: '4d2425b17367b4ccd2215e54cfedbee6731a9daf', name: "image" }))), index.h("header", { key: '815bef72c5b9a2982b7dd62059314ef120221ee0', class: "pn-modal-header", hidden: !this.showHeader() }, this.label && index.h("h2", { key: '41ae0e9a7d8adca27764bf6be026d0bc59df9b90', class: "pn-modal-label" }, this.label), this.helpertext && index.h("p", { key: '4fac7c6daf49eaff4a56b7c217f49e7f0507299f', class: "pn-modal-text" }, this.helpertext), index.h("slot", { key: '8ce017defaa66a4bfec5ef38398b3104ed0ff7f9', name: "header" })), index.h("section", { key: '3ad1dc180db0ad42a4fa99dc6c9a17fc153af362', class: "pn-modal-content" }, index.h("slot", { key: 'bddef9aa3cd8b78be3facd5ebd3e88d72b9eb219' })), index.h("nav", { key: 'edc771b8ca813ed6c9b20f688847c9c22072f0a1', class: "pn-modal-buttons" }, index.h("slot", { key: '75dcf50e07c985f95836251881b8c214bc1b58c6', name: "buttons" }))))));
197
+ return (index.h(index.Host, { key: '5b50fca359ed20cebcbdead766d08c2439463b4c' }, index.h("dialog", { key: '43eb7bb4f09c6ce9a665f7478f25b1ae4a253562', id: this.pnId, class: "pn-modal", "data-closing": this.isClosing, "data-sheet": this.sheet, "data-image": this.showImage(), "data-allow-overflow": this.removeOverflow, onClose: () => this.setModalClose(), onCancel: () => this.setModalClose(), onToggle: () => this.modalToggle.emit({ open: this.open }), onKeyDown: event => this.handleKeyboard(event), onClick: event => this.clickModalBackground(event), ref: el => (this.modalElement = el) }, !this.hideClose && (index.h("pn-button", { key: '0bdc665fe32c8531edb073166fe8940d12360661', small: true, class: "pn-modal-close-button", icon: close.close, iconOnly: true, arialabel: this.translate('CLOSE_MODAL'), appearance: "light", variant: "borderless", type: "button", onPnClick: () => this.setModalClose() })), index.h("div", { key: 'ce9529f76b572f6681e1b75528bcab67e3246dbd', class: "pn-modal-container", ref: el => (this.modalContainer = el) }, index.h("div", { key: 'a2addec74c8af3fc9084a0d6faba9053a255bf86', class: "pn-modal-image", hidden: !this.showImage() }, index.h("picture", { key: '4341ae13d01268cc0f9df74bf417522116bed2d9', class: "pn-modal-picture", ref: el => (this.modalPicture = el) }, index.h("slot", { key: '99a643af231cdcd76ad2dafbcdbaf4fbabac5390', name: "image" }))), index.h("header", { key: '849eea60adcfb7c3bbba8687dc49edf752004617', class: "pn-modal-header", hidden: !this.showHeader() }, this.label && index.h("h2", { key: 'e57185ebd04cd622ceca5acb81c6606747afa6f9', class: "pn-modal-label" }, this.label), this.helpertext && index.h("p", { key: '2e0290387a2b96f3eb70db67dd7ac349c5c4fe9e', class: "pn-modal-text" }, this.helpertext), index.h("slot", { key: 'e05316839bfc8883a2e8f4c5079054e9edcd3859', name: "header" })), index.h("section", { key: 'd59b818c18159c106df1f6c3b2b3f747f1b6af29', class: "pn-modal-content" }, index.h("slot", { key: 'c740eb0b7909c9fa5878caecb66887f5bb9b2b73' })), index.h("nav", { key: '22971631737901988e27f4f01c311d2d76839c6a', class: "pn-modal-buttons", "data-divider": this.sheet }, index.h("slot", { key: '3c0e8e66db96d8abc8f718270d94e09b2ad90320', name: "buttons" }))))));
186
198
  }
187
199
  static get watchers() { return {
188
200
  "open": [{