@swisspost/design-system-components 10.0.0-next.72 → 10.0.0-next.76

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 (365) hide show
  1. package/dist/cjs/{create-validator-decorator-Bnx17kwi.js → create-validator-decorator-4dRrOF30.js} +1 -1
  2. package/dist/cjs/{index-ngUOBQot.js → index-BqngpwGa.js} +56 -15
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{one-of-BHyX4vYq.js → one-of-D1veqtsm.js} +1 -1
  5. package/dist/cjs/{package-Bi-tiNRc.js → package-B0PdQ0Dm.js} +1 -1
  6. package/dist/cjs/{pattern-BgBx5zGQ.js → pattern-B7VKOu5m.js} +1 -1
  7. package/dist/cjs/post-accordion_2.cjs.entry.js +10 -12
  8. package/dist/cjs/post-autocomplete.cjs.entry.js +6 -6
  9. package/dist/cjs/post-avatar.cjs.entry.js +7 -7
  10. package/dist/cjs/post-back-to-top.cjs.entry.js +6 -6
  11. package/dist/cjs/post-banner.cjs.entry.js +6 -6
  12. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +8 -8
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +9 -11
  14. package/dist/cjs/post-closebutton_14.cjs.entry.js +86 -62
  15. package/dist/cjs/post-collapsible_2.cjs.entry.js +6 -6
  16. package/dist/cjs/post-components.cjs.js +2 -2
  17. package/dist/cjs/post-date-picker.cjs.entry.js +427 -257
  18. package/dist/cjs/post-footer.cjs.entry.js +6 -6
  19. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  20. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  21. package/dist/cjs/post-listbox.cjs.entry.js +3 -3
  22. package/dist/cjs/post-number-input.cjs.entry.js +6 -5
  23. package/dist/cjs/post-pagination.cjs.entry.js +15 -10
  24. package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -5
  25. package/dist/cjs/post-popover.cjs.entry.js +11 -12
  26. package/dist/cjs/post-progressbar.cjs.entry.js +4 -4
  27. package/dist/cjs/post-rating.cjs.entry.js +6 -6
  28. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +109 -0
  29. package/dist/cjs/post-side-navigation.cjs.entry.js +140 -0
  30. package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
  31. package/dist/cjs/post-stepper.cjs.entry.js +9 -7
  32. package/dist/cjs/post-tab-item.cjs.entry.js +15 -14
  33. package/dist/cjs/post-tab-panel.cjs.entry.js +6 -6
  34. package/dist/cjs/post-tabs.cjs.entry.js +196 -74
  35. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +7 -9
  36. package/dist/cjs/post-tooltip.cjs.entry.js +9 -10
  37. package/dist/cjs/{required-lRDOdbd6.js → required-Bkz8MOYa.js} +1 -1
  38. package/dist/cjs/{type-shT641Eo.js → type-D8eD1JMd.js} +1 -1
  39. package/dist/cjs/{url-DRUMqVBq.js → url-C7MnIIZ_.js} +1 -1
  40. package/dist/collection/collection-manifest.json +3 -2
  41. package/dist/collection/components/post-accordion/post-accordion.js +1 -1
  42. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -36
  43. package/dist/collection/components/post-autocomplete/post-autocomplete.js +1 -1
  44. package/dist/collection/components/post-avatar/post-avatar.js +1 -1
  45. package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
  46. package/dist/collection/components/post-banner/post-banner.css +2 -2
  47. package/dist/collection/components/post-banner/post-banner.js +1 -1
  48. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
  49. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  50. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -4
  51. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  52. package/dist/collection/components/post-closebutton/post-closebutton.js +22 -11
  53. package/dist/collection/components/post-closebutton/types.js +1 -1
  54. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  55. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  56. package/dist/collection/components/post-date-picker/accessibility-utils.js +59 -0
  57. package/dist/collection/components/post-date-picker/date-utils.js +102 -0
  58. package/dist/collection/components/post-date-picker/native-mask-element.js +36 -0
  59. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  60. package/dist/collection/components/post-date-picker/post-date-picker.js +224 -301
  61. package/dist/collection/components/post-footer/post-footer.js +1 -1
  62. package/dist/collection/components/post-header/post-header.css +1 -1
  63. package/dist/collection/components/post-header/post-header.js +13 -11
  64. package/dist/collection/components/post-icon/post-icon.js +1 -1
  65. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  66. package/dist/collection/components/post-language-menu/post-language-menu.js +7 -5
  67. package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
  68. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  69. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  70. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  71. package/dist/collection/components/post-logo/post-logo.js +1 -1
  72. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  73. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  74. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  75. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  76. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  77. package/dist/collection/components/post-menu/post-menu.css +1 -1
  78. package/dist/collection/components/post-menu/post-menu.js +9 -12
  79. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  80. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  81. package/dist/collection/components/post-number-input/post-number-input.css +1 -1
  82. package/dist/collection/components/post-number-input/post-number-input.js +3 -2
  83. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  84. package/dist/collection/components/post-pagination/post-pagination.js +11 -5
  85. package/dist/collection/components/post-popover/post-popover.js +12 -22
  86. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  87. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  88. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +17 -12
  89. package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
  90. package/dist/collection/components/post-rating/post-rating.js +1 -1
  91. package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -0
  92. package/dist/collection/components/post-side-navigation/post-side-navigation.js +267 -0
  93. package/dist/collection/components/post-side-navigation/side-navigation-styles.js +1 -0
  94. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -0
  95. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +154 -0
  96. package/dist/collection/components/post-stepper/post-stepper.js +3 -1
  97. package/dist/collection/components/post-stepper-item/post-stepper-item.css +1 -1
  98. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  99. package/dist/collection/components/post-tab-item/post-tab-item.js +36 -19
  100. package/dist/collection/components/post-tab-panel/post-tab-panel.js +3 -2
  101. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  102. package/dist/collection/components/post-tabs/post-tabs.js +255 -84
  103. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  104. package/dist/collection/components/post-tooltip/post-tooltip.js +12 -22
  105. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +2 -4
  106. package/dist/collection/types/element-api.js +3 -0
  107. package/dist/component-names.json +2 -1
  108. package/dist/components/index.d.ts +4 -2
  109. package/dist/components/index.js +1 -1
  110. package/dist/components/package.js +1 -1
  111. package/dist/components/post-accordion-item2.js +1 -1
  112. package/dist/components/post-accordion2.js +1 -1
  113. package/dist/components/post-autocomplete.js +1 -1
  114. package/dist/components/post-avatar.js +1 -1
  115. package/dist/components/post-back-to-top.js +1 -1
  116. package/dist/components/post-banner.js +1 -1
  117. package/dist/components/post-breadcrumb-item.js +1 -1
  118. package/dist/components/post-breadcrumbs.js +1 -1
  119. package/dist/components/post-closebutton2.js +1 -1
  120. package/dist/components/post-collapsible-trigger2.js +1 -1
  121. package/dist/components/post-collapsible2.js +1 -1
  122. package/dist/components/post-date-picker.js +1 -1
  123. package/dist/components/post-footer.js +1 -1
  124. package/dist/components/post-header.js +1 -1
  125. package/dist/components/post-icon2.js +1 -1
  126. package/dist/components/post-language-menu-item.js +1 -1
  127. package/dist/components/post-language-menu.js +1 -1
  128. package/dist/components/post-linkarea.js +1 -1
  129. package/dist/components/post-listbox-option.js +1 -1
  130. package/dist/components/post-listbox.js +1 -1
  131. package/dist/components/post-logo.js +1 -1
  132. package/dist/components/post-mainnavigation.js +1 -1
  133. package/dist/components/post-megadropdown-trigger.js +1 -1
  134. package/dist/components/post-megadropdown.js +1 -1
  135. package/dist/components/post-menu-item2.js +1 -1
  136. package/dist/components/post-menu-trigger2.js +1 -1
  137. package/dist/components/post-menu2.js +1 -1
  138. package/dist/components/post-number-input.js +1 -1
  139. package/dist/components/post-pagination.js +1 -1
  140. package/dist/components/post-popover-trigger.js +1 -1
  141. package/dist/components/post-popover.js +1 -1
  142. package/dist/components/post-popovercontainer2.js +1 -1
  143. package/dist/components/post-progressbar.js +1 -1
  144. package/dist/components/post-rating.js +1 -1
  145. package/dist/components/post-side-navigation-trigger.d.ts +11 -0
  146. package/dist/components/post-side-navigation-trigger.js +1 -0
  147. package/dist/components/{post-login-widget.d.ts → post-side-navigation.d.ts} +4 -4
  148. package/dist/components/post-side-navigation.js +1 -0
  149. package/dist/components/post-stepper-item.js +1 -1
  150. package/dist/components/post-stepper.js +1 -1
  151. package/dist/components/post-tab-item.js +1 -1
  152. package/dist/components/post-tab-panel.js +1 -1
  153. package/dist/components/post-tabs.js +1 -1
  154. package/dist/components/post-togglebutton2.js +1 -1
  155. package/dist/components/post-tooltip-trigger.js +1 -1
  156. package/dist/components/post-tooltip.js +1 -1
  157. package/dist/components/react/index.js +1 -1
  158. package/dist/components/react/{p-Bu2JeHDf.js → p-06VKKzxv.js} +1 -1
  159. package/dist/components/react/p-BkWqx_6U.js +1 -0
  160. package/dist/components/react/p-Chtl9X7o.js +1 -0
  161. package/dist/components/react/p-CrLBbthi.js +1 -0
  162. package/dist/components/react/{p-D1zw8FxT.js → p-D0kuUny7.js} +1 -1
  163. package/dist/components/react/{p-PM7l--ff.js → p-DKF__bJF.js} +1 -1
  164. package/dist/components/react/p-DkKOmXaG.js +1 -0
  165. package/dist/components/react/p-UdMqVxhd.js +1 -0
  166. package/dist/components/react/p-d02KpeUM.js +1 -0
  167. package/dist/components/react/{p-BZSAV0-K.js → p-gUhGka9h.js} +1 -1
  168. package/dist/components/react/{p-Cd1TsNm7.js → p-uQE3DVb8.js} +1 -1
  169. package/dist/components/react/{p-BxoRVIIr.js → p-wLn52OZT.js} +1 -1
  170. package/dist/components/react/post-accordion-item.js +1 -1
  171. package/dist/components/react/post-accordion.js +1 -1
  172. package/dist/components/react/post-autocomplete.js +1 -1
  173. package/dist/components/react/post-avatar.js +1 -1
  174. package/dist/components/react/post-back-to-top.js +1 -1
  175. package/dist/components/react/post-banner.js +1 -1
  176. package/dist/components/react/post-breadcrumb-item.js +1 -1
  177. package/dist/components/react/post-breadcrumbs.js +1 -1
  178. package/dist/components/react/post-closebutton.js +1 -1
  179. package/dist/components/react/post-collapsible-trigger.js +1 -1
  180. package/dist/components/react/post-collapsible.js +1 -1
  181. package/dist/components/react/post-date-picker.js +1 -1
  182. package/dist/components/react/post-footer.js +1 -1
  183. package/dist/components/react/post-header.js +1 -1
  184. package/dist/components/react/post-icon.js +1 -1
  185. package/dist/components/react/post-language-menu-item.js +1 -1
  186. package/dist/components/react/post-language-menu.js +1 -1
  187. package/dist/components/react/post-linkarea.js +1 -1
  188. package/dist/components/react/post-listbox-option.js +1 -1
  189. package/dist/components/react/post-listbox.js +1 -1
  190. package/dist/components/react/post-logo.js +1 -1
  191. package/dist/components/react/post-mainnavigation.js +1 -1
  192. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  193. package/dist/components/react/post-megadropdown.js +1 -1
  194. package/dist/components/react/post-menu-item.js +1 -1
  195. package/dist/components/react/post-menu-trigger.js +1 -1
  196. package/dist/components/react/post-menu.js +1 -1
  197. package/dist/components/react/post-number-input.js +1 -1
  198. package/dist/components/react/post-pagination.js +1 -1
  199. package/dist/components/react/post-popover-trigger.js +1 -1
  200. package/dist/components/react/post-popover.js +1 -1
  201. package/dist/components/react/post-popovercontainer.js +1 -1
  202. package/dist/components/react/post-progressbar.js +1 -1
  203. package/dist/components/react/post-rating.js +1 -1
  204. package/dist/components/react/post-side-navigation-trigger.d.ts +11 -0
  205. package/dist/components/react/post-side-navigation-trigger.js +1 -0
  206. package/dist/components/react/{post-login-widget.d.ts → post-side-navigation.d.ts} +4 -4
  207. package/dist/components/react/post-side-navigation.js +1 -0
  208. package/dist/components/react/post-stepper-item.js +1 -1
  209. package/dist/components/react/post-stepper.js +1 -1
  210. package/dist/components/react/post-tab-item.js +1 -1
  211. package/dist/components/react/post-tab-panel.js +1 -1
  212. package/dist/components/react/post-tabs.js +1 -1
  213. package/dist/components/react/post-togglebutton.js +1 -1
  214. package/dist/components/react/post-tooltip-trigger.js +1 -1
  215. package/dist/components/react/post-tooltip.js +1 -1
  216. package/dist/docs.json +571 -529
  217. package/dist/esm/{create-validator-decorator-D8qwF5Qe.js → create-validator-decorator-CYYTw0AS.js} +1 -1
  218. package/dist/esm/{index-BbDawWJ5.js → index-DE1aWdqx.js} +56 -15
  219. package/dist/esm/loader.js +3 -3
  220. package/dist/esm/{one-of-GPr3FflU.js → one-of-Ug1_Xoes.js} +1 -1
  221. package/dist/esm/package-d02KpeUM.js +3 -0
  222. package/dist/esm/{pattern-BWPRYpYv.js → pattern-WLk4tOqI.js} +1 -1
  223. package/dist/esm/post-accordion_2.entry.js +10 -12
  224. package/dist/esm/post-autocomplete.entry.js +6 -6
  225. package/dist/esm/post-avatar.entry.js +7 -7
  226. package/dist/esm/post-back-to-top.entry.js +6 -6
  227. package/dist/esm/post-banner.entry.js +6 -6
  228. package/dist/esm/post-breadcrumb-item.entry.js +8 -8
  229. package/dist/esm/post-breadcrumbs.entry.js +9 -11
  230. package/dist/esm/post-closebutton_14.entry.js +86 -62
  231. package/dist/esm/post-collapsible_2.entry.js +6 -6
  232. package/dist/esm/post-components.js +3 -3
  233. package/dist/esm/post-date-picker.entry.js +427 -257
  234. package/dist/esm/post-footer.entry.js +6 -6
  235. package/dist/esm/post-linkarea.entry.js +3 -3
  236. package/dist/esm/post-listbox-option.entry.js +4 -4
  237. package/dist/esm/post-listbox.entry.js +3 -3
  238. package/dist/esm/post-number-input.entry.js +6 -5
  239. package/dist/esm/post-pagination.entry.js +15 -10
  240. package/dist/esm/post-popover-trigger.entry.js +5 -5
  241. package/dist/esm/post-popover.entry.js +11 -12
  242. package/dist/esm/post-progressbar.entry.js +4 -4
  243. package/dist/esm/post-rating.entry.js +6 -6
  244. package/dist/esm/post-side-navigation-trigger.entry.js +107 -0
  245. package/dist/esm/post-side-navigation.entry.js +138 -0
  246. package/dist/esm/post-stepper-item.entry.js +4 -4
  247. package/dist/esm/post-stepper.entry.js +9 -7
  248. package/dist/esm/post-tab-item.entry.js +15 -14
  249. package/dist/esm/post-tab-panel.entry.js +6 -6
  250. package/dist/esm/post-tabs.entry.js +196 -74
  251. package/dist/esm/post-tooltip-trigger.entry.js +7 -9
  252. package/dist/esm/post-tooltip.entry.js +9 -10
  253. package/dist/esm/{required-uK-rZZjy.js → required-DeOhRbtk.js} +1 -1
  254. package/dist/esm/{type-obmwEgkM.js → type-S-4aPMGU.js} +1 -1
  255. package/dist/esm/{url-B28ByZCe.js → url-C8KSrmWc.js} +1 -1
  256. package/dist/post-components/{p-12047216.entry.js → p-0efb77f9.entry.js} +1 -1
  257. package/dist/post-components/p-1223e51d.entry.js +1 -0
  258. package/dist/post-components/{p-3b05e01d.entry.js → p-1878e9f8.entry.js} +1 -1
  259. package/dist/post-components/p-1eea2715.entry.js +1 -0
  260. package/dist/post-components/p-2233c37e.entry.js +1 -0
  261. package/dist/post-components/p-266e68a3.entry.js +1 -0
  262. package/dist/post-components/{p-00f55af5.entry.js → p-2a0b9ed0.entry.js} +1 -1
  263. package/dist/post-components/p-3c71d687.entry.js +1 -0
  264. package/dist/post-components/{p-IUnDBhPg.js → p-4-_BhJWV.js} +1 -1
  265. package/dist/post-components/{p-7f929bb9.entry.js → p-477c8c35.entry.js} +1 -1
  266. package/dist/post-components/{p-2c6b4e6a.entry.js → p-4b366aa0.entry.js} +1 -1
  267. package/dist/post-components/{p-53fd5230.entry.js → p-4c7750cd.entry.js} +1 -1
  268. package/dist/post-components/p-52e118e0.entry.js +1 -0
  269. package/dist/post-components/p-53f34806.entry.js +1 -0
  270. package/dist/post-components/p-621a81a7.entry.js +1 -0
  271. package/dist/post-components/p-85594193.entry.js +1 -0
  272. package/dist/post-components/p-89ea447b.entry.js +1 -0
  273. package/dist/post-components/p-8d8ac7ae.entry.js +1 -0
  274. package/dist/post-components/p-900dc8e1.entry.js +1 -0
  275. package/dist/post-components/p-93da9105.entry.js +1 -0
  276. package/dist/post-components/{p-d061773b.entry.js → p-95ad4d06.entry.js} +1 -1
  277. package/dist/post-components/p-9915ffee.entry.js +1 -0
  278. package/dist/post-components/{p-Ck2qPht6.js → p-B6uZASBE.js} +1 -1
  279. package/dist/post-components/{p-DSNGJB58.js → p-BDW1XHCO.js} +1 -1
  280. package/dist/post-components/{p-CVsNfXZd.js → p-CiOyV6Mo.js} +1 -1
  281. package/dist/post-components/p-DE1aWdqx.js +2 -0
  282. package/dist/post-components/{p-BRNqUiXj.js → p-DMiERazc.js} +1 -1
  283. package/dist/post-components/{p-D4F0BqBW.js → p-NPUljV0P.js} +1 -1
  284. package/dist/post-components/p-a08abdb2.entry.js +1 -0
  285. package/dist/post-components/p-a971ec25.entry.js +1 -0
  286. package/dist/post-components/{p-e2370e94.entry.js → p-ad69ed8c.entry.js} +1 -1
  287. package/dist/post-components/p-c11a8e06.entry.js +1 -0
  288. package/dist/post-components/p-d02KpeUM.js +1 -0
  289. package/dist/post-components/p-d9ce8f05.entry.js +1 -0
  290. package/dist/post-components/p-dcceab4e.entry.js +1 -0
  291. package/dist/post-components/{p-f1ca1d3f.entry.js → p-e219e22a.entry.js} +1 -1
  292. package/dist/post-components/{p-758fc84f.entry.js → p-f6c45fed.entry.js} +1 -1
  293. package/dist/post-components/post-components.css +2 -2
  294. package/dist/post-components/post-components.esm.js +1 -1
  295. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -8
  296. package/dist/types/components/post-closebutton/post-closebutton.d.ts +5 -2
  297. package/dist/types/components/post-closebutton/types.d.ts +1 -1
  298. package/dist/types/components/post-date-picker/accessibility-utils.d.ts +19 -0
  299. package/dist/types/components/post-date-picker/date-utils.d.ts +48 -0
  300. package/dist/types/components/post-date-picker/native-mask-element.d.ts +12 -0
  301. package/dist/types/components/post-date-picker/post-date-picker.d.ts +23 -62
  302. package/dist/types/components/post-header/post-header.d.ts +3 -2
  303. package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -1
  304. package/dist/types/components/post-menu/post-menu.d.ts +4 -4
  305. package/dist/types/components/post-popover/post-popover.d.ts +4 -5
  306. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +2 -2
  307. package/dist/types/components/post-side-navigation/post-side-navigation.d.ts +62 -0
  308. package/dist/types/components/post-side-navigation/side-navigation-styles.d.ts +2 -0
  309. package/dist/types/components/post-side-navigation-trigger/post-side-navigation-trigger.d.ts +33 -0
  310. package/dist/types/components/post-tab-item/post-tab-item.d.ts +8 -4
  311. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +1 -1
  312. package/dist/types/components/post-tabs/post-tabs.d.ts +37 -17
  313. package/dist/types/components/post-tooltip/post-tooltip.d.ts +4 -5
  314. package/dist/types/components.d.ts +181 -164
  315. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +1 -0
  316. package/dist/types/types/element-api.d.ts +3 -0
  317. package/dist/vrt/helpers/header-test-config.js +3 -2
  318. package/dist/vrt/helpers/header-variants.config.js +29 -2
  319. package/hydrate/index.js +1174 -682
  320. package/hydrate/index.mjs +1174 -682
  321. package/package.json +11 -12
  322. package/dist/cjs/long-press-event-Dx21Ojod.js +0 -276
  323. package/dist/cjs/post-login-widget.cjs.entry.js +0 -92
  324. package/dist/collection/components/post-accordion-item/heading-levels.js +0 -1
  325. package/dist/collection/components/post-login-widget/post-login-widget.css +0 -1
  326. package/dist/collection/components/post-login-widget/post-login-widget.js +0 -218
  327. package/dist/collection/components/post-tab-item/post-tab-item.css +0 -1
  328. package/dist/components/long-press-event.js +0 -8
  329. package/dist/components/post-avatar2.js +0 -1
  330. package/dist/components/post-login-widget.js +0 -1
  331. package/dist/components/react/p-85IGlhtB.js +0 -1
  332. package/dist/components/react/p-B9ZFuYey.js +0 -1
  333. package/dist/components/react/p-BNgqqRsB.js +0 -8
  334. package/dist/components/react/p-Bg9dtyzK.js +0 -1
  335. package/dist/components/react/p-Bn66acGG.js +0 -1
  336. package/dist/components/react/p-CkTAQJGd.js +0 -1
  337. package/dist/components/react/p-ClG-N42b.js +0 -1
  338. package/dist/components/react/p-DwuW52g5.js +0 -1
  339. package/dist/components/react/post-login-widget.js +0 -1
  340. package/dist/esm/long-press-event-BNgqqRsB.js +0 -274
  341. package/dist/esm/package-ClG-N42b.js +0 -3
  342. package/dist/esm/post-login-widget.entry.js +0 -90
  343. package/dist/post-components/p-0288484f.entry.js +0 -1
  344. package/dist/post-components/p-07cdd022.entry.js +0 -1
  345. package/dist/post-components/p-17df4e91.entry.js +0 -1
  346. package/dist/post-components/p-17e046fa.entry.js +0 -1
  347. package/dist/post-components/p-29bd31a0.entry.js +0 -1
  348. package/dist/post-components/p-5b7e6369.entry.js +0 -1
  349. package/dist/post-components/p-5f4ca179.entry.js +0 -1
  350. package/dist/post-components/p-62b6154a.entry.js +0 -1
  351. package/dist/post-components/p-686a6e22.entry.js +0 -1
  352. package/dist/post-components/p-9865f72c.entry.js +0 -1
  353. package/dist/post-components/p-99803d57.entry.js +0 -1
  354. package/dist/post-components/p-BNgqqRsB.js +0 -8
  355. package/dist/post-components/p-BbDawWJ5.js +0 -2
  356. package/dist/post-components/p-ClG-N42b.js +0 -1
  357. package/dist/post-components/p-a0e0a760.entry.js +0 -1
  358. package/dist/post-components/p-a850652d.entry.js +0 -1
  359. package/dist/post-components/p-aac1a8ea.entry.js +0 -1
  360. package/dist/post-components/p-b3f0f9a2.entry.js +0 -1
  361. package/dist/post-components/p-c37dba4b.entry.js +0 -1
  362. package/dist/post-components/p-f2e5f44e.entry.js +0 -1
  363. package/dist/post-components/p-ff98ada4.entry.js +0 -1
  364. package/dist/types/components/post-accordion-item/heading-levels.d.ts +0 -2
  365. package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -45
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import { b as breakpoint } from './breakpoints-BQ3HlJPr.js';
3
- import { v as version } from './package-ClG-N42b.js';
4
- import { R as Required } from './required-uK-rZZjy.js';
5
- import { T as Type } from './type-obmwEgkM.js';
6
- import './create-validator-decorator-D8qwF5Qe.js';
3
+ import { v as version } from './package-d02KpeUM.js';
4
+ import { R as Required } from './required-DeOhRbtk.js';
5
+ import { T as Type } from './type-S-4aPMGU.js';
6
+ import './create-validator-decorator-CYYTw0AS.js';
7
7
 
