@swisspost/design-system-components 10.0.0-next.70 → 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 (460) hide show
  1. package/dist/cjs/breakpoints-B0Olgvgc.js +206 -0
  2. package/dist/cjs/component-on-ready-CifOTqw1.js +24 -0
  3. package/dist/cjs/create-validator-decorator-Bnx17kwi.js +223 -0
  4. package/dist/cjs/{focusable-ZqET_zrB.js → focusable-COT2uiEV.js} +25 -4
  5. package/dist/cjs/{index-DPdHkdGf.js → index-ngUOBQot.js} +17 -13
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/nanoid-CmjyF1Cm.js +20 -0
  8. package/dist/cjs/one-of-BHyX4vYq.js +27 -0
  9. package/dist/cjs/{package-Ds_LS1pB.js → package-Bi-tiNRc.js} +1 -1
  10. package/dist/cjs/pattern-BgBx5zGQ.js +27 -0
  11. package/dist/cjs/post-accordion_2.cjs.entry.js +18 -24
  12. package/dist/cjs/post-autocomplete.cjs.entry.js +27 -14
  13. package/dist/cjs/post-avatar.cjs.entry.js +33 -54
  14. package/dist/cjs/post-back-to-top.cjs.entry.js +21 -12
  15. package/dist/cjs/post-banner.cjs.entry.js +9 -14
  16. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +48 -41
  17. package/dist/cjs/post-breadcrumbs.cjs.entry.js +106 -105
  18. package/dist/cjs/post-closebutton_14.cjs.entry.js +257 -288
  19. package/dist/cjs/post-collapsible_2.cjs.entry.js +57 -40
  20. package/dist/cjs/post-components.cjs.js +2 -2
  21. package/dist/cjs/post-date-picker.cjs.entry.js +154 -144
  22. package/dist/cjs/post-footer.cjs.entry.js +26 -19
  23. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  24. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  25. package/dist/cjs/post-listbox.cjs.entry.js +4 -6
  26. package/dist/cjs/post-login-widget.cjs.entry.js +35 -3
  27. package/dist/cjs/post-number-input.cjs.entry.js +6 -6
  28. package/dist/cjs/post-pagination.cjs.entry.js +53 -83
  29. package/dist/cjs/post-popover-trigger.cjs.entry.js +22 -19
  30. package/dist/cjs/post-popover.cjs.entry.js +25 -23
  31. package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
  32. package/dist/cjs/post-rating.cjs.entry.js +34 -35
  33. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  34. package/dist/cjs/post-stepper.cjs.entry.js +49 -38
  35. package/dist/cjs/post-tab-item.cjs.entry.js +23 -15
  36. package/dist/cjs/post-tab-panel.cjs.entry.js +23 -16
  37. package/dist/cjs/post-tabs.cjs.entry.js +24 -30
  38. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +34 -21
  39. package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
  40. package/dist/cjs/required-lRDOdbd6.js +44 -0
  41. package/dist/cjs/type-shT641Eo.js +30 -0
  42. package/dist/cjs/url-DRUMqVBq.js +34 -0
  43. package/dist/collection/collection-manifest.json +1 -0
  44. package/dist/collection/components/post-accordion/post-accordion.js +11 -8
  45. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -18
  46. package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
  47. package/dist/collection/components/post-avatar/avatar-utils.js +2 -2
  48. package/dist/collection/components/post-avatar/post-avatar.js +29 -72
  49. package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
  50. package/dist/collection/components/post-banner/post-banner.js +7 -14
  51. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
  52. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +92 -47
  53. package/dist/collection/components/post-breadcrumb-item/variants.js +1 -0
  54. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  55. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +110 -114
  56. package/dist/collection/components/post-closebutton/post-closebutton.js +24 -27
  57. package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
  58. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
  59. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  60. package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
  61. package/dist/collection/components/post-footer/post-footer.js +17 -13
  62. package/dist/collection/components/post-header/post-header.js +18 -24
  63. package/dist/collection/components/post-icon/post-icon.js +36 -48
  64. package/dist/collection/components/post-language-menu/post-language-menu.js +16 -22
  65. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
  66. package/dist/collection/components/post-linkarea/post-linkarea.js +2 -2
  67. package/dist/collection/components/post-listbox/post-listbox.js +3 -5
  68. package/dist/collection/components/post-listbox-option/post-listbox-option.js +3 -3
  69. package/dist/collection/components/post-login-widget/post-login-widget.css +1 -0
  70. package/dist/collection/components/post-login-widget/post-login-widget.js +103 -5
  71. package/dist/collection/components/post-logo/post-logo.js +16 -13
  72. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
  73. package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
  74. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
  75. package/dist/collection/components/post-menu/post-menu.js +14 -24
  76. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  77. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
  78. package/dist/collection/components/post-number-input/post-number-input.js +5 -5
  79. package/dist/collection/components/post-pagination/post-pagination.js +47 -83
  80. package/dist/collection/components/post-popover/post-popover.js +20 -22
  81. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
  82. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  83. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +28 -34
  84. package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
  85. package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
  86. package/dist/collection/components/post-rating/post-rating.js +25 -29
  87. package/dist/collection/components/post-stepper/post-stepper.js +44 -36
  88. package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
  89. package/dist/collection/components/post-tab-item/post-tab-item.js +17 -13
  90. package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -14
  91. package/dist/collection/components/post-tabs/post-tabs.js +20 -7
  92. package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
  93. package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
  94. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +30 -19
  95. package/dist/collection/hydrate-stub/index.stub.js +5 -0
  96. package/dist/collection/test-setup.js +7 -0
  97. package/dist/collection/utils/index.js +4 -3
  98. package/dist/collection/utils/is-value-empty.js +1 -1
  99. package/dist/collection/utils/locales.js +9 -2
  100. package/dist/collection/utils/nanoid.js +16 -0
  101. package/dist/collection/utils/property-decorators/array-of.js +22 -0
  102. package/dist/collection/utils/property-decorators/bound.js +75 -0
  103. package/dist/collection/utils/property-decorators/create-validator-decorator.js +211 -0
  104. package/dist/collection/utils/property-decorators/date.js +21 -0
  105. package/dist/collection/utils/property-decorators/index.js +9 -0
  106. package/dist/collection/utils/property-decorators/iso-date.js +21 -0
  107. package/dist/collection/utils/property-decorators/one-of.js +22 -0
  108. package/dist/collection/utils/property-decorators/pattern.js +22 -0
  109. package/dist/collection/utils/property-decorators/required.js +40 -0
  110. package/dist/collection/utils/property-decorators/type.js +25 -0
  111. package/dist/collection/utils/property-decorators/url.js +29 -0
  112. package/dist/component-names.json +1 -0
  113. package/dist/components/breakpoints.js +1 -0
  114. package/dist/components/component-on-ready.js +1 -0
  115. package/dist/components/focusable.js +1 -1
  116. package/dist/components/index.d.ts +2 -0
  117. package/dist/components/index.js +1 -1
  118. package/dist/components/nanoid.js +1 -0
  119. package/dist/components/one-of.js +1 -0
  120. package/dist/components/package.js +1 -1
  121. package/dist/components/pattern.js +1 -0
  122. package/dist/components/post-accordion-item2.js +1 -1
  123. package/dist/components/post-accordion2.js +1 -1
  124. package/dist/components/post-autocomplete.js +1 -1
  125. package/dist/components/post-avatar.js +1 -1
  126. package/dist/components/post-avatar2.js +1 -0
  127. package/dist/components/post-back-to-top.js +1 -1
  128. package/dist/components/post-banner.js +1 -1
  129. package/dist/components/post-breadcrumb-item.js +1 -1
  130. package/dist/components/post-breadcrumbs.js +1 -1
  131. package/dist/components/post-closebutton2.js +1 -1
  132. package/dist/components/post-collapsible-trigger2.js +1 -1
  133. package/dist/components/post-collapsible2.js +1 -1
  134. package/dist/components/post-date-picker.js +1 -1
  135. package/dist/components/post-footer.js +1 -1
  136. package/dist/components/post-header.js +1 -1
  137. package/dist/components/post-icon2.js +1 -1
  138. package/dist/components/post-language-menu-item.js +1 -1
  139. package/dist/components/post-language-menu.js +1 -1
  140. package/dist/components/post-linkarea.js +1 -1
  141. package/dist/components/post-listbox-option.js +1 -1
  142. package/dist/components/post-listbox.js +1 -1
  143. package/dist/components/post-login-widget.js +1 -1
  144. package/dist/components/post-logo.js +1 -1
  145. package/dist/components/post-mainnavigation.js +1 -1
  146. package/dist/components/post-megadropdown-trigger.js +1 -1
  147. package/dist/components/post-megadropdown.js +1 -1
  148. package/dist/components/post-menu-item2.js +1 -1
  149. package/dist/components/post-menu-trigger2.js +1 -1
  150. package/dist/components/post-menu2.js +1 -1
  151. package/dist/components/post-number-input.js +1 -1
  152. package/dist/components/post-pagination.js +1 -1
  153. package/dist/components/post-popover-trigger.js +1 -1
  154. package/dist/components/post-popover.js +1 -1
  155. package/dist/components/post-popovercontainer2.js +1 -1
  156. package/dist/components/post-progressbar.d.ts +11 -0
  157. package/dist/components/post-progressbar.js +1 -0
  158. package/dist/components/post-rating.js +1 -1
  159. package/dist/components/post-stepper-item.js +1 -1
  160. package/dist/components/post-stepper.js +1 -1
  161. package/dist/components/post-tab-item.js +1 -1
  162. package/dist/components/post-tab-panel.js +1 -1
  163. package/dist/components/post-tabs.js +1 -1
  164. package/dist/components/post-togglebutton2.js +1 -1
  165. package/dist/components/post-tooltip-trigger.js +1 -1
  166. package/dist/components/post-tooltip.js +1 -1
  167. package/dist/components/react/index.js +1 -1
  168. package/dist/components/react/p-4wtxqxXu.js +1 -0
  169. package/dist/components/react/p-85IGlhtB.js +1 -0
  170. package/dist/components/react/p-8LXe8Zt_.js +1 -0
  171. package/dist/components/react/p-B9ZFuYey.js +1 -0
  172. package/dist/components/react/p-BXqGI600.js +1 -0
  173. package/dist/components/react/p-BZSAV0-K.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-Bg9dtyzK.js +1 -0
  177. package/dist/components/react/p-Bji_4dfL.js +1 -0
  178. package/dist/components/react/p-Bn66acGG.js +1 -0
  179. package/dist/components/react/p-BrY4VWTQ.js +1 -0
  180. package/dist/components/react/p-Bu2JeHDf.js +1 -0
  181. package/dist/components/react/p-BxoRVIIr.js +1 -0
  182. package/dist/components/react/p-CX2E_IXB.js +1 -0
  183. package/dist/components/react/p-Cd1TsNm7.js +1 -0
  184. package/dist/components/react/p-CkTAQJGd.js +1 -0
  185. package/dist/components/react/p-ClG-N42b.js +1 -0
  186. package/dist/components/react/p-D1zw8FxT.js +1 -0
  187. package/dist/components/react/p-DwuW52g5.js +1 -0
  188. package/dist/components/react/p-PM7l--ff.js +1 -0
  189. package/dist/components/react/p-lpWRZjJp.js +1 -0
  190. package/dist/components/react/post-accordion-item.js +1 -1
  191. package/dist/components/react/post-accordion.js +1 -1
  192. package/dist/components/react/post-autocomplete.js +1 -1
  193. package/dist/components/react/post-avatar.js +1 -1
  194. package/dist/components/react/post-back-to-top.js +1 -1
  195. package/dist/components/react/post-banner.js +1 -1
  196. package/dist/components/react/post-breadcrumb-item.js +1 -1
  197. package/dist/components/react/post-breadcrumbs.js +1 -1
  198. package/dist/components/react/post-closebutton.js +1 -1
  199. package/dist/components/react/post-collapsible-trigger.js +1 -1
  200. package/dist/components/react/post-collapsible.js +1 -1
  201. package/dist/components/react/post-date-picker.js +1 -1
  202. package/dist/components/react/post-footer.js +1 -1
  203. package/dist/components/react/post-header.js +1 -1
  204. package/dist/components/react/post-icon.js +1 -1
  205. package/dist/components/react/post-language-menu-item.js +1 -1
  206. package/dist/components/react/post-language-menu.js +1 -1
  207. package/dist/components/react/post-linkarea.js +1 -1
  208. package/dist/components/react/post-listbox-option.js +1 -1
  209. package/dist/components/react/post-listbox.js +1 -1
  210. package/dist/components/react/post-login-widget.js +1 -1
  211. package/dist/components/react/post-logo.js +1 -1
  212. package/dist/components/react/post-mainnavigation.js +1 -1
  213. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  214. package/dist/components/react/post-megadropdown.js +1 -1
  215. package/dist/components/react/post-menu-item.js +1 -1
  216. package/dist/components/react/post-menu-trigger.js +1 -1
  217. package/dist/components/react/post-menu.js +1 -1
  218. package/dist/components/react/post-number-input.js +1 -1
  219. package/dist/components/react/post-pagination.js +1 -1
  220. package/dist/components/react/post-popover-trigger.js +1 -1
  221. package/dist/components/react/post-popover.js +1 -1
  222. package/dist/components/react/post-popovercontainer.js +1 -1
  223. package/dist/components/react/post-progressbar.d.ts +11 -0
  224. package/dist/components/react/post-progressbar.js +1 -0
  225. package/dist/components/react/post-rating.js +1 -1
  226. package/dist/components/react/post-stepper-item.js +1 -1
  227. package/dist/components/react/post-stepper.js +1 -1
  228. package/dist/components/react/post-tab-item.js +1 -1
  229. package/dist/components/react/post-tab-panel.js +1 -1
  230. package/dist/components/react/post-tabs.js +1 -1
  231. package/dist/components/react/post-togglebutton.js +1 -1
  232. package/dist/components/react/post-tooltip-trigger.js +1 -1
  233. package/dist/components/react/post-tooltip.js +1 -1
  234. package/dist/components/required.js +1 -0
  235. package/dist/components/type.js +1 -0
  236. package/dist/components/url.js +1 -0
  237. package/dist/docs.json +307 -72
  238. package/dist/esm/breakpoints-BQ3HlJPr.js +202 -0
  239. package/dist/esm/component-on-ready-lpWRZjJp.js +22 -0
  240. package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
  241. package/dist/esm/{focusable-BD_WT2MO.js → focusable-C7afHKmo.js} +25 -5
  242. package/dist/esm/{index-DmAi35UF.js → index-BbDawWJ5.js} +17 -13
  243. package/dist/esm/loader.js +3 -3
  244. package/dist/esm/nanoid-8LXe8Zt_.js +18 -0
  245. package/dist/esm/one-of-GPr3FflU.js +25 -0
  246. package/dist/esm/package-ClG-N42b.js +3 -0
  247. package/dist/esm/pattern-BWPRYpYv.js +25 -0
  248. package/dist/esm/post-accordion_2.entry.js +17 -23
  249. package/dist/esm/post-autocomplete.entry.js +27 -14
  250. package/dist/esm/post-avatar.entry.js +33 -54
  251. package/dist/esm/post-back-to-top.entry.js +21 -12
  252. package/dist/esm/post-banner.entry.js +9 -14
  253. package/dist/esm/post-breadcrumb-item.entry.js +48 -41
  254. package/dist/esm/post-breadcrumbs.entry.js +106 -105
  255. package/dist/esm/post-closebutton_14.entry.js +252 -283
  256. package/dist/esm/post-collapsible_2.entry.js +57 -40
  257. package/dist/esm/post-components.js +3 -3
  258. package/dist/esm/post-date-picker.entry.js +151 -141
  259. package/dist/esm/post-footer.entry.js +21 -14
  260. package/dist/esm/post-linkarea.entry.js +3 -3
  261. package/dist/esm/post-listbox-option.entry.js +4 -4
  262. package/dist/esm/post-listbox.entry.js +4 -6
  263. package/dist/esm/post-login-widget.entry.js +35 -3
  264. package/dist/esm/post-number-input.entry.js +5 -5
  265. package/dist/esm/post-pagination.entry.js +52 -82
  266. package/dist/esm/post-popover-trigger.entry.js +20 -17
  267. package/dist/esm/post-popover.entry.js +25 -23
  268. package/dist/esm/post-progressbar.entry.js +145 -0
  269. package/dist/esm/post-rating.entry.js +29 -30
  270. package/dist/esm/post-stepper-item.entry.js +3 -3
  271. package/dist/esm/post-stepper.entry.js +49 -38
  272. package/dist/esm/post-tab-item.entry.js +22 -14
  273. package/dist/esm/post-tab-panel.entry.js +22 -15
  274. package/dist/esm/post-tabs.entry.js +23 -29
  275. package/dist/esm/post-tooltip-trigger.entry.js +34 -21
  276. package/dist/esm/post-tooltip.entry.js +19 -16
  277. package/dist/esm/required-uK-rZZjy.js +42 -0
  278. package/dist/esm/type-obmwEgkM.js +28 -0
  279. package/dist/esm/url-B28ByZCe.js +32 -0
  280. package/dist/post-components/p-00f55af5.entry.js +1 -0
  281. package/dist/post-components/p-0288484f.entry.js +1 -0
  282. package/dist/post-components/p-07cdd022.entry.js +1 -0
  283. package/dist/post-components/{p-c2e05ba0.entry.js → p-12047216.entry.js} +1 -1
  284. package/dist/post-components/p-17df4e91.entry.js +1 -0
  285. package/dist/post-components/p-17e046fa.entry.js +1 -0
  286. package/dist/post-components/p-29bd31a0.entry.js +1 -0
  287. package/dist/post-components/p-2c6b4e6a.entry.js +1 -0
  288. package/dist/post-components/p-3b05e01d.entry.js +1 -0
  289. package/dist/post-components/p-53fd5230.entry.js +1 -0
  290. package/dist/post-components/p-5b7e6369.entry.js +1 -0
  291. package/dist/post-components/p-5f4ca179.entry.js +1 -0
  292. package/dist/post-components/p-62b6154a.entry.js +1 -0
  293. package/dist/post-components/{p-77d5e17b.entry.js → p-686a6e22.entry.js} +1 -1
  294. package/dist/post-components/p-758fc84f.entry.js +1 -0
  295. package/dist/post-components/{p-570d64dd.entry.js → p-7f929bb9.entry.js} +1 -1
  296. package/dist/post-components/p-8LXe8Zt_.js +1 -0
  297. package/dist/post-components/p-9865f72c.entry.js +1 -0
  298. package/dist/post-components/p-99803d57.entry.js +1 -0
  299. package/dist/post-components/p-BQ3HlJPr.js +1 -0
  300. package/dist/post-components/p-BRNqUiXj.js +1 -0
  301. package/dist/post-components/p-BbDawWJ5.js +2 -0
  302. package/dist/post-components/p-BrY4VWTQ.js +1 -0
  303. package/dist/post-components/p-CVsNfXZd.js +1 -0
  304. package/dist/post-components/p-Ck2qPht6.js +1 -0
  305. package/dist/post-components/p-ClG-N42b.js +1 -0
  306. package/dist/post-components/p-D4F0BqBW.js +1 -0
  307. package/dist/post-components/p-DSNGJB58.js +1 -0
  308. package/dist/post-components/p-IUnDBhPg.js +1 -0
  309. package/dist/post-components/p-a0e0a760.entry.js +1 -0
  310. package/dist/post-components/p-a850652d.entry.js +1 -0
  311. package/dist/post-components/p-aac1a8ea.entry.js +1 -0
  312. package/dist/post-components/{p-092f8795.entry.js → p-b3f0f9a2.entry.js} +1 -1
  313. package/dist/post-components/p-c37dba4b.entry.js +1 -0
  314. package/dist/post-components/p-d061773b.entry.js +1 -0
  315. package/dist/post-components/p-e2370e94.entry.js +1 -0
  316. package/dist/post-components/p-f1ca1d3f.entry.js +1 -0
  317. package/dist/post-components/p-f2e5f44e.entry.js +1 -0
  318. package/dist/post-components/p-ff98ada4.entry.js +1 -0
  319. package/dist/post-components/p-lpWRZjJp.js +1 -0
  320. package/dist/post-components/post-components.css +2 -2
  321. package/dist/post-components/post-components.esm.js +1 -1
  322. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  323. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
  324. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
  325. package/dist/types/components/post-avatar/avatar-utils.d.ts +1 -1
  326. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -13
  327. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
  328. package/dist/types/components/post-banner/post-banner.d.ts +0 -1
  329. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +11 -11
  330. package/dist/types/components/post-breadcrumb-item/variants.d.ts +2 -0
  331. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +20 -26
  332. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -3
  333. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
  334. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
  335. package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
  336. package/dist/types/components/post-footer/post-footer.d.ts +0 -1
  337. package/dist/types/components/post-header/post-header.d.ts +0 -2
  338. package/dist/types/components/post-icon/post-icon.d.ts +0 -6
  339. package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
  340. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
  341. package/dist/types/components/post-login-widget/post-login-widget.d.ts +17 -2
  342. package/dist/types/components/post-logo/post-logo.d.ts +0 -1
  343. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  344. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
  345. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
  346. package/dist/types/components/post-menu/post-menu.d.ts +1 -4
  347. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
  348. package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
  349. package/dist/types/components/post-popover/post-popover.d.ts +0 -3
  350. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
  351. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
  352. package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
  353. package/dist/types/components/post-rating/post-rating.d.ts +0 -4
  354. package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
  355. package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
  356. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
  357. package/dist/types/components/post-tooltip/post-tooltip.d.ts +1 -3
  358. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +1 -1
  359. package/dist/types/components.d.ts +119 -29
  360. package/dist/types/modules.d.ts +2 -0
  361. package/dist/types/utils/index.d.ts +4 -3
  362. package/dist/types/utils/nanoid.d.ts +8 -0
  363. package/dist/types/utils/property-decorators/array-of.d.ts +9 -0
  364. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  365. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +48 -0
  366. package/dist/types/utils/property-decorators/date.d.ts +6 -0
  367. package/dist/types/utils/property-decorators/index.d.ts +9 -0
  368. package/dist/types/utils/property-decorators/iso-date.d.ts +6 -0
  369. package/dist/types/utils/property-decorators/one-of.d.ts +8 -0
  370. package/dist/types/utils/property-decorators/pattern.d.ts +8 -0
  371. package/dist/types/utils/property-decorators/required.d.ts +17 -0
  372. package/dist/types/utils/property-decorators/type.d.ts +9 -0
  373. package/dist/types/utils/property-decorators/url.d.ts +6 -0
  374. package/hydrate/index.js +1536 -115469
  375. package/hydrate/index.mjs +1536 -115469
  376. package/hydrate/index.stub.js +5 -0
  377. package/package.json +28 -18
  378. package/dist/cjs/index-YBj3gUJp.js +0 -114540
  379. package/dist/cjs/index-qCzRmwgB.js +0 -114
  380. package/dist/cjs/index.browser-BVb9l9T_.js +0 -16
  381. package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
  382. package/dist/collection/utils/property-checkers/check-date.js +0 -13
  383. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
  384. package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
  385. package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
  386. package/dist/collection/utils/property-checkers/check-type.js +0 -15
  387. package/dist/collection/utils/property-checkers/check-url.js +0 -15
  388. package/dist/collection/utils/property-checkers/constants.js +0 -1
  389. package/dist/collection/utils/property-checkers/empty-or.js +0 -9
  390. package/dist/collection/utils/property-checkers/index.js +0 -20
  391. package/dist/collection/utils/property-checkers/required-and.js +0 -14
  392. package/dist/components/heading-levels.js +0 -1
  393. package/dist/components/index.browser.js +0 -1
  394. package/dist/components/index2.js +0 -1
  395. package/dist/components/index3.js +0 -6
  396. package/dist/components/post-breadcrumb-item2.js +0 -1
  397. package/dist/components/react/p-B076QoO3.js +0 -1
  398. package/dist/components/react/p-B2BDAeHI.js +0 -1
  399. package/dist/components/react/p-B2iQay0-.js +0 -1
  400. package/dist/components/react/p-B_RL4AOE.js +0 -1
  401. package/dist/components/react/p-BoFDru4R.js +0 -1
  402. package/dist/components/react/p-BuL0WAoF.js +0 -1
  403. package/dist/components/react/p-C8b6-YQl.js +0 -1
  404. package/dist/components/react/p-CJcRbvrI.js +0 -6
  405. package/dist/components/react/p-Cu9RsvYK.js +0 -1
  406. package/dist/components/react/p-D6uA8DbL.js +0 -1
  407. package/dist/components/react/p-DSSN7xW4.js +0 -1
  408. package/dist/components/react/p-DW7sbg9f.js +0 -1
  409. package/dist/components/react/p-DgdnwpId.js +0 -1
  410. package/dist/components/react/p-Dmnnz3fB.js +0 -1
  411. package/dist/components/react/p-PuHMz_9_.js +0 -1
  412. package/dist/components/react/p-nA1BKco0.js +0 -1
  413. package/dist/components/react/p-r4txK0AC.js +0 -1
  414. package/dist/components/react/p-tpgRP2Dr.js +0 -1
  415. package/dist/esm/index-CJcRbvrI.js +0 -114535
  416. package/dist/esm/index-D9bU2pIE.js +0 -104
  417. package/dist/esm/index.browser-nA1BKco0.js +0 -14
  418. package/dist/esm/package-DW7sbg9f.js +0 -3
  419. package/dist/post-components/p-17ccebe6.entry.js +0 -1
  420. package/dist/post-components/p-1d58bec1.entry.js +0 -1
  421. package/dist/post-components/p-25c28493.entry.js +0 -1
  422. package/dist/post-components/p-29ada3d7.entry.js +0 -1
  423. package/dist/post-components/p-2fcca5ec.entry.js +0 -1
  424. package/dist/post-components/p-3cefd49e.entry.js +0 -1
  425. package/dist/post-components/p-3fea238c.entry.js +0 -1
  426. package/dist/post-components/p-5068ae7e.entry.js +0 -1
  427. package/dist/post-components/p-521178f5.entry.js +0 -1
  428. package/dist/post-components/p-534fed55.entry.js +0 -1
  429. package/dist/post-components/p-5f52cba3.entry.js +0 -1
  430. package/dist/post-components/p-86697a58.entry.js +0 -1
  431. package/dist/post-components/p-987bebe8.entry.js +0 -1
  432. package/dist/post-components/p-9ca5c297.entry.js +0 -1
  433. package/dist/post-components/p-9ea3066f.entry.js +0 -1
  434. package/dist/post-components/p-CJcRbvrI.js +0 -6
  435. package/dist/post-components/p-D9bU2pIE.js +0 -1
  436. package/dist/post-components/p-DW7sbg9f.js +0 -1
  437. package/dist/post-components/p-DmAi35UF.js +0 -2
  438. package/dist/post-components/p-PuHMz_9_.js +0 -1
  439. package/dist/post-components/p-a6fc33fa.entry.js +0 -1
  440. package/dist/post-components/p-ac853d6b.entry.js +0 -1
  441. package/dist/post-components/p-bd09bc20.entry.js +0 -1
  442. package/dist/post-components/p-c55b537b.entry.js +0 -1
  443. package/dist/post-components/p-dded4f13.entry.js +0 -1
  444. package/dist/post-components/p-e6ba44b1.entry.js +0 -1
  445. package/dist/post-components/p-ead1094e.entry.js +0 -1
  446. package/dist/post-components/p-f12e59a0.entry.js +0 -1
  447. package/dist/post-components/p-nA1BKco0.js +0 -1
  448. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +0 -1
  449. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
  450. package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
  451. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
  452. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
  453. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
  454. package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
  455. package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
  456. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  457. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
  458. package/dist/types/utils/property-checkers/index.d.ts +0 -34
  459. package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
  460. /package/dist/types/{language-tags.js → test-setup.d.ts} +0 -0
