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

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 (390) hide show
  1. package/dist/cjs/create-validator-decorator-Bnx17kwi.js +223 -0
  2. package/dist/cjs/{index-CCteMCnR.js → index-ngUOBQot.js} +5 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/one-of-BHyX4vYq.js +27 -0
  5. package/dist/cjs/{package-CscM89A7.js → package-Bi-tiNRc.js} +1 -1
  6. package/dist/cjs/pattern-BgBx5zGQ.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 +8 -13
  12. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +33 -23
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
  14. package/dist/cjs/post-closebutton_14.cjs.entry.js +238 -272
  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 +140 -138
  18. package/dist/cjs/post-footer.cjs.entry.js +24 -17
  19. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  20. package/dist/cjs/post-listbox-option.cjs.entry.js +2 -2
  21. package/dist/cjs/post-listbox.cjs.entry.js +3 -5
  22. package/dist/cjs/post-login-widget.cjs.entry.js +28 -29
  23. package/dist/cjs/post-number-input.cjs.entry.js +2 -2
  24. package/dist/cjs/post-pagination.cjs.entry.js +50 -80
  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-stepper-item.cjs.entry.js +3 -3
  30. package/dist/cjs/post-stepper.cjs.entry.js +48 -37
  31. package/dist/cjs/post-tab-item.cjs.entry.js +20 -12
  32. package/dist/cjs/post-tab-panel.cjs.entry.js +20 -13
  33. package/dist/cjs/post-tabs.cjs.entry.js +21 -7
  34. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +21 -12
  35. package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
  36. package/dist/cjs/required-lRDOdbd6.js +44 -0
  37. package/dist/cjs/type-shT641Eo.js +30 -0
  38. package/dist/cjs/url-DRUMqVBq.js +34 -0
  39. package/dist/collection/collection-manifest.json +1 -0
  40. package/dist/collection/components/post-accordion/post-accordion.js +11 -8
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -17
  42. package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
  43. package/dist/collection/components/post-avatar/post-avatar.js +27 -33
  44. package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
  45. package/dist/collection/components/post-banner/post-banner.js +7 -14
  46. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +27 -22
  47. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -34
  48. package/dist/collection/components/post-closebutton/post-closebutton.js +24 -27
  49. package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
  50. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
  51. package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
  52. package/dist/collection/components/post-footer/post-footer.js +17 -13
  53. package/dist/collection/components/post-header/post-header.js +18 -24
  54. package/dist/collection/components/post-icon/post-icon.js +34 -47
  55. package/dist/collection/components/post-language-menu/post-language-menu.js +15 -20
  56. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
  57. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  58. package/dist/collection/components/post-listbox/post-listbox.js +3 -5
  59. package/dist/collection/components/post-listbox-option/post-listbox-option.js +1 -1
  60. package/dist/collection/components/post-login-widget/post-login-widget.js +25 -29
  61. package/dist/collection/components/post-logo/post-logo.js +16 -13
  62. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
  63. package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
  64. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
  65. package/dist/collection/components/post-menu/post-menu.js +10 -23
  66. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
  67. package/dist/collection/components/post-number-input/post-number-input.js +3 -3
  68. package/dist/collection/components/post-pagination/post-pagination.js +47 -82
  69. package/dist/collection/components/post-popover/post-popover.js +20 -22
  70. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
  71. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +25 -30
  72. package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
  73. package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
  74. package/dist/collection/components/post-rating/post-rating.js +25 -29
  75. package/dist/collection/components/post-stepper/post-stepper.js +44 -36
  76. package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
  77. package/dist/collection/components/post-tab-item/post-tab-item.js +17 -12
  78. package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -13
  79. package/dist/collection/components/post-tabs/post-tabs.js +20 -7
  80. package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
  81. package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
  82. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +17 -12
  83. package/dist/collection/utils/index.js +3 -4
  84. package/dist/collection/utils/is-value-empty.js +1 -1
  85. package/dist/collection/utils/property-decorators/bound.js +75 -0
  86. package/dist/collection/utils/property-decorators/create-validator-decorator.js +24 -0
  87. package/dist/collection/utils/property-decorators/index.js +1 -1
  88. package/dist/collection/utils/property-decorators/required.js +19 -3
  89. package/dist/component-names.json +1 -0
  90. package/dist/components/breakpoints.js +1 -1
  91. package/dist/components/index.d.ts +2 -0
  92. package/dist/components/index.js +1 -1
  93. package/dist/components/one-of.js +1 -0
  94. package/dist/components/package.js +1 -1
  95. package/dist/components/pattern.js +1 -0
  96. package/dist/components/post-accordion-item2.js +1 -1
  97. package/dist/components/post-accordion2.js +1 -1
  98. package/dist/components/post-autocomplete.js +1 -1
  99. package/dist/components/post-avatar2.js +1 -1
  100. package/dist/components/post-back-to-top.js +1 -1
  101. package/dist/components/post-banner.js +1 -1
  102. package/dist/components/post-breadcrumb-item.js +1 -1
  103. package/dist/components/post-breadcrumbs.js +1 -1
  104. package/dist/components/post-closebutton2.js +1 -1
  105. package/dist/components/post-collapsible-trigger2.js +1 -1
  106. package/dist/components/post-collapsible2.js +1 -1
  107. package/dist/components/post-date-picker.js +1 -1
  108. package/dist/components/post-footer.js +1 -1
  109. package/dist/components/post-header.js +1 -1
  110. package/dist/components/post-icon2.js +1 -1
  111. package/dist/components/post-language-menu-item.js +1 -1
  112. package/dist/components/post-language-menu.js +1 -1
  113. package/dist/components/post-listbox.js +1 -1
  114. package/dist/components/post-login-widget.js +1 -1
  115. package/dist/components/post-logo.js +1 -1
  116. package/dist/components/post-mainnavigation.js +1 -1
  117. package/dist/components/post-megadropdown-trigger.js +1 -1
  118. package/dist/components/post-megadropdown.js +1 -1
  119. package/dist/components/post-menu-trigger2.js +1 -1
  120. package/dist/components/post-menu2.js +1 -1
  121. package/dist/components/post-pagination.js +1 -1
  122. package/dist/components/post-popover-trigger.js +1 -1
  123. package/dist/components/post-popover.js +1 -1
  124. package/dist/components/post-popovercontainer2.js +1 -1
  125. package/dist/components/post-progressbar.d.ts +11 -0
  126. package/dist/components/post-progressbar.js +1 -0
  127. package/dist/components/post-rating.js +1 -1
  128. package/dist/components/post-stepper-item.js +1 -1
  129. package/dist/components/post-stepper.js +1 -1
  130. package/dist/components/post-tab-item.js +1 -1
  131. package/dist/components/post-tab-panel.js +1 -1
  132. package/dist/components/post-tabs.js +1 -1
  133. package/dist/components/post-togglebutton2.js +1 -1
  134. package/dist/components/post-tooltip-trigger.js +1 -1
  135. package/dist/components/post-tooltip.js +1 -1
  136. package/dist/components/react/index.js +1 -1
  137. package/dist/components/react/p-4wtxqxXu.js +1 -0
  138. package/dist/components/react/{p-DPKR_4uI.js → p-85IGlhtB.js} +1 -1
  139. package/dist/components/react/p-B9ZFuYey.js +1 -0
  140. package/dist/components/react/p-BXqGI600.js +1 -0
  141. package/dist/components/react/p-BZSAV0-K.js +1 -0
  142. package/dist/components/react/p-B_WnO-QF.js +1 -0
  143. package/dist/components/react/p-BaB8wJvk.js +1 -0
  144. package/dist/components/react/p-Bg9dtyzK.js +1 -0
  145. package/dist/components/react/p-Bji_4dfL.js +1 -0
  146. package/dist/components/react/p-Bn66acGG.js +1 -0
  147. package/dist/components/react/p-Bu2JeHDf.js +1 -0
  148. package/dist/components/react/p-BxoRVIIr.js +1 -0
  149. package/dist/components/react/p-CX2E_IXB.js +1 -0
  150. package/dist/components/react/p-Cd1TsNm7.js +1 -0
  151. package/dist/components/react/p-CkTAQJGd.js +1 -0
  152. package/dist/components/react/p-ClG-N42b.js +1 -0
  153. package/dist/components/react/p-D1zw8FxT.js +1 -0
  154. package/dist/components/react/p-DwuW52g5.js +1 -0
  155. package/dist/components/react/{p-BC0-M_SK.js → p-PM7l--ff.js} +1 -1
  156. package/dist/components/react/post-accordion-item.js +1 -1
  157. package/dist/components/react/post-accordion.js +1 -1
  158. package/dist/components/react/post-autocomplete.js +1 -1
  159. package/dist/components/react/post-avatar.js +1 -1
  160. package/dist/components/react/post-back-to-top.js +1 -1
  161. package/dist/components/react/post-banner.js +1 -1
  162. package/dist/components/react/post-breadcrumb-item.js +1 -1
  163. package/dist/components/react/post-breadcrumbs.js +1 -1
  164. package/dist/components/react/post-closebutton.js +1 -1
  165. package/dist/components/react/post-collapsible-trigger.js +1 -1
  166. package/dist/components/react/post-collapsible.js +1 -1
  167. package/dist/components/react/post-date-picker.js +1 -1
  168. package/dist/components/react/post-footer.js +1 -1
  169. package/dist/components/react/post-header.js +1 -1
  170. package/dist/components/react/post-icon.js +1 -1
  171. package/dist/components/react/post-language-menu-item.js +1 -1
  172. package/dist/components/react/post-language-menu.js +1 -1
  173. package/dist/components/react/post-linkarea.js +1 -1
  174. package/dist/components/react/post-listbox-option.js +1 -1
  175. package/dist/components/react/post-listbox.js +1 -1
  176. package/dist/components/react/post-login-widget.js +1 -1
  177. package/dist/components/react/post-logo.js +1 -1
  178. package/dist/components/react/post-mainnavigation.js +1 -1
  179. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  180. package/dist/components/react/post-megadropdown.js +1 -1
  181. package/dist/components/react/post-menu-item.js +1 -1
  182. package/dist/components/react/post-menu-trigger.js +1 -1
  183. package/dist/components/react/post-menu.js +1 -1
  184. package/dist/components/react/post-number-input.js +1 -1
  185. package/dist/components/react/post-pagination.js +1 -1
  186. package/dist/components/react/post-popover-trigger.js +1 -1
  187. package/dist/components/react/post-popover.js +1 -1
  188. package/dist/components/react/post-popovercontainer.js +1 -1
  189. package/dist/components/react/post-progressbar.d.ts +11 -0
  190. package/dist/components/react/post-progressbar.js +1 -0
  191. package/dist/components/react/post-rating.js +1 -1
  192. package/dist/components/react/post-stepper-item.js +1 -1
  193. package/dist/components/react/post-stepper.js +1 -1
  194. package/dist/components/react/post-tab-item.js +1 -1
  195. package/dist/components/react/post-tab-panel.js +1 -1
  196. package/dist/components/react/post-tabs.js +1 -1
  197. package/dist/components/react/post-togglebutton.js +1 -1
  198. package/dist/components/react/post-tooltip-trigger.js +1 -1
  199. package/dist/components/react/post-tooltip.js +1 -1
  200. package/dist/components/required.js +1 -0
  201. package/dist/components/type.js +1 -0
  202. package/dist/components/url.js +1 -0
  203. package/dist/docs.json +106 -4
  204. package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
  205. package/dist/esm/{index-DmBWUef5.js → index-BbDawWJ5.js} +5 -1
  206. package/dist/esm/loader.js +3 -3
  207. package/dist/esm/one-of-GPr3FflU.js +25 -0
  208. package/dist/esm/package-ClG-N42b.js +3 -0
  209. package/dist/esm/pattern-BWPRYpYv.js +25 -0
  210. package/dist/esm/post-accordion_2.entry.js +15 -21
  211. package/dist/esm/post-autocomplete.entry.js +26 -13
  212. package/dist/esm/post-avatar.entry.js +30 -33
  213. package/dist/esm/post-back-to-top.entry.js +20 -11
  214. package/dist/esm/post-banner.entry.js +8 -13
  215. package/dist/esm/post-breadcrumb-item.entry.js +33 -23
  216. package/dist/esm/post-breadcrumbs.entry.js +33 -34
  217. package/dist/esm/post-closebutton_14.entry.js +238 -272
  218. package/dist/esm/post-collapsible_2.entry.js +56 -39
  219. package/dist/esm/post-components.js +3 -3
  220. package/dist/esm/post-date-picker.entry.js +140 -138
  221. package/dist/esm/post-footer.entry.js +20 -13
  222. package/dist/esm/post-linkarea.entry.js +2 -2
  223. package/dist/esm/post-listbox-option.entry.js +2 -2
  224. package/dist/esm/post-listbox.entry.js +3 -5
  225. package/dist/esm/post-login-widget.entry.js +28 -29
  226. package/dist/esm/post-number-input.entry.js +2 -2
  227. package/dist/esm/post-pagination.entry.js +50 -80
  228. package/dist/esm/post-popover-trigger.entry.js +19 -16
  229. package/dist/esm/post-popover.entry.js +24 -22
  230. package/dist/esm/post-progressbar.entry.js +145 -0
  231. package/dist/esm/post-rating.entry.js +28 -29
  232. package/dist/esm/post-stepper-item.entry.js +3 -3
  233. package/dist/esm/post-stepper.entry.js +48 -37
  234. package/dist/esm/post-tab-item.entry.js +20 -12
  235. package/dist/esm/post-tab-panel.entry.js +20 -13
  236. package/dist/esm/post-tabs.entry.js +21 -7
  237. package/dist/esm/post-tooltip-trigger.entry.js +21 -12
  238. package/dist/esm/post-tooltip.entry.js +19 -16
  239. package/dist/esm/required-uK-rZZjy.js +42 -0
  240. package/dist/esm/type-obmwEgkM.js +28 -0
  241. package/dist/esm/url-B28ByZCe.js +32 -0
  242. package/dist/post-components/p-00f55af5.entry.js +1 -0
  243. package/dist/post-components/p-0288484f.entry.js +1 -0
  244. package/dist/post-components/p-07cdd022.entry.js +1 -0
  245. package/dist/post-components/{p-08a0e8e9.entry.js → p-12047216.entry.js} +1 -1
  246. package/dist/post-components/p-17df4e91.entry.js +1 -0
  247. package/dist/post-components/p-17e046fa.entry.js +1 -0
  248. package/dist/post-components/p-29bd31a0.entry.js +1 -0
  249. package/dist/post-components/p-2c6b4e6a.entry.js +1 -0
  250. package/dist/post-components/p-3b05e01d.entry.js +1 -0
  251. package/dist/post-components/p-53fd5230.entry.js +1 -0
  252. package/dist/post-components/p-5b7e6369.entry.js +1 -0
  253. package/dist/post-components/p-5f4ca179.entry.js +1 -0
  254. package/dist/post-components/p-62b6154a.entry.js +1 -0
  255. package/dist/post-components/{p-4b445a35.entry.js → p-686a6e22.entry.js} +1 -1
  256. package/dist/post-components/p-758fc84f.entry.js +1 -0
  257. package/dist/post-components/{p-bab0f27f.entry.js → p-7f929bb9.entry.js} +1 -1
  258. package/dist/post-components/p-9865f72c.entry.js +1 -0
  259. package/dist/post-components/p-99803d57.entry.js +1 -0
  260. package/dist/post-components/p-BRNqUiXj.js +1 -0
  261. package/dist/post-components/p-BbDawWJ5.js +2 -0
  262. package/dist/post-components/p-CVsNfXZd.js +1 -0
  263. package/dist/post-components/p-Ck2qPht6.js +1 -0
  264. package/dist/post-components/p-ClG-N42b.js +1 -0
  265. package/dist/post-components/p-D4F0BqBW.js +1 -0
  266. package/dist/post-components/p-DSNGJB58.js +1 -0
  267. package/dist/post-components/p-IUnDBhPg.js +1 -0
  268. package/dist/post-components/p-a0e0a760.entry.js +1 -0
  269. package/dist/post-components/p-a850652d.entry.js +1 -0
  270. package/dist/post-components/p-aac1a8ea.entry.js +1 -0
  271. package/dist/post-components/{p-39143e19.entry.js → p-b3f0f9a2.entry.js} +1 -1
  272. package/dist/post-components/p-c37dba4b.entry.js +1 -0
  273. package/dist/post-components/p-d061773b.entry.js +1 -0
  274. package/dist/post-components/p-e2370e94.entry.js +1 -0
  275. package/dist/post-components/p-f1ca1d3f.entry.js +1 -0
  276. package/dist/post-components/p-f2e5f44e.entry.js +1 -0
  277. package/dist/post-components/p-ff98ada4.entry.js +1 -0
  278. package/dist/post-components/post-components.css +1 -1
  279. package/dist/post-components/post-components.esm.js +1 -1
  280. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  281. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
  282. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
  283. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -5
  284. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
  285. package/dist/types/components/post-banner/post-banner.d.ts +0 -1
  286. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -3
  287. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +0 -4
  288. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -3
  289. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
  290. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
  291. package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
  292. package/dist/types/components/post-footer/post-footer.d.ts +0 -1
  293. package/dist/types/components/post-header/post-header.d.ts +0 -2
  294. package/dist/types/components/post-icon/post-icon.d.ts +0 -6
  295. package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
  296. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
  297. package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -4
  298. package/dist/types/components/post-logo/post-logo.d.ts +0 -1
  299. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  300. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
  301. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
  302. package/dist/types/components/post-menu/post-menu.d.ts +1 -4
  303. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
  304. package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
  305. package/dist/types/components/post-popover/post-popover.d.ts +1 -4
  306. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
  307. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
  308. package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
  309. package/dist/types/components/post-rating/post-rating.d.ts +0 -4
  310. package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
  311. package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
  312. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
  313. package/dist/types/components/post-tooltip/post-tooltip.d.ts +0 -2
  314. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
  315. package/dist/types/components.d.ts +51 -5
  316. package/dist/types/utils/index.d.ts +3 -4
  317. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  318. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +5 -0
  319. package/dist/types/utils/property-decorators/index.d.ts +1 -1
  320. package/dist/types/utils/property-decorators/required.d.ts +10 -1
  321. package/hydrate/index.js +1310 -926
  322. package/hydrate/index.mjs +1310 -926
  323. package/package.json +4 -4
  324. package/dist/cjs/index-qCzRmwgB.js +0 -114
  325. package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
  326. package/dist/collection/utils/property-checkers/check-date.js +0 -13
  327. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
  328. package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
  329. package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
  330. package/dist/collection/utils/property-checkers/check-type.js +0 -15
  331. package/dist/collection/utils/property-checkers/check-url.js +0 -15
  332. package/dist/collection/utils/property-checkers/constants.js +0 -1
  333. package/dist/collection/utils/property-checkers/empty-or.js +0 -9
  334. package/dist/collection/utils/property-checkers/index.js +0 -20
  335. package/dist/collection/utils/property-checkers/required-and.js +0 -14
  336. package/dist/components/heading-levels.js +0 -1
  337. package/dist/components/index2.js +0 -1
  338. package/dist/components/react/p-BQ3HlJPr.js +0 -1
  339. package/dist/components/react/p-C7s9oglQ.js +0 -1
  340. package/dist/components/react/p-CTgZ8DGr.js +0 -1
  341. package/dist/components/react/p-CVtlwDsT.js +0 -1
  342. package/dist/components/react/p-CaLwTf3T.js +0 -1
  343. package/dist/components/react/p-ClJyTIVM.js +0 -1
  344. package/dist/components/react/p-DGr-hfLq.js +0 -1
  345. package/dist/components/react/p-DJxdj9pa.js +0 -1
  346. package/dist/components/react/p-DKDEtjQe.js +0 -1
  347. package/dist/components/react/p-DcEDGaFs.js +0 -1
  348. package/dist/components/react/p-DipfA69b.js +0 -1
  349. package/dist/components/react/p-DwZxAC2u.js +0 -1
  350. package/dist/components/react/p-r4txK0AC.js +0 -1
  351. package/dist/components/react/p-x3kxyWSZ.js +0 -1
  352. package/dist/esm/index-D9bU2pIE.js +0 -104
  353. package/dist/esm/package-x3kxyWSZ.js +0 -3
  354. package/dist/post-components/p-1583817b.entry.js +0 -1
  355. package/dist/post-components/p-203d9abd.entry.js +0 -1
  356. package/dist/post-components/p-2c68af27.entry.js +0 -1
  357. package/dist/post-components/p-46dd9e7e.entry.js +0 -1
  358. package/dist/post-components/p-53a8cce5.entry.js +0 -1
  359. package/dist/post-components/p-72bff1fc.entry.js +0 -1
  360. package/dist/post-components/p-75045028.entry.js +0 -1
  361. package/dist/post-components/p-768b4516.entry.js +0 -1
  362. package/dist/post-components/p-7e072450.entry.js +0 -1
  363. package/dist/post-components/p-83cb6424.entry.js +0 -1
  364. package/dist/post-components/p-94f4da57.entry.js +0 -1
  365. package/dist/post-components/p-9dace750.entry.js +0 -1
  366. package/dist/post-components/p-9ea7e46f.entry.js +0 -1
  367. package/dist/post-components/p-D9bU2pIE.js +0 -1
  368. package/dist/post-components/p-DmBWUef5.js +0 -2
  369. package/dist/post-components/p-a0ac814c.entry.js +0 -1
  370. package/dist/post-components/p-a0d12ca8.entry.js +0 -1
  371. package/dist/post-components/p-cb039d66.entry.js +0 -1
  372. package/dist/post-components/p-e8cda4e1.entry.js +0 -1
  373. package/dist/post-components/p-e8e50d5c.entry.js +0 -1
  374. package/dist/post-components/p-eb64ec1d.entry.js +0 -1
  375. package/dist/post-components/p-f0746a9e.entry.js +0 -1
  376. package/dist/post-components/p-f5e33714.entry.js +0 -1
  377. package/dist/post-components/p-f93ce33d.entry.js +0 -1
  378. package/dist/post-components/p-fd0446b2.entry.js +0 -1
  379. package/dist/post-components/p-x3kxyWSZ.js +0 -1
  380. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
  381. package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
  382. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
  383. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
  384. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
  385. package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
  386. package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
  387. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  388. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
  389. package/dist/types/utils/property-checkers/index.d.ts +0 -34
  390. package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
