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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. package/dist/cjs/create-validator-decorator-Bimhl6Ib.js +223 -0
  2. package/dist/cjs/{index-CCteMCnR.js → index-CyeY2muT.js} +54 -5
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/one-of-BVQP1dR3.js +27 -0
  5. package/dist/cjs/{package-CscM89A7.js → package-JSyXVavg.js} +1 -1
  6. package/dist/cjs/pattern-BDKu8-v6.js +27 -0
  7. package/dist/cjs/post-accordion_2.cjs.entry.js +15 -21
  8. package/dist/cjs/post-autocomplete.cjs.entry.js +26 -13
  9. package/dist/cjs/post-avatar.cjs.entry.js +30 -33
  10. package/dist/cjs/post-back-to-top.cjs.entry.js +20 -11
  11. package/dist/cjs/post-banner.cjs.entry.js +9 -14
  12. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +34 -24
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +35 -38
  14. package/dist/cjs/post-closebutton_14.cjs.entry.js +284 -300
  15. package/dist/cjs/post-collapsible_2.cjs.entry.js +56 -39
  16. package/dist/cjs/post-components.cjs.js +2 -2
  17. package/dist/cjs/post-date-picker.cjs.entry.js +142 -140
  18. package/dist/cjs/post-footer.cjs.entry.js +24 -17
  19. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  20. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  21. package/dist/cjs/post-listbox.cjs.entry.js +3 -5
  22. package/dist/cjs/post-login-widget.cjs.entry.js +29 -30
  23. package/dist/cjs/post-number-input.cjs.entry.js +5 -5
  24. package/dist/cjs/post-pagination.cjs.entry.js +60 -85
  25. package/dist/cjs/post-popover-trigger.cjs.entry.js +21 -18
  26. package/dist/cjs/post-popover.cjs.entry.js +24 -22
  27. package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
  28. package/dist/cjs/post-rating.cjs.entry.js +33 -34
  29. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +109 -0
  30. package/dist/cjs/post-side-navigation.cjs.entry.js +129 -0
  31. package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
  32. package/dist/cjs/post-stepper.cjs.entry.js +50 -37
  33. package/dist/cjs/post-tab-item.cjs.entry.js +20 -12
  34. package/dist/cjs/post-tab-panel.cjs.entry.js +20 -13
  35. package/dist/cjs/post-tabs.cjs.entry.js +21 -7
  36. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +21 -12
  37. package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
  38. package/dist/cjs/required-BsZuSJAl.js +44 -0
  39. package/dist/cjs/type-DXpEWY0w.js +30 -0
  40. package/dist/cjs/url-D-EbWRlF.js +34 -0
  41. package/dist/collection/collection-manifest.json +3 -0
  42. package/dist/collection/components/post-accordion/post-accordion.js +11 -8
  43. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -17
  44. package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
  45. package/dist/collection/components/post-avatar/post-avatar.js +27 -33
  46. package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
  47. package/dist/collection/components/post-banner/post-banner.css +2 -2
  48. package/dist/collection/components/post-banner/post-banner.js +7 -14
  49. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
  50. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +27 -22
  51. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  52. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +30 -37
  53. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  54. package/dist/collection/components/post-closebutton/post-closebutton.js +45 -37
  55. package/dist/collection/components/post-closebutton/types.js +1 -1
  56. package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
  57. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
  58. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  59. package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
  60. package/dist/collection/components/post-footer/post-footer.js +17 -13
  61. package/dist/collection/components/post-header/post-header.css +1 -1
  62. package/dist/collection/components/post-header/post-header.js +25 -30
  63. package/dist/collection/components/post-icon/post-icon.js +34 -47
  64. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  65. package/dist/collection/components/post-language-menu/post-language-menu.js +15 -20
  66. package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
  67. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
  68. package/dist/collection/components/post-linkarea/post-linkarea.js +2 -2
  69. package/dist/collection/components/post-listbox/post-listbox.js +3 -5
  70. package/dist/collection/components/post-listbox-option/post-listbox-option.js +3 -3
  71. package/dist/collection/components/post-login-widget/post-login-widget.css +1 -1
  72. package/dist/collection/components/post-login-widget/post-login-widget.js +25 -29
  73. package/dist/collection/components/post-logo/post-logo.js +16 -13
  74. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
  75. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  76. package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
  77. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  78. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
  79. package/dist/collection/components/post-menu/post-menu.css +1 -1
  80. package/dist/collection/components/post-menu/post-menu.js +10 -23
  81. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  82. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
  83. package/dist/collection/components/post-number-input/post-number-input.css +1 -1
  84. package/dist/collection/components/post-number-input/post-number-input.js +5 -5
  85. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  86. package/dist/collection/components/post-pagination/post-pagination.js +58 -87
  87. package/dist/collection/components/post-popover/post-popover.js +20 -22
  88. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
  89. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  90. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +29 -33
  91. package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
  92. package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
  93. package/dist/collection/components/post-rating/post-rating.js +25 -29
  94. package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -0
  95. package/dist/collection/components/post-side-navigation/post-side-navigation.js +231 -0
  96. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -0
  97. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +154 -0
  98. package/dist/collection/components/post-stepper/post-stepper.js +46 -36
  99. package/dist/collection/components/post-stepper-item/post-stepper-item.css +1 -1
  100. package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
  101. package/dist/collection/components/post-tab-item/post-tab-item.js +17 -12
  102. package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -13
  103. package/dist/collection/components/post-tabs/post-tabs.js +20 -7
  104. package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
  105. package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
  106. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +17 -12
  107. package/dist/collection/utils/index.js +3 -4
  108. package/dist/collection/utils/is-value-empty.js +1 -1
  109. package/dist/collection/utils/property-decorators/bound.js +75 -0
  110. package/dist/collection/utils/property-decorators/create-validator-decorator.js +24 -0
  111. package/dist/collection/utils/property-decorators/index.js +1 -1
  112. package/dist/collection/utils/property-decorators/required.js +19 -3
  113. package/dist/component-names.json +3 -0
  114. package/dist/components/breakpoints.js +1 -1
  115. package/dist/components/index.d.ts +6 -0
  116. package/dist/components/index.js +1 -1
  117. package/dist/components/one-of.js +1 -0
  118. package/dist/components/package.js +1 -1
  119. package/dist/components/pattern.js +1 -0
  120. package/dist/components/post-accordion-item2.js +1 -1
  121. package/dist/components/post-accordion2.js +1 -1
  122. package/dist/components/post-autocomplete.js +1 -1
  123. package/dist/components/post-avatar2.js +1 -1
  124. package/dist/components/post-back-to-top.js +1 -1
  125. package/dist/components/post-banner.js +1 -1
  126. package/dist/components/post-breadcrumb-item.js +1 -1
  127. package/dist/components/post-breadcrumbs.js +1 -1
  128. package/dist/components/post-closebutton2.js +1 -1
  129. package/dist/components/post-collapsible-trigger2.js +1 -1
  130. package/dist/components/post-collapsible2.js +1 -1
  131. package/dist/components/post-date-picker.js +1 -1
  132. package/dist/components/post-footer.js +1 -1
  133. package/dist/components/post-header.js +1 -1
  134. package/dist/components/post-icon2.js +1 -1
  135. package/dist/components/post-language-menu-item.js +1 -1
  136. package/dist/components/post-language-menu.js +1 -1
  137. package/dist/components/post-linkarea.js +1 -1
  138. package/dist/components/post-listbox-option.js +1 -1
  139. package/dist/components/post-listbox.js +1 -1
  140. package/dist/components/post-login-widget.js +1 -1
  141. package/dist/components/post-logo.js +1 -1
  142. package/dist/components/post-mainnavigation.js +1 -1
  143. package/dist/components/post-megadropdown-trigger.js +1 -1
  144. package/dist/components/post-megadropdown.js +1 -1
  145. package/dist/components/post-menu-item2.js +1 -1
  146. package/dist/components/post-menu-trigger2.js +1 -1
  147. package/dist/components/post-menu2.js +1 -1
  148. package/dist/components/post-number-input.js +1 -1
  149. package/dist/components/post-pagination.js +1 -1
  150. package/dist/components/post-popover-trigger.js +1 -1
  151. package/dist/components/post-popover.js +1 -1
  152. package/dist/components/post-popovercontainer2.js +1 -1
  153. package/dist/components/post-progressbar.d.ts +11 -0
  154. package/dist/components/post-progressbar.js +1 -0
  155. package/dist/components/post-rating.js +1 -1
  156. package/dist/components/post-side-navigation-trigger.d.ts +11 -0
  157. package/dist/components/post-side-navigation-trigger.js +1 -0
  158. package/dist/components/post-side-navigation.d.ts +11 -0
  159. package/dist/components/post-side-navigation.js +1 -0
  160. package/dist/components/post-stepper-item.js +1 -1
  161. package/dist/components/post-stepper.js +1 -1
  162. package/dist/components/post-tab-item.js +1 -1
  163. package/dist/components/post-tab-panel.js +1 -1
  164. package/dist/components/post-tabs.js +1 -1
  165. package/dist/components/post-togglebutton2.js +1 -1
  166. package/dist/components/post-tooltip-trigger.js +1 -1
  167. package/dist/components/post-tooltip.js +1 -1
  168. package/dist/components/react/index.js +1 -1
  169. package/dist/components/react/p-4wtxqxXu.js +1 -0
  170. package/dist/components/react/p-B3ZJPCU0.js +1 -0
  171. package/dist/components/react/p-BUAS73l8.js +1 -0
  172. package/dist/components/react/p-BUSQG9af.js +1 -0
  173. package/dist/components/react/p-BXqGI600.js +1 -0
  174. package/dist/components/react/p-B_WnO-QF.js +1 -0
  175. package/dist/components/react/p-BaB8wJvk.js +1 -0
  176. package/dist/components/react/p-Bji_4dfL.js +1 -0
  177. package/dist/components/react/p-C7aYEQh5.js +1 -0
  178. package/dist/components/react/p-CX2E_IXB.js +1 -0
  179. package/dist/components/react/p-CbU3QFNG.js +1 -0
  180. package/dist/components/react/p-CdhbouMD.js +1 -0
  181. package/dist/components/react/p-Ci08Eesw.js +1 -0
  182. package/dist/components/react/{p-BC0-M_SK.js → p-DNddZV_h.js} +1 -1
  183. package/dist/components/react/p-DTg2SXJj.js +1 -0
  184. package/dist/components/react/p-DU4XzTGt.js +1 -0
  185. package/dist/components/react/p-DWlDkwjY.js +1 -0
  186. package/dist/components/react/p-wqJxIo5L.js +1 -0
  187. package/dist/components/react/p-ztiqEfbC.js +1 -0
  188. package/dist/components/react/post-accordion-item.js +1 -1
  189. package/dist/components/react/post-accordion.js +1 -1
  190. package/dist/components/react/post-autocomplete.js +1 -1
  191. package/dist/components/react/post-avatar.js +1 -1
  192. package/dist/components/react/post-back-to-top.js +1 -1
  193. package/dist/components/react/post-banner.js +1 -1
  194. package/dist/components/react/post-breadcrumb-item.js +1 -1
  195. package/dist/components/react/post-breadcrumbs.js +1 -1
  196. package/dist/components/react/post-closebutton.js +1 -1
  197. package/dist/components/react/post-collapsible-trigger.js +1 -1
  198. package/dist/components/react/post-collapsible.js +1 -1
  199. package/dist/components/react/post-date-picker.js +1 -1
  200. package/dist/components/react/post-footer.js +1 -1
  201. package/dist/components/react/post-header.js +1 -1
  202. package/dist/components/react/post-icon.js +1 -1
  203. package/dist/components/react/post-language-menu-item.js +1 -1
  204. package/dist/components/react/post-language-menu.js +1 -1
  205. package/dist/components/react/post-linkarea.js +1 -1
  206. package/dist/components/react/post-listbox-option.js +1 -1
  207. package/dist/components/react/post-listbox.js +1 -1
  208. package/dist/components/react/post-login-widget.js +1 -1
  209. package/dist/components/react/post-logo.js +1 -1
  210. package/dist/components/react/post-mainnavigation.js +1 -1
  211. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  212. package/dist/components/react/post-megadropdown.js +1 -1
  213. package/dist/components/react/post-menu-item.js +1 -1
  214. package/dist/components/react/post-menu-trigger.js +1 -1
  215. package/dist/components/react/post-menu.js +1 -1
  216. package/dist/components/react/post-number-input.js +1 -1
  217. package/dist/components/react/post-pagination.js +1 -1
  218. package/dist/components/react/post-popover-trigger.js +1 -1
  219. package/dist/components/react/post-popover.js +1 -1
  220. package/dist/components/react/post-popovercontainer.js +1 -1
  221. package/dist/components/react/post-progressbar.d.ts +11 -0
  222. package/dist/components/react/post-progressbar.js +1 -0
  223. package/dist/components/react/post-rating.js +1 -1
  224. package/dist/components/react/post-side-navigation-trigger.d.ts +11 -0
  225. package/dist/components/react/post-side-navigation-trigger.js +1 -0
  226. package/dist/components/react/post-side-navigation.d.ts +11 -0
  227. package/dist/components/react/post-side-navigation.js +1 -0
  228. package/dist/components/react/post-stepper-item.js +1 -1
  229. package/dist/components/react/post-stepper.js +1 -1
  230. package/dist/components/react/post-tab-item.js +1 -1
  231. package/dist/components/react/post-tab-panel.js +1 -1
  232. package/dist/components/react/post-tabs.js +1 -1
  233. package/dist/components/react/post-togglebutton.js +1 -1
  234. package/dist/components/react/post-tooltip-trigger.js +1 -1
  235. package/dist/components/react/post-tooltip.js +1 -1
  236. package/dist/components/required.js +1 -0
  237. package/dist/components/type.js +1 -0
  238. package/dist/components/url.js +1 -0
  239. package/dist/docs.json +344 -14
  240. package/dist/esm/create-validator-decorator-BNkS_yAb.js +218 -0
  241. package/dist/esm/{index-DmBWUef5.js → index-BGeKgZqi.js} +54 -5
  242. package/dist/esm/loader.js +3 -3
  243. package/dist/esm/one-of-4BD_5pKR.js +25 -0
  244. package/dist/esm/package-CdhbouMD.js +3 -0
  245. package/dist/esm/pattern-D7tnGo1u.js +25 -0
  246. package/dist/esm/post-accordion_2.entry.js +15 -21
  247. package/dist/esm/post-autocomplete.entry.js +26 -13
  248. package/dist/esm/post-avatar.entry.js +30 -33
  249. package/dist/esm/post-back-to-top.entry.js +20 -11
  250. package/dist/esm/post-banner.entry.js +9 -14
  251. package/dist/esm/post-breadcrumb-item.entry.js +34 -24
  252. package/dist/esm/post-breadcrumbs.entry.js +35 -38
  253. package/dist/esm/post-closebutton_14.entry.js +284 -300
  254. package/dist/esm/post-collapsible_2.entry.js +56 -39
  255. package/dist/esm/post-components.js +3 -3
  256. package/dist/esm/post-date-picker.entry.js +142 -140
  257. package/dist/esm/post-footer.entry.js +20 -13
  258. package/dist/esm/post-linkarea.entry.js +3 -3
  259. package/dist/esm/post-listbox-option.entry.js +4 -4
  260. package/dist/esm/post-listbox.entry.js +3 -5
  261. package/dist/esm/post-login-widget.entry.js +29 -30
  262. package/dist/esm/post-number-input.entry.js +5 -5
  263. package/dist/esm/post-pagination.entry.js +60 -85
  264. package/dist/esm/post-popover-trigger.entry.js +19 -16
  265. package/dist/esm/post-popover.entry.js +24 -22
  266. package/dist/esm/post-progressbar.entry.js +145 -0
  267. package/dist/esm/post-rating.entry.js +28 -29
  268. package/dist/esm/post-side-navigation-trigger.entry.js +107 -0
  269. package/dist/esm/post-side-navigation.entry.js +127 -0
  270. package/dist/esm/post-stepper-item.entry.js +4 -4
  271. package/dist/esm/post-stepper.entry.js +50 -37
  272. package/dist/esm/post-tab-item.entry.js +20 -12
  273. package/dist/esm/post-tab-panel.entry.js +20 -13
  274. package/dist/esm/post-tabs.entry.js +21 -7
  275. package/dist/esm/post-tooltip-trigger.entry.js +21 -12
  276. package/dist/esm/post-tooltip.entry.js +19 -16
  277. package/dist/esm/required-DhBxDSbP.js +42 -0
  278. package/dist/esm/type-icZlikjf.js +28 -0
  279. package/dist/esm/url-B_2x2YCy.js +32 -0
  280. package/dist/post-components/p-001f58d8.entry.js +1 -0
  281. package/dist/post-components/p-0a08ae23.entry.js +1 -0
  282. package/dist/post-components/p-12c8b073.entry.js +1 -0
  283. package/dist/post-components/{p-bab0f27f.entry.js → p-15fa7e60.entry.js} +1 -1
  284. package/dist/post-components/p-1839276a.entry.js +1 -0
  285. package/dist/post-components/p-28eeb5d8.entry.js +1 -0
  286. package/dist/post-components/p-3e83aa1f.entry.js +1 -0
  287. package/dist/post-components/p-41b5dbfc.entry.js +1 -0
  288. package/dist/post-components/p-5d20cbcb.entry.js +1 -0
  289. package/dist/post-components/p-6a1c4897.entry.js +1 -0
  290. package/dist/post-components/p-6cbb2e7f.entry.js +1 -0
  291. package/dist/post-components/p-6d14f78a.entry.js +1 -0
  292. package/dist/post-components/p-6e8b6249.entry.js +1 -0
  293. package/dist/post-components/p-71918d59.entry.js +1 -0
  294. package/dist/post-components/p-7ee4b829.entry.js +1 -0
  295. package/dist/post-components/p-8139b0cc.entry.js +1 -0
  296. package/dist/post-components/p-84c8d952.entry.js +1 -0
  297. package/dist/post-components/p-87ebb213.entry.js +1 -0
  298. package/dist/post-components/{p-4b445a35.entry.js → p-89da6378.entry.js} +1 -1
  299. package/dist/post-components/p-8SvFxSp6.js +1 -0
  300. package/dist/post-components/p-8caaa149.entry.js +1 -0
  301. package/dist/post-components/p-923439d1.entry.js +1 -0
  302. package/dist/post-components/p-97c1f070.entry.js +1 -0
  303. package/dist/post-components/p-9e240299.entry.js +1 -0
  304. package/dist/post-components/p-9ec32e7b.entry.js +1 -0
  305. package/dist/post-components/p-BGeKgZqi.js +2 -0
  306. package/dist/post-components/p-CIbyqT6u.js +1 -0
  307. package/dist/post-components/p-CdhbouMD.js +1 -0
  308. package/dist/post-components/p-D2ex14Ye.js +1 -0
  309. package/dist/post-components/p-DH5JdN6V.js +1 -0
  310. package/dist/post-components/p-DiBqDD4N.js +1 -0
  311. package/dist/post-components/p-I6rSjhbA.js +1 -0
  312. package/dist/post-components/p-aff9dd5e.entry.js +1 -0
  313. package/dist/post-components/p-c905a97c.entry.js +1 -0
  314. package/dist/post-components/p-e54a6be0.entry.js +1 -0
  315. package/dist/post-components/p-eca119d2.entry.js +1 -0
  316. package/dist/post-components/p-f9529d40.entry.js +1 -0
  317. package/dist/post-components/p-fac58cbd.entry.js +1 -0
  318. package/dist/post-components/post-components.css +2 -2
  319. package/dist/post-components/post-components.esm.js +1 -1
  320. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  321. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
  322. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
  323. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -5
  324. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
  325. package/dist/types/components/post-banner/post-banner.d.ts +0 -1
  326. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -3
  327. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +0 -4
  328. package/dist/types/components/post-closebutton/post-closebutton.d.ts +5 -5
  329. package/dist/types/components/post-closebutton/types.d.ts +1 -1
  330. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
  331. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
  332. package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
  333. package/dist/types/components/post-footer/post-footer.d.ts +0 -1
  334. package/dist/types/components/post-header/post-header.d.ts +1 -3
  335. package/dist/types/components/post-icon/post-icon.d.ts +0 -6
  336. package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
  337. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
  338. package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -4
  339. package/dist/types/components/post-logo/post-logo.d.ts +0 -1
  340. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  341. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
  342. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
  343. package/dist/types/components/post-menu/post-menu.d.ts +1 -4
  344. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
  345. package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
  346. package/dist/types/components/post-popover/post-popover.d.ts +1 -4
  347. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
  348. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
  349. package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
  350. package/dist/types/components/post-rating/post-rating.d.ts +0 -4
  351. package/dist/types/components/post-side-navigation/post-side-navigation.d.ts +56 -0
  352. package/dist/types/components/post-side-navigation-trigger/post-side-navigation-trigger.d.ts +33 -0
  353. package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
  354. package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
  355. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
  356. package/dist/types/components/post-tooltip/post-tooltip.d.ts +0 -2
  357. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
  358. package/dist/types/components.d.ts +142 -5
  359. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +1 -0
  360. package/dist/types/utils/index.d.ts +3 -4
  361. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  362. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +5 -0
  363. package/dist/types/utils/property-decorators/index.d.ts +1 -1
  364. package/dist/types/utils/property-decorators/required.d.ts +10 -1
  365. package/dist/vrt/helpers/header-test-config.js +3 -2
  366. package/dist/vrt/helpers/header-variants.config.js +29 -2
  367. package/hydrate/index.js +1640 -980
  368. package/hydrate/index.mjs +1640 -980
  369. package/package.json +4 -4
  370. package/dist/cjs/index-qCzRmwgB.js +0 -114
  371. package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
  372. package/dist/collection/utils/property-checkers/check-date.js +0 -13
  373. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
  374. package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
  375. package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
  376. package/dist/collection/utils/property-checkers/check-type.js +0 -15
  377. package/dist/collection/utils/property-checkers/check-url.js +0 -15
  378. package/dist/collection/utils/property-checkers/constants.js +0 -1
  379. package/dist/collection/utils/property-checkers/empty-or.js +0 -9
  380. package/dist/collection/utils/property-checkers/index.js +0 -20
  381. package/dist/collection/utils/property-checkers/required-and.js +0 -14
  382. package/dist/components/heading-levels.js +0 -1
  383. package/dist/components/index2.js +0 -1
  384. package/dist/components/react/p-BQ3HlJPr.js +0 -1
  385. package/dist/components/react/p-C7s9oglQ.js +0 -1
  386. package/dist/components/react/p-CTgZ8DGr.js +0 -1
  387. package/dist/components/react/p-CVtlwDsT.js +0 -1
  388. package/dist/components/react/p-CaLwTf3T.js +0 -1
  389. package/dist/components/react/p-ClJyTIVM.js +0 -1
  390. package/dist/components/react/p-DGr-hfLq.js +0 -1
  391. package/dist/components/react/p-DJxdj9pa.js +0 -1
  392. package/dist/components/react/p-DKDEtjQe.js +0 -1
  393. package/dist/components/react/p-DPKR_4uI.js +0 -1
  394. package/dist/components/react/p-DcEDGaFs.js +0 -1
  395. package/dist/components/react/p-DipfA69b.js +0 -1
  396. package/dist/components/react/p-DwZxAC2u.js +0 -1
  397. package/dist/components/react/p-r4txK0AC.js +0 -1
  398. package/dist/components/react/p-x3kxyWSZ.js +0 -1
  399. package/dist/esm/index-D9bU2pIE.js +0 -104
  400. package/dist/esm/package-x3kxyWSZ.js +0 -3
  401. package/dist/post-components/p-08a0e8e9.entry.js +0 -1
  402. package/dist/post-components/p-1583817b.entry.js +0 -1
  403. package/dist/post-components/p-203d9abd.entry.js +0 -1
  404. package/dist/post-components/p-2c68af27.entry.js +0 -1
  405. package/dist/post-components/p-39143e19.entry.js +0 -1
  406. package/dist/post-components/p-46dd9e7e.entry.js +0 -1
  407. package/dist/post-components/p-53a8cce5.entry.js +0 -1
  408. package/dist/post-components/p-72bff1fc.entry.js +0 -1
  409. package/dist/post-components/p-75045028.entry.js +0 -1
  410. package/dist/post-components/p-768b4516.entry.js +0 -1
  411. package/dist/post-components/p-7e072450.entry.js +0 -1
  412. package/dist/post-components/p-83cb6424.entry.js +0 -1
  413. package/dist/post-components/p-94f4da57.entry.js +0 -1
  414. package/dist/post-components/p-9dace750.entry.js +0 -1
  415. package/dist/post-components/p-9ea7e46f.entry.js +0 -1
  416. package/dist/post-components/p-D9bU2pIE.js +0 -1
  417. package/dist/post-components/p-DmBWUef5.js +0 -2
  418. package/dist/post-components/p-a0ac814c.entry.js +0 -1
  419. package/dist/post-components/p-a0d12ca8.entry.js +0 -1
  420. package/dist/post-components/p-cb039d66.entry.js +0 -1
  421. package/dist/post-components/p-e8cda4e1.entry.js +0 -1
  422. package/dist/post-components/p-e8e50d5c.entry.js +0 -1
  423. package/dist/post-components/p-eb64ec1d.entry.js +0 -1
  424. package/dist/post-components/p-f0746a9e.entry.js +0 -1
  425. package/dist/post-components/p-f5e33714.entry.js +0 -1
  426. package/dist/post-components/p-f93ce33d.entry.js +0 -1
  427. package/dist/post-components/p-fd0446b2.entry.js +0 -1
  428. package/dist/post-components/p-x3kxyWSZ.js +0 -1
  429. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
  430. package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
  431. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
  432. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
  433. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
  434. package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
  435. package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
  436. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  437. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
  438. package/dist/types/utils/property-checkers/index.d.ts +0 -34
  439. package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
