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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/cjs/breakpoints-B0Olgvgc.js +206 -0
  2. package/dist/cjs/component-on-ready-CifOTqw1.js +24 -0
  3. package/dist/cjs/create-validator-decorator-Bnx17kwi.js +223 -0
  4. package/dist/cjs/{focusable-ZqET_zrB.js → focusable-COT2uiEV.js} +25 -4
  5. package/dist/cjs/{index-DPdHkdGf.js → index-ngUOBQot.js} +17 -13
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/nanoid-CmjyF1Cm.js +20 -0
  8. package/dist/cjs/one-of-BHyX4vYq.js +27 -0
  9. package/dist/cjs/{package-Ds_LS1pB.js → package-Bi-tiNRc.js} +1 -1
  10. package/dist/cjs/pattern-BgBx5zGQ.js +27 -0
  11. package/dist/cjs/post-accordion_2.cjs.entry.js +18 -24
  12. package/dist/cjs/post-autocomplete.cjs.entry.js +27 -14
  13. package/dist/cjs/post-avatar.cjs.entry.js +33 -54
  14. package/dist/cjs/post-back-to-top.cjs.entry.js +21 -12
  15. package/dist/cjs/post-banner.cjs.entry.js +9 -14
  16. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +48 -41
  17. package/dist/cjs/post-breadcrumbs.cjs.entry.js +106 -105
  18. package/dist/cjs/post-closebutton_14.cjs.entry.js +257 -288
  19. package/dist/cjs/post-collapsible_2.cjs.entry.js +57 -40
  20. package/dist/cjs/post-components.cjs.js +2 -2
  21. package/dist/cjs/post-date-picker.cjs.entry.js +154 -144
  22. package/dist/cjs/post-footer.cjs.entry.js +26 -19
  23. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  24. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  25. package/dist/cjs/post-listbox.cjs.entry.js +4 -6
  26. package/dist/cjs/post-login-widget.cjs.entry.js +35 -3
  27. package/dist/cjs/post-number-input.cjs.entry.js +6 -6
  28. package/dist/cjs/post-pagination.cjs.entry.js +53 -83
  29. package/dist/cjs/post-popover-trigger.cjs.entry.js +22 -19
  30. package/dist/cjs/post-popover.cjs.entry.js +25 -23
  31. package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
  32. package/dist/cjs/post-rating.cjs.entry.js +34 -35
  33. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  34. package/dist/cjs/post-stepper.cjs.entry.js +49 -38
  35. package/dist/cjs/post-tab-item.cjs.entry.js +23 -15
  36. package/dist/cjs/post-tab-panel.cjs.entry.js +23 -16
  37. package/dist/cjs/post-tabs.cjs.entry.js +24 -30
  38. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +34 -21
  39. package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
  40. package/dist/cjs/required-lRDOdbd6.js +44 -0
  41. package/dist/cjs/type-shT641Eo.js +30 -0
  42. package/dist/cjs/url-DRUMqVBq.js +34 -0
  43. package/dist/collection/collection-manifest.json +1 -0
  44. package/dist/collection/components/post-accordion/post-accordion.js +11 -8
  45. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -18
  46. package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
  47. package/dist/collection/components/post-avatar/avatar-utils.js +2 -2
  48. package/dist/collection/components/post-avatar/post-avatar.js +29 -72
  49. package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
  50. package/dist/collection/components/post-banner/post-banner.js +7 -14
  51. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
  52. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +92 -47
  53. package/dist/collection/components/post-breadcrumb-item/variants.js +1 -0
  54. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  55. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +110 -114
  56. package/dist/collection/components/post-closebutton/post-closebutton.js +24 -27
  57. package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
  58. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
  59. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  60. package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
  61. package/dist/collection/components/post-footer/post-footer.js +17 -13
  62. package/dist/collection/components/post-header/post-header.js +18 -24
  63. package/dist/collection/components/post-icon/post-icon.js +36 -48
  64. package/dist/collection/components/post-language-menu/post-language-menu.js +16 -22
  65. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
  66. package/dist/collection/components/post-linkarea/post-linkarea.js +2 -2
  67. package/dist/collection/components/post-listbox/post-listbox.js +3 -5
  68. package/dist/collection/components/post-listbox-option/post-listbox-option.js +3 -3
  69. package/dist/collection/components/post-login-widget/post-login-widget.css +1 -0
  70. package/dist/collection/components/post-login-widget/post-login-widget.js +103 -5
  71. package/dist/collection/components/post-logo/post-logo.js +16 -13
  72. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
  73. package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
  74. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
  75. package/dist/collection/components/post-menu/post-menu.js +14 -24
  76. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  77. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
  78. package/dist/collection/components/post-number-input/post-number-input.js +5 -5
  79. package/dist/collection/components/post-pagination/post-pagination.js +47 -83
  80. package/dist/collection/components/post-popover/post-popover.js +20 -22
  81. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
  82. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  83. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +28 -34
  84. package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
  85. package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
  86. package/dist/collection/components/post-rating/post-rating.js +25 -29
  87. package/dist/collection/components/post-stepper/post-stepper.js +44 -36
  88. package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
  89. package/dist/collection/components/post-tab-item/post-tab-item.js +17 -13
  90. package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -14
  91. package/dist/collection/components/post-tabs/post-tabs.js +20 -7
  92. package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
  93. package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
  94. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +30 -19
  95. package/dist/collection/hydrate-stub/index.stub.js +5 -0
  96. package/dist/collection/test-setup.js +7 -0
  97. package/dist/collection/utils/index.js +4 -3
  98. package/dist/collection/utils/is-value-empty.js +1 -1
  99. package/dist/collection/utils/locales.js +9 -2
  100. package/dist/collection/utils/nanoid.js +16 -0
  101. package/dist/collection/utils/property-decorators/array-of.js +22 -0
  102. package/dist/collection/utils/property-decorators/bound.js +75 -0
  103. package/dist/collection/utils/property-decorators/create-validator-decorator.js +211 -0
  104. package/dist/collection/utils/property-decorators/date.js +21 -0
  105. package/dist/collection/utils/property-decorators/index.js +9 -0
  106. package/dist/collection/utils/property-decorators/iso-date.js +21 -0
  107. package/dist/collection/utils/property-decorators/one-of.js +22 -0
  108. package/dist/collection/utils/property-decorators/pattern.js +22 -0
  109. package/dist/collection/utils/property-decorators/required.js +40 -0
  110. package/dist/collection/utils/property-decorators/type.js +25 -0
  111. package/dist/collection/utils/property-decorators/url.js +29 -0
  112. package/dist/component-names.json +1 -0
  113. package/dist/components/breakpoints.js +1 -0
  114. package/dist/components/component-on-ready.js +1 -0
  115. package/dist/components/focusable.js +1 -1
  116. package/dist/components/index.d.ts +2 -0
  117. package/dist/components/index.js +1 -1
  118. package/dist/components/nanoid.js +1 -0
  119. package/dist/components/one-of.js +1 -0
  120. package/dist/components/package.js +1 -1
  121. package/dist/components/pattern.js +1 -0
  122. package/dist/components/post-accordion-item2.js +1 -1
  123. package/dist/components/post-accordion2.js +1 -1
  124. package/dist/components/post-autocomplete.js +1 -1
  125. package/dist/components/post-avatar.js +1 -1
  126. package/dist/components/post-avatar2.js +1 -0
  127. package/dist/components/post-back-to-top.js +1 -1
  128. package/dist/components/post-banner.js +1 -1
  129. package/dist/components/post-breadcrumb-item.js +1 -1
  130. package/dist/components/post-breadcrumbs.js +1 -1
  131. package/dist/components/post-closebutton2.js +1 -1
  132. package/dist/components/post-collapsible-trigger2.js +1 -1
  133. package/dist/components/post-collapsible2.js +1 -1
  134. package/dist/components/post-date-picker.js +1 -1
  135. package/dist/components/post-footer.js +1 -1
  136. package/dist/components/post-header.js +1 -1
  137. package/dist/components/post-icon2.js +1 -1
  138. package/dist/components/post-language-menu-item.js +1 -1
  139. package/dist/components/post-language-menu.js +1 -1
  140. package/dist/components/post-linkarea.js +1 -1
  141. package/dist/components/post-listbox-option.js +1 -1
  142. package/dist/components/post-listbox.js +1 -1
  143. package/dist/components/post-login-widget.js +1 -1
  144. package/dist/components/post-logo.js +1 -1
  145. package/dist/components/post-mainnavigation.js +1 -1
  146. package/dist/components/post-megadropdown-trigger.js +1 -1
  147. package/dist/components/post-megadropdown.js +1 -1
  148. package/dist/components/post-menu-item2.js +1 -1
  149. package/dist/components/post-menu-trigger2.js +1 -1
  150. package/dist/components/post-menu2.js +1 -1
  151. package/dist/components/post-number-input.js +1 -1
  152. package/dist/components/post-pagination.js +1 -1
  153. package/dist/components/post-popover-trigger.js +1 -1
  154. package/dist/components/post-popover.js +1 -1
  155. package/dist/components/post-popovercontainer2.js +1 -1
  156. package/dist/components/post-progressbar.d.ts +11 -0
  157. package/dist/components/post-progressbar.js +1 -0
  158. package/dist/components/post-rating.js +1 -1
  159. package/dist/components/post-stepper-item.js +1 -1
  160. package/dist/components/post-stepper.js +1 -1
  161. package/dist/components/post-tab-item.js +1 -1
  162. package/dist/components/post-tab-panel.js +1 -1
  163. package/dist/components/post-tabs.js +1 -1
  164. package/dist/components/post-togglebutton2.js +1 -1
  165. package/dist/components/post-tooltip-trigger.js +1 -1
  166. package/dist/components/post-tooltip.js +1 -1
  167. package/dist/components/react/index.js +1 -1
  168. package/dist/components/react/p-4wtxqxXu.js +1 -0
  169. package/dist/components/react/p-85IGlhtB.js +1 -0
  170. package/dist/components/react/p-8LXe8Zt_.js +1 -0
  171. package/dist/components/react/p-B9ZFuYey.js +1 -0
  172. package/dist/components/react/p-BXqGI600.js +1 -0
  173. package/dist/components/react/p-BZSAV0-K.js +1 -0
  174. package/dist/components/react/p-B_WnO-QF.js +1 -0
  175. package/dist/components/react/p-BaB8wJvk.js +1 -0
  176. package/dist/components/react/p-Bg9dtyzK.js +1 -0
  177. package/dist/components/react/p-Bji_4dfL.js +1 -0
  178. package/dist/components/react/p-Bn66acGG.js +1 -0
  179. package/dist/components/react/p-BrY4VWTQ.js +1 -0
  180. package/dist/components/react/p-Bu2JeHDf.js +1 -0
  181. package/dist/components/react/p-BxoRVIIr.js +1 -0
  182. package/dist/components/react/p-CX2E_IXB.js +1 -0
  183. package/dist/components/react/p-Cd1TsNm7.js +1 -0
  184. package/dist/components/react/p-CkTAQJGd.js +1 -0
  185. package/dist/components/react/p-ClG-N42b.js +1 -0
  186. package/dist/components/react/p-D1zw8FxT.js +1 -0
  187. package/dist/components/react/p-DwuW52g5.js +1 -0
  188. package/dist/components/react/p-PM7l--ff.js +1 -0
  189. package/dist/components/react/p-lpWRZjJp.js +1 -0
  190. package/dist/components/react/post-accordion-item.js +1 -1
  191. package/dist/components/react/post-accordion.js +1 -1
  192. package/dist/components/react/post-autocomplete.js +1 -1
  193. package/dist/components/react/post-avatar.js +1 -1
  194. package/dist/components/react/post-back-to-top.js +1 -1
  195. package/dist/components/react/post-banner.js +1 -1
  196. package/dist/components/react/post-breadcrumb-item.js +1 -1
  197. package/dist/components/react/post-breadcrumbs.js +1 -1
  198. package/dist/components/react/post-closebutton.js +1 -1
  199. package/dist/components/react/post-collapsible-trigger.js +1 -1
  200. package/dist/components/react/post-collapsible.js +1 -1
  201. package/dist/components/react/post-date-picker.js +1 -1
  202. package/dist/components/react/post-footer.js +1 -1
  203. package/dist/components/react/post-header.js +1 -1
  204. package/dist/components/react/post-icon.js +1 -1
  205. package/dist/components/react/post-language-menu-item.js +1 -1
  206. package/dist/components/react/post-language-menu.js +1 -1
  207. package/dist/components/react/post-linkarea.js +1 -1
  208. package/dist/components/react/post-listbox-option.js +1 -1
  209. package/dist/components/react/post-listbox.js +1 -1
  210. package/dist/components/react/post-login-widget.js +1 -1
  211. package/dist/components/react/post-logo.js +1 -1
  212. package/dist/components/react/post-mainnavigation.js +1 -1
  213. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  214. package/dist/components/react/post-megadropdown.js +1 -1
  215. package/dist/components/react/post-menu-item.js +1 -1
  216. package/dist/components/react/post-menu-trigger.js +1 -1
  217. package/dist/components/react/post-menu.js +1 -1
  218. package/dist/components/react/post-number-input.js +1 -1
  219. package/dist/components/react/post-pagination.js +1 -1
  220. package/dist/components/react/post-popover-trigger.js +1 -1
  221. package/dist/components/react/post-popover.js +1 -1
  222. package/dist/components/react/post-popovercontainer.js +1 -1
  223. package/dist/components/react/post-progressbar.d.ts +11 -0
  224. package/dist/components/react/post-progressbar.js +1 -0
  225. package/dist/components/react/post-rating.js +1 -1
  226. package/dist/components/react/post-stepper-item.js +1 -1
  227. package/dist/components/react/post-stepper.js +1 -1
  228. package/dist/components/react/post-tab-item.js +1 -1
  229. package/dist/components/react/post-tab-panel.js +1 -1
  230. package/dist/components/react/post-tabs.js +1 -1
  231. package/dist/components/react/post-togglebutton.js +1 -1
  232. package/dist/components/react/post-tooltip-trigger.js +1 -1
  233. package/dist/components/react/post-tooltip.js +1 -1
  234. package/dist/components/required.js +1 -0
  235. package/dist/components/type.js +1 -0
  236. package/dist/components/url.js +1 -0
  237. package/dist/docs.json +307 -72
  238. package/dist/esm/breakpoints-BQ3HlJPr.js +202 -0
  239. package/dist/esm/component-on-ready-lpWRZjJp.js +22 -0
  240. package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
  241. package/dist/esm/{focusable-BD_WT2MO.js → focusable-C7afHKmo.js} +25 -5
  242. package/dist/esm/{index-DmAi35UF.js → index-BbDawWJ5.js} +17 -13
  243. package/dist/esm/loader.js +3 -3
  244. package/dist/esm/nanoid-8LXe8Zt_.js +18 -0
  245. package/dist/esm/one-of-GPr3FflU.js +25 -0
  246. package/dist/esm/package-ClG-N42b.js +3 -0
  247. package/dist/esm/pattern-BWPRYpYv.js +25 -0
  248. package/dist/esm/post-accordion_2.entry.js +17 -23
  249. package/dist/esm/post-autocomplete.entry.js +27 -14
  250. package/dist/esm/post-avatar.entry.js +33 -54
  251. package/dist/esm/post-back-to-top.entry.js +21 -12
  252. package/dist/esm/post-banner.entry.js +9 -14
  253. package/dist/esm/post-breadcrumb-item.entry.js +48 -41
  254. package/dist/esm/post-breadcrumbs.entry.js +106 -105
  255. package/dist/esm/post-closebutton_14.entry.js +252 -283
  256. package/dist/esm/post-collapsible_2.entry.js +57 -40
  257. package/dist/esm/post-components.js +3 -3
  258. package/dist/esm/post-date-picker.entry.js +151 -141
  259. package/dist/esm/post-footer.entry.js +21 -14
  260. package/dist/esm/post-linkarea.entry.js +3 -3
  261. package/dist/esm/post-listbox-option.entry.js +4 -4
  262. package/dist/esm/post-listbox.entry.js +4 -6
  263. package/dist/esm/post-login-widget.entry.js +35 -3
  264. package/dist/esm/post-number-input.entry.js +5 -5
  265. package/dist/esm/post-pagination.entry.js +52 -82
  266. package/dist/esm/post-popover-trigger.entry.js +20 -17
  267. package/dist/esm/post-popover.entry.js +25 -23
  268. package/dist/esm/post-progressbar.entry.js +145 -0
  269. package/dist/esm/post-rating.entry.js +29 -30
  270. package/dist/esm/post-stepper-item.entry.js +3 -3
  271. package/dist/esm/post-stepper.entry.js +49 -38
  272. package/dist/esm/post-tab-item.entry.js +22 -14
  273. package/dist/esm/post-tab-panel.entry.js +22 -15
  274. package/dist/esm/post-tabs.entry.js +23 -29
  275. package/dist/esm/post-tooltip-trigger.entry.js +34 -21
  276. package/dist/esm/post-tooltip.entry.js +19 -16
  277. package/dist/esm/required-uK-rZZjy.js +42 -0
  278. package/dist/esm/type-obmwEgkM.js +28 -0
  279. package/dist/esm/url-B28ByZCe.js +32 -0
  280. package/dist/post-components/p-00f55af5.entry.js +1 -0
  281. package/dist/post-components/p-0288484f.entry.js +1 -0
  282. package/dist/post-components/p-07cdd022.entry.js +1 -0
  283. package/dist/post-components/{p-c2e05ba0.entry.js → p-12047216.entry.js} +1 -1
  284. package/dist/post-components/p-17df4e91.entry.js +1 -0
  285. package/dist/post-components/p-17e046fa.entry.js +1 -0
  286. package/dist/post-components/p-29bd31a0.entry.js +1 -0
  287. package/dist/post-components/p-2c6b4e6a.entry.js +1 -0
  288. package/dist/post-components/p-3b05e01d.entry.js +1 -0
  289. package/dist/post-components/p-53fd5230.entry.js +1 -0
  290. package/dist/post-components/p-5b7e6369.entry.js +1 -0
  291. package/dist/post-components/p-5f4ca179.entry.js +1 -0
  292. package/dist/post-components/p-62b6154a.entry.js +1 -0
  293. package/dist/post-components/{p-77d5e17b.entry.js → p-686a6e22.entry.js} +1 -1
  294. package/dist/post-components/p-758fc84f.entry.js +1 -0
  295. package/dist/post-components/{p-570d64dd.entry.js → p-7f929bb9.entry.js} +1 -1
  296. package/dist/post-components/p-8LXe8Zt_.js +1 -0
  297. package/dist/post-components/p-9865f72c.entry.js +1 -0
  298. package/dist/post-components/p-99803d57.entry.js +1 -0
  299. package/dist/post-components/p-BQ3HlJPr.js +1 -0
  300. package/dist/post-components/p-BRNqUiXj.js +1 -0
  301. package/dist/post-components/p-BbDawWJ5.js +2 -0
  302. package/dist/post-components/p-BrY4VWTQ.js +1 -0
  303. package/dist/post-components/p-CVsNfXZd.js +1 -0
  304. package/dist/post-components/p-Ck2qPht6.js +1 -0
  305. package/dist/post-components/p-ClG-N42b.js +1 -0
  306. package/dist/post-components/p-D4F0BqBW.js +1 -0
  307. package/dist/post-components/p-DSNGJB58.js +1 -0
  308. package/dist/post-components/p-IUnDBhPg.js +1 -0
  309. package/dist/post-components/p-a0e0a760.entry.js +1 -0
  310. package/dist/post-components/p-a850652d.entry.js +1 -0
  311. package/dist/post-components/p-aac1a8ea.entry.js +1 -0
  312. package/dist/post-components/{p-092f8795.entry.js → p-b3f0f9a2.entry.js} +1 -1
  313. package/dist/post-components/p-c37dba4b.entry.js +1 -0
  314. package/dist/post-components/p-d061773b.entry.js +1 -0
  315. package/dist/post-components/p-e2370e94.entry.js +1 -0
  316. package/dist/post-components/p-f1ca1d3f.entry.js +1 -0
  317. package/dist/post-components/p-f2e5f44e.entry.js +1 -0
  318. package/dist/post-components/p-ff98ada4.entry.js +1 -0
  319. package/dist/post-components/p-lpWRZjJp.js +1 -0
  320. package/dist/post-components/post-components.css +2 -2
  321. package/dist/post-components/post-components.esm.js +1 -1
  322. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  323. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
  324. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
  325. package/dist/types/components/post-avatar/avatar-utils.d.ts +1 -1
  326. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -13
  327. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
  328. package/dist/types/components/post-banner/post-banner.d.ts +0 -1
  329. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +11 -11
  330. package/dist/types/components/post-breadcrumb-item/variants.d.ts +2 -0
  331. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +20 -26
  332. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -3
  333. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
  334. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
  335. package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
  336. package/dist/types/components/post-footer/post-footer.d.ts +0 -1
  337. package/dist/types/components/post-header/post-header.d.ts +0 -2
  338. package/dist/types/components/post-icon/post-icon.d.ts +0 -6
  339. package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
  340. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
  341. package/dist/types/components/post-login-widget/post-login-widget.d.ts +17 -2
  342. package/dist/types/components/post-logo/post-logo.d.ts +0 -1
  343. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  344. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
  345. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
  346. package/dist/types/components/post-menu/post-menu.d.ts +1 -4
  347. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
  348. package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
  349. package/dist/types/components/post-popover/post-popover.d.ts +0 -3
  350. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
  351. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
  352. package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
  353. package/dist/types/components/post-rating/post-rating.d.ts +0 -4
  354. package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
  355. package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
  356. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
  357. package/dist/types/components/post-tooltip/post-tooltip.d.ts +1 -3
  358. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +1 -1
  359. package/dist/types/components.d.ts +119 -29
  360. package/dist/types/modules.d.ts +2 -0
  361. package/dist/types/utils/index.d.ts +4 -3
  362. package/dist/types/utils/nanoid.d.ts +8 -0
  363. package/dist/types/utils/property-decorators/array-of.d.ts +9 -0
  364. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  365. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +48 -0
  366. package/dist/types/utils/property-decorators/date.d.ts +6 -0
  367. package/dist/types/utils/property-decorators/index.d.ts +9 -0
  368. package/dist/types/utils/property-decorators/iso-date.d.ts +6 -0
  369. package/dist/types/utils/property-decorators/one-of.d.ts +8 -0
  370. package/dist/types/utils/property-decorators/pattern.d.ts +8 -0
  371. package/dist/types/utils/property-decorators/required.d.ts +17 -0
  372. package/dist/types/utils/property-decorators/type.d.ts +9 -0
  373. package/dist/types/utils/property-decorators/url.d.ts +6 -0
  374. package/hydrate/index.js +1536 -115469
  375. package/hydrate/index.mjs +1536 -115469
  376. package/hydrate/index.stub.js +5 -0
  377. package/package.json +28 -18
  378. package/dist/cjs/index-YBj3gUJp.js +0 -114540
  379. package/dist/cjs/index-qCzRmwgB.js +0 -114
  380. package/dist/cjs/index.browser-BVb9l9T_.js +0 -16
  381. package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
  382. package/dist/collection/utils/property-checkers/check-date.js +0 -13
  383. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
  384. package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
  385. package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
  386. package/dist/collection/utils/property-checkers/check-type.js +0 -15
  387. package/dist/collection/utils/property-checkers/check-url.js +0 -15
  388. package/dist/collection/utils/property-checkers/constants.js +0 -1
  389. package/dist/collection/utils/property-checkers/empty-or.js +0 -9
  390. package/dist/collection/utils/property-checkers/index.js +0 -20
  391. package/dist/collection/utils/property-checkers/required-and.js +0 -14
  392. package/dist/components/heading-levels.js +0 -1
  393. package/dist/components/index.browser.js +0 -1
  394. package/dist/components/index2.js +0 -1
  395. package/dist/components/index3.js +0 -6
  396. package/dist/components/post-breadcrumb-item2.js +0 -1
  397. package/dist/components/react/p-B076QoO3.js +0 -1
  398. package/dist/components/react/p-B2BDAeHI.js +0 -1
  399. package/dist/components/react/p-B2iQay0-.js +0 -1
  400. package/dist/components/react/p-B_RL4AOE.js +0 -1
  401. package/dist/components/react/p-BoFDru4R.js +0 -1
  402. package/dist/components/react/p-BuL0WAoF.js +0 -1
  403. package/dist/components/react/p-C8b6-YQl.js +0 -1
  404. package/dist/components/react/p-CJcRbvrI.js +0 -6
  405. package/dist/components/react/p-Cu9RsvYK.js +0 -1
  406. package/dist/components/react/p-D6uA8DbL.js +0 -1
  407. package/dist/components/react/p-DSSN7xW4.js +0 -1
  408. package/dist/components/react/p-DW7sbg9f.js +0 -1
  409. package/dist/components/react/p-DgdnwpId.js +0 -1
  410. package/dist/components/react/p-Dmnnz3fB.js +0 -1
  411. package/dist/components/react/p-PuHMz_9_.js +0 -1
  412. package/dist/components/react/p-nA1BKco0.js +0 -1
  413. package/dist/components/react/p-r4txK0AC.js +0 -1
  414. package/dist/components/react/p-tpgRP2Dr.js +0 -1
  415. package/dist/esm/index-CJcRbvrI.js +0 -114535
  416. package/dist/esm/index-D9bU2pIE.js +0 -104
  417. package/dist/esm/index.browser-nA1BKco0.js +0 -14
  418. package/dist/esm/package-DW7sbg9f.js +0 -3
  419. package/dist/post-components/p-17ccebe6.entry.js +0 -1
  420. package/dist/post-components/p-1d58bec1.entry.js +0 -1
  421. package/dist/post-components/p-25c28493.entry.js +0 -1
  422. package/dist/post-components/p-29ada3d7.entry.js +0 -1
  423. package/dist/post-components/p-2fcca5ec.entry.js +0 -1
  424. package/dist/post-components/p-3cefd49e.entry.js +0 -1
  425. package/dist/post-components/p-3fea238c.entry.js +0 -1
  426. package/dist/post-components/p-5068ae7e.entry.js +0 -1
  427. package/dist/post-components/p-521178f5.entry.js +0 -1
  428. package/dist/post-components/p-534fed55.entry.js +0 -1
  429. package/dist/post-components/p-5f52cba3.entry.js +0 -1
  430. package/dist/post-components/p-86697a58.entry.js +0 -1
  431. package/dist/post-components/p-987bebe8.entry.js +0 -1
  432. package/dist/post-components/p-9ca5c297.entry.js +0 -1
  433. package/dist/post-components/p-9ea3066f.entry.js +0 -1
  434. package/dist/post-components/p-CJcRbvrI.js +0 -6
  435. package/dist/post-components/p-D9bU2pIE.js +0 -1
  436. package/dist/post-components/p-DW7sbg9f.js +0 -1
  437. package/dist/post-components/p-DmAi35UF.js +0 -2
  438. package/dist/post-components/p-PuHMz_9_.js +0 -1
  439. package/dist/post-components/p-a6fc33fa.entry.js +0 -1
  440. package/dist/post-components/p-ac853d6b.entry.js +0 -1
  441. package/dist/post-components/p-bd09bc20.entry.js +0 -1
  442. package/dist/post-components/p-c55b537b.entry.js +0 -1
  443. package/dist/post-components/p-dded4f13.entry.js +0 -1
  444. package/dist/post-components/p-e6ba44b1.entry.js +0 -1
  445. package/dist/post-components/p-ead1094e.entry.js +0 -1
  446. package/dist/post-components/p-f12e59a0.entry.js +0 -1
  447. package/dist/post-components/p-nA1BKco0.js +0 -1
  448. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +0 -1
  449. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
  450. package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
  451. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
  452. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
  453. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
  454. package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
  455. package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
  456. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  457. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
  458. package/dist/types/utils/property-checkers/index.d.ts +0 -34
  459. package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
  460. /package/dist/types/{language-tags.js → test-setup.d.ts} +0 -0
