@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,15 +1,24 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
3
- import { c as checkRequiredAndType } from './index-D9bU2pIE.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
4
2
  import { b as breakpoint } from './breakpoints-BQ3HlJPr.js';
3
+ import { v as version } from './package-CdhbouMD.js';
4
+ import { R as Required } from './required-DhBxDSbP.js';
5
+ import { T as Type } from './type-icZlikjf.js';
6
+ import './create-validator-decorator-BNkS_yAb.js';
5
7
 
6
8
  const postFooterCss = () => `:host{display:block}footer{border-block-start:1px solid #373632;--post-footer-container-padding-block:32px;--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:0;--post-footer-grid-margin-block-end:24px;--post-footer-grid-padding-block-end:0;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-app-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-businesssectors-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-meta-margin-block-end:16px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-container-padding-block:40px;--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-grid-row-gap:32px;--post-footer-grid-column-gap:16px;--post-footer-grid-margin-block-end:32px;--post-footer-grid-padding-block-end:32px;--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-meta-margin-block-end:8px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px}}@media screen and (min-width: 1024px){footer{--post-footer-container-padding-block:56px;--post-footer-grid-template:auto / repeat(4, auto);--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:24px;--post-footer-grid-margin-block-end:40px;--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-businesssectors-margin-block-end:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{box-sizing:content-box;margin:0 auto;padding:var(--post-footer-container-padding-block) var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa}.prefooter .footer-container{padding-block:0}.prefooter ::slotted([slot=prefooter]){padding-block:var(--post-footer-prefooter-padding-block)}.footer-main{background-color:#fc0}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);row-gap:var(--post-footer-grid-row-gap);column-gap:var(--post-footer-grid-column-gap);margin-block-end:var(--post-footer-grid-margin-block-end);padding-block-end:var(--post-footer-grid-padding-block-end)}.footer-grid:has(>.d-none+.d-none+.d-none+.d-none){margin-block-end:0;padding-block-end:0;row-gap:0;column-gap:0}.footer-grid post-accordion:has(>.d-none+.d-none+.d-none+.d-none){display:none}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:flex;flex-direction:var(--post-footer-column-flex-direction);flex-wrap:wrap;justify-content:space-between;align-items:var(--post-footer-column-align-items);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:flex !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{margin-block-end:var(--post-footer-socialmedia-margin-block-end)}.footer-app{margin-block-end:var(--post-footer-app-margin-block-end)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:flex;flex-wrap:wrap;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-meta{margin-block-end:var(--post-footer-meta-margin-block-end);font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:flex;flex-wrap:wrap;column-gap:.5rem;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}`;
7
9
 
10
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13
+ r = Reflect.decorate(decorators, target, key, desc);
14
+ else
15
+ for (var i = decorators.length - 1; i >= 0; i--)
16
+ if (d = decorators[i])
17
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
8
20
  const GRID_SLOTS = ['grid-1', 'grid-2', 'grid-3', 'grid-4'];
