@swisspost/design-system-components 10.0.0-next.66 → 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 (347) 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-YVR3WTTS.js → index-Byyrsgop.js} +17 -9
  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-Cixsn1Ql.js → package-BMq-R5Xi.js} +1 -1
  8. package/dist/cjs/post-accordion_2.cjs.entry.js +6 -7
  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 +10 -11
  17. package/dist/cjs/post-components.cjs.js +2 -2
  18. package/dist/cjs/post-date-picker.cjs.entry.js +12 -13
  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 +3 -3
  29. package/dist/cjs/post-stepper.cjs.entry.js +6 -7
  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 +4 -2
  37. package/dist/collection/components/post-accordion/post-accordion.js +2 -2
  38. package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -0
  39. package/dist/collection/components/post-autocomplete/post-autocomplete.js +271 -0
  40. package/dist/collection/components/post-avatar/post-avatar.js +2 -2
  41. package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -4
  42. package/dist/collection/components/post-banner/post-banner.js +1 -1
  43. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +3 -3
  44. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +3 -3
  45. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  46. package/dist/collection/components/post-collapsible/post-collapsible.js +4 -4
  47. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  48. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  49. package/dist/collection/components/post-date-picker/post-date-picker.js +9 -9
  50. package/dist/collection/components/post-footer/post-footer.css +1 -1
  51. package/dist/collection/components/post-footer/post-footer.js +3 -3
  52. package/dist/collection/components/post-header/post-header.js +13 -13
  53. package/dist/collection/components/post-icon/post-icon.js +16 -13
  54. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  55. package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
  56. package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
  57. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +2 -1
  58. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  59. package/dist/collection/components/post-listbox/post-listbox.css +1 -0
  60. package/dist/collection/components/post-listbox/post-listbox.js +293 -0
  61. package/dist/collection/components/post-listbox-option/post-listbox-option.css +1 -0
  62. package/dist/collection/components/post-listbox-option/post-listbox-option.js +109 -0
  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.js +5 -5
  66. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  67. package/dist/collection/components/post-menu/post-menu.js +2 -2
  68. package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
  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.css +4 -1
  71. package/dist/collection/components/post-number-input/post-number-input.js +12 -3
  72. package/dist/collection/components/post-pagination/post-pagination.js +6 -6
  73. package/dist/collection/components/post-popover/post-popover.js +1 -1
  74. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  75. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +26 -19
  76. package/dist/collection/components/post-rating/post-rating.js +1 -1
  77. package/dist/collection/components/post-stepper/post-stepper.js +2 -2
  78. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  79. package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
  80. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  81. package/dist/collection/components/post-tabs/post-tabs.js +4 -4
  82. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  83. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  84. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +6 -6
  85. package/dist/collection/utils/attribute-observer.js +2 -2
  86. package/dist/collection/utils/breakpoints.js +6 -5
  87. package/dist/collection/utils/get-focusable-children.js +3 -3
  88. package/dist/collection/utils/get-root.js +2 -2
  89. package/dist/collection/utils/index.js +0 -1
  90. package/dist/collection/utils/is-iso-date.js +1 -1
  91. package/dist/collection/utils/is-motion-reduced.js +2 -2
  92. package/dist/collection/utils/property-checkers/check-date.js +1 -1
  93. package/dist/collection/utils/property-checkers/constants.js +1 -1
  94. package/dist/collection/utils/property-checkers/index.js +1 -2
  95. package/dist/collection/utils/repeat-on-long-press.js +6 -6
  96. package/dist/collection/utils/sass-export.js +1 -1
  97. package/dist/collection/utils/tests/helpers/mock-match-media.js +11 -0
  98. package/dist/collection/utils/tests/helpers/mock-stencil-constants.js +12 -0
  99. package/dist/component-names.json +3 -0
  100. package/dist/components/breakpoints.js +1 -1
  101. package/dist/components/get-focusable-children.js +1 -1
  102. package/dist/components/get-root.js +1 -1
  103. package/dist/components/index.d.ts +6 -2
  104. package/dist/components/index.js +1 -1
  105. package/dist/components/package.js +1 -1
  106. package/dist/components/post-accordion2.js +1 -1
  107. package/dist/components/post-autocomplete.d.ts +11 -0
  108. package/dist/components/post-autocomplete.js +1 -0
  109. package/dist/components/post-avatar.js +1 -1
  110. package/dist/components/post-back-to-top.js +1 -1
  111. package/dist/components/post-banner.js +1 -1
  112. package/dist/components/post-breadcrumb-item2.js +1 -1
  113. package/dist/components/post-breadcrumbs.js +1 -1
  114. package/dist/components/post-closebutton2.js +1 -1
  115. package/dist/components/post-collapsible-trigger2.js +1 -1
  116. package/dist/components/post-collapsible2.js +1 -1
  117. package/dist/components/post-date-picker.js +1 -1
  118. package/dist/components/post-footer.js +1 -1
  119. package/dist/components/post-header.js +1 -1
  120. package/dist/components/post-icon2.js +1 -1
  121. package/dist/components/post-language-menu-item.js +1 -1
  122. package/dist/components/post-language-menu.js +1 -1
  123. package/dist/components/post-linkarea.js +1 -1
  124. package/dist/components/post-listbox-option.d.ts +11 -0
  125. package/dist/components/post-listbox-option.js +1 -0
  126. package/dist/components/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
  127. package/dist/components/post-listbox.js +1 -0
  128. package/dist/components/post-logo.js +1 -1
  129. package/dist/components/post-mainnavigation.js +1 -1
  130. package/dist/components/post-megadropdown-trigger.js +1 -1
  131. package/dist/components/post-megadropdown.js +1 -1
  132. package/dist/components/post-menu-item2.js +1 -1
  133. package/dist/components/post-menu-trigger2.js +1 -1
  134. package/dist/components/post-menu2.js +1 -1
  135. package/dist/components/post-number-input.js +1 -1
  136. package/dist/components/post-pagination.js +1 -1
  137. package/dist/components/post-popover-trigger.js +1 -1
  138. package/dist/components/post-popover.js +1 -1
  139. package/dist/components/post-popovercontainer2.js +1 -1
  140. package/dist/components/post-rating.js +1 -1
  141. package/dist/components/post-stepper-item.js +1 -1
  142. package/dist/components/post-stepper.js +1 -1
  143. package/dist/components/post-tab-item.js +1 -1
  144. package/dist/components/post-tab-panel.js +1 -1
  145. package/dist/components/post-tabs.js +1 -1
  146. package/dist/components/post-togglebutton2.js +1 -1
  147. package/dist/components/post-tooltip-trigger.js +1 -1
  148. package/dist/components/post-tooltip.js +1 -1
  149. package/dist/components/react/index.js +1 -1
  150. package/dist/components/react/{p-htxkyM9X.js → p-6dWji_Xt.js} +1 -1
  151. package/dist/components/react/p-BIQP_u-p.js +1 -0
  152. package/dist/components/react/p-BlBcIJe_.js +1 -0
  153. package/dist/components/react/{p-CmA91vH_.js → p-Bq6Ye6Uc.js} +1 -1
  154. package/dist/components/react/p-BvY9Yl0A.js +1 -0
  155. package/dist/components/react/p-ByHBwvly.js +1 -0
  156. package/dist/components/react/{p-BcBg4WYn.js → p-C7drBbGl.js} +1 -1
  157. package/dist/components/react/p-CKkmf4_w.js +1 -0
  158. package/dist/components/react/p-CS77r1AS.js +1 -0
  159. package/dist/components/react/{p-C9bJM7_1.js → p-CY-_ZlW3.js} +1 -1
  160. package/dist/components/react/p-D3Tx-0vM.js +1 -0
  161. package/dist/components/react/p-DVY9jsO7.js +1 -0
  162. package/dist/components/react/p-Djnfi-_S.js +1 -0
  163. package/dist/components/react/p-DlHbGhvD.js +1 -0
  164. package/dist/components/react/p-DxJ0OgPJ.js +1 -0
  165. package/dist/components/react/{p-CdMrnWjS.js → p-RpVuZS9R.js} +1 -1
  166. package/dist/components/react/post-accordion-item.js +1 -1
  167. package/dist/components/react/post-accordion.js +1 -1
  168. package/dist/components/react/post-autocomplete.d.ts +11 -0
  169. package/dist/components/react/post-autocomplete.js +1 -0
  170. package/dist/components/react/post-avatar.js +1 -1
  171. package/dist/components/react/post-back-to-top.js +1 -1
  172. package/dist/components/react/post-banner.js +1 -1
  173. package/dist/components/react/post-breadcrumb-item.js +1 -1
  174. package/dist/components/react/post-breadcrumbs.js +1 -1
  175. package/dist/components/react/post-closebutton.js +1 -1
  176. package/dist/components/react/post-collapsible-trigger.js +1 -1
  177. package/dist/components/react/post-collapsible.js +1 -1
  178. package/dist/components/react/post-date-picker.js +1 -1
  179. package/dist/components/react/post-footer.js +1 -1
  180. package/dist/components/react/post-header.js +1 -1
  181. package/dist/components/react/post-icon.js +1 -1
  182. package/dist/components/react/post-language-menu-item.js +1 -1
  183. package/dist/components/react/post-language-menu.js +1 -1
  184. package/dist/components/react/post-linkarea.js +1 -1
  185. package/dist/components/react/post-listbox-option.d.ts +11 -0
  186. package/dist/components/react/post-listbox-option.js +1 -0
  187. package/dist/components/react/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
  188. package/dist/components/react/post-listbox.js +1 -0
  189. package/dist/components/react/post-logo.js +1 -1
  190. package/dist/components/react/post-mainnavigation.js +1 -1
  191. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  192. package/dist/components/react/post-megadropdown.js +1 -1
  193. package/dist/components/react/post-menu-item.js +1 -1
  194. package/dist/components/react/post-menu-trigger.js +1 -1
  195. package/dist/components/react/post-menu.js +1 -1
  196. package/dist/components/react/post-number-input.js +1 -1
  197. package/dist/components/react/post-pagination.js +1 -1
  198. package/dist/components/react/post-popover-trigger.js +1 -1
  199. package/dist/components/react/post-popover.js +1 -1
  200. package/dist/components/react/post-popovercontainer.js +1 -1
  201. package/dist/components/react/post-rating.js +1 -1
  202. package/dist/components/react/post-stepper-item.js +1 -1
  203. package/dist/components/react/post-stepper.js +1 -1
  204. package/dist/components/react/post-tab-item.js +1 -1
  205. package/dist/components/react/post-tab-panel.js +1 -1
  206. package/dist/components/react/post-tabs.js +1 -1
  207. package/dist/components/react/post-togglebutton.js +1 -1
  208. package/dist/components/react/post-tooltip-trigger.js +1 -1
  209. package/dist/components/react/post-tooltip.js +1 -1
  210. package/dist/docs.json +483 -23
  211. package/dist/esm/{breakpoints-_gmb7vUy.js → breakpoints-CZuqK5QS.js} +4 -7
  212. package/dist/esm/{get-focusable-children-CFWKPWu9.js → get-focusable-children-CckqSLu_.js} +4 -4
  213. package/dist/esm/{get-root-CXfAA093.js → get-root-gmtbd8C-.js} +2 -2
  214. package/dist/esm/{index-Cj-Lzb7i.js → index-8Vx4ywJ4.js} +17 -9
  215. package/dist/esm/{index-CCMeku7U.js → index-D9bU2pIE.js} +3 -3
  216. package/dist/esm/loader.js +3 -3
  217. package/dist/esm/package-DVY9jsO7.js +3 -0
  218. package/dist/esm/post-accordion_2.entry.js +6 -7
  219. package/dist/esm/post-autocomplete.entry.js +179 -0
  220. package/dist/esm/post-avatar.entry.js +6 -7
  221. package/dist/esm/post-back-to-top.entry.js +8 -9
  222. package/dist/esm/post-banner.entry.js +5 -6
  223. package/dist/esm/{post-breadcrumb-item_2.entry.js → post-breadcrumb-item.entry.js} +8 -22
  224. package/dist/esm/post-breadcrumbs.entry.js +7 -8
  225. package/dist/esm/{post-closebutton_13.entry.js → post-closebutton_14.entry.js} +88 -69
  226. package/dist/esm/post-collapsible_2.entry.js +10 -11
  227. package/dist/esm/post-components.js +3 -3
  228. package/dist/esm/post-date-picker.entry.js +12 -13
  229. package/dist/esm/post-footer.entry.js +8 -9
  230. package/dist/esm/post-linkarea.entry.js +3 -3
  231. package/dist/esm/post-listbox-option.entry.js +24 -0
  232. package/dist/esm/post-listbox.entry.js +149 -0
  233. package/dist/esm/post-number-input.entry.js +20 -14
  234. package/dist/esm/post-pagination.entry.js +10 -11
  235. package/dist/esm/post-popover-trigger.entry.js +5 -6
  236. package/dist/esm/post-popover.entry.js +7 -8
  237. package/dist/esm/post-rating.entry.js +5 -6
  238. package/dist/esm/post-stepper-item.entry.js +3 -3
  239. package/dist/esm/post-stepper.entry.js +6 -7
  240. package/dist/esm/post-tab-item.entry.js +5 -6
  241. package/dist/esm/post-tab-panel.entry.js +5 -6
  242. package/dist/esm/post-tabs.entry.js +8 -9
  243. package/dist/esm/post-tooltip-trigger.entry.js +7 -10
  244. package/dist/esm/post-tooltip.entry.js +5 -6
  245. package/dist/post-components/p-0962f02e.entry.js +1 -0
  246. package/dist/post-components/p-0c22b6cb.entry.js +1 -0
  247. package/dist/post-components/p-11dfed23.entry.js +1 -0
  248. package/dist/post-components/{p-46f30771.entry.js → p-136052d8.entry.js} +1 -1
  249. package/dist/post-components/p-15d519e6.entry.js +1 -0
  250. package/dist/post-components/p-16573e00.entry.js +1 -0
  251. package/dist/post-components/p-29859921.entry.js +1 -0
  252. package/dist/post-components/p-3a294f1a.entry.js +1 -0
  253. package/dist/post-components/p-44481053.entry.js +1 -0
  254. package/dist/post-components/p-61d99723.entry.js +1 -0
  255. package/dist/post-components/p-68196501.entry.js +1 -0
  256. package/dist/post-components/p-6badcfb3.entry.js +1 -0
  257. package/dist/post-components/p-6c2558a3.entry.js +1 -0
  258. package/dist/post-components/p-6debd1d3.entry.js +1 -0
  259. package/dist/post-components/p-7b44e7e5.entry.js +1 -0
  260. package/dist/post-components/p-81aca7ec.entry.js +1 -0
  261. package/dist/post-components/p-85af10b8.entry.js +1 -0
  262. package/dist/post-components/p-8Vx4ywJ4.js +2 -0
  263. package/dist/post-components/p-951b3be6.entry.js +1 -0
  264. package/dist/post-components/{p-fe35968d.entry.js → p-9a3d4f38.entry.js} +1 -1
  265. package/dist/post-components/p-D81ozKs6.js +1 -0
  266. package/dist/post-components/p-D9bU2pIE.js +1 -0
  267. package/dist/post-components/p-DVY9jsO7.js +1 -0
  268. package/dist/post-components/p-DkA4Ai8j.js +1 -0
  269. package/dist/post-components/p-a4dd6a67.entry.js +1 -0
  270. package/dist/post-components/p-aFKnsRj1.js +1 -0
  271. package/dist/post-components/p-b13742e1.entry.js +1 -0
  272. package/dist/post-components/p-c5717005.entry.js +1 -0
  273. package/dist/post-components/p-ca7796c7.entry.js +1 -0
  274. package/dist/post-components/p-ce7bfb11.entry.js +1 -0
  275. package/dist/post-components/p-e14f0dd1.entry.js +1 -0
  276. package/dist/post-components/p-e5a2d0c3.entry.js +1 -0
  277. package/dist/post-components/post-components.css +6 -1
  278. package/dist/post-components/post-components.esm.js +1 -1
  279. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +34 -0
  280. package/dist/types/components/post-listbox/post-listbox.d.ts +37 -0
  281. package/dist/types/components/post-listbox-option/post-listbox-option.d.ts +13 -0
  282. package/dist/types/components/post-number-input/post-number-input.d.ts +2 -0
  283. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +2 -0
  284. package/dist/types/components.d.ts +176 -13
  285. package/dist/types/utils/breakpoints.d.ts +1 -0
  286. package/dist/types/utils/index.d.ts +0 -1
  287. package/dist/types/utils/property-checkers/index.d.ts +1 -2
  288. package/dist/types/utils/tests/helpers/mock-match-media.d.ts +4 -0
  289. package/dist/types/utils/tests/helpers/mock-stencil-constants.d.ts +0 -0
  290. package/hydrate/index.js +565 -1347
  291. package/hydrate/index.mjs +565 -1347
  292. package/package.json +8 -6
  293. package/dist/cjs/environment-BQE9Unf_.js +0 -52
  294. package/dist/cjs/post-env-test.cjs.entry.js +0 -15
  295. package/dist/collection/utils/environment.js +0 -47
  296. package/dist/collection/utils/tests/environment/hydrate-app-helper.js +0 -16
  297. package/dist/collection/utils/tests/environment/post-env-test.js +0 -9
  298. package/dist/components/environment.js +0 -1
  299. package/dist/components/post-env-test.js +0 -1
  300. package/dist/components/react/p-BVGcVycs.js +0 -1
  301. package/dist/components/react/p-Bb0ejJa3.js +0 -1
  302. package/dist/components/react/p-BbnDcq_W.js +0 -1
  303. package/dist/components/react/p-C1CrnSak.js +0 -1
  304. package/dist/components/react/p-CApN7QUn.js +0 -1
  305. package/dist/components/react/p-CGeIHu-8.js +0 -1
  306. package/dist/components/react/p-CVM28gRr.js +0 -1
  307. package/dist/components/react/p-CfXYLM9Y.js +0 -1
  308. package/dist/components/react/p-DH6JtVW9.js +0 -1
  309. package/dist/components/react/p-Dgo_BJCW.js +0 -1
  310. package/dist/components/react/p-Dne0jb7e.js +0 -1
  311. package/dist/components/react/p-FxUVQ4Tx.js +0 -1
  312. package/dist/components/react/post-env-test.js +0 -1
  313. package/dist/esm/environment-CEmnRoA6.js +0 -49
  314. package/dist/esm/package-CApN7QUn.js +0 -3
  315. package/dist/esm/post-env-test.entry.js +0 -13
  316. package/dist/post-components/p-054c0046.entry.js +0 -1
  317. package/dist/post-components/p-102b69dd.entry.js +0 -1
  318. package/dist/post-components/p-1221cdd6.entry.js +0 -1
  319. package/dist/post-components/p-14ca5d65.entry.js +0 -1
  320. package/dist/post-components/p-38404768.entry.js +0 -1
  321. package/dist/post-components/p-388ac19f.entry.js +0 -1
  322. package/dist/post-components/p-5088354d.entry.js +0 -1
  323. package/dist/post-components/p-53c3195b.entry.js +0 -1
  324. package/dist/post-components/p-6e79a981.entry.js +0 -1
  325. package/dist/post-components/p-700c3e20.entry.js +0 -1
  326. package/dist/post-components/p-7fc1291f.entry.js +0 -1
  327. package/dist/post-components/p-84905b89.entry.js +0 -1
  328. package/dist/post-components/p-9127ee5c.entry.js +0 -1
  329. package/dist/post-components/p-91fbf90f.entry.js +0 -1
  330. package/dist/post-components/p-9e6b8aae.entry.js +0 -1
  331. package/dist/post-components/p-CApN7QUn.js +0 -1
  332. package/dist/post-components/p-CCMeku7U.js +0 -1
  333. package/dist/post-components/p-CEmnRoA6.js +0 -1
  334. package/dist/post-components/p-Cj-Lzb7i.js +0 -2
  335. package/dist/post-components/p-DI-h_mEL.js +0 -1
  336. package/dist/post-components/p-DppMBmK1.js +0 -1
  337. package/dist/post-components/p-Rr097A6n.js +0 -1
  338. package/dist/post-components/p-b7c02b48.entry.js +0 -1
  339. package/dist/post-components/p-bb2dc205.entry.js +0 -1
  340. package/dist/post-components/p-dd2d35fd.entry.js +0 -1
  341. package/dist/post-components/p-dde0c46e.entry.js +0 -1
  342. package/dist/post-components/p-e4978408.entry.js +0 -1
  343. package/dist/post-components/p-eb4eabe2.entry.js +0 -1
  344. package/dist/post-components/p-ece3d263.entry.js +0 -1
  345. package/dist/types/utils/environment.d.ts +0 -26
  346. package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +0 -5
  347. package/dist/types/utils/tests/environment/post-env-test.d.ts +0 -3