@@ -1 +1 @@
1
- import{P as o,d as r}from"./post-breadcrumb-item2.js";const s=o,t=r;export{s as PostBreadcrumbItem,t as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,h as o,Host as i,transformTag as s}from"@stencil/core/internal/client";import"./breakpoints.js";import{v as r}from"./package.js";import{d as a}from"./post-menu-item2.js";import{U as c}from"./url.js";import{T as n}from"./type.js";import{O as l}from"./one-of.js";import{R as d}from"./required.js";var u=function(t,e,o,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(r<3?s(a):r>3?s(e,o,a):s(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="listitem",this.selected=!1}render(){const t=this.url instanceof URL?this.url.href:this.url,e=t?o("a",{href:t,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},o("slot",null)):o("span",null,o("slot",null));return"listitem"===this.variant||this.selected?o(i,{"data-version":r,role:"listitem",slot:this.selected?"selected":void 0},e):o(i,{"data-version":r},o("post-menu-item",null,e))}get host(){return this}static get style(){return'a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}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}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){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){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){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){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}}:host(:not([variant=menuitem])){display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}:host(:not([variant=menuitem])) :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)}:host(:not([variant=menuitem])) :is(button,a):hover{text-decoration:none}:host(:not([variant=menuitem])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}:host(:not([variant=menuitem])) :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}:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :is(button,a):is(a){color:LinkText;border:unset}:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host(:not([variant=menuitem])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host(:not([variant=menuitem]))::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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host :is(a,span){margin-block:var(--post-device-spacing-padding-block-6)}:host([selected]:not([selected=false])){display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}:host([selected]:not([selected=false])) :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)}:host([selected]:not([selected=false])) :is(button,a):hover{text-decoration:none}:host([selected]:not([selected=false])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}:host([selected]:not([selected=false])) :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}:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :is(button,a):is(a){color:LinkText;border:unset}:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host([selected]:not([selected=false])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host([selected]:not([selected=false]))::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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false]):not([data-measuring])){align-items:start}:host([selected]:not([selected=false]):not([data-measuring])) :is(a,span){white-space:normal;overflow-wrap:anywhere}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]}]);u([c()],g.prototype,"url",void 0),u([n("string")],g.prototype,"label",void 0),u([n("string")],g.prototype,"description",void 0),u([l(["listitem","menuitem"])],g.prototype,"variant",void 0),u([d(),n("boolean")],g.prototype,"selected",void 0);const M=g,h=function(){"undefined"!=typeof customElements&&["post-breadcrumb-item","post-menu-item"].forEach((t=>{switch(t){case"post-breadcrumb-item":customElements.get(s(t))||customElements.define(s(t),g);break;case"post-menu-item":customElements.get(s(t))||a()}}))};export{M as PostBreadcrumbItem,h as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as e,HTMLElement as t,h as i,Host as o,transformTag as r}from"@stencil/core/internal/client";import{v as s}from"./package.js";import{e as a,c as n}from"./index2.js";import"./index3.js";import{d as c}from"./debounce.js";import{d}from"./post-breadcrumb-item2.js";import{d as l}from"./post-icon2.js";import{d as m}from"./post-menu2.js";import{d as p}from"./post-menu-item2.js";import{d as u}from"./post-menu-trigger2.js";import{d as b}from"./post-popovercontainer2.js";const h=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.breadcrumbItems=[],this.waitForBreadcrumbsRef=c((()=>{this.breadcrumbsNavRef?.clientWidth>0?this.checkConcatenation():this.waitForBreadcrumbsRef()}),50),this.handleResize=()=>{window.innerWidth!==this.lastWindowWidth&&(this.lastWindowWidth=window.innerWidth,this.checkConcatenation())}}validateHomeUrl(){a(this,"homeUrl")}validateTextHome(){n(this,"textHome","string")}validateTextBreadcrumbs(){n(this,"textBreadcrumbs","string")}validateTextMoreItems(){n(this,"textMoreItems","string")}componentDidLoad(){this.validateHomeUrl(),this.validateTextHome(),this.validateTextBreadcrumbs(),this.validateTextMoreItems(),window.addEventListener("resize",this.handleResize),this.waitForBreadcrumbsRef(),requestAnimationFrame((()=>{this.updateBreadcrumbItems()}))}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateBreadcrumbItems(){this.breadcrumbItems=Array.from(this.host.querySelectorAll("post-breadcrumb-item")).map((e=>({text:e.textContent||"",url:e.getAttribute("url")??void 0,description:e.getAttribute("description")??void 0,label:e.getAttribute("label")??void 0}))),this.lastItem=this.breadcrumbItems.at(-1)}getParentWidth(){let e=this.host.parentNode;for(;e&&!(e instanceof t);)e=e.parentNode;return e instanceof t?e.clientWidth:window.innerWidth}checkConcatenation(){if(!this.breadcrumbsNavRef)return;const e=this.getParentWidth(),t=Array.from(this.host.shadowRoot?.querySelectorAll(".hidden-breadcrumb-item")||[]).reduce(((e,t)=>e+t.getBoundingClientRect().width),0);this.isConcatenated=t>e}handleBreadcrumbItemClick(){if(this.host.shadowRoot){const e=this.host.shadowRoot?.querySelector(".menu-trigger-wrapper")?.querySelector("button");e&&e.click()}}render(){const e=this.breadcrumbItems.slice(0,-1);return i(o,{key:"4c0030c6896fa3bbbb26a26668a3b2cf96a110a9","data-version":s},i("nav",{key:"80834fa5581243a5cd081626ba743a29a2498502","aria-label":this.textBreadcrumbs,class:"breadcrumbs-nav",ref:e=>this.breadcrumbsNavRef=e},i("ol",{key:"925aff0f9f19ef04e339ead446f5e4d4449b73ec",class:"no-list breadcrumbs-list"},i("li",{key:"6dd10b7af11f6a63c27dc018dc49cdc8e85f7dcd"},i("a",{key:"3c6db30d34a5f4d176b6127bc0ccb8fe733846af",href:this.homeUrl,class:"breadcrumb-link"},i("span",{key:"9a78ed7042859125d32374885c0ce7426e2ff114",class:"visually-hidden"},this.textHome),i("post-icon",{key:"096eaf22ab0f381de0b4a93a65972718101b2d4e",name:"home",class:"home-icon"}))),this.isConcatenated?i("li",{class:"menu-trigger-wrapper"},i("post-icon",{name:"chevronright",class:"breadcrumb-item-icon"}),i("div",{class:"actual-menu"},i("post-menu-trigger",{for:"breadcrumb-menu",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleBreadcrumbItemClick())}},i("button",{class:"btn",tabIndex:-1},"...")),i("post-menu",{id:"breadcrumb-menu",label:this.textMoreItems},e.map((e=>i("post-menu-item",{key:e.url||e.text,class:"breadcrumb-item",onKeyDown:e=>{if("Enter"===e.key||" "===e.key){const t=e.currentTarget.querySelector("a");t?.click(),e.preventDefault()}}},e.url?i("a",{href:e.url,"aria-label":e.label,"aria-description":e.description},e.text):i("span",null,e.text))))))):e.map((e=>i("li",null,i("post-breadcrumb-item",{url:e.url,label:e.label,description:e.description,key:e.url||e.text},e.text)))),this.lastItem&&i("li",{key:"57d4678e05401a248e31559eef7562a1608c0d58","aria-current":"page"},i("post-breadcrumb-item",{key:"b1be2e79473288d0755a65a0819eb2a2301a89f2",url:this.lastItem.url,label:this.lastItem.label,description:this.lastItem.description,tabindex:-1},this.lastItem.text))),i("div",{key:"9eaa408234c3497176bfc116ab02f8280ff1cce7",class:"hidden-items"},i("a",{key:"c19fab9c610fe33b0fb980e24fe6395ee4bed8c6",href:this.homeUrl,class:"hidden-breadcrumb-item"},i("span",{key:"9d42d66632535330307f87fdad5ba6e983b4448a",class:"visually-hidden"},this.textHome),i("post-icon",{key:"b7cc4122d01930d5736f6eb929a46bcd32c547e4",name:"home",class:"home-icon"})),this.breadcrumbItems.map((e=>i("post-breadcrumb-item",{url:e.url,key:"hidden-"+(e.url||e.text),label:e.label,description:e.description,class:"hidden-breadcrumb-item"},e.text))))))}get host(){return this}static get watchers(){return{homeUrl:[{validateHomeUrl:0}],textHome:[{validateTextHome:0}],textBreadcrumbs:[{validateTextBreadcrumbs:0}],textMoreItems:[{validateTextMoreItems:0}]}}static get style(){return":host{display:flex;align-items:center}.breadcrumbs-nav{display:flex;align-items:center}.hidden-items{position:absolute;height:0;overflow:hidden;white-space:nowrap;display:flex;flex-wrap:wrap}.hidden-items .hidden-breadcrumb-item{display:inline-flex;padding-inline-end:var(--post-device-spacing-gap-inline-4)}.hidden-items .hidden-breadcrumb-item:last-child{padding-inline-end:0;font-weight:var(--post-device-font-weight-bold)}.breadcrumbs-list{display:flex;flex-wrap:nowrap;position:relative;margin:0;padding:0;list-style:none;align-items:center;height:100%;gap:var(--post-device-spacing-gap-inline-4)}post-icon{display:inline-block;box-sizing:border-box;color:var(--post-scheme-color-interactive-primary-enabled-fg1);height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.breadcrumb-item-icon{padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}li a{display:flex;align-items:center}li 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}li 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){li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){li 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){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}li a:focus{border-radius:var(--post-device-border-radius-focus)}li a .home-icon{padding-block:var(--post-device-spacing-padding-4);padding-inline:var(--post-device-spacing-padding-4)}li a .home-icon:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a .home-icon a,li a .home-icon:focus,li a .home-icon:hover{color:CanvasText !important}}.menu-trigger-wrapper{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.actual-menu{display:flex;align-items:center}post-menu-trigger{display:flex;align-items:center;padding-block:var(--post-device-spacing-padding-block-7)}post-menu-trigger{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}post-menu-trigger: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){post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-trigger: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){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-menu-trigger:focus{border-radius:var(--post-device-border-radius-focus)}post-menu-trigger button{background:none;border:none;line-height:150%;font-size:var(--post-device-font-size-6);cursor:pointer;padding:0;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}post-menu-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger button a,post-menu-trigger button:focus,post-menu-trigger button:hover{color:LinkText !important}}post-menu::part(popover-container){display:flex;flex-direction:column;align-items:start;padding:.6rem;gap:var(--post-device-spacing-gap-inline-4)}post-menu::part(popover-container) ::slotted(post-menu-item:not(:last-child)){margin-block-end:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;justify-content:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item span:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item span:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}li[aria-current=page] post-breadcrumb-item{pointer-events:none;color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}li[aria-current=page] post-breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-selected-fg1);text-decoration:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"}},[1,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],breadcrumbItems:[32],isConcatenated:[32],lastWindowWidth:[32]},void 0,{homeUrl:[{validateHomeUrl:0}],textHome:[{validateTextHome:0}],textBreadcrumbs:[{validateTextBreadcrumbs:0}],textMoreItems:[{validateTextMoreItems:0}]}]),v=h,g=function(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-breadcrumb-item","post-icon","post-menu","post-menu-item","post-menu-trigger","post-popovercontainer"].forEach((e=>{switch(e){case"post-breadcrumbs":customElements.get(r(e))||customElements.define(r(e),h);break;case"post-breadcrumb-item":customElements.get(r(e))||d();break;case"post-icon":customElements.get(r(e))||l();break;case"post-menu":customElements.get(r(e))||m();break;case"post-menu-item":customElements.get(r(e))||p();break;case"post-menu-trigger":customElements.get(r(e))||u();break;case"post-popovercontainer":customElements.get(r(e))||b()}}))};export{v as PostBreadcrumbs,g as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,h as i,Host as o,transformTag as s}from"@stencil/core/internal/client";import{t as r}from"./breakpoints.js";import{c as a}from"./component-on-ready.js";import{n}from"./nanoid.js";import{v as c}from"./package.js";import{d}from"./post-icon2.js";import{d as l}from"./post-menu2.js";import{d as u}from"./post-menu-trigger2.js";import{d as m}from"./post-popovercontainer2.js";import{R as b}from"./required.js";import{U as h}from"./url.js";import{T as p}from"./type.js";var g=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const M=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shouldRenderMenu=!1}componentWillLoad(){this.id=this.host.id||"b"+n(6)}componentDidLoad(){this.createMutationObserver(),this.createResizeObserver()}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}createMutationObserver(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),this.duplicateNavElement()}createResizeObserver(){this.resizeObserver=new ResizeObserver(r(50,this.checkOverflow.bind(this))),this.resizeObserver.observe(document.body)}duplicateNavElement(){const t=this.host.shadowRoot,e=t?.querySelector("nav");if(!t||!e)return;this.prepareBreadcrumbItemsForClone();const i=e.cloneNode(!0);i.classList.add("invisible"),t.querySelector("nav.invisible")?.remove(),t.append(i),requestAnimationFrame((()=>{this.duplicateSlottedElements(i,"slot:not([name])"),this.duplicateSlottedElements(i,'slot[name="selected"]'),this.checkOverflow()}))}duplicateSlottedElements(t,e){const i=this.host.shadowRoot?.querySelector(e),o=t.querySelector(e);i&&o&&(i.assignedElements().forEach((t=>{const e=t.cloneNode(!0);e.dataset.measuring="true",o.before(e)})),o.remove())}checkOverflow(){const t=this.host.shadowRoot?.querySelector("nav.invisible");if(!t)return;const e=Array.from(t.querySelectorAll("post-breadcrumb-item"));Promise.all(e.map((t=>a(t)))).then((()=>{this.shouldRenderMenu=t.scrollWidth>t.clientWidth,this.updateBreadcrumbItemProps()}))}prepareBreadcrumbItemsForClone(){this.shouldRenderMenu=!1,this.updateBreadcrumbItemProps()}updateBreadcrumbItemProps(){const t=this.host.querySelectorAll("post-breadcrumb-item");t.forEach(((e,i)=>{e.setAttribute("variant",this.shouldRenderMenu?"menuitem":"listitem"),e.setAttribute("selected",(i===t.length-1)+"")}))}renderMenu(){const t=this.id+"-menu";return i("div",{role:"listitem"},i("div",{class:"breadcrumb-item"},i("post-menu-trigger",{for:t},i("button",null,i("span",{class:"visually-hidden"},this.textMoreItems),i("span",{"aria-hidden":"true"},"...")))),i("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},i("slot",null)))}render(){return i(o,{key:"7ad91a47dac5999eba506744321eb59a27970687","data-version":c},i("nav",{key:"3d84a12495ccd27df028cae550b319a2191f8721","aria-label":this.textBreadcrumbs},i("div",{key:"291436db8b8f171ca070f0b4fb6e24a6fd831e8d",role:"list"},i("div",{key:"cd5aeeee11626fde17bf384ebe7f1f1f701f2a86",class:"breadcrumb-item home",role:"listitem"},i("a",{key:"9583685d73837b3971a575307621cb364c934d4e",href:this.homeUrl},i("span",{key:"4896caee6c56016ee7e0ded0363bd5ead8f672bc",class:"visually-hidden"},this.textHome),i("post-icon",{key:"8390117bb7e8527a813e3d306e16312fa1912ce6","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():i("slot",null),i("slot",{key:"314d304f3f1d1cc09af197eea221d26a9bf1c0fe",name:"selected"}))))}get host(){return this}static get style(){return':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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.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}'}},[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]}]);g([b(),h()],M.prototype,"homeUrl",void 0),g([b(),p("string")],M.prototype,"textHome",void 0),g([b(),p("string")],M.prototype,"textBreadcrumbs",void 0),g([b(),p("string")],M.prototype,"textMoreItems",void 0);const j=M,I=function(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-trigger","post-popovercontainer"].forEach((t=>{switch(t){case"post-breadcrumbs":customElements.get(s(t))||customElements.define(s(t),M);break;case"post-icon":customElements.get(s(t))||d();break;case"post-menu":customElements.get(s(t))||l();break;case"post-menu-trigger":customElements.get(s(t))||u();break;case"post-popovercontainer":customElements.get(s(t))||m()}}))};export{j as PostBreadcrumbs,I as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as e,h as o,Host as i,transformTag as r}from"@stencil/core/internal/client";import{v as n}from"./package.js";import{d as c,b as a}from"./index2.js";import"./index3.js";import{d as s}from"./post-icon2.js";const d=["button","submit","reset"],b=["manual","auto"],l=["default","small"],v=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.buttonType="button",this.placement="auto",this.size="default"}validateButtonType(){c(this,"buttonType",d)}validatePlacement(){a(this,"placement",b)}validateSize(){a(this,"size",l)}componentDidLoad(){this.checkContent()}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}checkContent(){this.validateButtonType(),this.validatePlacement(),this.validateSize(),this.host.querySelector(".visually-hidden").textContent||console.error(`The \`${this.host.localName}\` component requires content for accessibility.`)}render(){return o(i,{key:"33c801f2e342363d6361f19e65793a4164d45f81","data-version":n},o("button",{key:"2fa8ae3a3e57cc971a99648d66612e13bc526e92",type:this.buttonType,class:"btn btn-icon btn-secondary btn-sm"},o("post-icon",{key:"5ac2821cdd342115e73b13f692bd7180edab82a8","aria-hidden":"true",name:"closex"}),o("span",{key:"5eb97879647ef8c866bfdf6cd0819477a13907bc",class:"visually-hidden"},o("slot",{key:"80eac1979c78526078d57a8398e04824420b7983"}))))}get host(){return this}static get watchers(){return{buttonType:[{validateButtonType:0}],placement:[{validatePlacement:0}],size:[{validateSize:0}]}}static get style(){return".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)}"}},[260,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]},void 0,{buttonType:[{validateButtonType:0}],placement:[{validatePlacement:0}],size:[{validateSize:0}]}]);function h(){"undefined"!=typeof customElements&&["post-closebutton","post-icon"].forEach((t=>{switch(t){case"post-closebutton":customElements.get(r(t))||customElements.define(r(t),v);break;case"post-icon":customElements.get(r(t))||s()}}))}export{v as P,h as d}
1
+ import{proxyCustomElement as t,HTMLElement as e,h as o,Host as i,transformTag as r}from"@stencil/core/internal/client";import"./breakpoints.js";import{v as n}from"./package.js";import{d as c}from"./post-icon2.js";import{O as a}from"./one-of.js";import{R as s}from"./required.js";var d=function(t,e,o,i){var r,n=arguments.length,c=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(n<3?r(c):n>3?r(e,o,c):r(e,o))||c);return n>3&&c&&Object.defineProperty(e,o,c),c};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.buttonType="button",this.placement="auto",this.size="default"}componentDidLoad(){this.checkContent()}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}checkContent(){this.host.querySelector(".visually-hidden").textContent||console.error(`The \`${this.host.localName}\` component requires content for accessibility.`)}render(){return o(i,{key:"a685b0c1dbf08de1253d7c232800b28aa445edeb","data-version":n},o("button",{key:"e36535683023bd1cbcf560491a87ddab60f23d1c",type:this.buttonType,class:"btn btn-icon btn-secondary btn-sm"},o("post-icon",{key:"405d5ca3761bd8ee56bdd9734a2550cbbbd81f0d","aria-hidden":"true",name:"closex"}),o("span",{key:"2caa490891d922dc69ef4e6ebe8e5de813426d30",class:"visually-hidden"},o("slot",{key:"fd38d8c6da378058ea93c5c08f9f96d0b7be7813"}))))}get host(){return this}static get style(){return".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)}"}},[260,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]}]);function l(){"undefined"!=typeof customElements&&["post-closebutton","post-icon"].forEach((t=>{switch(t){case"post-closebutton":customElements.get(r(t))||customElements.define(r(t),b);break;case"post-icon":customElements.get(r(t))||c()}}))}d([a(["button","submit","reset"])],b.prototype,"buttonType",void 0),d([s(),a(["manual","auto"])],b.prototype,"placement",void 0),d([s(),a(["default","small"])],b.prototype,"size",void 0);export{b as P,l as d}
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as s,h as i,Host as e,transformTag as o}from"@stencil/core/internal/client";import{v as a}from"./package.js";import{c as r}from"./index2.js";import"./index3.js";import{E as l}from"./event-from.js";import{g as n}from"./get-root.js";const c=t(class extends s{validateAriaAttributes(){r(this,"for","string")}constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.observer=new MutationObserver((()=>this.setTrigger())),this.handlePostToggle=this.handlePostToggle.bind(this)}connectedCallback(){this.root=n(this.host),this.root.addEventListener("postToggle",this.handlePostToggle),this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button."),this.validateAriaAttributes()}disconnectedCallback(){this.observer.disconnect(),this.root?.removeEventListener("postToggle",this.handlePostToggle)}async update(){this.updateAriaAttributes()}handlePostToggle(t){this.trigger&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}updateAriaAttributes(){if(!this.trigger)return;const t=this.trigger.getAttribute("aria-controls");t?.includes(this.for)||this.trigger.setAttribute("aria-controls",t?`${t} ${this.for}`:this.for);const s=this.collapsible?.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==s?!s:void 0}`)}async toggleCollapsible(){await(this.collapsible?.toggle())}get collapsible(){const t=this.root.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.updateAriaAttributes())}render(){return i(e,{key:"a4d1613dc3cbcfa627f920275eb3508939b63609","data-version":a},i("slot",{key:"baa22c46a7a982afcd09253daa95f68f1709d509"}))}get host(){return this}static get watchers(){return{for:[{validateAriaAttributes:0}]}}},[257,"post-collapsible-trigger",{for:[513],update:[64]},void 0,{for:[{validateAriaAttributes:0}]}]);function h(){"undefined"!=typeof customElements&&["post-collapsible-trigger"].forEach((t=>{"post-collapsible-trigger"===t&&(customElements.get(o(t))||customElements.define(o(t),c))}))}!function(t,s,i,e){var o,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(a<3?o(r):a>3?o(s,i,r):o(s,i))||r);a>3&&r&&Object.defineProperty(s,i,r)}([l("post-collapsible")],c.prototype,"handlePostToggle",null);export{c as P,h as d}
1
+ import{proxyCustomElement as t,HTMLElement as s,h as e,Host as i,transformTag as o}from"@stencil/core/internal/client";import"./breakpoints.js";import{E as l}from"./event-from.js";import{g as r}from"./get-root.js";import{v as n}from"./package.js";import{T as a}from"./type.js";var c=function(t,s,e,i){var o,l=arguments.length,r=l<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(l<3?o(r):l>3?o(s,e,r):o(s,e))||r);return l>3&&r&&Object.defineProperty(s,e,r),r};const h=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.observer=new MutationObserver((()=>this.setTrigger())),this.handlePostToggle=this.handlePostToggle.bind(this)}connectedCallback(){this.root=r(this.host),this.root.addEventListener("postToggle",this.handlePostToggle),this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button."),this.collapsible||console.warn(`No post-collapsible found ${this.for?`with id "${this.for}"`:"nested inside <post-collapsible-trigger>"}. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.`)}disconnectedCallback(){this.observer.disconnect(),this.root?.removeEventListener("postToggle",this.handlePostToggle)}async update(){this.updateAriaAttributes()}handlePostToggle(t){this.trigger&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}updateAriaAttributes(){const t=this.collapsible;if(!this.trigger||!t)return;t.id||(t.id=`collapsible-${crypto.randomUUID()}`);const s=t.id,e=this.trigger.getAttribute("aria-controls"),i=e?e.split(/\s+/):[];i.includes(s)||(i.push(s),this.trigger.setAttribute("aria-controls",i.join(" "))),this.trigger.setAttribute("aria-expanded",`${!t.collapsed}`)}async toggleCollapsible(){await(this.collapsible?.toggle())}get collapsible(){const t=this.host.querySelector("post-collapsible")??(this.for?this.root?.getElementById(this.for)??null:null);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=Array.from(this.host.querySelectorAll("button")).find((t=>{const s=t.closest("post-collapsible");return!(s&&this.host.contains(s))}));!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.updateAriaAttributes())}render(){return e(i,{key:"40cfa7d940136d4bce5de0c2b37fca91187110f8","data-version":n},e("slot",{key:"b8853f5be4361e59537b00d6fd60e6e42b7ea64d"}))}get host(){return this}},[257,"post-collapsible-trigger",{for:[513],update:[64]}]);function p(){"undefined"!=typeof customElements&&["post-collapsible-trigger"].forEach((t=>{"post-collapsible-trigger"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))}c([a("string")],h.prototype,"for",void 0),c([l("post-collapsible")],h.prototype,"handlePostToggle",null);export{h as P,p as d}
@@ -1 +1 @@
1
- import{Build as e,proxyCustomElement as t,HTMLElement as s,createEvent as i,h as o,Host as l,transformTag as a}from"@stencil/core/internal/client";import{v as r}from"./package.js";import"./index3.js";import{g as n}from"./index2.js";const h={height:"0",overflow:"hidden"},c={duration:!globalThis.matchMedia||globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches?0:350,easing:"ease",fill:"forwards"},d=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.postToggle=i(this,"postToggle",7),this.collapsed=!1}collapsedChange(){n(this,"collapsed","boolean")}get isExpanded(){return!this.collapsed}componentDidLoad(){this.collapsedChange(),this.updateTriggers()}async toggle(t=!this.isExpanded){if(t===this.isExpanded)return this.isExpanded;this.collapsed=!t;const s=this.isExpanded;if(e.isBrowser){const t=s?(i=this.host).animate([h,{height:`${i.scrollHeight}px`,offset:1,overflow:"hidden"},{height:"auto",overflow:"visible"}],c):function(t){const s=e.isBrowser?globalThis.getComputedStyle(t).height:`${t.scrollHeight}px`;return t.animate([{height:s},h],c)}(this.host);this.postToggle.emit(s),await t.finished,t.commitStyles(),this.updateTriggers()}var i;return s}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((e=>e.update()))}render(){return o(l,{key:"79ec1a3eb11225a93f5e5b6da7334d20d5e4b565","data-version":r,tabindex:this.collapsed?-1:void 0,style:this.collapsed?h:void 0},o("slot",{key:"baff34fc9b45aec4c3fb0f74ad676ea1237c7d23"}))}get host(){return this}static get watchers(){return{collapsed:[{collapsedChange:0}]}}static get style(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"}},[257,"post-collapsible",{collapsed:[1028],toggle:[64]},void 0,{collapsed:[{collapsedChange:0}]}]);function p(){"undefined"!=typeof customElements&&["post-collapsible"].forEach((e=>{"post-collapsible"===e&&(customElements.get(a(e))||customElements.define(a(e),d))}))}export{d as P,p as d}
1
+ import{Build as t,proxyCustomElement as e,HTMLElement as o,createEvent as s,h as i,Host as l,transformTag as r}from"@stencil/core/internal/client";import"./breakpoints.js";import{v as a}from"./package.js";import{T as n}from"./type.js";const c={height:"0",overflow:"hidden"},h={duration:!globalThis.matchMedia||globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches?0:350,easing:"ease",fill:"forwards"};const p=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postToggle=s(this,"postToggle",7),this.collapsed=!1}get isExpanded(){return!this.collapsed}componentDidLoad(){this.updateTriggers()}async toggle(e=!this.isExpanded){if(e===this.isExpanded)return this.isExpanded;this.collapsed=!e;const o=this.isExpanded;if(t.isBrowser){const e=o?(s=this.host).animate([c,{height:`${s.scrollHeight}px`,offset:1,overflow:"hidden"},{height:"auto",overflow:"visible"}],h):function(e){const o=t.isBrowser?globalThis.getComputedStyle(e).height:`${e.scrollHeight}px`;return e.animate([{height:o},c],h)}(this.host);this.postToggle.emit(o),await e.finished,e.commitStyles(),this.updateTriggers()}var s;return o}updateTriggers(){const t=this.host.id?Array.from(document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`)):[],e=this.host.closest("post-collapsible-trigger");e&&!t.includes(e)&&t.push(e),t.forEach((t=>t.update()))}render(){return i(l,{key:"5683b1c0346d1ed8aa6aa5ef8583654511ff0638","data-version":a,tabindex:this.collapsed?-1:void 0,style:this.collapsed?c:void 0},i("slot",{key:"3271677498e00e964ee17733aa2871a12e57858c"}))}get host(){return this}static get style(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"}},[257,"post-collapsible",{collapsed:[1028],toggle:[64]}]);function d(){"undefined"!=typeof customElements&&["post-collapsible"].forEach((t=>{"post-collapsible"===t&&(customElements.get(r(t))||customElements.define(r(t),p))}))}!function(t,e,o,s){var i,l=arguments.length,r=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(l<3?i(r):l>3?i(e,o,r):i(e,o))||r);l>3&&r&&Object.defineProperty(e,o,r)}([n("boolean")],p.prototype,"collapsed",void 0);export{p as P,d}