8
8
  const postFooterCss = () => `:host{display:block}footer{border-block-start:1px solid #373632;--post-footer-container-padding-block:32px;--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:0;--post-footer-grid-margin-block-end:24px;--post-footer-grid-padding-block-end:0;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-app-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-businesssectors-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-meta-margin-block-end:16px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-container-padding-block:40px;--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-grid-row-gap:32px;--post-footer-grid-column-gap:16px;--post-footer-grid-margin-block-end:32px;--post-footer-grid-padding-block-end:32px;--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-meta-margin-block-end:8px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px}}@media screen and (min-width: 1024px){footer{--post-footer-container-padding-block:56px;--post-footer-grid-template:auto / repeat(4, auto);--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:24px;--post-footer-grid-margin-block-end:40px;--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-businesssectors-margin-block-end:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{box-sizing:content-box;margin:0 auto;padding:var(--post-footer-container-padding-block) var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa}.prefooter .footer-container{padding-block:0}.prefooter ::slotted([slot=prefooter]){padding-block:var(--post-footer-prefooter-padding-block)}.footer-main{background-color:#fc0}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);row-gap:var(--post-footer-grid-row-gap);column-gap:var(--post-footer-grid-column-gap);margin-block-end:var(--post-footer-grid-margin-block-end);padding-block-end:var(--post-footer-grid-padding-block-end)}.footer-grid:has(>.d-none+.d-none+.d-none+.d-none){margin-block-end:0;padding-block-end:0;row-gap:0;column-gap:0}.footer-grid post-accordion:has(>.d-none+.d-none+.d-none+.d-none){display:none}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:flex;flex-direction:var(--post-footer-column-flex-direction);flex-wrap:wrap;justify-content:space-between;align-items:var(--post-footer-column-align-items);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:flex !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{margin-block-end:var(--post-footer-socialmedia-margin-block-end)}.footer-app{margin-block-end:var(--post-footer-app-margin-block-end)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:flex;flex-wrap:wrap;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-meta{margin-block-end:var(--post-footer-meta-margin-block-end);font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:flex;flex-wrap:wrap;column-gap:.5rem;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}`;
