@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,9 +4,9 @@
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$2 = require('./index.cjs.js');
9
- var index$1 = require('./index-CNdVg5VI.js');
9
+ var index$1 = require('./index-vOySuOUW.js');
10
10
  var arrow_left = require('./arrow_left-Crkz484c.js');
11
11
  var arrow_right = require('./arrow_right-CABi9Wkp.js');
12
12
 
@@ -522,20 +522,21 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
522
522
  constructor(hostRef) {
523
523
  super();
524
524
  index.registerInstance(this, hostRef);
525
- this.dateselection = index.createEvent(this, "dateselection");
526
- this.dateSelection = index.createEvent(this, "dateSelection");
527
- this.dateInvalid = index.createEvent(this, "dateInvalid");
528
- this.toggleCalendar = index.createEvent(this, "toggleCalendar");
529
- this.currentView = index.createEvent(this, "currentView");
525
+ this.dateselection = index.createEvent(this, "dateselection", 7);
526
+ this.dateSelection = index.createEvent(this, "dateSelection", 7);
527
+ this.dateInvalid = index.createEvent(this, "dateInvalid", 7);
528
+ this.toggleCalendar = index.createEvent(this, "toggleCalendar", 7);
529
+ this.currentView = index.createEvent(this, "currentView", 7);
530
530
  }
531
531
  id = `pn-date-picker-${index$2.uuidv4()}`;
532
- idFrom = `${this.id}-from`;
533
- idTo = `${this.id}-to`;
534
- idFromButton = `${this.id}-from-button`;
535
- idToButton = `${this.id}-to-button`;
532
+ idStart = `${this.id}-from`;
533
+ idEnd = `${this.id}-to`;
534
+ idStartButton = `${this.id}-from-button`;
535
+ idEndButton = `${this.id}-to-button`;
536
536
  idHelper = `${this.id}-helper`;
537
537
  idError = `${this.id}-error`;
538
538
  idCalendar = `${this.id}-calendar`;
539
+ mo;
539
540
  calendarElement;
540
541
  today = getToday();
541
542
  separators = [];
@@ -545,7 +546,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
545
546
  get hostElement() { return index.getElement(this); }
546
547
  open = false;
547
548
  openUp = false;
548
- selectingTo = false;
549
+ selectingEnd = false;
549
550
  grid;
550
551
  viewYearStart = null;
551
552
  dateViewYear;
@@ -559,72 +560,67 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
559
560
  labelTo;
560
561
  /** Provide a helpertext for the date input. */
561
562
  helpertext;
562
- /** Set a predefined value for the from date. @see {@link format} */
563
+ /** Manually set language; this will be inherited from the topbar. */
564
+ language = undefined;
565
+ /** Set a predefined value for the from date (input value). @see {@link format} @category Native attributes */
563
566
  start = '';
564
567
  /**
565
- * Set a predefined value for the from date.
568
+ * Set a predefined value for the from date. (input value end)
566
569
  *
567
570
  * @see {@link range}
568
571
  * @see {@link format}
572
+ * @category Native attributes
569
573
  */
570
574
  end = '';
571
- /**
572
- * Set the date format of the value.
573
- *
574
- * While you can set any date value from the Dayjs documentation,
575
- * we strongly recommend you pick a simple format that you can also type manually.
576
- *
577
- * @since v7.6.0
578
- * @see {@link https://day.js.org/docs/en/display/format Day.js format documentation.}
579
- */
580
- format = 'YYYY-MM-DD';
581
- /** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 */
582
- compact = false;
583
- /** Manually set language; this will be inherited from the topbar. */
584
- language = null;
585
- /** Set a custom ID for the calendar. @since v7.6.0 @category HTML attributes */
586
- dateId = this.id;
587
- /** HTML input name @since v7.6.0 @category HTML attributes */
575
+ /** HTML input name @since v7.6.0 @category Native attributes*/
588
576
  name;
577
+ /** HTML input name @since v7.25.0 @category Native attributes */
578
+ nameEnd;
589
579
  /**
590
580
  * Placeholder for the input field (defaults to the format prop).
591
581
  * @see {@link format}
592
- * @category HTML attributes
582
+ * @category Native attributes
593
583
  **/
594
- placeholder = this.format;
584
+ placeholder;
595
585
  /**
596
586
  * Placeholder for end date (defaults to the format prop).
597
587
  * @see {@link format}
598
- * @category HTML attributes
588
+ * @deprecated Use `placeholder-end` instead
589
+ * @category Native attributes
599
590
  **/
600
- endPlaceholder = this.format;
601
- /** Set the input `autocomplete` attribute. @category HTML attributes */
591
+ endPlaceholder;
592
+ /**
593
+ * Placeholder for end date (defaults to the format prop).
594
+ * @see {@link format}
595
+ * @since v7.25.0
596
+ * @category Native attributes
597
+ **/
598
+ placeholderEnd;
599
+ /** Set the input `autocomplete` attribute. @category Native attributes */
602
600
  autocomplete;
603
- /** Set the input `list` attribute for the first date input. @since v7.6.0 @category HTML attributes */
601
+ /** Set the input `list` attribute for the first date input. @since v7.6.0 @category Native attributes */
604
602
  list;
605
- /** Set the input `list` attribute for the second date input. @since v7.6.0 @category HTML attributes */
603
+ /** Set the input `list` attribute for the second date input. @since v7.6.0 @category Native attributes */
606
604
  listEnd;