@@ -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-BbDawWJ5.js';
4
2
  import './breakpoints-BQ3HlJPr.js';
3
+ import { v as version } from './package-ClG-N42b.js';
4
+ import { R as Required } from './required-uK-rZZjy.js';
5
+ import { T as Type } from './type-obmwEgkM.js';
6
+ import './create-validator-decorator-D8qwF5Qe.js';
5
7
 
6
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-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}`;
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: '4aeda818bbda67c88aa188ac3bbb8f0377a5050e', "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-BbDawWJ5.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-ClG-N42b.js';
4
4
 
5
5
  function getSlottedElement(host, selector) {
6
6
  const slottedElements = host.querySelectorAll(selector);
@@ -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-BbDawWJ5.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-ClG-N42b.js';
6
+ import { T as Type } from './type-obmwEgkM.js';
7
+ import { R as Required } from './required-uK-rZZjy.js';
8
+ import './create-validator-decorator-D8qwF5Qe.js';
7
9
 
8
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-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}`;
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;
@@ -25,33 +37,6 @@ const PostPagination = class {
25
37
  this.debouncedResize = debounce(this.handleResizeInternal.bind(this), RESIZE_DEBOUNCE_MS);
26
38
  this.measurementTimeoutId = null;
27
39
  }
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
40
  handlePropsChange() {
56
41
  this.updatePagesWithValidation();
57
42
  }