9
9
 
@@ -60,7 +60,7 @@ const PostFooter = class {
60
60
  return GRID_SLOTS.map(slotName => (h("div", { class: { 'd-none': !this.gridSlotDisplayed[slotName] } }, h("h3", null, h("slot", { name: slotName + '-title' })), h("slot", { onSlotchange: this.handleGridSlotChange('tablet', 'desktop'), name: slotName }))));
61
61
  }
62
62
  render() {
63
- return (h(Host, { key: '374c30bdf52f1c826e4016fb60ebe46b212321f3', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: 'ad4b7ef1d1c8455fba5377c51b82aa98fabe567c' }, h("h2", { key: '2a55bd8dd9764b19ce565e0e718e8caa648dd4e8', class: "visually-hidden" }, this.textFooter), h("div", { key: 'bd3fad280de6e35a43dccf5afb90d079b5697039', class: "prefooter" }, h("div", { key: '8ae04af140bdef46f1989dbd4e18047b20eb8607', class: "footer-container" }, h("slot", { key: 'b2e5e4e3bcfbe4d9eb6323a62fd7d8db312ff49e', name: "prefooter" }))), h("div", { key: 'a73f4cbadf30e9e8bd88a657b88e9aeeecd8ac1c', class: "footer-main" }, h("div", { key: 'b4fa33216ea90b1c7ce8ad4426ffc04a5b142260', class: "footer-container" }, h("div", { key: '68978cc363340f86973f53df82e4adf70e1d18fb', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: 'd867ecbc7431b9f6e76022693bfd77be6f2015cc', class: "footer-column" }, h("div", { key: 'e5a345d9cb0d85d8a4f4ce46bde363177f26be5f', class: "footer-socialmedia" }, h("slot", { key: 'df306b3404d7cf25a4e93f24a787796c9b6582d0', name: "socialmedia" })), h("div", { key: 'b62be898061d5880b0329251af9001d32a1565d0', class: "footer-app" }, h("slot", { key: '71d2ac3bcb5fa4056e00bb3ec949c163016d116c', name: "app" }))), h("div", { key: 'd1237aa43568afe2d66de7e2871557c8bef692ab', class: "footer-businesssectors" }, h("slot", { key: '3470e3f8d1eaadf7eb230e7c788b5524672937b2', name: "businesssectors" })), h("div", { key: '0fc6b0bd67ac6982ed98f800d37590fe38725ff5', class: "footer-meta" }, h("slot", { key: 'd4ec82246b09ec299836ec13137448e0399dc8cd', name: "meta" })), h("div", { key: 'ffe9ad1ea0ff761513a721c1915bc6bdb602832c', class: "footer-copyright" }, h("slot", { key: 'bc43ce34d09a3a257ca614fe2b1383ee732d3f68', name: "copyright" })))))));
63
+ return (h(Host, { key: '87cf55de334d5e0f43bf466185d78c4786d49492', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: '01820a64befabb4b96c731daaef91cada24b59dc' }, h("h2", { key: '1b7b0177206199fe9eb1a16877002718225c5b0f', class: "visually-hidden" }, this.textFooter), h("div", { key: '3252249313ad2ab7059d37ea62f3d0daefb64049', class: "prefooter" }, h("div", { key: 'b3e48c915c0589a6d48da769a23370bff625075d', class: "footer-container" }, h("slot", { key: 'c77d6704a11bb26f2b65824840409c5be1088360', name: "prefooter" }))), h("div", { key: 'c68e4b4ed01a70af29415eca329e026a0428c0be', class: "footer-main" }, h("div", { key: '7996bca4f2d84268dca0bbde8bc4df35eaaa7710', class: "footer-container" }, h("div", { key: '3300d3fbcdffa533f91393a076d04e3fd03ead21', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '03c147ac0aa74c63defdf3d8e8a73b11826f4130', class: "footer-column" }, h("div", { key: '3e90fd4ba3de91a5f93bf18b4ce35bc1fc2533d3', class: "footer-socialmedia" }, h("slot", { key: 'eb0cdffde42c3e3583526480a435ef4f43e85395', name: "socialmedia" })), h("div", { key: '2a861100a8e6421c246a6c1a1ba0270c35941789', class: "footer-app" }, h("slot", { key: 'fc851920dfe073739792ae575d4d7c991d3687a5', name: "app" }))), h("div", { key: '9f849af988b281c3951f5a59d350cba3145fb1fb', class: "footer-businesssectors" }, h("slot", { key: '49afff2a24d9b27afedf2b8a3702209725648ba4', name: "businesssectors" })), h("div", { key: 'e213b2b70acf362f6e5070d256f00a833c4ba09b', class: "footer-meta" }, h("slot", { key: '064b8f8c7b66f23186d9e18e4ae1768ff117eaa0', name: "meta" })), h("div", { key: 'f4ebcebe64a68b504840c7ed6e1e449def977956', class: "footer-copyright" }, h("slot", { key: 'e91e587a3c3babb8e350fbf540c892d2659b6c50', name: "copyright" })))))));
64
64
  }