9
21
  const PostFooter = class {
10
- validateTextFooter() {
11
- checkRequiredAndType(this, 'textFooter', 'string');
12
- }
13
22
  constructor(hostRef) {
14
23
  registerInstance(this, hostRef);
15
24
  this.device = breakpoint.get('device');
@@ -23,7 +32,6 @@ const PostFooter = class {
23
32
  globalThis.addEventListener('postBreakpoint:device', this.breakpointChange);
24
33
  }
25
34
  componentWillLoad() {
26
- this.validateTextFooter();
27
35
  // initialize grid visibility by checking the content of each slot
28
36
  GRID_SLOTS.forEach(slotName => {
29
37
  const assignedElements = this.host.querySelectorAll(`[slot="${slotName}"]`);
@@ -52,15 +60,14 @@ const PostFooter = class {
52
60
  return GRID_SLOTS.map(slotName => (h("div", { class: { 'd-none': !this.gridSlotDisplayed[slotName] } }, h("h3", null, h("slot", { name: slotName + '-title' })), h("slot", { onSlotchange: this.handleGridSlotChange('tablet', 'desktop'), name: slotName }))));
53
61
  }
54
62
  render() {
55
- return (h(Host, { key: '2d88cc275f39961bc7907f4a71c7d64f44aa73cd', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: 'f3936911ac36fc0032e491b83caf1c645373d5a6' }, h("h2", { key: '9b66e2a8a143f65bd495be83c0f1ad7c7b2933eb', class: "visually-hidden" }, this.textFooter), h("div", { key: '7e186ea5cca898ae4ad3ed9c75c4c1b714f88cdd', class: "prefooter" }, h("div", { key: '1dd515039ba4705d7015464583548dc0c8c57e75', class: "footer-container" }, h("slot", { key: 'd954af720846be6b4fe39c0af6ae86a03d0cdddf', name: "prefooter" }))), h("div", { key: '672066a636d7f836220ff601b7c67df87f4b6703', class: "footer-main" }, h("div", { key: 'fd00f3258cbcbcc0f0f25d994046ae1af597e6c2', class: "footer-container" }, h("div", { key: '6bc09f41d11e390999918f5974b75e9a697d6e10', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '5132d4a7c816c51fbe7a834598e09e0900b6591d', class: "footer-column" }, h("div", { key: '2f9d1294d13c9f6529e968a5948f118153094e24', class: "footer-socialmedia" }, h("slot", { key: '863226c65164586e1361613f33809394d402317b', name: "socialmedia" })), h("div", { key: 'b517d12fe0790fcbd8bb53adb58e967618b549c2', class: "footer-app" }, h("slot", { key: '4c3528f97dddfec292719df5e652b5ad08001d36', name: "app" }))), h("div", { key: 'cca5baef5e98eea815eff20f6397320da65f752b', class: "footer-businesssectors" }, h("slot", { key: 'b175689718b5c37d07e59e5eb2da2bee8689638a', name: "businesssectors" })), h("div", { key: '216886a10e3ad023fee0cd644827d1841df86ccc', class: "footer-meta" }, h("slot", { key: '7b6fbdf6127efac59711776d029f4213ed6b22e4', name: "meta" })), h("div", { key: '2964d34052f8ade89c5e444696f90147ec95f1bf', class: "footer-copyright" }, h("slot", { key: '36a5e8a3045442f14c9b8292c914455489a2e556', name: "copyright" })))))));
63
+ return (h(Host, { key: '4ad289dc83c48a62c42decc3d22ef21d91a75a45', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: '8d1e75c31949f7f779282b37fde3408554d3da20' }, h("h2", { key: '23aec94a2c98d453c654caad2a548f0c92bf2bbf', class: "visually-hidden" }, this.textFooter), h("div", { key: '9d2673211c6ea2f1f7a81b230b70ea37e1170b49', class: "prefooter" }, h("div", { key: 'b9f6926e3d8715306badc6081b213a734449e360', class: "footer-container" }, h("slot", { key: 'c03ddbd53a0237e30fd70e5ca9efb65d0338a3f2', name: "prefooter" }))), h("div", { key: 'b0cbb8eb866e48938b952ef6a4e834375da41451', class: "footer-main" }, h("div", { key: 'fd4a20fae58bada639828b93cbaae6547088763b', class: "footer-container" }, h("div", { key: '4f93c304cada9d4c4f4923dc01e97a63ec78b574', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '5643a42c547f95deb85b82a46f0862dcdc2ef87a', class: "footer-column" }, h("div", { key: '3825bdc8e71af6a779eda7c1db9b1a0627955d6a', class: "footer-socialmedia" }, h("slot", { key: '5ae0689ee5780ded9c9617edafa1f1890f380046', name: "socialmedia" })), h("div", { key: 'abb7753bea7d39bac02a61be369b5038b5cb157c', class: "footer-app" }, h("slot", { key: 'aa15e19ace09a0b26bab1506ecce666fabe09654', name: "app" }))), h("div", { key: 'd6d064e8e855b34d21dfd0162e4f8d751b917106', class: "footer-businesssectors" }, h("slot", { key: '1455c3077887833904a98768d28d79a3a171c018', name: "businesssectors" })), h("div", { key: 'a6fd59702e790cfcab916f2a64036e9039693f8c', class: "footer-meta" }, h("slot", { key: '1270316794dbd356636fd39b553cc7903a80cfc7', name: "meta" })), h("div", { key: '06790e21f0b72f047f656b96aebb6e76a54349c9', class: "footer-copyright" }, h("slot", { key: '5c1d43a9c3c6efb6b376bff3d9668a871ee69494', name: "copyright" })))))));
56
64
  }
57
65
  get host() { return getElement(this); }
58
- static get watchers() { return {
59
- "textFooter": [{
60
- "validateTextFooter": 0
61
- }]
62
- }; }
63
66
  };
67
+ __decorate([
68
+ Required(),
69
+ Type('string')
70
+ ], PostFooter.prototype, "textFooter", void 0);
64
71
  PostFooter.style = postFooterCss();
65
72
 
66
73
  export { PostFooter as post_footer };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
2
+ import { v as version } from './package-CdhbouMD.js';
3
3
 
4
4
  const postLinkareaCss = () => `:host{display:block;cursor:pointer;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){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){outline-color:Highlight !important}}`;
5
5
 
@@ -61,7 +61,7 @@ const PostLinkarea = class {
61
61
  }
62
62
  }
63
63
  render() {
64
- return (h(Host, { key: 'b79b314635a4cb302d862006d07ab5f059298382', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: '4e9a1ee60d499f6dd80819e68f6536b3964d3389' })));
64
+ return (h(Host, { key: 'fc3ddb24df6e4077e99e41f2f7df12ada959806b', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: 'ed83fbafaf9f4807d523c209f15310fd205a1b3f' })));
65
65
  }