@@ -1 +1 @@
1
- :host{position:relative}nav{max-width:100%}nav.invisible{visibility:hidden;overflow:hidden;position:absolute;inset:0}[role=list]{display:flex;align-items:start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(a){color:LinkText;border:unset}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjI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gpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
1
+ :host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap: nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:flex;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(a){color:LinkText;border:unset}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5ID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z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:calc((16px + 2 * var(--post-device-spacing-padding-35) - var(--post-core-dimension-24))/2)}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
@@ -1,31 +1,25 @@
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 { componentOnReady, nanoid, Required, Type, Url } from "../../utils/index";
12
+ import { version } from "../../../../package";
1
13
  import { h, Host } from "@stencil/core";
2
14
  import { throttle } from "throttle-debounce";
3
- import { version } from "../../../../package";
4
- import { checkRequiredAndUrl, checkRequiredAndType, componentOnReady, nanoid } from "../../utils/index";
5
15
  export class PostBreadcrumbs {
6
16
  constructor() {
7
17
  this.shouldRenderMenu = false;
8
18
  }
9
- validateHomeUrl() {
10
- checkRequiredAndUrl(this, 'homeUrl');
11
- }
12
- validateTextHome() {
13
- checkRequiredAndType(this, 'textHome', 'string');
14
- }
15
- validateTextBreadcrumbs() {
16
- checkRequiredAndType(this, 'textBreadcrumbs', 'string');
17
- }
18
- validateTextMoreItems() {
19
- checkRequiredAndType(this, 'textMoreItems', 'string');
20
- }
21
19
  componentWillLoad() {
22
20
  this.id = this.host.id || `b${nanoid(6)}`;
23
21
  }
24
22
  componentDidLoad() {
25
- this.validateHomeUrl();
26
- this.validateTextHome();
27
- this.validateTextBreadcrumbs();
28
- this.validateTextMoreItems();
29
23
  this.createMutationObserver();
30
24
  this.createResizeObserver();
31
25
  }
@@ -71,9 +65,7 @@ export class PostBreadcrumbs {
71
65
  if (!originalSlot || !clonedSlot)
72
66
  return;
73
67
  originalSlot.assignedElements().forEach(element => {
74
- const cloned = element.cloneNode(true);
75
- cloned.dataset.measuring = 'true';
76
- clonedSlot.before(cloned);
68
+ clonedSlot.insertAdjacentElement('beforebegin', element.cloneNode(true));
77
69
  });
78
70
  clonedSlot.remove();
79
71
  }
@@ -103,7 +95,7 @@ export class PostBreadcrumbs {
103
95
  return (h("div", { role: "listitem" }, h("div", { class: "breadcrumb-item" }, h("post-menu-trigger", { for: menuId }, h("button", null, h("span", { class: "visually-hidden" }, this.textMoreItems), h("span", { "aria-hidden": "true" }, "...")))), h("post-menu", { id: menuId, label: this.textMoreItems, placement: "bottom-start" }, h("slot", null))));
104
96
  }
105
97
  render() {
106
- return (h(Host, { key: '85cb104032c0caed5ab2fb442be0a6d7eac5b67a', "data-version": version }, h("nav", { key: 'be4b2b8c6333ef3bf3440de0ce61958d1a07952b', "aria-label": this.textBreadcrumbs }, h("div", { key: '28531f638065e6db5cbf7e29d87086933fb47235', role: "list" }, h("div", { key: '4a71e5b143e271e26f032e8d4ed329aee949bf32', class: "breadcrumb-item home", role: "listitem" }, h("a", { key: '3e58ac2d4bbbc2e56a7acd28119b235edadc8fa0', href: this.homeUrl }, h("span", { key: '1a31a9963898005b218177d78adbb7813728b0ce', class: "visually-hidden" }, this.textHome), h("post-icon", { key: '668a636881fbea1a7129b9108cc234c257e0fffb', "aria-hidden": "true", name: "home" }))), this.shouldRenderMenu ? this.renderMenu() : h("slot", null), h("slot", { key: '0c8bad3de95f0ca51dfd8a15c4cb6e79e2499b1b', name: "selected" })))));
98
+ return (h(Host, { key: '8a3c4436b22c3f3d2454b61ff5ce4d4e11bed697', "data-version": version }, h("nav", { key: '5e13b27f36e2ffcade42416d2864177a7cd6ed29', "aria-label": this.textBreadcrumbs }, h("div", { key: '4b5aca825afe3be81913c0d67e748164b2d9123c', role: "list" }, h("div", { key: 'a3aa906e91046fe6779ea5cae8db5499800229e1', class: "breadcrumb-item home", role: "listitem" }, h("a", { key: 'a086c73567696a9da8fe5af8a9fbe4b80f4d4d91', href: this.homeUrl }, h("span", { key: '814f6c145c9f19db46fa3d4cddaac59d4518677f', class: "visually-hidden" }, this.textHome), h("post-icon", { key: '5096b9b77e0a4e6c21baec26b7c26614110c53f1', "aria-hidden": "true", name: "home" }))), this.shouldRenderMenu ? this.renderMenu() : h("slot", null), h("slot", { key: '561cef4586098f87688f5b9ad2a34b7a27bf0313', name: "selected" })))));
107
99
  }
108
100
  static get is() { return "post-breadcrumbs"; }
109
101
  static get encapsulation() { return "shadow"; }
@@ -204,19 +196,20 @@ export class PostBreadcrumbs {
204
196
  };
205
197
  }
