@swisspost/design-system-components 10.0.0-next.75 → 10.0.0

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 (333) hide show
  1. package/dist/cjs/{create-validator-decorator-Bimhl6Ib.js → create-validator-decorator-4dRrOF30.js} +1 -1
  2. package/dist/cjs/{index-CyeY2muT.js → index-BqngpwGa.js} +11 -15
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{one-of-BVQP1dR3.js → one-of-D1veqtsm.js} +1 -1
  5. package/dist/cjs/{package-JSyXVavg.js → package-Bwdl-T-w.js} +1 -1
  6. package/dist/cjs/{pattern-BDKu8-v6.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 +5 -5
  12. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +7 -7
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +7 -7
  14. package/dist/cjs/post-closebutton_14.cjs.entry.js +41 -35
  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 +5 -4
  23. package/dist/cjs/post-pagination.cjs.entry.js +5 -5
  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 +7 -7
  29. package/dist/cjs/post-side-navigation.cjs.entry.js +18 -7
  30. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  31. package/dist/cjs/post-stepper.cjs.entry.js +7 -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-BsZuSJAl.js → required-Bkz8MOYa.js} +1 -1
  38. package/dist/cjs/{type-DXpEWY0w.js → type-D8eD1JMd.js} +1 -1
  39. package/dist/cjs/{url-D-EbWRlF.js → url-C7MnIIZ_.js} +1 -1
  40. package/dist/collection/collection-manifest.json +1 -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.js +1 -1
  47. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +1 -1
  48. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  49. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  50. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  51. package/dist/collection/components/post-date-picker/accessibility-utils.js +59 -0
  52. package/dist/collection/components/post-date-picker/date-utils.js +102 -0
  53. package/dist/collection/components/post-date-picker/native-mask-element.js +36 -0
  54. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  55. package/dist/collection/components/post-date-picker/post-date-picker.js +224 -301
  56. package/dist/collection/components/post-footer/post-footer.js +1 -1
  57. package/dist/collection/components/post-header/post-header.js +6 -5
  58. package/dist/collection/components/post-icon/post-icon.js +1 -1
  59. package/dist/collection/components/post-language-menu/post-language-menu.js +7 -5
  60. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  61. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  62. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  63. package/dist/collection/components/post-logo/post-logo.js +1 -1
  64. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  65. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  66. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  67. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  68. package/dist/collection/components/post-menu/post-menu.js +9 -12
  69. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  70. package/dist/collection/components/post-number-input/post-number-input.js +3 -2
  71. package/dist/collection/components/post-popover/post-popover.js +12 -22
  72. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  73. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +13 -9
  74. package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
  75. package/dist/collection/components/post-rating/post-rating.js +1 -1
  76. package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -1
  77. package/dist/collection/components/post-side-navigation/post-side-navigation.js +38 -2
  78. package/dist/collection/components/post-side-navigation/side-navigation-styles.js +1 -0
  79. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -1
  80. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +1 -1
  81. package/dist/collection/components/post-stepper/post-stepper.js +1 -1
  82. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  83. package/dist/collection/components/post-tab-item/post-tab-item.js +36 -19
  84. package/dist/collection/components/post-tab-panel/post-tab-panel.js +3 -2
  85. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  86. package/dist/collection/components/post-tabs/post-tabs.js +255 -84
  87. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  88. package/dist/collection/components/post-tooltip/post-tooltip.js +12 -22
  89. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +2 -4
  90. package/dist/collection/types/element-api.js +3 -0
  91. package/dist/component-names.json +0 -1
  92. package/dist/components/index.d.ts +0 -2
  93. package/dist/components/index.js +1 -1
  94. package/dist/components/package.js +1 -1
  95. package/dist/components/post-accordion-item2.js +1 -1
  96. package/dist/components/post-accordion2.js +1 -1
  97. package/dist/components/post-autocomplete.js +1 -1
  98. package/dist/components/post-avatar.js +1 -1
  99. package/dist/components/post-back-to-top.js +1 -1
  100. package/dist/components/post-banner.js +1 -1
  101. package/dist/components/post-breadcrumbs.js +1 -1
  102. package/dist/components/post-closebutton2.js +1 -1
  103. package/dist/components/post-collapsible-trigger2.js +1 -1
  104. package/dist/components/post-collapsible2.js +1 -1
  105. package/dist/components/post-date-picker.js +1 -1
  106. package/dist/components/post-footer.js +1 -1
  107. package/dist/components/post-header.js +1 -1
  108. package/dist/components/post-icon2.js +1 -1
  109. package/dist/components/post-language-menu.js +1 -1
  110. package/dist/components/post-linkarea.js +1 -1
  111. package/dist/components/post-listbox-option.js +1 -1
  112. package/dist/components/post-listbox.js +1 -1
  113. package/dist/components/post-logo.js +1 -1
  114. package/dist/components/post-mainnavigation.js +1 -1
  115. package/dist/components/post-megadropdown-trigger.js +1 -1
  116. package/dist/components/post-megadropdown.js +1 -1
  117. package/dist/components/post-menu-trigger2.js +1 -1
  118. package/dist/components/post-menu2.js +1 -1
  119. package/dist/components/post-number-input.js +1 -1
  120. package/dist/components/post-popover-trigger.js +1 -1
  121. package/dist/components/post-popover.js +1 -1
  122. package/dist/components/post-popovercontainer2.js +1 -1
  123. package/dist/components/post-progressbar.js +1 -1
  124. package/dist/components/post-rating.js +1 -1
  125. package/dist/components/post-side-navigation-trigger.js +1 -1
  126. package/dist/components/post-side-navigation.js +1 -1
  127. package/dist/components/post-stepper-item.js +1 -1
  128. package/dist/components/post-stepper.js +1 -1
  129. package/dist/components/post-tab-item.js +1 -1
  130. package/dist/components/post-tab-panel.js +1 -1
  131. package/dist/components/post-tabs.js +1 -1
  132. package/dist/components/post-togglebutton2.js +1 -1
  133. package/dist/components/post-tooltip-trigger.js +1 -1
  134. package/dist/components/post-tooltip.js +1 -1
  135. package/dist/components/react/index.js +1 -1
  136. package/dist/components/react/{p-DNddZV_h.js → p-Auha71WU.js} +1 -1
  137. package/dist/components/react/{p-ztiqEfbC.js → p-Bpwt-eYO.js} +1 -1
  138. package/dist/components/react/p-C6wtG9yO.js +1 -0
  139. package/dist/components/react/{p-DU4XzTGt.js → p-C7jOKUzv.js} +1 -1
  140. package/dist/components/react/{p-CbU3QFNG.js → p-Cjo8Ke7t.js} +1 -1
  141. package/dist/components/react/{p-BUAS73l8.js → p-ClF2qF9A.js} +1 -1
  142. package/dist/components/react/{p-BUSQG9af.js → p-CyNGpewj.js} +1 -1
  143. package/dist/components/react/{p-DTg2SXJj.js → p-DvVypwYO.js} +1 -1
  144. package/dist/components/react/p-SEWFpJgA.js +1 -0
  145. package/dist/components/react/p-bAeGAkWL.js +1 -0
  146. package/dist/components/react/{p-B3ZJPCU0.js → p-i1ZFHprG.js} +1 -1
  147. package/dist/components/react/p-znfTjqEZ.js +1 -0
  148. package/dist/components/react/post-accordion-item.js +1 -1
  149. package/dist/components/react/post-accordion.js +1 -1
  150. package/dist/components/react/post-autocomplete.js +1 -1
  151. package/dist/components/react/post-avatar.js +1 -1
  152. package/dist/components/react/post-back-to-top.js +1 -1
  153. package/dist/components/react/post-banner.js +1 -1
  154. package/dist/components/react/post-breadcrumb-item.js +1 -1
  155. package/dist/components/react/post-breadcrumbs.js +1 -1
  156. package/dist/components/react/post-closebutton.js +1 -1
  157. package/dist/components/react/post-collapsible-trigger.js +1 -1
  158. package/dist/components/react/post-collapsible.js +1 -1
  159. package/dist/components/react/post-date-picker.js +1 -1
  160. package/dist/components/react/post-footer.js +1 -1
  161. package/dist/components/react/post-header.js +1 -1
  162. package/dist/components/react/post-icon.js +1 -1
  163. package/dist/components/react/post-language-menu-item.js +1 -1
  164. package/dist/components/react/post-language-menu.js +1 -1
  165. package/dist/components/react/post-linkarea.js +1 -1
  166. package/dist/components/react/post-listbox-option.js +1 -1
  167. package/dist/components/react/post-listbox.js +1 -1
  168. package/dist/components/react/post-logo.js +1 -1
  169. package/dist/components/react/post-mainnavigation.js +1 -1
  170. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  171. package/dist/components/react/post-megadropdown.js +1 -1
  172. package/dist/components/react/post-menu-item.js +1 -1
  173. package/dist/components/react/post-menu-trigger.js +1 -1
  174. package/dist/components/react/post-menu.js +1 -1
  175. package/dist/components/react/post-number-input.js +1 -1
  176. package/dist/components/react/post-pagination.js +1 -1
  177. package/dist/components/react/post-popover-trigger.js +1 -1
  178. package/dist/components/react/post-popover.js +1 -1
  179. package/dist/components/react/post-popovercontainer.js +1 -1
  180. package/dist/components/react/post-progressbar.js +1 -1
  181. package/dist/components/react/post-rating.js +1 -1
  182. package/dist/components/react/post-side-navigation-trigger.js +1 -1
  183. package/dist/components/react/post-side-navigation.js +1 -1
  184. package/dist/components/react/post-stepper-item.js +1 -1
  185. package/dist/components/react/post-stepper.js +1 -1
  186. package/dist/components/react/post-tab-item.js +1 -1
  187. package/dist/components/react/post-tab-panel.js +1 -1
  188. package/dist/components/react/post-tabs.js +1 -1
  189. package/dist/components/react/post-togglebutton.js +1 -1
  190. package/dist/components/react/post-tooltip-trigger.js +1 -1
  191. package/dist/components/react/post-tooltip.js +1 -1
  192. package/dist/docs.json +287 -473
  193. package/dist/esm/{create-validator-decorator-BNkS_yAb.js → create-validator-decorator-CYYTw0AS.js} +1 -1
  194. package/dist/esm/{index-BGeKgZqi.js → index-DE1aWdqx.js} +11 -15
  195. package/dist/esm/loader.js +3 -3
  196. package/dist/esm/{one-of-4BD_5pKR.js → one-of-Ug1_Xoes.js} +1 -1
  197. package/dist/esm/package-SEWFpJgA.js +3 -0
  198. package/dist/esm/{pattern-D7tnGo1u.js → pattern-WLk4tOqI.js} +1 -1
  199. package/dist/esm/post-accordion_2.entry.js +10 -12
  200. package/dist/esm/post-autocomplete.entry.js +6 -6
  201. package/dist/esm/post-avatar.entry.js +7 -7
  202. package/dist/esm/post-back-to-top.entry.js +6 -6
  203. package/dist/esm/post-banner.entry.js +5 -5
  204. package/dist/esm/post-breadcrumb-item.entry.js +7 -7
  205. package/dist/esm/post-breadcrumbs.entry.js +7 -7
  206. package/dist/esm/post-closebutton_14.entry.js +41 -35
  207. package/dist/esm/post-collapsible_2.entry.js +6 -6
  208. package/dist/esm/post-components.js +3 -3
  209. package/dist/esm/post-date-picker.entry.js +427 -257
  210. package/dist/esm/post-footer.entry.js +6 -6
  211. package/dist/esm/post-linkarea.entry.js +3 -3
  212. package/dist/esm/post-listbox-option.entry.js +4 -4
  213. package/dist/esm/post-listbox.entry.js +3 -3
  214. package/dist/esm/post-number-input.entry.js +5 -4
  215. package/dist/esm/post-pagination.entry.js +5 -5
  216. package/dist/esm/post-popover-trigger.entry.js +5 -5
  217. package/dist/esm/post-popover.entry.js +11 -12
  218. package/dist/esm/post-progressbar.entry.js +4 -4
  219. package/dist/esm/post-rating.entry.js +6 -6
  220. package/dist/esm/post-side-navigation-trigger.entry.js +7 -7
  221. package/dist/esm/post-side-navigation.entry.js +18 -7
  222. package/dist/esm/post-stepper-item.entry.js +3 -3
  223. package/dist/esm/post-stepper.entry.js +7 -7
  224. package/dist/esm/post-tab-item.entry.js +15 -14
  225. package/dist/esm/post-tab-panel.entry.js +6 -6
  226. package/dist/esm/post-tabs.entry.js +196 -74
  227. package/dist/esm/post-tooltip-trigger.entry.js +7 -9
  228. package/dist/esm/post-tooltip.entry.js +9 -10
  229. package/dist/esm/{required-DhBxDSbP.js → required-DeOhRbtk.js} +1 -1
  230. package/dist/esm/{type-icZlikjf.js → type-S-4aPMGU.js} +1 -1
  231. package/dist/esm/{url-B_2x2YCy.js → url-C8KSrmWc.js} +1 -1
  232. package/dist/post-components/{p-aff9dd5e.entry.js → p-01b5539a.entry.js} +1 -1
  233. package/dist/post-components/{p-0a08ae23.entry.js → p-04e29502.entry.js} +1 -1
  234. package/dist/post-components/p-0b7f4169.entry.js +1 -0
  235. package/dist/post-components/p-13e1fdbd.entry.js +1 -0
  236. package/dist/post-components/{p-84c8d952.entry.js → p-1edcfc9e.entry.js} +1 -1
  237. package/dist/post-components/{p-15fa7e60.entry.js → p-21c83ccd.entry.js} +1 -1
  238. package/dist/post-components/{p-9ec32e7b.entry.js → p-261e2ffa.entry.js} +1 -1
  239. package/dist/post-components/{p-fac58cbd.entry.js → p-360d6bf1.entry.js} +1 -1
  240. package/dist/post-components/{p-D2ex14Ye.js → p-4-_BhJWV.js} +1 -1
  241. package/dist/post-components/{p-eca119d2.entry.js → p-44461143.entry.js} +1 -1
  242. package/dist/post-components/p-52e7344c.entry.js +1 -0
  243. package/dist/post-components/p-6d4be9dd.entry.js +1 -0
  244. package/dist/post-components/p-6dbe7870.entry.js +1 -0
  245. package/dist/post-components/{p-97c1f070.entry.js → p-751a949d.entry.js} +1 -1
  246. package/dist/post-components/{p-e54a6be0.entry.js → p-8e2427d4.entry.js} +1 -1
  247. package/dist/post-components/{p-3e83aa1f.entry.js → p-8fbbc68f.entry.js} +1 -1
  248. package/dist/post-components/{p-41b5dbfc.entry.js → p-91948813.entry.js} +1 -1
  249. package/dist/post-components/p-94064d19.entry.js +1 -0
  250. package/dist/post-components/{p-6cbb2e7f.entry.js → p-95ad4d06.entry.js} +1 -1
  251. package/dist/post-components/p-978e4664.entry.js +1 -0
  252. package/dist/post-components/p-B6uZASBE.js +1 -0
  253. package/dist/post-components/{p-CIbyqT6u.js → p-BDW1XHCO.js} +1 -1
  254. package/dist/post-components/p-CiOyV6Mo.js +1 -0
  255. package/dist/post-components/p-DE1aWdqx.js +2 -0
  256. package/dist/post-components/{p-8SvFxSp6.js → p-DMiERazc.js} +1 -1
  257. package/dist/post-components/{p-DH5JdN6V.js → p-NPUljV0P.js} +1 -1
  258. package/dist/post-components/p-SEWFpJgA.js +1 -0
  259. package/dist/post-components/{p-923439d1.entry.js → p-b7d6c951.entry.js} +1 -1
  260. package/dist/post-components/p-c152efb7.entry.js +1 -0
  261. package/dist/post-components/p-c9461efa.entry.js +1 -0
  262. package/dist/post-components/p-ddc585e6.entry.js +1 -0
  263. package/dist/post-components/{p-7ee4b829.entry.js → p-e5172886.entry.js} +1 -1
  264. package/dist/post-components/{p-9e240299.entry.js → p-e9484492.entry.js} +1 -1
  265. package/dist/post-components/p-ee1309c9.entry.js +1 -0
  266. package/dist/post-components/p-f1602e56.entry.js +1 -0
  267. package/dist/post-components/{p-5d20cbcb.entry.js → p-f1bf80d4.entry.js} +1 -1
  268. package/dist/post-components/p-fedcbf2d.entry.js +1 -0
  269. package/dist/post-components/post-components.css +2 -2
  270. package/dist/post-components/post-components.esm.js +1 -1
  271. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -8
  272. package/dist/types/components/post-date-picker/accessibility-utils.d.ts +19 -0
  273. package/dist/types/components/post-date-picker/date-utils.d.ts +48 -0
  274. package/dist/types/components/post-date-picker/native-mask-element.d.ts +12 -0
  275. package/dist/types/components/post-date-picker/post-date-picker.d.ts +23 -62
  276. package/dist/types/components/post-header/post-header.d.ts +2 -1
  277. package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -1
  278. package/dist/types/components/post-menu/post-menu.d.ts +4 -4
  279. package/dist/types/components/post-popover/post-popover.d.ts +4 -5
  280. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +2 -2
  281. package/dist/types/components/post-side-navigation/post-side-navigation.d.ts +6 -0
  282. package/dist/types/components/post-side-navigation/side-navigation-styles.d.ts +2 -0
  283. package/dist/types/components/post-tab-item/post-tab-item.d.ts +8 -4
  284. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +1 -1
  285. package/dist/types/components/post-tabs/post-tabs.d.ts +37 -17
  286. package/dist/types/components/post-tooltip/post-tooltip.d.ts +4 -5
  287. package/dist/types/components.d.ts +90 -164
  288. package/dist/types/types/element-api.d.ts +3 -0
  289. package/hydrate/index.js +812 -596
  290. package/hydrate/index.mjs +812 -596
  291. package/package.json +11 -12
  292. package/dist/cjs/long-press-event-Dx21Ojod.js +0 -276
  293. package/dist/cjs/post-login-widget.cjs.entry.js +0 -92
  294. package/dist/collection/components/post-accordion-item/heading-levels.js +0 -1
  295. package/dist/collection/components/post-login-widget/post-login-widget.css +0 -1
  296. package/dist/collection/components/post-login-widget/post-login-widget.js +0 -218
  297. package/dist/collection/components/post-tab-item/post-tab-item.css +0 -1
  298. package/dist/components/long-press-event.js +0 -8
  299. package/dist/components/post-avatar2.js +0 -1
  300. package/dist/components/post-login-widget.d.ts +0 -11
  301. package/dist/components/post-login-widget.js +0 -1
  302. package/dist/components/react/p-BNgqqRsB.js +0 -8
  303. package/dist/components/react/p-C7aYEQh5.js +0 -1
  304. package/dist/components/react/p-CdhbouMD.js +0 -1
  305. package/dist/components/react/p-Ci08Eesw.js +0 -1
  306. package/dist/components/react/p-DWlDkwjY.js +0 -1
  307. package/dist/components/react/p-wqJxIo5L.js +0 -1
  308. package/dist/components/react/post-login-widget.d.ts +0 -11
  309. package/dist/components/react/post-login-widget.js +0 -1
  310. package/dist/esm/long-press-event-BNgqqRsB.js +0 -274
  311. package/dist/esm/package-CdhbouMD.js +0 -3
  312. package/dist/esm/post-login-widget.entry.js +0 -90
  313. package/dist/post-components/p-001f58d8.entry.js +0 -1
  314. package/dist/post-components/p-12c8b073.entry.js +0 -1
  315. package/dist/post-components/p-1839276a.entry.js +0 -1
  316. package/dist/post-components/p-28eeb5d8.entry.js +0 -1
  317. package/dist/post-components/p-6a1c4897.entry.js +0 -1
  318. package/dist/post-components/p-6d14f78a.entry.js +0 -1
  319. package/dist/post-components/p-6e8b6249.entry.js +0 -1
  320. package/dist/post-components/p-71918d59.entry.js +0 -1
  321. package/dist/post-components/p-8139b0cc.entry.js +0 -1
  322. package/dist/post-components/p-87ebb213.entry.js +0 -1
  323. package/dist/post-components/p-89da6378.entry.js +0 -1
  324. package/dist/post-components/p-8caaa149.entry.js +0 -1
  325. package/dist/post-components/p-BGeKgZqi.js +0 -2
  326. package/dist/post-components/p-BNgqqRsB.js +0 -8
  327. package/dist/post-components/p-CdhbouMD.js +0 -1
  328. package/dist/post-components/p-DiBqDD4N.js +0 -1
  329. package/dist/post-components/p-I6rSjhbA.js +0 -1
  330. package/dist/post-components/p-c905a97c.entry.js +0 -1
  331. package/dist/post-components/p-f9529d40.entry.js +0 -1
  332. package/dist/types/components/post-accordion-item/heading-levels.d.ts +0 -2
  333. package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -45