66
66
  get host() { return getElement(this); }
67
67
  };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BGeKgZqi.js';
2
+ import { v as version } from './package-CdhbouMD.js';
3
3
 
4
4
  const postListboxOptionCss = () => `:host{padding:12px 12px 9px 16px;background-color:#fff;cursor:pointer;user-select:none;display:flex;align-items:center;gap:8px;justify-content:space-between}:host(:hover){background-color:#f0efed}:host([data-active=true]){outline:2px solid #000;outline-offset:-4px}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid #050400;outline-offset:2px}.option-content{display:flex;flex-direction:column;min-width:0}.option-description{display:none;font-size:.85em;color:#666}:host(:not(:empty)) .option-description{display:block}post-icon{width:24px;height:24px}`;
5
5
 
@@ -14,9 +14,9 @@ const PostListboxOption = class {
14
14
  this.highlighted = false;
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: 'f88a84b9004a29fb7c39ea4cbc509d940d70a52d', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
17
+ return (h(Host, { key: 'c75cfbe7dd678bc79931c65981141df651370325', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
18
18
  /* Prevent focus change from triggering onblur event in post-autocomplete */
19
- onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: '99d154078490d171ab0e4e43b765cbffb44e721e', class: "option-content" }, this.value, h("span", { key: '609a205bb61b84d1e56e6e64282cb210f650faca', class: "option-description" }, h("slot", { key: 'd08d9dddbea69b693002a20f4127788a6a21acc1' }))), this.selected && h("post-icon", { key: '04e999451c694a0cb54e1e3ab5cd3eca29640aaf', "aria-hidden": "true", name: "checkmark" })));
19
+ onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: '52f70e122b62c91fed65b4a20174bd1b8b0f2738', class: "option-content" }, this.value, h("span", { key: '32ace82d3a5058b3a3edee55b8b46594c3fca38a', class: "option-description" }, h("slot", { key: '46aab0eeed22f99778924a5d97a92c7d95359939' }))), this.selected && h("post-icon", { key: 'ac64dc0afbec858119ad2e7077712a6dd40fa6c9', "aria-hidden": "true", name: "checkmark" })));
20
20
  }
21
21
  };
22
22
  PostListboxOption.style = postListboxOptionCss();
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
3
2
  import './breakpoints-BQ3HlJPr.js';
4
3
  import { E as EventFrom } from './event-from-rEfV4v4a.js';
4
+ import { v as version } from './package-CdhbouMD.js';
5
5
 
6
6
  const postListboxCss = () => `post-popovercontainer{border-radius:4px;overflow:hidden;box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:flex;flex-direction:column}::slotted([slot=blank-slate]){display:block;padding:.75rem;color:#666}`;
7
7
 
@@ -66,12 +66,10 @@ const PostListbox = class {
66
66
  const input = this.inputElement;
67
67
  if (input) {
68
68
  this.popoverContainer?.show(input);
69
- this.host.role = 'listbox';
70
69
  }
71
70
  }
72
71
  /** Closes the listbox */
73
72
  async hide() {
74
- this.host.removeAttribute('role');
75
73
  this.popoverContainer?.hide();
76
74
  }