65
65
  get host() { return getElement(this); }
66
66
  };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
2
- import { v as version } from './package-ClG-N42b.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
+ import { v as version } from './package-d02KpeUM.js';
3
3
 
4
4
  const postLinkareaCss = () => `:host{display:block;cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-within){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-within){outline-color:Highlight !important}}`;
5
5
 
@@ -61,7 +61,7 @@ const PostLinkarea = class {
61
61
  }
62
62
  }
63
63
  render() {
64
- return (h(Host, { key: 'b79b314635a4cb302d862006d07ab5f059298382', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: '4e9a1ee60d499f6dd80819e68f6536b3964d3389' })));
64
+ return (h(Host, { key: 'cb2563465ebe024e8e98539c27c7a8d7084229d3', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: '68fc1468da418e4ed38e89cbf7ef932f819993dd' })));
65
65
  }
66
66
  get host() { return getElement(this); }
67
67
  };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-BbDawWJ5.js';
2
- import { v as version } from './package-ClG-N42b.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DE1aWdqx.js';
2
+ import { v as version } from './package-d02KpeUM.js';
3
3
 
4
4
  const postListboxOptionCss = () => `:host{padding:12px 12px 9px 16px;background-color:#fff;cursor:pointer;user-select:none;display:flex;align-items:center;gap:8px;justify-content:space-between}:host(:hover){background-color:#f0efed}:host([data-active=true]){outline:2px solid #000;outline-offset:-4px}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid #050400;outline-offset:2px}.option-content{display:flex;flex-direction:column;min-width:0}.option-description{display:none;font-size:.85em;color:#666}:host(:not(:empty)) .option-description{display:block}post-icon{width:24px;height:24px}`;
