@swisspost/design-system-components 10.0.0-next.65 → 10.0.0-next.67

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 (368) hide show
  1. package/dist/cjs/{breakpoints-B81j4H4_.js → breakpoints-BTxzC_Qv.js} +4 -7
  2. package/dist/cjs/{get-focusable-children-SdEe5tt7.js → get-focusable-children-CL2gimr1.js} +4 -4
  3. package/dist/cjs/{get-root-CUAv4k4C.js → get-root-BIh00Adr.js} +2 -2
  4. package/dist/cjs/{index-CmbtQEJ0.js → index-Byyrsgop.js} +19 -11
  5. package/dist/cjs/{index-ChzLnSU8.js → index-qCzRmwgB.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/{package-DJFRMOUR.js → package-BMq-R5Xi.js} +1 -1
  8. package/dist/cjs/post-accordion_2.cjs.entry.js +9 -10
  9. package/dist/cjs/post-autocomplete.cjs.entry.js +181 -0
  10. package/dist/cjs/post-avatar.cjs.entry.js +6 -7
  11. package/dist/cjs/post-back-to-top.cjs.entry.js +8 -9
  12. package/dist/cjs/post-banner.cjs.entry.js +5 -6
  13. package/dist/cjs/{post-breadcrumb-item_2.cjs.entry.js → post-breadcrumb-item.cjs.entry.js} +7 -22
  14. package/dist/cjs/post-breadcrumbs.cjs.entry.js +7 -8
  15. package/dist/cjs/{post-closebutton_13.cjs.entry.js → post-closebutton_14.cjs.entry.js} +88 -68
  16. package/dist/cjs/post-collapsible_2.cjs.entry.js +11 -12
  17. package/dist/cjs/post-components.cjs.js +2 -2
  18. package/dist/cjs/post-date-picker.cjs.entry.js +4619 -0
  19. package/dist/cjs/post-footer.cjs.entry.js +8 -9
  20. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  21. package/dist/cjs/post-listbox-option.cjs.entry.js +26 -0
  22. package/dist/cjs/post-listbox.cjs.entry.js +151 -0
  23. package/dist/cjs/post-number-input.cjs.entry.js +20 -14
  24. package/dist/cjs/post-pagination.cjs.entry.js +10 -11
  25. package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -6
  26. package/dist/cjs/post-popover.cjs.entry.js +7 -8
  27. package/dist/cjs/post-rating.cjs.entry.js +5 -6
  28. package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
  29. package/dist/cjs/post-stepper.cjs.entry.js +34 -14
  30. package/dist/cjs/post-tab-item.cjs.entry.js +5 -6
  31. package/dist/cjs/post-tab-panel.cjs.entry.js +5 -6
  32. package/dist/cjs/post-tabs.cjs.entry.js +8 -9
  33. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +7 -10
  34. package/dist/cjs/post-tooltip.cjs.entry.js +5 -6
  35. package/dist/collection/animations/collapse.js +3 -2
  36. package/dist/collection/collection-manifest.json +5 -3
  37. package/dist/collection/components/post-accordion/post-accordion.js +3 -3
  38. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  39. package/dist/collection/components/post-accordion-item/post-accordion-item.js +3 -3
  40. package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -0
  41. package/dist/collection/components/post-autocomplete/post-autocomplete.js +271 -0
  42. package/dist/collection/components/post-avatar/post-avatar.js +2 -2
  43. package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -4
  44. package/dist/collection/components/post-banner/post-banner.js +1 -1
  45. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +3 -3
  46. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +3 -3
  47. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  48. package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
  49. package/dist/collection/components/post-collapsible/post-collapsible.js +4 -4
  50. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  51. package/dist/collection/components/post-date-picker/post-date-picker.css +5 -0
  52. package/dist/collection/components/{post-datepicker/post-datepicker.js → post-date-picker/post-date-picker.js} +139 -101
  53. package/dist/collection/components/post-footer/post-footer.css +1 -1
  54. package/dist/collection/components/post-footer/post-footer.js +3 -3
  55. package/dist/collection/components/post-header/post-header.js +13 -13
  56. package/dist/collection/components/post-icon/post-icon.js +16 -13
  57. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  58. package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
  59. package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
  60. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +2 -1
  61. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  62. package/dist/collection/components/post-listbox/post-listbox.css +1 -0
  63. package/dist/collection/components/post-listbox/post-listbox.js +293 -0
  64. package/dist/collection/components/post-listbox-option/post-listbox-option.css +1 -0
  65. package/dist/collection/components/post-listbox-option/post-listbox-option.js +109 -0
  66. package/dist/collection/components/post-logo/post-logo.js +1 -1
  67. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  68. package/dist/collection/components/post-megadropdown/post-megadropdown.js +5 -5
  69. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  70. package/dist/collection/components/post-menu/post-menu.js +2 -2
  71. package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
  72. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  73. package/dist/collection/components/post-number-input/post-number-input.css +4 -1
  74. package/dist/collection/components/post-number-input/post-number-input.js +12 -3
  75. package/dist/collection/components/post-pagination/post-pagination.js +6 -6
  76. package/dist/collection/components/post-popover/post-popover.js +1 -1
  77. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  78. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +45 -19
  79. package/dist/collection/components/post-rating/post-rating.js +1 -1
  80. package/dist/collection/components/post-stepper/post-stepper.js +50 -10
  81. package/dist/collection/components/post-stepper-item/post-stepper-item.css +1 -7
  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 +1 -1
  84. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  85. package/dist/collection/components/post-tabs/post-tabs.js +4 -4
  86. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  87. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  88. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +6 -6
  89. package/dist/collection/utils/attribute-observer.js +2 -2
  90. package/dist/collection/utils/breakpoints.js +6 -5
  91. package/dist/collection/utils/get-focusable-children.js +3 -3
  92. package/dist/collection/utils/get-root.js +2 -2
  93. package/dist/collection/utils/index.js +1 -1
  94. package/dist/collection/utils/is-iso-date.js +14 -0
  95. package/dist/collection/utils/is-motion-reduced.js +2 -2
  96. package/dist/collection/utils/property-checkers/check-date.js +1 -1
  97. package/dist/collection/utils/property-checkers/check-iso-date.js +9 -0
  98. package/dist/collection/utils/property-checkers/constants.js +1 -1
  99. package/dist/collection/utils/property-checkers/index.js +1 -0
  100. package/dist/collection/utils/repeat-on-long-press.js +6 -6
  101. package/dist/collection/utils/sass-export.js +1 -1
  102. package/dist/collection/utils/tests/helpers/mock-match-media.js +11 -0
  103. package/dist/collection/utils/tests/helpers/mock-stencil-constants.js +12 -0
  104. package/dist/component-names.json +4 -1
  105. package/dist/components/breakpoints.js +1 -1
  106. package/dist/components/get-focusable-children.js +1 -1
  107. package/dist/components/get-root.js +1 -1
  108. package/dist/components/index.d.ts +8 -4
  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.d.ts +11 -0
  114. package/dist/components/post-autocomplete.js +1 -0
  115. package/dist/components/post-avatar.js +1 -1
  116. package/dist/components/post-back-to-top.js +1 -1
  117. package/dist/components/post-banner.js +1 -1
  118. package/dist/components/post-breadcrumb-item2.js +1 -1
  119. package/dist/components/post-breadcrumbs.js +1 -1
  120. package/dist/components/post-closebutton2.js +1 -1
  121. package/dist/components/post-collapsible-trigger2.js +1 -1
  122. package/dist/components/post-collapsible2.js +1 -1
  123. package/dist/components/{post-datepicker.d.ts → post-date-picker.d.ts} +4 -4
  124. package/dist/components/post-date-picker.js +1 -0
  125. package/dist/components/post-footer.js +1 -1
  126. package/dist/components/post-header.js +1 -1
  127. package/dist/components/post-icon2.js +1 -1
  128. package/dist/components/post-language-menu-item.js +1 -1
  129. package/dist/components/post-language-menu.js +1 -1
  130. package/dist/components/post-linkarea.js +1 -1
  131. package/dist/components/post-listbox-option.d.ts +11 -0
  132. package/dist/components/post-listbox-option.js +1 -0
  133. package/dist/components/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
  134. package/dist/components/post-listbox.js +1 -0
  135. package/dist/components/post-logo.js +1 -1
  136. package/dist/components/post-mainnavigation.js +1 -1
  137. package/dist/components/post-megadropdown-trigger.js +1 -1
  138. package/dist/components/post-megadropdown.js +1 -1
  139. package/dist/components/post-menu-item2.js +1 -1
  140. package/dist/components/post-menu-trigger2.js +1 -1
  141. package/dist/components/post-menu2.js +1 -1
  142. package/dist/components/post-number-input.js +1 -1
  143. package/dist/components/post-pagination.js +1 -1
  144. package/dist/components/post-popover-trigger.js +1 -1
  145. package/dist/components/post-popover.js +1 -1
  146. package/dist/components/post-popovercontainer2.js +1 -1
  147. package/dist/components/post-rating.js +1 -1
  148. package/dist/components/post-stepper-item.js +1 -1
  149. package/dist/components/post-stepper.js +1 -1
  150. package/dist/components/post-tab-item.js +1 -1
  151. package/dist/components/post-tab-panel.js +1 -1
  152. package/dist/components/post-tabs.js +1 -1
  153. package/dist/components/post-togglebutton2.js +1 -1
  154. package/dist/components/post-tooltip-trigger.js +1 -1
  155. package/dist/components/post-tooltip.js +1 -1
  156. package/dist/components/react/index.js +1 -1
  157. package/dist/components/react/{p-2xbmulgT.js → p-6dWji_Xt.js} +1 -1
  158. package/dist/components/react/p-BIQP_u-p.js +1 -0
  159. package/dist/components/react/p-BlBcIJe_.js +1 -0
  160. package/dist/components/react/{p-CVpHTlhD.js → p-Bq6Ye6Uc.js} +1 -1
  161. package/dist/components/react/p-BvY9Yl0A.js +1 -0
  162. package/dist/components/react/p-ByHBwvly.js +1 -0
  163. package/dist/components/react/{p-cien1JLp.js → p-C7drBbGl.js} +1 -1
  164. package/dist/components/react/p-CKkmf4_w.js +1 -0
  165. package/dist/components/react/p-CS77r1AS.js +1 -0
  166. package/dist/components/react/p-CY-_ZlW3.js +1 -0
  167. package/dist/components/react/p-D3Tx-0vM.js +1 -0
  168. package/dist/components/react/p-DVY9jsO7.js +1 -0
  169. package/dist/components/react/p-Djnfi-_S.js +1 -0
  170. package/dist/components/react/p-DlHbGhvD.js +1 -0
  171. package/dist/components/react/p-DxJ0OgPJ.js +1 -0
  172. package/dist/components/react/{p-NbS_MQaD.js → p-RpVuZS9R.js} +1 -1
  173. package/dist/components/react/post-accordion-item.js +1 -1
  174. package/dist/components/react/post-accordion.js +1 -1
  175. package/dist/components/react/post-autocomplete.d.ts +11 -0
  176. package/dist/components/react/post-autocomplete.js +1 -0
  177. package/dist/components/react/post-avatar.js +1 -1
  178. package/dist/components/react/post-back-to-top.js +1 -1
  179. package/dist/components/react/post-banner.js +1 -1
  180. package/dist/components/react/post-breadcrumb-item.js +1 -1
  181. package/dist/components/react/post-breadcrumbs.js +1 -1
  182. package/dist/components/react/post-closebutton.js +1 -1
  183. package/dist/components/react/post-collapsible-trigger.js +1 -1
  184. package/dist/components/react/post-collapsible.js +1 -1
  185. package/dist/components/react/{post-datepicker.d.ts → post-date-picker.d.ts} +4 -4
  186. package/dist/components/react/post-date-picker.js +1 -0
  187. package/dist/components/react/post-footer.js +1 -1
  188. package/dist/components/react/post-header.js +1 -1
  189. package/dist/components/react/post-icon.js +1 -1
  190. package/dist/components/react/post-language-menu-item.js +1 -1
  191. package/dist/components/react/post-language-menu.js +1 -1
  192. package/dist/components/react/post-linkarea.js +1 -1
  193. package/dist/components/react/post-listbox-option.d.ts +11 -0
  194. package/dist/components/react/post-listbox-option.js +1 -0
  195. package/dist/components/react/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
  196. package/dist/components/react/post-listbox.js +1 -0
  197. package/dist/components/react/post-logo.js +1 -1
  198. package/dist/components/react/post-mainnavigation.js +1 -1
  199. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  200. package/dist/components/react/post-megadropdown.js +1 -1
  201. package/dist/components/react/post-menu-item.js +1 -1
  202. package/dist/components/react/post-menu-trigger.js +1 -1
  203. package/dist/components/react/post-menu.js +1 -1
  204. package/dist/components/react/post-number-input.js +1 -1
  205. package/dist/components/react/post-pagination.js +1 -1
  206. package/dist/components/react/post-popover-trigger.js +1 -1
  207. package/dist/components/react/post-popover.js +1 -1
  208. package/dist/components/react/post-popovercontainer.js +1 -1
  209. package/dist/components/react/post-rating.js +1 -1
  210. package/dist/components/react/post-stepper-item.js +1 -1
  211. package/dist/components/react/post-stepper.js +1 -1
  212. package/dist/components/react/post-tab-item.js +1 -1
  213. package/dist/components/react/post-tab-panel.js +1 -1
  214. package/dist/components/react/post-tabs.js +1 -1
  215. package/dist/components/react/post-togglebutton.js +1 -1
  216. package/dist/components/react/post-tooltip-trigger.js +1 -1
  217. package/dist/components/react/post-tooltip.js +1 -1
  218. package/dist/docs.json +591 -111
  219. package/dist/esm/{breakpoints-_gmb7vUy.js → breakpoints-CZuqK5QS.js} +4 -7
  220. package/dist/esm/{get-focusable-children-CFWKPWu9.js → get-focusable-children-CckqSLu_.js} +4 -4
  221. package/dist/esm/{get-root-CXfAA093.js → get-root-gmtbd8C-.js} +2 -2
  222. package/dist/esm/{index-RRcOB_Q4.js → index-8Vx4ywJ4.js} +19 -11
  223. package/dist/esm/{index-CCMeku7U.js → index-D9bU2pIE.js} +3 -3
  224. package/dist/esm/loader.js +3 -3
  225. package/dist/esm/package-DVY9jsO7.js +3 -0
  226. package/dist/esm/post-accordion_2.entry.js +9 -10
  227. package/dist/esm/post-autocomplete.entry.js +179 -0
  228. package/dist/esm/post-avatar.entry.js +6 -7
  229. package/dist/esm/post-back-to-top.entry.js +8 -9
  230. package/dist/esm/post-banner.entry.js +5 -6
  231. package/dist/esm/{post-breadcrumb-item_2.entry.js → post-breadcrumb-item.entry.js} +8 -22
  232. package/dist/esm/post-breadcrumbs.entry.js +7 -8
  233. package/dist/esm/{post-closebutton_13.entry.js → post-closebutton_14.entry.js} +88 -69
  234. package/dist/esm/post-collapsible_2.entry.js +11 -12
  235. package/dist/esm/post-components.js +3 -3
  236. package/dist/esm/post-date-picker.entry.js +4617 -0
  237. package/dist/esm/post-footer.entry.js +8 -9
  238. package/dist/esm/post-linkarea.entry.js +3 -3
  239. package/dist/esm/post-listbox-option.entry.js +24 -0
  240. package/dist/esm/post-listbox.entry.js +149 -0
  241. package/dist/esm/post-number-input.entry.js +20 -14
  242. package/dist/esm/post-pagination.entry.js +10 -11
  243. package/dist/esm/post-popover-trigger.entry.js +5 -6
  244. package/dist/esm/post-popover.entry.js +7 -8
  245. package/dist/esm/post-rating.entry.js +5 -6
  246. package/dist/esm/post-stepper-item.entry.js +4 -4
  247. package/dist/esm/post-stepper.entry.js +34 -14
  248. package/dist/esm/post-tab-item.entry.js +5 -6
  249. package/dist/esm/post-tab-panel.entry.js +5 -6
  250. package/dist/esm/post-tabs.entry.js +8 -9
  251. package/dist/esm/post-tooltip-trigger.entry.js +7 -10
  252. package/dist/esm/post-tooltip.entry.js +5 -6
  253. package/dist/post-components/p-0962f02e.entry.js +1 -0
  254. package/dist/post-components/p-0c22b6cb.entry.js +1 -0
  255. package/dist/post-components/p-11dfed23.entry.js +1 -0
  256. package/dist/post-components/p-136052d8.entry.js +1 -0
  257. package/dist/post-components/p-15d519e6.entry.js +1 -0
  258. package/dist/post-components/p-16573e00.entry.js +1 -0
  259. package/dist/post-components/p-29859921.entry.js +1 -0
  260. package/dist/post-components/p-3a294f1a.entry.js +1 -0
  261. package/dist/post-components/p-44481053.entry.js +1 -0
  262. package/dist/post-components/p-61d99723.entry.js +1 -0
  263. package/dist/post-components/p-68196501.entry.js +1 -0
  264. package/dist/post-components/p-6badcfb3.entry.js +1 -0
  265. package/dist/post-components/p-6c2558a3.entry.js +1 -0
  266. package/dist/post-components/p-6debd1d3.entry.js +1 -0
  267. package/dist/post-components/p-7b44e7e5.entry.js +1 -0
  268. package/dist/post-components/p-81aca7ec.entry.js +1 -0
  269. package/dist/post-components/p-85af10b8.entry.js +1 -0
  270. package/dist/post-components/p-8Vx4ywJ4.js +2 -0
  271. package/dist/post-components/p-951b3be6.entry.js +1 -0
  272. package/dist/post-components/{p-71380a03.entry.js → p-9a3d4f38.entry.js} +1 -1
  273. package/dist/post-components/p-D81ozKs6.js +1 -0
  274. package/dist/post-components/p-D9bU2pIE.js +1 -0
  275. package/dist/post-components/p-DVY9jsO7.js +1 -0
  276. package/dist/post-components/p-DkA4Ai8j.js +1 -0
  277. package/dist/post-components/p-a4dd6a67.entry.js +1 -0
  278. package/dist/post-components/p-aFKnsRj1.js +1 -0
  279. package/dist/post-components/p-b13742e1.entry.js +1 -0
  280. package/dist/post-components/p-c5717005.entry.js +1 -0
  281. package/dist/post-components/p-ca7796c7.entry.js +1 -0
  282. package/dist/post-components/p-ce7bfb11.entry.js +1 -0
  283. package/dist/post-components/p-e14f0dd1.entry.js +1 -0
  284. package/dist/post-components/p-e5a2d0c3.entry.js +1 -0
  285. package/dist/post-components/post-components.css +6 -1
  286. package/dist/post-components/post-components.esm.js +1 -1
  287. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +34 -0
  288. package/dist/types/components/{post-datepicker/post-datepicker.d.ts → post-date-picker/post-date-picker.d.ts} +24 -14
  289. package/dist/types/components/post-listbox/post-listbox.d.ts +37 -0
  290. package/dist/types/components/post-listbox-option/post-listbox-option.d.ts +13 -0
  291. package/dist/types/components/post-number-input/post-number-input.d.ts +2 -0
  292. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +6 -0
  293. package/dist/types/components/post-stepper/post-stepper.d.ts +8 -1
  294. package/dist/types/components.d.ts +223 -45
  295. package/dist/types/utils/breakpoints.d.ts +1 -0
  296. package/dist/types/utils/index.d.ts +1 -1
  297. package/dist/types/utils/is-iso-date.d.ts +1 -0
  298. package/dist/types/utils/property-checkers/check-iso-date.d.ts +3 -0
  299. package/dist/types/utils/property-checkers/index.d.ts +1 -0
  300. package/dist/types/utils/tests/helpers/mock-match-media.d.ts +4 -0
  301. package/dist/types/utils/tests/helpers/mock-stencil-constants.d.ts +0 -0
  302. package/hydrate/index.js +744 -1425
  303. package/hydrate/index.mjs +744 -1425
  304. package/package.json +8 -6
  305. package/dist/cjs/environment-BQE9Unf_.js +0 -52
  306. package/dist/cjs/post-datepicker.cjs.entry.js +0 -4542
  307. package/dist/cjs/post-env-test.cjs.entry.js +0 -15
  308. package/dist/collection/components/post-datepicker/post-datepicker.css +0 -34
  309. package/dist/collection/utils/environment.js +0 -47
  310. package/dist/collection/utils/tests/environment/hydrate-app-helper.js +0 -16
  311. package/dist/collection/utils/tests/environment/post-env-test.js +0 -9
  312. package/dist/components/environment.js +0 -1
  313. package/dist/components/post-datepicker.js +0 -1
  314. package/dist/components/post-env-test.js +0 -1
  315. package/dist/components/react/p-BVGcVycs.js +0 -1
  316. package/dist/components/react/p-Bb0ejJa3.js +0 -1
  317. package/dist/components/react/p-CBB38gAg.js +0 -1
  318. package/dist/components/react/p-CEwsBpAR.js +0 -1
  319. package/dist/components/react/p-CL77OyqD.js +0 -1
  320. package/dist/components/react/p-CVM28gRr.js +0 -1
  321. package/dist/components/react/p-Cuxk8xu_.js +0 -1
  322. package/dist/components/react/p-D0kTIc3Y.js +0 -1
  323. package/dist/components/react/p-Dh2cMk5v.js +0 -1
  324. package/dist/components/react/p-Dl1nklBg.js +0 -1
  325. package/dist/components/react/p-DvTtC-0j.js +0 -1
  326. package/dist/components/react/p-Dw48xy24.js +0 -1
  327. package/dist/components/react/p-FxUVQ4Tx.js +0 -1
  328. package/dist/components/react/post-datepicker.js +0 -1
  329. package/dist/components/react/post-env-test.js +0 -1
  330. package/dist/esm/environment-CEmnRoA6.js +0 -49
  331. package/dist/esm/package-CBB38gAg.js +0 -3
  332. package/dist/esm/post-datepicker.entry.js +0 -4540
  333. package/dist/esm/post-env-test.entry.js +0 -13
  334. package/dist/post-components/p-04151002.entry.js +0 -1
  335. package/dist/post-components/p-07c80628.entry.js +0 -1
  336. package/dist/post-components/p-0e0e0009.entry.js +0 -1
  337. package/dist/post-components/p-241aa7cc.entry.js +0 -1
  338. package/dist/post-components/p-350a19e3.entry.js +0 -1
  339. package/dist/post-components/p-3a6ff125.entry.js +0 -1
  340. package/dist/post-components/p-4a257010.entry.js +0 -1
  341. package/dist/post-components/p-590f8dbc.entry.js +0 -1
  342. package/dist/post-components/p-5ef8eff1.entry.js +0 -1
  343. package/dist/post-components/p-62ac0e47.entry.js +0 -1
  344. package/dist/post-components/p-67f19828.entry.js +0 -1
  345. package/dist/post-components/p-821d479c.entry.js +0 -1
  346. package/dist/post-components/p-961e7f6b.entry.js +0 -1
  347. package/dist/post-components/p-96c560dd.entry.js +0 -1
  348. package/dist/post-components/p-CBB38gAg.js +0 -1
  349. package/dist/post-components/p-CCMeku7U.js +0 -1
  350. package/dist/post-components/p-CEmnRoA6.js +0 -1
  351. package/dist/post-components/p-DI-h_mEL.js +0 -1
  352. package/dist/post-components/p-DppMBmK1.js +0 -1
  353. package/dist/post-components/p-RRcOB_Q4.js +0 -2
  354. package/dist/post-components/p-Rr097A6n.js +0 -1
  355. package/dist/post-components/p-b09e2162.entry.js +0 -1
  356. package/dist/post-components/p-b8da1422.entry.js +0 -1
  357. package/dist/post-components/p-ba84aa42.entry.js +0 -1
  358. package/dist/post-components/p-c32285b8.entry.js +0 -1
  359. package/dist/post-components/p-cabfcd45.entry.js +0 -1
  360. package/dist/post-components/p-d7c5001b.entry.js +0 -1
  361. package/dist/post-components/p-da6a34db.entry.js +0 -1
  362. package/dist/post-components/p-e0558b08.entry.js +0 -1
  363. package/dist/post-components/p-f34600d5.entry.js +0 -1
  364. package/dist/types/utils/environment.d.ts +0 -26
  365. package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +0 -5
  366. package/dist/types/utils/tests/environment/post-env-test.d.ts +0 -3
  367. /package/dist/collection/components/{post-datepicker → post-date-picker}/locales.js +0 -0
  368. /package/dist/types/components/{post-datepicker → post-date-picker}/locales.d.ts +0 -0
@@ -1,14 +1,15 @@
1
- import { h, Host, } from "@stencil/core";
1
+ import { h, Host, Build, } from "@stencil/core";
2
2
  import AirDatepicker from "air-datepicker";
3
3
  import IMask from "imask";
4
4
  import { localesMap } from "./locales";
5
- import { checkEmptyOrDate, checkRequiredAndType, IS_BROWSER } from "../../utils/index";
6
- export class PostDatepicker {
5
+ import { checkEmptyOrDate, checkRequiredAndType, checkIsoDate, isIsoDate } from "../../utils/index";
6
+ export class PostDatePicker {
7
7
  constructor() {
8
8
  this.today = new Date();
9
9
  this.inputDisabled = false;
10
10
  /**
11
- * Whether the datepicker expects a range selection or a single date selection.
11
+ * Whether the date picker expects a range selection or a single date selection.
12
+ *
12
13
  */
13
14
  this.range = false;
14
15
  /**
@@ -16,13 +17,51 @@ export class PostDatepicker {
16
17
  */
17
18
  this.inline = false;
18
19
  this.startDate = new Date();
19
- this.locale = IS_BROWSER ? document.documentElement.lang : 'en';
20
+ this.locale = Build.isBrowser ? document.documentElement.lang : 'en';
20
21
  this.currentViewType = 'days';
21
22
  this.euFormat = true;
22
23
  this.skipOnSelectCount = 0;
23
24
  this.skipFocusOnNextRender = false;
25
+ this.handleInputBlur = () => {
26
+ if (this.range) {
27
+ const dates = this.splitRangeDates(this.inputMask.value);
28
+ const start = this.dateStrToDate(dates[0]);
29
+ const end = this.dateStrToDate(dates[1]);
30
+ const startValid = this.isValidDate(start);
31
+ const endValid = this.isValidDate(end);
32
+ if (startValid && endValid) {
33
+ // Check if user entered dates in wrong order
34
+ const reversed = start > end;
35
+ this.skipOnSelectCount = reversed ? 0 : 2; // don't skip if reversed
36
+ this.dpInstance.selectDate([start, end]);
37
+ this.dpInstance.setViewDate(start);
38
+ }
39
+ else if (startValid && !endValid) {
40
+ this.dpInstance.clear();
41
+ this.dpInstance.selectDate(start);
42
+ this.dpInstance.setViewDate(start);
43
+ }
44
+ else {
45
+ this.resetSelection();
46
+ }
47
+ }
48
+ else {
49
+ const date = this.dateStrToDate(this.inputMask.value);
50
+ if (this.isValidDate(date)) {
51
+ this.skipOnSelectCount = 1;
52
+ this.dpInstance.selectDate(date);
53
+ this.dpInstance.setViewDate(date);
54
+ }
55
+ else {
56
+ this.resetSelection();
57
+ }
58
+ }
59
+ };
60
+ this.handlePrevNextClick = () => {
61
+ this.skipFocusOnNextRender = true;
62
+ };
24
63
  /**
25
- * Loop through the datepicker when not in inline mode
64
+ * Loop through the date picker when not in inline mode
26
65
  */
27
66
  this.handleTab = (e) => {
28
67
  if (this.inline || (e.key !== 'Tab' && e.key !== 'Escape'))
@@ -141,19 +180,23 @@ export class PostDatepicker {
141
180
  }
142
181
  validateSelectedStartDate() {
143
182
  checkEmptyOrDate(this, 'selectedStartDate');
183
+ checkIsoDate(this, 'selectedStartDate');
144
184
  }
145
185
  validateSelectedEndDate() {
146
186
  checkEmptyOrDate(this, 'selectedEndDate');
187
+ checkIsoDate(this, 'selectedEndDate');
147
188
  }
148
189
  validateMin() {
149
190
  checkEmptyOrDate(this, 'min');
191
+ checkIsoDate(this, 'min');
150
192
  }
151
193
  validateMax() {
152
194
  checkEmptyOrDate(this, 'max');
195
+ checkIsoDate(this, 'max');
153
196
  }
154
197
  validateInline() {
155
198
  if (!this.inline && !this.dpInput) {
156
- console.error('A non-inline datepicker should contain one input');
199
+ console.error('A non-inline date picker should contain one input');
157
200
  }
158
201
  }
159
202
  validateTextNextMonth() {
@@ -184,12 +227,12 @@ export class PostDatepicker {
184
227
  }
185
228
  /**
186
229
  * Displays the popover calendar, focusing the first calendar item.
187
- * @param target - The HTML element relative to which the popover calendar should be displayed
188
230
  */
189
- async show(target) {
231
+ async show() {
190
232
  if (this.popoverRef) {
191
- await this.popoverRef.show(target);
233
+ await this.popoverRef.show(this.dpInput);
192
234
  this.enhanceAccessibility();
235
+ this.host.shadowRoot.removeEventListener('keydown', this.handleTab, true); // remove before adding
193
236
  this.host.shadowRoot.addEventListener('keydown', this.handleTab, true);
194
237
  }
195
238
  else {
@@ -212,10 +255,13 @@ export class PostDatepicker {
212
255
  return;
213
256
  if (!this.dpInput)
214
257
  return;
215
- const observer = new MutationObserver(() => {
216
- this.syncDatepickerState();
258
+ if (this.inputObserver) {
259
+ this.inputObserver.disconnect();
260
+ }
261
+ this.inputObserver = new MutationObserver(() => {
262
+ this.syncDatePickerState();
217
263
  });
218
- observer.observe(this.dpInput, {
264
+ this.inputObserver.observe(this.dpInput, {
219
265
  attributes: true,
220
266
  attributeFilter: ['disabled'],
221
267
  });
@@ -242,7 +288,7 @@ export class PostDatepicker {
242
288
  }
243
289
  setActiveCell(date, focusOnDate = true) {
244
290
  const cells = this.getCells();
245
- if (!cells.length)
291
+ if (cells.length === 0)
246
292
  return;
247
293
  let target;
248
294
  // If selected date is visible
@@ -273,7 +319,7 @@ export class PostDatepicker {
273
319
  }
274
320
  // fallback
275
321
  if (!target) {
276
- target = cells[cells.length - 1];
322
+ target = cells.at(-1);
277
323
  }
278
324
  // Make only the target focusable
279
325
  cells.forEach(c => (c.tabIndex = -1));
@@ -342,10 +388,10 @@ export class PostDatepicker {
342
388
  });
343
389
  body.removeEventListener('keydown', this.handleGridKeydown);
344
390
  body.addEventListener('keydown', this.handleGridKeydown);
345
- this.setActiveCell(this.selectedStartDate ? new Date(this.selectedStartDate) : this.startDate, focusOnDate);
391
+ this.setActiveCell(this.isoToDate(this.selectedStartDate) || this.today, focusOnDate);
346
392
  }
347
393
  /**
348
- * Set up the masks on the inputs to reflect the datepickers
394
+ * Set up the masks on the inputs to reflect the date pickers
349
395
  */
350
396
  setUpMask() {
351
397
  const usBlockOpts = {
@@ -408,7 +454,7 @@ export class PostDatepicker {
408
454
  }
409
455
  }
410
456
  }
411
- configDatepicker() {
457
+ configDatePicker() {
412
458
  const slot = this.host.shadowRoot.querySelector('slot');
413
459
  const assignedNodes = slot && slot.assignedElements();
414
460
  const locale = localesMap[this.locale] || localesMap.en;
@@ -451,15 +497,26 @@ export class PostDatepicker {
451
497
  this.updateNavigationButtonLabels();
452
498
  },
453
499
  onSelect: ({ date }) => {
500
+ if (!date || (Array.isArray(date) && date.length === 0))
501
+ return;
454
502
  this.getCells().forEach(c => {
455
503
  c.setAttribute('aria-selected', c.classList.contains('-selected-') ? 'true' : 'false');
456
504
  });
457
- this.postUpdateDates.emit(date);
458
505
  // If selected date is added dynamically after user has typed it in the input
459
506
  if (this.skipOnSelectCount > 0) {
460
507
  this.skipOnSelectCount--;
461
508
  return;
462
509
  }
510
+ // update props
511
+ if (Array.isArray(date) && date.length === 2) {
512
+ this.selectedStartDate = this.dateToIso(date[0]);
513
+ this.selectedEndDate = this.dateToIso(date[1]);
514
+ }
515
+ else if (!Array.isArray(date)) {
516
+ this.selectedStartDate = this.dateToIso(date);
517
+ this.selectedEndDate = undefined;
518
+ }
519
+ this.postUpdateDates.emit(Array.isArray(date) ? date.map(d => this.dateToIso(d)) : this.dateToIso(date));
463
520
  // Assign value to the input, close the popover and focus on the input
464
521
  if (this.dpInput) {
465
522
  if (Array.isArray(date)) {
@@ -491,12 +548,8 @@ export class PostDatepicker {
491
548
  };
492
549
  this.dpInstance = new AirDatepicker(this.dpContainer, options);
493
550
  this.reorderNavigation();
494
- this.prevBtn?.addEventListener('click', () => {
495
- this.skipFocusOnNextRender = true;
496
- });
497
- this.nextBtn?.addEventListener('click', () => {
498
- this.skipFocusOnNextRender = true;
499
- });
551
+ this.prevBtn?.addEventListener('click', this.handlePrevNextClick);
552
+ this.nextBtn?.addEventListener('click', this.handlePrevNextClick);
500
553
  this.handleSelectedDates();
501
554
  }
502
555
  }
@@ -510,15 +563,18 @@ export class PostDatepicker {
510
563
  if (this.range) {
511
564
  if ((this.selectedStartDate && !this.selectedEndDate) ||
512
565
  (!this.selectedStartDate && this.selectedEndDate)) {
513
- console.error('The range datepicker expects either no selected dates or both of them defined.');
566
+ console.error('The range date picker expects either no selected dates or both of them defined.');
514
567
  }
515
568
  else if (this.selectedStartDate && this.selectedEndDate) {
516
- this.dpInstance.selectDate([this.selectedStartDate, this.selectedEndDate]);
569
+ this.dpInstance.selectDate([
570
+ this.isoToDate(this.selectedStartDate),
571
+ this.isoToDate(this.selectedEndDate),
572
+ ]);
517
573
  }
518
574
  }
519
575
  else {
520
- if (this.selectedStartDate) {
521
- this.dpInstance.selectDate(this.selectedStartDate);
576
+ if (this.selectedStartDate && this.isoToDate(this.selectedStartDate)) {
577
+ this.dpInstance.selectDate(this.isoToDate(this.selectedStartDate));
522
578
  }
523
579
  }
524
580
  }
@@ -534,6 +590,15 @@ export class PostDatepicker {
534
590
  splitRangeDates(rangeStr) {
535
591
  return rangeStr.split(' - ');
536
592
  }
593
+ isoToDate(iso) {
594
+ if (!isIsoDate(iso))
595
+ return null;
596
+ const [y, m, d] = iso.split('-').map(Number);
597
+ return new Date(y, m - 1, d);
598
+ }
599
+ dateToIso(date) {
600
+ return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
601
+ }
537
602
  dateStrToDate(dateStr) {
538
603
  return this.euFormat ? this.euDateStrToDate(dateStr) : this.usDateStrToDate(dateStr);
539
604
  }
@@ -661,41 +726,24 @@ export class PostDatepicker {
661
726
  });
662
727
  }
663
728
  addInputListener() {
664
- this.dpInput.addEventListener('blur', () => {
665
- if (this.range) {
666
- const dates = this.splitRangeDates(this.inputMask.value);
667
- const start = this.dateStrToDate(dates[0]);
668
- const end = this.dateStrToDate(dates[1]);
669
- if (start && end) {
670
- // Because selectDate is called twice if there are two dates
671
- this.skipOnSelectCount = 2;
672
- // Select the dates in the datepicker
673
- this.selectedStartDate = start.toString();
674
- this.selectedEndDate = end.toString();
675
- this.dpInstance.selectDate([start, end]);
676
- this.dpInstance.setViewDate(start);
677
- }
678
- }
679
- else {
680
- if (this.dpInput.value) {
681
- this.skipOnSelectCount = 1;
682
- const date = this.dateStrToDate(this.inputMask.value);
683
- this.selectedStartDate = date.toString();
684
- // Select the date in the datepicker
685
- this.dpInstance.selectDate(date);
686
- this.dpInstance.setViewDate(date);
687
- }
688
- }
689
- });
729
+ this.dpInput.addEventListener('blur', this.handleInputBlur);
690
730
  }
691
- syncDatepickerState() {
692
- if (this.dpInput.disabled) {
693
- this.inputDisabled = true;
694
- }
731
+ resetSelection() {
732
+ this.skipOnSelectCount = 0;
733
+ this.dpInstance.clear();
734
+ this.dpInstance.setViewDate(this.today);
735
+ this.selectedStartDate = undefined;
736
+ this.selectedEndDate = undefined;
737
+ }
738
+ isValidDate(date) {
739
+ return date instanceof Date && !Number.isNaN(date.getTime());
740
+ }
741
+ syncDatePickerState() {
742
+ this.inputDisabled = this.dpInput.disabled;
695
743
  }
696
744
  async componentDidLoad() {
697
745
  this.euFormat = document.documentElement.lang !== 'en-US';
698
- this.configDatepicker();
746
+ this.configDatePicker();
699
747
  this.setupGridObserver();
700
748
  this.setupNavObserver();
701
749
  this.setupInputObserver();
@@ -718,45 +766,50 @@ export class PostDatepicker {
718
766
  else {
719
767
  this.addInputListener();
720
768
  requestAnimationFrame(() => {
721
- this.syncDatepickerState();
769
+ this.syncDatePickerState();
722
770
  });
723
771
  }
724
772
  }
725
773
  disconnectedCallback() {
726
- this.host.shadowRoot.removeEventListener('keydown', this.handleTab);
774
+ this.host.shadowRoot?.removeEventListener('keydown', this.handleTab, true);
727
775
  this.titleBtn?.removeEventListener('click', this.forceTitleClickToYear);
728
- if (this.gridObserver) {
729
- this.gridObserver.disconnect();
730
- }
776
+ const body = this.dpContainer?.querySelector('.air-datepicker-body--cells');
777
+ body?.removeEventListener('keydown', this.handleGridKeydown);
778
+ this.prevBtn?.removeEventListener('click', this.handlePrevNextClick);
779
+ this.nextBtn?.removeEventListener('click', this.handlePrevNextClick);
780
+ this.dpInput?.removeEventListener('blur', this.handleInputBlur);
781
+ this.gridObserver?.disconnect();
782
+ this.navObserver?.disconnect();
783
+ this.inputObserver?.disconnect();
731
784
  if (this.dpInstance) {
732
785
  this.dpInstance.destroy();
733
786
  this.dpInstance = null;
734
787
  }
735
788
  }
736
789
  render() {
737
- return (h(Host, { key: 'ff36af3af2a07b77eeac42d6e8e612aa438a672f' }, this.inline && h("div", { key: '25c203eccb811b3aac90dd762391d8d13b0ffb0e', class: "datepicker-container" }), !this.inline && (h("div", { key: 'a2cfa29d2507817dd4d655b992ce289944819d9e' }, h("div", { key: '24dcd00b4df7fdf653fa39e11680fb62fd8a510a', class: {
790
+ return (h(Host, { key: 'b721b731d9ad4ff3c6d80c995a3c471786b6425a' }, this.inline && h("div", { key: '9dc37bf0ab23a5ce611139d0efd7f3fca4f6e6e2', class: "datepicker-container" }), !this.inline && (h("div", { key: 'f2e0376510e5e26a98e29703fbf11c0be90266bb' }, h("div", { key: '52e05c2f28a725c5336fca16842e97ce21a36b42', class: {
738
791
  'calendar-input': !this.range,
739
792
  'calendar-input-range': this.range,
740
793
  'disabled': this.inputDisabled,
741
- } }, h("slot", { key: 'c1f322258d0d5177f624d2045cc8b8aca01731d7' }), h("button", { key: '87d31ec61bd04786905df6cd323a1de1c868ba89', onClick: e => this.show(e.currentTarget), "aria-haspopup": "true", "aria-label": this.textToggleCalendar, disabled: this.inputDisabled }, h("post-icon", { key: '64cdbbeba4e90d11fb024da637eb5f57688ccd9e', name: "calendar" }))), h("post-popovercontainer", { key: '4dec376d186dfc37743b1aa1b0fcd17193843047', placement: "bottom", ref: e => (this.popoverRef = e) }, h("div", { key: 'ac644c015ba652561e5d97969650ddbc20c17193', class: "datepicker-container" }))))));
794
+ } }, h("slot", { key: '11147329e23c51b3bf7c5fa2925cbf97d26c9da2' }), h("button", { key: 'c57f2450bd8ce1976876a8bc11f7d238300ca687', onClick: () => this.show(), "aria-haspopup": "true", "aria-label": this.textToggleCalendar, disabled: this.inputDisabled }, h("post-icon", { key: 'd6a37bfc1471a8eabbf3e0450c3010da8e7ef28e', name: "calendar" }))), h("post-popovercontainer", { key: 'fd4259c066d92c5bbf1066940da72f74a58bdfe8', placement: "bottom-end", offset: PostDatePicker.FLYOUT_OFFSET, ref: e => (this.popoverRef = e) }, h("div", { key: '0ba6ef3f33a003317ab70728e1c67fc8c1d726a9', class: "datepicker-container" }))))));
742
795
  }
743
- static get is() { return "post-datepicker"; }
796
+ static get is() { return "post-date-picker"; }
744
797
  static get encapsulation() { return "shadow"; }
745
798
  static get originalStyleUrls() {
746
799
  return {
747
- "$": ["post-datepicker.scss"]
800
+ "$": ["post-date-picker.scss"]
748
801
  };
749
802
  }
750
803
  static get styleUrls() {
751
804
  return {
752
- "$": ["post-datepicker.css"]
805
+ "$": ["post-date-picker.css"]
753
806
  };
754
807
  }
755
808
  static get properties() {
756
809
  return {
757
810
  "selectedStartDate": {
758
811
  "type": "string",
759
- "mutable": false,
812
+ "mutable": true,
760
813
  "complexType": {
761
814
  "original": "string",
762
815
  "resolved": "string",
@@ -766,7 +819,7 @@ export class PostDatepicker {
766
819
  "optional": true,
767
820
  "docs": {
768
821
  "tags": [],
769
- "text": "The datepicker's selected date. If in range mode, the selected start date."
822
+ "text": "The date picker's selected date. If in range mode, the selected start date.\nMust be a valid date in ISO 8601 format (YYYY-MM-DD)."
770
823
  },
771
824
  "getter": false,
772
825
  "setter": false,
@@ -775,7 +828,7 @@ export class PostDatepicker {
775
828
  },
776
829
  "selectedEndDate": {
777
830
  "type": "string",
778
- "mutable": false,
831
+ "mutable": true,
779
832
  "complexType": {
780
833
  "original": "string",
781
834
  "resolved": "string",
@@ -785,7 +838,7 @@ export class PostDatepicker {
785
838
  "optional": true,
786
839
  "docs": {
787
840
  "tags": [],
788
- "text": "The datepicker's selected end date (for range datepicker only)."
841
+ "text": "The date picker's selected end date (for range date picker only).\nMust be a valid date in ISO 8601 format (YYYY-MM-DD)."
789
842
  },
790
843
  "getter": false,
791
844
  "setter": false,
@@ -804,7 +857,7 @@ export class PostDatepicker {
804
857
  "optional": true,
805
858
  "docs": {
806
859
  "tags": [],
807
- "text": "Whether the datepicker expects a range selection or a single date selection."
860
+ "text": "Whether the date picker expects a range selection or a single date selection."
808
861
  },
809
862
  "getter": false,
810
863
  "setter": false,
@@ -824,7 +877,7 @@ export class PostDatepicker {
824
877
  "optional": true,
825
878
  "docs": {
826
879
  "tags": [],
827
- "text": "Minimun possible date to select."
880
+ "text": "Minimun possible date to select. Must be a valid date in ISO 8601 format (YYYY-MM-DD)."
828
881
  },
829
882
  "getter": false,
830
883
  "setter": false,
@@ -843,7 +896,7 @@ export class PostDatepicker {
843
896
  "optional": true,
844
897
  "docs": {
845
898
  "tags": [],
846
- "text": "Maximum possible date to select."
899
+ "text": "Maximum possible date to select. Must be a valid date in ISO 8601 format (YYYY-MM-DD)."
847
900
  },
848
901
  "getter": false,
849
902
  "setter": false,
@@ -859,8 +912,8 @@ export class PostDatepicker {
859
912
  "references": {
860
913
  "AirDatepickerCustomOptions": {
861
914
  "location": "local",
862
- "path": "/home/runner/work/design-system/design-system/packages/components/src/components/post-datepicker/post-datepicker.tsx",
863
- "id": "src/components/post-datepicker/post-datepicker.tsx::AirDatepickerCustomOptions"
915
+ "path": "/home/runner/work/design-system/design-system/packages/components/src/components/post-date-picker/post-date-picker.tsx",
916
+ "id": "src/components/post-date-picker/post-date-picker.tsx::AirDatepickerCustomOptions"
864
917
  }
865
918
  }
866
919
  },
@@ -1067,14 +1120,9 @@ export class PostDatepicker {
1067
1120
  "text": "An event emitted when a date or a range of dates have been selected."
1068
1121
  },
1069
1122
  "complexType": {
1070
- "original": "Date | Date[]",
1071
- "resolved": "Date | Date[]",
1072
- "references": {
1073
- "Date": {
1074
- "location": "global",
1075
- "id": "global::Date"
1076
- }
1077
- }
1123
+ "original": "string | string[]",
1124
+ "resolved": "string | string[]",
1125
+ "references": {}
1078
1126
  }
1079
1127
  }];
1080
1128
  }
@@ -1082,30 +1130,19 @@ export class PostDatepicker {
1082
1130
  return {
1083
1131
  "show": {
1084
1132
  "complexType": {
1085
- "signature": "(target: HTMLElement) => Promise<void>",
1086
- "parameters": [{
1087
- "name": "target",
1088
- "type": "HTMLElement",
1089
- "docs": "- The HTML element relative to which the popover calendar should be displayed"
1090
- }],
1133
+ "signature": "() => Promise<void>",
1134
+ "parameters": [],
1091
1135
  "references": {
1092
1136
  "Promise": {
1093
1137
  "location": "global",
1094
1138
  "id": "global::Promise"
1095
- },
1096
- "HTMLElement": {
1097
- "location": "global",
1098
- "id": "global::HTMLElement"
1099
1139
  }
1100
1140
  },
1101
1141
  "return": "Promise<void>"
1102
1142
  },
1103
1143
  "docs": {
1104
1144
  "text": "Displays the popover calendar, focusing the first calendar item.",
1105
- "tags": [{
1106
- "name": "param",
1107
- "text": "target - The HTML element relative to which the popover calendar should be displayed"
1108
- }]
1145
+ "tags": []
1109
1146
  }
1110
1147
  },
1111
1148
  "hide": {
@@ -1171,3 +1208,4 @@ export class PostDatepicker {
1171
1208
  }];
1172
1209
  }
1173
1210
  }
1211
+ PostDatePicker.FLYOUT_OFFSET = 4;
@@ -1 +1 @@
1
- :host{display:block}footer{background-color:#fc0;--post-footer-container-padding-block: 32px;--post-footer-container-padding-inline: 16px;--post-footer-container-max-width: 1200px;--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-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)}.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 ::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)}.footer-businesssectors{margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-businesssectors ::slotted(div){display:flex;flex-wrap:wrap;align-items:center;gap:var(--post-footer-list-gap) !important}.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}
1
+ :host{display:block}footer{background-color:#fc0;--post-footer-container-padding-block: 32px;--post-footer-container-padding-inline: 16px;--post-footer-container-max-width: 1200px;--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-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)}.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)}.footer-businesssectors{margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-businesssectors ::slotted(div){display:flex;flex-wrap:wrap;align-items:center;gap:var(--post-footer-list-gap) !important}.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}
@@ -24,7 +24,7 @@ export class PostFooter {
24
24
  this.handleGridSlotChange = this.handleGridSlotChange.bind(this);
25
25
  }
26
26
  connectedCallback() {
27
- window.addEventListener('postBreakpoint:device', this.breakpointChange);
27
+ globalThis.addEventListener('postBreakpoint:device', this.breakpointChange);
28
28
  }
29
29
  componentWillLoad() {
30
30
  this.validateTextFooter();
@@ -35,7 +35,7 @@ export class PostFooter {
35
35
  });
36
36
  }
37
37
  disconnectedCallback() {
38
- window.removeEventListener('postBreakpoint:device', this.breakpointChange);
38
+ globalThis.removeEventListener('postBreakpoint:device', this.breakpointChange);
39
39
  }
40
40
  handleGridSlotChange(...devices) {
41
41
  return (e) => {
@@ -56,7 +56,7 @@ export class PostFooter {
56
56
  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 }))));
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: '463d05f761606823f6a0509961719a166802df0b', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: '235731df03aa871b5d411d208df54fe26008e4d7' }, h("h2", { key: '7bb8f8013b7c0deb5f021105bbb193c922efabd4', class: "visually-hidden" }, this.textFooter), h("div", { key: '9aaf9cb32744df2d1c0585342a6fd9783702995a', class: "footer-container" }, h("div", { key: '4dcbf986a6241a3bcd4e7a6e311d5640773a69e7', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '9e295c05da9b0b8f3c4a01b8e433d5ef4f5c71ac', class: "footer-column" }, h("div", { key: '1703a08855755586c4721ddc50e1f3bd121907a5', class: "footer-socialmedia" }, h("slot", { key: 'c7961d016fb26f6af5022fff4550e15ef36a3881', name: "socialmedia" })), h("div", { key: 'cef3bdd672ab0cddc7aa7e2b3d85705752caeb9e', class: "footer-app" }, h("slot", { key: '5f97c901fb99e4f7458ef5036a55a887186b29b6', name: "app" }))), h("div", { key: '33d8851199a96900353591d4af606f710f440892', class: "footer-businesssectors" }, h("slot", { key: 'ae94799f81ea9031aa3a4489cbcc218afcfed257', name: "businesssectors" })), h("div", { key: '3c9f984ebb4dfaa3aa595e804043d1d023616360', class: "footer-meta" }, h("slot", { key: 'be63fa921c073a2b6bb396339bea7a850f908b4c', name: "meta" })), h("div", { key: '2a2b7a4f9a5cf9b31534ab42ded552872582aaeb', class: "footer-copyright" }, h("slot", { key: 'c80396f078acf145fa2b873a0ea3e453723488d9', name: "copyright" }))))));
59
+ return (h(Host, { key: 'be8e78b13597a378a3f37a89f2f4fa5553036206', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: '623aa5da3107b544c697f030a050b3ac516867ec' }, h("h2", { key: 'e916c70696d0bfa37a9770ed714073e48bf10fb6', class: "visually-hidden" }, this.textFooter), h("div", { key: 'f85439265e62b5d262d8fa2aff87df35df2f4b74', class: "footer-container" }, h("div", { key: '91235f909d2138536273c87afd69ba0008df8776', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '22185d166fbb42ab089475a85847933fee4bcf97', class: "footer-column" }, h("div", { key: 'a8f482d680f84ce0d146c313cb47b533d29f6dfa', class: "footer-socialmedia" }, h("slot", { key: 'b5299b55e738ae34c4805ee73e8e7313bb645a75', name: "socialmedia" })), h("div", { key: '8a95fa529436c71f2b3c3f2b3bc64eefe5325f99', class: "footer-app" }, h("slot", { key: 'f2c43566ff23b06663b0807f021830af8405e3d2', name: "app" }))), h("div", { key: '539d6db985d9158bf61eae1bd80c52a39ec19cab', class: "footer-businesssectors" }, h("slot", { key: '1c433ce5950e8ee2116afe50c3efd3290f4cec8d', name: "businesssectors" })), h("div", { key: '7d71af6cb0b7b1d4cd1f0ef45386dfd4da974664', class: "footer-meta" }, h("slot", { key: '67905639dfdc2ef406ac23a93cd3ae623f14e47b', name: "meta" })), h("div", { key: '94892c47ebf68134d28417c4fccb9bace0ee4038', class: "footer-copyright" }, h("slot", { key: 'bd4853f4cb3342f7ef2c01f2c16cd3378a6c2899', name: "copyright" }))))));
60
60
  }
61
61
  static get is() { return "post-footer"; }
62
62
  static get encapsulation() { return "shadow"; }
@@ -55,11 +55,11 @@ export class PostHeader {
55
55
  const scrollParent = this.scrollParent;
56
56
  const burgerMenuExtended = propName === 'burgerMenuExtended' ? newValue : this.burgerMenuExtended;
57
57
  if (this.device !== 'desktop' && burgerMenuExtended) {
58
- scrollParent.setAttribute('data-post-scroll-locked', '');
58
+ scrollParent.dataset.postScrollLocked = '';
59
59
  this.host.addEventListener('keydown', this.keyboardHandler);
60
60
  }
61
61
  else {
62
- scrollParent.removeAttribute('data-post-scroll-locked');
62
+ delete scrollParent.dataset.postScrollLocked;
63
63
  this.host.removeEventListener('keydown', this.keyboardHandler);
64
64
  }
65
65
  }
@@ -103,15 +103,15 @@ export class PostHeader {
103
103
  this.megadropdownStateHandler = this.megadropdownStateHandler.bind(this);
104
104
  }
105
105
  connectedCallback() {
106
- window.addEventListener('resize', this.throttledResize, { passive: true });
107
- window.addEventListener('scroll', this.handleScrollEvent, {
106
+ globalThis.addEventListener('resize', this.throttledResize, { passive: true });
107
+ globalThis.addEventListener('scroll', this.handleScrollEvent, {
108
108
  passive: true,
109
109
  });
110
110
  this.scrollParent.addEventListener('scroll', this.handleScrollEvent, {
111
111
  passive: true,
112
112
  });
113
113
  document.addEventListener('postToggleMegadropdown', this.megadropdownStateHandler);
114
- window.addEventListener('postBreakpoint:device', this.breakpointChange);
114
+ globalThis.addEventListener('postBreakpoint:device', this.breakpointChange);
115
115
  this.handleScrollParentResize();
116
116
  this.lockBody(false, this.burgerMenuExtended, 'burgerMenuExtended');
117
117
  }
@@ -139,9 +139,9 @@ export class PostHeader {
139
139
  // Clean up possible side effects when post-header is disconnected
140
140
  disconnectedCallback() {
141
141
  const scrollParent = this.scrollParent;
142
- window.removeEventListener('postBreakpoint:device', this.breakpointChange);
143
- window.removeEventListener('resize', this.throttledResize);
144
- window.removeEventListener('scroll', this.handleScrollEvent);
142
+ globalThis.removeEventListener('postBreakpoint:device', this.breakpointChange);
143
+ globalThis.removeEventListener('resize', this.throttledResize);
144
+ globalThis.removeEventListener('scroll', this.handleScrollEvent);
145
145
  if (scrollParent)
146
146
  scrollParent.removeEventListener('scroll', this.handleScrollEvent);
147
147
  document.removeEventListener('postToggleMegadropdown', this.megadropdownStateHandler);
@@ -213,7 +213,7 @@ export class PostHeader {
213
213
  const focusableElements = [this.burgerMenuButton];
214
214
  focusableElements.push(...getDeepFocusableChildren(this.localHeader, el => !el.matches('post-megadropdown')), ...getDeepFocusableChildren(this.burgerMenu, el => !el.matches('post-megadropdown')));
215
215
  this.firstFocusableEl = focusableElements[0];
216
- this.lastFocusableEl = focusableElements[focusableElements.length - 1];
216
+ this.lastFocusableEl = focusableElements.at(-1);
217
217
  }
218
218
  keyboardHandler(e) {
219
219
  if (e.key !== 'Tab' || !this.burgerMenuExtended)
@@ -317,10 +317,10 @@ export class PostHeader {
317
317
  render() {
318
318
  const onDesktop = Build.isServer || this.device === 'desktop';
319
319
  const onTabletAndMobile = Build.isServer || this.device !== 'desktop';
320
- return (h(Host, { key: '927a12917d64f0e0fed247764ab5a89c2ff66453', "data-version": version, "data-color-scheme": "light", "data-burger-menu": this.hasBurgerMenu, "data-menu-extended": this.burgerMenuExtended }, h("header", { key: '58e53821b44b9569a1a1f39663c6e315142fb0c2' }, h("div", { key: 'ead8157d4b94892be4e20c98ba9480411a08aafe', class: "global-header" }, h("div", { key: 'e2c6bbabfbfca71a978b6ed3e2ecbb105751bdd1', class: "section" }, h("div", { key: 'e52b27fc0a128e2bcd6d14c232a6091129a5562d', class: "logo" }, h("slot", { key: '72a698e81b6fa12f7ced243396dd39adef2da34c', name: "post-logo" })), h("div", { key: '82523f2072649282591d643db0f48d518a1ce4a6', class: "sliding-controls" }, onDesktop && (h("div", { key: 'f85c022c415dbd631b63a528ad8f19466901c248', class: "audience" }, h("slot", { key: '772525ed51e5fc3c92b523c1b71b1d67bf01038d', name: "audience" }))), h("slot", { key: 'a73f412a7634075fd6721c1d50aef56231f647a4', name: "global-nav-primary" }), (onDesktop || !this.hasMainNav) && [
321
- h("slot", { key: 'dd9b0cc2582285c18afec62522fff7ab2fe6b34a', name: "global-nav-secondary" }),
322
- h("slot", { key: 'f4e4f916c66d7d1d6fc43f73e8af40a81d11c55d', name: "language-menu" }),
323
- ], h("slot", { key: 'edbaa4e685f65ca22c1a3c7eca5b53f5d297b66a', name: "post-login" }), onTabletAndMobile && this.hasMainNav && (h("post-togglebutton", { key: '5086903a3e9e01fec9273b71c7c9262026df9208', class: "burger-button", ref: el => (this.burgerMenuButton = el), onClick: () => this.toggleBurgerMenu() }, h("span", { key: 'b069fe1a4f1ac7aac9a1779a26e72e8b50a7aecc' }, this.textMenu), h("post-icon", { key: 'e4e35ce811dd238db1b432aa9a2c33f270ab4d81', "aria-hidden": "true", name: "burger", "data-showwhen": "untoggled" }), h("post-icon", { key: 'a6dbcdc99f86ab7dafef916b23b1172fd94894bd', "aria-hidden": "true", name: "closex", "data-showwhen": "toggled" })))))), h("div", { key: 'cc9c29c26166b789b566819a1247af0126b190a1', ref: el => (this.localHeader = el), class: { 'local-header': true, 'megadropdown-open': this.megadropdownOpen } }, h("div", { key: '6a46fce27e151905c1c00bd72aff6bd57e88ebec', class: "section" }, h("slot", { key: 'b4b442dc52e45bfd84e3695f48d4a172e9d12786', name: "title" }), this.hasTitle && h("slot", { key: '6b569368e83793b19f4bfd5b0ab4c42ef7f4f594', name: "local-nav" }), onDesktop && h("slot", { key: '7a5ba718de6a6f54b9a97c1be93b2ffc41d71122', name: "main-nav" }), onDesktop && !this.hasTitle && h("slot", { key: 'd62ff184e22380c837794b2e2c813189b546e9b7', name: "local-nav" }))), this.hasBurgerMenu && this.renderBurgerMenu())));
320
+ return (h(Host, { key: '3a91565f737ace8c2afa09aea4376301df78de15', "data-version": version, "data-color-scheme": "light", "data-burger-menu": this.hasBurgerMenu, "data-menu-extended": this.burgerMenuExtended }, h("header", { key: '3983485ef60f0ac3a14224ebc3e550c73b183533' }, h("div", { key: 'fcb70d0d33448afd05a9d0cc2045cbf954ffef8b', class: "global-header" }, h("div", { key: 'fc4a7fe09d320c801ffab5b8a1652078685ec126', class: "section" }, h("div", { key: '41ea4d25ae37ad90875201a6d580bf0e856055e0', class: "logo" }, h("slot", { key: 'c1fc7972273b8ca82d41535f6a3c0ee8f4a7da6a', name: "post-logo" })), h("div", { key: 'fb7d8e98ac126416c7342b34e9655e1ef82fed20', class: "sliding-controls" }, onDesktop && (h("div", { key: 'e9556afe505005b09892fcf7a9092ac5892337ee', class: "audience" }, h("slot", { key: '62a2bec634b4f5afff5a3323187de4bfa7ddcf3c', name: "audience" }))), h("slot", { key: 'e8e88e7547d71312cf868f81386eba9405b5e6b2', name: "global-nav-primary" }), (onDesktop || !this.hasMainNav) && [
321
+ h("slot", { key: '85d07e119df995f5b4aec62675eb821dee0b3059', name: "global-nav-secondary" }),
322
+ h("slot", { key: '087f20e4844e9bf5fa6a945e4352509f0128eb70', name: "language-menu" }),
323
+ ], h("slot", { key: 'b4def359986a7093cacf963709ca27180c34d294', name: "post-login" }), onTabletAndMobile && this.hasMainNav && (h("post-togglebutton", { key: '534cb2b1f21ac6408f7ea14722c2ee8c82e268eb', class: "burger-button", ref: el => (this.burgerMenuButton = el), onClick: () => this.toggleBurgerMenu() }, h("span", { key: 'fe96f2269a1e76e26edcef2d66beacac5149dea0' }, this.textMenu), h("post-icon", { key: '7eabffedbe08a520d7be8c930168ac15428c132d', "aria-hidden": "true", name: "burger", "data-showwhen": "untoggled" }), h("post-icon", { key: 'fb3cdba5cce308547bb057bfb5e915b3b7b3848b', "aria-hidden": "true", name: "closex", "data-showwhen": "toggled" })))))), h("div", { key: '48f203901cd57d50f3a70b8065e65e2a45e6e0bb', ref: el => (this.localHeader = el), class: { 'local-header': true, 'megadropdown-open': this.megadropdownOpen } }, h("div", { key: '846dc6852d5978a3fd1d3cd22a6c870c8d9f1cf3', class: "section" }, h("slot", { key: '91d510bd1948b004787c1d77f9d0ae0669a7a231', name: "title" }), this.hasTitle && h("slot", { key: '13fd6cd078235ee8449d22944ee67926f11b3db1', name: "local-nav" }), onDesktop && h("slot", { key: '67b37a81c37cf6a77df5a15519e09b884d3cd892', name: "main-nav" }), onDesktop && !this.hasTitle && h("slot", { key: '6ca6a422b465a38a1c02e21229dc5f9f0178ffcc', name: "local-nav" }))), this.hasBurgerMenu && this.renderBurgerMenu())));
324
324
  }
325
325
  static get is() { return "post-header"; }
326
326
  static get encapsulation() { return "shadow"; }