77
75
  /** Uses the internal default filtering mode to filter the list of options.
@@ -137,7 +135,7 @@ const PostListbox = class {
137
135
  this.updateSelection(event.detail);
138
136
  }
139
137
  render() {
140
- return (h(Host, { key: 'd1c8d392375cb98c4861f2dbd0b857873f05ea18', "data-version": version }, h("post-popovercontainer", { key: 'b798dc347cb60bb5890148a84060f129ef9a8248', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, this.visibleOptions.length === 0 ? h("slot", { name: "blank-slate" }) : h("slot", null))));
138
+ return (h(Host, { key: 'fc476c9f1a3478871604e83c178efd5eb19ef003', "data-version": version, role: "listbox" }, h("post-popovercontainer", { key: '8242a45777bcab5d9afb37133726d85798f9b626', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, this.visibleOptions.length === 0 ? h("slot", { name: "blank-slate" }) : h("slot", null))));
141
139
  }
142
140
  get host() { return getElement(this); }
143
141
  };
@@ -1,10 +1,22 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
3
- import { c as checkRequiredAndType } from './index-D9bU2pIE.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
4
2
  import './breakpoints-BQ3HlJPr.js';
3
+ import { v as version } from './package-CdhbouMD.js';
4
+ import { R as Required } from './required-DhBxDSbP.js';
5
+ import { T as Type } from './type-icZlikjf.js';
6
+ import './create-validator-decorator-BNkS_yAb.js';
5
7
 
6
- const postLoginWidgetCss = () => `:host post-menu-trigger 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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}:host post-menu-trigger button:hover{text-decoration:none}:host post-menu-trigger button:disabled{border-style:var(--post-core-border-style-dash)}:host post-menu-trigger 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}:host post-menu-trigger 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){:host post-menu-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host post-menu-trigger 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){:host post-menu-trigger 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){:host post-menu-trigger button:is(a){color:LinkText;border:unset}:host post-menu-trigger button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host post-menu-trigger button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host post-menu-trigger button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host post-menu-trigger button>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}:host post-menu-trigger button{border-radius:var(--post-device-border-radius-round) !important;border:0 none;min-height:0;padding:0}:host post-menu-trigger .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
8
+ const postLoginWidgetCss = () => `:host post-menu-trigger button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}:host post-menu-trigger button:not(:disabled):hover{text-decoration:none}:host post-menu-trigger button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host post-menu-trigger 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}:host post-menu-trigger 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){:host post-menu-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host post-menu-trigger 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){:host post-menu-trigger 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){:host post-menu-trigger button:is(a){color:LinkText;border:unset}:host post-menu-trigger button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host post-menu-trigger button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host post-menu-trigger button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host post-menu-trigger button>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}:host post-menu-trigger button{border-radius:var(--post-device-border-radius-round) !important;border:0 none;min-height:0;padding:0}:host post-menu-trigger .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
7
9
 
10
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13
+ r = Reflect.decorate(decorators, target, key, desc);
14
+ else
15
+ for (var i = decorators.length - 1; i >= 0; i--)
16
+ if (d = decorators[i])
17
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
8
20
  const SESSION_URL = 'https://n.account.post.ch/v1/session/subscribe';
9
21
  const PostLoginWidget = class {
10
22
  constructor(hostRef) {
@@ -13,20 +25,6 @@ const PostLoginWidget = class {
13
25
  this.authenticated = null;
14
26
  this.user = null;
15
27
  }
16
- validateTextCurrentUser() {
17
- checkRequiredAndType(this, 'textCurrentUser', 'string');
18
- }
19
- validateTextUserMenu() {
20
- checkRequiredAndType(this, 'textUserMenu', 'string');
21
- }
22
- validateTextUserMenuTrigger() {
23
- checkRequiredAndType(this, 'textUserMenuTrigger', 'string');
24
- }
25
- componentDidLoad() {
26
- this.validateTextCurrentUser();
27
- this.validateTextUserMenuTrigger();
28
- this.validateTextUserMenu();
29
- }
30
28
  async componentWillLoad() {
31
29
  {
32
30
  await this.fetchAuthState();
@@ -71,21 +69,22 @@ const PostLoginWidget = class {
71
69
  this.postChange.emit({ authenticated: next });
72
70
  }
73
71
  render() {
74
- return (h(Host, { key: '1d26f4edfaa623ac4f9a9c71bef89413ef3109c0', "data-version": version }, this.authenticated === true ? (h("div", null, h("post-menu-trigger", { for: "user-menu-default" }, h("button", { class: "btn btn-link", type: "button" }, h("post-avatar", { firstname: this.user.name, lastname: this.user.surname, description: this.textCurrentUser.replace('{user}', `${this.user.name} ${this.user.surname}`) }), h("span", { class: "visually-hidden" }, this.textUserMenuTrigger))), h("post-menu", { label: this.textUserMenu, id: "user-menu-default" }, h("div", { slot: "header" }, h("post-avatar", { firstname: this.user.name, lastname: this.user.surname, email: this.user.email, "aria-hidden": "true" }), this.user.name, " ", this.user.surname), h("slot", { name: "user-links" })))) : (h("div", null, h("slot", { name: "login-link" })))));
72
+ return (h(Host, { key: '74d00f53d1de12c739242183cb4551fe5127eb29', "data-version": version }, this.authenticated === true ? (h("div", null, h("post-menu-trigger", { for: "user-menu-default" }, h("button", { class: "btn btn-link", type: "button" }, h("post-avatar", { firstname: this.user.name, lastname: this.user.surname, description: this.textCurrentUser.replace('{user}', `${this.user.name} ${this.user.surname}`) }), h("span", { class: "visually-hidden" }, this.textUserMenuTrigger))), h("post-menu", { label: this.textUserMenu, id: "user-menu-default" }, h("div", { slot: "header" }, h("post-avatar", { firstname: this.user.name, lastname: this.user.surname, email: this.user.email, "aria-hidden": "true" }), this.user.name, " ", this.user.surname), h("slot", { name: "user-links" })))) : (h("div", null, h("slot", { name: "login-link" })))));
75
73
  }
76
74
  get host() { return getElement(this); }
77
- static get watchers() { return {
78
- "textCurrentUser": [{
79
- "validateTextCurrentUser": 0
80
- }],
81
- "textUserMenu": [{
82
- "validateTextUserMenu": 0
83
- }],
84
- "textUserMenuTrigger": [{
85
- "validateTextUserMenuTrigger": 0
86
- }]
87
- }; }
88
75
  };
76
+ __decorate([
77
+ Required(),
78
+ Type('string')
79
+ ], PostLoginWidget.prototype, "textCurrentUser", void 0);
80
+ __decorate([
81
+ Required(),
82
+ Type('string')
83
+ ], PostLoginWidget.prototype, "textUserMenu", void 0);
84
+ __decorate([
85
+ Required(),
86
+ Type('string')
87
+ ], PostLoginWidget.prototype, "textUserMenuTrigger", void 0);
89
88
  PostLoginWidget.style = postLoginWidgetCss();
90
89
 
91
90
  export { PostLoginWidget as post_login_widget };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DmBWUef5.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
2
2
  import { d as debounce } from './breakpoints-BQ3HlJPr.js';
3
- import { v as version } from './package-x3kxyWSZ.js';
3
+ import { v as version } from './package-CdhbouMD.js';
4
4
 
5
5
  function getSlottedElement(host, selector) {
6
6
  const slottedElements = host.querySelectorAll(selector);
@@ -36,7 +36,7 @@ function repeat(callback, { delayMs = 300, intervalMs = 100 } = {}) {
36
36
  };
37
37
  }
38
38
 
39
- const postNumberInputCss = () => `: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( (var(--post-device-spacing-padding-inline-1)* 2) + var(--post-device-sizing-notification-5) ) !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-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-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}`;
39
+ const postNumberInputCss = () => `: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( (var(--post-device-spacing-padding-inline-1)* 2) + var(--post-device-sizing-notification-5) ) !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-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;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:not(:disabled):hover{text-decoration:none}.step-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.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}`;
40
40
 
41
41
  function parseNumber(input, key) {
42
42
  const value = Number.parseFloat(input[key]);
@@ -125,10 +125,10 @@ const PostNumberInput = class {
125
125
  }
126
126
  render() {
127
127
  const areButtonsShown = !!this.input;
128
- return (h(Host, { key: 'c8ef21f14edba7dcaf82dc66d7735f3ab3022e4f', "data-version": version, class: {
128
+ return (h(Host, { key: '1de11525fae384024130cc17e51f551b1757c418', "data-version": version, class: {
129
129
  'number-input-sm': this.small,
130
130
  'disabled': this.isDisabled,
131
- } }, areButtonsShown && (h("div", { key: '585049836ec48c09bcf49019375d798d58b1d56b', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: '1891fc6f71f9251e32b254d6a2da72560c86d3f2', name: "minus" }))), h("div", { key: '8cffde72970f70573f7d9afacd023bc87b9d9bae', class: "input-container" }, h("slot", { key: '69cdc0bef28f380690ce4d4887a3bec3a1dc30b9', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '85cc8b04413b1a50ec493b45638f451fc2b5e0fd', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: '00b3a503d183042a406618aaad9a0e3f512e13e7', name: "plus" })))));
131
+ } }, areButtonsShown && (h("div", { key: '4a0f759a7f9b734ee938d21ccd84402063a69873', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: '73ad0f312ca606e856c5c33af3e06f9f9721c0ac', name: "minus" }))), h("div", { key: 'caacae681967a3a59772ad87add6dc47ef963418', class: "input-container" }, h("slot", { key: 'a08988105a441793d0181c1d6c9def6d3741f56c', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '609462bfa8e21f245e44864ac815dc7e0ee37c63', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: '5da1e4f67d50dfa0bcb893fe8603da8f2532334c', name: "plus" })))));
132
132
  }
133
133
  get host() { return getElement(this); }
134
134
  };
@@ -1,12 +1,24 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
3
- import { c as checkRequiredAndType, b as checkEmptyOrType } from './index-D9bU2pIE.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
4
2
  import './breakpoints-BQ3HlJPr.js';
5
3
  import { d as debounce } from './debounce-C9hMpmsD.js';
6
4
  import { n as nanoid } from './nanoid-8LXe8Zt_.js';
5
+ import { v as version } from './package-CdhbouMD.js';
6
+ import { T as Type } from './type-icZlikjf.js';
7
+ import { R as Required } from './required-DhBxDSbP.js';
8
+ import './create-validator-decorator-BNkS_yAb.js';
7
9
 
8
- const postPaginationCss = () => `.btn{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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash)}.btn{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}.btn: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){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn: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){.btn: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){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg);color:var(--post-scheme-color-interactive-button-primary-disabled-fg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}.btn-default{box-shadow:var(--post-device-elevation-100);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)}.btn-default: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)}.btn-default:not(:disabled):hover,.btn-default.pretend-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)}.btn-secondary{box-shadow:var(--post-device-elevation-100);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)}.btn-secondary: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)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-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)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.pagination{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;padding:var(--post-device-spacing-padding-15);overflow:hidden}.pagination-list{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-4);min-width:0;max-width:100%;margin:0;padding:0;list-style:none;flex-wrap:nowrap}.pagination-list .pagination-control:first-child{margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-list .pagination-control:last-child{margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-item{display:flex;align-items:center;margin:0;padding:0;flex-shrink:0;flex-grow:0}.pagination-ellipsis,.pagination-link,.pagination-ellipsis-content{display:flex;align-items:center;justify-content:center}.pagination-link,.pagination-ellipsis-content{width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-width:var(--post-device-sizing-interactive-button-height-1);font-size:var(--post-device-font-size-6);color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-weight:var(--post-device-font-weight-bold)}.pagination-link{box-sizing:border-box;padding:0;margin:0;font-weight:var(--post-device-font-weight-bold);text-decoration:none;background-color:var(--post-scheme-color-interactive-primary-enabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke5);border-radius:var(--post-device-border-radius-round);cursor:pointer;appearance:none;outline:none;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.pagination-link{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}.pagination-link: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){.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.pagination-link: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){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.pagination-link:active:not(.pagination-link-active),.pagination-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);background-color:var(--post-scheme-color-interactive-primary-hover-bg5);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.pagination-link.pagination-link-active{color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1);cursor:default}.pagination-ellipsis{flex-shrink:0;flex-grow:0}.pagination-ellipsis-content{user-select:none}.hidden-items{position:absolute;display:flex;gap:var(--post-device-spacing-gap-11);height:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
10
+ const postPaginationCss = () => `.btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{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}.btn: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){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn: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){.btn: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){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{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)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-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)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{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)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-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)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.pagination{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;padding:var(--post-device-spacing-padding-15);overflow:hidden}.pagination-list{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-4);min-width:0;max-width:100%;margin:0;padding:0;list-style:none;flex-wrap:nowrap}.pagination-list .pagination-control:first-child{margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-list .pagination-control:last-child{margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-item{display:flex;align-items:center;margin:0;padding:0;flex-shrink:0;flex-grow:0}.pagination-ellipsis,.pagination-link,.pagination-ellipsis-content{display:flex;align-items:center;justify-content:center}.pagination-link,.pagination-ellipsis-content{width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-width:var(--post-device-sizing-interactive-button-height-1);font-size:var(--post-device-font-size-6);color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-weight:var(--post-device-font-weight-bold)}.pagination-link{box-sizing:border-box;padding:0;margin:0;font-weight:var(--post-device-font-weight-bold);text-decoration:none;background-color:var(--post-scheme-color-interactive-primary-enabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke5);border-radius:var(--post-device-border-radius-round);cursor:pointer;appearance:none;outline:none;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.pagination-link{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}.pagination-link: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){.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.pagination-link: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){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.pagination-link:active:not(.pagination-link-active),.pagination-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);background-color:var(--post-scheme-color-interactive-primary-hover-bg5);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.pagination-link.pagination-link-active{color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1);cursor:default}.pagination-ellipsis{flex-shrink:0;flex-grow:0}.pagination-ellipsis-content{user-select:none}.hidden-items{position:absolute;display:flex;gap:var(--post-device-spacing-gap-11);height:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
9
11
 
12
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
13
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
15
+ r = Reflect.decorate(decorators, target, key, desc);
16
+ else
17
+ for (var i = decorators.length - 1; i >= 0; i--)
18
+ if (d = decorators[i])
19
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
20
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
21
+ };
10
22
  const ELLIPSIS = '...';
11
23
  const MEASUREMENT_DEBOUNCE_MS = 50;
12
24
  const RESIZE_DEBOUNCE_MS = 150;
@@ -19,54 +31,31 @@ const PostPagination = class {
19
31
  constructor(hostRef) {
20
32
  registerInstance(this, hostRef);
21
33
  this.postChange = createEvent(this, "postChange");
34
+ this.maxVisiblePages = 3;
22
35
  this.items = [];
36
+ /**
37
+ * The current active page number.
38
+ *
39
+ * **If not specified, defaults to the first page.**
40
+ */
41
+ this.page = 1;
23
42
  this.lastWindowWidth = window.innerWidth;