5
5
 
@@ -14,9 +14,9 @@ const PostListboxOption = class {
14
14
  this.highlighted = false;
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: 'f88a84b9004a29fb7c39ea4cbc509d940d70a52d', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
17
+ return (h(Host, { key: 'ff0e773f8a89f9df3996a83cd2be6247c1ab5475', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
18
18
  /* Prevent focus change from triggering onblur event in post-autocomplete */
19
- onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: '99d154078490d171ab0e4e43b765cbffb44e721e', class: "option-content" }, this.value, h("span", { key: '609a205bb61b84d1e56e6e64282cb210f650faca', class: "option-description" }, h("slot", { key: 'd08d9dddbea69b693002a20f4127788a6a21acc1' }))), this.selected && h("post-icon", { key: '04e999451c694a0cb54e1e3ab5cd3eca29640aaf', "aria-hidden": "true", name: "checkmark" })));
19
+ onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: 'cb43e8bec5f262ae25ddfdcae1b7f9979bdd6858', class: "option-content" }, this.value, h("span", { key: '5b314c41073a357185613a04a07d2020e4eab300', class: "option-description" }, h("slot", { key: 'ac1ed1be98f9a348952c0169d7ec89f8aaa99474' }))), this.selected && h("post-icon", { key: '7691085df732c0c2c5db9824587d54047017adf5', "aria-hidden": "true", name: "checkmark" })));
20
20
  }
21
21
  };
22
22
  PostListboxOption.style = postListboxOptionCss();
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import './breakpoints-BQ3HlJPr.js';
3
3
  import { E as EventFrom } from './event-from-rEfV4v4a.js';
4
- import { v as version } from './package-ClG-N42b.js';
4
+ import { v as version } from './package-d02KpeUM.js';
5
5
 
6
6
  const postListboxCss = () => `post-popovercontainer{border-radius:4px;overflow:hidden;box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:flex;flex-direction:column}::slotted([slot=blank-slate]){display:block;padding:.75rem;color:#666}`;
7
7
 
@@ -135,7 +135,7 @@ const PostListbox = class {
135
135
  this.updateSelection(event.detail);
136
136
  }