@@ -7,6 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { HeadingLevel } from "./types/index";
9
9
  import { BannerType } from "./components/post-banner/banner-types";
10
+ import { Variant } from "./components/post-breadcrumb-item/variants";
10
11
  import { ButtonType, Placement, Size } from "./components/post-closebutton/types";
11
12
  import { AirDatepickerCustomOptions } from "./components/post-date-picker/post-date-picker";
12
13
  import { PostIconAnimation } from "./types/icon-animations";
@@ -14,6 +15,7 @@ import { SwitchVariant } from "./components/post-language-menu/switch-variants";
14
15
  import { Placement as Placement1 } from "@floating-ui/dom";
15
16
  export { HeadingLevel } from "./types/index";
16
17
  export { BannerType } from "./components/post-banner/banner-types";
18
+ export { Variant } from "./components/post-breadcrumb-item/variants";
17
19
  export { ButtonType, Placement, Size } from "./components/post-closebutton/types";
18
20
  export { AirDatepickerCustomOptions } from "./components/post-date-picker/post-date-picker";
19
21
  export { PostIconAnimation } from "./types/icon-animations";
@@ -96,10 +98,6 @@ export namespace Components {
96
98
  * Defines the users lastname.
97
99
  */
98
100
  "lastname"?: string;
99
- /**
100
- * Defines the company internal userId.<post-banner type="warning" data-size="sm"><p>Can only be used on post.ch domains!</p></post-banner>
101
- */
102
- "userid"?: string;
103
101
  }