24
43
  this.loaded = false;
25
44
  this.debouncedResize = debounce(this.handleResizeInternal.bind(this), RESIZE_DEBOUNCE_MS);
26
45
  this.measurementTimeoutId = null;
27
46
  }
28
- validatePage() {
29
- this.validateProp('page', 'number', false);
30
- }
31
- validatePageSize() {
32
- this.validateProp('pageSize', 'number', true);
33
- }
34
- validateCollectionSize() {
35
- this.validateProp('collectionSize', 'number', true);
36
- }
37
- validateLabel() {
38
- this.validateProp('label', 'string', true);
39
- }
40
- validateTextPrevious() {
41
- this.validateProp('textPrevious', 'string', true);
42
- }
43
- validateTextNext() {
44
- this.validateProp('textNext', 'string', true);
45
- }
46
- validateTextPage() {
47
- this.validateProp('textPage', 'string', true);
48
- }
49
- validateTextFirst() {
50
- this.validateProp('textFirst', 'string', true);
51
- }
52
- validateTextLast() {
53
- this.validateProp('textLast', 'string', true);
54
- }
55
47
  handlePropsChange() {
56
48
  this.updatePagesWithValidation();
57
49
  }
58
50
  componentWillLoad() {
59
51
  this.paginationId = `pagination-${this.host.id || nanoid(6)}`;
60
- if (this.page == null) {
61
- this.page = 1;
62
- }
52
+ this.updatePagesWithValidation();
63
53
  }