@@ -63,7 +63,7 @@ export class PostFooter {
63
63
  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 }))));
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: '4ad289dc83c48a62c42decc3d22ef21d91a75a45', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: '8d1e75c31949f7f779282b37fde3408554d3da20' }, h("h2", { key: '23aec94a2c98d453c654caad2a548f0c92bf2bbf', class: "visually-hidden" }, this.textFooter), h("div", { key: '9d2673211c6ea2f1f7a81b230b70ea37e1170b49', class: "prefooter" }, h("div", { key: 'b9f6926e3d8715306badc6081b213a734449e360', class: "footer-container" }, h("slot", { key: 'c03ddbd53a0237e30fd70e5ca9efb65d0338a3f2', name: "prefooter" }))), h("div", { key: 'b0cbb8eb866e48938b952ef6a4e834375da41451', class: "footer-main" }, h("div", { key: 'fd4a20fae58bada639828b93cbaae6547088763b', class: "footer-container" }, h("div", { key: '4f93c304cada9d4c4f4923dc01e97a63ec78b574', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '5643a42c547f95deb85b82a46f0862dcdc2ef87a', class: "footer-column" }, h("div", { key: '3825bdc8e71af6a779eda7c1db9b1a0627955d6a', class: "footer-socialmedia" }, h("slot", { key: '5ae0689ee5780ded9c9617edafa1f1890f380046', name: "socialmedia" })), h("div", { key: 'abb7753bea7d39bac02a61be369b5038b5cb157c', class: "footer-app" }, h("slot", { key: 'aa15e19ace09a0b26bab1506ecce666fabe09654', name: "app" }))), h("div", { key: 'd6d064e8e855b34d21dfd0162e4f8d751b917106', class: "footer-businesssectors" }, h("slot", { key: '1455c3077887833904a98768d28d79a3a171c018', name: "businesssectors" })), h("div", { key: 'a6fd59702e790cfcab916f2a64036e9039693f8c', class: "footer-meta" }, h("slot", { key: '1270316794dbd356636fd39b553cc7903a80cfc7', name: "meta" })), h("div", { key: '06790e21f0b72f047f656b96aebb6e76a54349c9', class: "footer-copyright" }, h("slot", { key: '5c1d43a9c3c6efb6b376bff3d9668a871ee69494', name: "copyright" })))))));
66
+ 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" })))))));
67
67
  }
