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

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 (439) hide show
  1. package/dist/cjs/create-validator-decorator-Bimhl6Ib.js +223 -0
  2. package/dist/cjs/{index-CCteMCnR.js → index-CyeY2muT.js} +54 -5
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/one-of-BVQP1dR3.js +27 -0
  5. package/dist/cjs/{package-CscM89A7.js → package-JSyXVavg.js} +1 -1
  6. package/dist/cjs/pattern-BDKu8-v6.js +27 -0
  7. package/dist/cjs/post-accordion_2.cjs.entry.js +15 -21
  8. package/dist/cjs/post-autocomplete.cjs.entry.js +26 -13
  9. package/dist/cjs/post-avatar.cjs.entry.js +30 -33
  10. package/dist/cjs/post-back-to-top.cjs.entry.js +20 -11
  11. package/dist/cjs/post-banner.cjs.entry.js +9 -14
  12. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +34 -24
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +35 -38
  14. package/dist/cjs/post-closebutton_14.cjs.entry.js +284 -300
  15. package/dist/cjs/post-collapsible_2.cjs.entry.js +56 -39
  16. package/dist/cjs/post-components.cjs.js +2 -2
  17. package/dist/cjs/post-date-picker.cjs.entry.js +142 -140
  18. package/dist/cjs/post-footer.cjs.entry.js +24 -17
  19. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  20. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  21. package/dist/cjs/post-listbox.cjs.entry.js +3 -5
  22. package/dist/cjs/post-login-widget.cjs.entry.js +29 -30
  23. package/dist/cjs/post-number-input.cjs.entry.js +5 -5
  24. package/dist/cjs/post-pagination.cjs.entry.js +60 -85
  25. package/dist/cjs/post-popover-trigger.cjs.entry.js +21 -18
  26. package/dist/cjs/post-popover.cjs.entry.js +24 -22
  27. package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
  28. package/dist/cjs/post-rating.cjs.entry.js +33 -34
  29. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +109 -0
  30. package/dist/cjs/post-side-navigation.cjs.entry.js +129 -0
  31. package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
  32. package/dist/cjs/post-stepper.cjs.entry.js +50 -37
  33. package/dist/cjs/post-tab-item.cjs.entry.js +20 -12
  34. package/dist/cjs/post-tab-panel.cjs.entry.js +20 -13
  35. package/dist/cjs/post-tabs.cjs.entry.js +21 -7
  36. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +21 -12
  37. package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
  38. package/dist/cjs/required-BsZuSJAl.js +44 -0
  39. package/dist/cjs/type-DXpEWY0w.js +30 -0
  40. package/dist/cjs/url-D-EbWRlF.js +34 -0
  41. package/dist/collection/collection-manifest.json +3 -0
  42. package/dist/collection/components/post-accordion/post-accordion.js +11 -8
  43. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -17
  44. package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
  45. package/dist/collection/components/post-avatar/post-avatar.js +27 -33
  46. package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
  47. package/dist/collection/components/post-banner/post-banner.css +2 -2
  48. package/dist/collection/components/post-banner/post-banner.js +7 -14
  49. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
  50. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +27 -22
  51. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  52. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +30 -37
  53. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  54. package/dist/collection/components/post-closebutton/post-closebutton.js +45 -37
  55. package/dist/collection/components/post-closebutton/types.js +1 -1
  56. package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
  57. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
  58. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  59. package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
  60. package/dist/collection/components/post-footer/post-footer.js +17 -13
  61. package/dist/collection/components/post-header/post-header.css +1 -1
  62. package/dist/collection/components/post-header/post-header.js +25 -30
  63. package/dist/collection/components/post-icon/post-icon.js +34 -47
  64. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  65. package/dist/collection/components/post-language-menu/post-language-menu.js +15 -20
  66. package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
  67. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
  68. package/dist/collection/components/post-linkarea/post-linkarea.js +2 -2
  69. package/dist/collection/components/post-listbox/post-listbox.js +3 -5
  70. package/dist/collection/components/post-listbox-option/post-listbox-option.js +3 -3
  71. package/dist/collection/components/post-login-widget/post-login-widget.css +1 -1
  72. package/dist/collection/components/post-login-widget/post-login-widget.js +25 -29
  73. package/dist/collection/components/post-logo/post-logo.js +16 -13
  74. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
  75. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  76. package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
  77. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  78. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
  79. package/dist/collection/components/post-menu/post-menu.css +1 -1
  80. package/dist/collection/components/post-menu/post-menu.js +10 -23
  81. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  82. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
  83. package/dist/collection/components/post-number-input/post-number-input.css +1 -1
  84. package/dist/collection/components/post-number-input/post-number-input.js +5 -5
  85. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  86. package/dist/collection/components/post-pagination/post-pagination.js +58 -87
  87. package/dist/collection/components/post-popover/post-popover.js +20 -22
  88. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
  89. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  90. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +29 -33
  91. package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
  92. package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
  93. package/dist/collection/components/post-rating/post-rating.js +25 -29
  94. package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -0
  95. package/dist/collection/components/post-side-navigation/post-side-navigation.js +231 -0
  96. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -0
  97. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +154 -0
  98. package/dist/collection/components/post-stepper/post-stepper.js +46 -36
  99. package/dist/collection/components/post-stepper-item/post-stepper-item.css +1 -1
  100. package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
  101. package/dist/collection/components/post-tab-item/post-tab-item.js +17 -12
  102. package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -13
  103. package/dist/collection/components/post-tabs/post-tabs.js +20 -7
  104. package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
  105. package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
  106. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +17 -12
  107. package/dist/collection/utils/index.js +3 -4
  108. package/dist/collection/utils/is-value-empty.js +1 -1
  109. package/dist/collection/utils/property-decorators/bound.js +75 -0
  110. package/dist/collection/utils/property-decorators/create-validator-decorator.js +24 -0
  111. package/dist/collection/utils/property-decorators/index.js +1 -1
  112. package/dist/collection/utils/property-decorators/required.js +19 -3
  113. package/dist/component-names.json +3 -0
  114. package/dist/components/breakpoints.js +1 -1
  115. package/dist/components/index.d.ts +6 -0
  116. package/dist/components/index.js +1 -1
  117. package/dist/components/one-of.js +1 -0
  118. package/dist/components/package.js +1 -1
  119. package/dist/components/pattern.js +1 -0
  120. package/dist/components/post-accordion-item2.js +1 -1
  121. package/dist/components/post-accordion2.js +1 -1
  122. package/dist/components/post-autocomplete.js +1 -1
  123. package/dist/components/post-avatar2.js +1 -1
  124. package/dist/components/post-back-to-top.js +1 -1
  125. package/dist/components/post-banner.js +1 -1
  126. package/dist/components/post-breadcrumb-item.js +1 -1
  127. package/dist/components/post-breadcrumbs.js +1 -1
  128. package/dist/components/post-closebutton2.js +1 -1
  129. package/dist/components/post-collapsible-trigger2.js +1 -1
  130. package/dist/components/post-collapsible2.js +1 -1
  131. package/dist/components/post-date-picker.js +1 -1
  132. package/dist/components/post-footer.js +1 -1
  133. package/dist/components/post-header.js +1 -1
  134. package/dist/components/post-icon2.js +1 -1
  135. package/dist/components/post-language-menu-item.js +1 -1
  136. package/dist/components/post-language-menu.js +1 -1
  137. package/dist/components/post-linkarea.js +1 -1
  138. package/dist/components/post-listbox-option.js +1 -1
  139. package/dist/components/post-listbox.js +1 -1
  140. package/dist/components/post-login-widget.js +1 -1
  141. package/dist/components/post-logo.js +1 -1
  142. package/dist/components/post-mainnavigation.js +1 -1
  143. package/dist/components/post-megadropdown-trigger.js +1 -1
  144. package/dist/components/post-megadropdown.js +1 -1
  145. package/dist/components/post-menu-item2.js +1 -1
  146. package/dist/components/post-menu-trigger2.js +1 -1
  147. package/dist/components/post-menu2.js +1 -1
  148. package/dist/components/post-number-input.js +1 -1
  149. package/dist/components/post-pagination.js +1 -1
  150. package/dist/components/post-popover-trigger.js +1 -1
  151. package/dist/components/post-popover.js +1 -1
  152. package/dist/components/post-popovercontainer2.js +1 -1
  153. package/dist/components/post-progressbar.d.ts +11 -0
  154. package/dist/components/post-progressbar.js +1 -0
  155. package/dist/components/post-rating.js +1 -1
  156. package/dist/components/post-side-navigation-trigger.d.ts +11 -0
  157. package/dist/components/post-side-navigation-trigger.js +1 -0
  158. package/dist/components/post-side-navigation.d.ts +11 -0
  159. package/dist/components/post-side-navigation.js +1 -0
  160. package/dist/components/post-stepper-item.js +1 -1
  161. package/dist/components/post-stepper.js +1 -1
  162. package/dist/components/post-tab-item.js +1 -1
  163. package/dist/components/post-tab-panel.js +1 -1
  164. package/dist/components/post-tabs.js +1 -1
  165. package/dist/components/post-togglebutton2.js +1 -1
  166. package/dist/components/post-tooltip-trigger.js +1 -1
  167. package/dist/components/post-tooltip.js +1 -1
  168. package/dist/components/react/index.js +1 -1
  169. package/dist/components/react/p-4wtxqxXu.js +1 -0
  170. package/dist/components/react/p-B3ZJPCU0.js +1 -0
  171. package/dist/components/react/p-BUAS73l8.js +1 -0
  172. package/dist/components/react/p-BUSQG9af.js +1 -0
  173. package/dist/components/react/p-BXqGI600.js +1 -0
  174. package/dist/components/react/p-B_WnO-QF.js +1 -0
  175. package/dist/components/react/p-BaB8wJvk.js +1 -0
  176. package/dist/components/react/p-Bji_4dfL.js +1 -0
  177. package/dist/components/react/p-C7aYEQh5.js +1 -0
  178. package/dist/components/react/p-CX2E_IXB.js +1 -0
  179. package/dist/components/react/p-CbU3QFNG.js +1 -0
  180. package/dist/components/react/p-CdhbouMD.js +1 -0
  181. package/dist/components/react/p-Ci08Eesw.js +1 -0
  182. package/dist/components/react/{p-BC0-M_SK.js → p-DNddZV_h.js} +1 -1
  183. package/dist/components/react/p-DTg2SXJj.js +1 -0
  184. package/dist/components/react/p-DU4XzTGt.js +1 -0
  185. package/dist/components/react/p-DWlDkwjY.js +1 -0
  186. package/dist/components/react/p-wqJxIo5L.js +1 -0
  187. package/dist/components/react/p-ztiqEfbC.js +1 -0
  188. package/dist/components/react/post-accordion-item.js +1 -1
  189. package/dist/components/react/post-accordion.js +1 -1
  190. package/dist/components/react/post-autocomplete.js +1 -1
  191. package/dist/components/react/post-avatar.js +1 -1
  192. package/dist/components/react/post-back-to-top.js +1 -1
  193. package/dist/components/react/post-banner.js +1 -1
  194. package/dist/components/react/post-breadcrumb-item.js +1 -1
  195. package/dist/components/react/post-breadcrumbs.js +1 -1
  196. package/dist/components/react/post-closebutton.js +1 -1
  197. package/dist/components/react/post-collapsible-trigger.js +1 -1
  198. package/dist/components/react/post-collapsible.js +1 -1
  199. package/dist/components/react/post-date-picker.js +1 -1
  200. package/dist/components/react/post-footer.js +1 -1
  201. package/dist/components/react/post-header.js +1 -1
  202. package/dist/components/react/post-icon.js +1 -1
  203. package/dist/components/react/post-language-menu-item.js +1 -1
  204. package/dist/components/react/post-language-menu.js +1 -1
  205. package/dist/components/react/post-linkarea.js +1 -1
  206. package/dist/components/react/post-listbox-option.js +1 -1
  207. package/dist/components/react/post-listbox.js +1 -1
  208. package/dist/components/react/post-login-widget.js +1 -1
  209. package/dist/components/react/post-logo.js +1 -1
  210. package/dist/components/react/post-mainnavigation.js +1 -1
  211. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  212. package/dist/components/react/post-megadropdown.js +1 -1
  213. package/dist/components/react/post-menu-item.js +1 -1
  214. package/dist/components/react/post-menu-trigger.js +1 -1
  215. package/dist/components/react/post-menu.js +1 -1
  216. package/dist/components/react/post-number-input.js +1 -1
  217. package/dist/components/react/post-pagination.js +1 -1
  218. package/dist/components/react/post-popover-trigger.js +1 -1
  219. package/dist/components/react/post-popover.js +1 -1
  220. package/dist/components/react/post-popovercontainer.js +1 -1
  221. package/dist/components/react/post-progressbar.d.ts +11 -0
  222. package/dist/components/react/post-progressbar.js +1 -0
  223. package/dist/components/react/post-rating.js +1 -1
  224. package/dist/components/react/post-side-navigation-trigger.d.ts +11 -0
  225. package/dist/components/react/post-side-navigation-trigger.js +1 -0
  226. package/dist/components/react/post-side-navigation.d.ts +11 -0
  227. package/dist/components/react/post-side-navigation.js +1 -0
  228. package/dist/components/react/post-stepper-item.js +1 -1
  229. package/dist/components/react/post-stepper.js +1 -1
  230. package/dist/components/react/post-tab-item.js +1 -1
  231. package/dist/components/react/post-tab-panel.js +1 -1
  232. package/dist/components/react/post-tabs.js +1 -1
  233. package/dist/components/react/post-togglebutton.js +1 -1
  234. package/dist/components/react/post-tooltip-trigger.js +1 -1
  235. package/dist/components/react/post-tooltip.js +1 -1
  236. package/dist/components/required.js +1 -0
  237. package/dist/components/type.js +1 -0
  238. package/dist/components/url.js +1 -0
  239. package/dist/docs.json +344 -14
  240. package/dist/esm/create-validator-decorator-BNkS_yAb.js +218 -0
  241. package/dist/esm/{index-DmBWUef5.js → index-BGeKgZqi.js} +54 -5
  242. package/dist/esm/loader.js +3 -3
  243. package/dist/esm/one-of-4BD_5pKR.js +25 -0
  244. package/dist/esm/package-CdhbouMD.js +3 -0
  245. package/dist/esm/pattern-D7tnGo1u.js +25 -0
  246. package/dist/esm/post-accordion_2.entry.js +15 -21
  247. package/dist/esm/post-autocomplete.entry.js +26 -13
  248. package/dist/esm/post-avatar.entry.js +30 -33
  249. package/dist/esm/post-back-to-top.entry.js +20 -11
  250. package/dist/esm/post-banner.entry.js +9 -14
  251. package/dist/esm/post-breadcrumb-item.entry.js +34 -24
  252. package/dist/esm/post-breadcrumbs.entry.js +35 -38
  253. package/dist/esm/post-closebutton_14.entry.js +284 -300
  254. package/dist/esm/post-collapsible_2.entry.js +56 -39
  255. package/dist/esm/post-components.js +3 -3
  256. package/dist/esm/post-date-picker.entry.js +142 -140
  257. package/dist/esm/post-footer.entry.js +20 -13
  258. package/dist/esm/post-linkarea.entry.js +3 -3
  259. package/dist/esm/post-listbox-option.entry.js +4 -4
  260. package/dist/esm/post-listbox.entry.js +3 -5
  261. package/dist/esm/post-login-widget.entry.js +29 -30
  262. package/dist/esm/post-number-input.entry.js +5 -5
  263. package/dist/esm/post-pagination.entry.js +60 -85
  264. package/dist/esm/post-popover-trigger.entry.js +19 -16
  265. package/dist/esm/post-popover.entry.js +24 -22
  266. package/dist/esm/post-progressbar.entry.js +145 -0
  267. package/dist/esm/post-rating.entry.js +28 -29
  268. package/dist/esm/post-side-navigation-trigger.entry.js +107 -0
  269. package/dist/esm/post-side-navigation.entry.js +127 -0
  270. package/dist/esm/post-stepper-item.entry.js +4 -4
  271. package/dist/esm/post-stepper.entry.js +50 -37
  272. package/dist/esm/post-tab-item.entry.js +20 -12
  273. package/dist/esm/post-tab-panel.entry.js +20 -13
  274. package/dist/esm/post-tabs.entry.js +21 -7
  275. package/dist/esm/post-tooltip-trigger.entry.js +21 -12
  276. package/dist/esm/post-tooltip.entry.js +19 -16
  277. package/dist/esm/required-DhBxDSbP.js +42 -0
  278. package/dist/esm/type-icZlikjf.js +28 -0
  279. package/dist/esm/url-B_2x2YCy.js +32 -0
  280. package/dist/post-components/p-001f58d8.entry.js +1 -0
  281. package/dist/post-components/p-0a08ae23.entry.js +1 -0
  282. package/dist/post-components/p-12c8b073.entry.js +1 -0
  283. package/dist/post-components/{p-bab0f27f.entry.js → p-15fa7e60.entry.js} +1 -1
  284. package/dist/post-components/p-1839276a.entry.js +1 -0
  285. package/dist/post-components/p-28eeb5d8.entry.js +1 -0
  286. package/dist/post-components/p-3e83aa1f.entry.js +1 -0
  287. package/dist/post-components/p-41b5dbfc.entry.js +1 -0
  288. package/dist/post-components/p-5d20cbcb.entry.js +1 -0
  289. package/dist/post-components/p-6a1c4897.entry.js +1 -0
  290. package/dist/post-components/p-6cbb2e7f.entry.js +1 -0
  291. package/dist/post-components/p-6d14f78a.entry.js +1 -0
  292. package/dist/post-components/p-6e8b6249.entry.js +1 -0
  293. package/dist/post-components/p-71918d59.entry.js +1 -0
  294. package/dist/post-components/p-7ee4b829.entry.js +1 -0
  295. package/dist/post-components/p-8139b0cc.entry.js +1 -0
  296. package/dist/post-components/p-84c8d952.entry.js +1 -0
  297. package/dist/post-components/p-87ebb213.entry.js +1 -0
  298. package/dist/post-components/{p-4b445a35.entry.js → p-89da6378.entry.js} +1 -1
  299. package/dist/post-components/p-8SvFxSp6.js +1 -0
  300. package/dist/post-components/p-8caaa149.entry.js +1 -0
  301. package/dist/post-components/p-923439d1.entry.js +1 -0
  302. package/dist/post-components/p-97c1f070.entry.js +1 -0
  303. package/dist/post-components/p-9e240299.entry.js +1 -0
  304. package/dist/post-components/p-9ec32e7b.entry.js +1 -0
  305. package/dist/post-components/p-BGeKgZqi.js +2 -0
  306. package/dist/post-components/p-CIbyqT6u.js +1 -0
  307. package/dist/post-components/p-CdhbouMD.js +1 -0
  308. package/dist/post-components/p-D2ex14Ye.js +1 -0
  309. package/dist/post-components/p-DH5JdN6V.js +1 -0
  310. package/dist/post-components/p-DiBqDD4N.js +1 -0
  311. package/dist/post-components/p-I6rSjhbA.js +1 -0
  312. package/dist/post-components/p-aff9dd5e.entry.js +1 -0
  313. package/dist/post-components/p-c905a97c.entry.js +1 -0
  314. package/dist/post-components/p-e54a6be0.entry.js +1 -0
  315. package/dist/post-components/p-eca119d2.entry.js +1 -0
  316. package/dist/post-components/p-f9529d40.entry.js +1 -0
  317. package/dist/post-components/p-fac58cbd.entry.js +1 -0
  318. package/dist/post-components/post-components.css +2 -2
  319. package/dist/post-components/post-components.esm.js +1 -1
  320. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  321. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
  322. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
  323. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -5
  324. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
  325. package/dist/types/components/post-banner/post-banner.d.ts +0 -1
  326. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -3
  327. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +0 -4
  328. package/dist/types/components/post-closebutton/post-closebutton.d.ts +5 -5
  329. package/dist/types/components/post-closebutton/types.d.ts +1 -1
  330. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
  331. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
  332. package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
  333. package/dist/types/components/post-footer/post-footer.d.ts +0 -1
  334. package/dist/types/components/post-header/post-header.d.ts +1 -3
  335. package/dist/types/components/post-icon/post-icon.d.ts +0 -6
  336. package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
  337. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
  338. package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -4
  339. package/dist/types/components/post-logo/post-logo.d.ts +0 -1
  340. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  341. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
  342. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
  343. package/dist/types/components/post-menu/post-menu.d.ts +1 -4
  344. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
  345. package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
  346. package/dist/types/components/post-popover/post-popover.d.ts +1 -4
  347. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
  348. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
  349. package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
  350. package/dist/types/components/post-rating/post-rating.d.ts +0 -4
  351. package/dist/types/components/post-side-navigation/post-side-navigation.d.ts +56 -0
  352. package/dist/types/components/post-side-navigation-trigger/post-side-navigation-trigger.d.ts +33 -0
  353. package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
  354. package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
  355. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
  356. package/dist/types/components/post-tooltip/post-tooltip.d.ts +0 -2
  357. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
  358. package/dist/types/components.d.ts +142 -5
  359. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +1 -0
  360. package/dist/types/utils/index.d.ts +3 -4
  361. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  362. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +5 -0
  363. package/dist/types/utils/property-decorators/index.d.ts +1 -1
  364. package/dist/types/utils/property-decorators/required.d.ts +10 -1
  365. package/dist/vrt/helpers/header-test-config.js +3 -2
  366. package/dist/vrt/helpers/header-variants.config.js +29 -2
  367. package/hydrate/index.js +1640 -980
  368. package/hydrate/index.mjs +1640 -980
  369. package/package.json +4 -4
  370. package/dist/cjs/index-qCzRmwgB.js +0 -114
  371. package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
  372. package/dist/collection/utils/property-checkers/check-date.js +0 -13
  373. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
  374. package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
  375. package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
  376. package/dist/collection/utils/property-checkers/check-type.js +0 -15
  377. package/dist/collection/utils/property-checkers/check-url.js +0 -15
  378. package/dist/collection/utils/property-checkers/constants.js +0 -1
  379. package/dist/collection/utils/property-checkers/empty-or.js +0 -9
  380. package/dist/collection/utils/property-checkers/index.js +0 -20
  381. package/dist/collection/utils/property-checkers/required-and.js +0 -14
  382. package/dist/components/heading-levels.js +0 -1
  383. package/dist/components/index2.js +0 -1
  384. package/dist/components/react/p-BQ3HlJPr.js +0 -1
  385. package/dist/components/react/p-C7s9oglQ.js +0 -1
  386. package/dist/components/react/p-CTgZ8DGr.js +0 -1
  387. package/dist/components/react/p-CVtlwDsT.js +0 -1
  388. package/dist/components/react/p-CaLwTf3T.js +0 -1
  389. package/dist/components/react/p-ClJyTIVM.js +0 -1
  390. package/dist/components/react/p-DGr-hfLq.js +0 -1
  391. package/dist/components/react/p-DJxdj9pa.js +0 -1
  392. package/dist/components/react/p-DKDEtjQe.js +0 -1
  393. package/dist/components/react/p-DPKR_4uI.js +0 -1
  394. package/dist/components/react/p-DcEDGaFs.js +0 -1
  395. package/dist/components/react/p-DipfA69b.js +0 -1
  396. package/dist/components/react/p-DwZxAC2u.js +0 -1
  397. package/dist/components/react/p-r4txK0AC.js +0 -1
  398. package/dist/components/react/p-x3kxyWSZ.js +0 -1
  399. package/dist/esm/index-D9bU2pIE.js +0 -104
  400. package/dist/esm/package-x3kxyWSZ.js +0 -3
  401. package/dist/post-components/p-08a0e8e9.entry.js +0 -1
  402. package/dist/post-components/p-1583817b.entry.js +0 -1
  403. package/dist/post-components/p-203d9abd.entry.js +0 -1
  404. package/dist/post-components/p-2c68af27.entry.js +0 -1
  405. package/dist/post-components/p-39143e19.entry.js +0 -1
  406. package/dist/post-components/p-46dd9e7e.entry.js +0 -1
  407. package/dist/post-components/p-53a8cce5.entry.js +0 -1
  408. package/dist/post-components/p-72bff1fc.entry.js +0 -1
  409. package/dist/post-components/p-75045028.entry.js +0 -1
  410. package/dist/post-components/p-768b4516.entry.js +0 -1
  411. package/dist/post-components/p-7e072450.entry.js +0 -1
  412. package/dist/post-components/p-83cb6424.entry.js +0 -1
  413. package/dist/post-components/p-94f4da57.entry.js +0 -1
  414. package/dist/post-components/p-9dace750.entry.js +0 -1
  415. package/dist/post-components/p-9ea7e46f.entry.js +0 -1
  416. package/dist/post-components/p-D9bU2pIE.js +0 -1
  417. package/dist/post-components/p-DmBWUef5.js +0 -2
  418. package/dist/post-components/p-a0ac814c.entry.js +0 -1
  419. package/dist/post-components/p-a0d12ca8.entry.js +0 -1
  420. package/dist/post-components/p-cb039d66.entry.js +0 -1
  421. package/dist/post-components/p-e8cda4e1.entry.js +0 -1
  422. package/dist/post-components/p-e8e50d5c.entry.js +0 -1
  423. package/dist/post-components/p-eb64ec1d.entry.js +0 -1
  424. package/dist/post-components/p-f0746a9e.entry.js +0 -1
  425. package/dist/post-components/p-f5e33714.entry.js +0 -1
  426. package/dist/post-components/p-f93ce33d.entry.js +0 -1
  427. package/dist/post-components/p-fd0446b2.entry.js +0 -1
  428. package/dist/post-components/p-x3kxyWSZ.js +0 -1
  429. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
  430. package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
  431. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
  432. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
  433. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
  434. package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
  435. package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
  436. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  437. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
  438. package/dist/types/utils/property-checkers/index.d.ts +0 -34
  439. package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