@@ -66,7 +51,6 @@ const PostPagination = class {
66
51
  }
67
52
  componentDidLoad() {
68
53
  this.loaded = true;
69
- this.runAllValidations();
70
54
  this.scheduleMeasurement();
71
55
  }
72
56
  disconnectedCallback() {
@@ -77,31 +61,6 @@ const PostPagination = class {
77
61
  this.measurementTimeoutId = null;
78
62
  }
79
63
  }
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
64
  /**
106
65
  * Schedule measurement attempt with timeout
107
66
  */
@@ -565,40 +524,51 @@ const PostPagination = class {
565
524
  get host() { return getElement(this); }
566
525
  static get watchers() { return {
567
526
  "page": [{
568
- "validatePage": 0
569
- }, {
570
527
  "handlePropsChange": 0
571
528
  }],
572
529
  "pageSize": [{
573
- "validatePageSize": 0
574
- }, {
575
530
  "handlePropsChange": 0
576
531
  }],
577
532
  "collectionSize": [{
578
- "validateCollectionSize": 0
579
- }, {
580
533
  "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
534
  }]
600
535
  }; }
601
536
  };
537
+ __decorate([
538
+ Type('number')
539
+ ], PostPagination.prototype, "page", void 0);
540
+ __decorate([
541
+ Required(),
542
+ Type('number')
543
+ ], PostPagination.prototype, "pageSize", void 0);
544
+ __decorate([
545
+ Required(),
546
+ Type('number')
547
+ ], PostPagination.prototype, "collectionSize", void 0);
548
+ __decorate([
549
+ Required(),
550
+ Type('string')
551
+ ], PostPagination.prototype, "label", void 0);
552
+ __decorate([
553
+ Required(),
554
+ Type('string')
555
+ ], PostPagination.prototype, "textPrevious", void 0);
556
+ __decorate([
557
+ Required(),
558
+ Type('string')
559
+ ], PostPagination.prototype, "textNext", void 0);
560
+ __decorate([
561
+ Required(),
562
+ Type('string')
563
+ ], PostPagination.prototype, "textPage", void 0);
564
+ __decorate([
565
+ Required(),
566
+ Type('string')
567
+ ], PostPagination.prototype, "textFirst", void 0);
568
+ __decorate([
569
+ Required(),
570
+ Type('string')
571
+ ], PostPagination.prototype, "textLast", void 0);
602
572
  PostPagination.style = postPaginationCss();