64
54
  connectedCallback() {
65
55
  window.addEventListener('resize', this.debouncedResize);
66
56
  }
67
57
  componentDidLoad() {
68
58
  this.loaded = true;
69
- this.runAllValidations();
70
59
  this.scheduleMeasurement();
71
60
  }
72
61
  disconnectedCallback() {
@@ -77,31 +66,6 @@ const PostPagination = class {
77
66
  this.measurementTimeoutId = null;
78
67
  }
79
68
  }
80
- /**
81
- * Validate a prop with the appropriate check function
82
- */
83
- validateProp(propName, type, required = true) {
84
- if (required) {
85
- checkRequiredAndType(this, propName, type);
86
- }
87
- else {
88
- checkEmptyOrType(this, propName, type);
89
- }
90
- }
91
- /**
92
- * Run all prop validations
93
- */
94
- runAllValidations() {
95
- this.validateProp('page', 'number', false);
96
- this.validateProp('pageSize', 'number', true);
97
- this.validateProp('collectionSize', 'number', true);
98
- this.validateProp('label', 'string', true);
99
- this.validateProp('textPrevious', 'string', true);
100
- this.validateProp('textNext', 'string', true);
101
- this.validateProp('textPage', 'string', true);
102
- this.validateProp('textFirst', 'string', true);
103
- this.validateProp('textLast', 'string', true);
104
- }
105
69
  /**
106
70
  * Schedule measurement attempt with timeout
107
71
  */