104
102
  interface PostBackToTop {
105
103
  /**
@@ -120,33 +118,43 @@ export namespace Components {
120
118
  }
121
119
  interface PostBreadcrumbItem {
122
120
  /**
123
- * ARIA description for additional context, read after the breadcrumb item content or `label`.
121
+ * An accessible description for additional context, read after the content or `label`.
124
122
  */
125
123
  "description"?: string;
126
124
  /**
127
- * ARIA label, screen readers will use this instead of the breadcrumb item content.
125
+ * An accessible label screen readers will use this instead of the breadcrumb item content.
128
126
  */
129
127
  "label"?: string;
130
128
  /**
131
- * The optional URL to which the breadcrumb item will link.
129
+ * Indicates that the item represents the current page, applying appropriate styling.
130
+ * @default false
131
+ */
132
+ "selected": boolean;
133
+ /**
134
+ * The destination URL for the breadcrumb item. If omitted, the item is rendered as non-interactive text.
132
135
  */
133
136
  "url"?: string | URL;
137
+ /**
138
+ * Controls how the item is rendered, either as a standard list item or within an overflow menu.
139
+ * @default 'listitem'
140
+ */
141
+ "variant": Variant;
134
142
  }
135
143
  interface PostBreadcrumbs {
136
144
  /**
137
- * The URL for the home breadcrumb item.
145
+ * The URL for the root (home) breadcrumb item.
138
146
  */
139
147
  "homeUrl": string;
140
148
  /**
141
- * The accessible label for the breadcrumb component.
149
+ * An accessible label for the breadcrumb navigation.
142
150
  */
143
151
  "textBreadcrumbs": string;
144
152
  /**
145
- * The text label for the home breadcrumb item.
153
+ * An accessible label for the root (home) breadcrumb item.
146
154
  */
147
155
  "textHome": string;
148
156
  /**
149
- * The accessible label for the breadcrumb menu when breadcrumb items are concatenated.
157
+ * An accessible label for the overflow menu that contains collapsed breadcrumb items.
150
158
  */
151
159
  "textMoreItems": string;
152
160
  }
