@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
@@ -8,11 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
9
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10
10
  };
11
- import { h, Host, } from "@stencil/core";
12
11
  import { PLACEMENT_TYPES } from "../../types/index";
12
+ import { EventFrom, getFocusableChildren, getRoot, OneOf, Required, Type } from "../../utils/index";
13
13
  import { version } from "../../../../package";
14
- import { getFocusableChildren } from "../../utils/get-focusable-children";
15
- import { getRoot, checkEmptyOrOneOf, checkRequiredAndType, EventFrom } from "../../utils/index";
14
+ import { h, Host, } from "@stencil/core";
16
15
  /**
17
16
  * @part post-menu - The container element that holds the list of menu items.
18
17
  * @slot header - Holds the header part of the menu.
@@ -59,12 +58,6 @@ export class PostMenu {
59
58
  }
60
59
  };
61
60
  }
62
- validatePlacement() {
63
- checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
64
- }
65
- validateLabel() {
66
- checkRequiredAndType(this, 'label', 'string');
67
- }
68
61
  connectedCallback() {
69
62
  this.root = getRoot(this.host);
70
63
  this.host.addEventListener('keydown', this.handleKeyDown);
@@ -74,10 +67,6 @@ export class PostMenu {
74
67
  this.host.removeEventListener('keydown', this.handleKeyDown);
75
68
  this.host.removeEventListener('click', this.handleClick);
76
69
  }
77
- componentDidLoad() {
78
- this.validatePlacement();
79
- this.validateLabel();
80
- }
81
70
  /**
82
71
  * Toggles the menu visibility based on its current state.
83
72
  */
@@ -195,7 +184,7 @@ export class PostMenu {
195
184
  ]));
196
185
  }
197
186
  render() {
198
- return (h(Host, { key: '6931365341e8a5476c27e5a35d84823162d3a904', "data-version": version }, h("post-popovercontainer", { key: '441654449ad9708c5eba02a383567771cab7a848', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '6436553c2b7c35901a84b3a50798b561dfbb008c', part: "post-menu" }, h("slot", { key: 'af2a5159f3b8e039d00fc6cb1734740eede78121', name: "header" }), h("slot", { key: '01e671b55c02342936efe703dac97096f38b131c' })))));
187
+ return (h(Host, { key: 'c5f2f3e06c6deb847959a573e450beb2b17f35a2', "data-version": version }, h("post-popovercontainer", { key: '3625a55c753d763313f0a17f0f8993bbcb39975d', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: 'f296e5a99e12ee97c09206df7c05db394a4ae181', part: "post-menu" }, h("slot", { key: '7c322af6cc8e67b9c18c645920d8af7bbcab953f', name: "header" }), h("slot", { key: 'd17b77c7c12a38991d25fc251144198ed763cbbb' })))));
199
188
  }
200
189
  static get is() { return "post-menu"; }
201
190
  static get encapsulation() { return "shadow"; }
@@ -357,16 +346,14 @@ export class PostMenu {
357
346
  };
358
347
  }
359
348
  static get elementRef() { return "host"; }
360
- static get watchers() {
361
- return [{
362
- "propName": "placement",
363
- "methodName": "validatePlacement"
364
- }, {
365
- "propName": "label",
366
- "methodName": "validateLabel"
367
- }];
368
- }
369
349
  }
350
+ __decorate([
351
+ OneOf(PLACEMENT_TYPES)
352
+ ], PostMenu.prototype, "placement", void 0);
353
+ __decorate([
354
+ Required(),
355
+ Type('string')
356
+ ], PostMenu.prototype, "label", void 0);
370
357
  __decorate([
371
358
  EventFrom('post-popovercontainer')
372
359
  ], PostMenu.prototype, "handlePostShown", null);
@@ -1,10 +1,17 @@
1
- import { h, Host } from "@stencil/core";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { getRoot, Required, Type } from "../../utils/index";
2
12
  import { version } from "../../../../package";