68
68
  static get is() { return "post-footer"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -20,7 +20,8 @@ import { throttle } from "throttle-debounce";
20
20
  * @slot post-logo - Should be used together with the `<post-logo>` component.
21
21
  * @slot global-nav-primary - Holds search button in the global header.
22
22
  * @slot global-nav-secondary - Holds an `<ul>` with meta navigation links.
23
- * @slot language-menu - Should be used with the `<post-language-switch>` component.
23
+ * @slot language-menu - Should be used with the `<post-language-menu>` component.
24
+ * @slot side-nav - Should be used with the `<post-side-navigation>` component.
24
25
  * @slot title - Holds the application title.
25
26
  * @slot main-nav - Has a default slot because it's only meant to be used in the `<post-header>`.
26
27
  * @slot audience - Holds the list of buttons to choose the audience.
@@ -310,10 +311,10 @@ export class PostHeader {
310
311
  render() {
311
312
  const onDesktop = Build.isServer || this.device === 'desktop';
312
313
  const onTabletAndMobile = Build.isServer || this.device !== 'desktop';
313
- return (h(Host, { key: '66b52c71941f81f60413da798d4484139ce3e1b2', "data-version": version, "data-color-scheme": "light", "data-burger-menu": this.hasBurgerMenu, "data-menu-extended": this.burgerMenuExtended }, h("header", { key: '0eeb86259a8da253dd94f35d97ea3d8935945fe1' }, h("div", { key: '2c3e770e344798b99b06cf8aaa2fec697ab0c8f5', class: "global-header" }, h("div", { key: 'cef2ff68fd3a5e217277f43fba60a6b38e0f7b26', class: "section" }, h("div", { key: 'a559af58168882c6e57cabc67e0c9c40d6790f69', class: "logo" }, h("slot", { key: '7d4a539769bafa7c42496fd8032bdb5681f3ad10', name: "post-logo" })), h("div", { key: '37e8f7871cac7c23d1d87a5d4dc20dd7babd930e', class: "sliding-controls" }, onDesktop && (h("div", { key: 'a3e04608d2bccd1e939d5c4143d81d8c42837056', class: "audience" }, h("slot", { key: 'b04e2d60f129cb16dff9fcf2950eada8da0a6913', name: "audience" }))), h("slot", { key: '406ad5ed2914a4b11a9ad9b454eea763a90c758f', name: "global-nav-primary" }), (onDesktop || !this.hasMainNav) && [
314
- h("slot", { key: '0573f2d5327f1a6de11d40b2eddd972defa4b0e6', name: "global-nav-secondary" }),
315
- h("slot", { key: '6a3c278831ada8550039400b8bdc5dc9bfa99937', name: "language-menu" }),
316
- ], h("slot", { key: 'e5dd9372eab4644e614bc19a98ef10055abd6841', name: "post-login" }), onTabletAndMobile && this.hasMainNav && (h("post-togglebutton", { key: 'bf3a90beeb52d94e3ae722b1ae55c9342090b353', class: "burger-button", ref: el => (this.burgerMenuButton = el), onClick: () => this.toggleBurgerMenu() }, h("span", { key: '9929c7119d4a87a3bb38e37b7113ccd236a26bd5' }, this.textMenu), h("post-icon", { key: '63247760e6b80d332c6c32d17f2e53c1402b810c', "aria-hidden": "true", name: "burger", "data-showwhen": "untoggled" }), h("post-icon", { key: 'ce380892e5c3f2e68fc6187ea4c1bf0feb703a24', "aria-hidden": "true", name: "closex", "data-showwhen": "toggled" })))))), h("div", { key: '1338029f597fb993dcd9b420cd98bea280f1fc3e', ref: el => (this.localHeader = el), class: { 'local-header': true, 'megadropdown-open': this.megadropdownOpen } }, h("div", { key: 'd14e65de2b78d22e0907d2656cc013ca1fff6458', class: "section" }, h("slot", { key: 'd7aed65dcb8f41003f59630480fbac305583ee1c', name: "title" }), this.hasTitle && h("slot", { key: '3805a85dfed19b326e9cdd05992303c781e8880b', name: "local-nav" }), onDesktop && h("slot", { key: 'abd3f8196bef4bbda2176d4bef3c3e0b8ea2d4a5', name: "main-nav" }), onDesktop && !this.hasTitle && h("slot", { key: '55d3aa634eb1fb6165e25ebc1a8a9ecc4878ea1b', name: "local-nav" }))), this.hasBurgerMenu && this.renderBurgerMenu())));
314
+ return (h(Host, { key: '3a016b6739ecd18aa06908b9afad8687d4a712c1', "data-version": version, "data-color-scheme": "light", "data-burger-menu": this.hasBurgerMenu, "data-menu-extended": this.burgerMenuExtended }, h("header", { key: '7066f5c25151411f0278fd533b94f58c33639734' }, h("div", { key: '983c81fbf93d290ea922ef096cd3975dbe50f2cf', class: "global-header" }, h("div", { key: '544c383fdaa252e7830ad516817f76c078b5f470', class: "section" }, h("div", { key: 'c40d977c47523dd9e77189e6cdc6bd2244efd494', class: "logo" }, h("slot", { key: 'bbf8224f6175164fcfdbd2a3ff82e716e95f2625', name: "post-logo" })), h("div", { key: '12b86a5d0a1e699bea709843dcc1fc5c337c0f5f', class: "sliding-controls" }, onDesktop && (h("div", { key: 'e61e9dd6d8b71c2dc85585474cd8c706298134f7', class: "audience" }, h("slot", { key: 'cda29d61263c8db64871bbdd024082e7fe85e981', name: "audience" }))), h("slot", { key: '003dcc8c02571ae211ae5533bbf497294742b72d', name: "global-nav-primary" }), (onDesktop || !this.hasMainNav) && [
315
+ h("slot", { key: 'b29102d85a0f072f0180fc31a98926e65e8f5787', name: "global-nav-secondary" }),
316
+ h("slot", { key: '5b026ad48db5d9cd1965d2fe3738a76643221ae9', name: "language-menu" }),
317
+ ], h("slot", { key: '689a024322afc2104e904692653aaa29a58f37cb', name: "post-login" }), onTabletAndMobile && this.hasMainNav && (h("post-togglebutton", { key: '3abdb29b313a7f87d7a5db4016dbca6c2db245ab', class: "burger-button", ref: el => (this.burgerMenuButton = el), onClick: () => this.toggleBurgerMenu() }, h("span", { key: 'dbc87e156c0517bbb248a4a64722a390a80fce4f' }, this.textMenu), h("post-icon", { key: 'da8b9e64e10d99a2d6f9228fb2646c03392468e2', "aria-hidden": "true", name: "burger", "data-showwhen": "untoggled" }), h("post-icon", { key: '3122703175ff68eed014a025939a1021fcb39343', "aria-hidden": "true", name: "closex", "data-showwhen": "toggled" })))))), h("div", { key: 'ce46d99d627c827a19b173a566c6000b708c8fc3', ref: el => (this.localHeader = el), class: { 'local-header': true, 'megadropdown-open': this.megadropdownOpen } }, h("div", { key: 'e11916e8674ca5154b3d2926f68f38760ae0a8ed', class: "section" }, h("slot", { key: '001da677105c63d3e491af0ce96d9cb44073addd', name: "side-nav" }), h("slot", { key: '1dd01962688baba6001bb1b0d2e6f12a1bd9ecee', name: "title" }), this.hasTitle && h("slot", { key: 'bf80e01e8559b857a86b6c4a47f890c75881c1ac', name: "local-nav" }), onDesktop && h("slot", { key: '9a23f56489ec5183a30db3556a2dc643681ab6d5', name: "main-nav" }), onDesktop && !this.hasTitle && h("slot", { key: '730782e3a41cb80427ef97a1c452f0de588c62e2', name: "local-nav" }))), this.hasBurgerMenu && this.renderBurgerMenu())));
317
318
  }
318
319
  static get is() { return "post-header"; }
319
320
  static get encapsulation() { return "shadow"; }
@@ -102,7 +102,7 @@ export class PostIcon {
102
102
  }).filter(([_key, value]) => value !== null));