206
198
  static get elementRef() { return "host"; }
207
- static get watchers() {
208
- return [{
209
- "propName": "homeUrl",
210
- "methodName": "validateHomeUrl"
211
- }, {
212
- "propName": "textHome",
213
- "methodName": "validateTextHome"
214
- }, {
215
- "propName": "textBreadcrumbs",
216
- "methodName": "validateTextBreadcrumbs"
217
- }, {
218
- "propName": "textMoreItems",
219
- "methodName": "validateTextMoreItems"
220
- }];
221
- }
222
199
  }
200
+ __decorate([
201
+ Required(),
202
+ Url()
203
+ ], PostBreadcrumbs.prototype, "homeUrl", void 0);
204
+ __decorate([
205
+ Required(),
206
+ Type('string')
207
+ ], PostBreadcrumbs.prototype, "textHome", void 0);
208
+ __decorate([
209
+ Required(),
210
+ Type('string')
211
+ ], PostBreadcrumbs.prototype, "textBreadcrumbs", void 0);
212
+ __decorate([
213
+ Required(),
214
+ Type('string')
215
+ ], PostBreadcrumbs.prototype, "textMoreItems", void 0);
@@ -1 +1 @@
1
- .btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash)}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg);color:var(--post-scheme-color-interactive-button-primary-disabled-fg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-closebutton[size=small] .btn{height:var(--post-device-sizing-interactive-button-height-7);width:var(--post-device-sizing-interactive-button-height-7)}post-closebutton:not([placement]),post-closebutton[placement=auto]{position:absolute;inset-block-start:0;inset-inline-end:0;transform:translate(50%, -50%)}post-closebutton .btn{background-color:var(--post-scheme-color-interactive-primary-enabled-bg1)}post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg)}
1
+ .btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host .btn{background-color:var(--post-scheme-color-interactive-primary-enabled-bg1)}:host .btn:not(:disabled):hover,:host .btn.pretend-hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg)}:host(:not([placement])),:host([placement=auto]){position:absolute;inset-block-start:0;inset-inline-end:0;transform:translate(50%, -50%)}:host([size=small]) .btn{height:var(--post-device-sizing-interactive-button-height-7);width:var(--post-device-sizing-interactive-button-height-7)}
@@ -1,15 +1,25 @@
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 { OneOf, Required } from "../../utils/index";
2
12
  import { version } from "../../../../package";