603
573
 
604
574
  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-BbDawWJ5.js';
5
2
  import './breakpoints-BQ3HlJPr.js';
3
+ import { v as version } from './package-ClG-N42b.js';
4
+ import { i as isFocusable } from './focusable-C7afHKmo.js';
5
+ import { T as Type } from './type-obmwEgkM.js';
6
6
  import './_commonjsHelpers-BFTU3MAI.js';
7
+ import './create-validator-decorator-D8qwF5Qe.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: '15106566f7f823c789987c59ef7b655622c95f23', "data-version": version }, h("slot", { key: 'e8d4e3f87795b2f323210a2fedee79e462f715bd', 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 };
@@ -1,13 +1,26 @@
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-BbDawWJ5.js';
2
2
  import { P as PLACEMENT_TYPES } from './placement-DRiVosES.js';
3
- import { v as version } from './package-x3kxyWSZ.js';
4
- import { d as checkEmptyOrOneOf, c as checkRequiredAndType } from './index-D9bU2pIE.js';
5
3
  import './breakpoints-BQ3HlJPr.js';
6
4
  import { g as getDeepFocusableChildren } from './get-focusable-children-DxYnH2ye.js';
5
+ import { v as version } from './package-ClG-N42b.js';
6
+ import { O as OneOf } from './one-of-GPr3FflU.js';
7
+ import { R as Required } from './required-uK-rZZjy.js';
8
+ import { T as Type } from './type-obmwEgkM.js';
7
9
  import './get-root-08F-DB-d.js';
