@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
@@ -144,7 +144,7 @@ export class PostMenu {
144
144
  }
145
145
  controlKeyDownHandler(e) {
146
146
  const menuItems = this.getSlottedItems();
147
- if (!menuItems.length) {
147
+ if (menuItems.length === 0) {
148
148
  return;
149
149
  }
150
150
  let currentIndex = menuItems.findIndex(el => {
@@ -191,7 +191,7 @@ export class PostMenu {
191
191
  .flatMap(el => Array.from(getFocusableChildren(el))));
192
192
  }
193
193
  render() {
194
- return (h(Host, { key: 'eedd5fbb9d151ebf7d97b66fc45b57a7259ff526', "data-version": version }, h("post-popovercontainer", { key: '5942a2fb4cf22f227a4a7d9b4ba31bb5f8cabdd3', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: 'c0271e33046edecd94cb9a5f9e8df30debfe46a1', part: "post-menu" }, h("slot", { key: 'b625baf3767cdf2c34b3f5038415cdd2a51418da', name: "header" }), h("slot", { key: '7374e93e7b2762bf548ae0ecc72596da1e715725' })))));
194
+ return (h(Host, { key: 'a60bf6255b37ad07a25cbc2fd96e9ada4368ad37', "data-version": version }, h("post-popovercontainer", { key: 'eef8b43481a5e9eb0b9d64f18fc226dc9c49ca69', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '5f26e8d32c9653acbdd918e8676e4e92c5b218d3', part: "post-menu" }, h("slot", { key: 'c1f81a3a0e3a214bff8b59dc3f1445526c072ea7', name: "header" }), h("slot", { key: '36214a951440a02220183aeb2eee22d3a394b90d' })))));
195
195
  }
196
196
  static get is() { return "post-menu"; }
197
197
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { version } from "../../../../package";
2
2
  export class PostMenuItem {
3
3
  connectedCallback() {
4
- this.host.setAttribute('data-version', version);
4
+ this.host.dataset.version = version;
5
5
  }
6
6
  static get is() { return "post-menu-item"; }
7
7
  static get originalStyleUrls() {
@@ -59,7 +59,7 @@ export class PostMenuTrigger {
59
59
  return null;
60
60
  }
61
61
  render() {
62
- return (h(Host, { key: '8f2a4511ad519f20b1847fa4ce0ecdd1d859b9ea', "data-version": version }, h("slot", { key: '9c23569b7c5cba5934a869bd4a252957de3e53d5' })));
62
+ return (h(Host, { key: '46dbe700998f60d9b6e85c09a2992aa702c1af52', "data-version": version }, h("slot", { key: '339ecc1a3ba354199d9f3c0ff84fd2f8b2f1b4a4' })));
63
63
  }
64
64
  static get is() { return "post-menu-trigger"; }
65
65
  static get encapsulation() { return "shadow"; }
@@ -1 +1,4 @@
1
- :host{display:inline-flex;align-items:end}.input-container{position:relative}.step-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);height:60px;padding-inline:10px;font-size:32px;flex:0 0 auto;border-radius:4px}.step-button:hover{text-decoration:none}.step-button:disabled{border-style:var(--post-core-border-style-dash)}.step-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(a){color:LinkText;border:unset}.step-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.step-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.step-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.step-button:first-of-type{border-start-end-radius:0;border-end-end-radius:0}.step-button:last-of-type{border-start-start-radius:0;border-end-start-radius:0}.step-button:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.step-button.disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);border-style:dashed;pointer-events:none;cursor:unset}
1
+ :host{display:inline-flex;align-items:end;width:100%}:host ::slotted(input[type=number]),:host .step-button{height:var(--post-device-sizing-interactive-button-height-6) !important}:host ::slotted(input[type=number]){border-radius:0 !important;padding-inline:var(--post-device-spacing-padding-inline-1);padding-block-start:var(--post-device-spacing-padding-block-29);padding-block-end:var(--post-device-spacing-padding-block-3)}:host ::slotted(input[type=number]:focus){outline:none !important}:host .step-button.disabled{background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);border-style:var(--post-core-border-style-dash)}:host(.number-input-sm) ::slotted(input[type=number]),:host(.number-input-sm) .step-button{height:var(--post-device-sizing-interactive-button-height-8) !important}:host(.number-input-sm) ::slotted(input[type=number]){font-size:var(--post-device-font-size-7) !important;padding-inline:var(--post-device-spacing-padding-inline-1) !important;padding-block:var(--post-device-spacing-padding-29) !important}:host(.number-input-sm) ::slotted(input[type=number].is-valid),:host(.number-input-sm) ::slotted(input[type=number].is-invalid){background-size:var(--post-device-sizing-notification-5) !important;padding-inline-end:calc(
2
+ (var(--post-device-spacing-padding-inline-1)* 2) +
3
+ var(--post-device-sizing-notification-5)
4
+ ) !important}:host(.number-input-sm) .step-button{padding-inline:var(--post-device-spacing-padding-32);padding-block:var(--post-device-spacing-padding-2)}:host(.number-input-sm) .step-button post-icon{width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7)}:host(:hover) .step-button:not(.disabled){background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:hover) .step-button:not(.disabled){border-color:Highlight}}:host(:hover) .step-button:not(.disabled),:host(:hover) .step-button:not(.disabled) post-icon{color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.input-container{position:relative;flex-grow:1}.input-container:focus-within::after{content:"";pointer-events:none;z-index:2;width:calc(100% + (var(--post-device-border-width-default) * 2));height:calc(100% + (var(--post-device-border-width-default) * 2));border:var(--post-device-border-width-focus) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-focus-stroke);position:absolute;border-radius:var(--post-device-border-radius-1);top:calc((var(--post-device-border-width-default) * 2)*-1);left:calc((var(--post-device-border-width-default) * 2)*-1)}.step-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;transition:unset;box-sizing:border-box;flex:0 0 auto;border-radius:var(--post-device-border-radius-1);padding-inline:var(--post-device-spacing-padding-23);padding-block:var(--post-device-spacing-padding-22);box-shadow:var(--post-device-elevation-100);border:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.step-button:hover{text-decoration:none}.step-button:disabled{border-style:var(--post-core-border-style-dash)}.step-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(a){color:LinkText;border:unset}.step-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.step-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.step-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.step-button post-icon{width:var(--post-device-sizing-interactive-icon-size6);height:var(--post-device-sizing-interactive-icon-size6)}.step-button:first-of-type{border-start-end-radius:0;border-end-end-radius:0;border-inline-end-width:0}.step-button:last-of-type{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0}.step-button.disabled{pointer-events:none;cursor:unset}
@@ -3,20 +3,24 @@ import { debounce } from "throttle-debounce";
3
3
  import { version } from "../../../../package";