137
137
  render() {
138
- return (h(Host, { key: 'e1e88417d8b8f66fbaf7df481fcbd9a63b6189fb', "data-version": version, role: "listbox" }, h("post-popovercontainer", { key: '0fca1baeb51be6cf5f4d30c254217dce3349a377', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, this.visibleOptions.length === 0 ? h("slot", { name: "blank-slate" }) : h("slot", null))));
138
+ return (h(Host, { key: '55f1f7335a5eed38163aa58a43f091f130a9a2ff', "data-version": version, role: "listbox" }, h("post-popovercontainer", { key: '303a6b38d8c5e5fae7b295dd0a58008c7b39a23f', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, this.visibleOptions.length === 0 ? h("slot", { name: "blank-slate" }) : h("slot", null))));
139
139
  }
140
140
  get host() { return getElement(this); }
141
141
  };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import { d as debounce } from './breakpoints-BQ3HlJPr.js';
3
- import { v as version } from './package-ClG-N42b.js';
3
+ import { v as version } from './package-d02KpeUM.js';
4
4
 
5
5
  function getSlottedElement(host, selector) {
6
6
  const slottedElements = host.querySelectorAll(selector);
@@ -36,7 +36,7 @@ function repeat(callback, { delayMs = 300, intervalMs = 100 } = {}) {
36
36
  };
37
37
  }
38
38
 
39
- const postNumberInputCss = () => `:host{display:inline-flex;align-items:end;width:100%}:host ::slotted(input[type=number]),:host .step-button{height:var(--post-device-sizing-interactive-button-height-6) !important}:host ::slotted(input[type=number]){border-radius:0 !important;padding-inline:var(--post-device-spacing-padding-inline-1);padding-block-start:var(--post-device-spacing-padding-block-29);padding-block-end:var(--post-device-spacing-padding-block-3)}:host ::slotted(input[type=number]:focus){outline:none !important}:host .step-button.disabled{background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);border-style:var(--post-core-border-style-dash)}:host(.number-input-sm) ::slotted(input[type=number]),:host(.number-input-sm) .step-button{height:var(--post-device-sizing-interactive-button-height-8) !important}:host(.number-input-sm) ::slotted(input[type=number]){font-size:var(--post-device-font-size-7) !important;padding-inline:var(--post-device-spacing-padding-inline-1) !important;padding-block:var(--post-device-spacing-padding-29) !important}:host(.number-input-sm) ::slotted(input[type=number].is-valid),:host(.number-input-sm) ::slotted(input[type=number].is-invalid){background-size:var(--post-device-sizing-notification-5) !important;padding-inline-end:calc( (var(--post-device-spacing-padding-inline-1)* 2) + var(--post-device-sizing-notification-5) ) !important}:host(.number-input-sm) .step-button{padding-inline:var(--post-device-spacing-padding-32);padding-block:var(--post-device-spacing-padding-2)}:host(.number-input-sm) .step-button post-icon{width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7)}:host(:hover) .step-button:not(.disabled){background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:hover) .step-button:not(.disabled){border-color:Highlight}}:host(:hover) .step-button:not(.disabled),:host(:hover) .step-button:not(.disabled) post-icon{color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.input-container{position:relative;flex-grow:1}.input-container:focus-within::after{content:"";pointer-events:none;z-index:2;width:calc(100% + (var(--post-device-border-width-default) * 2));height:calc(100% + (var(--post-device-border-width-default) * 2));border:var(--post-device-border-width-focus) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-focus-stroke);position:absolute;border-radius:var(--post-device-border-radius-1);top:calc((var(--post-device-border-width-default) * 2)*-1);left:calc((var(--post-device-border-width-default) * 2)*-1)}.step-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;transition:unset;box-sizing:border-box;flex:0 0 auto;border-radius:var(--post-device-border-radius-1);padding-inline:var(--post-device-spacing-padding-23);padding-block:var(--post-device-spacing-padding-22);box-shadow:var(--post-device-elevation-100);border:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.step-button:hover{text-decoration:none}.step-button:disabled{border-style:var(--post-core-border-style-dash)}.step-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(a){color:LinkText;border:unset}.step-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.step-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.step-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.step-button post-icon{width:var(--post-device-sizing-interactive-icon-size6);height:var(--post-device-sizing-interactive-icon-size6)}.step-button:first-of-type{border-start-end-radius:0;border-end-end-radius:0;border-inline-end-width:0}.step-button:last-of-type{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0}.step-button.disabled{pointer-events:none;cursor:unset}`;
39
+ const postNumberInputCss = () => `:host{display:inline-flex;align-items:end;width:100%}:host ::slotted(input[type=number]),:host .step-button{height:var(--post-device-sizing-interactive-button-height-6) !important}:host ::slotted(input[type=number]){border-radius:0 !important;padding-inline:var(--post-device-spacing-padding-inline-1);padding-block-start:var(--post-device-spacing-padding-block-29);padding-block-end:var(--post-device-spacing-padding-block-3)}:host ::slotted(input[type=number]:focus){outline:none !important}:host .step-button.disabled{background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);border-style:var(--post-core-border-style-dash)}:host(.number-input-sm) ::slotted(input[type=number]),:host(.number-input-sm) .step-button{height:var(--post-device-sizing-interactive-button-height-8) !important}:host(.number-input-sm) ::slotted(input[type=number]){font-size:var(--post-device-font-size-7) !important;padding-inline:var(--post-device-spacing-padding-inline-1) !important;padding-block:var(--post-device-spacing-padding-29) !important}:host(.number-input-sm) ::slotted(input[type=number].is-valid),:host(.number-input-sm) ::slotted(input[type=number].is-invalid){background-size:var(--post-device-sizing-notification-5) !important;padding-inline-end:calc( (var(--post-device-spacing-padding-inline-1)* 2) + var(--post-device-sizing-notification-5) ) !important}:host(.number-input-sm) .step-button{padding-inline:var(--post-device-spacing-padding-32);padding-block:var(--post-device-spacing-padding-2)}:host(.number-input-sm) .step-button post-icon{width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7)}:host(:hover) .step-button:not(.disabled){background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:hover) .step-button:not(.disabled){border-color:Highlight}}:host(:hover) .step-button:not(.disabled),:host(:hover) .step-button:not(.disabled) post-icon{color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.input-container{position:relative;flex-grow:1}.input-container:focus-within::after{content:"";pointer-events:none;z-index:2;width:calc(100% + (var(--post-device-border-width-default) * 2));height:calc(100% + (var(--post-device-border-width-default) * 2));border:var(--post-device-border-width-focus) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-focus-stroke);position:absolute;border-radius:var(--post-device-border-radius-1);top:calc((var(--post-device-border-width-default) * 2)*-1);left:calc((var(--post-device-border-width-default) * 2)*-1)}.step-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;transition:unset;box-sizing:border-box;flex:0 0 auto;border-radius:var(--post-device-border-radius-1);padding-inline:var(--post-device-spacing-padding-23);padding-block:var(--post-device-spacing-padding-22);box-shadow:var(--post-device-elevation-100);border:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.step-button:not(:disabled):hover{text-decoration:none}.step-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.step-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(a){color:LinkText;border:unset}.step-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.step-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.step-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.step-button post-icon{width:var(--post-device-sizing-interactive-icon-size6);height:var(--post-device-sizing-interactive-icon-size6)}.step-button:first-of-type{border-start-end-radius:0;border-end-end-radius:0;border-inline-end-width:0}.step-button:last-of-type{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0}.step-button.disabled{pointer-events:none;cursor:unset}`;
40
40
 
41
41
  function parseNumber(input, key) {
42
42
  const value = Number.parseFloat(input[key]);
@@ -110,6 +110,7 @@ const PostNumberInput = class {
110
110
  const stepFn = isIncrementing ? this.input.stepUp : this.input.stepDown;
111
111
  stepFn.call(this.input);
112
112
  }
113
+ this.input.dispatchEvent(new Event('input', { bubbles: true }));
113
114
  this.updateStepButtonState();
114
115
  });
115
116
  }
@@ -125,10 +126,10 @@ const PostNumberInput = class {
125
126
  }
126
127
  render() {
127
128
  const areButtonsShown = !!this.input;
128
- return (h(Host, { key: 'c8ef21f14edba7dcaf82dc66d7735f3ab3022e4f', "data-version": version, class: {
129
+ return (h(Host, { key: '59cbe12c66b0eabbff15a3110ee847396df2d261', "data-version": version, class: {
129
130
  'number-input-sm': this.small,
130
131
  'disabled': this.isDisabled,
131
- } }, areButtonsShown && (h("div", { key: '585049836ec48c09bcf49019375d798d58b1d56b', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: '1891fc6f71f9251e32b254d6a2da72560c86d3f2', name: "minus" }))), h("div", { key: '8cffde72970f70573f7d9afacd023bc87b9d9bae', class: "input-container" }, h("slot", { key: '69cdc0bef28f380690ce4d4887a3bec3a1dc30b9', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '85cc8b04413b1a50ec493b45638f451fc2b5e0fd', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: '00b3a503d183042a406618aaad9a0e3f512e13e7', name: "plus" })))));
132
+ } }, areButtonsShown && (h("div", { key: '43fca97c040104786ab528b04f3e0dd576f29025', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: '1b41c236beb802d98f60776827928335d00599c4', name: "minus" }))), h("div", { key: '8342d335e0a84f78514edac5052ffea081fb40c7', class: "input-container" }, h("slot", { key: 'd2f8eae0656faaab31358cd3582c873d4a491e73', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '0055b317ed6ec64f2451640c436d169bb0b07626', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: 'dafe4a65f6d5d6ba4f54229c55506d5cf14fe126', name: "plus" })))));
132
133
  }
133
134
  get host() { return getElement(this); }
134
135
  };
@@ -1,13 +1,13 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import './breakpoints-BQ3HlJPr.js';
3
3
  import { d as debounce } from './debounce-C9hMpmsD.js';
4
4
  import { n as nanoid } from './nanoid-8LXe8Zt_.js';
5
- import { v as version } from './package-ClG-N42b.js';
6
- import { T as Type } from './type-obmwEgkM.js';
7
- import { R as Required } from './required-uK-rZZjy.js';
8
- import './create-validator-decorator-D8qwF5Qe.js';
5
+ import { v as version } from './package-d02KpeUM.js';
6
+ import { T as Type } from './type-S-4aPMGU.js';
7
+ import { R as Required } from './required-DeOhRbtk.js';
8
+ import './create-validator-decorator-CYYTw0AS.js';
9
9
 