3
- import { getRoot, checkRequiredAndType } from "../../utils/index";
13
+ import { h, Host } from "@stencil/core";
4
14
  export class PostMenuTrigger {
5
- validateFor() {
6
- checkRequiredAndType(this, 'for', 'string');
7
- }
8
15
  constructor() {
9
16
  this.updateAriaExpanded = this.updateAriaExpanded.bind(this);
10
17
  }
@@ -12,7 +19,6 @@ export class PostMenuTrigger {
12
19
  this.root = getRoot(this.host);
13
20
  }
14
21
  componentDidLoad() {
15
- this.validateFor();
16
22
  this.setAriaAttributes();
17
23
  if (this.root) {
18
24
  this.root.addEventListener('toggleMenu', this.updateAriaExpanded);
@@ -59,7 +65,7 @@ export class PostMenuTrigger {
59
65
  return null;
60
66
  }
61
67
  render() {
62
- return (h(Host, { key: '574ff0ab723270c5a2614e8a34951febc51221ed', "data-version": version }, h("slot", { key: 'cf223c3e85d9ad8b49ba209fa165a27605b9fd09' })));
68
+ return (h(Host, { key: '53cdf95c4eaaf430f0ada66aa69588b7830903f9', "data-version": version }, h("slot", { key: 'ae764b0b2b93cd7934fd39ef68084871ddd3f94f' })));
63
69
  }
64
70
  static get is() { return "post-menu-trigger"; }
65
71
  static get encapsulation() { return "shadow"; }
@@ -97,10 +103,8 @@ export class PostMenuTrigger {
97
103
  };
98
104
  }
99
105
  static get elementRef() { return "host"; }
100
- static get watchers() {
101
- return [{
102
- "propName": "for",
103
- "methodName": "validateFor"
104
- }];
105
- }
106
106
  }
107
+ __decorate([
108
+ Required(),
109
+ Type('string')
110
+ ], PostMenuTrigger.prototype, "for", void 0);
@@ -1,7 +1,7 @@
1
- import { Host, h } from "@stencil/core";
2
- import { debounce } from "throttle-debounce";
3
- import { version } from "../../../../package";
4
1
  import { getSlottedElement, repeatOnLongPress } from "../../utils/index";
2
+ import { version } from "../../../../package";
3
+ import { h, Host } from "@stencil/core";
4
+ import { debounce } from "throttle-debounce";
5
5
  function parseNumber(input, key) {
6
6
  const value = Number.parseFloat(input[key]);
7
7
  return Number.isNaN(value) ? undefined : value;
@@ -1,6 +1,16 @@
1
- import { Host, h, } from "@stencil/core";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { debounce, nanoid, Required, Type } from "../../utils/index";
2
12
  import { version } from "../../../../package";
3
- import { checkEmptyOrType, checkRequiredAndType, debounce, nanoid } from "../../utils/index";
13
+ import { h, Host, } from "@stencil/core";
4
14
  const ELLIPSIS = '...';
5
15
  const MEASUREMENT_DEBOUNCE_MS = 50;
6
16
  const RESIZE_DEBOUNCE_MS = 150;
@@ -17,33 +27,6 @@ export class PostPagination {
17
27
  this.debouncedResize = debounce(this.handleResizeInternal.bind(this), RESIZE_DEBOUNCE_MS);
18
28
  this.measurementTimeoutId = null;
19
29
  }
20
- validatePage() {
21
- this.validateProp('page', 'number', false);
22
- }
23
- validatePageSize() {
24
- this.validateProp('pageSize', 'number', true);
25
- }
26
- validateCollectionSize() {
27
- this.validateProp('collectionSize', 'number', true);
28
- }
29
- validateLabel() {
30
- this.validateProp('label', 'string', true);
31
- }
32
- validateTextPrevious() {
33
- this.validateProp('textPrevious', 'string', true);
34
- }
35
- validateTextNext() {
36
- this.validateProp('textNext', 'string', true);
37
- }
38
- validateTextPage() {
39
- this.validateProp('textPage', 'string', true);
40
- }
41
- validateTextFirst() {
42
- this.validateProp('textFirst', 'string', true);
43
- }
44
- validateTextLast() {
45
- this.validateProp('textLast', 'string', true);
46
- }
47
30
  handlePropsChange() {
48
31
  this.updatePagesWithValidation();
49
32
  }
@@ -58,7 +41,6 @@ export class PostPagination {
58
41
  }
59
42
  componentDidLoad() {
60
43
  this.loaded = true;
61
- this.runAllValidations();
62
44
  this.scheduleMeasurement();
63
45
  }
64
46
  disconnectedCallback() {
@@ -69,31 +51,6 @@ export class PostPagination {
69
51
  this.measurementTimeoutId = null;
70
52
  }
71
53
  }
72
- /**
73
- * Validate a prop with the appropriate check function
74
- */
75
- validateProp(propName, type, required = true) {
76
- if (required) {
77
- checkRequiredAndType(this, propName, type);
78
- }
79
- else {
80
- checkEmptyOrType(this, propName, type);
81
- }
82
- }
83
- /**
84
- * Run all prop validations
85
- */
86
- runAllValidations() {
87
- this.validateProp('page', 'number', false);
88
- this.validateProp('pageSize', 'number', true);
89
- this.validateProp('collectionSize', 'number', true);
90
- this.validateProp('label', 'string', true);
91
- this.validateProp('textPrevious', 'string', true);
92
- this.validateProp('textNext', 'string', true);
93
- this.validateProp('textPage', 'string', true);
94
- this.validateProp('textFirst', 'string', true);
95
- this.validateProp('textLast', 'string', true);
96
- }
97
54
  /**
98
55
  * Schedule measurement attempt with timeout
99
56
  */
@@ -769,33 +726,6 @@ export class PostPagination {
769
726
  static get elementRef() { return "host"; }
770
727
  static get watchers() {
771
728
  return [{
772
- "propName": "page",
773
- "methodName": "validatePage"
774
- }, {
775
- "propName": "pageSize",
776
- "methodName": "validatePageSize"
777
- }, {
778
- "propName": "collectionSize",
779
- "methodName": "validateCollectionSize"
780
- }, {
781
- "propName": "label",
782
- "methodName": "validateLabel"
783
- }, {
784
- "propName": "textPrevious",
785
- "methodName": "validateTextPrevious"
786
- }, {
787
- "propName": "textNext",
788
- "methodName": "validateTextNext"
789
- }, {
790
- "propName": "textPage",
791
- "methodName": "validateTextPage"
792
- }, {
793
- "propName": "textFirst",
794
- "methodName": "validateTextFirst"
795
- }, {
796
- "propName": "textLast",
797
- "methodName": "validateTextLast"
798
- }, {
799
729
  "propName": "page",
800
730
  "methodName": "handlePropsChange"
801
731
  }, {
@@ -807,3 +737,38 @@ export class PostPagination {
807
737
  }];
808
738
  }
809
739
  }
740
+ __decorate([
741
+ Type('number')
742
+ ], PostPagination.prototype, "page", void 0);
743
+ __decorate([
744
+ Required(),
745
+ Type('number')
746
+ ], PostPagination.prototype, "pageSize", void 0);
747
+ __decorate([
748
+ Required(),
749
+ Type('number')
750
+ ], PostPagination.prototype, "collectionSize", void 0);
751
+ __decorate([
752
+ Required(),
753
+ Type('string')
754
+ ], PostPagination.prototype, "label", void 0);
755
+ __decorate([
756
+ Required(),
757
+ Type('string')
758
+ ], PostPagination.prototype, "textPrevious", void 0);
759
+ __decorate([
760
+ Required(),
761
+ Type('string')
762
+ ], PostPagination.prototype, "textNext", void 0);
763
+ __decorate([
764
+ Required(),
765
+ Type('string')
766
+ ], PostPagination.prototype, "textPage", void 0);
767
+ __decorate([
768
+ Required(),
769
+ Type('string')
770
+ ], PostPagination.prototype, "textFirst", void 0);
771
+ __decorate([
772
+ Required(),
773
+ Type('string')
774
+ ], PostPagination.prototype, "textLast", void 0);
@@ -1,7 +1,17 @@
1
- import { h, Host } from "@stencil/core";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
2
11
  import { PLACEMENT_TYPES } from "../../types/index";
12
+ import { getDeepFocusableChildren, OneOf, Required, Type } from "../../utils/index";
3
13
  import { version } from "../../../../package";
4
- import { checkRequiredAndType, checkEmptyOrOneOf, getDeepFocusableChildren } from "../../utils/index";
14
+ import { h, Host } from "@stencil/core";
5
15
  /**
6
16
  * @slot default - Slot for placing content inside the popover.
7
17
  */
@@ -19,16 +29,6 @@ export class PostPopover {
19
29
  // eslint-disable-next-line @stencil-community/ban-default-true
20
30
  this.arrow = true;
21
31
  }
22
- validatePlacement() {
23
- checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
24
- }
25
- validateTextClose() {
26
- checkRequiredAndType(this, 'textClose', 'string');
27
- }
28
- componentDidLoad() {
29
- this.validatePlacement();
30
- this.validateTextClose();
31
- }
32
32
  /**
33
33
  * Programmatically display the popover
34
34
  * @param target A focusable element inside the <post-popover-trigger> component that controls the popover
@@ -62,7 +62,7 @@ export class PostPopover {
62
62
  }
63
63
  }
64
64
  render() {
65
- 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)))));
65
+ 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)))));
66
66
  }
67
67
  static get is() { return "post-popover"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -231,13 +231,11 @@ export class PostPopover {
231
231
  };
232
232
  }
233
233
  static get elementRef() { return "host"; }
234
- static get watchers() {
235
- return [{
236
- "propName": "placement",
237
- "methodName": "validatePlacement"
238
- }, {
239
- "propName": "textClose",
240
- "methodName": "validateTextClose"
241
- }];
242
- }
243
234
  }
235
+ __decorate([
236
+ OneOf(PLACEMENT_TYPES)
237
+ ], PostPopover.prototype, "placement", void 0);
238
+ __decorate([
239
+ Required(),
240
+ Type('string')
241
+ ], PostPopover.prototype, "textClose", void 0);
@@ -1,7 +1,17 @@
1
- import { h, Host } from "@stencil/core";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { Type } from "../../utils/index";
2
12
  import { version } from "../../../../package";
13
+ import { h, Host } from "@stencil/core";
3
14
  import isFocusable from "ally.js/is/focusable";
4
- import { checkEmptyOrType } from "../../utils/index";
5
15
  export class PostPopoverTrigger {
6
16
  syncAriaExpanded(newValue) {
7
17
  this.ariaExpanded = newValue;
@@ -9,13 +19,6 @@ export class PostPopoverTrigger {
9
19
  this.trigger.setAttribute('aria-expanded', String(newValue));
10
20
  }
11
21
  }
12
- /**
13
- * Watch for changes to the `for` property to validate its type and ensure it is a string.
14
- * @param forValue - The new value of the `for` property.
15
- */
16
- validateFor() {
17
- checkEmptyOrType(this, 'for', 'string');
18
- }
19
22
  hasAriaControlsElements(el) {
20
23
  return 'ariaControlsElements' in el;
21
24
  }
@@ -95,7 +98,6 @@ export class PostPopoverTrigger {
95
98
  };
96
99
  }
97
100
  componentDidLoad() {
98
- this.validateFor();
99
101
  this.setupTrigger();
100
102
  this.popover?.addEventListener('postToggle', this.boundHandlePostToggle);
101
103
  }
@@ -105,7 +107,7 @@ export class PostPopoverTrigger {
105
107
  this.popover?.removeEventListener('postToggle', this.boundHandlePostToggle);
106
108
  }
107
109
  render() {
108
- return (h(Host, { key: 'b439e93193ac8e1e7cdceb5b0dcd59de6659400c', "data-version": version }, h("slot", { key: '3a4e192ec9656f2a4b4c69f8d9c8589d770f50b8', onSlotchange: () => this.setupTrigger() })));
110
+ return (h(Host, { key: '15106566f7f823c789987c59ef7b655622c95f23', "data-version": version }, h("slot", { key: 'e8d4e3f87795b2f323210a2fedee79e462f715bd', onSlotchange: () => this.setupTrigger() })));
109
111
  }
110
112
  static get is() { return "post-popover-trigger"; }
111
113
  static get encapsulation() { return "shadow"; }
@@ -153,9 +155,9 @@ export class PostPopoverTrigger {
153
155
  return [{
154
156
  "propName": "popoverOpen",
155
157
  "methodName": "syncAriaExpanded"
156
- }, {
157
- "propName": "for",
158
- "methodName": "validateFor"
159
158
  }];
160
159
  }
161
160
  }
161
+ __decorate([
162
+ Type('string')
163
+ ], PostPopoverTrigger.prototype, "for", void 0);
@@ -1,11 +1,21 @@
1
- import { Host, h, Build, } from "@stencil/core";
2
- import { checkEmptyOrOneOf, checkEmptyOrType } from "../../utils/index";
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { Build, h, Host, } from "@stencil/core";
12
+ import { OneOf, Type } from "../../utils/index";
3
13
  import { version } from "../../../../package";
4
- import { arrow, autoUpdate, computePosition, flip, inline, limitShift, offset, shift, size, } from "@floating-ui/dom";
5
14
  import { PLACEMENT_TYPES } from "../../types/index";
15
+ import { arrow, autoUpdate, computePosition, flip, inline, limitShift, offset, shift, size, } from "@floating-ui/dom";
6
16
  // Polyfill for popovers, can be removed when https://caniuse.com/?search=popover is green
7
- import { apply, isSupported } from "@oddbird/popover-polyfill/fn";
8
17
  import { popIn } from "../../animations/pop-in";
18
+ import { apply, isSupported } from "@oddbird/popover-polyfill/fn";
9
19
  const ANIMATIONS = {
10
20
  'pop-in': popIn,
11
21
  };
@@ -37,15 +47,6 @@ export class PostPopovercontainer {
37
47
  this.currentAnimation = null;
38
48
  this.boundMouseTrackingHandler = this.mouseTrackingHandler.bind(this);
39
49
  }
40
- validatePlacement() {
41
- checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
42
- }
43
- validateEdgeGap() {
44
- checkEmptyOrType(this, 'edgeGap', 'number');
45
- }
46
- validateSafeSpace() {
47
- checkEmptyOrOneOf(this, 'safeSpace', ['triangle', 'trapezoid']);
48
- }
49
50
  /**
50
51
  * Updates cursor position for safe space feature when popover is open.
51
52
  * Sets CSS custom properties for dynamic styling of safe area.
@@ -61,9 +62,6 @@ export class PostPopovercontainer {
61
62
  }
62
63
  }
63
64
  componentDidLoad() {
64
- this.validatePlacement();
65
- this.validateEdgeGap();
66
- this.validateSafeSpace();
67
65
  this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
68
66
  }
69
67
  disconnectedCallback() {
@@ -345,9 +343,9 @@ export class PostPopovercontainer {
345
343
  }
346
344
  }
347
345
  render() {
348
- return (h(Host, { key: 'f3d2037a35648aef9031ecb96db8f1755cb06fc9', "data-version": version, popover: "auto" }, h("div", { key: '19a5300eb1388eb51764eae39fc0911864336282', part: "post-popovercontainer-content", class: "popover-content" }, this.arrow && (h("span", { key: 'e7c67a359968faa9001c4be657db7d6930fe6075', "dynamic-placement": this.dynamicPlacement, class: "arrow", ref: el => {
346
+ return (h(Host, { key: '468af4ce773ab7c5d4feb4320c33175347ceca3d', "data-version": version, popover: "auto" }, h("div", { key: 'f8a78f27bf46079134b75d468b44ad40d15a0001', part: "post-popovercontainer-content", class: "popover-content" }, this.arrow && (h("span", { key: '9d92eaec690d67bdbf3b991274c2351744628519', "dynamic-placement": this.dynamicPlacement, class: "arrow", ref: el => {
349
347
  this.arrowRef = el;
350
- } })), h("span", { key: 'b7477bc2e03c196c5983f6b933cedc20b2ed59f8', part: "post-popovercontainer-border-mask" }), h("div", { key: '7c1c50cbd766f6f901e9f3579c6e609da4cf3e37', class: "popover-scroll" }, h("slot", { key: '56c646c3bec1437e394ce0b76cea0f6bc4c6637f' })))));
348
+ } })), h("span", { key: 'a1dd28b0ddd3af5792199f47e7a921eb14b86f93', part: "post-popovercontainer-border-mask" }), h("div", { key: '94e84d35042983d832d6f0e9f8c01b68428d1401', class: "popover-scroll" }, h("slot", { key: '28909f395a3ed25f489458f94de79c3c1ae309c9' })))));
351
349
  }
352
350
  static get is() { return "post-popovercontainer"; }
353
351
  static get encapsulation() { return "shadow"; }
@@ -638,18 +636,6 @@ export class PostPopovercontainer {
638
636
  };
639
637
  }
640
638
  static get elementRef() { return "host"; }
641
- static get watchers() {
642
- return [{
643
- "propName": "placement",
644
- "methodName": "validatePlacement"
645
- }, {
646
- "propName": "edgeGap",
647
- "methodName": "validateEdgeGap"
648
- }, {
649
- "propName": "safeSpace",
650
- "methodName": "validateSafeSpace"
651
- }];
652
- }
653
639
  }
654
640
  PostPopovercontainer.STATIC_SIDES = {
655
641
  top: 'bottom',
@@ -671,3 +657,12 @@ PostPopovercontainer.PROPERTIES_TO_CLEAR = [
671
657
  '--post-safe-space-trigger-y-start',
672
658
  '--post-safe-space-trigger-y-end',
673
659
  ];
660
+ __decorate([
661
+ OneOf(PLACEMENT_TYPES)
662
+ ], PostPopovercontainer.prototype, "placement", void 0);
663
+ __decorate([
664
+ Type('number')
665
+ ], PostPopovercontainer.prototype, "edgeGap", void 0);
666
+ __decorate([
667
+ OneOf(['triangle', 'trapezoid'])
668
+ ], PostPopovercontainer.prototype, "safeSpace", void 0);
@@ -0,0 +1 @@
1
+ :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}}
@@ -0,0 +1,136 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1; i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { GreaterThan, LessThan, Type } from "../../utils/index";
12
+ import { h, Host } from "@stencil/core";
13
+ export class PostProgressbar {
14
+ constructor() {
15
+ /**
16
+ * The minimum value of the progress bar.
17
+ * Must be a valid floating point number less than max.
18
+ */
19
+ this.min = 0;
20
+ /**
21
+ * Describes how much work the task indicated by the progress element requires.
22
+ * Must be a valid floating point number greater than min.
23
+ */
24
+ this.max = 100;
25
+ }
26
+ getEffectiveMin() {
27
+ return Number.isFinite(this.min) ? this.min : 0;
28
+ }
29
+ getEffectiveMax() {
30
+ return Number.isFinite(this.max) && this.max > this.getEffectiveMin() ? this.max : 100;
31
+ }
32
+ getEffectiveValue(min, max) {
33
+ if (this.value === undefined ||
34
+ !Number.isFinite(this.value) ||
35
+ this.value < min ||
36
+ this.value > max) {
37
+ return min;
38
+ }
39
+ return this.value;
40
+ }
41
+ render() {
42
+ const min = this.getEffectiveMin();
43
+ const max = this.getEffectiveMax();
44
+ const value = this.getEffectiveValue(min, max);
45
+ const percentage = ((value - min) / (max - min)) * 100;
46
+ 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}%` } })));
47
+ }
48
+ static get is() { return "post-progressbar"; }
49
+ static get encapsulation() { return "shadow"; }
50
+ static get originalStyleUrls() {
51
+ return {
52
+ "$": ["post-progressbar.scss"]
53
+ };
54
+ }
55
+ static get styleUrls() {
56
+ return {
57
+ "$": ["post-progressbar.css"]
58
+ };
59
+ }
60
+ static get properties() {
61
+ return {
62
+ "min": {
63
+ "type": "number",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "number",
67
+ "resolved": "number",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "The minimum value of the progress bar.\nMust be a valid floating point number less than max."
75
+ },
76
+ "getter": false,
77
+ "setter": false,
78
+ "reflect": false,
79
+ "attribute": "min",
80
+ "defaultValue": "0"
81
+ },
82
+ "max": {
83
+ "type": "number",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "number",
87
+ "resolved": "number",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": "Describes how much work the task indicated by the progress element requires.\nMust be a valid floating point number greater than min."
95
+ },
96
+ "getter": false,
97
+ "setter": false,
98
+ "reflect": false,
99
+ "attribute": "max",
100
+ "defaultValue": "100"
101
+ },
102
+ "value": {
103
+ "type": "number",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "number",
107
+ "resolved": "number",
108
+ "references": {}
109
+ },
110
+ "required": false,
111
+ "optional": true,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": "Specifies how much of the task has been completed.\nMust be a valid floating point number between min and max.\nIf 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."
115
+ },
116
+ "getter": false,
117
+ "setter": false,
118
+ "reflect": false,
119
+ "attribute": "value"
120
+ }
121
+ };
122
+ }
123
+ static get elementRef() { return "host"; }
124
+ }
125
+ __decorate([
126
+ Type('number')
127
+ ], PostProgressbar.prototype, "min", void 0);
128
+ __decorate([
129
+ Type('number'),
130
+ GreaterThan('min')
131
+ ], PostProgressbar.prototype, "max", void 0);
132
+ __decorate([
133
+ Type('number'),
134
+ GreaterThan('min'),
135
+ LessThan('max')
136
+ ], PostProgressbar.prototype, "value", void 0);