103
103
  }
104
104
  render() {
105
- return (h(Host, { key: '405ccfde4206c14f044575d0b23998d93a03ffb6', "data-version": version }, h("span", { key: 'ad70ccf63add4b881ef6096ae460e13fba09f508', style: this.getStyles() })));
105
+ return (h(Host, { key: 'ce81db69bf77d09a0a331bac48cdaede7ff3cb8e', "data-version": version }, h("span", { key: '211f999da845687289fd991421f4315a090a67ba', style: this.getStyles() })));
106
106
  }
107
107
  static get is() { return "post-icon"; }
108
108
  static get encapsulation() { return "shadow"; }
@@ -31,9 +31,11 @@ export class PostLanguageMenu {
31
31
  get description() {
32
32
  const activeLanguage = this.activeLang &&
33
33
  document.querySelector(`post-language-menu-item[code="${this.activeLang}"]`);
34
- return activeLanguage
35
- ? this.textCurrentLanguage.replaceAll('#name', activeLanguage.name)
36
- : undefined;
34
+ if (!activeLanguage)
35
+ return undefined;
36
+ return this.textCurrentLanguage
37
+ .replaceAll('{name}', activeLanguage.name)
38
+ .replaceAll('#name', activeLanguage.name);
37
39
  }
38
40
  componentDidLoad() {
39
41
  // Initially set variants and active language
@@ -131,7 +133,7 @@ export class PostLanguageMenu {
131
133
  "optional": false,
132
134
  "docs": {
133
135
  "tags": [],
134
- "text": "An accessible description text for the list of language options. The `#name` placeholder is dynamic and will be replaced with the active language name."
136
+ "text": "An accessible description text for the list of language options.\nThe `{name}` placeholder is dynamic and will be replaced with the active language name."
135
137
  },
136
138
  "getter": false,
137
139
  "setter": false,
@@ -207,7 +209,7 @@ __decorate([
207
209
  ], PostLanguageMenu.prototype, "textChangeLanguage", void 0);
208
210
  __decorate([
209
211
  Required(),
210
- Pattern(/#name\b/)
212
+ Pattern(/(\{name\}|#name)/)
211
213
  ], PostLanguageMenu.prototype, "textCurrentLanguage", void 0);
212
214
  __decorate([
213
215
  OneOf(SWITCH_VARIANTS)
@@ -55,7 +55,7 @@ export class PostLinkarea {
55
55
  }
56
56
  }
57
57
  render() {
58
- return (h(Host, { key: 'fc3ddb24df6e4077e99e41f2f7df12ada959806b', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: 'ed83fbafaf9f4807d523c209f15310fd205a1b3f' })));
58
+ return (h(Host, { key: 'cb2563465ebe024e8e98539c27c7a8d7084229d3', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: '68fc1468da418e4ed38e89cbf7ef932f819993dd' })));
59
59
  }
60
60
  static get is() { return "post-linkarea"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -129,7 +129,7 @@ export class PostListbox {
129
129
  this.updateSelection(event.detail);
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: 'fc476c9f1a3478871604e83c178efd5eb19ef003', "data-version": version, role: "listbox" }, h("post-popovercontainer", { key: '8242a45777bcab5d9afb37133726d85798f9b626', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, this.visibleOptions.length === 0 ? h("slot", { name: "blank-slate" }) : h("slot", null))));
132
+ 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))));
133
133
  }
134
134
  static get is() { return "post-listbox"; }