607
- /** Set the HTML pattern prop on the input elements. Make sure it matches the format. @since v7.6.0 @category HTML attributes */
605
+ /** Set the HTML pattern prop on the input elements. Make sure it matches the format. @since v7.6.0 @category Native attributes */
608
606
  pattern;
609
- /** Allow the selection of a date range. @category Features */
610
- range = false;
607
+ /** Set the date picker as required. @category Native attributes */
608
+ required = false;
609
+ /** Set the date picker as readonly. @since v7.6.0 @category Native attributes */
610
+ readonly = false;
611
+ /** Set the date picker as disabled. @since v7.6.0 @category Native attributes */
612
+ disabled = false;
611
613
  /**
612
- * Set a limit on how many days one may select.
613
- * By default, you can select an unlimited range.
614
+ * Set the date format of the value.
614
615
  *
615
- * @todo Create a range limit function.
616
- * @see {@link range}
616
+ * While you can set any date value from the Dayjs documentation,
617
+ * we strongly recommend you pick a simple format that you can also type manually.
617
618
  *
619
+ * @since v7.6.0
620
+ * @see {@link https://day.js.org/docs/en/display/format Day.js format documentation.}
618
621
  * @category Features
619
- * @hide true
620
- **/
621
- rangeLimit;
622
- /** The calendar grid is shown as default. You can set either `months` or `years` as your first choice. @since v7.6.0 @category Features */
623
- view = CALENDAR;
624
- /** Make the calendar open upwards by default. Opens downwards if there is not enough space. @since v7.6.0 @category Features */
625
- calendarUp = false;
626
- /** Show weekend numbers to the left of the calendar grid. @since v7.6.0 @category Features */
627
- weekNumbers = false;
622
+ */
623
+ format = 'YYYY-MM-DD';
628
624
  /** Disable the automatic insertion of separators when typing in the input. @since v7.6.0 @category Features */
629
625
  disableTypeAhead = false;
630
626
  /** Remove the option to select dates on weekends. @category Features */
@@ -638,25 +634,72 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
638
634
  * @category Features
639
635
  **/
640
636
  disabledDates;
641
- /** If you use a format with an unknown length, disable the max length. @category Features */
637
+ /** If you use a format with an unknown length, disable the max length. @since 7.11.3 @category Features */
642
638
  disableMaxLength = false;
643
- /** Set the date picker as required. @category State */
644
- required = false;
645
- /** Set the date picker as readonly. @since v7.6.0 @category State */
646
- readonly = false;
647
- /** Set the date picker as disabled. @since v7.6.0 @category State */
648
- disabled = false;
649
- /** Set an error message for the date picker. Overwrites the helpertext if used at the same time. @since v7.6.0 @category Validation */
650
- error;
651
- /** Trigger the invalid state without an error message. @since v7.6.0 @category Validation */
639
+ /** Allow the selection of a date range. @category Features */
640
+ range = false;
641
+ /**
642
+ * Set a limit on how many days one may select.
643
+ * By default, you can select an unlimited range.
644
+ *
645
+ * @todo Create a range limit function.
646
+ * @see {@link range}
647
+ *
648
+ * @category Features
649
+ * @hide true
650
+ **/
651
+ rangeLimit;
652
+ /** Show weekend numbers to the left of the calendar grid. @since v7.6.0 @category Features */
653
+ weekNumbers = false;
654
+ /** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 @category Features */
655
+ compact = false;
656
+ /** Make the calendar open upwards by default. Opens downwards if there is not enough space. @since v7.6.0 @category Features */
657
+ calendarUp = false;
658
+ /** The calendar grid is shown as default. You can set either `months` or `years` as your first choice. @since v7.6.0 @category Features */
659
+ view = 'calendar';
660
+ /** Trigger the invalid state without an error message. @since v7.6.0 @category Features */
652
661
  invalid = false;
662
+ /** Set an error message for the date picker. Overwrites the helpertext if used at the same time. @since v7.6.0 @category Features */
663
+ error;
664
+ /** Set a custom ID for the calendar. If you use `range`, the end input will use `${pn-id}-end`. @since v7.25.0 @category HTML attributes */
665
+ pnId;
666
+ /**
667
+ * Provide the label via an aria attribute.
668
+ * We strongly recommend you use the `label-from` prop instead.
669
+ * @since v7.25.0
670
+ * @category HTML attributes
671
+ */
672
+ pnAriaLabel;
673
+ /**
674
+ * Provide the label for the end input via an aria attribute.
675
+ * We strongly recommend you use the `label-to` prop instead.
676
+ * @since v7.25.0
677
+ * @category HTML attributes
678
+ */
679
+ pnAriaLabelEnd;
680
+ /**
681
+ * Provide the label from another element via its ID.
682
+ * We strongly recommend you use the `label-from` prop instead.
683
+ * @since v7.25.0
684
+ * @category HTML attributes
685
+ */
686
+ pnAriaLabelledby;
687
+ /**
688
+ * Provide the label for the end input from another element via its ID.
689
+ * We strongly recommend you use the `label-to` prop instead.
690
+ * @since v7.25.0
691
+ * @category HTML attributes
692
+ */
693
+ pnAriaLabelledbyEnd;
694
+ /** Set a custom ID for the calendar. @since v7.6.0 @deprecated Use `pn-id` instead. @category HTML attributes */
695
+ dateId;
653
696
  /**
654
697
  * Earliest date possible, this will determine how many years back the date picker will show.
655
698
  *
656
699
  * Remember to use the same format that you have in the `format` prop.
657
700
  * @see {@link format}
658
701
  * @example "2024-05-25"
659
- * @category Min/max date
702
+ * @category Features
660
703
  **/