10
+ import './create-validator-decorator-D8qwF5Qe.js';
8
11
 
9
12
  const postPopoverCss = () => `*{box-sizing:border-box}:host{display:contents}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{color:var(--post-current-fg);background-color:var(--post-current-bg);display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:var(--post-popover-max-width, 280px)}.popover-content{padding:.5em;flex-grow:1}`;
10
13
 
14
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
17
+ r = Reflect.decorate(decorators, target, key, desc);
18
+ else
19
+ for (var i = decorators.length - 1; i >= 0; i--)
20
+ if (d = decorators[i])
21
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
11
24
  const PostPopover = class {
12
25
  constructor(hostRef) {
13
26
  registerInstance(this, hostRef);
@@ -23,16 +36,6 @@ const PostPopover = class {
23
36
  // eslint-disable-next-line @stencil-community/ban-default-true
24
37
  this.arrow = true;
25
38
  }
26
- validatePlacement() {
27
- checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
28
- }
29
- validateTextClose() {
30
- checkRequiredAndType(this, 'textClose', 'string');
31
- }
32
- componentDidLoad() {
33
- this.validatePlacement();
34
- this.validateTextClose();
35
- }
36
39
  /**
37
40
  * Programmatically display the popover
38
41
  * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
@@ -66,18 +69,17 @@ const PostPopover = class {
66
69
  }
67
70
  }
68
71
  render() {
69
- return (h(Host, { key: 'ebbd011aecf3ec0537ae6f27565ae89c4de23520', "data-version": version }, h("post-popovercontainer", { key: 'ed7fe6aa0355ca55e53aa4ae460ea1a40b3f7d82', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '10743a794d6aa31f0847f994800108ebab7c0f34', class: "popover-container" }, h("div", { key: 'dba753e2d2d45989b98ec91a79fe7425f9c9acb6', class: "popover-content" }, h("slot", { key: '2cce9dbfc1bdeda0bb64807dcf5d1cf95255b299' })), h("post-closebutton", { key: 'dd3303403d326eb2fe43f6d3f44b7c5684c8747e', onClick: () => this.hide() }, this.textClose)))));
72
+ return (h(Host, { key: '4c6d36060c351602af36c7df3bd1a594cb851213', "data-version": version }, h("post-popovercontainer", { key: 'ec84ed352e562037e547e22f75304683bffa4521', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '2fca8b18ca9ba9abb9464347496ee390815165ec', class: "popover-container" }, h("div", { key: '8859270d05c687223a55583654f97bef9848a8e7', class: "popover-content" }, h("slot", { key: 'e1dff905b2c0882a72693cb07c331581cf63fcf7' })), h("post-closebutton", { key: '7a147e9542c1b7c462141e0940c80eb465fef9a4', onClick: () => this.hide() }, this.textClose)))));
70
73
  }
71
74
  get host() { return getElement(this); }
72
- static get watchers() { return {
73
- "placement": [{
74
- "validatePlacement": 0
75
- }],
76
- "textClose": [{
77
- "validateTextClose": 0
78
- }]
79
- }; }
80
75
  };
76
+ __decorate([
77
+ OneOf(PLACEMENT_TYPES)
78
+ ], PostPopover.prototype, "placement", void 0);
79
+ __decorate([
80
+ Required(),
81
+ Type('string')
82
+ ], PostPopover.prototype, "textClose", void 0);
81
83
  PostPopover.style = postPopoverCss();
82
84
 
83
85
  export { PostPopover as post_popover };
@@ -0,0 +1,145 @@
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BbDawWJ5.js';
2
+ import './breakpoints-BQ3HlJPr.js';
3
+ import { r as registerDependency, c as createValidatorDecorator, g as getValidationContext } from './create-validator-decorator-D8qwF5Qe.js';
4
+ import { T as Type } from './type-obmwEgkM.js';
5
+
6
+ function resolveBound(component, bound) {
7
+ const resolvedValue = typeof bound === 'string' ? component[bound] : bound;
8
+ return typeof resolvedValue === 'number' ? resolvedValue : null;
9
+ }
10
+ function createBoundValidatorDecorator(bound, options, config) {
11
+ const decorator = createValidatorDecorator({
12
+ priority: 1,
13
+ blocking: false,
14
+ run(component, property) {
15
+ const { value, showError } = getValidationContext(component, property);
16
+ if (typeof value !== 'number') {
17
+ return true;
18
+ }
19
+ const resolvedBound = resolveBound(component, bound);
20
+ if (resolvedBound === null) {
21
+ if (typeof bound === 'string') {
22
+ const boundVal = component[bound];
23
+ const boundType = typeof boundVal;
24
+ if (boundType !== 'number') {
25
+ showError(`references property "${bound}" which must be a number but got ${boundType}`);
26
+ return false;
27
+ }
28
+ }
29
+ return true;
30
+ }
31
+ const include = options.include ?? config.includeDefault;
32
+ if (!config.compare(value, resolvedBound, include)) {
33
+ const displayBound = typeof bound === 'string' ? String(resolvedBound) : String(bound);
34
+ const expectation = config.formatExpectation(displayBound, include);
35
+ showError(`must be ${expectation}`);
36
+ return false;
37
+ }
38
+ return true;
39
+ },
40
+ });
41
+ return function (target, property) {
42
+ if (typeof bound === 'string') {
43
+ registerDependency(target, bound, property);
44
+ }
45
+ decorator(target, property);
46
+ };
47
+ }
48
+ /**
49
+ * Property decorator that validates the property value is greater than the specified minimum.
50
+ *
51
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
52
+ *
53
+ * @typeParam T - Component type used to constrain property-name bounds.
54
+ * @param minimum - The minimum allowed value (exclusive by default) or property name to read it from.
55
+ * @param options - Configuration object with `includeMin` flag (default: false for exclusive behavior).
56
+ */
57
+ function GreaterThan(minimum, options = {}) {
58
+ return createBoundValidatorDecorator(minimum, { include: options.includeMin }, {
59
+ includeDefault: false,
60
+ compare: (value, bound, include) => (include ? value >= bound : value > bound),
61
+ formatExpectation: (display, include) => include ? `greater than or equal to "${display}"` : `greater than "${display}"`,
62
+ });
63
+ }
64
+ /**
65
+ * Property decorator that validates the property value is less than the specified maximum.
66
+ *
67
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
68
+ *
69
+ * @typeParam T - Component type used to constrain property-name bounds.
70
+ * @param maximum - The maximum allowed value (inclusive by default) or property name to read it from.
71
+ * @param options - Configuration object with `includeMax` flag (default: true for inclusive behavior).
72
+ */
73
+ function LessThan(maximum, options = {}) {
74
+ return createBoundValidatorDecorator(maximum, { include: options.includeMax }, {
75
+ includeDefault: true,
76
+ compare: (value, bound, include) => (include ? value <= bound : value < bound),
77
+ formatExpectation: (display, include) => include ? `less than or equal to "${display}"` : `less than "${display}"`,
78
+ });
79
+ }
80
+
81
+ const postProgressbarCss = () => `:host{display:block;position:relative;height:var(--post-device-sizing-interactive-progressbar-indicator);border-radius:var(--post-device-border-radius-round);box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;overflow:hidden}.progress-value{position:absolute;inset-block:0;inset-inline-start:0;width:var(--post-progressbar-value, 0);border-radius:var(--post-device-border-radius-round);background-color:var(--post-progressbar-status-color, var(--post-scheme-color-interactive-primary-enabled-bg2));transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border:1px solid Highlight}.progress-value{background-color:Highlight}}`;
82
+
83
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
84
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
+ r = Reflect.decorate(decorators, target, key, desc);
87
+ else
88
+ for (var i = decorators.length - 1; i >= 0; i--)
89
+ if (d = decorators[i])
90
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
92
+ };
93
+ const PostProgressbar = class {
94
+ constructor(hostRef) {
95
+ registerInstance(this, hostRef);
96
+ /**
97
+ * The minimum value of the progress bar.
98
+ * Must be a valid floating point number less than max.
99
+ */
100
+ this.min = 0;
101
+ /**
102
+ * Describes how much work the task indicated by the progress element requires.
103
+ * Must be a valid floating point number greater than min.
104
+ */
105
+ this.max = 100;
106
+ }
107
+ getEffectiveMin() {
108
+ return Number.isFinite(this.min) ? this.min : 0;
109
+ }
110
+ getEffectiveMax() {
111
+ return Number.isFinite(this.max) && this.max > this.getEffectiveMin() ? this.max : 100;
112
+ }
113
+ getEffectiveValue(min, max) {
114
+ if (this.value === undefined ||
115
+ !Number.isFinite(this.value) ||
116
+ this.value < min ||
117
+ this.value > max) {
118
+ return min;
119
+ }
120
+ return this.value;
121
+ }
122
+ render() {
123
+ const min = this.getEffectiveMin();
124
+ const max = this.getEffectiveMax();
125
+ const value = this.getEffectiveValue(min, max);
126
+ const percentage = ((value - min) / (max - min)) * 100;
127
+ return (h(Host, { key: '3d48615c3f08904f896eb5ebb7d8bfdff882a89b', role: "progressbar", "aria-valuenow": value, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: 'dd8c0d44ba1aeccb3102cb15556517df98b9cf63', class: "progress-value", style: { '--post-progressbar-value': `${percentage}%` } })));
128
+ }
129
+ get host() { return getElement(this); }
130
+ };
131
+ __decorate([
132
+ Type('number')
133
+ ], PostProgressbar.prototype, "min", void 0);
134
+ __decorate([
135
+ Type('number'),
136
+ GreaterThan('min')
137
+ ], PostProgressbar.prototype, "max", void 0);
138
+ __decorate([
139
+ Type('number'),
140
+ GreaterThan('min'),
141
+ LessThan('max')
142
+ ], PostProgressbar.prototype, "value", void 0);
143
+ PostProgressbar.style = postProgressbarCss();
144
+
145
+ export { PostProgressbar as post_progressbar };