@@ -180,9 +188,9 @@ export namespace Components {
180
188
  }
181
189
  interface PostCollapsibleTrigger {
182
190
  /**
183
- * Link the trigger to a post-collapsible with this id
191
+ * Link the trigger to a post-collapsible by its ID. If omitted, a post-collapsible nested directly inside this element is used instead.
184
192
  */
185
- "for": string;
193
+ "for"?: string;
186
194
  /**
187
195
  * Update the "aria-controls" and "aria-expanded" attributes on the trigger button
188
196
  */
@@ -423,6 +431,18 @@ export namespace Components {
423
431
  * Re-fetches the authentication state from the session API and updates the component rendering accordingly.
424
432
  */
425
433
  "refresh": () => Promise<void>;
434
+ /**
435
+ * Label for the "Current user is {user}" accessibility description. Use `{user}` as a placeholder — it will be replaced with the current user's name at runtime.
436
+ */
437
+ "textCurrentUser": string;
438
+ /**
439
+ * Accessible label for the dropdown menu
440
+ */
441
+ "textUserMenu": string;
442
+ /**
443
+ * Hidden label for the user menu trigger button, for accessibility purposes. It should describe the purpose of the button (e.g. "Access user links").
444
+ */
445
+ "textUserMenuTrigger": string;
426
446
  }
427
447
  interface PostLogo {
428
448
  /**
@@ -622,6 +642,22 @@ export namespace Components {
622
642
  */
623
643
  "toggle": (target: HTMLElement, force?: boolean) => Promise<boolean>;
624
644
  }
645
+ interface PostProgressbar {
646
+ /**
647
+ * Describes how much work the task indicated by the progress element requires. Must be a valid floating point number greater than min.
648
+ * @default 100
649
+ */
650
+ "max": number;
651
+ /**
652
+ * The minimum value of the progress bar. Must be a valid floating point number less than max.
653
+ * @default 0
654
+ */
655
+ "min": number;
656
+ /**
657
+ * Specifies how much of the task has been completed. Must be a valid floating point number between min and max. If there is no value attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
658
+ */
659
+ "value"?: number;
660
+ }
625
661
  interface PostRating {
626
662
  /**
627
663
  * Defines the rating that the component should show.
@@ -1145,6 +1181,12 @@ declare global {
1145
1181
  prototype: HTMLPostPopovercontainerElement;
1146
1182
  new (): HTMLPostPopovercontainerElement;
1147
1183
  };
1184
+ interface HTMLPostProgressbarElement extends Components.PostProgressbar, HTMLStencilElement {
1185
+ }
1186
+ var HTMLPostProgressbarElement: {
1187
+ prototype: HTMLPostProgressbarElement;
1188
+ new (): HTMLPostProgressbarElement;
1189
+ };
1148
1190
  interface HTMLPostRatingElementEventMap {
1149
1191
  "postInput": { value: number };
1150
1192
  "postChange": { value: number };
@@ -1256,6 +1298,7 @@ declare global {
1256
1298
  "post-popover": HTMLPostPopoverElement;
1257
1299
  "post-popover-trigger": HTMLPostPopoverTriggerElement;
1258
1300
  "post-popovercontainer": HTMLPostPopovercontainerElement;
1301
+ "post-progressbar": HTMLPostProgressbarElement;
1259
1302
  "post-rating": HTMLPostRatingElement;
1260
1303
  "post-stepper": HTMLPostStepperElement;
1261
1304
  "post-stepper-item": HTMLPostStepperItemElement;
@@ -1334,10 +1377,6 @@ declare namespace LocalJSX {
1334
1377
  * Defines the users lastname.
1335
1378
  */
1336
1379
  "lastname"?: string;
1337
- /**
1338
- * Defines the company internal userId.<post-banner type="warning" data-size="sm"><p>Can only be used on post.ch domains!</p></post-banner>
1339
- */
1340
- "userid"?: string;
1341
1380
  }
1342
1381
  interface PostBackToTop {
1343
1382
  /**
@@ -1358,33 +1397,43 @@ declare namespace LocalJSX {
1358
1397
  }
1359
1398
  interface PostBreadcrumbItem {
1360
1399
  /**
1361
- * ARIA description for additional context, read after the breadcrumb item content or `label`.
1400
+ * An accessible description for additional context, read after the content or `label`.
1362
1401
  */
1363
1402
  "description"?: string;
1364
1403
  /**
1365
- * ARIA label, screen readers will use this instead of the breadcrumb item content.
1404
+ * An accessible label screen readers will use this instead of the breadcrumb item content.
1366
1405
  */
1367
1406
  "label"?: string;
1368
1407
  /**
1369
- * The optional URL to which the breadcrumb item will link.
1408
+ * Indicates that the item represents the current page, applying appropriate styling.
1409
+ * @default false
1410
+ */
1411
+ "selected"?: boolean;
1412
+ /**
1413
+ * The destination URL for the breadcrumb item. If omitted, the item is rendered as non-interactive text.
1370
1414
  */
1371
1415
  "url"?: string | URL;
1416
+ /**
1417
+ * Controls how the item is rendered, either as a standard list item or within an overflow menu.
1418
+ * @default 'listitem'
1419
+ */
1420
+ "variant"?: Variant;
1372
1421
  }
1373
1422
  interface PostBreadcrumbs {
1374
1423
  /**
1375
- * The URL for the home breadcrumb item.
1424
+ * The URL for the root (home) breadcrumb item.
1376
1425
  */
1377
1426
  "homeUrl": string;
1378
1427
  /**
1379
- * The accessible label for the breadcrumb component.
1428
+ * An accessible label for the breadcrumb navigation.
1380
1429
  */
1381
1430
  "textBreadcrumbs": string;
1382
1431
  /**
1383
- * The text label for the home breadcrumb item.
1432
+ * An accessible label for the root (home) breadcrumb item.
1384
1433
  */
1385
1434
  "textHome": string;
1386
1435
  /**
1387
- * The accessible label for the breadcrumb menu when breadcrumb items are concatenated.
1436
+ * An accessible label for the overflow menu that contains collapsed breadcrumb items.
1388
1437
  */
1389
1438
  "textMoreItems": string;
1390
1439
  }
@@ -1418,9 +1467,9 @@ declare namespace LocalJSX {
1418
1467
  }
1419
1468
  interface PostCollapsibleTrigger {
1420
1469
  /**
1421
- * Link the trigger to a post-collapsible with this id
1470
+ * Link the trigger to a post-collapsible by its ID. If omitted, a post-collapsible nested directly inside this element is used instead.
1422
1471
  */
1423
- "for": string;
1472
+ "for"?: string;
1424
1473
  }
1425
1474
  interface PostDatePicker {
1426
1475
  /**
@@ -1633,6 +1682,18 @@ declare namespace LocalJSX {
1633
1682
  * Emitted when the authentication state changes. The event payload is an object with an `authenticated` property: `true` when the user is logged in, `false` when the user is not logged in or the API request failed.
1634
1683
  */
1635
1684
  "onPostChange"?: (event: PostLoginWidgetCustomEvent<{ authenticated: boolean }>) => void;
1685
+ /**
1686
+ * Label for the "Current user is {user}" accessibility description. Use `{user}` as a placeholder — it will be replaced with the current user's name at runtime.
1687
+ */
1688
+ "textCurrentUser": string;
1689
+ /**
1690
+ * Accessible label for the dropdown menu
1691
+ */
1692
+ "textUserMenu": string;
1693
+ /**
1694
+ * Hidden label for the user menu trigger button, for accessibility purposes. It should describe the purpose of the button (e.g. "Access user links").
1695
+ */
1696
+ "textUserMenuTrigger": string;
1636
1697
  }
1637
1698
  interface PostLogo {
1638
1699
  /**
@@ -1805,6 +1866,22 @@ declare namespace LocalJSX {
1805
1866
  */
1806
1867
  "safeSpace"?: 'triangle' | 'trapezoid';
1807
1868
  }
1869
+ interface PostProgressbar {
1870
+ /**
1871
+ * Describes how much work the task indicated by the progress element requires. Must be a valid floating point number greater than min.
1872
+ * @default 100
1873
+ */
1874
+ "max"?: number;
1875
+ /**
1876
+ * The minimum value of the progress bar. Must be a valid floating point number less than max.
1877
+ * @default 0
1878
+ */
1879
+ "min"?: number;
1880
+ /**
1881
+ * Specifies how much of the task has been completed. Must be a valid floating point number between min and max. If there is no value attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
1882
+ */
1883
+ "value"?: number;
1884
+ }
1808
1885
  interface PostRating {
1809
1886
  /**
1810
1887
  * Defines the rating that the component should show.
@@ -1943,7 +2020,6 @@ declare namespace LocalJSX {
1943
2020
  interface PostAvatarAttributes {
1944
2021
  "firstname": string;
1945
2022
  "lastname": string;
1946
- "userid": string;
1947
2023
  "email": string;
1948
2024
  "description": string;
1949
2025
  }
@@ -1957,6 +2033,8 @@ declare namespace LocalJSX {
1957
2033
  "url": string | URL;
1958
2034
  "label": string;
1959
2035
  "description": string;
2036
+ "variant": Variant;
2037
+ "selected": boolean;
1960
2038
  }
1961
2039
  interface PostBreadcrumbsAttributes {
1962
2040
  "homeUrl": string;
@@ -2027,6 +2105,11 @@ declare namespace LocalJSX {
2027
2105
  "selected": boolean;
2028
2106
  "highlighted": boolean;
2029
2107
  }
2108
+ interface PostLoginWidgetAttributes {
2109
+ "textCurrentUser": string;
2110
+ "textUserMenu": string;
2111
+ "textUserMenuTrigger": string;
2112
+ }
2030
2113
  interface PostLogoAttributes {
2031
2114
  "url": string | URL;
2032
2115
  }
@@ -2074,6 +2157,11 @@ declare namespace LocalJSX {
2074
2157
  "arrow": boolean;
2075
2158
  "safeSpace": 'triangle' | 'trapezoid';
2076
2159
  }
2160
+ interface PostProgressbarAttributes {
2161
+ "min": number;
2162
+ "max": number;
2163
+ "value": number;
2164
+ }
2077
2165
  interface PostRatingAttributes {
2078
2166
  "label": string;
2079
2167
  "stars": number;
@@ -2122,7 +2210,7 @@ declare namespace LocalJSX {
2122
2210
  "post-breadcrumbs": Omit<PostBreadcrumbs, keyof PostBreadcrumbsAttributes> & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes]?: PostBreadcrumbs[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `attr:${K}`]?: PostBreadcrumbsAttributes[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `prop:${K}`]?: PostBreadcrumbs[K] } & OneOf<"homeUrl", PostBreadcrumbs["homeUrl"], PostBreadcrumbsAttributes["homeUrl"]> & OneOf<"textHome", PostBreadcrumbs["textHome"], PostBreadcrumbsAttributes["textHome"]> & OneOf<"textBreadcrumbs", PostBreadcrumbs["textBreadcrumbs"], PostBreadcrumbsAttributes["textBreadcrumbs"]> & OneOf<"textMoreItems", PostBreadcrumbs["textMoreItems"], PostBreadcrumbsAttributes["textMoreItems"]>;
2123
2211
  "post-closebutton": Omit<PostClosebutton, keyof PostClosebuttonAttributes> & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes]?: PostClosebutton[K] } & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes as `attr:${K}`]?: PostClosebuttonAttributes[K] } & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes as `prop:${K}`]?: PostClosebutton[K] };
2124
2212
  "post-collapsible": Omit<PostCollapsible, keyof PostCollapsibleAttributes> & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes]?: PostCollapsible[K] } & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes as `attr:${K}`]?: PostCollapsibleAttributes[K] } & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes as `prop:${K}`]?: PostCollapsible[K] };
2125
- "post-collapsible-trigger": Omit<PostCollapsibleTrigger, keyof PostCollapsibleTriggerAttributes> & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes]?: PostCollapsibleTrigger[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `attr:${K}`]?: PostCollapsibleTriggerAttributes[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `prop:${K}`]?: PostCollapsibleTrigger[K] } & OneOf<"for", PostCollapsibleTrigger["for"], PostCollapsibleTriggerAttributes["for"]>;
2213
+ "post-collapsible-trigger": Omit<PostCollapsibleTrigger, keyof PostCollapsibleTriggerAttributes> & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes]?: PostCollapsibleTrigger[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `attr:${K}`]?: PostCollapsibleTriggerAttributes[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `prop:${K}`]?: PostCollapsibleTrigger[K] };
2126
2214
  "post-date-picker": Omit<PostDatePicker, keyof PostDatePickerAttributes> & { [K in keyof PostDatePicker & keyof PostDatePickerAttributes]?: PostDatePicker[K] } & { [K in keyof PostDatePicker & keyof PostDatePickerAttributes as `attr:${K}`]?: PostDatePickerAttributes[K] } & { [K in keyof PostDatePicker & keyof PostDatePickerAttributes as `prop:${K}`]?: PostDatePicker[K] } & OneOf<"textNextMonth", PostDatePicker["textNextMonth"], PostDatePickerAttributes["textNextMonth"]> & OneOf<"textNextYear", PostDatePicker["textNextYear"], PostDatePickerAttributes["textNextYear"]> & OneOf<"textNextDecade", PostDatePicker["textNextDecade"], PostDatePickerAttributes["textNextDecade"]> & OneOf<"textPreviousMonth", PostDatePicker["textPreviousMonth"], PostDatePickerAttributes["textPreviousMonth"]> & OneOf<"textPreviousYear", PostDatePicker["textPreviousYear"], PostDatePickerAttributes["textPreviousYear"]> & OneOf<"textPreviousDecade", PostDatePicker["textPreviousDecade"], PostDatePickerAttributes["textPreviousDecade"]> & OneOf<"textSwitchYear", PostDatePicker["textSwitchYear"], PostDatePickerAttributes["textSwitchYear"]>;
2127
2215
  "post-footer": Omit<PostFooter, keyof PostFooterAttributes> & { [K in keyof PostFooter & keyof PostFooterAttributes]?: PostFooter[K] } & { [K in keyof PostFooter & keyof PostFooterAttributes as `attr:${K}`]?: PostFooterAttributes[K] } & { [K in keyof PostFooter & keyof PostFooterAttributes as `prop:${K}`]?: PostFooter[K] } & OneOf<"textFooter", PostFooter["textFooter"], PostFooterAttributes["textFooter"]>;
2128
2216
  "post-header": Omit<PostHeader, keyof PostHeaderAttributes> & { [K in keyof PostHeader & keyof PostHeaderAttributes]?: PostHeader[K] } & { [K in keyof PostHeader & keyof PostHeaderAttributes as `attr:${K}`]?: PostHeaderAttributes[K] } & { [K in keyof PostHeader & keyof PostHeaderAttributes as `prop:${K}`]?: PostHeader[K] } & OneOf<"textMenu", PostHeader["textMenu"], PostHeaderAttributes["textMenu"]>;
@@ -2132,7 +2220,7 @@ declare namespace LocalJSX {
2132
2220
  "post-linkarea": PostLinkarea;
2133
2221
  "post-listbox": PostListbox;
2134
2222
  "post-listbox-option": Omit<PostListboxOption, keyof PostListboxOptionAttributes> & { [K in keyof PostListboxOption & keyof PostListboxOptionAttributes]?: PostListboxOption[K] } & { [K in keyof PostListboxOption & keyof PostListboxOptionAttributes as `attr:${K}`]?: PostListboxOptionAttributes[K] } & { [K in keyof PostListboxOption & keyof PostListboxOptionAttributes as `prop:${K}`]?: PostListboxOption[K] } & OneOf<"value", PostListboxOption["value"], PostListboxOptionAttributes["value"]>;
2135
- "post-login-widget": PostLoginWidget;
2223
+ "post-login-widget": Omit<PostLoginWidget, keyof PostLoginWidgetAttributes> & { [K in keyof PostLoginWidget & keyof PostLoginWidgetAttributes]?: PostLoginWidget[K] } & { [K in keyof PostLoginWidget & keyof PostLoginWidgetAttributes as `attr:${K}`]?: PostLoginWidgetAttributes[K] } & { [K in keyof PostLoginWidget & keyof PostLoginWidgetAttributes as `prop:${K}`]?: PostLoginWidget[K] } & OneOf<"textCurrentUser", PostLoginWidget["textCurrentUser"], PostLoginWidgetAttributes["textCurrentUser"]> & OneOf<"textUserMenu", PostLoginWidget["textUserMenu"], PostLoginWidgetAttributes["textUserMenu"]> & OneOf<"textUserMenuTrigger", PostLoginWidget["textUserMenuTrigger"], PostLoginWidgetAttributes["textUserMenuTrigger"]>;
2136
2224
  "post-logo": Omit<PostLogo, keyof PostLogoAttributes> & { [K in keyof PostLogo & keyof PostLogoAttributes]?: PostLogo[K] } & { [K in keyof PostLogo & keyof PostLogoAttributes as `attr:${K}`]?: PostLogoAttributes[K] } & { [K in keyof PostLogo & keyof PostLogoAttributes as `prop:${K}`]?: PostLogo[K] };
2137
2225
  "post-mainnavigation": Omit<PostMainnavigation, keyof PostMainnavigationAttributes> & { [K in keyof PostMainnavigation & keyof PostMainnavigationAttributes]?: PostMainnavigation[K] } & { [K in keyof PostMainnavigation & keyof PostMainnavigationAttributes as `attr:${K}`]?: PostMainnavigationAttributes[K] } & { [K in keyof PostMainnavigation & keyof PostMainnavigationAttributes as `prop:${K}`]?: PostMainnavigation[K] } & OneOf<"textMain", PostMainnavigation["textMain"], PostMainnavigationAttributes["textMain"]>;
2138
2226
  "post-megadropdown": Omit<PostMegadropdown, keyof PostMegadropdownAttributes> & { [K in keyof PostMegadropdown & keyof PostMegadropdownAttributes]?: PostMegadropdown[K] } & { [K in keyof PostMegadropdown & keyof PostMegadropdownAttributes as `attr:${K}`]?: PostMegadropdownAttributes[K] } & { [K in keyof PostMegadropdown & keyof PostMegadropdownAttributes as `prop:${K}`]?: PostMegadropdown[K] } & OneOf<"textClose", PostMegadropdown["textClose"], PostMegadropdownAttributes["textClose"]> & OneOf<"textBack", PostMegadropdown["textBack"], PostMegadropdownAttributes["textBack"]>;
@@ -2145,6 +2233,7 @@ declare namespace LocalJSX {
2145
2233
  "post-popover": Omit<PostPopover, keyof PostPopoverAttributes> & { [K in keyof PostPopover & keyof PostPopoverAttributes]?: PostPopover[K] } & { [K in keyof PostPopover & keyof PostPopoverAttributes as `attr:${K}`]?: PostPopoverAttributes[K] } & { [K in keyof PostPopover & keyof PostPopoverAttributes as `prop:${K}`]?: PostPopover[K] } & OneOf<"textClose", PostPopover["textClose"], PostPopoverAttributes["textClose"]>;
2146
2234
  "post-popover-trigger": Omit<PostPopoverTrigger, keyof PostPopoverTriggerAttributes> & { [K in keyof PostPopoverTrigger & keyof PostPopoverTriggerAttributes]?: PostPopoverTrigger[K] } & { [K in keyof PostPopoverTrigger & keyof PostPopoverTriggerAttributes as `attr:${K}`]?: PostPopoverTriggerAttributes[K] } & { [K in keyof PostPopoverTrigger & keyof PostPopoverTriggerAttributes as `prop:${K}`]?: PostPopoverTrigger[K] };
2147
2235
  "post-popovercontainer": Omit<PostPopovercontainer, keyof PostPopovercontainerAttributes> & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes]?: PostPopovercontainer[K] } & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes as `attr:${K}`]?: PostPopovercontainerAttributes[K] } & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes as `prop:${K}`]?: PostPopovercontainer[K] };
2236
+ "post-progressbar": Omit<PostProgressbar, keyof PostProgressbarAttributes> & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes]?: PostProgressbar[K] } & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes as `attr:${K}`]?: PostProgressbarAttributes[K] } & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes as `prop:${K}`]?: PostProgressbar[K] };
2148
2237
  "post-rating": Omit<PostRating, keyof PostRatingAttributes> & { [K in keyof PostRating & keyof PostRatingAttributes]?: PostRating[K] } & { [K in keyof PostRating & keyof PostRatingAttributes as `attr:${K}`]?: PostRatingAttributes[K] } & { [K in keyof PostRating & keyof PostRatingAttributes as `prop:${K}`]?: PostRating[K] } & OneOf<"label", PostRating["label"], PostRatingAttributes["label"]>;
2149
2238
  "post-stepper": Omit<PostStepper, keyof PostStepperAttributes> & { [K in keyof PostStepper & keyof PostStepperAttributes]?: PostStepper[K] } & { [K in keyof PostStepper & keyof PostStepperAttributes as `attr:${K}`]?: PostStepperAttributes[K] } & { [K in keyof PostStepper & keyof PostStepperAttributes as `prop:${K}`]?: PostStepper[K] } & OneOf<"textCurrentStep", PostStepper["textCurrentStep"], PostStepperAttributes["textCurrentStep"]> & OneOf<"textCompletedStep", PostStepper["textCompletedStep"], PostStepperAttributes["textCompletedStep"]> & OneOf<"textStepNumber", PostStepper["textStepNumber"], PostStepperAttributes["textStepNumber"]>;
2150
2239
  "post-stepper-item": PostStepperItem;
@@ -2196,6 +2285,7 @@ declare module "@stencil/core" {
2196
2285
  "post-popover": LocalJSX.IntrinsicElements["post-popover"] & JSXBase.HTMLAttributes<HTMLPostPopoverElement>;
2197
2286
  "post-popover-trigger": LocalJSX.IntrinsicElements["post-popover-trigger"] & JSXBase.HTMLAttributes<HTMLPostPopoverTriggerElement>;
2198
2287
  "post-popovercontainer": LocalJSX.IntrinsicElements["post-popovercontainer"] & JSXBase.HTMLAttributes<HTMLPostPopovercontainerElement>;
2288
+ "post-progressbar": LocalJSX.IntrinsicElements["post-progressbar"] & JSXBase.HTMLAttributes<HTMLPostProgressbarElement>;
2199
2289
  "post-rating": LocalJSX.IntrinsicElements["post-rating"] & JSXBase.HTMLAttributes<HTMLPostRatingElement>;
2200
2290
  "post-stepper": LocalJSX.IntrinsicElements["post-stepper"] & JSXBase.HTMLAttributes<HTMLPostStepperElement>;
2201
2291
  "post-stepper-item": LocalJSX.IntrinsicElements["post-stepper-item"] & JSXBase.HTMLAttributes<HTMLPostStepperItemElement>;
@@ -0,0 +1,2 @@
1
+ declare module 'ally.js/is/focusable';
2
+ declare module 'long-press-event';
@@ -1,4 +1,4 @@
1
- export * from './property-checkers';
1
+ export * from './property-decorators';
2
2
  export * from './attribute-observer';
3
3
  export * from './breakpoints';
4
4
  export * from './component-on-ready';
@@ -7,10 +7,11 @@ export * from './event-from';
7
7
  export * from './get-focusable-children';
8
8
  export * from './get-root';
9
9
  export * from './get-slotted-element';
10
+ export * from './is-iso-date';
10
11
  export * from './is-motion-reduced';
11
12
  export * from './is-value-empty';
13
+ export * from './locales';
14
+ export * from './nanoid';
12
15
  export * from './repeat-on-long-press';
13
16
  export * from './sass-export';
14
17
  export * from './timeout';
15
- export * from './is-iso-date';
16
- export * from './locales';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Initially copy'n'pasted from https://github.com/ai/nanoid/blob/main/non-secure/index.js, then adopted to our needs.
3
+ *
4
+ * Our custom implementation generates unique IDs for DOM elements efficiently without requiring cryptographic security (as nanoid).
5
+ * It eliminates the nanoid package dependency (as well as the transistive `node:crypto` dependency in node environments), meeting all our requirements.
6
+ * This approach optimizes performance and minimizes the codebase footprint.
7
+ */
8
+ export declare function nanoid(size?: number): string;
@@ -0,0 +1,9 @@
1
+ import { PrimitiveType } from "../../types/property-types";
2
+ /**
3
+ * Property decorator that validates the property value is an array of the specified type.
4
+ *
5
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
6
+ *
7
+ * @param type - The expected type of each array element ('boolean', 'number', 'string').
8
+ */
9
+ export declare function ArrayOf(type: PrimitiveType): (target: object, property: string) => void;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Options for the GreaterThan decorator validation.
3
+ *
4
+ * @property includeMin - Whether the minimum value is inclusive (default: false for exclusive behavior).
5
+ */
6
+ export type GreaterThanOptions = {
7
+ includeMin?: boolean;
8
+ };
9
+ /**
10
+ * Property decorator that validates the property value is greater than the specified minimum.
11
+ *
12
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
13
+ *
14
+ * @typeParam T - Component type used to constrain property-name bounds.
15
+ * @param minimum - The minimum allowed value (exclusive by default) or property name to read it from.
16
+ * @param options - Configuration object with `includeMin` flag (default: false for exclusive behavior).
17
+ */
18
+ export declare function GreaterThan<T extends object>(minimum: number | Extract<keyof T, string>, options?: GreaterThanOptions): (target: T, property: string) => void;
19
+ /**
20
+ * Options for the LessThan decorator validation.
21
+ *
22
+ * @property includeMax - Whether the maximum value is inclusive (default: true).
23
+ */
24
+ export type LessThanOptions = {
25
+ includeMax?: boolean;
26
+ };
27
+ /**
28
+ * Property decorator that validates the property value is less than the specified maximum.
29
+ *
30
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
31
+ *
32
+ * @typeParam T - Component type used to constrain property-name bounds.
33
+ * @param maximum - The maximum allowed value (inclusive by default) or property name to read it from.
34
+ * @param options - Configuration object with `includeMax` flag (default: true for inclusive behavior).
35
+ */
36
+ export declare function LessThan<T extends object>(maximum: number | Extract<keyof T, string>, options?: LessThanOptions): (target: T, property: string) => void;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Describes a property validator used by decorators created with
3
+ * {@link createValidatorDecorator}.
4
+ */
5
+ interface Validator {
6
+ /** Lower values run first. */
7
+ priority: number;
8
+ /** Stops execution of subsequent validators for the same property when validation fails. */
9
+ blocking: boolean;
10
+ /** Runs validation even when the property value is considered empty. */
11
+ validateEmptyValues?: boolean;
12
+ /** Executes the validation logic for the given component property. */
13
+ run: (component: object, property: string) => boolean;
14
+ }
15
+ /**
16
+ * Registers that `dependentProp` should be re-validated when `dependencyProp` changes.
17
+ * Ensures the dependency property has an accessor so its setter can trigger dependents.
18
+ */
19
+ export declare function registerDependency(target: object, dependencyProp: string, dependentProp: string): void;
20
+ /**
21
+ * Creates a property decorator that registers a validator for a component property.
22
+ *
23
+ * The returned decorator ensures property access is intercepted, initial-load
24
+ * validation is enabled, and the provided validator is stored for execution.
25
+ *
26
+ * @param validator Validator definition to register.
27
+ * @returns Property decorator compatible with TypeScript decorator syntax.
28
+ */
29
+ export declare function createValidatorDecorator(validator: Validator): (target: object, property: string) => void;
30
+ /**
31
+ * Builds a validation context for a decorated component property.
32
+ *
33
+ * The returned context includes:
34
+ * - `value`: current property value.
35
+ * - `showError(constraint)`: helper that logs a consistent error format and includes
36
+ * the host element for easier debugging in browser consoles.
37
+ *
38
+ * Message format: `[componentName] Property "property" <constraint>. Received: <value>.`
39
+ *
40
+ * @param component Component instance containing the validated property.
41
+ * @param property Property name being validated.
42
+ * @returns Validation context used by individual validator implementations.
43
+ */
44
+ export declare function getValidationContext(component: object, property: string): {
45
+ value: unknown;
46
+ showError: (constraint: string) => void;
47
+ };
48
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Property decorator that validates the property value is a valid date string.
3
+ *
4
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
5
+ */
6
+ export declare function DateValue(): (target: object, property: string) => void;
@@ -0,0 +1,9 @@
1
+ export { ArrayOf } from './array-of';
2
+ export { GreaterThan, LessThan } from './bound';
3
+ export { DateValue } from './date';
4
+ export { IsoDate } from './iso-date';
5
+ export { OneOf } from './one-of';
6
+ export { Pattern } from './pattern';
7
+ export { Required } from './required';
8
+ export { Type } from './type';
9
+ export { Url } from './url';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Property decorator that validates the property value is a date in ISO 8601 format (YYYY-MM-DD).
3
+ *
4
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
5
+ */
6
+ export declare function IsoDate(): (target: object, property: string) => void;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Property decorator that validates the property value is one of the allowed values.
3
+ *
4
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
5
+ *
6
+ * @param possibleValues - The array of allowed values for the property.
7
+ */
8
+ export declare function OneOf(possibleValues: readonly unknown[]): (target: object, property: string) => void;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Property decorator that validates the property value matches a regular expression.
3
+ *
4
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
5
+ *
6
+ * @param pattern - The regex pattern the property value must match.
7
+ */
8
+ export declare function Pattern(pattern: RegExp): (target: object, property: string) => void;
@@ -0,0 +1,17 @@
1
+ interface RequiredDecoratorOptions<T extends object> {
2
+ when: Extract<keyof T, string>;
3
+ truthy?: boolean;
4
+ }
5
+ /**
6
+ * Property decorator that validates the property is not empty.
7
+ * If the property is empty (undefined, null, '', NaN), an error is logged.
8
+ * This validator is blocking: if it fails, subsequent validators will not run.
9
+ *
10
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
11
+ *
12
+ * @param options - Optional configuration.
13
+ * @param options.when - The property name to watch. Validation only runs when this property's value matches the `truthy` option.
14
+ * @param options.truthy - The value that the `when` property must match for validation to run. Defaults to `true`.
15
+ */
16
+ export declare function Required<T extends object>(options?: RequiredDecoratorOptions<T>): (target: T, property: string) => void;
17
+ export {};
@@ -0,0 +1,9 @@
1
+ import { PropertyType } from "../../types/property-types";
2
+ /**
3
+ * Property decorator that validates the property value is of the specified type.
4
+ *
5
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
6
+ *
7
+ * @param type - The expected type ('boolean', 'number', 'string', 'array', 'object', 'function').
8
+ */
9
+ export declare function Type(type: PropertyType): (target: object, property: string) => void;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Property decorator that validates the property value is a valid URL.
3
+ *
4
+ * Validation runs on `componentDidLoad` and whenever the property value changes.
5
+ */
6
+ export declare function Url(): (target: object, property: string) => void;