3
- import { checkEmptyOrOneOf, checkRequiredAndOneOf } from "../../utils/index";
13
+ import { h, Host } from "@stencil/core";
4
14
  import { BUTTON_TYPES, PLACEMENT, SIZE } from "./types";
5
15
  /**
6
16
  * @slot default - Slot for placing visually hidden label in the close button.
7
17
  */
8
18
  export class PostClosebutton {
9
19
  constructor() {
10
- this.mutationObserver = new MutationObserver(this.checkContent.bind(this));
11
20
  /**
12
21
  * The "type" attribute used for the close button
22
+
13
23
  */
14
24
  this.buttonType = 'button';
15
25
  /**
@@ -21,42 +31,40 @@ export class PostClosebutton {
21
31
  */
22
32
  this.size = 'default';
23
33
  }
24
- validateButtonType() {
25
- checkEmptyOrOneOf(this, 'buttonType', BUTTON_TYPES);
26
- }
27
- validatePlacement() {
28
- checkRequiredAndOneOf(this, 'placement', PLACEMENT);
29
- }
30
- validateSize() {
31
- checkRequiredAndOneOf(this, 'size', SIZE);
32
- }
33
34
  componentDidLoad() {
35
+ if (globalThis.MutationObserver) {
36
+ this.mutationObserver = new MutationObserver(this.checkContent.bind(this));
37
+ this.mutationObserver.observe(this.host, {
38
+ childList: true,
39
+ });
40
+ }
34
41
  this.checkContent();
35
42
  }
36
- connectedCallback() {
37
- this.mutationObserver.observe(this.host, {
38
- childList: true,
39
- characterData: true,
40
- subtree: true,
41
- });
42
- }
43
43
  disconnectedCallback() {
44
44
  if (this.mutationObserver) {
45
45
  this.mutationObserver.disconnect();
46
46
  }
47
47
  }
48
48
  checkContent() {
49
- this.validateButtonType();
50
- this.validatePlacement();
51
- this.validateSize();
52
- if (!this.host.querySelector('.visually-hidden').textContent) {
49
+ const slot = this.visuallyHidden.querySelector('slot');
50
+ const hasContent = slot
51
+ ?.assignedNodes({ flatten: true })
52
+ .some(node => node.textContent?.trim());
53
+ if (!hasContent) {
53
54
  console.error(`The \`${this.host.localName}\` component requires content for accessibility.`);
54
55
  }
55
56
  }
57
+ handleClick() {
58
+ if (this.buttonType === 'reset')
59
+ this.internals.form?.reset();
60
+ this.host.closest('dialog')?.close();
61
+ }
56
62
  render() {
57
- return (h(Host, { key: 'ae74db094a2b1de985564d3f7528f78a98fd7ce9', "data-version": version }, h("button", { key: '7bab137e2dab6b3b405f486c10b3bbfbecdebafa', type: this.buttonType, class: "btn btn-icon btn-secondary btn-sm" }, h("post-icon", { key: 'ed323a3c13211f234551957a498f678e18ff4f66', "aria-hidden": "true", name: "closex" }), h("span", { key: 'aad44b5c93d357fab3d7cf537f477abd7c89f9be', class: "visually-hidden" }, h("slot", { key: 'd8424ae25100fc673188e3c77f89abe95847a38a' })))));
63
+ return (h(Host, { key: '55ec088421d5529b109a183b681a6e25e0fe9062', "data-version": version }, h("button", { key: '21e5bc2d1e305023530298c3750b4b8bb3f9705f', type: this.buttonType, class: "btn btn-icon btn-secondary btn-sm", onClick: () => this.handleClick() }, h("post-icon", { key: '456592d307bb7495712a645c234993ec1b5ec080', "aria-hidden": "true", name: "closex" }), h("span", { key: 'cea199698c413c94e12673df7b0769797f4d4f96', ref: el => (this.visuallyHidden = el), class: "visually-hidden" }, h("slot", { key: '7f9394eae2f4deb614f2aaac1dc697bec592d6db' })))));
58
64
  }
59
65
  static get is() { return "post-closebutton"; }
66
+ static get encapsulation() { return "shadow"; }
67
+ static get formAssociated() { return true; }
60
68
  static get originalStyleUrls() {
61
69
  return {
62
70
  "$": ["post-closebutton.scss"]
@@ -74,7 +82,7 @@ export class PostClosebutton {
74
82
  "mutable": false,
75
83
  "complexType": {
76
84
  "original": "ButtonType",
77
- "resolved": "\"button\" | \"reset\" | \"submit\"",
85
+ "resolved": "\"button\" | \"reset\"",
78
86
  "references": {
79
87
  "ButtonType": {
80
88
  "location": "import",
@@ -153,16 +161,16 @@ export class PostClosebutton {
153
161
  };
154
162
  }
155
163
  static get elementRef() { return "host"; }
156
- static get watchers() {
157
- return [{
158
- "propName": "buttonType",
159
- "methodName": "validateButtonType"
160
- }, {
161
- "propName": "placement",
162
- "methodName": "validatePlacement"
163
- }, {
164
- "propName": "size",
165
- "methodName": "validateSize"
166
- }];
167
- }
164
+ static get attachInternalsMemberName() { return "internals"; }
168
165
  }
166
+ __decorate([
167
+ OneOf(BUTTON_TYPES)
168
+ ], PostClosebutton.prototype, "buttonType", void 0);
169
+ __decorate([
170
+ Required(),
171
+ OneOf(PLACEMENT)
172
+ ], PostClosebutton.prototype, "placement", void 0);
173
+ __decorate([
174
+ Required(),
175
+ OneOf(SIZE)
176
+ ], PostClosebutton.prototype, "size", void 0);
@@ -1,3 +1,3 @@
1
- export const BUTTON_TYPES = ['button', 'submit', 'reset'];
1
+ export const BUTTON_TYPES = ['button', 'reset'];
2
2
  export const PLACEMENT = ['manual', 'auto'];
3
3
  export const SIZE = ['default', 'small'];
@@ -1,7 +1,17 @@
1
- import { h, Host, Build, } 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 { collapse, collapsedKeyframe, expand } from "../../animations/collapse";
12
+ import { Type } from "../../utils/index";
2
13
  import { version } from "../../../../package";
3
- import { collapsedKeyframe, collapse, expand } from "../../animations/collapse";
4
- import { checkEmptyOrType } from "../../utils/index";
14
+ import { Build, h, Host, } from "@stencil/core";
5
15
  /**
6
16
  * @slot default - Slot for placing content within the collapsible element.
7
17
  */
@@ -12,14 +22,10 @@ export class PostCollapsible {
12
22
  */
13
23
  this.collapsed = false;
14
24
  }
15
- collapsedChange() {
16
- checkEmptyOrType(this, 'collapsed', 'boolean');
17
- }
18
25
  get isExpanded() {
19
26
  return !this.collapsed;
20
27
  }
21
28
  componentDidLoad() {
22
- this.collapsedChange();
23
29
  this.updateTriggers();
24
30
  }
25
31
  /**
@@ -46,14 +52,21 @@ export class PostCollapsible {
46
52
  return isExpanded;
47
53
  }
48
54
  /**
49
- * Update all post-collapsible-trigger elements referring to the collapsible
55
+ * Update all post-collapsible-trigger elements referring to or wrapping the collapsible
50
56
  */
51
57
  updateTriggers() {
52
- const triggers = document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`);
58
+ const triggers = this.host.id
59
+ ? Array.from(document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`))
60
+ : [];
61
+ // also update an ancestor trigger when the collapsible is nested inside one
62
+ const nestedTrigger = this.host.closest('post-collapsible-trigger');
63
+ if (nestedTrigger && !triggers.includes(nestedTrigger)) {
64
+ triggers.push(nestedTrigger);
65
+ }
53
66
  triggers.forEach(trigger => trigger.update());
54
67
  }
55
68
  render() {
56
- return (h(Host, { key: 'd376f9ca2621660a062f3cb5ea0164df088d9e8e', "data-version": version, tabindex: this.collapsed ? -1 : undefined, style: this.collapsed ? collapsedKeyframe : undefined }, h("slot", { key: '1debe186e172e978b8a32388a0f5b26eb2a602b3' })));
69
+ return (h(Host, { key: '7a1dc10a27c1432342ac24e95e000a469b2bf509', "data-version": version, tabindex: this.collapsed ? -1 : undefined, style: this.collapsed ? collapsedKeyframe : undefined }, h("slot", { key: '51c156d51e4191d3dd6dd93b37317c02d9737bf9' })));
57
70
  }
58
71
  static get is() { return "post-collapsible"; }
59
72
  static get encapsulation() { return "shadow"; }
@@ -135,10 +148,7 @@ export class PostCollapsible {
135
148
  };
136
149
  }
137
150
  static get elementRef() { return "host"; }
138
- static get watchers() {
139
- return [{
140
- "propName": "collapsed",
141
- "methodName": "collapsedChange"
142
- }];
143
- }
144
151
  }
152
+ __decorate([
153
+ Type('boolean')
154
+ ], PostCollapsible.prototype, "collapsed", void 0);
@@ -8,16 +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";
11
+ import { EventFrom, getRoot, Type } from "../../utils/index";
12
12
  import { version } from "../../../../package";
13
- import { checkRequiredAndType, EventFrom, getRoot } from "../../utils/index";
13
+ import { h, Host } from "@stencil/core";
14
14
  export class PostCollapsibleTrigger {
15
- /**
16
- * Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
17
- */
18
- validateAriaAttributes() {
19
- checkRequiredAndType(this, 'for', 'string');
20
- }
21
15
  constructor() {
22
16
  this.observer = new MutationObserver(() => this.setTrigger());
23
17
  this.handlePostToggle = this.handlePostToggle.bind(this);
@@ -34,7 +28,10 @@ export class PostCollapsibleTrigger {
34
28
  this.setTrigger();
35
29
  if (!this.trigger)
36
30
  console.warn('The post-collapsible-trigger must contain a button.');
37
- this.validateAriaAttributes();
31
+ if (!this.collapsible) {
32
+ const target = this.for ? `with id "${this.for}"` : 'nested inside <post-collapsible-trigger>';
33
+ console.warn(`No post-collapsible found ${target}. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.`);
34
+ }
38
35
  }
39
36
  disconnectedCallback() {
40
37
  this.observer.disconnect();
@@ -56,18 +53,21 @@ export class PostCollapsibleTrigger {
56
53
  }
57
54
  }
58
55
  updateAriaAttributes() {
59
- if (!this.trigger)
56
+ const collapsible = this.collapsible;
57
+ if (!this.trigger || !collapsible)
60
58
  return;
61
- // add the provided id to the aria-controls list
59
+ // a nested collapsible may have no id, but aria-controls needs one to reference
60
+ collapsible.id || (collapsible.id = `collapsible-${crypto.randomUUID()}`);
61
+ const collapsibleId = collapsible.id;
62
+ // add the controlled collapsible's id to the aria-controls list
62
63
  const ariaControls = this.trigger.getAttribute('aria-controls');
63
- if (!ariaControls?.includes(this.for)) {
64
- const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
65
- this.trigger.setAttribute('aria-controls', newAriaControls);
64
+ const tokens = ariaControls ? ariaControls.split(/\s+/) : [];
65
+ if (!tokens.includes(collapsibleId)) {
66
+ tokens.push(collapsibleId);
67
+ this.trigger.setAttribute('aria-controls', tokens.join(' '));
66
68
  }
67
- // set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
68
- const isCollapsed = this.collapsible?.collapsed;
69
- const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
70
- this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
69
+ // set aria-expanded to `true` if expanded, `false` if collapsed (collapsed defaults to false)
70
+ this.trigger.setAttribute('aria-expanded', `${!collapsible.collapsed}`);
71
71
  }
72
72
  /**
73
73
  * Toggle the post-collapsible controlled by the trigger
@@ -79,7 +79,9 @@ export class PostCollapsibleTrigger {
79
79
  * Retrieve the post-collapsible controlled by the trigger
80
80
  */
81
81
  get collapsible() {
82
- const ref = this.root.getElementById(this.for);
82
+ // prefer a nested post-collapsible, fall back to an id reference via `for`
83
+ const ref = this.host.querySelector('post-collapsible') ??
84
+ (this.for ? this.root?.getElementById(this.for) ?? null : null);
83
85
  if (ref && ref.localName === 'post-collapsible') {
84
86
  return ref;
85
87
  }
@@ -89,7 +91,12 @@ export class PostCollapsibleTrigger {
89
91
  * Find the button and add the proper event listener and ARIA attributes to it
90
92
  */
91
93
  setTrigger() {
92
- const trigger = this.host.querySelector('button');
94
+ // skip buttons that belong to a nested collapsible's content
95
+ const trigger = Array.from(this.host.querySelectorAll('button')).find(button => {
96
+ const collapsible = button.closest('post-collapsible');
97
+ const isInsidePanel = !!collapsible && this.host.contains(collapsible);
98
+ return !isInsidePanel;
99
+ });
93
100
  if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
94
101
  return;
95
102
  this.trigger = trigger;
@@ -97,7 +104,7 @@ export class PostCollapsibleTrigger {
97
104
  this.updateAriaAttributes();
98
105
  }
99
106
  render() {
100
- return (h(Host, { key: 'f5055d5970eb900d345957f306c9a373680f257a', "data-version": version }, h("slot", { key: 'cf63bdbca00602b9c4e2a81f28723bd274561045' })));
107
+ return (h(Host, { key: 'bc4bdfbfa942e0a70d0f7af3b0d33eed4341ebb6', "data-version": version }, h("slot", { key: '8770e4a22cbb06c39e1c94e2e358256c1a5509f7' })));
101
108
  }
102
109
  static get is() { return "post-collapsible-trigger"; }
103
110
  static get encapsulation() { return "shadow"; }
@@ -111,11 +118,11 @@ export class PostCollapsibleTrigger {
111
118
  "resolved": "string",
112
119
  "references": {}
113
120
  },
114
- "required": true,
115
- "optional": false,
121
+ "required": false,
122
+ "optional": true,
116
123
  "docs": {
117
124
  "tags": [],
118
- "text": "Link the trigger to a post-collapsible with this id"
125
+ "text": "Link the trigger to a post-collapsible by its ID.\nIf omitted, a post-collapsible nested directly inside this element is used instead."
119
126
  },
120
127
  "getter": false,
121
128
  "setter": false,
@@ -146,13 +153,10 @@ export class PostCollapsibleTrigger {
146
153
  };
147
154
  }
148
155
  static get elementRef() { return "host"; }
149
- static get watchers() {
150
- return [{
151
- "propName": "for",
152
- "methodName": "validateAriaAttributes"
153
- }];
154
- }
155
156
  }
157
+ __decorate([
158
+ Type('string')
159
+ ], PostCollapsibleTrigger.prototype, "for", void 0);
156
160
  __decorate([
157
161
  EventFrom('post-collapsible')
158
162
  ], PostCollapsibleTrigger.prototype, "handlePostToggle", null);