@@ -1,21 +1,17 @@
1
- import { h, Host, } from "@stencil/core";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { Required, Type } from "../../utils/index";
2
12
  import { version } from "../../../../package";
3
- import { checkRequiredAndType } from "../../utils/index";
13
+ import { h, Host } from "@stencil/core";
4
14
  export class PostRating {
5
- validateLabel() {
6
- checkRequiredAndType(this, 'label', 'string');
7
- }
8
- validateStars() {
9
- checkRequiredAndType(this, 'stars', 'number');
10
- }
11
- validateCurrentRating() {
12
- checkRequiredAndType(this, 'currentRating', 'number');
13
- }
14
- componentWillLoad() {
15
- this.validateLabel();
16
- this.validateStars();
17
- this.validateCurrentRating();
18
- }
19
15
  constructor() {
20
16
  this.hasChanged = false;
21
17
  /**
@@ -87,7 +83,7 @@ export class PostRating {
87
83
  }
88
84
  }
89
85
  render() {
90
- return (h(Host, { key: 'bd452616dc47e25ae0f97eb77869e558eb0e199c', "data-version": version }, h("div", { key: 'a2d59f6007b337d906af31f7ebc4cc57022b0e67', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
86
+ return (h(Host, { key: 'c037e21b074c9ebc433e325e49d17dbe06d8db43', "data-version": version }, h("div", { key: 'f661eac91003680598c38d54dbc5fa3f482b7ad8', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
91
87
  'star': true,
92
88
  'before-hover': i < this.hoveredIndex,
93
89
  'active': i < Math.round(this.currentRating),
@@ -229,16 +225,16 @@ export class PostRating {
229
225
  }];
230
226
  }
231
227
  static get elementRef() { return "host"; }
232
- static get watchers() {
233
- return [{
234
- "propName": "label",
235
- "methodName": "validateLabel"
236
- }, {
237
- "propName": "stars",
238
- "methodName": "validateStars"
239
- }, {
240
- "propName": "currentRating",
241
- "methodName": "validateCurrentRating"
242
- }];
243
- }
244
228
  }
229
+ __decorate([
230
+ Required(),
231
+ Type('string')
232
+ ], PostRating.prototype, "label", void 0);
233
+ __decorate([
234
+ Required(),
235
+ Type('number')
236
+ ], PostRating.prototype, "stars", void 0);
237
+ __decorate([
238
+ Required(),
239
+ Type('number')
240
+ ], PostRating.prototype, "currentRating", void 0);
@@ -0,0 +1 @@
1
+ :host{display:flex;background-color:#f0efed}:host dialog{overflow-y:auto;bottom:auto;right:auto;border:none;padding-inline:0;padding-block:40px;height:100vh;background-color:#f0efed}@media screen and (min-width: 1024px){:host{max-width:35ch;width:35ch}}
@@ -0,0 +1,231 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { h, Host, } from "@stencil/core";
12
+ import { version } from "../../../../package";
13
+ import { breakpoint } from "../../utils/breakpoints";
14
+ import { getFocusableChildren, Required, Type } from "../../utils/index";
15
+ /**
16
+ * @slot default - Slot for the navigation content (must be a `<nav>` landmark with proper heading)
17
+ */
18
+ export class PostSideNavigation {
19
+ constructor() {
20
+ this.device = breakpoint.get('device');
21
+ this.breakpointChange = (e) => {
22
+ this.device = e.detail;
23
+ };
24
+ /**
25
+ * Collapses the active disclosure on Escape; lets the native dialog handle it otherwise.
26
+ */
27
+ this.handleKeyDown = (e) => {
28
+ if (e.key !== 'Escape')
29
+ return;
30
+ const collapsible = this.collapsible;
31
+ if (!collapsible || collapsible.collapsed)
32
+ return;
33
+ e.preventDefault();
34
+ e.stopPropagation();
35
+ collapsible.toggle(false);
36
+ this.collapsibleTrigger?.querySelector('button')?.focus();
37
+ };
38
+ }
39
+ connectedCallback() {
40
+ globalThis.addEventListener('postBreakpoint:device', this.breakpointChange);
41
+ this.host.addEventListener('keydown', this.handleKeyDown);
42
+ }
43
+ disconnectedCallback() {
44
+ globalThis.removeEventListener('postBreakpoint:device', this.breakpointChange);
45
+ this.host.removeEventListener('keydown', this.handleKeyDown);
46
+ }
47
+ get dialog() {
48
+ return this.host.shadowRoot?.querySelector('dialog');
49
+ }
50
+ get collapsibleTrigger() {
51
+ return document.activeElement?.closest('post-collapsible-trigger') ?? null;
52
+ }
53
+ get collapsible() {
54
+ return this.collapsibleTrigger?.querySelector(':scope > post-collapsible') ?? null;
55
+ }
56
+ /**
57
+ * Toggles the navigation programmatically.
58
+ * No-op on desktop.
59
+ */
60
+ async toggle() {
61
+ if (this.device === 'desktop')
62
+ return;
63
+ return this.dialog?.open ? this.hide() : this.show();
64
+ }
65
+ /**
66
+ * Opens the navigation programmatically.
67
+ * No-op on desktop.
68
+ */
69
+ async show() {
70
+ if (this.device === 'desktop')
71
+ return;
72
+ this.dialog.showModal();
73
+ this.postToggle.emit(true);
74
+ this.focusNav();
75
+ }
76
+ /**
77
+ * Closes the navigation programmatically.
78
+ * No-op on desktop.
79
+ */
80
+ async hide() {
81
+ if (this.device === 'desktop')
82
+ return;
83
+ this.dialog.close();
84
+ }
85
+ /**
86
+ * Move focus into the navigation when the dialog opens.
87
+ */
88
+ focusNav() {
89
+ const slot = this.host.shadowRoot?.querySelector('slot');
90
+ const nav = slot?.assignedElements({ flatten: true })[0];
91
+ if (!nav)
92
+ return;
93
+ const [firstFocusable] = getFocusableChildren(nav);
94
+ firstFocusable?.focus();
95
+ }
96
+ /**
97
+ * Render inline navigation (desktop).
98
+ */
99
+ renderNav() {
100
+ return h("slot", null);
101
+ }
102
+ /**
103
+ * Render modal navigation (mobile/tablet).
104
+ */
105
+ renderDialog() {
106
+ return (h("dialog", { onClose: () => {
107
+ this.postToggle.emit(false);
108
+ } }, h("slot", null), h("post-closebutton", { onClick: () => this.hide() }, this.textClose)));
109
+ }
110
+ render() {
111
+ return (h(Host, { key: '63da088aa63d8a0cf6565f3bf01ab287a599ae27', "data-version": version }, this.device === 'desktop' ? this.renderNav() : this.renderDialog()));
112
+ }
113
+ static get is() { return "post-side-navigation"; }
114
+ static get encapsulation() { return "shadow"; }
115
+ static get originalStyleUrls() {
116
+ return {
117
+ "$": ["post-side-navigation.scss"]
118
+ };
119
+ }
120
+ static get styleUrls() {
121
+ return {
122
+ "$": ["post-side-navigation.css"]
123
+ };
124
+ }
125
+ static get properties() {
126
+ return {
127
+ "textClose": {
128
+ "type": "string",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "string",
132
+ "resolved": "string",
133
+ "references": {}
134
+ },
135
+ "required": true,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": "Accessible label for the close button shown in the mobile navigation dialog."
140
+ },
141
+ "getter": false,
142
+ "setter": false,
143
+ "reflect": true,
144
+ "attribute": "text-close"
145
+ }
146
+ };
147
+ }
148
+ static get states() {
149
+ return {
150
+ "device": {}
151
+ };
152
+ }
153
+ static get events() {
154
+ return [{
155
+ "method": "postToggle",
156
+ "name": "postToggle",
157
+ "bubbles": true,
158
+ "cancelable": true,
159
+ "composed": true,
160
+ "docs": {
161
+ "tags": [],
162
+ "text": "An event emitted when the navigation is shown or hidden on mobile.\nThe payload is a boolean: `true` when the navigation opens, `false` when it closes."
163
+ },
164
+ "complexType": {
165
+ "original": "boolean",
166
+ "resolved": "boolean",
167
+ "references": {}
168
+ }
169
+ }];
170
+ }
171
+ static get methods() {
172
+ return {
173
+ "toggle": {
174
+ "complexType": {
175
+ "signature": "() => Promise<void>",
176
+ "parameters": [],
177
+ "references": {
178
+ "Promise": {
179
+ "location": "global",
180
+ "id": "global::Promise"
181
+ }
182
+ },
183
+ "return": "Promise<void>"
184
+ },
185
+ "docs": {
186
+ "text": "Toggles the navigation programmatically.\nNo-op on desktop.",
187
+ "tags": []
188
+ }
189
+ },
190
+ "show": {
191
+ "complexType": {
192
+ "signature": "() => Promise<void>",
193
+ "parameters": [],
194
+ "references": {
195
+ "Promise": {
196
+ "location": "global",
197
+ "id": "global::Promise"
198
+ }
199
+ },
200
+ "return": "Promise<void>"
201
+ },
202
+ "docs": {
203
+ "text": "Opens the navigation programmatically.\nNo-op on desktop.",
204
+ "tags": []
205
+ }
206
+ },
207
+ "hide": {
208
+ "complexType": {
209
+ "signature": "() => Promise<void>",
210
+ "parameters": [],
211
+ "references": {
212
+ "Promise": {
213
+ "location": "global",
214
+ "id": "global::Promise"
215
+ }
216
+ },
217
+ "return": "Promise<void>"
218
+ },
219
+ "docs": {
220
+ "text": "Closes the navigation programmatically.\nNo-op on desktop.",
221
+ "tags": []
222
+ }
223
+ }
224
+ };
225
+ }
226
+ static get elementRef() { return "host"; }
227
+ }
228
+ __decorate([
229
+ Required(),
230
+ Type('string')
231
+ ], PostSideNavigation.prototype, "textClose", void 0);
@@ -0,0 +1 @@
1
+ :host{display:inline-block;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}@media screen and (min-width: 1024px){:host{display:none}}:host(:focus-within){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-within):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){:host(:focus-within):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:focus-within):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){:host(:focus-within):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){:host(:focus-within){outline-color:Highlight !important}}::slotted(button){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);outline:none}::slotted(button):not(:disabled):hover{text-decoration:none}::slotted(button):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}::slotted(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}::slotted(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){::slotted(button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){::slotted(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){::slotted(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){::slotted(button):is(a){color:LinkText;border:unset}::slotted(button):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}::slotted(button):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}::slotted(button):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}::slotted(button):hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}::slotted(button):is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}::slotted(button):is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}@media screen and (min-width: 0)and (max-width: 599.98px){::slotted(button){padding:.625rem}::slotted(button)>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}::slotted(button)>post-icon{font-size:1.5rem}}
@@ -0,0 +1,154 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { h, Host } from "@stencil/core";
12
+ import { version } from "../../../../package";
13
+ import { EventFrom, getRoot, Required, Type } from "../../utils/index";
14
+ /**
15
+ * @slot default - Slot for the `<button>` that toggles the navigation.
16
+ */
17
+ export class PostSideNavigationTrigger {
18
+ constructor() {
19
+ this.observer = new MutationObserver(() => this.setTrigger());
20
+ this.toggleSideNavigation = this.toggleSideNavigation.bind(this);
21
+ this.handlePostToggle = this.handlePostToggle.bind(this);
22
+ }
23
+ connectedCallback() {
24
+ this.root = getRoot(this.host);
25
+ this.root.addEventListener('postToggle', this.handlePostToggle);
26
+ this.observer.observe(this.host, { childList: true, subtree: true });
27
+ }
28
+ componentDidLoad() {
29
+ this.setTrigger();
30
+ if (!this.trigger)
31
+ console.warn('The post-side-navigation-trigger must contain a button.');
32
+ }
33
+ disconnectedCallback() {
34
+ this.observer.disconnect();
35
+ this.root.removeEventListener('postToggle', this.handlePostToggle);
36
+ this.trigger?.removeEventListener('click', this.toggleSideNavigation);
37
+ }
38
+ /**
39
+ * Retrieve the post-side-navigation controlled by the trigger.
40
+ */
41
+ get sideNavigation() {
42
+ const ref = this.root.getElementById(this.for);
43
+ if (ref && ref.localName === 'post-side-navigation') {
44
+ return ref;
45
+ }
46
+ return null;
47
+ }
48
+ /**
49
+ * Find the button, attach the click listener and the initial ARIA attributes.
50
+ */
51
+ setTrigger() {
52
+ const trigger = this.host.querySelector('button');
53
+ if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
54
+ return;
55
+ if (this.trigger) {
56
+ this.trigger.removeEventListener('click', this.toggleSideNavigation);
57
+ }
58
+ this.trigger = trigger;
59
+ this.trigger.addEventListener('click', this.toggleSideNavigation);
60
+ this.updateAriaAttributes();
61
+ }
62
+ updateAriaAttributes() {
63
+ if (!this.trigger)
64
+ return;
65
+ const ariaControls = this.trigger.getAttribute('aria-controls');
66
+ if (!ariaControls?.includes(this.for)) {
67
+ const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
68
+ this.trigger.setAttribute('aria-controls', newAriaControls);
69
+ }
70
+ this.trigger.setAttribute('aria-expanded', 'false');
71
+ }
72
+ /**
73
+ * Keep the trigger's `aria-expanded` in sync with the navigation state.
74
+ */
75
+ handlePostToggle(e) {
76
+ this.trigger?.setAttribute('aria-expanded', `${e.detail}`);
77
+ }
78
+ /**
79
+ * Manually update the trigger's ARIA attributes.
80
+ */
81
+ async update() {
82
+ this.updateAriaAttributes();
83
+ }
84
+ async toggleSideNavigation() {
85
+ await this.sideNavigation?.toggle();
86
+ }
87
+ render() {
88
+ return (h(Host, { key: 'f6b6a9681e0894724cdf523cbd8104f3c3c1924d', "data-version": version }, h("slot", { key: 'cbd61018657553b1aed33bddb3667145548fc653' })));
89
+ }
90
+ static get is() { return "post-side-navigation-trigger"; }
91
+ static get encapsulation() { return "shadow"; }
92
+ static get originalStyleUrls() {
93
+ return {
94
+ "$": ["post-side-navigation-trigger.scss"]
95
+ };
96
+ }
97
+ static get styleUrls() {
98
+ return {
99
+ "$": ["post-side-navigation-trigger.css"]
100
+ };
101
+ }
102
+ static get properties() {
103
+ return {
104
+ "for": {
105
+ "type": "string",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "string",
109
+ "resolved": "string",
110
+ "references": {}
111
+ },
112
+ "required": true,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
117
+ },
118
+ "getter": false,
119
+ "setter": false,
120
+ "reflect": true,
121
+ "attribute": "for"
122
+ }
123
+ };
124
+ }
125
+ static get methods() {
126
+ return {
127
+ "update": {
128
+ "complexType": {
129
+ "signature": "() => Promise<void>",
130
+ "parameters": [],
131
+ "references": {
132
+ "Promise": {
133
+ "location": "global",
134
+ "id": "global::Promise"
135
+ }
136
+ },
137
+ "return": "Promise<void>"
138
+ },
139
+ "docs": {
140
+ "text": "Manually update the trigger's ARIA attributes.",
141
+ "tags": []
142
+ }
143
+ }
144
+ };
145
+ }
146
+ static get elementRef() { return "host"; }
147
+ }
148
+ __decorate([
149
+ Required(),
150
+ Type('string')
151
+ ], PostSideNavigationTrigger.prototype, "for", void 0);
152
+ __decorate([
153
+ EventFrom('post-side-navigation', { ignoreNestedComponents: false })
154
+ ], PostSideNavigationTrigger.prototype, "handlePostToggle", null);
@@ -1,6 +1,16 @@
1
- import { h, Host } from "@stencil/core";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { Pattern, Required, Type } from "../../utils/index";
2
12
  import { version } from "../../../../package";
