@postnord/pn-marketweb-components 4.3.5 → 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 (421) 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/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header-salesforce-loader.stories.js +479 -0
  10. package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header-salesforce-loader.stories.js.map +1 -0
  11. package/components/convert.js +26 -16
  12. package/components/convert.js.map +1 -1
  13. package/components/pn-teaser-card.js +1 -1
  14. package/components/pn-teaser-card.js.map +1 -1
  15. package/esm/{convert-ecca01b6.js → convert-a9a18794.js} +27 -17
  16. package/esm/convert-a9a18794.js.map +1 -0
  17. package/esm/pn-find-price.entry.js +1 -1
  18. package/esm/pn-find-service-and-price.entry.js +1 -1
  19. package/esm/pn-product-pricelist.entry.js +1 -1
  20. package/esm/pn-teaser-card.entry.js +1 -1
  21. package/esm/pn-teaser-card.entry.js.map +1 -1
  22. package/package.json +1 -1
  23. package/pn-market-web-components/p-00e6bb4b.js +2 -0
  24. package/pn-market-web-components/p-00e6bb4b.js.map +1 -0
  25. package/pn-market-web-components/{p-c4059cc1.entry.js → p-181e40ee.entry.js} +2 -2
  26. package/pn-market-web-components/{p-6d263c6e.entry.js → p-96d81eb2.entry.js} +2 -2
  27. package/pn-market-web-components/p-96d81eb2.entry.js.map +1 -0
  28. package/pn-market-web-components/{p-f8ccc718.entry.js → p-a0d7154f.entry.js} +2 -2
  29. package/pn-market-web-components/{p-413afe7c.entry.js → p-c18154a4.entry.js} +2 -2
  30. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  31. package/types/components/layout-components/pn-marketweb-header/pn-marketweb-header-salesforce-loader.stories.d.ts +11 -0
  32. package/umd/modules/@postnord/web-components/cem.json +12220 -0
  33. package/umd/modules/@postnord/web-components/cjs/{index-CfUQZtlH.js → index-DWu-2oJc.js} +144 -85
  34. package/umd/modules/@postnord/web-components/cjs/{index-CNdVg5VI.js → index-vOySuOUW.js} +1 -1
  35. package/umd/modules/@postnord/web-components/cjs/index.cjs.js +18 -16
  36. package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
  37. package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +2 -2
  38. package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +5 -4
  39. package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +6 -6
  40. package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
  41. package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +3 -3
  42. package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +4 -4
  43. package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +63 -21
  44. package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +38 -18
  45. package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +71 -37
  46. package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +185 -103
  47. package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +33 -27
  48. package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +73 -42
  49. package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
  50. package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
  51. package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +8 -10
  52. package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +3 -3
  53. package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +122 -89
  54. package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +24 -12
  55. package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +136 -52
  56. package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
  57. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +3 -3
  58. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +3 -3
  59. package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +3 -3
  60. package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +4 -4
  61. package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +2 -2
  62. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +3 -3
  63. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +3 -3
  64. package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +2 -2
  65. package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +61 -20
  66. package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +88 -43
  67. package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
  68. package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +42 -25
  69. package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +16 -11
  70. package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +21 -21
  71. package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +90 -35
  72. package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +15 -10
  73. package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +1 -1
  74. package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +5 -4
  75. package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
  76. package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +88 -34
  77. package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +3 -3
  78. package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +5 -5
  79. package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +56 -20
  80. package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +2 -2
  81. package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +71 -49
  82. package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +3 -3
  83. package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
  84. package/umd/modules/@postnord/web-components/collection/collection-manifest.json +4 -1
  85. package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.css +1 -10
  86. package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +5 -4
  87. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.css +13 -9
  88. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js +12 -14
  89. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.css +6 -2
  90. package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js +7 -1
  91. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.css +4 -1
  92. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js +71 -13
  93. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js +1 -1
  94. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js +1 -1
  95. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js +1 -1
  96. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js +1 -1
  97. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js +1 -1
  98. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js +1 -1
  99. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js +1 -1
  100. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.css +5 -5
  101. package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js +70 -45
  102. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +3 -1
  103. package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +213 -52
  104. package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +1 -1
  105. package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js +128 -68
  106. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +305 -154
  107. package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +562 -275
  108. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.css +21 -16
  109. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +114 -54
  110. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.css +37 -50
  111. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +159 -97
  112. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js +7 -0
  113. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +1 -1
  114. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +415 -264
  115. package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +13 -24
  116. package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +316 -131
  117. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +3 -1
  118. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +223 -63
  119. package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +3 -0
  120. package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +357 -191
  121. package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.css +6 -9
  122. package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +177 -90
  123. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.css +1 -1
  124. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +24 -24
  125. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +84 -37
  126. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +18 -14
  127. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +237 -90
  128. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +6 -5
  129. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +255 -115
  130. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +5 -3
  131. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +216 -68
  132. package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
  133. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.css +2 -2
  134. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
  135. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
  136. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
  137. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
  138. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
  139. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
  140. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +4 -3
  141. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.css +3 -3
  142. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +11 -6
  143. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
  144. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
  145. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
  146. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
  147. package/umd/modules/@postnord/web-components/collection/globals/helpers.js +16 -14
  148. package/umd/modules/@postnord/web-components/components/helpers.js +1 -1
  149. package/umd/modules/@postnord/web-components/components/pn-accordion.js +1 -1
  150. package/umd/modules/@postnord/web-components/components/pn-action-menu.js +1 -1
  151. package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
  152. package/umd/modules/@postnord/web-components/components/pn-checkbox.js +1 -1
  153. package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
  154. package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
  155. package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1
  156. package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -1
  157. package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -1
  158. package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
  159. package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
  160. package/umd/modules/@postnord/web-components/components/pn-icon2.js +1 -1
  161. package/umd/modules/@postnord/web-components/components/pn-illustration2.js +1 -1
  162. package/umd/modules/@postnord/web-components/components/pn-input2.js +1 -1
  163. package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -1
  164. package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
  165. package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
  166. package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
  167. package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
  168. package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
  169. package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
  170. package/umd/modules/@postnord/web-components/components/pn-progress-bar2.js +1 -1
  171. package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js +1 -1
  172. package/umd/modules/@postnord/web-components/components/pn-progress-indicator.js +1 -1
  173. package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js +1 -1
  174. package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
  175. package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
  176. package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
  177. package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
  178. package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
  179. package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
  180. package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -1
  181. package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
  182. package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
  183. package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
  184. package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
  185. package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
  186. package/umd/modules/@postnord/web-components/components/pn-toast.js +1 -1
  187. package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
  188. package/umd/modules/@postnord/web-components/components/pn-tooltip.js +1 -1
  189. package/umd/modules/@postnord/web-components/components/pn-wizard.js +1 -1
  190. package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
  191. package/umd/modules/@postnord/web-components/esm/{index-CosyroON.js → index-DyhO6xPY.js} +1 -1
  192. package/umd/modules/@postnord/web-components/esm/{index-CAEP792y.js → index-XKg-ydzH.js} +144 -85
  193. package/umd/modules/@postnord/web-components/esm/index.js +19 -17
  194. package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
  195. package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +2 -2
  196. package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +5 -4
  197. package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +6 -6
  198. package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
  199. package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +3 -3
  200. package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +4 -4
  201. package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +63 -21
  202. package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +38 -18
  203. package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +71 -37
  204. package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +185 -103
  205. package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +33 -27
  206. package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +73 -42
  207. package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
  208. package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
  209. package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +8 -10
  210. package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +3 -3
  211. package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +122 -89
  212. package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +24 -12
  213. package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +137 -53
  214. package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
  215. package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +3 -3
  216. package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +3 -3
  217. package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +3 -3
  218. package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +4 -4
  219. package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +2 -2
  220. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +3 -3
  221. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +3 -3
  222. package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +2 -2
  223. package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +61 -20
  224. package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +88 -43
  225. package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
  226. package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +42 -25
  227. package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +16 -11
  228. package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +21 -21
  229. package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +90 -35
  230. package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +15 -10
  231. package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +1 -1
  232. package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +5 -4
  233. package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
  234. package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +88 -34
  235. package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +3 -3
  236. package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +5 -5
  237. package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +56 -20
  238. package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +2 -2
  239. package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +71 -49
  240. package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +3 -3
  241. package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
  242. package/umd/modules/@postnord/web-components/hydrate/index.js +1715 -940
  243. package/umd/modules/@postnord/web-components/hydrate/index.mjs +1715 -940
  244. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/package.json +1 -1
  245. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node +0 -0
  246. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/package.json +1 -1
  247. package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node +0 -0
  248. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +3 -2
  249. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +3 -2
  250. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
  251. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
  252. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +3312 -561
  253. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +1 -1
  254. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
  255. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +2 -2
  256. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +1 -1
  257. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
  258. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +2 -2
  259. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
  260. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
  261. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +246 -179
  262. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
  263. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
  264. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +1 -1
  265. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +245 -180
  266. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
  267. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +59 -22
  268. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
  269. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +1 -0
  270. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +1 -1
  271. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +49 -0
  272. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +51 -1
  273. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +26 -0
  274. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +23 -2
  275. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +238 -169
  276. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
  277. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +59 -22
  278. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +12 -3
  279. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +59 -22
  280. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
  281. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +10 -10
  282. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1 -1
  283. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
  284. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +1 -1
  285. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/460.node-fetch.js +3 -3
  286. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +2 -2
  287. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -1
  288. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -1
  289. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +32 -32
  290. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +4 -4
  291. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
  292. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -1
  293. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
  294. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +33 -1
  295. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
  296. package/umd/modules/@postnord/web-components/package.json +16 -16
  297. package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -1
  298. package/umd/modules/@postnord/web-components/postnord-web-components/{p-ea50ecd2.entry.js → p-020ee3f4.entry.js} +1 -1
  299. package/umd/modules/@postnord/web-components/postnord-web-components/p-060b6ad2.entry.js +5 -0
  300. package/umd/modules/@postnord/web-components/postnord-web-components/p-0bf70d44.entry.js +5 -0
  301. package/umd/modules/@postnord/web-components/postnord-web-components/p-1ec52623.entry.js +5 -0
  302. package/umd/modules/@postnord/web-components/postnord-web-components/p-27c71f60.entry.js +5 -0
  303. package/umd/modules/@postnord/web-components/postnord-web-components/p-292a7591.entry.js +5 -0
  304. package/umd/modules/@postnord/web-components/postnord-web-components/{p-3d2cac86.entry.js → p-3709c995.entry.js} +1 -1
  305. package/umd/modules/@postnord/web-components/postnord-web-components/p-3db02038.entry.js +5 -0
  306. package/umd/modules/@postnord/web-components/postnord-web-components/{p-2f4ad4a4.entry.js → p-4b9fb0fc.entry.js} +1 -1
  307. package/umd/modules/@postnord/web-components/postnord-web-components/p-506a801d.entry.js +5 -0
  308. package/umd/modules/@postnord/web-components/postnord-web-components/p-518651ad.entry.js +5 -0
  309. package/umd/modules/@postnord/web-components/postnord-web-components/p-54917d9f.entry.js +5 -0
  310. package/umd/modules/@postnord/web-components/postnord-web-components/p-56ade97b.entry.js +5 -0
  311. package/umd/modules/@postnord/web-components/postnord-web-components/p-64207923.entry.js +5 -0
  312. package/umd/modules/@postnord/web-components/postnord-web-components/p-665af57e.entry.js +5 -0
  313. package/umd/modules/@postnord/web-components/postnord-web-components/p-6d85c967.entry.js +5 -0
  314. package/umd/modules/@postnord/web-components/postnord-web-components/p-6e407015.entry.js +5 -0
  315. package/umd/modules/@postnord/web-components/postnord-web-components/{p-01ac1c67.entry.js → p-720b8b90.entry.js} +1 -1
  316. package/umd/modules/@postnord/web-components/postnord-web-components/p-7aea3de5.entry.js +5 -0
  317. package/umd/modules/@postnord/web-components/postnord-web-components/p-7b6ae520.entry.js +5 -0
  318. package/umd/modules/@postnord/web-components/postnord-web-components/p-83d02093.entry.js +5 -0
  319. package/umd/modules/@postnord/web-components/postnord-web-components/p-88344f8d.entry.js +5 -0
  320. package/umd/modules/@postnord/web-components/postnord-web-components/{p-3c96cb61.entry.js → p-895acf7f.entry.js} +1 -1
  321. package/umd/modules/@postnord/web-components/postnord-web-components/p-8cedf2e0.entry.js +5 -0
  322. package/umd/modules/@postnord/web-components/postnord-web-components/p-91c6a8cf.entry.js +5 -0
  323. package/umd/modules/@postnord/web-components/postnord-web-components/p-98a37be9.entry.js +5 -0
  324. package/umd/modules/@postnord/web-components/postnord-web-components/p-9a6c90e4.entry.js +5 -0
  325. package/umd/modules/@postnord/web-components/postnord-web-components/p-9d2ee77a.entry.js +5 -0
  326. package/umd/modules/@postnord/web-components/postnord-web-components/p-9d56fb64.entry.js +5 -0
  327. package/umd/modules/@postnord/web-components/postnord-web-components/{p-BlM_xfdt.js → p-BWAVaTWQ.js} +1 -1
  328. package/umd/modules/@postnord/web-components/postnord-web-components/p-XKg-ydzH.js +6 -0
  329. package/umd/modules/@postnord/web-components/postnord-web-components/p-a1f92f19.entry.js +5 -0
  330. package/umd/modules/@postnord/web-components/postnord-web-components/p-a31d93db.entry.js +5 -0
  331. package/umd/modules/@postnord/web-components/postnord-web-components/p-aa15469e.entry.js +5 -0
  332. package/umd/modules/@postnord/web-components/postnord-web-components/{p-db2b7e5d.entry.js → p-b45e58df.entry.js} +1 -1
  333. package/umd/modules/@postnord/web-components/postnord-web-components/p-b72f9866.entry.js +5 -0
  334. package/umd/modules/@postnord/web-components/postnord-web-components/{p-b0710b87.entry.js → p-b7a2e5b0.entry.js} +1 -1
  335. package/umd/modules/@postnord/web-components/postnord-web-components/p-c09179d6.entry.js +5 -0
  336. package/umd/modules/@postnord/web-components/postnord-web-components/{p-38e44ed0.entry.js → p-ce2c2395.entry.js} +1 -1
  337. package/umd/modules/@postnord/web-components/postnord-web-components/p-d228b929.entry.js +5 -0
  338. package/umd/modules/@postnord/web-components/postnord-web-components/p-d71054df.entry.js +5 -0
  339. package/umd/modules/@postnord/web-components/postnord-web-components/p-d81b4ede.entry.js +5 -0
  340. package/umd/modules/@postnord/web-components/postnord-web-components/p-e11b4af5.entry.js +5 -0
  341. package/umd/modules/@postnord/web-components/postnord-web-components/{p-c4c4c75b.entry.js → p-e5574624.entry.js} +1 -1
  342. package/umd/modules/@postnord/web-components/postnord-web-components/p-e6ad75f9.entry.js +5 -0
  343. package/umd/modules/@postnord/web-components/postnord-web-components/p-e6cd4c7f.entry.js +5 -0
  344. package/umd/modules/@postnord/web-components/postnord-web-components/p-ede550f0.entry.js +5 -0
  345. package/umd/modules/@postnord/web-components/postnord-web-components/p-ef00ef4d.entry.js +5 -0
  346. package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
  347. package/umd/modules/@postnord/web-components/types/components/buttons/pn-action-menu/pn-action-menu.d.ts +111 -0
  348. package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.d.ts +2 -2
  349. package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-icon/pn-icon.d.ts +5 -7
  350. package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-illustration/pn-illustration.d.ts +8 -2
  351. package/umd/modules/@postnord/web-components/types/components/feedback/pn-modal/pn-modal.d.ts +17 -6
  352. package/umd/modules/@postnord/web-components/types/components/feedback/pn-toast/pn-toast.d.ts +100 -0
  353. package/umd/modules/@postnord/web-components/types/components/feedback/pn-wizard/pn-wizard.d.ts +6 -1
  354. package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +124 -0
  355. package/umd/modules/@postnord/web-components/types/components/input/pn-choice-chip/pn-choice-chip.d.ts +31 -15
  356. package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +51 -27
  357. package/umd/modules/@postnord/web-components/types/components/input/pn-date-picker/pn-date-picker.d.ts +338 -0
  358. package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.d.ts +24 -15
  359. package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/pn-file-upload.d.ts +36 -27
  360. package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/translation.d.ts +7 -0
  361. package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +89 -66
  362. package/umd/modules/@postnord/web-components/types/components/input/pn-multiselect/pn-multiselect.d.ts +265 -0
  363. package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.d.ts +124 -0
  364. package/umd/modules/@postnord/web-components/types/components/input/pn-range/pn-range.d.ts +73 -42
  365. package/umd/modules/@postnord/web-components/types/components/input/pn-search-field/pn-search-field.d.ts +32 -21
  366. package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/pn-segmented-control.d.ts +19 -18
  367. package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/segment/pn-segment.d.ts +12 -9
  368. package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +51 -31
  369. package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +58 -27
  370. package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.d.ts +36 -14
  371. package/umd/modules/@postnord/web-components/types/components.d.ts +1851 -511
  372. package/umd/modules/@postnord/web-components/types/globals/mixins/index.d.ts +21 -0
  373. package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +23 -2
  374. package/umd/modules/@postnord/web-components/vscode-data.json +218 -38
  375. package/umd/pn-marketweb-salesforce-header.js +95 -0
  376. package/cjs/convert-9361e443.js.map +0 -1
  377. package/esm/convert-ecca01b6.js.map +0 -1
  378. package/pn-market-web-components/p-63ff7fa2.js +0 -2
  379. package/pn-market-web-components/p-63ff7fa2.js.map +0 -1
  380. package/pn-market-web-components/p-6d263c6e.entry.js.map +0 -1
  381. package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +0 -5
  382. package/umd/modules/@postnord/web-components/postnord-web-components/p-0e94a4dd.entry.js +0 -5
  383. package/umd/modules/@postnord/web-components/postnord-web-components/p-0ed2ee53.entry.js +0 -5
  384. package/umd/modules/@postnord/web-components/postnord-web-components/p-109ba1fc.entry.js +0 -5
  385. package/umd/modules/@postnord/web-components/postnord-web-components/p-153311c8.entry.js +0 -5
  386. package/umd/modules/@postnord/web-components/postnord-web-components/p-1a3c49ba.entry.js +0 -5
  387. package/umd/modules/@postnord/web-components/postnord-web-components/p-2610f8ab.entry.js +0 -5
  388. package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +0 -5
  389. package/umd/modules/@postnord/web-components/postnord-web-components/p-2a364778.entry.js +0 -5
  390. package/umd/modules/@postnord/web-components/postnord-web-components/p-2a682ff9.entry.js +0 -5
  391. package/umd/modules/@postnord/web-components/postnord-web-components/p-2cce8a9f.entry.js +0 -5
  392. package/umd/modules/@postnord/web-components/postnord-web-components/p-306ec758.entry.js +0 -5
  393. package/umd/modules/@postnord/web-components/postnord-web-components/p-3d459401.entry.js +0 -5
  394. package/umd/modules/@postnord/web-components/postnord-web-components/p-3deb5a9e.entry.js +0 -5
  395. package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +0 -5
  396. package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +0 -5
  397. package/umd/modules/@postnord/web-components/postnord-web-components/p-50116c0d.entry.js +0 -5
  398. package/umd/modules/@postnord/web-components/postnord-web-components/p-502b8430.entry.js +0 -5
  399. package/umd/modules/@postnord/web-components/postnord-web-components/p-5b7c1333.entry.js +0 -5
  400. package/umd/modules/@postnord/web-components/postnord-web-components/p-67f55491.entry.js +0 -5
  401. package/umd/modules/@postnord/web-components/postnord-web-components/p-838c17b9.entry.js +0 -5
  402. package/umd/modules/@postnord/web-components/postnord-web-components/p-849d48c6.entry.js +0 -5
  403. package/umd/modules/@postnord/web-components/postnord-web-components/p-89aaa3c8.entry.js +0 -5
  404. package/umd/modules/@postnord/web-components/postnord-web-components/p-8b2b6f5d.entry.js +0 -5
  405. package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +0 -5
  406. package/umd/modules/@postnord/web-components/postnord-web-components/p-97ffc4b3.entry.js +0 -5
  407. package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +0 -6
  408. package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +0 -5
  409. package/umd/modules/@postnord/web-components/postnord-web-components/p-b8c4423b.entry.js +0 -5
  410. package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +0 -5
  411. package/umd/modules/@postnord/web-components/postnord-web-components/p-c0ae367c.entry.js +0 -5
  412. package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +0 -5
  413. package/umd/modules/@postnord/web-components/postnord-web-components/p-d1e27524.entry.js +0 -5
  414. package/umd/modules/@postnord/web-components/postnord-web-components/p-d214e930.entry.js +0 -5
  415. package/umd/modules/@postnord/web-components/postnord-web-components/p-d7091312.entry.js +0 -5
  416. package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +0 -5
  417. package/umd/modules/@postnord/web-components/postnord-web-components/p-e83de0b1.entry.js +0 -5
  418. package/umd/modules/@postnord/web-components/postnord-web-components/p-edc28eee.entry.js +0 -5
  419. /package/pn-market-web-components/{p-c4059cc1.entry.js.map → p-181e40ee.entry.js.map} +0 -0
  420. /package/pn-market-web-components/{p-f8ccc718.entry.js.map → p-a0d7154f.entry.js.map} +0 -0
  421. /package/pn-market-web-components/{p-413afe7c.entry.js.map → p-c18154a4.entry.js.map} +0 -0