10
- const postPaginationCss = () => `.btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash)}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg);color:var(--post-scheme-color-interactive-button-primary-disabled-fg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.pagination{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;padding:var(--post-device-spacing-padding-15);overflow:hidden}.pagination-list{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-4);min-width:0;max-width:100%;margin:0;padding:0;list-style:none;flex-wrap:nowrap}.pagination-list .pagination-control:first-child{margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-list .pagination-control:last-child{margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-item{display:flex;align-items:center;margin:0;padding:0;flex-shrink:0;flex-grow:0}.pagination-ellipsis,.pagination-link,.pagination-ellipsis-content{display:flex;align-items:center;justify-content:center}.pagination-link,.pagination-ellipsis-content{width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-width:var(--post-device-sizing-interactive-button-height-1);font-size:var(--post-device-font-size-6);color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-weight:var(--post-device-font-weight-bold)}.pagination-link{box-sizing:border-box;padding:0;margin:0;font-weight:var(--post-device-font-weight-bold);text-decoration:none;background-color:var(--post-scheme-color-interactive-primary-enabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke5);border-radius:var(--post-device-border-radius-round);cursor:pointer;appearance:none;outline:none;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.pagination-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.pagination-link:active:not(.pagination-link-active),.pagination-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);background-color:var(--post-scheme-color-interactive-primary-hover-bg5);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.pagination-link.pagination-link-active{color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1);cursor:default}.pagination-ellipsis{flex-shrink:0;flex-grow:0}.pagination-ellipsis-content{user-select:none}.hidden-items{position:absolute;display:flex;gap:var(--post-device-spacing-gap-11);height:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
10
+ const postPaginationCss = () => `.btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.pagination{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;padding:var(--post-device-spacing-padding-15);overflow:hidden}.pagination-list{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-4);min-width:0;max-width:100%;margin:0;padding:0;list-style:none;flex-wrap:nowrap}.pagination-list .pagination-control:first-child{margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-list .pagination-control:last-child{margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-item{display:flex;align-items:center;margin:0;padding:0;flex-shrink:0;flex-grow:0}.pagination-ellipsis,.pagination-link,.pagination-ellipsis-content{display:flex;align-items:center;justify-content:center}.pagination-link,.pagination-ellipsis-content{width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-width:var(--post-device-sizing-interactive-button-height-1);font-size:var(--post-device-font-size-6);color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-weight:var(--post-device-font-weight-bold)}.pagination-link{box-sizing:border-box;padding:0;margin:0;font-weight:var(--post-device-font-weight-bold);text-decoration:none;background-color:var(--post-scheme-color-interactive-primary-enabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke5);border-radius:var(--post-device-border-radius-round);cursor:pointer;appearance:none;outline:none;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.pagination-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.pagination-link:active:not(.pagination-link-active),.pagination-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);background-color:var(--post-scheme-color-interactive-primary-hover-bg5);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.pagination-link.pagination-link-active{color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1);cursor:default}.pagination-ellipsis{flex-shrink:0;flex-grow:0}.pagination-ellipsis-content{user-select:none}.hidden-items{position:absolute;display:flex;gap:var(--post-device-spacing-gap-11);height:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
11
11
 
12
12
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
13
13
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -31,7 +31,14 @@ const PostPagination = class {
31
31
  constructor(hostRef) {
32
32
  registerInstance(this, hostRef);
33
33
  this.postChange = createEvent(this, "postChange");
34
+ this.maxVisiblePages = 3;
34
35
  this.items = [];
36
+ /**
37
+ * The current active page number.
38
+ *
39
+ * **If not specified, defaults to the first page.**
40
+ */
41
+ this.page = 1;
35
42
  this.lastWindowWidth = window.innerWidth;
36
43
  this.loaded = false;
37
44
  this.debouncedResize = debounce(this.handleResizeInternal.bind(this), RESIZE_DEBOUNCE_MS);
@@ -42,9 +49,7 @@ const PostPagination = class {
42
49
  }
43
50
  componentWillLoad() {
44
51
  this.paginationId = `pagination-${this.host.id || nanoid(6)}`;
45
- if (this.page == null) {
46
- this.page = 1;
47
- }
52
+ this.updatePagesWithValidation();
48
53
  }
49
54
  connectedCallback() {
50
55
  window.addEventListener('resize', this.debouncedResize);
@@ -401,7 +406,7 @@ const PostPagination = class {
401
406
  */
402
407
  generatePages(totalPages) {
403
408
  const maxVisible = this.maxVisiblePages;
404
- const currentPage = this.page || 1;
409
+ const currentPage = this.page;
405
410
  if (totalPages <= maxVisible) {
406
411
  this.items = this.buildAllPages(totalPages);
407
412
  return;
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import './breakpoints-BQ3HlJPr.js';
3
- import { v as version } from './package-ClG-N42b.js';
3
+ import { v as version } from './package-d02KpeUM.js';
4
4
  import { i as isFocusable } from './focusable-C7afHKmo.js';
5
- import { T as Type } from './type-obmwEgkM.js';
5
+ import { T as Type } from './type-S-4aPMGU.js';
6
6
  import './_commonjsHelpers-BFTU3MAI.js';
7
- import './create-validator-decorator-D8qwF5Qe.js';
7
+ import './create-validator-decorator-CYYTw0AS.js';
8
8
 
9
9
  const postPopoverTriggerCss = () => `:host{cursor:pointer}`;
10
10
 
@@ -114,7 +114,7 @@ const PostPopoverTrigger = class {
114
114
  this.popover?.removeEventListener('postToggle', this.boundHandlePostToggle);
115
115
  }
116
116
  render() {
117
- return (h(Host, { key: '15106566f7f823c789987c59ef7b655622c95f23', "data-version": version }, h("slot", { key: 'e8d4e3f87795b2f323210a2fedee79e462f715bd', onSlotchange: () => this.setupTrigger() })));
117
+ return (h(Host, { key: '009495ba354321f2b0162c4a0c4fcb1e165074e7', "data-version": version }, h("slot", { key: 'f0e5ef7851b4bc9916382b0910d9500db52668d4', onSlotchange: () => this.setupTrigger() })));
118
118
  }
119
119
  get host() { return getElement(this); }
120
120
  static get watchers() { return {
@@ -1,13 +1,13 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import { P as PLACEMENT_TYPES } from './placement-DRiVosES.js';
3
3
  import './breakpoints-BQ3HlJPr.js';
4
4
  import { g as getDeepFocusableChildren } from './get-focusable-children-DxYnH2ye.js';
5
- import { v as version } from './package-ClG-N42b.js';
6
- import { O as OneOf } from './one-of-GPr3FflU.js';
7
- import { R as Required } from './required-uK-rZZjy.js';
8
- import { T as Type } from './type-obmwEgkM.js';
5
+ import { v as version } from './package-d02KpeUM.js';
6
+ import { O as OneOf } from './one-of-Ug1_Xoes.js';
7
+ import { R as Required } from './required-DeOhRbtk.js';
8
+ import { T as Type } from './type-S-4aPMGU.js';
9
9
  import './get-root-08F-DB-d.js';
10
- import './create-validator-decorator-D8qwF5Qe.js';
10
+ import './create-validator-decorator-CYYTw0AS.js';
11
11
 
12
12
  const postPopoverCss = () => `*{box-sizing:border-box}:host{display:contents}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{color:var(--post-current-fg);background-color:var(--post-current-bg);display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:var(--post-popover-max-width, 280px)}.popover-content{padding:.5em;flex-grow:1}`;
13
13
 
@@ -37,8 +37,8 @@ const PostPopover = class {
37
37
  this.arrow = true;
38
38
  }
39
39
  /**
40
- * Programmatically display the popover
41
- * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
40
+ * Programmatically display the popover,
41
+ * `target` is the HTML element the menu is anchored to.
42
42
  */
43
43
  async show(target) {
44
44
  await this.popoverRef.show(target);
@@ -51,9 +51,8 @@ const PostPopover = class {
51
51
  this.popoverRef.hide();
52
52
  }
53
53
  /**
54
- * Toggle popover display
55
- * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
56
- * @param force Pass true to always show or false to always hide
54
+ * Toggle popover display,
55
+ * `target` is the HTML element the menu is anchored to.
57
56
  */
58
57
  async toggle(target, force) {
59
58
  const isOpen = await this.popoverRef.toggle(target, force);
@@ -69,7 +68,7 @@ const PostPopover = class {
69
68
  }
70
69
  }
71
70
  render() {
72
- return (h(Host, { key: '4c6d36060c351602af36c7df3bd1a594cb851213', "data-version": version }, h("post-popovercontainer", { key: 'ec84ed352e562037e547e22f75304683bffa4521', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '2fca8b18ca9ba9abb9464347496ee390815165ec', class: "popover-container" }, h("div", { key: '8859270d05c687223a55583654f97bef9848a8e7', class: "popover-content" }, h("slot", { key: 'e1dff905b2c0882a72693cb07c331581cf63fcf7' })), h("post-closebutton", { key: '7a147e9542c1b7c462141e0940c80eb465fef9a4', onClick: () => this.hide() }, this.textClose)))));
71
+ return (h(Host, { key: 'f24329a264569794e7108875eda111a1456c5b47', "data-version": version }, h("post-popovercontainer", { key: 'ae8e9498e59de8a515f5bd11ecf79a2be9a513d1', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '76e4e49d302159db19c8e83a7ece60945f003da5', class: "popover-container" }, h("div", { key: '3fb7c1ca533e54b4960bd5d7c54535b0097831d8', class: "popover-content" }, h("slot", { key: '5bdf6a0a75d0c433f88afe0a6e9c6f298bbb64a7' })), h("post-closebutton", { key: '26d7569bb60cdb1aa5479260738f33cf65737df9', onClick: () => this.hide() }, this.textClose)))));
73
72
  }
74
73
  get host() { return getElement(this); }
75
74
  };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import './breakpoints-BQ3HlJPr.js';
3
- import { r as registerDependency, c as createValidatorDecorator, g as getValidationContext } from './create-validator-decorator-D8qwF5Qe.js';
4
- import { T as Type } from './type-obmwEgkM.js';
3
+ import { r as registerDependency, c as createValidatorDecorator, g as getValidationContext } from './create-validator-decorator-CYYTw0AS.js';
4
+ import { T as Type } from './type-S-4aPMGU.js';
5
5
 
6
6
  function resolveBound(component, bound) {
7
7
  const resolvedValue = typeof bound === 'string' ? component[bound] : bound;
@@ -124,7 +124,7 @@ const PostProgressbar = class {
124
124
  const max = this.getEffectiveMax();
125
125
  const value = this.getEffectiveValue(min, max);
126
126
  const percentage = ((value - min) / (max - min)) * 100;
127
- return (h(Host, { key: '3d48615c3f08904f896eb5ebb7d8bfdff882a89b', role: "progressbar", "aria-valuenow": value, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: 'dd8c0d44ba1aeccb3102cb15556517df98b9cf63', class: "progress-value", style: { '--post-progressbar-value': `${percentage}%` } })));
127
+ return (h(Host, { key: '26bdbb5219393e8b44e2fe5395d8a4cd8aa7e18a', role: "progressbar", "aria-valuenow": value, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: '65b81479fac7aa6024556ef6589064f997f4394e', class: "progress-value", style: { '--post-progressbar-value': `${percentage}%` } })));
128
128
  }
129
129
  get host() { return getElement(this); }
130
130
  };
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
2
  import './breakpoints-BQ3HlJPr.js';
3
- import { v as version } from './package-ClG-N42b.js';
4
- import { R as Required } from './required-uK-rZZjy.js';
5
- import { T as Type } from './type-obmwEgkM.js';
6
- import './create-validator-decorator-D8qwF5Qe.js';
3
+ import { v as version } from './package-d02KpeUM.js';
4
+ import { R as Required } from './required-DeOhRbtk.js';
5
+ import { T as Type } from './type-S-4aPMGU.js';
6
+ import './create-validator-decorator-CYYTw0AS.js';
7
7
 
8
8
  const postRatingCss = () => `:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}`;
9
9
 
@@ -92,7 +92,7 @@ const PostRating = class {
92
92
  }
93
93
  }
94
94
  render() {
95
- return (h(Host, { key: 'c037e21b074c9ebc433e325e49d17dbe06d8db43', "data-version": version }, h("div", { key: 'f661eac91003680598c38d54dbc5fa3f482b7ad8', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
95
+ return (h(Host, { key: 'c793abbf5e0d01bb19dc4464ebd75249959a1717', "data-version": version }, h("div", { key: '357946df40a3d3a85ece2d0ac6ecc761951d9471', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
96
96
  'star': true,
97
97
  'before-hover': i < this.hoveredIndex,
98
98
  'active': i < Math.round(this.currentRating),
@@ -0,0 +1,107 @@
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DE1aWdqx.js';
2
+ import { v as version } from './package-d02KpeUM.js';
3
+ import './breakpoints-BQ3HlJPr.js';
4
+ import { E as EventFrom } from './event-from-rEfV4v4a.js';
5
+ import { g as getRoot } from './get-root-08F-DB-d.js';
6
+ import { R as Required } from './required-DeOhRbtk.js';
7
+ import { T as Type } from './type-S-4aPMGU.js';
8
+ import './create-validator-decorator-CYYTw0AS.js';
9
+
10
+ const postSideNavigationTriggerCss = () => `:host{display:inline-block}@media screen and (min-width: 1024px){:host{display:none}}`;
11
+
12
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
13
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
15
+ r = Reflect.decorate(decorators, target, key, desc);
16
+ else
17
+ for (var i = decorators.length - 1; i >= 0; i--)
18
+ if (d = decorators[i])
19
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
20
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
21
+ };
22
+ const PostSideNavigationTrigger = class {
23
+ constructor(hostRef) {
24
+ registerInstance(this, hostRef);
25
+ this.observer = new MutationObserver(() => this.setTrigger());
26
+ this.toggleSideNavigation = this.toggleSideNavigation.bind(this);
27
+ this.handlePostToggle = this.handlePostToggle.bind(this);
28
+ }
29
+ connectedCallback() {
30
+ this.root = getRoot(this.host);
31
+ this.root.addEventListener('postToggle', this.handlePostToggle);
32
+ this.observer.observe(this.host, { childList: true, subtree: true });
33
+ }
34
+ componentDidLoad() {
35
+ this.setTrigger();
36
+ if (!this.trigger)
37
+ console.warn('The post-side-navigation-trigger must contain a button.');
38
+ }
39
+ disconnectedCallback() {
40
+ this.observer.disconnect();
41
+ this.root.removeEventListener('postToggle', this.handlePostToggle);
42
+ this.trigger?.removeEventListener('click', this.toggleSideNavigation);
43
+ }
44
+ /**
45
+ * Retrieve the post-side-navigation controlled by the trigger.
46
+ */
47
+ get sideNavigation() {
48
+ const ref = this.root.getElementById(this.for);
49
+ if (ref && ref.localName === 'post-side-navigation') {
50
+ return ref;
51
+ }
52
+ return null;
53
+ }
54
+ /**
55
+ * Find the button, attach the click listener and the initial ARIA attributes.
56
+ */
57
+ setTrigger() {
58
+ const trigger = this.host.querySelector('button');
59
+ if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
60
+ return;
61
+ if (this.trigger) {
62
+ this.trigger.removeEventListener('click', this.toggleSideNavigation);
63
+ }
64
+ this.trigger = trigger;
65
+ this.trigger.addEventListener('click', this.toggleSideNavigation);
66
+ this.updateAriaAttributes();
67
+ }
68
+ updateAriaAttributes() {
69
+ if (!this.trigger)
70
+ return;
71
+ const ariaControls = this.trigger.getAttribute('aria-controls');
72
+ if (!ariaControls?.includes(this.for)) {
73
+ const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
74
+ this.trigger.setAttribute('aria-controls', newAriaControls);
75
+ }
76
+ this.trigger.setAttribute('aria-expanded', 'false');
77
+ }
78
+ /**
79
+ * Keep the trigger's `aria-expanded` in sync with the navigation state.
80
+ */
81
+ handlePostToggle(e) {
82
+ this.trigger?.setAttribute('aria-expanded', `${e.detail}`);
83
+ }
84
+ /**
85
+ * Manually update the trigger's ARIA attributes.
86
+ */
87
+ async update() {
88
+ this.updateAriaAttributes();
89
+ }
90
+ async toggleSideNavigation() {
91
+ await this.sideNavigation?.toggle();
92
+ }
93
+ render() {
94
+ return (h(Host, { key: '62fd7ce0eb2583decb73c4505bf5a9a08e76f862', "data-version": version }, h("slot", { key: 'c3cfa14f670b8bcfc6e780d33c5c87df7880bb16' })));
95
+ }
96
+ get host() { return getElement(this); }
97
+ };
98
+ __decorate([
99
+ Required(),
100
+ Type('string')
101
+ ], PostSideNavigationTrigger.prototype, "for", void 0);
102
+ __decorate([
103
+ EventFrom('post-side-navigation', { ignoreNestedComponents: false })
104
+ ], PostSideNavigationTrigger.prototype, "handlePostToggle", null);
105
+ PostSideNavigationTrigger.style = postSideNavigationTriggerCss();
106
+
107
+ export { PostSideNavigationTrigger as post_side_navigation_trigger };