4
4
  import { getSlottedElement, repeatOnLongPress } from "../../utils/index";
5
5
  function parseNumber(input, key) {
6
- const value = parseFloat(input[key]);
7
- return isNaN(value) ? undefined : value;
6
+ const value = Number.parseFloat(input[key]);
7
+ return Number.isNaN(value) ? undefined : value;
8
8
  }
9
9
  function compare(value, bound, comparator) {
10
10
  return value !== undefined && bound !== undefined && comparator(value, bound);
11
11
  }
12
12
  export class PostNumberInput {
13
13
  constructor() {
14
+ this.isDisabled = false;
14
15
  this.isIncrementDisabled = false;
15
16
  this.isDecrementDisabled = false;
17
+ this.small = false;
16
18
  this.setupInput = debounce(50, () => {
17
19
  this.input = this.input ?? getSlottedElement(this.host, 'input[type="number"]');
18
20
  if (!this.input)
19
21
  return;
22
+ this.isDisabled = this.input.disabled;
23
+ this.small = this.input.classList.contains('form-control-sm');
20
24
  // step buttons may be disabled when the input loads
21
25
  this.updateStepButtonState();
22
26
  // step buttons may become disabled after the value is changed via keyboard / typing
@@ -84,7 +88,10 @@ export class PostNumberInput {
84
88
  }
85
89
  render() {
86
90
  const areButtonsShown = !!this.input;
87
- return (h(Host, { key: '46550d929e231f75702c1b9117bfc4d14d432aaa', "data-version": version }, areButtonsShown && (h("div", { key: '2b455c22e76e9fc8a2064f522f793aeaede4ee06', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: 'f8708da3644e0f2e07ace2aade7f84f83d446e17', name: "minus" }))), h("div", { key: 'a0c56a85d84d430e33096d2b1f4061231bedd184', class: "input-container" }, h("slot", { key: 'b3ada186248d64a1c77fe3126d5a27855a005021', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '523843cfea31ded5c1e77f2bdaf55aa68e69fb7d', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: 'a57c389d303e23a4f445e6fda2aff3e1c8503f4f', name: "plus" })))));
91
+ return (h(Host, { key: '84866a46bf2fdf8602213582e71fbc624fb3a7a6', "data-version": version, class: {
92
+ 'number-input-sm': this.small,
93
+ 'disabled': this.isDisabled,
94
+ } }, areButtonsShown && (h("div", { key: '33ed7af27e07a32d4063474889e15c568a140776', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: 'bf88349e2e442d4db77329cdd33332b5249e745a', name: "minus" }))), h("div", { key: '9e7cd209f45ef55f1e91dc5b9842fb9e56513f4b', class: "input-container" }, h("slot", { key: 'c3da29d4836c913f9ba466835afbd9219a6dc980', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '4fe40703c338a8ec8b1efa9922bcd7b96b72aa30', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: 'da54f7441c60c4732cc671022a33ebb8cfae4472', name: "plus" })))));
88
95
  }
89
96
  static get is() { return "post-number-input"; }
90
97
  static get encapsulation() { return "shadow"; }
@@ -100,8 +107,10 @@ export class PostNumberInput {
100
107
  }
101
108
  static get states() {
102
109
  return {
110
+ "isDisabled": {},
103
111
  "isIncrementDisabled": {},
104
112
  "isDecrementDisabled": {},
113
+ "small": {},
105
114
  "input": {}
106
115
  };
107
116
  }