@@ -442,7 +406,7 @@ const PostPagination = class {
442
406
  */
443
407
  generatePages(totalPages) {
444
408
  const maxVisible = this.maxVisiblePages;
445
- const currentPage = this.page || 1;
409
+ const currentPage = this.page;
446
410
  if (totalPages <= maxVisible) {
447
411
  this.items = this.buildAllPages(totalPages);
448
412
  return;
@@ -565,40 +529,51 @@ const PostPagination = class {
565
529
  get host() { return getElement(this); }
566
530
  static get watchers() { return {
567
531
  "page": [{
568
- "validatePage": 0
569
- }, {
570
532
  "handlePropsChange": 0
571
533
  }],
572
534
  "pageSize": [{
573
- "validatePageSize": 0
574
- }, {
575
535
  "handlePropsChange": 0
576
536
  }],
577
537
  "collectionSize": [{
578
- "validateCollectionSize": 0
579
- }, {
580
538
  "handlePropsChange": 0
581
- }],
582
- "label": [{
583
- "validateLabel": 0
584
- }],
585
- "textPrevious": [{
586
- "validateTextPrevious": 0
587
- }],
588
- "textNext": [{
589
- "validateTextNext": 0
590
- }],
591
- "textPage": [{
592
- "validateTextPage": 0
593
- }],
594
- "textFirst": [{
595
- "validateTextFirst": 0
596
- }],
597
- "textLast": [{
598
- "validateTextLast": 0
599
539
  }]
600
540
  }; }
601
541
  };
542
+ __decorate([
543
+ Type('number')
544
+ ], PostPagination.prototype, "page", void 0);
545
+ __decorate([
546
+ Required(),
547
+ Type('number')
548
+ ], PostPagination.prototype, "pageSize", void 0);
549
+ __decorate([
550
+ Required(),
551
+ Type('number')
552
+ ], PostPagination.prototype, "collectionSize", void 0);
553
+ __decorate([
554
+ Required(),
555
+ Type('string')
556
+ ], PostPagination.prototype, "label", void 0);
557
+ __decorate([
558
+ Required(),
559
+ Type('string')
560
+ ], PostPagination.prototype, "textPrevious", void 0);
561
+ __decorate([
562
+ Required(),
563
+ Type('string')
564
+ ], PostPagination.prototype, "textNext", void 0);
565
+ __decorate([
566
+ Required(),
567
+ Type('string')
568
+ ], PostPagination.prototype, "textPage", void 0);
569
+ __decorate([
570
+ Required(),
571
+ Type('string')
572
+ ], PostPagination.prototype, "textFirst", void 0);
573
+ __decorate([
574
+ Required(),
575
+ Type('string')
576
+ ], PostPagination.prototype, "textLast", void 0);
602
577
  PostPagination.style = postPaginationCss();
603
578
 
604
579
  export { PostPagination as post_pagination };
@@ -1,12 +1,23 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DmBWUef5.js';
2
- import { v as version } from './package-x3kxyWSZ.js';
3
- import { i as isFocusable } from './focusable-C7afHKmo.js';
4
- import { b as checkEmptyOrType } from './index-D9bU2pIE.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BGeKgZqi.js';
5
2
  import './breakpoints-BQ3HlJPr.js';
3
+ import { v as version } from './package-CdhbouMD.js';
4
+ import { i as isFocusable } from './focusable-C7afHKmo.js';
5
+ import { T as Type } from './type-icZlikjf.js';
6
6
  import './_commonjsHelpers-BFTU3MAI.js';
7
+ import './create-validator-decorator-BNkS_yAb.js';
7
8
 
8
9
  const postPopoverTriggerCss = () => `:host{cursor:pointer}`;
9
10
 
11
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
14
+ r = Reflect.decorate(decorators, target, key, desc);
15
+ else
16
+ for (var i = decorators.length - 1; i >= 0; i--)
17
+ if (d = decorators[i])
18
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
19
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
20
+ };
10
21
  const PostPopoverTrigger = class {
11
22
  syncAriaExpanded(newValue) {
12
23
  this.ariaExpanded = newValue;
@@ -14,13 +25,6 @@ const PostPopoverTrigger = class {
14
25
  this.trigger.setAttribute('aria-expanded', String(newValue));
15
26
  }
16
27
  }
17
- /**
18
- * Watch for changes to the `for` property to validate its type and ensure it is a string.
19
- * @param forValue - The new value of the `for` property.
20
- */
21
- validateFor() {
22
- checkEmptyOrType(this, 'for', 'string');
23
- }
24
28
  hasAriaControlsElements(el) {
25
29
  return 'ariaControlsElements' in el;
26
30
  }
@@ -101,7 +105,6 @@ const PostPopoverTrigger = class {
101
105
  };
102
106
  }
103
107
  componentDidLoad() {
104
- this.validateFor();
105
108
  this.setupTrigger();
106
109
  this.popover?.addEventListener('postToggle', this.boundHandlePostToggle);
107
110
  }
@@ -111,18 +114,18 @@ const PostPopoverTrigger = class {
111
114
  this.popover?.removeEventListener('postToggle', this.boundHandlePostToggle);
112
115
  }
113
116
  render() {
114
- return (h(Host, { key: 'b439e93193ac8e1e7cdceb5b0dcd59de6659400c', "data-version": version }, h("slot", { key: '3a4e192ec9656f2a4b4c69f8d9c8589d770f50b8', onSlotchange: () => this.setupTrigger() })));
117
+ return (h(Host, { key: '999ec824514eb6e340fd607ce03d82c76354e102', "data-version": version }, h("slot", { key: '3429ab6e44441c2660c14c40436682b5ac49a1b6', onSlotchange: () => this.setupTrigger() })));
115
118
  }
116
119
  get host() { return getElement(this); }
117
120
  static get watchers() { return {
118
121
  "popoverOpen": [{
119
122
  "syncAriaExpanded": 0
120
- }],
121
- "for": [{
122
- "validateFor": 0
123
123
  }]
124
124
  }; }
125
125
  };
126
+ __decorate([
127
+ Type('string')
128
+ ], PostPopoverTrigger.prototype, "for", void 0);
126
129
  PostPopoverTrigger.style = postPopoverTriggerCss();
127
130
 
128
131
  export { PostPopoverTrigger as post_popover_trigger };