@@ -9,6 +9,8 @@ import { translations } from "./translations";
9
9
  /**
10
10
  * The `pn-counter` is an input with a button on each side that can be used to increase and decrease the input value.
11
11
  *
12
+ * @slot helpertext - Use this slot to add custom HTML inside of the helpertext element. Recommended if you need a link. {@since v7.25.0}
13
+ *
12
14
  * @nativeInput Use the `input` event to listen to content being modified by the user. It is emitted everytime a user writes or removes content in the input.
13
15
  * @nativeChange The `change` event is emitted when the input loses focus, the user clicks `Enter` or makes a selection (such as auto complete or suggestions).
14
16
  */
@@ -24,42 +26,60 @@ export class PnCounter {
24
26
  /** Prevent double events when reaching min/max values. */
25
27
  lastDispatchedValue;
26
28
  interactType;
27
- /** Label for the counter */
29
+ /** Label for the counter. This is required for the counter to be 100% accessible out of the box. */
28
30
  label;
29
31
  /** Set a helpertext for the counter. */
30
32
  helpertext;
31
- /** Set a predefined value */
33
+ /** Set the language manually for the built in translations. */
34
+ language = undefined;
35
+ /** Set a predefined value. @category Native attributes */
32
36
  value = 0;
33
- /** Set a unique HTML ID for the counter */
34
- counterid = this.id;
35
- /** Use the compact label variant. @since v7.21.0 */
36
- compact = false;
37
- /** Set the language manually for the built in translations. */
38
- language = null;
39
- /** Text for the decrease button. Default is "Decrease". @category Translation */
40
- labelDecrease;
41
- /** Text for the increase button. Default is "Increase". @category Translation */
42
- labelIncrease;
43
- /** Set a message that shows below input when user wants to set a value that is below `min`. Default is "Minimum value is x" @category Translation */
44
- minMessage;
45
- /** Set a message that shows below input when user wants to set a value that is above `max`. Default is "Maximum value is x" @category Translation */
46
- maxMessage;
47
- /** HTML input name. @category HTML input */
37
+ /** HTML input name. @category Native attributes */
48
38
  name;
49
- /** Minimum value. @category HTML input */
39
+ /** Minimum value. @category Native attributes */
50
40
  min;
51
- /** Maximum value. @category HTML input */
41
+ /** Maximum value. @category Native attributes */
52
42
  max;
53
- /** Increase/decrease the value in steps, default is 1. @category HTML input */
43
+ /** Increase/decrease the value in steps, default is 1. @category Native attributes */
54
44
  step = 1;
55
- /** Suggest values for the counter input. @category HTML input */
45
+ /** Suggest values for the counter input. @category Native attributes */
56
46
  list;
57
- /** Set the counter as required. @category State */
47
+ /** Set the counter as required. @category Native attributes */
58
48
  required = false;
59
- /** Set the counter as readonly. @category State */
49
+ /** Set the counter as readonly. @category Native attributes */
60
50
  readonly = false;
61
- /** Set the counter as disabled. @category State */
51
+ /** Set the counter as disabled. @category Native attributes */
62
52
  disabled = false;
53
+ /** Use the compact label variant. @since v7.21.0 @category Features */
54
+ compact = false;
55
+ /** Text for the decrease button. Default is "Decrease". @category Features */
56
+ labelDecrease;
57
+ /** Text for the increase button. Default is "Increase". @category Features */
58
+ labelIncrease;
59
+ /** Hide the tooltips for the increase/decrease button. @since v7.25.0 @category Features */
60
+ hideTooltips = false;
61
+ /** Set a message that shows below input when user wants to set a value that is below `min`. Default is "Minimum value is x" @category Features */
62
+ minMessage;
63
+ /** Set a message that shows below input when user wants to set a value that is above `max`. Default is "Maximum value is x" @category Features */
64
+ maxMessage;
65
+ /** Set a unique HTML ID for the counter. @since v7.25.0 @category HTML attributes */
66
+ pnId;
67
+ /**
68
+ * Provide the label via an aria attribute.
69
+ * We strongly recommend you use the `label` prop instead.
70
+ * @since v7.25.0
71
+ * @category HTML attributes
72
+ */
73
+ pnAriaLabel;
74
+ /**
75
+ * Provide the label from another element via its ID.
76
+ * We strongly recommend you use the `label` prop instead.
77
+ * @since v7.25.0
78
+ * @category HTML attributes
79
+ */
80
+ pnAriaLabelledby;
81
+ /** Set a unique HTML ID for the counter. @deprecated Use `pn-id` instead. @category HTML attributes */
82
+ counterid;
63
83
  /**
64
84
  * Instead of listening to multiple input, change and/or click events, we bundled them into one.
65
85
  * - `value` is the current counter value.
@@ -89,15 +109,16 @@ export class PnCounter {
89
109
  this.lastDispatchedValue = this.value;
90
110
  }
91
111
  handleId() {
92
- this.idLabel = `${this.counterid}-label`;
93
- this.idText = `${this.counterid}-text`;
94
- this.idAmount = `${this.counterid}-count`;
112
+ this.idLabel = `${this.getId()}-label`;
113
+ this.idText = `${this.getId()}-text`;
114
+ this.idAmount = `${this.getId()}-count`;
95
115
  }
96
116
  async componentWillLoad() {
97
- this.handleId();
98
- if (this.language)
99
- return;
100
- await awaitTopbar(this.hostElement);
117
+ if (this.language === undefined)
118
+ await awaitTopbar(this.hostElement);
119
+ }
120
+ getId() {
121
+ return this.pnId || this.counterid || this.id;
101
122
  }
102
123
  setVal(event) {
103
124
  const { valueAsNumber } = event.target;
@@ -120,6 +141,12 @@ export class PnCounter {
120
141
  hasMax() {
121
142
  return typeof this.max === 'number';
122
143
  }
144
+ getAriaLabel() {
145
+ return !this.label && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
146
+ }
147
+ getAriaLabelledby() {
148
+ return !this.label && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
149
+ }
123
150
  decreaseAmount() {
124
151
  if (this.hasMin() && this.value <= this.min)
125
152
  this.showMinMaxMessage = true;
@@ -163,9 +190,13 @@ export class PnCounter {
163
190
  return this.toggleMinMaxMessage();
164
191
  return showValue ? this.value.toString() : this.helpertext;
165
192
  }
193
+ hideHelpertext() {
194
+ const slotHelpertext = this.hostElement.querySelector('[slot="helpertext"]');
195
+ return !(this.getTextMessage() || !!slotHelpertext?.textContent);
196
+ }
166
197
  describedbyIds() {
167
198
  const list = [];
168
- if (this.helpertext)
199
+ if (!this.hideHelpertext())
169
200
  list.push(this.idText);
170
201
  if (this.displaySrValue)
171
202
  list.push(this.idAmount);
@@ -180,16 +211,18 @@ export class PnCounter {
180
211
  return this.disabled || this.readonly;
181
212
  }
182
213
  renderLabel() {
183
- return (h("label", { htmlFor: this.counterid, class: "pn-counter-label", id: this.idLabel, "data-compact": this.compact }, h("span", null, this.label)));
214
+ if (!this.label)
215
+ return null;
216
+ return (h("label", { htmlFor: this.getId(), class: "pn-counter-label", id: this.idLabel, "data-compact": this.compact }, h("span", null, this.label)));
184
217
  }
185
218
  renderButton(increase = false) {
186
219
  const label = increase
187
220
  ? this.labelIncrease || this.translate('INCREASE')
188
221
  : this.labelDecrease || this.translate('DECREASE');
189
- return (h("pn-button", { "data-increase": increase ? true : null, "data-decrease": increase ? null : true, appearance: "light", variant: "outlined", "no-tab": this.noButtons(), icon: increase ? plus : minus, iconOnly: true, tooltip: label, onPnClick: () => (increase ? this.increaseAmount() : this.decreaseAmount()) }));
222
+ return (h("pn-button", { "data-increase": increase ? true : null, "data-decrease": increase ? null : true, appearance: "light", variant: "outlined", "no-tab": this.noButtons(), icon: increase ? plus : minus, iconOnly: true, tooltip: this.hideTooltips ? null : label, arialabel: this.hideTooltips ? label : null, onPnClick: () => (increase ? this.increaseAmount() : this.decreaseAmount()) }));
190
223
  }
191
224
  render() {
192
- return (h(Host, { key: '8f8a1d6f9cf41e43a17146796bdbadfabb5421da' }, h("div", { key: '1de06de8544eeb0efcdd940da16fd7cb39620897', class: "pn-counter", role: "group", "aria-labelledby": this.idLabel, "aria-describedby": this.describedbyIds() }, !this.compact && this.renderLabel(), h("div", { key: '83280bb5e207a2a226e7174f5819ef0f375f06c6', class: "pn-counter-items", "data-hidebuttons": this.noButtons() }, this.renderButton(), h("div", { key: '6f3cc4e8987d526be974bd561f2e3413e83cc35f', class: "pn-counter-input" }, h("input", { key: 'f2cb0054546017a768e68503aaf7fd93b55c5885', id: this.counterid, class: "pn-counter-element", type: "number", min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.compact ? ' ' : null, required: this.required, readonly: this.readonly, disabled: this.disabled, "aria-describedby": this.describedbyIds(), "data-compact": this.compact, onInput: e => this.setVal(e), onKeyDown: (e) => this.keyBoardInput(e) }), this.compact && this.renderLabel()), this.renderButton(true)), !!this.getTextMessage() && (h("p", { key: 'cb64255f574b4d9fc7ba0098d9f7353c5c639956', id: this.idText, class: "pn-counter-helpertext" }, h("span", { key: '76a5d077b53f2a60c1d39f42b34e8312ae250d86' }, this.getTextMessage()))), h("p", { key: '37d61e40910bb4cd0cc072772c3dd5414fe31574', id: this.idAmount, class: "pn-counter-sr-only", "aria-live": "assertive" }, this.displaySrValue ? this.getTextMessage(true) : ''))));
225
+ return (h(Host, { key: 'f1ff6cf51a77b28c5375f80c686106f82026eda8' }, h("div", { key: 'a6080106e0bf5ca0246e5a47a114c5ba967be4ef', class: "pn-counter", role: "group", "aria-labelledby": this.idLabel, "aria-describedby": this.describedbyIds() }, !this.compact && this.renderLabel(), h("div", { key: 'ef3c419277ca2f2a2f8fe8cefad5633c893b4736', class: "pn-counter-items", "data-hidebuttons": this.noButtons() }, this.renderButton(), h("div", { key: 'c130e8c0d812eaad1cf794e9417ab62d3c12e1a7', class: "pn-counter-input" }, h("input", { key: '908746fc89d2d70fb6f26f0f13bbe99961d66222', id: this.getId(), class: "pn-counter-element", type: "number", min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.compact ? ' ' : null, required: this.required, readonly: this.readonly, disabled: this.disabled, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.describedbyIds(), "data-compact": this.compact, onInput: e => this.setVal(e), onKeyDown: (e) => this.keyBoardInput(e) }), this.compact && this.renderLabel()), this.renderButton(true)), h("p", { key: 'a25cd6e9abdb9fe8077e345cef828e187a11d260', id: this.idText, class: "pn-counter-helpertext", hidden: this.hideHelpertext() }, h("span", { key: '533d9836452f3b21a176eb594c225ad44c21956e' }, this.getTextMessage()), h("slot", { key: '35f10d13c8a1c65e6fc7b1a75b864e1cfd268837', name: "helpertext" })), h("p", { key: '1009ba0ea75131d6c19e3fb8960c39fc9d565d16', id: this.idAmount, class: "pn-counter-sr-only", "aria-live": "assertive" }, this.displaySrValue ? this.getTextMessage(true) : ''))));
193
226
  }
194
227
  static get is() { return "pn-counter"; }
195
228
  static get originalStyleUrls() {
@@ -212,11 +245,11 @@ export class PnCounter {
212
245
  "resolved": "string",
213
246
  "references": {}
214
247
  },
215
- "required": true,
216
- "optional": false,
248
+ "required": false,
249
+ "optional": true,
217
250
  "docs": {
218
251
  "tags": [],
219
- "text": "Label for the counter"
252
+ "text": "Label for the counter. This is required for the counter to be 100% accessible out of the box."
220
253
  },
221
254
  "getter": false,
222
255
  "setter": false,
@@ -242,6 +275,33 @@ export class PnCounter {
242
275
  "reflect": false,
243
276
  "attribute": "helpertext"
244
277
  },
278
+ "language": {
279
+ "type": "string",
280
+ "mutable": false,
281
+ "complexType": {
282
+ "original": "PnLanguages",
283
+ "resolved": "\"\" | \"da\" | \"en\" | \"fi\" | \"no\" | \"sv\"",
284
+ "references": {
285
+ "PnLanguages": {
286
+ "location": "import",
287
+ "path": "@/globals/types",
288
+ "id": "src/globals/types.ts::PnLanguages",
289
+ "referenceLocation": "PnLanguages"
290
+ }
291
+ }
292
+ },
293
+ "required": false,
294
+ "optional": true,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": "Set the language manually for the built in translations."
298
+ },
299
+ "getter": false,
300
+ "setter": false,
301
+ "reflect": false,
302
+ "attribute": "language",
303
+ "defaultValue": "undefined"
304
+ },
245
305
  "value": {
246
306
  "type": "number",
247
307
  "mutable": true,
@@ -253,8 +313,11 @@ export class PnCounter {
253
313
  "required": false,
254
314
  "optional": false,
255
315
  "docs": {
256
- "tags": [],
257
- "text": "Set a predefined value"
316
+ "tags": [{
317
+ "name": "category",
318
+ "text": "Native attributes"
319
+ }],
320
+ "text": "Set a predefined value."
258
321
  },
259
322
  "getter": false,
260
323
  "setter": false,
@@ -262,7 +325,7 @@ export class PnCounter {
262
325
  "attribute": "value",
263
326
  "defaultValue": "0"
264
327
  },
265
- "counterid": {
328
+ "name": {
266
329
  "type": "string",
267
330
  "mutable": false,
268
331
  "complexType": {
@@ -271,90 +334,87 @@ export class PnCounter {
271
334
  "references": {}
272
335
  },
273
336
  "required": false,
274
- "optional": false,
337
+ "optional": true,
275
338
  "docs": {
276
- "tags": [],
277
- "text": "Set a unique HTML ID for the counter"
339
+ "tags": [{
340
+ "name": "category",
341
+ "text": "Native attributes"
342
+ }],
343
+ "text": "HTML input name."
278
344
  },
279
345
  "getter": false,
280
346
  "setter": false,
281
347
  "reflect": false,
282
- "attribute": "counterid",
283
- "defaultValue": "this.id"
348
+ "attribute": "name"
284
349
  },
285
- "compact": {
286
- "type": "boolean",
350
+ "min": {
351
+ "type": "number",
287
352
  "mutable": false,
288
353
  "complexType": {
289
- "original": "boolean",
290
- "resolved": "boolean",
354
+ "original": "number",
355
+ "resolved": "number",
291
356
  "references": {}
292
357
  },
293
358
  "required": false,
294
359
  "optional": true,
295
360
  "docs": {
296
361
  "tags": [{
297
- "name": "since",
298
- "text": "v7.21.0"
362
+ "name": "category",
363
+ "text": "Native attributes"
299
364
  }],
300
- "text": "Use the compact label variant."
365
+ "text": "Minimum value."
301
366
  },
302
367
  "getter": false,
303
368
  "setter": false,
304
369
  "reflect": false,
305
- "attribute": "compact",
306
- "defaultValue": "false"
370
+ "attribute": "min"
307
371
  },
308
- "language": {
309
- "type": "string",
372
+ "max": {
373
+ "type": "number",
310
374
  "mutable": false,
311
375
  "complexType": {
312
- "original": "PnLanguages",
313
- "resolved": "\"\" | \"da\" | \"en\" | \"fi\" | \"no\" | \"sv\"",
314
- "references": {
315
- "PnLanguages": {
316
- "location": "import",
317
- "path": "@/globals/types",
318
- "id": "src/globals/types.ts::PnLanguages",
319
- "referenceLocation": "PnLanguages"
320
- }
321
- }
376
+ "original": "number",
377
+ "resolved": "number",
378
+ "references": {}
322
379
  },
323
380
  "required": false,
324
381
  "optional": true,
325
382
  "docs": {
326
- "tags": [],
327
- "text": "Set the language manually for the built in translations."
383
+ "tags": [{
384
+ "name": "category",
385
+ "text": "Native attributes"
386
+ }],
387
+ "text": "Maximum value."
328
388
  },
329
389
  "getter": false,
330
390
  "setter": false,
331
391
  "reflect": false,
332
- "attribute": "language",
333
- "defaultValue": "null"
392
+ "attribute": "max"
334
393
  },
335
- "labelDecrease": {
336
- "type": "string",
394
+ "step": {
395
+ "type": "number",
337
396
  "mutable": false,
338
397
  "complexType": {
339
- "original": "string",
340
- "resolved": "string",
398
+ "original": "number",
399
+ "resolved": "number",
341
400
  "references": {}
342
401
  },
343
402
  "required": false,
344
- "optional": true,
403
+ "optional": false,
345
404
  "docs": {
346
405
  "tags": [{
347
406
  "name": "category",
348
- "text": "Translation"
407
+ "text": "Native attributes"
349
408
  }],
350
- "text": "Text for the decrease button. Default is \"Decrease\"."
409
+ "text": "Increase/decrease the value in steps, default is 1."
351
410
  },
352
411
  "getter": false,
353
412
  "setter": false,
354
413
  "reflect": false,
355
- "attribute": "label-decrease"
414
+ "attribute": "step",
415
+ "defaultValue": "1"
356
416
  },
357
- "labelIncrease": {
417
+ "list": {
358
418
  "type": "string",
359
419
  "mutable": false,
360
420
  "complexType": {
@@ -367,38 +427,111 @@ export class PnCounter {
367
427
  "docs": {
368
428
  "tags": [{
369
429
  "name": "category",
370
- "text": "Translation"
430
+ "text": "Native attributes"
371
431
  }],
372
- "text": "Text for the increase button. Default is \"Increase\"."
432
+ "text": "Suggest values for the counter input."
373
433
  },
374
434
  "getter": false,
375
435
  "setter": false,
376
436
  "reflect": false,
377
- "attribute": "label-increase"
437
+ "attribute": "list"
378
438
  },
379
- "minMessage": {
380
- "type": "string",
439
+ "required": {
440
+ "type": "boolean",
381
441
  "mutable": false,
382
442
  "complexType": {
383
- "original": "string",
384
- "resolved": "string",
443
+ "original": "boolean",
444
+ "resolved": "boolean",
445
+ "references": {}
446
+ },
447
+ "required": false,
448
+ "optional": false,
449
+ "docs": {
450
+ "tags": [{
451
+ "name": "category",
452
+ "text": "Native attributes"
453
+ }],
454
+ "text": "Set the counter as required."
455
+ },
456
+ "getter": false,
457
+ "setter": false,
458
+ "reflect": false,
459
+ "attribute": "required",
460
+ "defaultValue": "false"
461
+ },
462
+ "readonly": {
463
+ "type": "boolean",
464
+ "mutable": false,
465
+ "complexType": {
466
+ "original": "boolean",
467
+ "resolved": "boolean",
468
+ "references": {}
469
+ },
470
+ "required": false,
471
+ "optional": false,
472
+ "docs": {
473
+ "tags": [{
474
+ "name": "category",
475
+ "text": "Native attributes"
476
+ }],
477
+ "text": "Set the counter as readonly."
478
+ },
479
+ "getter": false,
480
+ "setter": false,
481
+ "reflect": false,
482
+ "attribute": "readonly",
483
+ "defaultValue": "false"
484
+ },
485
+ "disabled": {
486
+ "type": "boolean",
487
+ "mutable": false,
488
+ "complexType": {
489
+ "original": "boolean",
490
+ "resolved": "boolean",
491
+ "references": {}
492
+ },
493
+ "required": false,
494
+ "optional": false,
495
+ "docs": {
496
+ "tags": [{
497
+ "name": "category",
498
+ "text": "Native attributes"
499
+ }],
500
+ "text": "Set the counter as disabled."
501
+ },
502
+ "getter": false,
503
+ "setter": false,
504
+ "reflect": false,
505
+ "attribute": "disabled",
506
+ "defaultValue": "false"
507
+ },
508
+ "compact": {
509
+ "type": "boolean",
510
+ "mutable": false,
511
+ "complexType": {
512
+ "original": "boolean",
513
+ "resolved": "boolean",
385
514
  "references": {}
386
515
  },
387
516
  "required": false,
388
517
  "optional": true,
389
518
  "docs": {
390
519
  "tags": [{
520
+ "name": "since",
521
+ "text": "v7.21.0"
522
+ }, {
391
523
  "name": "category",
392
- "text": "Translation"
524
+ "text": "Features"
393
525
  }],
394
- "text": "Set a message that shows below input when user wants to set a value that is below `min`. Default is \"Minimum value is x\""
526
+ "text": "Use the compact label variant."
395
527
  },
396
528
  "getter": false,
397
529
  "setter": false,
398
530
  "reflect": false,
399
- "attribute": "min-message"
531
+ "attribute": "compact",
532
+ "defaultValue": "false"
400
533
  },
401
- "maxMessage": {
534
+ "labelDecrease": {
402
535
  "type": "string",
403
536
  "mutable": false,
404
537
  "complexType": {
@@ -411,16 +544,16 @@ export class PnCounter {
411
544
  "docs": {
412
545
  "tags": [{
413
546
  "name": "category",
414
- "text": "Translation"
547
+ "text": "Features"
415
548
  }],
416
- "text": "Set a message that shows below input when user wants to set a value that is above `max`. Default is \"Maximum value is x\""
549
+ "text": "Text for the decrease button. Default is \"Decrease\"."
417
550
  },
418
551
  "getter": false,
419
552
  "setter": false,
420
553
  "reflect": false,
421
- "attribute": "max-message"
554
+ "attribute": "label-decrease"
422
555
  },
423
- "name": {
556
+ "labelIncrease": {
424
557
  "type": "string",
425
558
  "mutable": false,
426
559
  "complexType": {
@@ -433,83 +566,86 @@ export class PnCounter {
433
566
  "docs": {
434
567
  "tags": [{
435
568
  "name": "category",
436
- "text": "HTML input"
569
+ "text": "Features"
437
570
  }],
438
- "text": "HTML input name."
571
+ "text": "Text for the increase button. Default is \"Increase\"."
439
572
  },
440
573
  "getter": false,
441
574
  "setter": false,
442
575
  "reflect": false,
443
- "attribute": "name"
576
+ "attribute": "label-increase"
444
577
  },
445
- "min": {
446
- "type": "number",
578
+ "hideTooltips": {
579
+ "type": "boolean",
447
580
  "mutable": false,
448
581
  "complexType": {
449
- "original": "number",
450
- "resolved": "number",
582
+ "original": "boolean",
583
+ "resolved": "boolean",
451
584
  "references": {}
452
585
  },
453
586
  "required": false,
454
- "optional": false,
587
+ "optional": true,
455
588
  "docs": {
456
589
  "tags": [{
590
+ "name": "since",
591
+ "text": "v7.25.0"
592
+ }, {
457
593
  "name": "category",
458
- "text": "HTML input"
594
+ "text": "Features"
459
595
  }],
460
- "text": "Minimum value."
596
+ "text": "Hide the tooltips for the increase/decrease button."
461
597
  },
462
598
  "getter": false,
463
599
  "setter": false,
464
600
  "reflect": false,
465
- "attribute": "min"
601
+ "attribute": "hide-tooltips",
602
+ "defaultValue": "false"
466
603
  },
467
- "max": {
468
- "type": "number",
604
+ "minMessage": {
605
+ "type": "string",
469
606
  "mutable": false,
470
607
  "complexType": {
471
- "original": "number",
472
- "resolved": "number",
608
+ "original": "string",
609
+ "resolved": "string",
473
610
  "references": {}
474
611
  },
475
612
  "required": false,
476
- "optional": false,
613
+ "optional": true,
477
614
  "docs": {
478
615
  "tags": [{
479
616
  "name": "category",
480
- "text": "HTML input"
617
+ "text": "Features"
481
618
  }],
482
- "text": "Maximum value."
619
+ "text": "Set a message that shows below input when user wants to set a value that is below `min`. Default is \"Minimum value is x\""
483
620
  },
484
621
  "getter": false,
485
622
  "setter": false,
486
623
  "reflect": false,
487
- "attribute": "max"
624
+ "attribute": "min-message"
488
625
  },
489
- "step": {
490
- "type": "number",
626
+ "maxMessage": {
627
+ "type": "string",
491
628
  "mutable": false,
492
629
  "complexType": {
493
- "original": "number",
494
- "resolved": "number",
630
+ "original": "string",
631
+ "resolved": "string",
495
632
  "references": {}
496
633
  },
497
634
  "required": false,
498
- "optional": false,
635
+ "optional": true,
499
636
  "docs": {
500
637
  "tags": [{
501
638
  "name": "category",
502
- "text": "HTML input"
639
+ "text": "Features"
503
640
  }],
504
- "text": "Increase/decrease the value in steps, default is 1."
641
+ "text": "Set a message that shows below input when user wants to set a value that is above `max`. Default is \"Maximum value is x\""
505
642
  },
506
643
  "getter": false,
507
644
  "setter": false,
508
645
  "reflect": false,
509
- "attribute": "step",
510
- "defaultValue": "1"
646
+ "attribute": "max-message"
511
647
  },
512
- "list": {
648
+ "pnId": {
513
649
  "type": "string",
514
650
  "mutable": false,
515
651
  "complexType": {
@@ -521,84 +657,93 @@ export class PnCounter {
521
657
  "optional": true,
522
658
  "docs": {
523
659
  "tags": [{
660
+ "name": "since",
661
+ "text": "v7.25.0"
662
+ }, {
524
663
  "name": "category",
525
- "text": "HTML input"
664
+ "text": "HTML attributes"
526
665
  }],
527
- "text": "Suggest values for the counter input."
666
+ "text": "Set a unique HTML ID for the counter."
528
667
  },
529
668
  "getter": false,
530
669
  "setter": false,
531
670
  "reflect": false,
532
- "attribute": "list"
671
+ "attribute": "pn-id"
533
672
  },
534
- "required": {
535
- "type": "boolean",
673
+ "pnAriaLabel": {
674
+ "type": "string",
536
675
  "mutable": false,
537
676
  "complexType": {
538
- "original": "boolean",
539
- "resolved": "boolean",
677
+ "original": "string",
678
+ "resolved": "string",
540
679
  "references": {}
541
680
  },
542
681
  "required": false,
543
- "optional": false,
682
+ "optional": true,
544
683
  "docs": {
545
684
  "tags": [{
685
+ "name": "since",
686
+ "text": "v7.25.0"
687
+ }, {
546
688
  "name": "category",
547
- "text": "State"
689
+ "text": "HTML attributes"
548
690
  }],
549
- "text": "Set the counter as required."
691
+ "text": "Provide the label via an aria attribute.\nWe strongly recommend you use the `label` prop instead."
550
692
  },
551
693
  "getter": false,
552
694
  "setter": false,
553
695
  "reflect": false,
554
- "attribute": "required",
555
- "defaultValue": "false"
696
+ "attribute": "pn-aria-label"
556
697
  },
557
- "readonly": {
558
- "type": "boolean",
698
+ "pnAriaLabelledby": {
699
+ "type": "string",
559
700
  "mutable": false,
560
701
  "complexType": {
561
- "original": "boolean",
562
- "resolved": "boolean",
702
+ "original": "string",
703
+ "resolved": "string",
563
704
  "references": {}
564
705
  },
565
706
  "required": false,
566
- "optional": false,
707
+ "optional": true,
567
708
  "docs": {
568
709
  "tags": [{
710
+ "name": "since",
711
+ "text": "v7.25.0"
712
+ }, {
569
713
  "name": "category",
570
- "text": "State"
714
+ "text": "HTML attributes"
571
715
  }],
572
- "text": "Set the counter as readonly."
716
+ "text": "Provide the label from another element via its ID.\nWe strongly recommend you use the `label` prop instead."
573
717
  },
574
718
  "getter": false,
575
719
  "setter": false,
576
720
  "reflect": false,
577
- "attribute": "readonly",
578
- "defaultValue": "false"
721
+ "attribute": "pn-aria-labelledby"
579
722
  },
580
- "disabled": {
581
- "type": "boolean",
723
+ "counterid": {
724
+ "type": "string",
582
725
  "mutable": false,
583
726
  "complexType": {
584
- "original": "boolean",
585
- "resolved": "boolean",
727
+ "original": "string",
728
+ "resolved": "string",
586
729
  "references": {}
587
730
  },
588
731
  "required": false,
589
- "optional": false,
732
+ "optional": true,
590
733
  "docs": {
591
734
  "tags": [{
735
+ "name": "deprecated",
736
+ "text": "Use `pn-id` instead."
737
+ }, {
592
738
  "name": "category",
593
- "text": "State"
739
+ "text": "HTML attributes"
594
740
  }],
595
- "text": "Set the counter as disabled."
741
+ "text": "Set a unique HTML ID for the counter."
596
742
  },
597
743
  "getter": false,
598
744
  "setter": false,
599
745
  "reflect": false,
600
- "attribute": "disabled",
601
- "defaultValue": "false"
746
+ "attribute": "counterid"
602
747
  }
603
748
  };
604
749
  }
@@ -637,6 +782,12 @@ export class PnCounter {
637
782
  }, {
638
783
  "propName": "counterid",
639
784
  "methodName": "handleId"
785
+ }, {
786
+ "propName": "pnId",
787
+ "methodName": "handleId",
788
+ "handlerOptions": {
789
+ "immediate": true
790
+ }
640
791
  }];
641
792
  }
642
793
  }