@@ -1,17 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-YVR3WTTS.js');
4
- var index$1 = require('./index-ChzLnSU8.js');
5
- var environment = require('./environment-BQE9Unf_.js');
6
- require('./breakpoints-B81j4H4_.js');
7
- var _package = require('./package-Cixsn1Ql.js');
3
+ var index = require('./index-Byyrsgop.js');
4
+ var index$1 = require('./index-qCzRmwgB.js');
5
+ require('./breakpoints-BTxzC_Qv.js');
6
+ var _package = require('./package-BMq-R5Xi.js');
8
7
  var focusable = require('./focusable-ZqET_zrB.js');
9
8
  require('./_commonjsHelpers-BJu3ubxk.js');
10
9
 
11
10
  const postTooltipTriggerCss = () => `post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}`;
12
11
 
13
12
  const TRIGGER_EVENTS = ['pointerenter', 'pointerleave', 'focusin', 'focusout', 'long-press'];
14
- if (environment.IS_BROWSER) {
13
+ {
15
14
  (async () => {
16
15
  await Promise.resolve().then(function () { return require('./long-press-event-Q8jMUNXD.js'); });
17
16
  })();
@@ -38,8 +37,6 @@ const PostTooltipTrigger = class {
38
37
  index$1.checkEmptyOrType(this, 'for', 'string');
39
38
  }
40
39
  get tooltip() {
41
- if (!environment.IS_BROWSER)
42
- return null;
43
40
  const ref = document.getElementById(this.for);
44
41
  return ref?.localName === 'post-tooltip' ? ref : null;
45
42
  }
@@ -157,7 +154,7 @@ const PostTooltipTrigger = class {
157
154
  interestHandler() {
158
155
  if (this.trigger) {
159
156
  if (this.delay > 0) {
160
- this.delayTimeout = window.setTimeout(() => {
157
+ this.delayTimeout = globalThis.setTimeout(() => {
161
158
  this.tooltip?.show(this.trigger);
162
159
  this.delayTimeout = null;
163
160
  }, this.delay);
@@ -175,7 +172,7 @@ const PostTooltipTrigger = class {
175
172
  this.tooltip?.hide();
176
173
  }
177
174
  render() {
178
- return (index.h(index.Host, { key: '070c1d7c9cbf685113debb314766b2dde8dfe126', "data-version": _package.version }, index.h("slot", { key: 'b9c2c1339bd54061490e4f8c6303d9290a59dafa', onSlotchange: () => this.handleSlotChange() })));
175
+ return (index.h(index.Host, { key: '130a5d8ad8e981ee3f46fbbfcab74afd4c2dce18', "data-version": _package.version }, index.h("slot", { key: '6718994fc17acb24dbc176110c9a0356c4158e38', onSlotchange: () => this.handleSlotChange() })));
179
176
  }
180
177
  get host() { return index.getElement(this); }
181
178
  static get watchers() { return {
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-YVR3WTTS.js');
4
- var _package = require('./package-Cixsn1Ql.js');
5
- var index$1 = require('./index-ChzLnSU8.js');
6
- require('./breakpoints-B81j4H4_.js');
3
+ var index = require('./index-Byyrsgop.js');
4
+ var _package = require('./package-BMq-R5Xi.js');
5
+ var index$1 = require('./index-qCzRmwgB.js');
6
+ require('./breakpoints-BTxzC_Qv.js');
7
7
  var placement = require('./placement-qEFR9hmI.js');
8
- require('./environment-BQE9Unf_.js');
9
8
 
10
9
  const postTooltipCss = () => `:host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer::part(post-popovercontainer-content){color:var(--post-current-fg);background-color:var(--post-current-bg);padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:var(--post-tooltip-max-width, 280px);width:inherit;min-height:32px;word-wrap:break-word;white-space:normal}`;
11
10
 
@@ -72,7 +71,7 @@ const PostTooltip = class {
72
71
  }
73
72
  render() {
74
73
  const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
75
- return (index.h(index.Host, { key: '19dd435450b50c6f00fb767b64f02196e2753a61', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'a12f9c038b279946187377a083014dee7b1b767f', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, index.h("slot", { key: '4a7009fb3ec0cc938f486de0796f3e4776462ba8' }))));
74
+ return (index.h(index.Host, { key: 'e3dd0e3b779563948a727958237ffb5ee3786c67', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'bcc80a61fa0292191efc0525c410630b8dbb29e3', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, index.h("slot", { key: '3b07a74f1edc3d7fc49211b4f85188ad8a05acad' }))));
76
75
  }
77
76
  get host() { return index.getElement(this); }
78
77
  static get watchers() { return {
@@ -1,4 +1,5 @@
1
- import { IS_BROWSER, isMotionReduced } from "../utils/index";
1
+ import { Build } from "@stencil/core";
2
+ import { isMotionReduced } from "../utils/index";
2
3
  const collapseDuration = 350;
3
4
  const collapseEasing = 'ease';
4
5
  export const collapsedKeyframe = { height: '0', overflow: 'hidden' };
@@ -8,7 +9,7 @@ const animationOptions = {
8
9
  fill: 'forwards',
9
10
  };
10
11
  export function collapse(el) {
11
- const elHeight = IS_BROWSER ? window.getComputedStyle(el).height : `${el.scrollHeight}px`;
12
+ const elHeight = Build.isBrowser ? globalThis.getComputedStyle(el).height : `${el.scrollHeight}px`;
12
13
  const expandedKeyframe = { height: elHeight };
13
14
  return el.animate([expandedKeyframe, collapsedKeyframe], animationOptions);
14
15
  }
@@ -3,6 +3,7 @@
3
3
  "components/post-date-picker/post-date-picker.js",
4
4
  "components/post-accordion/post-accordion.js",
5
5
  "components/post-accordion-item/post-accordion-item.js",
6
+ "components/post-autocomplete/post-autocomplete.js",
6
7
  "components/post-avatar/post-avatar.js",
7
8
  "components/post-back-to-top/post-back-to-top.js",
8
9
  "components/post-banner/post-banner.js",
@@ -17,6 +18,8 @@
17
18
  "components/post-language-menu/post-language-menu.js",
18
19
  "components/post-language-menu-item/post-language-menu-item.js",
19
20
  "components/post-linkarea/post-linkarea.js",
21
+ "components/post-listbox/post-listbox.js",
22
+ "components/post-listbox-option/post-listbox-option.js",
20
23
  "components/post-logo/post-logo.js",
21
24
  "components/post-mainnavigation/post-mainnavigation.js",
22
25
  "components/post-megadropdown/post-megadropdown.js",
@@ -37,8 +40,7 @@
37
40
  "components/post-tabs/post-tabs.js",
38
41
  "components/post-togglebutton/post-togglebutton.js",
39
42
  "components/post-tooltip/post-tooltip.js",
40
- "components/post-tooltip-trigger/post-tooltip-trigger.js",
41
- "utils/tests/environment/post-env-test.js"
43
+ "components/post-tooltip-trigger/post-tooltip-trigger.js"
42
44
  ],
43
45
  "compiler": {
44
46
  "name": "@stencil/core",
@@ -72,7 +72,7 @@ export class PostAccordion {
72
72
  if (this.multiple) {
73
73
  await Promise.all(this.accordionItems.map(item => item.toggle(true)));
74
74
  }
75
- else if (!this.expandedItems.size) {
75
+ else if (this.expandedItems.size === 0) {
76
76
  await this.accordionItems[0].toggle(true);
77
77
  }
78
78
  }
@@ -97,7 +97,7 @@ export class PostAccordion {
97
97
  });
98
98
  }
99
99
  render() {
100
- return (h(Host, { key: 'abd12317431d14e61e2f8e54b9f24b801b8c6954', "data-version": version }, h("div", { key: '9e2225a32458319de148a52a276a64407b282ec5', class: "accordion" }, h("slot", { key: 'e8213a7f663c85d16a5e8e1273d2233787b08f49', onSlotchange: () => this.registerAccordionItems() }))));
100
+ return (h(Host, { key: 'fa37ee5b4611a84d273229955bcf624e53120022', "data-version": version }, h("div", { key: '0884dc3582eb768c6dd4959168d7e9a9b4195c3c', class: "accordion" }, h("slot", { key: 'f6d81d89aca513094ac5c1d531ed9d63f7b93730', onSlotchange: () => this.registerAccordionItems() }))));
101
101
  }
102
102
  static get is() { return "post-accordion"; }
103
103
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1 @@
1
+ :host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;transition:transform .2s ease-in-out}:host([open]) .autocomplete-icon{transform:rotate(180deg)}.autocomplete-clear{display:flex;align-items:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}
@@ -0,0 +1,271 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { version } from "../../../../package";
3
+ import { debounce } from "../../utils/index";
4
+ /**
5
+ * @slot default - Slot for placing post-autocomplete-item components.
6
+ */
7
+ export class PostAutocomplete {
8
+ constructor() {
9
+ this.debouncedHandleInput = debounce((event) => this.handleInput(event), 250);
10
+ /** Number of characters to type before filtering methods are called */
11
+ this.filterThreshold = 0;
12
+ /** Show or hide the clear button */
13
+ this.clearable = false;
14
+ this.inputValue = '';
15
+ this.handleOnBlur = () => {
16
+ this.inputElement.value = this.inputValue;
17
+ this.listBoxElement.filter('');
18
+ this.hideListBox();
19
+ };
20
+ this.handleInput = (event) => {
21
+ if (!this.listBoxElement)
22
+ return;
23
+ const value = event.target.value.trim();
24
+ const query = value.length >= this.filterThreshold ? value : '';
25
+ // Allow for consuming parent to handle filtering (e.g. for async data) and prevent default filtering behavior
26
+ const { defaultPrevented } = this.postFilteringEvent.emit(query && query.length >= this.filterThreshold ? query : '');
27
+ if (defaultPrevented)
28
+ return;
29
+ this.listBoxElement.filter(query);
30
+ if (query) {
31
+ this.showListBox();
32
+ }
33
+ else {
34
+ this.inputValue = '';
35
+ }
36
+ };
37
+ this.handleKeyDown = (event) => {
38
+ const { key, altKey } = event;
39
+ switch (key) {
40
+ case 'ArrowDown':
41
+ event.preventDefault();
42
+ this.showListBox();
43
+ if (!altKey) {
44
+ this.listBoxElement.navigate('down');
45
+ }
46
+ break;
47
+ case 'ArrowUp':
48
+ event.preventDefault();
49
+ this.listBoxElement.navigate('up');
50
+ break;
51
+ case 'Enter':
52
+ if (this.listBoxElement.hidden)
53
+ return;
54
+ event.preventDefault();
55
+ this.listBoxElement.selectActive();
56
+ this.hideListBox();
57
+ break;
58
+ case 'Escape':
59
+ this.hideListBox();
60
+ break;
61
+ case 'Tab':
62
+ this.listBoxElement.selectActive();
63
+ this.hideListBox();
64
+ break;
65
+ case 'Home':
66
+ event.preventDefault();
67
+ this.listBoxElement.navigate('first');
68
+ break;
69
+ case 'End':
70
+ event.preventDefault();
71
+ this.listBoxElement.navigate('last');
72
+ break;
73
+ }
74
+ };
75
+ this.handleOptionSelected = (e) => {
76
+ const value = e.detail;
77
+ this.inputElement.value = value;
78
+ this.inputValue = value;
79
+ this.hideListBox();
80
+ };
81
+ this.handleOptionActive = (e) => {
82
+ const value = e.detail;
83
+ if (value) {
84
+ this.inputElement.setAttribute('aria-activedescendant', value);
85
+ }
86
+ else {
87
+ this.inputElement.removeAttribute('aria-activedescendant');
88
+ }
89
+ };
90
+ this.hideListBox = () => {
91
+ this.listBoxElement.hide();
92
+ this.inputElement.ariaExpanded = 'false';
93
+ this.host.removeAttribute('open');
94
+ this.inputElement.removeAttribute('aria-activedescendant');
95
+ };
96
+ this.showListBox = () => {
97
+ this.listBoxElement.show();
98
+ this.inputElement.ariaExpanded = 'true';
99
+ this.host.setAttribute('open', '');
100
+ };
101
+ this.clearInput = () => {
102
+ if (this.inputElement) {
103
+ this.inputElement.value = '';
104
+ this.inputValue = '';
105
+ this.listBoxElement.clearSelection();
106
+ this.hideListBox();
107
+ }
108
+ };
109
+ }
110
+ get inputElement() {
111
+ return this.host.querySelector('input');
112
+ }
113
+ get listBoxElement() {
114
+ if (this.listbox) {
115
+ return document.getElementById(this.listbox);
116
+ }
117
+ else {
118
+ return this.host.querySelector('post-listbox');
119
+ }
120
+ }
121
+ componentWillLoad() {
122
+ if (!this.inputElement)
123
+ return;
124
+ this.inputElement.role = 'combobox';
125
+ this.inputElement.ariaAutoComplete = 'list';
126
+ if (!this.listBoxElement)
127
+ return;
128
+ if (!this.listBoxElement.id)
129
+ this.listBoxElement.id = crypto.randomUUID();
130
+ this.inputElement.setAttribute('aria-controls', this.listBoxElement.id);
131
+ this.inputElement.setAttribute('aria-expanded', 'false');
132
+ // Because we're handling that and the browser would show a duplicate native autocomplete dropdown
133
+ this.inputElement.autocomplete = 'off';
134
+ this.attachInputListeners();
135
+ this.attachListboxListeners();
136
+ }
137
+ disconnectedCallback() {
138
+ this.detachInputListeners();
139
+ this.detachListboxListeners();
140
+ }
141
+ attachInputListeners() {
142
+ if (this.inputElement) {
143
+ this.inputElement.addEventListener('input', this.debouncedHandleInput);
144
+ this.inputElement.addEventListener('keydown', this.handleKeyDown);
145
+ this.inputElement.addEventListener('blur', this.handleOnBlur);
146
+ this.inputElement.addEventListener('click', this.showListBox);
147
+ }
148
+ }
149
+ detachInputListeners() {
150
+ if (this.inputElement) {
151
+ this.inputElement.removeEventListener('input', this.debouncedHandleInput);
152
+ this.inputElement.removeEventListener('keydown', this.handleKeyDown);
153
+ this.inputElement.removeEventListener('blur', this.handleOnBlur);
154
+ this.inputElement.removeEventListener('click', this.showListBox);
155
+ }
156
+ }
157
+ attachListboxListeners() {
158
+ if (this.listBoxElement) {
159
+ this.listBoxElement.addEventListener('postOptionSelected', this.handleOptionSelected);
160
+ this.listBoxElement.addEventListener('postOptionActive', this.handleOptionActive);
161
+ }
162
+ }
163
+ detachListboxListeners() {
164
+ if (this.listBoxElement) {
165
+ this.listBoxElement.removeEventListener('postOptionSelected', this.handleOptionSelected);
166
+ this.listBoxElement.removeEventListener('postOptionActive', this.handleOptionActive);
167
+ }
168
+ }
169
+ render() {
170
+ return (h(Host, { key: 'b6cae37c0a09a8ec76a2fdd56e0bb8c2c2f119fb', "data-version": version }, h("slot", { key: '2c5007aae99b96b9884bc3159add8beecad6fcc2' }), this.clearable && this.inputValue && (h("button", { key: 'a47ebadbbbdac11f00e9547d0a4c8224d24f31ca', type: "button", class: " autocomplete-clear", onClick: this.clearInput }, h("post-icon", { key: '2125443326e1656696815a93bda36136b48f2394', "aria-hidden": "true", name: "closex" }))), h("post-icon", { key: '109bba03d5d6567e166141a800c2f13198a16481', "aria-hidden": "true", class: "autocomplete-icon", name: "chevronDown" })));
171
+ }
172
+ static get is() { return "post-autocomplete"; }
173
+ static get encapsulation() { return "shadow"; }
174
+ static get originalStyleUrls() {
175
+ return {
176
+ "$": ["post-autocomplete.scss"]
177
+ };
178
+ }
179
+ static get styleUrls() {
180
+ return {
181
+ "$": ["post-autocomplete.css"]
182
+ };
183
+ }
184
+ static get properties() {
185
+ return {
186
+ "filterThreshold": {
187
+ "type": "number",
188
+ "mutable": false,
189
+ "complexType": {
190
+ "original": "number",
191
+ "resolved": "number",
192
+ "references": {}
193
+ },
194
+ "required": false,
195
+ "optional": false,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Number of characters to type before filtering methods are called"
199
+ },
200
+ "getter": false,
201
+ "setter": false,
202
+ "reflect": true,
203
+ "attribute": "filter-threshold",
204
+ "defaultValue": "0"
205
+ },
206
+ "clearable": {
207
+ "type": "boolean",
208
+ "mutable": false,
209
+ "complexType": {
210
+ "original": "boolean",
211
+ "resolved": "boolean",
212
+ "references": {}
213
+ },
214
+ "required": false,
215
+ "optional": false,
216
+ "docs": {
217
+ "tags": [],
218
+ "text": "Show or hide the clear button"
219
+ },
220
+ "getter": false,
221
+ "setter": false,
222
+ "reflect": true,
223
+ "attribute": "clearable",
224
+ "defaultValue": "false"
225
+ },
226
+ "listbox": {
227
+ "type": "string",
228
+ "mutable": false,
229
+ "complexType": {
230
+ "original": "string",
231
+ "resolved": "string",
232
+ "references": {}
233
+ },
234
+ "required": false,
235
+ "optional": true,
236
+ "docs": {
237
+ "tags": [],
238
+ "text": "Optional idref to connect the autocomplete with the options dropdown if not nested"
239
+ },
240
+ "getter": false,
241
+ "setter": false,
242
+ "reflect": true,
243
+ "attribute": "listbox"
244
+ }
245
+ };
246
+ }
247
+ static get states() {
248
+ return {
249
+ "inputValue": {}
250
+ };
251
+ }
252
+ static get events() {
253
+ return [{
254
+ "method": "postFilteringEvent",
255
+ "name": "postFilteringEvent",
256
+ "bubbles": true,
257
+ "cancelable": true,
258
+ "composed": true,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "Cancelable event emitted when the input value is to be filtered"
262
+ },
263
+ "complexType": {
264
+ "original": "string",
265
+ "resolved": "string",
266
+ "references": {}
267
+ }
268
+ }];
269
+ }
270
+ static get elementRef() { return "host"; }
271
+ }
@@ -144,13 +144,13 @@ export class PostAvatar {
144
144
  this.validateEmail();
145
145
  }
146
146
  render() {
147
- const names = [this.firstname, this.lastname].filter(n => n).map(n => n.trim());
147
+ const names = [this.firstname, this.lastname].filter(Boolean).map(n => n.trim());
148
148
  const initials = names
149
149
  .map(n => n.charAt(0))
150
150
  .join('')
151
151
  .trim();
152
152
  const fullname = names.join(' ');
153
- return (h(Host, { key: 'bdd17db2ff84691400cdeace8afbcc2e6d618035', "data-version": version }, h("span", { key: '07a61e22fe605647a36976b5f2ceb737bbee34cb', class: this.avatarType === 'slotted' ? '' : 'd-none' }, h("slot", { key: 'da66c273d5fe676d1e183d7f27b46426b52ba31a', onSlotchange: this.slotChanged.bind(this) })), this.avatarType === 'image' && h("img", { key: '79b3bdf14eabfaf5c2208cc9a24e0c0e5ef0b30d', src: this.imageUrl, alt: this.imageAlt }), this.avatarType === 'initials' && (h("span", { key: '125c3ee489f8e8f0772c856a77c4a97ab11d64f3', class: "initials" }, initials, h("span", { key: 'a48e6e430f0c5de6d790a9a820f86bbb5624ff81' }, this.description ?? fullname)))));
153
+ return (h(Host, { key: '56547a49f35e2d9ebafa54c2736b2ab60761c07b', "data-version": version }, h("span", { key: '864c5ab36c64bb440580ed307ce2f3dcefe2839d', class: this.avatarType === 'slotted' ? '' : 'd-none' }, h("slot", { key: 'cb06a958dc710675a97d197bffcee6ab742ad391', onSlotchange: this.slotChanged.bind(this) })), this.avatarType === 'image' && h("img", { key: 'abb6262b43b5fc5e2a7e4147c2375c6c623b5bf5', src: this.imageUrl, alt: this.imageAlt }), this.avatarType === 'initials' && (h("span", { key: '8bead70c99c12f3bbaab414e9431c3459553d36e', class: "initials" }, initials, h("span", { key: '45db185da4d9d82b1f08650f4dc40cd759e18c00' }, this.description ?? fullname)))));
154
154
  }
155
155
  static get is() { return "post-avatar"; }
156
156
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class PostBackToTop {
40
40
  }
41
41
  animateButton() {
42
42
  // Get the back-to-top button top postiion
43
- const positionTop = window.getComputedStyle(this.host).getPropertyValue('top');
43
+ const positionTop = globalThis.getComputedStyle(this.host).getPropertyValue('top');
44
44
  const buttonElement = this.host.shadowRoot.querySelector('button');
45
45
  // Extract the elevation height from the back-to-top button elevation token
46
46
  const elevation = getComputedStyle(buttonElement).getPropertyValue('--post-back-to-top-elevation');
@@ -51,8 +51,8 @@ export class PostBackToTop {
51
51
  // The translateY is calculated as => -100% (btt button height) - topPosition - elevationHeight
52
52
  this.translateY =
53
53
  (-1 * 100) / 100 -
54
- parseFloat(positionTop.replace('px', '')) -
55
- parseFloat(elevationHeight.replace('px', ''));
54
+ Number.parseFloat(positionTop.replace('px', '')) -
55
+ Number.parseFloat(elevationHeight.replace('px', ''));
56
56
  if (this.belowFold) {
57
57
  fadeSlide(this.host, 'in', { translate: this.translateY, fill: 'forwards' });
58
58
  }
@@ -73,7 +73,7 @@ export class PostBackToTop {
73
73
  window.removeEventListener('scroll', this.handleScroll);
74
74
  }
75
75
  render() {
76
- return (h(Host, { key: 'f79d17af53f529a1ad27128802ad02d07085d404', "data-version": version }, h("button", { key: '54d76baf6daeadf32d83a8acc5046bb45f8c281c', class: "back-to-top", "aria-hidden": this.belowFold ? 'false' : 'true', tabindex: this.belowFold ? '0' : '-1', onClick: this.scrollToTop }, h("post-icon", { key: '8033928bdd5fdbc07ac948378e9ba5414840e632', "aria-hidden": "true", name: "arrowup" }), h("span", { key: 'ede3e12e6c682b9c641e217b4a6b26c55171ca42', class: "visually-hidden" }, this.textBackToTop))));
76
+ return (h(Host, { key: '61eb934495029c80935798908bec448664008db0', "data-version": version }, h("button", { key: 'e7b8b9df30aa1bedef8aae8a5db800bb638c8bf7', class: "back-to-top", "aria-hidden": this.belowFold ? 'false' : 'true', tabindex: this.belowFold ? '0' : '-1', onClick: this.scrollToTop }, h("post-icon", { key: '34d23e7069de235f64743cc791c98034bbf14b5f', "aria-hidden": "true", name: "arrowup" }), h("span", { key: '7479cc95e9e2825455fd8a7e69085ccedc73cb35', class: "visually-hidden" }, this.textBackToTop))));
77
77
  }
78
78
  static get is() { return "post-back-to-top"; }
79
79
  static get encapsulation() { return "shadow"; }
@@ -57,7 +57,7 @@ export class PostBanner {
57
57
  this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
58
58
  }
59
59
  render() {
60
- return (h(Host, { key: '8c06f60d7d33f4087359a3166e16b340bd19cad6', "data-version": version, role: "alert", "data-color-scheme": "light" }, h("slot", { key: '2bb4f8a536012c5577840921aab267a9cb8134b7', name: "close-button" }), h("slot", { key: '7cded56e638ef427884507c0f0cd9557bfb6d1c7', name: "heading" }), h("slot", { key: '4988c4b39c9af989740d642ddb505269951bfd16' }), this.hasActions && (h("div", { key: '5bfd1c2d0869cad0831e5c68632a7309ee399795', class: "actions" }, h("slot", { key: '442abb44a4b947038c5716a0e7b22ff3f0d8b0ee', name: "actions" })))));
60
+ return (h(Host, { key: 'aba639e5ce3ebc0498437f4011ff4b39e41489ee', "data-version": version, role: "alert", "data-color-scheme": "light" }, h("slot", { key: 'cd81197f4a8aecbec482bbc174783ad1d00fd5eb', name: "close-button" }), h("slot", { key: 'be9fd011e9d17207e1cb56dea3dcfd4481a4c31c', name: "heading" }), h("slot", { key: 'a06e94c05e4cfe4bbb1bdccf29fdc75ed67828ca' }), this.hasActions && (h("div", { key: '3ce94c84ea3eeda53694809432059b05b53c7cde', class: "actions" }, h("slot", { key: 'a33798352de63a23cfa77bbd9be58a8cc5585121', name: "actions" })))));
61
61
  }
62
62
  static get is() { return "post-banner"; }
63
63
  static get encapsulation() { return "shadow"; }
@@ -9,7 +9,7 @@ export class PostBreadcrumbItem {
9
9
  try {
10
10
  this.validUrl = this.constructUrl(this.url);
11
11
  }
12
- catch (error) {
12
+ catch {
13
13
  this.validUrl = undefined;
14
14
  }
15
15
  }
@@ -17,7 +17,7 @@ export class PostBreadcrumbItem {
17
17
  constructUrl(value) {
18
18
  const hasBaseURL = /^https?:\/\//.test(String(this.url));
19
19
  if (typeof value === 'string') {
20
- this.fullUrl = hasBaseURL ? value : `${window.location.origin}${value}`;
20
+ this.fullUrl = hasBaseURL ? value : `${globalThis.location.origin}${value}`;
21
21
  checkEmptyOrUrl(this, 'fullUrl');
22
22
  return this.fullUrl;
23
23
  }
@@ -37,7 +37,7 @@ export class PostBreadcrumbItem {
37
37
  }
38
38
  render() {
39
39
  const BreadcrumbTag = this.validUrl ? 'a' : 'span';
40
- return (h(Host, { key: '2d083dc9ebf3c47dce95f3f854a539afceb24102', "data-version": version }, h("post-icon", { key: '40cdd5b85dc3f906d29d7b696264b2f7e8057034', name: "chevronright", class: "breadcrumb-item-icon" }), h(BreadcrumbTag, { key: '5b82e332db134788695888f57e6e1e7f0bf0ddf5', class: "breadcrumb-item", ...(this.validUrl ? { href: this.validUrl } : {}), onKeyDown: event => this.handleKeyDown(event) }, h("slot", { key: 'ee75b4bdd1580edf775bc9322f3a421622e157ab' }))));
40
+ return (h(Host, { key: 'bdcfdbdf47cc64f7a847f1187dd1e0877731bb1d', "data-version": version }, h("post-icon", { key: '98b8ac5b2131e7028a81fdc1b627a86086f41466', name: "chevronright", class: "breadcrumb-item-icon" }), h(BreadcrumbTag, { key: 'c5ef5c8468d1561665a8701aa8b96142539fab02', class: "breadcrumb-item", ...(this.validUrl ? { href: this.validUrl } : {}), onKeyDown: event => this.handleKeyDown(event) }, h("slot", { key: '8e0d4791585d80379f27424bc1547792df124501' }))));
41
41
  }
42
42
  static get is() { return "post-breadcrumb-item"; }
43
43
  static get encapsulation() { return "shadow"; }
@@ -53,7 +53,7 @@ export class PostBreadcrumbs {
53
53
  text: item.textContent || '',
54
54
  url: item.getAttribute('url') || '',
55
55
  }));
56
- this.lastItem = this.breadcrumbItems[this.breadcrumbItems.length - 1];
56
+ this.lastItem = this.breadcrumbItems.at(-1);
57
57
  }
58
58
  // Determines parent width for concatenation logic
59
59
  getParentWidth() {
@@ -88,7 +88,7 @@ export class PostBreadcrumbs {
88
88
  }
89
89
  render() {
90
90
  const visibleItems = this.breadcrumbItems.slice(0, -1);
91
- return (h(Host, { key: '318567e919b1e1e114acaa57195d5123a75e0e4b', "data-version": version }, h("nav", { key: '673a5f400ed5d80cde3d3d71b739284d8d4226b4', "aria-label": this.textBreadcrumbs, class: "breadcrumbs-nav", ref: el => (this.breadcrumbsNavRef = el) }, h("ol", { key: 'de6d8f6f9c5e5ca78f9dd4da1d84db04efda4457', class: "no-list breadcrumbs-list" }, h("li", { key: '89498e7c9e5faf88c5bc2afc7c8de829a592356a' }, h("a", { key: 'dcea8c2e7aaf60e8aedcf61a63bd7bc1869da0c3', href: this.homeUrl, class: "breadcrumb-link" }, h("span", { key: 'a314db08e5ce9efa8fe75aa860ecff3534316490', class: "visually-hidden" }, this.textHome), h("post-icon", { key: 'cd08855f88018c76b1cfebecddc0d469dc4c6b2d', name: "home", class: "home-icon" }))), this.isConcatenated ? (h("li", { class: "menu-trigger-wrapper" }, h("post-icon", { name: "chevronright", class: "breadcrumb-item-icon" }), h("div", { class: "actual-menu" }, h("post-menu-trigger", { for: "breadcrumb-menu", tabIndex: 0, onKeyDown: e => {
91
+ return (h(Host, { key: '40f31406ce27c2cf9092b693000ab3d724135939', "data-version": version }, h("nav", { key: 'f6bdd378f1fefa788cdde2a13fe9e14b383ec016', "aria-label": this.textBreadcrumbs, class: "breadcrumbs-nav", ref: el => (this.breadcrumbsNavRef = el) }, h("ol", { key: 'c230d44e75bc51e845078d1e7294028a1ae148ea', class: "no-list breadcrumbs-list" }, h("li", { key: '009f42442efe00c28c3015d8f2f5006e98d8b652' }, h("a", { key: '8b4768987f9d8210f0a55bf7129c6efd9b03c7cd', href: this.homeUrl, class: "breadcrumb-link" }, h("span", { key: '9619bf219e357bb9c6c4541ab62f9983745abfdd', class: "visually-hidden" }, this.textHome), h("post-icon", { key: '1e17cae0680a164c9e3c5884faf85f83ee414529', name: "home", class: "home-icon" }))), this.isConcatenated ? (h("li", { class: "menu-trigger-wrapper" }, h("post-icon", { name: "chevronright", class: "breadcrumb-item-icon" }), h("div", { class: "actual-menu" }, h("post-menu-trigger", { for: "breadcrumb-menu", tabIndex: 0, onKeyDown: e => {
92
92
  if (e.key === 'Enter' || e.key === ' ') {
93
93
  e.preventDefault();
94
94
  this.handleBreadcrumbItemClick();
@@ -99,7 +99,7 @@ export class PostBreadcrumbs {
99
99
  linkElement?.click();
100
100
  e.preventDefault();
101
101
  }
102
- } }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map(item => (h("li", null, h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text))))), this.lastItem && (h("li", { key: '0c7bec7b0468bd025739f83e49ec4c705b84ff5f', "aria-current": "page" }, h("post-breadcrumb-item", { key: '4f241748849a7a0bd108a082606ee6f9851ea346', url: this.lastItem.url, tabindex: -1 }, this.lastItem.text)))), h("div", { key: '459d049cf7cbafacc5b45bdb4314faf3e432b073', class: "hidden-items" }, h("a", { key: '2607b06fa06d7b1137b5c34e65ca0b6427f8f912', href: this.homeUrl, class: "hidden-breadcrumb-item" }, h("span", { key: '856d00be8da22e7b8c326828a074377e33d1ddff', class: "visually-hidden" }, this.textHome), h("post-icon", { key: '623bb4b66de721539936af7dd25a697a5ed3255e', name: "home", class: "home-icon" })), this.breadcrumbItems.map(item => (h("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
102
+ } }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map(item => (h("li", null, h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text))))), this.lastItem && (h("li", { key: '34acb6f31f5e4cbbf8af56423e0826af15e835a5', "aria-current": "page" }, h("post-breadcrumb-item", { key: '2d3223a06456c3751924cee8a418d99ca42b396c', url: this.lastItem.url, tabindex: -1 }, this.lastItem.text)))), h("div", { key: '7aa99a887779935ff829520376abe587302c5525', class: "hidden-items" }, h("a", { key: '6223e41d9ae7768dd73756ca5217a633057deda5', href: this.homeUrl, class: "hidden-breadcrumb-item" }, h("span", { key: '9dd0f99c66710b43a9702a8fd04b464286e9d77a', class: "visually-hidden" }, this.textHome), h("post-icon", { key: '6ae5ebd04f924d1e5b2fed83d787fedf0aa6afd1', name: "home", class: "home-icon" })), this.breadcrumbItems.map(item => (h("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
103
103
  }
104
104
  static get is() { return "post-breadcrumbs"; }
105
105
  static get encapsulation() { return "shadow"; }
@@ -54,7 +54,7 @@ export class PostClosebutton {
54
54
  }
55
55
  }
56
56
  render() {
57
- return (h(Host, { key: '1923a9236ae7d7929e8162dcf8d62dd21bfce0b5', "data-version": version }, h("button", { key: '484f61b681279742acf3376f85f5200a73d319ad', type: this.buttonType, class: "btn btn-icon btn-secondary btn-sm" }, h("post-icon", { key: '943f8ec5194bbbca3e4403ea0bee51aca14404c0', "aria-hidden": "true", name: "closex" }), h("span", { key: '832023a95b101cd9db01fee0b317c2740997f187', class: "visually-hidden" }, h("slot", { key: '371b19a4d9eceeb7490584e265288c533a7f8df4' })))));
57
+ return (h(Host, { key: 'e2adc6a13c30c9b03947a56bbd94dc86b96f31d2', "data-version": version }, h("button", { key: '03bc7eacb0d9c33bc2eb2d816f74990c6eb3f47f', type: this.buttonType, class: "btn btn-icon btn-secondary btn-sm" }, h("post-icon", { key: 'b284a23e0eeb00c44c878672b4d8ed5e0ee058c6', "aria-hidden": "true", name: "closex" }), h("span", { key: '5aa5cbada2bac5532cc6f4e54e01ff11465e99c2', class: "visually-hidden" }, h("slot", { key: 'e8dd45b5c422504f6e7115f6fe3e498c14ed201d' })))));
58
58
  }
59
59
  static get is() { return "post-closebutton"; }
60
60
  static get originalStyleUrls() {
@@ -1,7 +1,7 @@
1
- import { h, Host, } from "@stencil/core";
1
+ import { h, Host, Build, } from "@stencil/core";
2
2
  import { version } from "../../../../package";
3
3
  import { collapsedKeyframe, collapse, expand } from "../../animations/collapse";
4
- import { IS_BROWSER, checkEmptyOrType } from "../../utils/index";
4
+ import { checkEmptyOrType } from "../../utils/index";
5
5
  /**
6
6
  * @slot default - Slot for placing content within the collapsible element.
7
7
  */
@@ -36,7 +36,7 @@ export class PostCollapsible {
36
36
  // due to its implementation with the getter, which returns !this.collapsed
37
37
  this.collapsed = !shouldExpand;
38
38
  const isExpanded = this.isExpanded;
39
- if (IS_BROWSER) {
39
+ if (Build.isBrowser) {
40
40
  const animation = isExpanded ? expand(this.host) : collapse(this.host);
41
41
  this.postToggle.emit(isExpanded);
42
42
  await animation.finished;
@@ -53,7 +53,7 @@ export class PostCollapsible {
53
53
  triggers.forEach(trigger => trigger.update());
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: '46e5b97bfac36ff9f60398c6186a5d906bec72fc', "data-version": version, tabindex: this.collapsed ? -1 : undefined, style: this.collapsed ? collapsedKeyframe : undefined }, h("slot", { key: '09b88ac9aba78cdccf66b93be582c80530667528' })));
56
+ return (h(Host, { key: '56849ad4460bcc4467421845a0daafab39a6e9f1', "data-version": version, tabindex: this.collapsed ? -1 : undefined, style: this.collapsed ? collapsedKeyframe : undefined }, h("slot", { key: '064efc18544babbeb1244f549790bc961451e9f0' })));
57
57
  }
58
58
  static get is() { return "post-collapsible"; }
59
59
  static get encapsulation() { return "shadow"; }
@@ -97,7 +97,7 @@ export class PostCollapsibleTrigger {
97
97
  this.updateAriaAttributes();
98
98
  }
99
99
  render() {
100
- return (h(Host, { key: 'beb213bb418b76eaf9449e33b7a4c66c047f166c', "data-version": version }, h("slot", { key: '63f8b0ef5b728697deb2cd528f626fa1d86ab76b' })));
100
+ return (h(Host, { key: '73b39b4e52d0b57fbab787208926910e8cb6d9d3', "data-version": version }, h("slot", { key: '88642cdd88a2b4fd6d02e55023675f85d0bf6020' })));
101
101
  }
102
102
  static get is() { return "post-collapsible-trigger"; }
103
103
  static get encapsulation() { return "shadow"; }