@@ -101,7 +101,7 @@ export class PostPagination {
101
101
  scheduleMeasurement() {
102
102
  if (!this.loaded)
103
103
  return;
104
- this.measurementTimeoutId = window.setTimeout(() => {
104
+ this.measurementTimeoutId = globalThis.setTimeout(() => {
105
105
  const canMeasure = this.navRef?.clientWidth > 0 && this.hiddenItemsRef;
106
106
  if (canMeasure) {
107
107
  this.measureAndCalculateVisiblePages();
@@ -173,9 +173,9 @@ export class PostPagination {
173
173
  getPaginationPadding() {
174
174
  if (!this.navRef)
175
175
  return 0;
176
- const computedStyle = window.getComputedStyle(this.navRef);
177
- const paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
178
- const paddingRight = parseFloat(computedStyle.paddingRight) || 0;
176
+ const computedStyle = globalThis.getComputedStyle(this.navRef);
177
+ const paddingLeft = Number.parseFloat(computedStyle.paddingLeft) || 0;
178
+ const paddingRight = Number.parseFloat(computedStyle.paddingRight) || 0;
179
179
  return paddingLeft + paddingRight;
180
180
  }
181
181
  /**
@@ -196,8 +196,8 @@ export class PostPagination {
196
196
  * Clamps the page number to valid range
197
197
  */
198
198
  clampPageToValidRange(totalPages) {
199
- const invalidTotalPages = totalPages === 0 || this.invalidSize || isNaN(totalPages);
200
- const invalidPage = !this.page || this.page < 1 || isNaN(this.page);
199
+ const invalidTotalPages = totalPages === 0 || this.invalidSize || Number.isNaN(totalPages);
200
+ const invalidPage = !this.page || this.page < 1 || Number.isNaN(this.page);
201
201
  const pageExceedsTotal = this.page > totalPages;
202
202
  if (invalidTotalPages || invalidPage) {
203
203
  return 1;
@@ -62,7 +62,7 @@ export class PostPopover {
62
62
  }
63
63
  }
64
64
  render() {
65
- return (h(Host, { key: 'a6f257c7ee86f91c1726ab2c0a4f15a8c1725aae', "data-version": version }, h("post-popovercontainer", { key: 'f0a122aa46f9d28d2215e0cd5e5d6aba1e3e714e', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '80c41384076fa08397b44ca8c42a9fe0c0700c27', class: "popover-container" }, h("div", { key: 'c93714efca7aa854189681efa2346a560a68f034', class: "popover-content" }, h("slot", { key: '2b2df304dde672ce8d7415e309c5cd8d70144ada' })), h("post-closebutton", { key: 'e212d4ad9678844e65aa4efb35e796111812b033', onClick: () => this.hide() }, this.textClose)))));
65
+ return (h(Host, { key: '859812ad40c54e61ea90625d0170cc0336d5eba3', "data-version": version }, h("post-popovercontainer", { key: '47cdd1e48d4bf937d74c90fbb7f8d7ab73af1593', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: 'ec5e72c7d463de0a92220d9a4e7be7fd6f6669a7', class: "popover-container" }, h("div", { key: '4934817369aa06236011af0e34763bd890ac3b4b', class: "popover-content" }, h("slot", { key: 'b3f56b3c9e5642cc210b18bd5a5abc4b4daf36e0' })), h("post-closebutton", { key: '354e2d16c3e4ba475a0cd030539da4a915950b1c', onClick: () => this.hide() }, this.textClose)))));
66
66
  }
67
67
  static get is() { return "post-popover"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -105,7 +105,7 @@ export class PostPopoverTrigger {
105
105
  this.popover?.removeEventListener('postToggle', this.boundHandlePostToggle);
106
106
  }
107
107
  render() {
108
- return (h(Host, { key: '5420b1a86908cc2f103bc7aca148701e8804f21b', "data-version": version }, h("slot", { key: '0e70264cb19becf5386cff430c530de2a8d043dd', onSlotchange: () => this.setupTrigger() })));
108
+ return (h(Host, { key: '52d004cbdcb7be0b7df6c10f70f5b3bdbeb89a27', "data-version": version }, h("slot", { key: '5eabc986947a00ed1fad3ce3f8103e615f709d9f', onSlotchange: () => this.setupTrigger() })));
109
109
  }
110
110
  static get is() { return "post-popover-trigger"; }
111
111
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,5 @@
1
- import { Host, h, } from "@stencil/core";
2
- import { IS_BROWSER, checkEmptyOrOneOf, checkEmptyOrType } from "../../utils/index";
1
+ import { Host, h, Build, } from "@stencil/core";
2
+ import { checkEmptyOrOneOf, checkEmptyOrType } from "../../utils/index";
3
3
  import { version } from "../../../../package";
4
4
  import { arrow, autoUpdate, computePosition, flip, inline, limitShift, offset, shift, size, } from "@floating-ui/dom";
5
5
  import { PLACEMENT_TYPES } from "../../types/index";
@@ -14,6 +14,7 @@ const ANIMATIONS = {
14
14
  */
15
15
  export class PostPopovercontainer {
16
16
  constructor() {
17
+ this.toggleTimeoutId = null;
17
18
  this.hasOpenedOnce = true;
18
19
  /**
19
20
  * Defines the placement of the popovercontainer according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
@@ -34,6 +35,7 @@ export class PostPopovercontainer {
34
35
  */
35
36
  this.animation = 'pop-in';
36
37
  this.currentAnimation = null;
38
+ this.boundMouseTrackingHandler = this.mouseTrackingHandler.bind(this);
37
39
  }
38
40
  validatePlacement() {
39
41
  checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
@@ -54,7 +56,7 @@ export class PostPopovercontainer {
54
56
  this.host.style.setProperty('--post-safe-space-cursor-y', `${event.clientY}px`);
55
57
  }
56
58
  connectedCallback() {
57
- if (IS_BROWSER && !isSupported()) {
59
+ if (Build.isBrowser && !isSupported()) {
58
60
  apply();
59
61
  }
60
62
  }
@@ -129,7 +131,7 @@ export class PostPopovercontainer {
129
131
  }
130
132
  }
131
133
  if (this.safeSpace) {
132
- window.addEventListener('mousemove', this.mouseTrackingHandler.bind(this));
134
+ globalThis.addEventListener('mousemove', this.boundMouseTrackingHandler);
133
135
  }
134
136
  }
135
137
  /**
@@ -140,7 +142,7 @@ export class PostPopovercontainer {
140
142
  this.clearAutoUpdate();
141
143
  }
142
144
  if (this.safeSpace) {
143
- window.removeEventListener('mousemove', this.mouseTrackingHandler.bind(this));
145
+ globalThis.removeEventListener('mousemove', this.boundMouseTrackingHandler);
144
146
  }
145
147
  // Cancel any running animation
146
148
  if (this.currentAnimation) {
@@ -196,7 +198,7 @@ export class PostPopovercontainer {
196
198
  * @param e ToggleEvent
197
199
  */
198
200
  handleToggle(e) {
199
- this.toggleTimeoutId = window.setTimeout(() => (this.toggleTimeoutId = null), 10);
201
+ this.toggleTimeoutId = globalThis.setTimeout(() => (this.toggleTimeoutId = null), 10);
200
202
  const isOpen = e.newState === 'open';
201
203
  if (isOpen) {
202
204
  this.open();
@@ -219,7 +221,7 @@ export class PostPopovercontainer {
219
221
  */
220
222
  getHeaderHeight() {
221
223
  const header = document.querySelector('post-header');
222
- return header ? parseFloat(getComputedStyle(header).height) : 0;
224
+ return header ? Number.parseFloat(getComputedStyle(header).height) : 0;
223
225
  }
224
226
  async calculatePosition() {
225
227
  const { x, y, middlewareData, placement } = await this.computeMainPosition();
@@ -256,17 +258,23 @@ export class PostPopovercontainer {
256
258
  }
257
259
  async computeMainPosition() {
258
260
  const gap = this.edgeGap;
259
- const middleware = [
260
- flip({
261
- padding: this.getHeaderHeight(),
261
+ const isAligned = (this.placement || 'top').includes('-');
262
+ const flipMiddleware = flip({
263
+ padding: this.getHeaderHeight(),
264
+ crossAxis: false,
265
+ });
266
+ const shiftMiddleware = shift({
267
+ padding: gap,
268
+ limiter: limitShift({
269
+ offset: 32,
262
270
  }),
271
+ });
272
+ const middleware = [
273
+ offset(this.offset ?? (this.arrow ? gap + 4 : gap)),
263
274
  inline(),
264
- shift({
265
- padding: gap,
266
- limiter: limitShift({
267
- offset: 32,
268
- }),
269
- }),
275
+ // Per floating-ui docs: for aligned placements (e.g. bottom-end),
276
+ // flip should come before shift. For non-aligned, shift before flip.
277
+ ...(isAligned ? [flipMiddleware, shiftMiddleware] : [shiftMiddleware, flipMiddleware]),
270
278
  size({
271
279
  apply({ availableWidth, elements }) {
272
280
  Object.assign(elements.floating.style, {
@@ -274,7 +282,6 @@ export class PostPopovercontainer {
274
282
  });
275
283
  },
276
284
  }),
277
- offset(this.arrow ? gap + 4 : gap),
278
285
  ];
279
286
  if (this.arrow) {
280
287
  middleware.push(arrow({ element: this.arrowRef, padding: gap }));
@@ -346,9 +353,9 @@ export class PostPopovercontainer {
346
353
  }
347
354
  }
348
355
  render() {
349
- return (h(Host, { key: 'd151b19fb59ddad0d0dbefd48e55a9587bedcb60', "data-version": version, popover: "auto" }, h("div", { key: '74a42b48e1e3c764ff81a3c76a54f64aebeece53', part: "post-popovercontainer-content", class: "popover-content" }, this.arrow && (h("span", { key: 'e6b3c8932b7436a8ae8914275817ac730f4c97f4', "dynamic-placement": this.dynamicPlacement, class: "arrow", ref: el => {
356
+ return (h(Host, { key: '9da5ddc34b0f749826341154e1893e2ac303ed4d', "data-version": version, popover: "auto" }, h("div", { key: 'd3a56362b6ecd910455873ce62b1f7a753c6eaa8', part: "post-popovercontainer-content", class: "popover-content" }, this.arrow && (h("span", { key: '45b982f1a4d1ca5ca4feae898b1e5ea338409455', "dynamic-placement": this.dynamicPlacement, class: "arrow", ref: el => {
350
357
  this.arrowRef = el;
351
- } })), h("slot", { key: 'e0cbf352c1aba2c2843ba41aa49e52b0933e93ac' }))));
358
+ } })), h("slot", { key: 'e9231da953aa6b0e4c63eede8aba900f16fab4b6' }))));
352
359
  }
353
360
  static get is() { return "post-popovercontainer"; }
354
361
  static get encapsulation() { return "shadow"; }
@@ -411,6 +418,25 @@ export class PostPopovercontainer {
411
418
  "attribute": "edge-gap",
412
419
  "defaultValue": "8"
413
420
  },
421
+ "offset": {
422
+ "type": "number",
423
+ "mutable": false,
424
+ "complexType": {
425
+ "original": "number",
426
+ "resolved": "number",
427
+ "references": {}
428
+ },
429
+ "required": false,
430
+ "optional": true,
431
+ "docs": {
432
+ "tags": [],
433
+ "text": "Offset for more precise placement"
434
+ },
435
+ "getter": false,
436
+ "setter": false,
437
+ "reflect": false,
438
+ "attribute": "offset"
439
+ },
414
440
  "arrow": {
415
441
  "type": "boolean",
416
442
  "mutable": false,
@@ -87,7 +87,7 @@ export class PostRating {
87
87
  }
88
88
  }
89
89
  render() {
90
- return (h(Host, { key: 'a8889a8544b91dd589f8ff86e210472915a34100', "data-version": version }, h("div", { key: 'eea1ffd49d7f450362f87d2e5b6d992e0913f5ca', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
90
+ return (h(Host, { key: 'c8266ca9d136f7a10f3515e784acad64f4e14aca', "data-version": version }, h("div", { key: '042df9d7d808ce737f56785d3b622c20bad3f280', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
91
91
  'star': true,
92
92
  'before-hover': i < this.hoveredIndex,
93
93
  'active': i < Math.round(this.currentRating),
@@ -4,7 +4,7 @@ import { checkRequiredAndPattern, checkRequiredAndType } from "../../utils/index
4
4
  export class PostStepper {
5
5
  constructor() {
6
6
  /**
7
- * Defines the currently active step
7
+ * Defines the current step, which is the next step the user has to complete.
8
8
  */
9
9
  this.currentIndex = -1;
10
10
  }
@@ -22,8 +22,19 @@ export class PostStepper {
22
22
  checkRequiredAndType(this, 'currentIndex', 'number');
23
23
  if (this.stepItems) {
24
24
  this.updateSteps();
25
+ this.checkIndexes();
25
26
  }
26
27
  }
28
+ validateSelectedIndex() {
29
+ if (this.selectedIndex === undefined) {
30
+ this.selectedIndex = this.currentIndex;
31
+ }
32
+ else {
33
+ checkRequiredAndType(this, 'selectedIndex', 'number');
34
+ this.checkIndexes();
35
+ }
36
+ this.updateSteps();
37
+ }
27
38
  componentDidLoad() {
28
39
  this.validateTextCompletedStep();
29
40
  this.validateTextCurrentStep();
@@ -31,12 +42,18 @@ export class PostStepper {
31
42
  // Wait for slotchange
32
43
  setTimeout(() => {
33
44
  this.validateCurrentIndex();
45
+ this.validateSelectedIndex();
34
46
  });
35
47
  }
48
+ checkIndexes() {
49
+ if (this.selectedIndex > this.currentIndex) {
50
+ console.error('The selected-index cannot be higher than the current-index, as only the current and completed steps can be selected.');
51
+ }
52
+ }
36
53
  updateActiveStepNumber() {
37
54
  if (this.textStepNumber) {
38
55
  const labelTemplate = this.textStepNumber;
39
- this.mobileActiveStepLabel = labelTemplate.replace(/#number/g, `${this.currentIndex + 1}`);
56
+ this.mobileActiveStepLabel = labelTemplate.replaceAll('#number', `${this.selectedIndex + 1}`);
40
57
  if (this.stepItems) {
41
58
  this.updateMobileActiveStepVisibility();
42
59
  }
@@ -50,12 +67,13 @@ export class PostStepper {
50
67
  }
51
68
  this.updateActiveStepNumber();
52
69
  this.stepItems.forEach((el, i) => {
53
- if (this.currentIndex === i) {
70
+ if (this.selectedIndex === i) {
54
71
  this.mobileActiveStepName = el.innerHTML;
55
72
  }
56
73
  // Update "post-stepper-item" classes to show correct status
57
74
  el.classList.toggle('stepper-item-completed', this.currentIndex > i);
58
75
  el.classList.toggle('stepper-item-current', this.currentIndex === i);
76
+ el.classList.toggle('stepper-item-selected', this.selectedIndex === i);
59
77
  el.classList.toggle('stepper-item-inactive', this.currentIndex < i);
60
78
  el.classList.toggle('stepper-item-after-current', i === this.currentIndex + 1);
61
79
  // Update accessibility label depending on status (Completed/Current/-)
@@ -63,15 +81,15 @@ export class PostStepper {
63
81
  if (hiddenLabel) {
64
82
  let labelText = '';
65
83
  if (this.currentIndex > i) {
66
- labelText = `${this.textCompletedStep}:`;
84
+ labelText = `${this.textCompletedStep}: `;
67
85
  }
68
- else if (this.currentIndex === i) {
69
- labelText = `${this.textCurrentStep}:`;
86
+ if (this.selectedIndex === i) {
87
+ labelText = `${labelText}${this.textCurrentStep}: `;
70
88
  }
71
89
  hiddenLabel.textContent = labelText;
72
90
  }
73
91
  // Update accessibility aria attributes
74
- if (this.currentIndex === i) {
92
+ if (this.selectedIndex === i) {
75
93
  el.setAttribute('aria-current', 'step');
76
94
  el.setAttribute('aria-live', 'polite');
77
95
  }
@@ -83,13 +101,13 @@ export class PostStepper {
83
101
  this.updateMobileActiveStepVisibility();
84
102
  }
85
103
  updateMobileActiveStepVisibility() {
86
- if (this.currentIndex >= this.stepItems.length || this.currentIndex < 0) {
104
+ if (this.selectedIndex >= this.stepItems.length || this.selectedIndex < 0) {
87
105
  this.mobileActiveStepLabel = '';
88
106
  this.mobileActiveStepName = '';
89
107
  }
90
108
  }
91
109
  render() {
92
- return (h(Host, { key: '252102ea05deca3d0d072ddabbc0a926dae356e5', "data-version": version }, h("ol", { key: '0f3f87b37539fa59125297c22bf78ddddf57c0b1' }, h("slot", { key: 'bb91db0204d8f9f54d6263427b09b8b9acc6a6f4', onSlotchange: () => this.updateSteps() })), h("div", { key: 'f53a5dbef33cd550546608198dc3b29a1eadd313', class: "active-step", "aria-hidden": "true" }, h("span", { key: '12937ffe4cf3d7c1170e7824612f917a2ae311bb', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: 'cc6a253de9024a9580f7ad2c470412504c2a671f', innerHTML: this.mobileActiveStepName }))));
110
+ return (h(Host, { key: 'c0f0b43848cf7cf2ad3b909b9ac3977214090f49', "data-version": version }, h("ol", { key: 'fb3b6a002e18355f731caa783c1c183e9d17719a' }, h("slot", { key: '3241341b4427e5b5963d5b2f1c8096752e447894', onSlotchange: () => this.updateSteps() })), h("div", { key: 'd7d4b983c5d038f2a214292882ba44c31a47e53d', class: "active-step", "aria-hidden": "true" }, h("span", { key: '82e9aaf029ed13effb873ee0cfcc44b06be18743', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: 'b1874d60c5fff75813094e93cb00b1249f513a55', innerHTML: this.mobileActiveStepName }))));
93
111
  }
94
112
  static get is() { return "post-stepper"; }
95
113
  static get encapsulation() { return "shadow"; }
@@ -174,13 +192,32 @@ export class PostStepper {
174
192
  "optional": false,
175
193
  "docs": {
176
194
  "tags": [],
177
- "text": "Defines the currently active step"
195
+ "text": "Defines the current step, which is the next step the user has to complete."
178
196
  },
179
197
  "getter": false,
180
198
  "setter": false,
181
199
  "reflect": false,
182
200
  "attribute": "current-index",
183
201
  "defaultValue": "-1"
202
+ },
203
+ "selectedIndex": {
204
+ "type": "number",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "number",
208
+ "resolved": "number",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Defines the selected (active) step, which is the step the user is currently on.\nIf not defined, the selected step is the current step."
216
+ },
217
+ "getter": false,
218
+ "setter": false,
219
+ "reflect": false,
220
+ "attribute": "selected-index"
184
221
  }
185
222
  };
186
223
  }
@@ -204,6 +241,9 @@ export class PostStepper {
204
241
  }, {
205
242
  "propName": "currentIndex",
206
243
  "methodName": "validateCurrentIndex"
244
+ }, {
245
+ "propName": "selectedIndex",
246
+ "methodName": "validateSelectedIndex"
207
247
  }];
208
248
  }
209
249
  }
@@ -1,7 +1 @@
1
- :host{grid-row:1;position:relative;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:fit-content;word-break:break-word;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{margin-inline-start:auto;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular);color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{counter-increment:step-index;content:counter(step-index);display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-stroke3);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:var(--post-device-border-width-default);z-index:1;background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);mask-image:var(--post-icon-success-solid);background-color:currentColor;width:calc(
2
- var(--post-device-sizing-interactive-stepper-indicator) - (var(--post-device-border-width-default) * 2)
3
- );height:calc(
4
- var(--post-device-sizing-interactive-stepper-indicator) - (var(--post-device-border-width-default) * 2)
5
- );color:var(--post-scheme-color-interactive-primary-selected-bg2)}:root,:host{--post-icon-success-solid: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PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLXN1Y2Nlc3Mtc29saWQiLz48L2c+PC9zdmc+")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:var(--post-device-border-width-default)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - (
6
- var(--post-device-sizing-interactive-stepper-indicator) - (var(--post-device-border-width-default) * 2)
7
- )/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:var(--post-device-border-width-default)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
1
+ :host{grid-row:1;position:relative;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:fit-content;word-break:break-word;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{margin-inline-start:auto;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{counter-increment:step-index;content:counter(step-index);display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hlY2ttYXJrLXNvbGlkIj48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0ibTcuNDkgMTIuOTktMy42NC0zLjljLS40Ny0uNS0uNDQtMS4zLjA2LTEuNzdzMS4yOS0uNDQgMS43Ny4wNmwxLjQ4IDEuNTggMy4wNS00LjYyYy4zOC0uNTggMS4xNi0uNzQgMS43My0uMzUuNTguMzguNzQgMS4xNi4zNSAxLjczeiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJtMTEuMTggMTguODgtNS4xNC01LjUxYTEuNSAxLjUgMCAwIDEgLjA3LTIuMTJjL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zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:root,:host{--post-icon-edit-solid: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktZWRpdC1zb2xpZCI+PHN5bWJvbCBpZD0iczE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Im0xLjUgMTAuOTkgOC41LTguNXMuMDMuMDUuMDUuMDdsMy41IDMuNDUtOC41MiA4LjUxem0tLjkyIDEuMi0uNTYgMy44IDMuODEtLjU2LTMuMjQtMy4yNFptMTUuMjUtOS4zN0wxMy4xOS4xOGEuNjMuNjMgMCAwIDAtLjg4IDBsLTEuMjcgMS4yN3MuMDQuMDIuMDYuMDRsMy41IDMuNDUgMS4yMy0xLjIzYy4yNC0uMjQuMjQtLjY0IDAtLjg4WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNS44NCAyMy4xNS4wMiAyNGwuODUtNS44MnptMS40MS0xLjA4TDIwLjQ5IDguODNsL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jxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
@@ -2,7 +2,7 @@ import { h, Host } from "@stencil/core";
2
2
  import { version } from "../../../../package";
3
3
  export class PostStepperItem {
4
4
  render() {
5
- return (h(Host, { key: '6a9e7ce6dbe2402b04a40db2a177fa7b5666140f', "data-version": version, role: "listitem" }, h("span", { key: 'b4b90071f8a99226490d54463a3f9ae0222d5b56', class: "stepper-item-content" }, h("span", { key: '918f3caaf03d07998c28a4620ee2bee7b5ec2f2c', class: "step-hidden-label visually-hidden" }), h("span", { key: 'a4169e9cba976cbf09560ce05a5ab1a9b1c182a1', class: "label" }, h("slot", { key: 'e200808f2b0d757f12dff465547eb84eeb1f8b71' })))));
5
+ return (h(Host, { key: '95ebc80981c11cb53b992b55292c8588ece1425d', "data-version": version, role: "listitem" }, h("span", { key: '64a3d6e185d0df66e89e63a09e934129cd51c00f', class: "stepper-item-content" }, h("span", { key: '936c9473e1644a6f77a8b510a9159f3258ab97cc', class: "step-hidden-label visually-hidden" }), h("span", { key: 'd6d256202dd0cc53f106d8452660e96b77557219', class: "label" }, h("slot", { key: 'fe6ce78b72bbb24879fd4b5eba9594d8ef135bc2' })))));
6
6
  }
7
7
  static get is() { return "post-stepper-item"; }
8
8
  static get encapsulation() { return "shadow"; }
@@ -33,7 +33,7 @@ export class PostTabItem {
33
33
  this.isNavigationMode = hasAnchor;
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: 'f7e1c00ed73b796ac8b2994f5f6a1825318faae2', id: this.tabId, role: !this.isNavigationMode ? 'tab' : undefined, "data-version": version, "data-navigation-mode": this.isNavigationMode.toString(), "aria-selected": !this.isNavigationMode ? 'false' : undefined, tabindex: !this.isNavigationMode ? '-1' : undefined, class: !this.isNavigationMode ? 'tab-title' : 'nav-item' }, h("slot", { key: 'cc1fb5a02298dc775bbaacec051d51d96603ce73' })));
36
+ return (h(Host, { key: 'e660f8e1051523a4a88a0ad4808b294c2f80bcbb', id: this.tabId, role: !this.isNavigationMode ? 'tab' : undefined, "data-version": version, "data-navigation-mode": this.isNavigationMode.toString(), "aria-selected": !this.isNavigationMode ? 'false' : undefined, tabindex: !this.isNavigationMode ? '-1' : undefined, class: !this.isNavigationMode ? 'tab-title' : 'nav-item' }, h("slot", { key: '9e5ec2ac67fbf1c56b8f7bd11205438d5ce08956' })));
37
37
  }
38
38
  static get is() { return "post-tab-item"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class PostTabPanel {
15
15
  this.panelId = `panel-${this.host.id || nanoid(6)}`;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '58743e382638b78c8e2bf020a94981e54f8c20d8', "data-version": version, id: this.panelId, role: "tabpanel", slot: "panels" }, h("slot", { key: 'ab35770da08e7ece64d03ab2fa8811b04a42ddd0' })));
18
+ return (h(Host, { key: '27d2f9dedd65a3500d477ce979ace6d9eb0d429a', "data-version": version, id: this.panelId, role: "tabpanel", slot: "panels" }, h("slot", { key: '890e7ec2bcf451d3281b224601597db281d6da58' })));
19
19
  }
20
20
  static get is() { return "post-tab-panel"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -133,7 +133,7 @@ export class PostTabs {
133
133
  // This works even before post-tab-item sets data-navigation-mode attribute
134
134
  const hasNavigationTabs = this.tabs.some(tab => {
135
135
  const hasAnchor = tab.querySelector('a') !== null;
136
- const navModeAttr = tab.getAttribute('data-navigation-mode') === 'true';
136
+ const navModeAttr = tab.dataset.navigationMode === 'true';
137
137
  return hasAnchor || navModeAttr;
138
138
  });
139
139
  const hasPanels = this.panels.length > 0;
@@ -282,7 +282,7 @@ export class PostTabs {
282
282
  nextTab = this.tabs[activeTabIndex + 1] || this.tabs[0];
283
283
  }
284
284
  else {
285
- nextTab = this.tabs[activeTabIndex - 1] || this.tabs[this.tabs.length - 1];
285
+ nextTab = this.tabs[activeTabIndex - 1] || this.tabs.at(-1);
286
286
  }
287
287
  if (!nextTab)
288
288
  return;
@@ -291,10 +291,10 @@ export class PostTabs {
291
291
  }
292
292
  render() {
293
293
  const TabsContainer = this.isNavigationMode ? 'nav' : 'div';
294
- return (h(Host, { key: '49a99226d7f864145e690f6d04c6546ef0a28995', "data-version": version }, h("div", { key: '22684318ed59ae75a81ed00172db0626395d108e', class: "tabs-wrapper", part: "post-tabs" }, h(TabsContainer, { key: 'da2d1befa91d9d1012dbfb30ebe0c03b5b244930', class: "tabs", role: this.isNavigationMode ? undefined : 'tablist', "aria-label": this.isNavigationMode ? this.label : undefined }, h("slot", { key: '7daf4d6ba4e3b8307919fcd52b98540e97c4a2a3', onSlotchange: () => {
294
+ return (h(Host, { key: '5ae75fc550faae05dbca22e815a75e05f5cebc54', "data-version": version }, h("div", { key: '606990249519c2504e47e24b1e1b95c660278828', class: "tabs-wrapper", part: "post-tabs" }, h(TabsContainer, { key: 'ed0a4b53c47bc808e0c0713f4d014338e0124e37', class: "tabs", role: this.isNavigationMode ? undefined : 'tablist', "aria-label": this.isNavigationMode ? this.label : undefined }, h("slot", { key: 'ec504e221fb5694fea03630da0671b7c2c827648', onSlotchange: () => {
295
295
  this.moveMisplacedTabs();
296
296
  this.enableTabs();
297
- } }))), !this.isNavigationMode && (h("div", { key: '365b85a14d4b5af73ab0fdd477208b138a185543', class: "tab-content", part: "post-tabs-content" }, h("slot", { key: 'feb5c8a13b896112a7fce0c598d761d2a3e56cfe', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
297
+ } }))), !this.isNavigationMode && (h("div", { key: '4bfd0fb25e0070b0a8ebeef0127cb8ac2b097bc0', class: "tab-content", part: "post-tabs-content" }, h("slot", { key: 'ecf2630c87dce6a797c1c13d31e5ead2b7f903d8', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
298
298
  }
299
299
  static get is() { return "post-tabs"; }
300
300
  static get encapsulation() { return "shadow"; }
@@ -27,7 +27,7 @@ export class PostTogglebutton {
27
27
  this.host.addEventListener('keydown', (e) => this.handleKeydown(e), { capture: true });
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '723a7d107537a8399e193ef9fe40eec67c0a15a2', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: '38849e487b4db78584033e51e94b674804966d0b' })));
30
+ return (h(Host, { key: 'fdf27aa68db2c3e6757176894b5b293a563e444d', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: '2be2ca3e516a3ee6f39f9dc943142cf5e138d1b2' })));
31
31
  }
32
32
  static get is() { return "post-togglebutton"; }
33
33
  static get encapsulation() { return "shadow"; }