3
- import { checkRequiredAndPattern, checkRequiredAndType } from "../../utils/index";
13
+ import { h, Host } from "@stencil/core";
4
14
  export class PostStepper {
5
15
  constructor() {
6
16
  /**
@@ -8,18 +18,7 @@ export class PostStepper {
8
18
  */
9
19
  this.currentIndex = -1;
10
20
  }
11
- validateTextCurrentStep() {
12
- checkRequiredAndType(this, 'textCurrentStep', 'string');
13
- }
14
- validateTextCompletedStep() {
15
- checkRequiredAndType(this, 'textCompletedStep', 'string');
16
- }
17
- validateTextStepNumber() {
18
- checkRequiredAndPattern(this, 'textStepNumber', /\{number\}/);
19
- this.updateActiveStepNumber();
20
- }
21
21
  validateCurrentIndex() {
22
- checkRequiredAndType(this, 'currentIndex', 'number');
23
22
  if (this.stepItems) {
24
23
  this.updateSteps();
25
24
  this.checkIndexes();
@@ -30,15 +29,20 @@ export class PostStepper {
30
29
  this.selectedIndex = this.currentIndex;
31
30
  }
32
31
  else {
33
- checkRequiredAndType(this, 'selectedIndex', 'number');
34
32
  this.checkIndexes();
35
33
  }
36
34
  this.updateSteps();
37
35
  }
36
+ updateActiveStepNumber() {
37
+ if (this.textStepNumber) {
38
+ const labelTemplate = this.textStepNumber;
39
+ this.mobileActiveStepLabel = labelTemplate.replaceAll('{number}', `${this.selectedIndex + 1}`);
40
+ if (this.stepItems) {
41
+ this.updateMobileActiveStepVisibility();
42
+ }
43
+ }
44
+ }
38
45
  componentDidLoad() {
39
- this.validateTextCompletedStep();
40
- this.validateTextCurrentStep();
41
- this.validateTextStepNumber();
42
46
  // Wait for slotchange
43
47
  setTimeout(() => {
44
48
  this.validateCurrentIndex();
@@ -50,15 +54,6 @@ export class PostStepper {
50
54
  console.error('The selected-index cannot be higher than the current-index, as only the current and completed steps can be selected.');
51
55
  }
52
56
  }
53
- updateActiveStepNumber() {
54
- if (this.textStepNumber) {
55
- const labelTemplate = this.textStepNumber;
56
- this.mobileActiveStepLabel = labelTemplate.replaceAll('{number}', `${this.selectedIndex + 1}`);
57
- if (this.stepItems) {
58
- this.updateMobileActiveStepVisibility();
59
- }
60
- }
61
- }
62
57
  updateSteps() {
63
58
  this.stepItems = this.host.querySelectorAll('post-stepper-item');
64
59
  if (!this.stepItems || this.stepItems.length < 3) {
@@ -67,6 +62,8 @@ export class PostStepper {
67
62
  }
68
63
  this.updateActiveStepNumber();
69
64
  this.stepItems.forEach((el, i) => {
65
+ // Set CSS custom property for step number (iOS compatible fix)
66
+ el.style.setProperty('--step-number', `"${i + 1}"`);
70
67
  if (this.selectedIndex === i) {
71
68
  this.mobileActiveStepName = el.innerHTML;
72
69
  }
@@ -107,7 +104,7 @@ export class PostStepper {
107
104
  }
108
105
  }
109
106
  render() {
110
- return (h(Host, { key: 'eb916a1b9169dc3a461e6307bce1d548d3e49890', "data-version": version }, h("ol", { key: '4e9460bdae8f3ab56789a60e925a3229cb0140ec' }, h("slot", { key: '6da9d8e162d901fdb5cb5edeaf7e394948cca663', onSlotchange: () => this.updateSteps() })), h("div", { key: '546c1da3029799c97fcd5d6146933ee1dd7f7ade', class: "active-step", "aria-hidden": "true" }, h("span", { key: '581c306bd6d7b840c7f74d96199e0197b550e9e0', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: 'c794108854a153e4005b8a3bb4a609fb6441f966', innerHTML: this.mobileActiveStepName }))));
107
+ return (h(Host, { key: 'd69c88e820900e398a025e420ace286bfc87d8ef', "data-version": version }, h("ol", { key: '7b23a87d5ac22ff3ce15455ff9922bfeb2d1f5de' }, h("slot", { key: '96068f61893d3a6340218995b128ba4c0db6ab3f', onSlotchange: () => this.updateSteps() })), h("div", { key: 'd52b5e4627d99a29ddb822a2feeaaff1df60c3f5', class: "active-step", "aria-hidden": "true" }, h("span", { key: '518bfebb848e6ab364cbad03f18921572f9a46b4', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: '64aa32c57d550ac9951e9093e911fdf1802b7131', innerHTML: this.mobileActiveStepName }))));
111
108
  }
112
109
  static get is() { return "post-stepper"; }
113
110
  static get encapsulation() { return "shadow"; }
@@ -230,20 +227,33 @@ export class PostStepper {
230
227
  static get elementRef() { return "host"; }
231
228
  static get watchers() {
232
229
  return [{
233
- "propName": "textCurrentStep",
234
- "methodName": "validateTextCurrentStep"
235
- }, {
236
- "propName": "textCompletedStep",
237
- "methodName": "validateTextCompletedStep"
238
- }, {
239
- "propName": "textStepNumber",
240
- "methodName": "validateTextStepNumber"
241
- }, {
242
230
  "propName": "currentIndex",
243
231
  "methodName": "validateCurrentIndex"
244
232
  }, {
245
233
  "propName": "selectedIndex",
246
234
  "methodName": "validateSelectedIndex"
235
+ }, {
236
+ "propName": "textStepNumber",
237
+ "methodName": "updateActiveStepNumber"
247
238
  }];
248
239
  }
249
240
  }
241
+ __decorate([
242
+ Required(),
243
+ Type('string')
244
+ ], PostStepper.prototype, "textCurrentStep", void 0);
245
+ __decorate([
246
+ Required(),
247
+ Type('string')
248
+ ], PostStepper.prototype, "textCompletedStep", void 0);
249
+ __decorate([
250
+ Required(),
251
+ Pattern(/\{number\}/)
252
+ ], PostStepper.prototype, "textStepNumber", void 0);
253
+ __decorate([
254
+ Required(),
255
+ Type('number')
256
+ ], PostStepper.prototype, "currentIndex", void 0);
257
+ __decorate([
258
+ Type('number')
259
+ ], PostStepper.prototype, "selectedIndex", void 0);