135
135
  static get encapsulation() { return "shadow"; }
@@ -9,9 +9,9 @@ export class PostListboxOption {
9
9
  this.highlighted = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'c75cfbe7dd678bc79931c65981141df651370325', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
12
+ return (h(Host, { key: 'ff0e773f8a89f9df3996a83cd2be6247c1ab5475', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
13
13
  /* Prevent focus change from triggering onblur event in post-autocomplete */
14
- onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: '52f70e122b62c91fed65b4a20174bd1b8b0f2738', class: "option-content" }, this.value, h("span", { key: '32ace82d3a5058b3a3edee55b8b46594c3fca38a', class: "option-description" }, h("slot", { key: '46aab0eeed22f99778924a5d97a92c7d95359939' }))), this.selected && h("post-icon", { key: 'ac64dc0afbec858119ad2e7077712a6dd40fa6c9', "aria-hidden": "true", name: "checkmark" })));
14
+ 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" })));
15
15
  }
16
16
  static get is() { return "post-listbox-option"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -26,7 +26,7 @@ export class PostLogo {
26
26
  render() {
27
27
  const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
28
28
  const LogoTag = logoLink ? 'a' : 'span';
29
- return (h(Host, { key: '473c845bef6d123628bf52b7848475b50172e3c0', "data-version": version }, h(LogoTag, { key: '47503ff9c22b613c5041d51a48cfc158d0edebcd', class: `logo ${logoLink ? 'logo-link' : ''}`, ...(logoLink ? { href: logoLink } : {}) }, h("span", { key: '52953139bad89e236fc922574a881b7f4b79aee5', class: "description" }, h("slot", { key: '554c681236c4d158d967f97754134af774ec791e', onSlotchange: () => this.checkDescription() })), h("svg", { key: '3d65f3a44c46f8ba3810d0cd3c344577fb43a61e', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: '03f88fbf5710da7f0bbccafdb95c4faa93e2636a', id: "Logo" }, h("rect", { key: '33f39db4fb799744d25fae33f0b6a921c331531a', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '93c248b53c7493a831d7b1ddf8b3e3d14d804779', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: 'dbdfa4a5f215e578c9f9cfc65f0cfb5d26b02848', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
29
+ return (h(Host, { key: '84ece8e71d7dec66aa634d9a8a37d6bf3197c1b6', "data-version": version }, h(LogoTag, { key: '1531c6e8f32d42e63f5482d2983f18e4c9a23b1a', class: `logo ${logoLink ? 'logo-link' : ''}`, ...(logoLink ? { href: logoLink } : {}) }, h("span", { key: 'd45d33329e30de0de9de56f2d588995a7f97d01e', class: "description" }, h("slot", { key: 'e8665c8d739dc2a2968bf1193c26ba1d1e731b38', onSlotchange: () => this.checkDescription() })), h("svg", { key: 'bb3f534952e29e2e43816c5a5dd55541d05bee26', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: '9ca05c263f6c9f41cc5406ccfd030a713ffe0254', id: "Logo" }, h("rect", { key: '30a59adc0eec11af2d90180da1f5a95b03175d21', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: 'b1cbe7c575d36cf26a1cc41c9124625c2d1e5ef1', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: '398027f23c8c9a4cf2bc7f8d7c8aa4ec0466f0be', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
30
30
  }
31
31
  static get is() { return "post-logo"; }
32
32
  static get encapsulation() { return "shadow"; }
@@ -129,7 +129,7 @@ export class PostMainnavigation {
129
129
  }, NAVBAR_DISABLE_DURATION);
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: '057f526f5b0e931fcb8642e6fa034f441df43020', version: version, class: this.canScroll ? 'scrollable' : '' }, h("div", { key: 'c8ce70f6cbeec58c77709c1736b013ffe09ead6f', "aria-hidden": "true", class: { 'scroll-control scroll-left': true, 'd-none': !this.canScrollLeft }, onMouseDown: e => this.handleScrollButtonClick(e, 'left') }, h("post-icon", { key: '8281914d3380920a5562b468e87c87ca196a4830', "aria-hidden": "true", name: "chevronleft" })), h("nav", { key: '7720c24a70339ea1c984dedf2faba0de8a6cfc86', ref: el => (this.navbar = el), "aria-label": this.textMain }, h("slot", { key: '3812be77ea739aac2be90cf8e7ac9a7e32bf5fce' })), h("div", { key: 'eda43d3b2e1d8f916275773d9ef93d364e9c1948', "aria-hidden": "true", class: { 'scroll-control scroll-right': true, 'd-none': !this.canScrollRight }, onMouseDown: e => this.handleScrollButtonClick(e, 'right') }, h("post-icon", { key: '914d94f91fe1764cf64e73fc22e4f7c5a0e08c2a', "aria-hidden": "true", name: "chevronright" }))));
132
+ return (h(Host, { key: '2e9f2361426298f620411b1d064e166992ba326e', version: version, class: this.canScroll ? 'scrollable' : '' }, h("div", { key: '10103d153e37fd591c2ce062ef7455228adbf5b9', "aria-hidden": "true", class: { 'scroll-control scroll-left': true, 'd-none': !this.canScrollLeft }, onMouseDown: e => this.handleScrollButtonClick(e, 'left') }, h("post-icon", { key: '8bb9b82626d05c1fe8f4fd1bb9f8e6d6be59ad8a', "aria-hidden": "true", name: "chevronleft" })), h("nav", { key: '6905afe8c2dfcf0f2411b45237b52d63f187d2c9', ref: el => (this.navbar = el), "aria-label": this.textMain }, h("slot", { key: '2db905e52b1604d9c6097734d055100a58625f09' })), h("div", { key: 'f8ec4f906f1c99fec2198bb350ac1735c2de8469', "aria-hidden": "true", class: { 'scroll-control scroll-right': true, 'd-none': !this.canScrollRight }, onMouseDown: e => this.handleScrollButtonClick(e, 'right') }, h("post-icon", { key: 'afed8c1778691ca5b849d78ee20d51a4b8c02fe6', "aria-hidden": "true", name: "chevronright" }))));
133
133
  }
134
134
  static get is() { return "post-mainnavigation"; }
135
135
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- *,::before,::after{box-sizing:border-box}.megadropdown{position:absolute;inset-inline:0;overflow-y:auto;box-shadow:var(--post-device-elevation-300)}@media screen and (min-width: 1024px){.megadropdown{background-color:#f0efed;z-index:-1;inset-block-start:100%}.megadropdown.slide-in{animation:slide-down 350ms forwards}.megadropdown.slide-out{animation:slide-up 350ms forwards}}@media screen and (max-width: 1023.98px){.megadropdown{background-color:#fafafa;z-index:1;inset-block-start:var(--post-header-navigation-current-inset);overscroll-behavior:contain}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown{border-block-end:1px solid CanvasText}}.section{width:100%;max-width:var(--post-header-content-max-width);margin-inline:auto;position:relative}@media screen and (min-width: 1024px){.section{max-height:calc(100vh - var(--post-header-height) - 3rem);padding:3rem 2.5rem 2.5rem}}@media screen and (max-width: 1023.98px){.section{display:flex;flex-direction:column;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));padding-inline:var(--post-burger-menu-padding-inline);padding-block:1.5rem}}.megadropdown-title{margin-block:0 1rem;font-weight:950}@media screen and (min-width: 600px)and (max-width: 1023.98px){.megadropdown-title{font-size:1.25rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.megadropdown-title{font-size:1.125rem}}.back-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;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);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);order:-1;width:fit-content;padding-inline:0}.back-button:not(:disabled):hover{text-decoration:none}.back-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.back-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}.back-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){.back-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.back-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){.back-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){.back-button:is(a){color:LinkText;border:unset}.back-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.back-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.back-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.back-button>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.back-button: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)}@media screen and (min-width: 600px)and (max-width: 1023.98px){.back-button{margin-block-end:2rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.back-button{margin-block-end:1.5rem}}.close-button{position:absolute;inset-block-start:.5rem;inset-inline-end:.5rem}@media screen and (max-width: 1023.98px){.close-button{display:none}}
1
+ *,::before,::after{box-sizing:border-box}.megadropdown{position:absolute;inset-inline:0;overflow-y:auto;box-shadow:var(--post-device-elevation-300)}@media screen and (min-width: 1024px){.megadropdown{max-height:calc(100vh - var(--post-header-height) - 3rem);background-color:#f0efed;z-index:-1;inset-block-start:100%}.megadropdown.slide-in{animation:slide-down 350ms forwards}.megadropdown.slide-out{animation:slide-up 350ms forwards}}@media screen and (max-width: 1023.98px){.megadropdown{background-color:#fafafa;z-index:1;inset-block-start:var(--post-header-navigation-current-inset);overscroll-behavior:contain}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown{border-block-end:1px solid CanvasText}}.section{width:100%;max-width:var(--post-header-content-max-width);margin-inline:auto;position:relative}@media screen and (min-width: 1024px){.section{padding:3rem 2.5rem 2.5rem}}@media screen and (max-width: 1023.98px){.section{display:flex;flex-direction:column;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));padding-inline:var(--post-burger-menu-padding-inline);padding-block-start:1.5rem}}@media screen and (max-width: 1023.98px){.section .megadropdown-content{padding-block-end:1.5rem}}.megadropdown-title{margin-block:0 1rem;font-weight:950}@media screen and (min-width: 600px)and (max-width: 1023.98px){.megadropdown-title{font-size:1.25rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.megadropdown-title{font-size:1.125rem}}.back-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;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);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);order:-1;width:fit-content;padding-inline:0}.back-button:not(:disabled):hover{text-decoration:none}.back-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.back-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}.back-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){.back-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.back-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){.back-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){.back-button:is(a){color:LinkText;border:unset}.back-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.back-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.back-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.back-button>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.back-button: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)}@media screen and (min-width: 600px)and (max-width: 1023.98px){.back-button{margin-block-end:2rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.back-button{margin-block-end:1.5rem}}.close-button{position:absolute;inset-block-start:.5rem;inset-inline-end:.5rem}@media screen and (max-width: 1023.98px){.close-button{display:none}}
@@ -295,7 +295,7 @@ export class PostMegadropdown {
295
295
  }
296
296
  render() {
297
297
  const containerStyle = this.isVisible ? {} : { display: 'none' };
298
- return (h(Host, { key: '8c6cd70082c2cdd9c208ad1ef138a21463919547', version: version }, h("div", { key: 'ff9466a7e28e894f56c9ab22d3999f68366a4aee', ref: el => (this.animatedContainer = el), class: "megadropdown", style: containerStyle }, h("div", { key: '13a7b44deceb6a83842d324b012f34adc6606de6', class: "section" }, this.device !== 'desktop' && this.megadropdownTitle && (h("p", { key: '78cfcb708ad60f12203bc34b58915665b4b5b3ef', class: "megadropdown-title" }, this.megadropdownTitle)), h("div", { key: 'e78eb79d9806d23fa75184f1ad9f2f7eef318297', class: "megadropdown-content" }, h("slot", { key: 'e7008833f9700059a189665a19371f52b7ab9ed6' })), this.device === 'desktop' ? (h("post-closebutton", { onClick: () => this.hide(true), class: "close-button", size: "small", placement: "manual" }, this.textClose)) : (h("button", { onClick: () => this.hide(true), class: "back-button" }, h("post-icon", { name: "arrowleft" }), this.textBack))))));
298
+ return (h(Host, { key: 'e2f7cac1fd168c54334a7c2584ce07f387457c77', version: version }, h("div", { key: '5bd9e9d856c3038d30246e913b51348097507f21', ref: el => (this.animatedContainer = el), class: "megadropdown", style: containerStyle }, h("div", { key: '13bf455331b1921f5e12fa0ebac27261bc608e89', class: "section" }, this.device !== 'desktop' && this.megadropdownTitle && (h("p", { key: '75985254f1217f0f6d138fa14aa6af228ee1d0f5', class: "megadropdown-title" }, this.megadropdownTitle)), h("div", { key: '2bb4219a62f7de1236f8208bdd01f22fd00dab00', class: "megadropdown-content" }, h("slot", { key: 'ad3c1b6e6ad5bc07e64f829a68fb933db1fc5016' })), this.device === 'desktop' ? (h("post-closebutton", { onClick: () => this.hide(true), class: "close-button", size: "small", placement: "manual" }, this.textClose)) : (h("button", { onClick: () => this.hide(true), class: "back-button" }, h("post-icon", { name: "arrowleft" }), this.textBack))))));
299
299
  }
300
300
  static get is() { return "post-megadropdown"; }
301
301
  static get encapsulation() { return "shadow"; }
@@ -71,7 +71,7 @@ export class PostMegadropdownTrigger {
71
71
  this.megadropdown.toggle();
72
72
  }
73
73
  render() {
74
- return (h(Host, { key: '96f2859be8fab445dab5c62619537777db0bfa44', "data-version": version }, h("button", { key: '0ff54f82520a40978cac57af2adeb23beff3545d', ref: el => (this.interactiveButton = el), type: "button", "aria-haspopup": "menu", "aria-expanded": this.isMegadropdownExpanded.toString(), onClick: this.onClick.bind(this), onKeyDown: this.onKeyDown.bind(this), class: { active: this.active } }, h("span", { key: '327b760b66b35e0b4442bc950b202e73842b131e' }, h("span", { key: '265a6fb86a3bf12357ac58cc1887a32738b40710', innerHTML: this.slottedContent }), h("span", { key: '0ddcb317aed396d305b00d6e61a10b98f40ed78b', "aria-hidden": "true" }, h("slot", { key: '458df53ef32b64de8c4e6cb78263423ad59fa18b' }))), h("post-icon", { key: '2da566858b7ffa965da9cac2436dfd38a818eb47', name: "chevrondown" }))));
74
+ return (h(Host, { key: '40d8afcb6b0ec482c0a13f7b78493a66243e03a5', "data-version": version }, h("button", { key: '6c1362cd4e1af22d26cf9ae74af4092cd083360c', ref: el => (this.interactiveButton = el), type: "button", "aria-haspopup": "menu", "aria-expanded": this.isMegadropdownExpanded.toString(), onClick: this.onClick.bind(this), onKeyDown: this.onKeyDown.bind(this), class: { active: this.active } }, h("span", { key: '6bd7d94da2055c1c6fb933402f2478a3cee12cc7' }, h("span", { key: '8109bdcc23c4a0f8c0861b774a974dde75b464f3', innerHTML: this.slottedContent }), h("span", { key: 'edd54adde0d7af4eb9cf7796183d01705d217500', "aria-hidden": "true" }, h("slot", { key: 'dbcc08bb882273f1074dd8963a4b86f67deb0c0a' }))), h("post-icon", { key: '7437573a492181cc3e5ddd59ac3695dc94d43e09', name: "chevrondown" }))));
75
75
  }
76
76
  static get is() { return "post-megadropdown-trigger"; }
77
77
  static get encapsulation() { return "shadow"; }
@@ -68,7 +68,8 @@ export class PostMenu {
68
68
  this.host.removeEventListener('click', this.handleClick);
69
69
  }
70
70
  /**
71
- * Toggles the menu visibility based on its current state.
71
+ * Toggles the menu visibility based on its current state,
72
+ * `target` is the HTML element the menu is anchored to.
72
73
  */
73
74
  async toggle(target) {
74
75
  if (this.popoverRef) {
@@ -79,9 +80,8 @@ export class PostMenu {
79
80
  }
80
81
  }
81
82
  /**
82
- * Displays the popover menu, focusing the first menu item.
83
- *
84
- * @param target - The HTML element relative to which the popover menu should be displayed.
83
+ * Displays the popover menu, focusing the first menu item,
84
+ * `target` is the HTML element the menu is anchored to.
85
85
  */
86
86
  async show(target) {
87
87
  if (this.popoverRef) {
@@ -184,7 +184,7 @@ export class PostMenu {
184
184
  ]));
185
185
  }
186
186
  render() {
187
- return (h(Host, { key: '8fcf0b2ede074a0a064b788d7db9b31edf1f7930', "data-version": version }, h("post-popovercontainer", { key: '0aef5d7f34e88c3d52e78580574d7b8eab815d2d', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: 'ec1c4084ecb167bf43cb01dd52ff71e73157527f', part: "post-menu" }, h("slot", { key: '998c1abaa7ee342ef73ad6462acde0230604e4e6', name: "header" }), h("slot", { key: 'ddf3d00d03077de2c5bd5629e811bdeaa975bd4a' })))));
187
+ return (h(Host, { key: '31142d851d591bc46a43f36b553b6c7abee90674', "data-version": version }, h("post-popovercontainer", { key: '6b4b2a04b25904115fe1c337e73e382a4e162259', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '1284650d5796455201d55e1ecad3507518c7c32c', part: "post-menu" }, h("slot", { key: 'b2dbd125a631c06a591e67c52fd61524bcf037ea', name: "header" }), h("slot", { key: '3b15ec3ad5a25e2e22b6e26e17d9d2d76e9f64fb' })))));
188
188
  }
189
189
  static get is() { return "post-menu"; }
190
190
  static get encapsulation() { return "shadow"; }
@@ -294,7 +294,7 @@ export class PostMenu {
294
294
  "return": "Promise<void>"
295
295
  },
296
296
  "docs": {
297
- "text": "Toggles the menu visibility based on its current state.",
297
+ "text": "Toggles the menu visibility based on its current state,\n`target` is the HTML element the menu is anchored to.",
298
298
  "tags": []
299
299
  }
300
300
  },
@@ -304,7 +304,7 @@ export class PostMenu {
304
304
  "parameters": [{
305
305
  "name": "target",
306
306
  "type": "HTMLElement",
307
- "docs": "- The HTML element relative to which the popover menu should be displayed."
307
+ "docs": ""
308
308
  }],
309
309
  "references": {
310
310
  "Promise": {
@@ -319,11 +319,8 @@ export class PostMenu {
319
319
  "return": "Promise<void>"
320
320
  },
321
321
  "docs": {
322
- "text": "Displays the popover menu, focusing the first menu item.",
323
- "tags": [{
324
- "name": "param",
325
- "text": "target - The HTML element relative to which the popover menu should be displayed."
326
- }]
322
+ "text": "Displays the popover menu, focusing the first menu item,\n`target` is the HTML element the menu is anchored to.",
323
+ "tags": []
327
324
  }
328
325
  },
329
326
  "hide": {
@@ -65,7 +65,7 @@ export class PostMenuTrigger {
65
65
  return null;
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: '3aa1f5576b030765aafe7cd1f4df773b27a91265', "data-version": version }, h("slot", { key: '3d2dbe578601244b1a65960e26a2da3f2a62ecbc' })));
68
+ return (h(Host, { key: '8f43fe80dd56550141481f157a06caf559494291', "data-version": version }, h("slot", { key: '1b5d220cff9894918aedc54b0585df75095dcb0e' })));
69
69
  }
70
70
  static get is() { return "post-menu-trigger"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -73,6 +73,7 @@ export class PostNumberInput {
73
73
  const stepFn = isIncrementing ? this.input.stepUp : this.input.stepDown;
74
74
  stepFn.call(this.input);
75
75
  }
76
+ this.input.dispatchEvent(new Event('input', { bubbles: true }));
76
77
  this.updateStepButtonState();
77
78
  });
78
79
  }
@@ -88,10 +89,10 @@ export class PostNumberInput {
88
89
  }
89
90
  render() {
90
91
  const areButtonsShown = !!this.input;
91
- return (h(Host, { key: '1de11525fae384024130cc17e51f551b1757c418', "data-version": version, class: {
92
+ return (h(Host, { key: '59cbe12c66b0eabbff15a3110ee847396df2d261', "data-version": version, class: {
92
93
  'number-input-sm': this.small,
93
94
  'disabled': this.isDisabled,
94
- } }, areButtonsShown && (h("div", { key: '4a0f759a7f9b734ee938d21ccd84402063a69873', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: '73ad0f312ca606e856c5c33af3e06f9f9721c0ac', name: "minus" }))), h("div", { key: 'caacae681967a3a59772ad87add6dc47ef963418', class: "input-container" }, h("slot", { key: 'a08988105a441793d0181c1d6c9def6d3741f56c', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '609462bfa8e21f245e44864ac815dc7e0ee37c63', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: '5da1e4f67d50dfa0bcb893fe8603da8f2532334c', name: "plus" })))));
95
+ } }, 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" })))));
95
96
  }
96
97
  static get is() { return "post-number-input"; }
97
98
  static get encapsulation() { return "shadow"; }
@@ -30,8 +30,8 @@ export class PostPopover {
30
30
  this.arrow = true;
31
31
  }
32
32
  /**
33
- * Programmatically display the popover
34
- * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
33
+ * Programmatically display the popover,
34
+ * `target` is the HTML element the menu is anchored to.
35
35
  */
36
36
  async show(target) {
37
37
  await this.popoverRef.show(target);
@@ -44,9 +44,8 @@ export class PostPopover {
44
44
  this.popoverRef.hide();
45
45
  }
46
46
  /**
47
- * Toggle popover display
48
- * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
49
- * @param force Pass true to always show or false to always hide
47
+ * Toggle popover display,
48
+ * `target` is the HTML element the menu is anchored to.
50
49
  */
51
50
  async toggle(target, force) {
52
51
  const isOpen = await this.popoverRef.toggle(target, force);
@@ -62,7 +61,7 @@ export class PostPopover {
62
61
  }
63
62
  }
64
63
  render() {
65
- return (h(Host, { key: 'f48f602235071a8621157c99aa86076e8268b5b4', "data-version": version }, h("post-popovercontainer", { key: 'f0be96900bd0e16f2ee8f7937cfa533f510dbd07', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '716b83cad71dbb09dde75c00aa4c8628d7903315', class: "popover-container" }, h("div", { key: '4a15c86977488ba68796ed16175c72ef9ea16a7b', class: "popover-content" }, h("slot", { key: 'afd56e2077ed319e1bfbdaabfc8e19395f4f3959' })), h("post-closebutton", { key: 'd62b6940c68872d8520e4a69c7411479b9698315', onClick: () => this.hide() }, this.textClose)))));
64
+ 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)))));
66
65
  }
67
66
  static get is() { return "post-popover"; }
68
67
  static get encapsulation() { return "shadow"; }
@@ -154,7 +153,7 @@ export class PostPopover {
154
153
  "parameters": [{
155
154
  "name": "target",
156
155
  "type": "HTMLElement",
157
- "docs": "A focusable element inside the <post-popover-trigger> component that controls the popover"
156
+ "docs": ""
158
157
  }],
159
158
  "references": {
160
159
  "Promise": {
@@ -169,11 +168,8 @@ export class PostPopover {
169
168
  "return": "Promise<void>"
170
169
  },
171
170
  "docs": {
172
- "text": "Programmatically display the popover",
173
- "tags": [{
174
- "name": "param",
175
- "text": "target A focusable element inside the <post-popover-trigger> component that controls the popover"
176
- }]
171
+ "text": "Programmatically display the popover,\n`target` is the HTML element the menu is anchored to.",
172
+ "tags": []
177
173
  }
178
174
  },
179
175
  "hide": {
@@ -199,11 +195,11 @@ export class PostPopover {
199
195
  "parameters": [{
200
196
  "name": "target",
201
197
  "type": "HTMLElement",
202
- "docs": "A focusable element inside the <post-popover-trigger> component that controls the popover"
198
+ "docs": ""
203
199
  }, {
204
200
  "name": "force",
205
201
  "type": "boolean",
206
- "docs": "Pass true to always show or false to always hide"
202
+ "docs": ""
207
203
  }],
208
204
  "references": {
209
205
  "Promise": {
@@ -218,14 +214,8 @@ export class PostPopover {
218
214
  "return": "Promise<void>"
219
215
  },
220
216
  "docs": {
221
- "text": "Toggle popover display",
222
- "tags": [{
223
- "name": "param",
224
- "text": "target A focusable element inside the <post-popover-trigger> component that controls the popover"
225
- }, {
226
- "name": "param",
227
- "text": "force Pass true to always show or false to always hide"
228
- }]
217
+ "text": "Toggle popover display,\n`target` is the HTML element the menu is anchored to.",
218
+ "tags": []
229
219
  }
230
220
  }
231
221
  };
@@ -107,7 +107,7 @@ export class PostPopoverTrigger {
107
107
  this.popover?.removeEventListener('postToggle', this.boundHandlePostToggle);
108
108
  }
109
109
  render() {
110
- return (h(Host, { key: '999ec824514eb6e340fd607ce03d82c76354e102', "data-version": version }, h("slot", { key: '3429ab6e44441c2660c14c40436682b5ac49a1b6', onSlotchange: () => this.setupTrigger() })));
110
+ return (h(Host, { key: '009495ba354321f2b0162c4a0c4fcb1e165074e7', "data-version": version }, h("slot", { key: 'f0e5ef7851b4bc9916382b0910d9500db52668d4', onSlotchange: () => this.setupTrigger() })));
111
111
  }
112
112
  static get is() { return "post-popover-trigger"; }
113
113
  static get encapsulation() { return "shadow"; }
@@ -72,10 +72,10 @@ export class PostPopovercontainer {
72
72
  }
73
73
  /**
74
74
  * Programmatically display the popovercontainer
75
- * @param target A focusable element inside the trigger component that controls the popover
75
+ * @param target The element that invokes the popover and to which it is visually anchored.
76
76
  */
77
77
  async show(target) {
78
- if (this.toggleTimeoutId)
78
+ if (this.toggleTimeoutId || !target)
79
79
  return;
80
80
  this.eventTarget = target;
81
81
  this.calculatePosition();
@@ -93,10 +93,14 @@ export class PostPopovercontainer {
93
93
  }
94
94
  /**
95
95
  * Toggle popovercontainer display
96
- * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
96
+ * @param target The element that invokes the popover and to which it is visually anchored.
97
97
  * @param force Pass true to always show or false to always hide
98
98
  */
99
99
  async toggle(target, force) {
100
+ const isOpen = this.host.matches(':where(:popover-open, .popover-open)');
101
+ const willOpen = force === true || (force === undefined && !isOpen);
102
+ if (willOpen && !target)
103
+ return isOpen;
100
104
  this.eventTarget = target;
101
105
  // Prevent instant double toggle
102
106
  if (!this.toggleTimeoutId) {
@@ -344,9 +348,9 @@ export class PostPopovercontainer {
344
348
  }
345
349
  }
346
350
  render() {
347
- return (h(Host, { key: '4fc0f306903c914a632d6ee72d9aaa69f9b60140', "data-version": version, popover: "auto" }, h("div", { key: 'd411b6f9dcb622cc1dfc829c19f69c73e9ad57d6', part: "post-popovercontainer-content", class: "popover-content" }, this.arrow && (h("span", { key: 'bf3e926a44c33b1aa7306be289f695e4b0007370', "dynamic-placement": this.dynamicPlacement, class: "arrow", ref: el => {
351
+ return (h(Host, { key: 'be9f32a35f247f5b2cb54599b96e715ce1a5a1f1', "data-version": version, popover: "auto" }, h("div", { key: 'ad2616c15dfec83e1e53ad14cb145aee2d625c9a', part: "post-popovercontainer-content", class: "popover-content" }, this.arrow && (h("span", { key: '293ba9d1ba2a7b57297cd4aa716ba1369b2f8988', "dynamic-placement": this.dynamicPlacement, class: "arrow", ref: el => {
348
352
  this.arrowRef = el;
349
- } })), h("span", { key: '1c8256005b2fda27460c961ec6eea3f76075af20', part: "post-popovercontainer-border-mask" }), h("slot", { key: '0463879c1a444bcef8d6e6e48fe036ab764cef73' }))));
353
+ } })), h("span", { key: '7b9d47b53a4d4a672490eccdc88a7eb0552b5574', part: "post-popovercontainer-border-mask" }), h("slot", { key: '4b4249d6ebe1c247634bbb76b08ec01e73dc7d4b' }))));
350
354
  }
351
355
  static get is() { return "post-popovercontainer"; }
352
356
  static get encapsulation() { return "shadow"; }
@@ -560,7 +564,7 @@ export class PostPopovercontainer {
560
564
  "parameters": [{
561
565
  "name": "target",
562
566
  "type": "HTMLElement",
563
- "docs": "A focusable element inside the trigger component that controls the popover"
567
+ "docs": "The element that invokes the popover and to which it is visually anchored."
564
568
  }],
565
569
  "references": {
566
570
  "Promise": {
@@ -578,7 +582,7 @@ export class PostPopovercontainer {
578
582
  "text": "Programmatically display the popovercontainer",
579
583
  "tags": [{
580
584
  "name": "param",
581
- "text": "target A focusable element inside the trigger component that controls the popover"
585
+ "text": "target The element that invokes the popover and to which it is visually anchored."
582
586
  }]
583
587
  }
584
588
  },
@@ -605,7 +609,7 @@ export class PostPopovercontainer {
605
609
  "parameters": [{
606
610
  "name": "target",
607
611
  "type": "HTMLElement",
608
- "docs": "A focusable element inside the <post-popover-trigger> component that controls the popover"
612
+ "docs": "The element that invokes the popover and to which it is visually anchored."
609
613
  }, {
610
614
  "name": "force",
611
615
  "type": "boolean",
@@ -627,7 +631,7 @@ export class PostPopovercontainer {
627
631
  "text": "Toggle popovercontainer display",
628
632
  "tags": [{
629
633
  "name": "param",
630
- "text": "target A focusable element inside the <post-popover-trigger> component that controls the popover"
634
+ "text": "target The element that invokes the popover and to which it is visually anchored."
631
635
  }, {
632
636
  "name": "param",
633
637
  "text": "force Pass true to always show or false to always hide"
@@ -43,7 +43,7 @@ export class PostProgressbar {
43
43
  const max = this.getEffectiveMax();
44
44
  const value = this.getEffectiveValue(min, max);
45
45
  const percentage = ((value - min) / (max - min)) * 100;
46
- 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}%` } })));
46
+ 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}%` } })));
47
47
  }
48
48
  static get is() { return "post-progressbar"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -83,7 +83,7 @@ export class PostRating {
83
83
  }
84
84
  }
85
85
  render() {
86
- 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: {
86
+ 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: {
87
87
  'star': true,
88
88
  'before-hover': i < this.hoveredIndex,
89
89
  'active': i < Math.round(this.currentRating),
@@ -1 +1 @@
1
- :host{display:flex;background-color:#f0efed}:host dialog{overflow-y:auto;bottom:auto;right:auto;border:none;padding-inline:0;padding-block:40px;height:100vh;background-color:#f0efed}@media screen and (min-width: 1024px){:host{max-width:35ch;width:35ch}}
1
+ :host{--post-side-navigation-padding-block-start: 34px;--post-side-navigation-padding-block-end: 16px;--post-side-navigation-bg: #f0efed;--post-side-navigation-stroke: #b4b3af;display:flex;background-color:var(--post-side-navigation-bg);border-inline-end:1px solid var(--post-side-navigation-stroke)}:host dialog{overflow:visible;width:var(--post-side-navigation-width);bottom:auto;right:auto;border:none;padding:0;max-height:100dvh;background-color:var(--post-side-navigation-bg);border-inline-end:1px solid var(--post-side-navigation-stroke)}@media screen and (max-width: 1023.98px){:host dialog{box-shadow:var(--post-device-elevation-300)}}:host post-closebutton{transform:translate(50%, 0)}
@@ -11,13 +11,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
11
11
  import { h, Host, } from "@stencil/core";
12
12
  import { version } from "../../../../package";
13
13
  import { breakpoint } from "../../utils/breakpoints";
14
- import { getFocusableChildren, Required, Type } from "../../utils/index";
14
+ import { getFocusableChildren, OneOf, Required, Type } from "../../utils/index";
15
+ import { SIDE_NAVIGATION_SIZES } from "./side-navigation-styles";
15
16
  /**
16
17
  * @slot default - Slot for the navigation content (must be a `<nav>` landmark with proper heading)
17
18
  */
18
19
  export class PostSideNavigation {
19
20
  constructor() {
20
21
  this.device = breakpoint.get('device');
22
+ /**
23
+ * Controls the size of the navigation items.
24
+ * Choose "small" for deep and long navigation, and "large" (default) for a flat and short navigation.
25
+ */
26
+ this.size = 'large';
21
27
  this.breakpointChange = (e) => {
22
28
  this.device = e.detail;
23
29
  };
@@ -108,7 +114,7 @@ export class PostSideNavigation {
108
114
  } }, h("slot", null), h("post-closebutton", { onClick: () => this.hide() }, this.textClose)));
109
115
  }
110
116
  render() {
111
- return (h(Host, { key: '63da088aa63d8a0cf6565f3bf01ab287a599ae27', "data-version": version }, this.device === 'desktop' ? this.renderNav() : this.renderDialog()));
117
+ return (h(Host, { key: '71ecd690876690a72f5c06b1e91856600aa11b90', "data-version": version }, this.device === 'desktop' ? this.renderNav() : this.renderDialog()));
112
118
  }
113
119
  static get is() { return "post-side-navigation"; }
114
120
  static get encapsulation() { return "shadow"; }
@@ -142,6 +148,33 @@ export class PostSideNavigation {
142
148
  "setter": false,
143
149
  "reflect": true,
144
150
  "attribute": "text-close"
151
+ },
152
+ "size": {
153
+ "type": "string",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "SideNavigationSize",
157
+ "resolved": "\"large\" | \"small\"",
158
+ "references": {
159
+ "SideNavigationSize": {
160
+ "location": "import",
161
+ "path": "./side-navigation-styles",
162
+ "id": "src/components/post-side-navigation/side-navigation-styles.ts::SideNavigationSize",
163
+ "referenceLocation": "SideNavigationSize"
164
+ }
165
+ }
166
+ },
167
+ "required": false,
168
+ "optional": true,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": "Controls the size of the navigation items.\nChoose \"small\" for deep and long navigation, and \"large\" (default) for a flat and short navigation."
172
+ },
173
+ "getter": false,
174
+ "setter": false,
175
+ "reflect": false,
176
+ "attribute": "size",
177
+ "defaultValue": "'large'"
145
178
  }
146
179
  };
147
180
  }
@@ -229,3 +262,6 @@ __decorate([
229
262
  Required(),
230
263
  Type('string')
231
264
  ], PostSideNavigation.prototype, "textClose", void 0);
265
+ __decorate([
266
+ OneOf(SIDE_NAVIGATION_SIZES)
267
+ ], PostSideNavigation.prototype, "size", void 0);
@@ -0,0 +1 @@
1
+ export const SIDE_NAVIGATION_SIZES = ['large', 'small'];