661
704
  minDate = null;
662
705
  watchMin() {
@@ -671,7 +714,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
671
714
  * Remember to use the same format that you have in the `format` prop.
672
715
  * @see {@link format}
673
716
  * @example "2024-06-25"
674
- * @category Min/max date
717
+ * @category Features
675
718
  **/
676
719
  maxDate = null;
677
720
  watchMax() {
@@ -715,13 +758,13 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
715
758
  .forEach((item, index) => this.separatorRegex.exec(item) && this.separators.push({ name: item, index }));
716
759
  }
717
760
  watchId() {
718
- this.idFrom = `${this.dateId}-from`;
719
- this.idTo = `${this.dateId}-to`;
720
- this.idFromButton = `${this.id}-from-button`;
721
- this.idToButton = `${this.id}-to-button`;
722
- this.idHelper = `${this.dateId}-helper`;
723
- this.idError = `${this.dateId}-error`;
724
- this.idCalendar = `${this.dateId}-calendar`;
761
+ this.idStart = this.getId();
762
+ this.idEnd = `${this.getId()}-end`;
763
+ this.idStartButton = `${this.idStart}-from-button`;
764
+ this.idEndButton = `${this.idEnd}-to-button`;
765
+ this.idHelper = `${this.idStart}-helper`;
766
+ this.idError = `${this.idStart}-error`;
767
+ this.idCalendar = `${this.idStart}-calendar`;
725
768
  }
726
769
  watchView() {
727
770
  const data = this.getCurrentDateObject();
@@ -815,10 +858,18 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
815
858
  return;
816
859
  this.toggleGrid(false);
817
860
  }
861
+ connectedCallback() {
862
+ this.mo = new MutationObserver(() => {
863
+ index.forceUpdate(this.hostElement);
864
+ this.handleMessage();
865
+ });
866
+ this.mo.observe(this.hostElement, { childList: true, subtree: true });
867
+ }
868
+ disconnectedCallback() {
869
+ if (this.mo)
870
+ this.mo.disconnect();
871
+ }
818
872
  async componentWillLoad() {
819
- this.watchMin();
820
- this.watchMax();
821
- this.watchId();
822
873
  this.handleFormat();
823
874
  this.handleMessage();
824
875
  const valid = validateDate(this.start || this.end, this.format);
@@ -827,9 +878,29 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
827
878
  this.setViewDate({ date: data.date || date });
828
879
  this.setViewMonth({ month: data.month || month });
829
880
  this.setViewYear({ year: data.year || year });
830
- if (this.language === null)
881
+ if (this.language === undefined)
831
882
  await index$2.awaitTopbar(this.hostElement);
832
883
  }
884
+ getId() {
885
+ return this.pnId || this.dateId || this.id;
886
+ }
887
+ getAriaLabel(end) {
888
+ if (end)
889
+ return !this.labelTo && !this.pnAriaLabelledbyEnd ? this.pnAriaLabelEnd : null;
890
+ return !this.labelFrom && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
891
+ }
892
+ getAriaLabelledby(end) {
893
+ if (end)
894
+ return !this.labelTo && !this.pnAriaLabelEnd ? this.pnAriaLabelledbyEnd : null;
895
+ return !this.labelFrom && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
896
+ }
897
+ getPlaceholder(end) {
898
+ if (this.compact)
899
+ return ' ';
900
+ if (end)
901
+ return this.placeholderEnd || this.endPlaceholder || this.format;
902
+ return this.placeholder || this.format;
903
+ }
833
904
  dropdownHandler() {
834
905
  if (this.open)
835
906
  this.openDropdown(this.calendarElement);
@@ -861,7 +932,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
861
932
  }
862
933
  toggleGrid(state, selecting) {
863
934
  this.open = state ?? !this.open;
864
- this.selectingTo = selecting;
935
+ this.selectingEnd = selecting;
865
936
  }
866
937
  hasHelperText() {
867
938
  return this.helpertext?.length > 0 || this.showHelperSlot;
@@ -882,6 +953,12 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
882
953
  const slottedError = this.hostElement.querySelector('[slot=error]')?.textContent;
883
954
  this.showErrorSlot = !!slottedError?.length;
884
955
  }
956
+ hideHelpertext() {
957
+ return this.hasErrorMessage() || !this.hasHelperText();
958
+ }
959
+ hideError() {
960
+ return !this.hasErrorMessage();
961
+ }
885
962
  viewingCalendar() {
886
963
  return this.view === CALENDAR;
887
964
  }
@@ -934,8 +1011,8 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
934
1011
  getCurrentViewDate(data = this.getCurrentDateObject()) {
935
1012
  return getReadableDate(data, this.language, 'MMMM YYYY');
936
1013
  }
937
- isSelected(data, to = false) {
938
- const value = to ? this.end : this.start;
1014
+ isSelected(data, end = false) {
1015
+ const value = end ? this.end : this.start;
939
1016
  return selectedDate(value, this.getCurrentDateObject(data), this.format, this.viewType());
940
1017
  }
941
1018
  isToday(data) {
@@ -1048,24 +1125,24 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
1048
1125
  }
1049
1126
  return value;
1050
1127
  }
1051
- inputHandler(event, to = false) {
1052
- const propName = to ? 'end' : 'start';
1128
+ inputHandler(event, end = false) {
1129
+ const propName = end ? 'end' : 'start';
1053
1130
  const value = this.disableTypeAhead ? event.target.value : this.handleSeparator(event);
1054
1131
  this[propName] = value;
1055
1132
  }
1056
1133
  setValue(date) {
1057
1134
  const value = getReadableDate(this.getCurrentDateObject({ date }), this.language, this.format);
1058
- if (this.selectingTo)
1135
+ if (this.selectingEnd)
1059
1136
  this.end = value;
1060
1137
  else
1061
1138
  this.start = value;
1062
1139
  this.setViewDate({ date });
1063
- if (!this.range || this.selectingTo) {
1140
+ if (!this.range || this.selectingEnd) {
1064
1141
  this.toggleGrid(false);
1065
1142
  this.focusToggleCalendarButton();
1066
1143
  }
1067
- if (this.range && !this.selectingTo)
1068
- this.selectingTo = true;
1144
+ if (this.range && !this.selectingEnd)
1145
+ this.selectingEnd = true;
1069
1146
  }
1070
1147
  getDayAttributes(dateObject, blank) {
1071
1148
  const data = this.getCurrentDateObject(dateObject);
@@ -1120,7 +1197,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
1120
1197
  /** Focus the button toggling the calendar. Handles the start/from date on its own. */
1121
1198
  focusToggleCalendarButton() {
1122
1199
  requestAnimationFrame(() => {
1123
- const id = this.range ? this.idToButton : this.idFromButton;
1200
+ const id = this.range ? this.idEndButton : this.idStartButton;
1124
1201
  this.hostElement.querySelector(`#${id}`).focus({ preventScroll: true });
1125
1202
  });
1126
1203
  }
@@ -1202,37 +1279,39 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
1202
1279
  renderYearGrid() {
1203
1280
  return (index.h("ul", { class: "pn-date-picker-list" }, this.getYearGrid()?.map(year => (index.h("li", { key: year, class: "pn-date-picker-item", "data-item": "year" }, index.h("button", { type: "button", class: "pn-date-picker-button", ...this.getDayAttributes({ year }, false) }, index.h("span", null, year)))))));
1204
1281
  }
1205
- renderLabel(to = false) {
1206
- const id = to ? this.idTo : this.idFrom;
1207
- const label = to ? this.labelTo : this.labelFrom;
1282
+ renderLabel(end = false) {
1283
+ const id = end ? this.idEnd : this.idStart;
1284
+ const label = end ? this.labelTo : this.labelFrom;
1285
+ if (!label)
1286
+ return null;
1208
1287
  return (index.h("label", { class: "pn-date-picker-label", htmlFor: id, "data-compact": this.compact }, index.h("span", null, label)));
1209
1288
  }
1210
- renderInput({ to = false } = {}) {
1211
- const id = to ? this.idTo : this.idFrom;
1212
- const idButton = to ? this.idToButton : this.idFromButton;
1213
- const value = to ? this.end : this.start;
1214
- const placeholder = to ? this.endPlaceholder : this.placeholder;
1215
- const list = to ? this.listEnd : this.list;
1216
- const editing = this.open ? (this.selectingTo ? to : !to) : false;
1289
+ renderInput({ end = false } = {}) {
1290
+ const id = end ? this.idEnd : this.idStart;
1291
+ const idButton = end ? this.idEndButton : this.idStartButton;
1292
+ const value = end ? this.end : this.start;
1293
+ const list = end ? this.listEnd : this.list;
1294
+ const name = end ? this.nameEnd : this.name;
1295
+ const editing = this.open ? (this.selectingEnd ? end : !end) : false;
1217
1296
  const defaultText = this.translate('SELECT_DATE');
1218
- const textProp = this.range ? (to ? 'END_' : 'START_') : '';
1297
+ const textProp = this.range ? (end ? 'END_' : 'START_') : '';
1219
1298
  const dateText = this.translate(`SELECTED_${textProp}DATE`);
1220
1299
  let textButton = defaultText;
1221
1300
  if (value) {
1222
1301
  textButton += `, ${dateText.replace('{date}', value)}`;
1223
1302
  }
1224
1303
  const showButton = !(this.disabled || this.readonly);
1225
- return (index.h("div", { class: "pn-date-picker-container", "data-error": this.hasError() }, !this.compact && this.renderLabel(to), index.h("div", { class: "pn-date-picker-field" }, index.h("input", { type: "text", id: id, class: "pn-date-picker-input", name: this.name, placeholder: this.compact ? ' ' : placeholder, autocomplete: this.autocomplete, maxlength: this.disableMaxLength ? null : this.format.length, list: list, pattern: this.pattern, value: value, disabled: this.disabled, required: this.required, readonly: this.readonly, "aria-describedby": this.ariaDescribedby(), "aria-invalid": this.hasError()?.toString(), "data-active": editing, "data-compact": this.compact, onInput: e => this.inputHandler(e, to) }), this.compact && this.renderLabel(to), showButton && (index.h("pn-button", { class: "pn-date-picker-toggle", buttonId: idButton, icon: calendar, iconOnly: true, appearance: "light", arialabel: textButton, ariaexpanded: this.open.toString(), ariacontrols: this.idCalendar, "data-active": this.open, "data-input": true, small: true, onPnClick: () => this.toggleGrid(null, to), onKeyDown: e => this.handleButtonBlur(e) })))));
1304
+ return (index.h("div", { class: "pn-date-picker-container", "data-error": this.hasError() }, !this.compact && this.renderLabel(end), index.h("div", { class: "pn-date-picker-field" }, index.h("input", { type: "text", id: id, class: "pn-date-picker-input", name: name, placeholder: this.getPlaceholder(end), autocomplete: this.autocomplete, maxlength: this.disableMaxLength ? null : this.format.length, list: list, pattern: this.pattern, value: value, disabled: this.disabled, required: this.required, readonly: this.readonly, "aria-label": this.getAriaLabel(end), "aria-labelledby": this.getAriaLabelledby(end), "aria-describedby": this.ariaDescribedby(), "aria-invalid": this.hasError()?.toString(), "data-active": editing, "data-compact": this.compact, onInput: e => this.inputHandler(e, end) }), this.compact && this.renderLabel(end), showButton && (index.h("pn-button", { class: "pn-date-picker-toggle", buttonId: idButton, icon: calendar, iconOnly: true, appearance: "light", arialabel: textButton, ariaexpanded: this.open.toString(), ariacontrols: this.idCalendar, "data-active": this.open, "data-input": true, small: true, onPnClick: () => this.toggleGrid(null, end), onKeyDown: e => this.handleButtonBlur(e) })))));
1226
1305
  }
1227
1306
  render() {
1228
- return (index.h(index.Host, { key: '0485d508d1df7d71009ab2c22096384928750697' }, index.h("div", { key: '31514c4b9c216ca227ac91c90e82846992df283c', class: "pn-date-picker" }, this.renderInput(), this.range && (index.h("div", { key: '2d924b59e6f7e41364413935b08640db0aa1622e', class: "pn-date-picker-range-icon test" }, index.h("pn-icon", { key: '51ec54178bbf69c66fe17228017aeb8985e551fc', icon: arrow_right.arrow_right }))), this.range && this.renderInput({ to: this.range })), index.h("div", { key: '16d60d86b8d9c01b7732a3c7b773d1157eedbd2b', id: this.idCalendar, class: "pn-date-picker-calendar", role: "dialog", "aria-label": this.translate('CALENDAR_NAVIGATION'), "data-open": this.open, "data-direction": this.openUp ? 'top' : 'bottom', "data-range": this.range, style: { height: '0px' }, ref: el => (this.calendarElement = el), onKeyDown: e => this.handleCalendarTabEsc(e) }, index.h("div", { key: '703d253840d5e9943750469c9495c3151b85f08c', class: "pn-date-picker-wrapper" }, index.h("nav", { key: 'e25723946681d630dffeeddbf814b3a720c9685c', class: "pn-date-picker-nav", "aria-labelledby": this.idCalendar }, index.h("pn-button", { key: '9dec68c96c3ab4f8ca0c29783cd1e693e43281e1', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`PREVIOUS_${this.viewType().toUpperCase()}`), icon: arrow_left.arrow_left, iconOnly: true, onPnClick: () => this.setNavView({ minus: true }) }), index.h("pn-button", { key: '33dfc7f288f489eb814f27f61869793bf718fb6a', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(MONTHS) }, index.h("span", { key: '67b029ff5dae525732dc78d1be4a3c706848078c', class: "pn-date-picker-month", "data-full": true }, this.translateDateText({ date: 1 }, 'MMMM')), index.h("span", { key: '82b2346a120e52d3f55d40eae85d191673c4e906', class: "pn-date-picker-month", "data-abbr": true }, this.translateDateText({ date: 1 }, 'MMM'))), index.h("h2", { key: '64c4b74c742c62370e8fe74b7ffd0c8e10c8c8d7', hidden: this.viewingCalendar(), class: "pn-date-picker-title" }, this.translate(`SELECT_${this.viewType().toUpperCase()}`)), index.h("pn-button", { key: '065dcdbccfaf4f4b3eeae1bba9772a8bce804b66', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(YEARS) }, index.h("span", { key: '2c0b032610650aa43701a3f52052defad495569d' }, this.dateViewYear)), index.h("pn-button", { key: 'feb54d3c95595a39aa93eb2c74c7582a82b3031a', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`NEXT_${this.viewType().toUpperCase()}`), icon: arrow_right.arrow_right, iconOnly: true, onPnClick: () => this.setNavView({ plus: true }) })), this.viewingYears() && this.renderYearGrid(), this.viewingMonth() && this.renderMonthGrid(), this.viewingCalendar() && this.renderDateGrid(), index.h("aside", { key: '1d1aa223f4314d714db6e994a7f87f3f0004f472', class: "pn-date-picker-chips" }, index.h("slot", { key: '1239efd56b8aa01558c9671e3a1c198af8cdec28', name: "chips" })), index.h("nav", { key: '0410b4a1a92b1ccb56dee901be8df49933301142', class: "pn-date-picker-bottom", hidden: this.viewingCalendar() }, index.h("pn-button", { key: 'ec803a3af2c22f05f1416e0f62424b3341256d0f', appearance: "light", variant: "outlined", small: true, icon: pn_return, onPnClick: () => this.setView(CALENDAR) }, index.h("span", { key: '76b1889719347c417b5366bc511f48604aad35e1' }, this.translate('GO_CALENDAR')))))), index.h("p", { key: 'efb966a5373f0a1b0e300999af60a1f8b9194429', id: this.idHelper, class: "pn-date-picker-helpertext", hidden: !this.hasHelperText() || this.hasError() }, index.h("span", { key: 'cf169a86e1a4c9ca46d835a536971306dba5224f' }, this.helpertext), index.h("slot", { key: '858470af2c9febb68a7beffa3014485d91297893', name: "helpertext" })), index.h("p", { key: '219d57d13eebcb6d6621fe8e1a717fedcc39e641', id: this.idError, class: "pn-date-picker-error", role: "alert", hidden: !this.hasErrorMessage() }, index.h("span", { key: '92b84f913d27642f9487f6316040f95478a75373' }, this.error), index.h("slot", { key: '31a3de009f3b54f775f558ae6a9aa17ebb2bbc88', name: "error" }))));
1307
+ return (index.h(index.Host, { key: 'dbe09316ddf6365ad119afe9fd01a363aa3cf9bf' }, index.h("div", { key: 'b6aa1c922859c282529ff9e1297aacc79111a0f9', class: "pn-date-picker" }, this.renderInput(), this.range && (index.h("div", { key: '48d050a834a2df16b33759bbe117a5c378dfa069', class: "pn-date-picker-range-icon test" }, index.h("pn-icon", { key: '6b6507409ba5eaf3de232dff28785d9c7c0a85f0', icon: arrow_right.arrow_right }))), this.range && this.renderInput({ end: this.range })), index.h("div", { key: '9a9d31f221aabbf0927bcc8ae602d1330d75b4d3', id: this.idCalendar, class: "pn-date-picker-calendar", role: "dialog", "aria-label": this.translate('CALENDAR_NAVIGATION'), "data-open": this.open, "data-direction": this.openUp ? 'top' : 'bottom', "data-range": this.range, style: { height: '0px' }, ref: el => (this.calendarElement = el), onKeyDown: e => this.handleCalendarTabEsc(e) }, index.h("div", { key: '56137ab966418bda3abd61bbcc12ff004feca5c0', class: "pn-date-picker-wrapper" }, index.h("nav", { key: '67a2fea072a8e4953fa9803e77d0245760b7195a', class: "pn-date-picker-nav", "aria-labelledby": this.idCalendar }, index.h("pn-button", { key: '9d9d0aa471baa6d6183a4b3b920cf8d05737e8a1', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`PREVIOUS_${this.viewType().toUpperCase()}`), icon: arrow_left.arrow_left, iconOnly: true, onPnClick: () => this.setNavView({ minus: true }) }), index.h("pn-button", { key: '57988169fdd38cb05c18c6d4f8e71ded23f97f5f', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(MONTHS) }, index.h("span", { key: '93c98b9aeabdc4b08e59afdaf8655dfe3c440b13', class: "pn-date-picker-month", "data-full": true }, this.translateDateText({ date: 1 }, 'MMMM')), index.h("span", { key: '9c0b0c3378f00755ef84e5e87426c1a9bedb0651', class: "pn-date-picker-month", "data-abbr": true }, this.translateDateText({ date: 1 }, 'MMM'))), index.h("h2", { key: '02d40d1aa03dd69f5b344295713ec9c45431b3e9', hidden: this.viewingCalendar(), class: "pn-date-picker-title" }, this.translate(`SELECT_${this.viewType().toUpperCase()}`)), index.h("pn-button", { key: '4f953719a89967b10c98472b24f732c42cd61e3c', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(YEARS) }, index.h("span", { key: 'a91a0dd940b94d0f71d887508644d6acfa3ef098' }, this.dateViewYear)), index.h("pn-button", { key: '3eabe547992de22014f3e229c9e7e17eab395d56', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`NEXT_${this.viewType().toUpperCase()}`), icon: arrow_right.arrow_right, iconOnly: true, onPnClick: () => this.setNavView({ plus: true }) })), this.viewingYears() && this.renderYearGrid(), this.viewingMonth() && this.renderMonthGrid(), this.viewingCalendar() && this.renderDateGrid(), index.h("aside", { key: '6eaefead16141908688578834b1e6a2ba87e8161', class: "pn-date-picker-chips" }, index.h("slot", { key: '43bcfa9bb50d6dbd912ae8cfee339b642b9363a5', name: "chips" })), index.h("nav", { key: 'b22d7112ba5d3d012f5d2617586bd251547f4ed7', class: "pn-date-picker-bottom", hidden: this.viewingCalendar() }, index.h("pn-button", { key: '41031640dbac5130b3fb9029b36c5e732068c78f', appearance: "light", variant: "outlined", small: true, icon: pn_return, onPnClick: () => this.setView(CALENDAR) }, index.h("span", { key: '08568a439547db8728c3f110c00854d49ec7eb77' }, this.translate('GO_CALENDAR')))))), index.h("p", { key: 'e890351198e9eaa85e9db3bcc55bc8bdd48f3538', id: this.idHelper, class: "pn-date-picker-helpertext", hidden: this.hideHelpertext() }, index.h("span", { key: '0b776595b33ed64cb73b5060d023eb89421ad758' }, this.helpertext), index.h("slot", { key: 'e9ef3797e3baae78dca7efc2313e1b6cf9c7efd7', name: "helpertext" })), index.h("p", { key: 'aa43fb6eaf42251bb7dadab0f724edee0e6d42b2', id: this.idError, class: "pn-date-picker-error", role: "alert", hidden: this.hideError() }, index.h("span", { key: '556bfbb5e5ba697234734eb601445150b23ddcf2' }, this.error), index.h("slot", { key: '21dd12fd2c3f1ac814699f4785ece567136cedd2', name: "error" }))));
1229
1308
  }
1230
1309
  static get watchers() { return {
1231
1310
  "minDate": [{
1232
- "watchMin": 0
1311
+ "watchMin": 1
1233
1312
  }],
1234
1313
  "maxDate": [{
1235
- "watchMax": 0
1314
+ "watchMax": 1
1236
1315
  }],
1237
1316
  "start": [{
1238
1317
  "watchValue": 0
@@ -1243,9 +1322,12 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
1243
1322
  "format": [{
1244
1323
  "handleFormat": 0
1245
1324
  }],
1246
- "id": [{
1325
+ "dateId": [{
1247
1326
  "watchId": 0
1248
1327
  }],
1328
+ "pnId": [{
1329
+ "watchId": 1
1330
+ }],
1249
1331
  "dateViewYear": [{
1250
1332
  "watchView": 0
1251
1333
  }],
@@ -4,12 +4,12 @@
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 alert_info_circle = require('./alert_info_circle-BaN88M1m.js');
11
11
 
12
- const pnFieldsetCss = () => `${index.transformTag("pn-fieldset")}{display:inline-block}${index.transformTag("pn-fieldset")} .pn-fieldset{border:0;padding:0;margin:0;color:#2d2013;display:flex;flex-direction:column;font-size:1em}${index.transformTag("pn-fieldset")} .pn-fieldset-legend{float:left;font-weight:500;line-height:1.4;padding:0}${index.transformTag("pn-fieldset")} .pn-fieldset-helpertext{color:#5e554a;margin:0}${index.transformTag("pn-fieldset")} .pn-fieldset-items{padding:0.75em 0;display:flex;flex-direction:column;gap:0.75em}${index.transformTag("pn-fieldset")} .pn-fieldset-message-wrapper{display:flex;gap:0.75em;color:#2d2013;line-height:1.4;font-weight:400}${index.transformTag("pn-fieldset")} .pn-fieldset-message-wrapper[hidden]{display:none}${index.transformTag("pn-fieldset")} .pn-fieldset-message{margin:0}${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-legend,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-helpertext,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-message-wrapper{color:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-legend>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-helpertext>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-message-wrapper>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-legend,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-helpertext,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message-wrapper{color:#2d2013}${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-legend>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-helpertext>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message-wrapper>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#2d2013}`;
12
+ const pnFieldsetCss = () => `${index.transformTag("pn-fieldset")}{display:inline-block}${index.transformTag("pn-fieldset")} .pn-fieldset{border:0;padding:0;margin:0;color:#2d2013;display:flex;flex-direction:column;font-size:1em}${index.transformTag("pn-fieldset")} .pn-fieldset-legend{float:left;font-weight:500;line-height:1.4;padding:0}${index.transformTag("pn-fieldset")} .pn-fieldset-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-fieldset")} .pn-fieldset-message[hidden]{display:none}${index.transformTag("pn-fieldset")} .pn-fieldset-error{display:flex;flex-direction:row;flex-wrap:nowrap;gap:0.25em}${index.transformTag("pn-fieldset")} .pn-fieldset-error[hidden]{display:none}${index.transformTag("pn-fieldset")} .pn-fieldset-error>.pn-fieldset-message{color:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset-items{padding:0.75em 0;display:flex;flex-direction:column;gap:0.75em}${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-legend,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-message-wrapper{color:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-legend>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-message-wrapper>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-legend,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-helpertext,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message-wrapper{color:#2d2013}${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-legend>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-helpertext>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message-wrapper>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#2d2013}`;
13
13
 
14
14
  const PnFieldset = class {
15
15
  constructor(hostRef) {
@@ -26,57 +26,63 @@ const PnFieldset = class {
26
26
  legend;
27
27
  /** Text message underneath the legend for more instruction or hints on how to fill in controls correctly. */
28
28
  helpertext;
29
- /** Give the fieldset a custom HTML id. */
30
- fieldsetId = this.id;
29
+ /** Give the fieldset a HTML name. @category Native attributes */
30
+ name;
31
31
  /**
32
32
  * The id of the form you want the fieldset to be part of.
33
33
  * If you want the inputs inside to be associated with a specific form, you need to set on those elements directly.
34
+ * @category Native attributes
34
35
  */
35
36
  form;
36
- /** Give the fieldset a HTML name. */
37
- name;
38
- /** Disable all of the inputs inside of the fieldset. */
37
+ /** Disable all of the inputs inside of the fieldset. @category Native attributes */
39
38
  disabled = false;
40
- /** Set the fieldset as `invalid`, will add red error styles. */
39
+ /** Set the fieldset as `invalid`, will add red error styles. @category Features */
41
40
  invalid = false;
42
- /** Error message, applies warning styles and icon. */
41
+ /** Error message, applies warning styles and icon. @category Features */
43
42
  error;
43
+ /** Set a custom ID for the fieldset. @since v7.25.0 @category HTML attributes */
44
+ pnId = this.id;
45
+ /** Set a custom ID for the fieldset. @deprecated Use `pn-id` instead. @category HTML attributes */
46
+ fieldsetId = this.id;
44
47
  handleId() {
45
- this.idHelpertext = `${this.fieldsetId}-helpertext`;
48
+ this.idHelpertext = `${this.getId()}-helpertext`;
46
49
  }
47
- componentWillLoad() {
48
- this.handleId();
50
+ connectedCallback() {
51
+ this.mo = new MutationObserver(() => index.forceUpdate(this.hostElement));
52
+ this.mo.observe(this.hostElement, { childList: true, subtree: true });
49
53
  }
50
- componentDidLoad() {
54
+ disconnectedCallback() {
51
55
  if (this.mo)
52
56
  this.mo.disconnect();
53
- this.mo = new MutationObserver(() => index.forceUpdate(this.hostElement));
54
- this.mo.observe(this.hostElement.querySelector('.pn-fieldset'), { childList: true, subtree: true });
55
57
  }
56
- componentDidRender() {
57
- /**
58
- * Stencil has a known problem about rendering the `form` attribute.
59
- * Setting it via setAttribute solves it for now.
60
- * https://github.com/ionic-team/stencil/issues/2703
61
- **/
62
- if (this.form) {
63
- this.hostElement.querySelector('fieldset')?.setAttribute('form', this.form);
64
- }
58
+ getId() {
59
+ return this.pnId || this.fieldsetId || this.id;
60
+ }
61
+ hasHelpertext() {
62
+ const helpertextSlot = this.hostElement.querySelector('[slot="helpertext"]');
63
+ return !!this.helpertext || helpertextSlot?.textContent?.trim().length > 0;
65
64
  }
66
65
  hasError() {
67
- return this.invalid || !!this.error;
66
+ const errorSlot = this.hostElement.querySelector('[slot="error"]');
67
+ return !!this.error || errorSlot?.textContent?.trim().length > 0;
68
+ }
69
+ isInvalid() {
70
+ return this.invalid || this.hasError();
68
71
  }
69
- getSymbol() {
72
+ getIcon() {
70
73
  if (this.disabled)
71
74
  return alert_info_circle.alert_info_circle;
72
75
  return alert_exclamation_circle.alert_exclamation_circle;
73
76
  }
74
77
  render() {
75
- return (index.h(index.Host, { key: '4eac26b9a4c9095888cbe548f30eddcbed3efcdf' }, index.h("fieldset", { key: '341684c752c43382f37d0d95f9ea8c0d2d170ef1', id: this.fieldsetId, class: "pn-fieldset", disabled: this.disabled, "aria-describedby": this.helpertext && this.idHelpertext, "aria-invalid": this.hasError().toString() }, index.h("legend", { key: '3f98ab3a56288cebb07cce9c49b6e1bebd2096f2', class: "pn-fieldset-legend" }, this.legend), this.helpertext && (index.h("p", { key: '979b9b47ae0baa2f84bf19de877149773bfd63b9', id: this.idHelpertext, class: "pn-fieldset-helpertext" }, this.helpertext)), index.h("div", { key: 'a67905a01003d767e26061ff8fa3af86a0900c27', class: "pn-fieldset-items" }, index.h("slot", { key: 'a2a02e54157e39e43cf03839c8bb2a561533eb39' })), index.h("div", { key: '4c618709e6a3cbaa20761368acc70b6d2e964930', class: "pn-fieldset-message-wrapper", role: "alert", hidden: !this.error }, index.h("pn-icon", { key: 'db1b62bccada153943c62195242e66b62d9cc2c3', icon: this.getSymbol() }), index.h("p", { key: '9b94853b5064d9563e39c20491d7139eead83f56', class: "pn-fieldset-message" }, this.error)))));
78
+ return (index.h(index.Host, { key: '908a403f3fb8b4779393f4ca0a4f17f518ba53a7' }, index.h("fieldset", { key: '97b321f776944a0d27f1b1096a967b2c9d9c9fcd', id: this.getId(), name: this.name, form: this.form, class: "pn-fieldset", disabled: this.disabled, "aria-describedby": this.hasHelpertext() ? this.idHelpertext : undefined, "aria-invalid": this.isInvalid().toString() }, index.h("legend", { key: 'a230416f33f787624f90977054c6492f1516dba6', class: "pn-fieldset-legend" }, this.legend), index.h("p", { key: '6911c6e63588c36bc0e314d7b3c8b81df2282579', id: this.idHelpertext, class: "pn-fieldset-message", hidden: !this.hasHelpertext() }, index.h("span", { key: '3370e13a7cf93741a4aa76880533b11c320aea03' }, this.helpertext), index.h("slot", { key: '0365489d121f3fcfa1211e3c2dcf2881f849940d', name: "helpertext" })), index.h("div", { key: '23d806e61d39d509ad07f0f68c002a1962332bf4', class: "pn-fieldset-items" }, index.h("slot", { key: 'a2ead121001e5f751f779957fbbb44716e64274c' })), index.h("div", { key: '075c709c13a8363be1b1a0b661e3621419a69333', class: "pn-fieldset-error", role: "alert", hidden: !this.hasError() }, index.h("pn-icon", { key: '0c4e969436033de98814135853e51388862e0812', icon: this.getIcon(), color: "warning" }), index.h("p", { key: 'd94095bee0a7e4fdc3962db9666dd4ffba7dfa50', class: "pn-fieldset-message" }, index.h("span", { key: '0c3808a66242f11afdc1ea5053517e965eeb3a93' }, this.error), index.h("slot", { key: 'ad9604de305ce00ef164cc999562707e923bdd83', name: "error" }))))));
76
79
  }
77
80
  static get watchers() { return {
78
81
  "fieldsetId": [{
79
82
  "handleId": 0
83
+ }],
84
+ "pnId": [{
85
+ "handleId": 1
80
86
  }]
81
87
  }; }
82
88
  };