@swisspost/design-system-components 9.0.0-next.4 → 9.0.0-next.5

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 (297) hide show
  1. package/dist/cjs/check-type-64af82a9.js +16 -0
  2. package/dist/cjs/{index-01f30442.js → index-824d2b71.js} +2 -15
  3. package/dist/cjs/index-e1f32cce.js +10 -18
  4. package/dist/cjs/index.cjs.js +35 -29
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{package-3f706795.js → package-53892d3d.js} +1 -1
  7. package/dist/cjs/{post-accordion-0391f4c5.js → post-accordion-7f627ffd.js} +1 -1
  8. package/dist/cjs/{post-accordion-item-19ce78d0.js → post-accordion-item-ceb5399f.js} +2 -2
  9. package/dist/cjs/post-accordion-item.cjs.entry.js +4 -3
  10. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  11. package/dist/cjs/post-alert-5333a23c.js +99 -0
  12. package/dist/cjs/post-alert.cjs.entry.js +4 -3
  13. package/dist/cjs/{post-avatar-ffba1d23.js → post-avatar-a8123d38.js} +1 -1
  14. package/dist/cjs/post-avatar.cjs.entry.js +2 -2
  15. package/dist/cjs/{post-breadcrumb-item-42466f8a.js → post-breadcrumb-item-6e4704e5.js} +2 -2
  16. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +4 -3
  17. package/dist/cjs/{post-card-control-37d6a65a.js → post-card-control-b289ddcf.js} +1 -1
  18. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  19. package/dist/cjs/post-closebutton_10.cjs.entry.js +25 -0
  20. package/dist/cjs/{post-collapsible-trigger-c843f028.js → post-collapsible-trigger-e4862a5b.js} +4 -3
  21. package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -3
  22. package/dist/cjs/post-components.cjs.js +1 -1
  23. package/dist/cjs/{post-language-option-dab6d431.js → post-language-option-62414842.js} +4 -3
  24. package/dist/cjs/post-language-option.cjs.entry.js +4 -3
  25. package/dist/cjs/{post-popovercontainer-1e6be8ad.js → post-megadropdown-trigger-da912fed.js} +516 -15
  26. package/dist/cjs/post-menu-54fa65d3.js +176 -0
  27. package/dist/cjs/post-menu-item-8c3090b1.js +20 -0
  28. package/dist/cjs/post-menu-item.cjs.entry.js +11 -0
  29. package/dist/cjs/post-menu-trigger-71449876.js +73 -0
  30. package/dist/cjs/post-menu-trigger.cjs.entry.js +12 -0
  31. package/dist/cjs/post-menu.cjs.entry.js +11 -0
  32. package/dist/cjs/{post-popover-4457dd58.js → post-popover-5f639e4f.js} +2 -2
  33. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  34. package/dist/cjs/{post-rating-236273be.js → post-rating-3d166fed.js} +2 -2
  35. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  36. package/dist/cjs/{post-tab-header-bce47e34.js → post-tab-header-03b20f24.js} +2 -2
  37. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  38. package/dist/cjs/{post-tab-panel-e25974be.js → post-tab-panel-e5685f3d.js} +2 -2
  39. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  40. package/dist/cjs/{post-tabs-dc99bddf.js → post-tabs-e871c911.js} +2 -2
  41. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/{post-tag-a28852a8.js → post-tag-62f31d0e.js} +2 -2
  43. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  44. package/dist/cjs/{post-tooltip-78e4129b.js → post-tooltip-851c342c.js} +3 -3
  45. package/dist/cjs/post-tooltip.cjs.entry.js +4 -3
  46. package/dist/collection/collection-manifest.json +8 -1
  47. package/dist/collection/components/post-alert/post-alert.css +3 -3
  48. package/dist/collection/components/post-header/post-header.css +1 -0
  49. package/dist/collection/components/post-header/post-header.js +103 -0
  50. package/dist/collection/components/post-list/post-list.js +1 -1
  51. package/dist/collection/components/post-list-item/post-list-item.js +1 -1
  52. package/dist/collection/components/post-logo/post-logo.js +1 -1
  53. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -0
  54. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +61 -0
  55. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -0
  56. package/dist/collection/components/post-megadropdown/post-megadropdown.js +137 -0
  57. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -0
  58. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +48 -0
  59. package/dist/collection/components/post-menu/post-menu.css +3 -0
  60. package/dist/collection/components/post-menu/post-menu.js +278 -0
  61. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -0
  62. package/dist/collection/components/post-menu-item/post-menu-item.js +20 -0
  63. package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +1 -0
  64. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +103 -0
  65. package/dist/collection/components/post-popover/post-popover.js +1 -1
  66. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
  67. package/dist/collection/components/post-rating/post-rating.js +1 -1
  68. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  69. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  70. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  71. package/dist/collection/components/post-tag/post-tag.js +1 -1
  72. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  73. package/dist/collection/index.js +7 -0
  74. package/dist/collection/utils/is-focusable.js +26 -0
  75. package/dist/components/index.js +7 -0
  76. package/dist/components/package.js +1 -1
  77. package/dist/components/post-alert2.js +1 -1
  78. package/dist/components/post-header.d.ts +11 -0
  79. package/dist/components/post-header.js +6 -0
  80. package/dist/components/post-header2.js +235 -0
  81. package/dist/components/post-list-item2.js +1 -1
  82. package/dist/components/post-list2.js +1 -1
  83. package/dist/components/post-logo2.js +1 -1
  84. package/dist/components/post-mainnavigation.d.ts +11 -0
  85. package/dist/components/post-mainnavigation.js +6 -0
  86. package/dist/components/post-mainnavigation2.js +48 -0
  87. package/dist/components/post-megadropdown-trigger.d.ts +11 -0
  88. package/dist/components/post-megadropdown-trigger.js +6 -0
  89. package/dist/components/post-megadropdown-trigger2.js +39 -0
  90. package/dist/components/post-megadropdown.d.ts +11 -0
  91. package/dist/components/post-megadropdown.js +6 -0
  92. package/dist/components/post-megadropdown2.js +67 -0
  93. package/dist/components/post-menu-item.d.ts +11 -0
  94. package/dist/components/post-menu-item.js +6 -0
  95. package/dist/components/post-menu-item2.js +33 -0
  96. package/dist/components/post-menu-trigger.d.ts +11 -0
  97. package/dist/components/post-menu-trigger.js +6 -0
  98. package/dist/components/post-menu-trigger2.js +90 -0
  99. package/dist/components/post-menu.d.ts +11 -0
  100. package/dist/components/post-menu.js +6 -0
  101. package/dist/components/post-menu2.js +201 -0
  102. package/dist/components/post-popover2.js +1 -1
  103. package/dist/components/post-popovercontainer2.js +2 -2
  104. package/dist/components/post-rating2.js +1 -1
  105. package/dist/components/post-tab-header2.js +1 -1
  106. package/dist/components/post-tab-panel2.js +1 -1
  107. package/dist/components/post-tabs2.js +1 -1
  108. package/dist/components/post-tag2.js +1 -1
  109. package/dist/components/post-tooltip2.js +1 -1
  110. package/dist/docs.json +547 -1
  111. package/dist/esm/check-type-8828dbe4.js +14 -0
  112. package/dist/esm/index-e1b64755.js +10 -18
  113. package/dist/esm/{index-642cd1f2.js → index-f8a00dc0.js} +2 -14
  114. package/dist/esm/index.js +22 -23
  115. package/dist/esm/loader.js +1 -1
  116. package/dist/esm/package-d0380f19.js +3 -0
  117. package/dist/esm/{post-accordion-7ef6d6bf.js → post-accordion-b2762084.js} +1 -1
  118. package/dist/esm/{post-accordion-item-d98c612f.js → post-accordion-item-82ef1c4a.js} +2 -2
  119. package/dist/esm/post-accordion-item.entry.js +4 -3
  120. package/dist/esm/post-accordion.entry.js +2 -2
  121. package/dist/esm/post-alert-0679e14b.js +97 -0
  122. package/dist/esm/post-alert.entry.js +4 -3
  123. package/dist/esm/{post-avatar-f743d28e.js → post-avatar-e84c49cb.js} +1 -1
  124. package/dist/esm/post-avatar.entry.js +2 -2
  125. package/dist/esm/{post-breadcrumb-item-e287afe1.js → post-breadcrumb-item-ff752018.js} +2 -2
  126. package/dist/esm/post-breadcrumb-item.entry.js +4 -3
  127. package/dist/esm/{post-card-control-685ca60d.js → post-card-control-53b9ca94.js} +1 -1
  128. package/dist/esm/post-card-control.entry.js +2 -2
  129. package/dist/esm/post-closebutton_10.entry.js +8 -0
  130. package/dist/esm/{post-collapsible-trigger-1eca7350.js → post-collapsible-trigger-34740fa6.js} +3 -2
  131. package/dist/esm/post-collapsible_2.entry.js +4 -3
  132. package/dist/esm/post-components.js +1 -1
  133. package/dist/esm/{post-language-option-92ce480f.js → post-language-option-e2a76752.js} +3 -2
  134. package/dist/esm/post-language-option.entry.js +4 -3
  135. package/dist/esm/{post-popovercontainer-409abba0.js → post-megadropdown-trigger-7e577245.js} +509 -17
  136. package/dist/esm/post-menu-e6337859.js +174 -0
  137. package/dist/esm/post-menu-item-c10a0a93.js +18 -0
  138. package/dist/esm/post-menu-item.entry.js +3 -0
  139. package/dist/esm/post-menu-trigger-5f31ad60.js +71 -0
  140. package/dist/esm/post-menu-trigger.entry.js +4 -0
  141. package/dist/esm/post-menu.entry.js +3 -0
  142. package/dist/esm/{post-popover-a82bae79.js → post-popover-d78547b4.js} +2 -2
  143. package/dist/esm/post-popover.entry.js +2 -2
  144. package/dist/esm/{post-rating-a6513fc9.js → post-rating-d04d0349.js} +2 -2
  145. package/dist/esm/post-rating.entry.js +2 -2
  146. package/dist/esm/{post-tab-header-2bf36bae.js → post-tab-header-6efc530f.js} +2 -2
  147. package/dist/esm/post-tab-header.entry.js +2 -2
  148. package/dist/esm/{post-tab-panel-56ad2836.js → post-tab-panel-d9ecc10e.js} +2 -2
  149. package/dist/esm/post-tab-panel.entry.js +2 -2
  150. package/dist/esm/{post-tabs-895b4e96.js → post-tabs-e98a47e8.js} +2 -2
  151. package/dist/esm/post-tabs.entry.js +2 -2
  152. package/dist/esm/{post-tag-ee91d6a9.js → post-tag-40a65871.js} +2 -2
  153. package/dist/esm/post-tag.entry.js +2 -2
  154. package/dist/esm/{post-tooltip-a4d93fd2.js → post-tooltip-3b1e121c.js} +3 -3
  155. package/dist/esm/post-tooltip.entry.js +4 -3
  156. package/dist/post-components/index.esm.js +1 -1
  157. package/dist/post-components/p-029c91d8.entry.js +1 -0
  158. package/dist/post-components/p-0338f9da.js +1 -0
  159. package/dist/post-components/p-03c850fa.entry.js +1 -0
  160. package/dist/post-components/p-1d8a41d3.js +1 -0
  161. package/dist/post-components/p-2069e764.js +1 -0
  162. package/dist/post-components/p-3705d2b4.js +1 -0
  163. package/dist/post-components/p-3aaea2a7.js +1 -0
  164. package/dist/post-components/p-3b4342e4.entry.js +1 -0
  165. package/dist/post-components/p-3b5bd4a4.entry.js +1 -0
  166. package/dist/post-components/p-3f785d16.entry.js +1 -0
  167. package/dist/post-components/p-40a57111.entry.js +1 -0
  168. package/dist/post-components/p-41f5f626.entry.js +1 -0
  169. package/dist/post-components/p-42c628fd.js +1 -0
  170. package/dist/post-components/{p-5a8157b4.js → p-43451d07.js} +1 -1
  171. package/dist/post-components/p-49a42850.js +1 -0
  172. package/dist/post-components/p-4a3f67ab.js +1 -0
  173. package/dist/post-components/p-4f1a40dd.entry.js +1 -0
  174. package/dist/post-components/p-6e7bde44.js +1 -0
  175. package/dist/post-components/{p-fda6ce34.js → p-70c016ab.js} +1 -1
  176. package/dist/post-components/{p-1a53bc7d.js → p-75514d7d.js} +1 -1
  177. package/dist/post-components/p-76dbca34.entry.js +1 -0
  178. package/dist/post-components/{p-fb7a5867.js → p-77a757d4.js} +1 -1
  179. package/dist/post-components/p-77af2367.entry.js +1 -0
  180. package/dist/post-components/{p-5957a7fa.js → p-7a20605b.js} +1 -1
  181. package/dist/post-components/{p-7b0616c6.js → p-879ae242.js} +1 -1
  182. package/dist/post-components/{p-d37c6cc3.js → p-976c2742.js} +1 -1
  183. package/dist/post-components/p-9cda2b0d.entry.js +1 -0
  184. package/dist/post-components/p-9fab4d3c.js +1 -0
  185. package/dist/post-components/p-a0226aec.js +1 -0
  186. package/dist/post-components/p-aa890e24.entry.js +1 -0
  187. package/dist/post-components/p-ac6d9496.js +1 -0
  188. package/dist/post-components/p-ad6e41d5.entry.js +1 -0
  189. package/dist/post-components/{p-bc7cfb53.js → p-af8cfb8e.js} +1 -1
  190. package/dist/post-components/p-c95813b2.entry.js +1 -0
  191. package/dist/post-components/p-d3814644.entry.js +1 -0
  192. package/dist/post-components/p-d5b02b44.entry.js +1 -0
  193. package/dist/post-components/{p-47279ac4.js → p-e0dc4fac.js} +2 -2
  194. package/dist/post-components/p-f404d0bb.entry.js +1 -0
  195. package/dist/post-components/p-f5b933bc.entry.js +1 -0
  196. package/dist/post-components/p-fbda2556.entry.js +1 -0
  197. package/dist/post-components/{p-2caf9469.js → p-fc2c7222.js} +1 -1
  198. package/dist/post-components/post-components.esm.js +1 -1
  199. package/dist/types/components/post-header/post-header.d.ts +16 -0
  200. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +10 -0
  201. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +23 -0
  202. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +10 -0
  203. package/dist/types/components/post-menu/post-menu.d.ts +47 -0
  204. package/dist/types/components/post-menu-item/post-menu-item.d.ts +4 -0
  205. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +26 -0
  206. package/dist/types/components.d.ts +195 -0
  207. package/dist/types/index.d.ts +7 -0
  208. package/dist/types/utils/is-focusable.d.ts +1 -0
  209. package/loaders/index.d.ts +14 -0
  210. package/loaders/index.js +8 -1
  211. package/loaders/package.js +1 -1
  212. package/loaders/post-alert.js +1 -1
  213. package/loaders/post-header.d.ts +11 -0
  214. package/loaders/post-header.js +238 -0
  215. package/loaders/post-list-item.js +1 -1
  216. package/loaders/post-list.js +1 -1
  217. package/loaders/post-logo.js +1 -1
  218. package/loaders/post-mainnavigation.d.ts +11 -0
  219. package/loaders/post-mainnavigation.js +51 -0
  220. package/loaders/post-megadropdown-trigger.d.ts +11 -0
  221. package/loaders/post-megadropdown-trigger.js +42 -0
  222. package/loaders/post-megadropdown.d.ts +11 -0
  223. package/loaders/post-megadropdown.js +70 -0
  224. package/loaders/post-menu-item.d.ts +11 -0
  225. package/loaders/post-menu-item.js +36 -0
  226. package/loaders/post-menu-trigger.d.ts +11 -0
  227. package/loaders/post-menu-trigger.js +93 -0
  228. package/loaders/post-menu.d.ts +11 -0
  229. package/loaders/post-menu.js +204 -0
  230. package/loaders/post-popover.js +1 -1
  231. package/loaders/post-popovercontainer2.js +2 -2
  232. package/loaders/post-rating.js +1 -1
  233. package/loaders/post-tab-header.js +1 -1
  234. package/loaders/post-tab-panel.js +1 -1
  235. package/loaders/post-tabs.js +1 -1
  236. package/loaders/post-tag.js +1 -1
  237. package/loaders/post-tooltip.js +1 -1
  238. package/package.json +3 -2
  239. package/dist/cjs/post-alert-278229ad.js +0 -98
  240. package/dist/cjs/post-closebutton-372c1276.js +0 -16
  241. package/dist/cjs/post-closebutton.cjs.entry.js +0 -11
  242. package/dist/cjs/post-icon-ca80afce.js +0 -104
  243. package/dist/cjs/post-icon.cjs.entry.js +0 -15
  244. package/dist/cjs/post-list-f2c673ef.js +0 -37
  245. package/dist/cjs/post-list-item-1b6ce0d0.js +0 -22
  246. package/dist/cjs/post-list-item.cjs.entry.js +0 -10
  247. package/dist/cjs/post-list.cjs.entry.js +0 -11
  248. package/dist/cjs/post-logo-ed8e99c0.js +0 -39
  249. package/dist/cjs/post-logo.cjs.entry.js +0 -14
  250. package/dist/cjs/post-popovercontainer.cjs.entry.js +0 -11
  251. package/dist/esm/package-aaf62247.js +0 -3
  252. package/dist/esm/post-alert-2aee0a88.js +0 -96
  253. package/dist/esm/post-closebutton-a951a0ba.js +0 -14
  254. package/dist/esm/post-closebutton.entry.js +0 -3
  255. package/dist/esm/post-icon-29b33e6a.js +0 -102
  256. package/dist/esm/post-icon.entry.js +0 -7
  257. package/dist/esm/post-list-5a17eff9.js +0 -35
  258. package/dist/esm/post-list-item-12ff4b9c.js +0 -20
  259. package/dist/esm/post-list-item.entry.js +0 -2
  260. package/dist/esm/post-list.entry.js +0 -3
  261. package/dist/esm/post-logo-0a072d4b.js +0 -37
  262. package/dist/esm/post-logo.entry.js +0 -6
  263. package/dist/esm/post-popovercontainer.entry.js +0 -3
  264. package/dist/post-components/p-065de04e.entry.js +0 -1
  265. package/dist/post-components/p-0af20b10.entry.js +0 -1
  266. package/dist/post-components/p-13e6577d.js +0 -1
  267. package/dist/post-components/p-16ff4451.entry.js +0 -1
  268. package/dist/post-components/p-2b777f74.js +0 -1
  269. package/dist/post-components/p-3a272de8.entry.js +0 -1
  270. package/dist/post-components/p-3cc61960.js +0 -1
  271. package/dist/post-components/p-49445ef1.entry.js +0 -1
  272. package/dist/post-components/p-6ecb14d1.js +0 -1
  273. package/dist/post-components/p-7986d834.js +0 -1
  274. package/dist/post-components/p-80e5d228.entry.js +0 -1
  275. package/dist/post-components/p-8618ccea.entry.js +0 -1
  276. package/dist/post-components/p-8bd32536.js +0 -1
  277. package/dist/post-components/p-8f36ccda.entry.js +0 -1
  278. package/dist/post-components/p-9753c9c7.entry.js +0 -1
  279. package/dist/post-components/p-9cd82521.js +0 -1
  280. package/dist/post-components/p-a3cc34a3.js +0 -1
  281. package/dist/post-components/p-a514b746.entry.js +0 -1
  282. package/dist/post-components/p-a9efdea5.entry.js +0 -1
  283. package/dist/post-components/p-aae80acd.entry.js +0 -1
  284. package/dist/post-components/p-b60d2ab7.entry.js +0 -1
  285. package/dist/post-components/p-b63a3fc2.entry.js +0 -1
  286. package/dist/post-components/p-ba14d022.js +0 -1
  287. package/dist/post-components/p-be5b0cdb.entry.js +0 -1
  288. package/dist/post-components/p-c79c7d00.entry.js +0 -1
  289. package/dist/post-components/p-cd91c467.entry.js +0 -1
  290. package/dist/post-components/p-d176f664.js +0 -1
  291. package/dist/post-components/p-d528afb2.entry.js +0 -1
  292. package/dist/post-components/p-d793c76b.js +0 -1
  293. package/dist/post-components/p-dd871b55.js +0 -1
  294. package/dist/post-components/p-e1925cd1.entry.js +0 -1
  295. package/dist/post-components/p-fb62c672.js +0 -1
  296. package/dist/post-components/p-fe602d19.entry.js +0 -1
  297. package/dist/post-components/p-ffb26d24.entry.js +0 -1
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-3f706795.js');
5
-
6
- const postListCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";
7
- const PostListStyle0 = postListCss;
8
-
9
- const PostList = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.titleId = undefined;
13
- this.titleHidden = false;
14
- this.horizontal = false;
15
- }
16
- componentWillLoad() {
17
- /**
18
- * Get the id set on the host element or use a random id by default
19
- */
20
- this.titleId = `list-${crypto.randomUUID()}`;
21
- }
22
- componentDidLoad() {
23
- this.checkTitle();
24
- }
25
- checkTitle() {
26
- if (!this.titleEl.innerText) {
27
- throw new Error('Please provide a title to the list component. Title is mandatory for accessibility purposes.');
28
- }
29
- }
30
- render() {
31
- return (index.h(index.Host, { key: '4931dd182e1a0a25704abacf996d7ce3489cb663', "data-version": _package.version }, index.h("div", { key: '84347e7b815ace536af32f8aabea7b730190bee5', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, index.h("slot", { key: '8778de71facc6b3376af67fcf8493a68bd6001cf' })), index.h("div", { key: 'f81e8f7fd38d894e31494af05f93c53b8595324d', role: "list", "aria-labelledby": this.titleId }, index.h("slot", { key: '04df5a2a6e49b9296353e6ea078e2643c8c39a76', name: "post-list-item" }))));
32
- }
33
- get host() { return index.getElement(this); }
34
- };
35
- PostList.style = PostListStyle0;
36
-
37
- exports.PostList = PostList;
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-e1f32cce.js');
4
-
5
- const postListItemCss = ":host{display:flex}";
6
- const PostListItemStyle0 = postListItemCss;
7
-
8
- const PostListItem = class {
9
- constructor(hostRef) {
10
- index.registerInstance(this, hostRef);
11
- }
12
- connectedCallback() {
13
- this.host.setAttribute('slot', 'post-list-item');
14
- }
15
- render() {
16
- return (index.h(index.Host, { key: 'ef252634192c180f5af6bda222853e82508c83f8', role: "listitem" }, index.h("slot", { key: 'c0752b971c7527660fcfa1fe5a8301a9676f5651' })));
17
- }
18
- get host() { return index.getElement(this); }
19
- };
20
- PostListItem.style = PostListItemStyle0;
21
-
22
- exports.PostListItem = PostListItem;
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const postListItem = require('./post-list-item-1b6ce0d0.js');
6
- require('./index-e1f32cce.js');
7
-
8
-
9
-
10
- exports.post_list_item = postListItem.PostListItem;
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const postList = require('./post-list-f2c673ef.js');
6
- require('./index-e1f32cce.js');
7
- require('./package-3f706795.js');
8
-
9
-
10
-
11
- exports.post_list = postList.PostList;
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-3f706795.js');
5
- const index$1 = require('./index-01f30442.js');
6
-
7
- const postLogoCss = ":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
8
- const PostLogoStyle0 = postLogoCss;
9
-
10
- const PostLogo = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.url = undefined;
14
- }
15
- validateUrl() {
16
- index$1.checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
17
- }
18
- componentDidLoad() {
19
- this.validateUrl();
20
- this.checkDescription();
21
- }
22
- checkDescription() {
23
- if (!this.host.textContent) {
24
- console.warn('Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.');
25
- }
26
- }
27
- render() {
28
- const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
29
- const LogoTag = logoLink ? 'a' : 'span';
30
- return (index.h(index.Host, { key: 'b574181a7c53cd9c9902e6ba186cd5a0de94cb3e', "data-version": _package.version }, index.h(LogoTag, Object.assign({ key: 'a27bf9db453b9b991c4db8d003eca10a28935b73', class: "logo" }, (logoLink ? { href: logoLink } : {})), index.h("span", { key: '1e464aff7a75b29bd72eb15aed9ac122a3b53765', class: "description" }, index.h("slot", { key: 'd32bbf03ff0d5343fd05f2c1c31e6b1d1d767926', onSlotchange: () => this.checkDescription() })), index.h("svg", { key: '3fa62f2304816bc4a7f974a2011e664f39a9a943', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, index.h("g", { key: '47dbbc031af1c8f56f0c7c9046ecf1bb2aacbeff', id: "Logo" }, index.h("rect", { key: '8da0d35310d062d0e1f23bc9eb19fef4fd5f7a96', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), index.h("polygon", { key: '7d96cc5f82e35308826e77e5daa94494ef8947e6', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), index.h("path", { key: '85b88d253f50500662ea6e7689a5cfa8461bd7c1', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
31
- }
32
- get host() { return index.getElement(this); }
33
- static get watchers() { return {
34
- "url": ["validateUrl"]
35
- }; }
36
- };
37
- PostLogo.style = PostLogoStyle0;
38
-
39
- exports.PostLogo = PostLogo;
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const postLogo = require('./post-logo-ed8e99c0.js');
6
- require('./index-e1f32cce.js');
7
- require('./package-3f706795.js');
8
- require('./index-01f30442.js');
9
- require('./constants-238701d3.js');
10
- require('./check-one-of-f4f5d0c0.js');
11
-
12
-
13
-
14
- exports.post_logo = postLogo.PostLogo;
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const postPopovercontainer = require('./post-popovercontainer-1e6be8ad.js');
6
- require('./index-e1f32cce.js');
7
- require('./package-3f706795.js');
8
-
9
-
10
-
11
- exports.post_popovercontainer = postPopovercontainer.PostPopovercontainer;
@@ -1,3 +0,0 @@
1
- const version = "9.0.0-next.4";
2
-
3
- export { version as v };
@@ -1,96 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e1b64755.js';
2
- import { v as version } from './package-aaf62247.js';
3
- import { f as fadeOut } from './fade-7fd71785.js';
4
- import { a as checkType, b as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index-642cd1f2.js';
5
- import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
6
-
7
- const ALERT_TYPES = ['primary', 'success', 'warning', 'danger', 'info', 'gray'];
8
-
9
- const postAlertCss = ".alert-primary,.alert-success,.alert-warning,.alert-danger,.alert-info,.alert-gray,.alert-notification,.alert-error{background-color:rgb(var(--post-bg-rgb)) !important;color:var(--post-contrast-color) !important}.alert-warning,.alert-info,.alert-gray{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222}.alert-primary,.alert-success,.alert-danger,.alert-notification,.alert-error{--post-contrast-color:#fff;--post-focus-color:#fff;--post-contrast-color-inverted:#000;--post-dark:#faf9f8;--post-light:hsl(0, 0%, 20%);--post-gray-80:hsl(0, 0%, 90%);--post-gray-60:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-20:hsl(0, 0%, 40%);--post-gray-10:hsl(0, 0%, 20%);--post-contrast-color-rgb:255, 255, 255;--post-contrast-color-inverted-rgb:0, 0, 0;--post-dark-rgb:250, 249, 248;--post-light-rgb:51, 51, 51;--post-gray-80-rgb:230, 230, 230;--post-gray-60-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-20-rgb:102, 102, 102;--post-gray-10-rgb:51, 51, 51}.alert{position:relative;box-sizing:border-box;min-height:5rem;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);border-radius:4px;padding:1rem 1.25rem;padding-inline-start:5.5rem;margin-block-end:1rem;font-size:1rem;font-weight:400}.alert.no-icon{min-height:3.5rem;padding-inline-start:1.25rem}.alert[class^=pi-],.alert[class*=\" pi-\"]{background-size:3rem;background-position:1.25rem 1rem;background-repeat:no-repeat}.alert[class^=pi-].no-icon,.alert[class*=\" pi-\"].no-icon{background-image:none}.alert::before{content:\"\";display:block}.alert::before,.alert>post-icon{position:absolute;height:3rem;width:3rem;left:1.25rem;top:1rem}.alert.no-icon::before,.alert[class^=pi-]::before,.alert[class*=\" pi-\"]::before{content:unset}.alert.no-icon>post-icon,.alert[class^=pi-]>post-icon,.alert[class*=\" pi-\"]>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.alert{filter:none !important;border:2px solid CanvasText}}.alert:not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert:not(.alert-action) a{font-weight:400}.alert:not(.alert-action) hr{margin-block:.5rem .75rem !important}.alert:not(.alert-action)>:only-child,.alert:not(.alert-action)>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert:not(.alert-action)>*{margin:0}.alert-heading{font-size:1.0625rem;font-weight:700}.alert-dismissible{pointer-events:auto;position:relative;padding-inline-end:4rem}.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:1.25rem}.alert-dismissible>.btn-close:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action{display:flex;flex-direction:row;align-items:center;gap:1.25rem}.alert-action>.alert-content{flex:1 1 auto}.alert-action>.alert-content{display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert-action>.alert-content a{font-weight:400}.alert-action>.alert-content hr{margin-block:.5rem .75rem !important}.alert-action>.alert-content>:only-child,.alert-action>.alert-content>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action>.alert-content>*{margin:0}.alert-action>.alert-buttons{flex:0 0 auto;display:flex;align-items:center;gap:.5rem}@media (min-width: 780px){.alert-action.alert-dismissible>.btn-close{inset-block-start:calc(50% - 0.75rem)}}@media (max-width: 779.98px){.alert-action{flex-direction:column;align-items:stretch;padding-inline:1.25rem}.alert-action>.alert-content{padding-inline-start:4.25rem;padding-inline-end:2.75rem}.alert-action.no-icon>.alert-content{padding-inline-start:0}.alert-action>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn,.alert-action>.alert-buttons>::slotted(.btn){flex:1 0 0;width:100%}.alert-action>.alert-buttons>.btn:first-child,.alert-action>.alert-buttons>::slotted(.btn:first-child){margin-inline-start:0}}.alert-fixed-bottom{position:fixed;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;margin-bottom:0;border-radius:0;z-index:1030}@media (min-width: 1440px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1439px) / 2 + 120px + 1.25rem);padding-inline-start:calc(\n (100% - 1439px) / 2 + 120px + 1.25rem + 3rem + 1.25rem\n );background-position-x:calc((100% - 1439px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1439px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1439px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(\n (100% - 1439px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem\n )}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1439px) / 2 + 120px + 1.25rem)}}.alert-primary{--post-bg-rgb:51, 51, 51}.alert-primary:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb:44, 135, 29}.alert-success:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c871d}.alert-warning{--post-bg-rgb:244, 158, 0}.alert-warning:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.alert-danger{--post-bg-rgb:165, 23, 40}.alert-danger:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.alert-info{--post-bg-rgb:204, 228, 238}.alert-info:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-info:has(>post-icon)::before{content:none}.alert-info>post-icon{background-color:#cce4ee}.alert-gray{--post-bg-rgb:244, 243, 241}.alert-gray:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-gray:has(>post-icon)::before{content:none}.alert-gray>post-icon{background-color:#f4f3f1}.alert-notification{--post-bg-rgb:51, 51, 51}.alert-notification:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-notification:has(>post-icon)::before{content:none}.alert-notification>post-icon{background-color:#333}.alert-error{--post-bg-rgb:165, 23, 40}.alert-error:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-error:has(>post-icon)::before{content:none}.alert-error>post-icon{background-color:#a51728}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{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-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}.alert-heading>::slotted(h1){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h2){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h3){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h4){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h5){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h6){font-size:inherit !important;font-weight:inherit !important}";
10
- const PostAlertStyle0 = postAlertCss;
11
-
12
- const PostAlert = class {
13
- constructor(hostRef) {
14
- registerInstance(this, hostRef);
15
- this.postDismissed = createEvent(this, "postDismissed", 7);
16
- this.alertId = crypto.randomUUID();
17
- this.classes = undefined;
18
- this.hasActions = undefined;
19
- this.hasHeading = undefined;
20
- this.onDismissButtonClick = () => this.dismiss();
21
- this.dismissible = false;
22
- this.dismissLabel = undefined;
23
- this.fixed = false;
24
- this.icon = undefined;
25
- this.type = 'primary';
26
- }
27
- validateDismissible(isDismissible = this.dismissible) {
28
- checkType(isDismissible, 'boolean', 'The post-alert "dismissible" prop should be a boolean.');
29
- setTimeout(() => this.validateDismissLabel());
30
- }
31
- validateDismissLabel(dismissLabel = this.dismissLabel) {
32
- if (this.dismissible) {
33
- checkNonEmpty(dismissLabel, 'Dismissible post-alert\'s require a "dismiss-label" prop.');
34
- }
35
- }
36
- validateFixed(isFixed = this.fixed) {
37
- checkType(isFixed, 'boolean', 'The post-alert "fixed" prop should be a boolean.');
38
- }
39
- validateIcon(icon = this.icon) {
40
- checkEmptyOrPattern(icon, /\d{4}|none/, 'The post-alert "icon" prop should be a 4-digits string.');
41
- }
42
- validateType(type = this.type) {
43
- checkEmptyOrOneOf(type, ALERT_TYPES, `The post-alert requires a type form: ${ALERT_TYPES.join(', ')}`);
44
- }
45
- componentDidLoad() {
46
- this.validateDismissible();
47
- this.validateFixed();
48
- this.validateIcon();
49
- this.validateType();
50
- }
51
- componentWillRender() {
52
- var _a;
53
- this.hasHeading = this.host.querySelectorAll('[slot=heading]').length > 0;
54
- this.hasActions = this.host.querySelectorAll('[slot=actions]').length > 0;
55
- this.classes = `alert alert-${(_a = this.type) !== null && _a !== void 0 ? _a : 'primary'}`;
56
- if (this.dismissible)
57
- this.classes += ' alert-dismissible';
58
- if (this.hasActions)
59
- this.classes += ' alert-action';
60
- if (this.fixed)
61
- this.classes += ' alert-fixed-bottom';
62
- if (this.icon === 'none')
63
- this.classes += ' no-icon';
64
- }
65
- /**
66
- * Triggers alert dismissal programmatically (same as clicking on the close button (×)).
67
- */
68
- async dismiss() {
69
- const dismissal = fadeOut(this.host);
70
- await dismissal.finished;
71
- this.host.remove();
72
- this.postDismissed.emit();
73
- }
74
- render() {
75
- const defaultAlertContent = [
76
- this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: 'a3404eee0322cc2b50125bf4ca08969e33d15763', name: "heading" }))),
77
- h("slot", { key: `${this.alertId}-message` }),
78
- ];
79
- const actionAlertContent = [
80
- h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
81
- h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '50941abd468008cd58a1e05577243d1046a0e20e', name: "actions" })),
82
- ];
83
- return (h(Host, { key: '99c1e3b4cc943d8be2d5abe7b2b27dce03548d15', "data-version": version }, h("div", { key: 'a290771bcc1234684502f524fe6e7e44501fc004', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '57c9cdbec53430b0fc6e121b5928bb14b86c37e0', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: '82d59b6deb736b4053b2b0876c87456c160928ee', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
84
- }
85
- get host() { return getElement(this); }
86
- static get watchers() { return {
87
- "dismissible": ["validateDismissible"],
88
- "dismissLabel": ["validateDismissLabel"],
89
- "fixed": ["validateFixed"],
90
- "icon": ["validateIcon"],
91
- "type": ["validateType"]
92
- }; }
93
- };
94
- PostAlert.style = PostAlertStyle0;
95
-
96
- export { PostAlert as P };
@@ -1,14 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
- import { v as version } from './package-aaf62247.js';
3
-
4
- const PostClosebutton = class {
5
- constructor(hostRef) {
6
- registerInstance(this, hostRef);
7
- }
8
- render() {
9
- return (h(Host, { key: 'b7e24245bf8319049c57737d754f566abf70b2ff', "data-version": version }, h("button", { key: 'ab26b009632b4050d45eafc4dcab0e8ede55f943', class: "btn btn-icon-close" }, h("post-icon", { key: 'fa8da29f6f0795c3f0128c008e2fd8caee272fe5', "aria-hidden": "true", name: "2043" }), h("span", { key: 'f55941d6449a08911a2432213cf2f4c2b3f961aa', class: "visually-hidden" }, h("slot", { key: '172454f7bbb2fa54f245137c49d4bde0527a1308' })))));
10
- }
11
- get host() { return getElement(this); }
12
- };
13
-
14
- export { PostClosebutton as P };
@@ -1,3 +0,0 @@
1
- export { P as post_closebutton } from './post-closebutton-a951a0ba.js';
2
- import './index-e1b64755.js';
3
- import './package-aaf62247.js';
@@ -1,102 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
- import { c as checkEmptyOrOneOf, e as checkEmptyOrType, a as checkType } from './index-642cd1f2.js';
3
- import { v as version } from './package-aaf62247.js';
4
- import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
-
6
- const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
7
- const PostIconStyle0 = postIconCss;
8
-
9
- const CDN_URL = 'https://unpkg.com/@swisspost/design-system-icons/public/post-icons';
10
- const ANIMATION_NAMES = [
11
- 'cylon',
12
- 'cylon-vertical',
13
- 'spin',
14
- 'spin-reverse',
15
- 'fade',
16
- 'throb',
17
- ];
18
- const ANIMATION_KEYS = [...ANIMATION_NAMES];
19
- const PostIcon = class {
20
- constructor(hostRef) {
21
- registerInstance(this, hostRef);
22
- this.svgStyles = undefined;
23
- this.svgOutput = undefined;
24
- this.animation = null;
25
- this.base = null;
26
- this.flipH = false;
27
- this.flipV = false;
28
- this.name = undefined;
29
- this.rotate = null;
30
- this.scale = null;
31
- }
32
- validateAnimation(newValue = this.animation) {
33
- if (newValue !== undefined)
34
- checkEmptyOrOneOf(newValue, ANIMATION_KEYS, `The post-icon "animation" prop requires one of the following values: ${ANIMATION_KEYS.join(', ')}.`);
35
- }
36
- validateBase(newValue = this.base) {
37
- checkEmptyOrType(newValue, 'string', 'The post-icon "base" prop should be a string.');
38
- }
39
- validateFlipH(newValue = this.flipH) {
40
- checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipH" prop should be a boolean.');
41
- }
42
- validateFlipV(newValue = this.flipV) {
43
- checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipV" prop should be a boolean.');
44
- }
45
- validateName(newValue = this.name) {
46
- checkNonEmpty(newValue, 'The post-icon "name" prop is required!.');
47
- checkType(newValue, 'string', 'The post-icon "name" prop should be a string.');
48
- }
49
- validateRotate(newValue = this.rotate) {
50
- checkEmptyOrType(newValue, 'number', 'The post-icon "rotate" prop should be a number.');
51
- }
52
- validateScale(newValue = this.scale) {
53
- checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
54
- }
55
- componentDidLoad() {
56
- this.validateBase();
57
- this.validateName();
58
- this.validateFlipH();
59
- this.validateFlipV();
60
- this.validateScale();
61
- this.validateRotate();
62
- this.validateAnimation();
63
- }
64
- componentWillRender() {
65
- this.setPath();
66
- }
67
- setPath() {
68
- var _a, _b, _c, _d;
69
- // Construct icon path from different possible sources
70
- const metaBase = (_b = (_a = document.head
71
- .querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
72
- const fileBase = `${(_d = (_c = this.base) !== null && _c !== void 0 ? _c : metaBase) !== null && _d !== void 0 ? _d : CDN_URL}/`.replace(/\/\/$/, '/');
73
- const fileName = `${this.name}.svg`;
74
- const filePath = `${fileBase}${fileName}`;
75
- this.path = new URL(filePath, window.location.origin).toString();
76
- }
77
- render() {
78
- // create inline styles for some properties
79
- const svgStyles = Object.entries({
80
- '-webkit-mask-image': `url('${this.path}')`,
81
- 'mask-image': `url('${this.path}')`,
82
- 'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
83
- (this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
84
- })
85
- .filter(([_key, value]) => value !== null)
86
- .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
87
- return (h(Host, { key: '86c61ac92270e1b46ef63e2bb0ff4683a16ca794', "data-version": version }, h("span", { key: 'ad856363b96d303912c9085d9d45cb911cbedfc6', style: svgStyles })));
88
- }
89
- get host() { return getElement(this); }
90
- static get watchers() { return {
91
- "animation": ["validateAnimation"],
92
- "base": ["validateBase"],
93
- "flipH": ["validateFlipH"],
94
- "flipV": ["validateFlipV"],
95
- "name": ["validateName"],
96
- "rotate": ["validateRotate"],
97
- "scale": ["validateScale"]
98
- }; }
99
- };
100
- PostIcon.style = PostIconStyle0;
101
-
102
- export { PostIcon as P };
@@ -1,7 +0,0 @@
1
- export { P as post_icon } from './post-icon-29b33e6a.js';
2
- import './index-e1b64755.js';
3
- import './index-642cd1f2.js';
4
- import './constants-8d548297.js';
5
- import './check-one-of-6b3ef8eb.js';
6
- import './package-aaf62247.js';
7
- import './check-non-empty-58bd6b17.js';
@@ -1,35 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
- import { v as version } from './package-aaf62247.js';
3
-
4
- const postListCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";
5
- const PostListStyle0 = postListCss;
6
-
7
- const PostList = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.titleId = undefined;
11
- this.titleHidden = false;
12
- this.horizontal = false;
13
- }
14
- componentWillLoad() {
15
- /**
16
- * Get the id set on the host element or use a random id by default
17
- */
18
- this.titleId = `list-${crypto.randomUUID()}`;
19
- }
20
- componentDidLoad() {
21
- this.checkTitle();
22
- }
23
- checkTitle() {
24
- if (!this.titleEl.innerText) {
25
- throw new Error('Please provide a title to the list component. Title is mandatory for accessibility purposes.');
26
- }
27
- }
28
- render() {
29
- return (h(Host, { key: '4931dd182e1a0a25704abacf996d7ce3489cb663', "data-version": version }, h("div", { key: '84347e7b815ace536af32f8aabea7b730190bee5', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, h("slot", { key: '8778de71facc6b3376af67fcf8493a68bd6001cf' })), h("div", { key: 'f81e8f7fd38d894e31494af05f93c53b8595324d', role: "list", "aria-labelledby": this.titleId }, h("slot", { key: '04df5a2a6e49b9296353e6ea078e2643c8c39a76', name: "post-list-item" }))));
30
- }
31
- get host() { return getElement(this); }
32
- };
33
- PostList.style = PostListStyle0;
34
-
35
- export { PostList as P };
@@ -1,20 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
-
3
- const postListItemCss = ":host{display:flex}";
4
- const PostListItemStyle0 = postListItemCss;
5
-
6
- const PostListItem = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- }
10
- connectedCallback() {
11
- this.host.setAttribute('slot', 'post-list-item');
12
- }
13
- render() {
14
- return (h(Host, { key: 'ef252634192c180f5af6bda222853e82508c83f8', role: "listitem" }, h("slot", { key: 'c0752b971c7527660fcfa1fe5a8301a9676f5651' })));
15
- }
16
- get host() { return getElement(this); }
17
- };
18
- PostListItem.style = PostListItemStyle0;
19
-
20
- export { PostListItem as P };
@@ -1,2 +0,0 @@
1
- export { P as post_list_item } from './post-list-item-12ff4b9c.js';
2
- import './index-e1b64755.js';
@@ -1,3 +0,0 @@
1
- export { P as post_list } from './post-list-5a17eff9.js';
2
- import './index-e1b64755.js';
3
- import './package-aaf62247.js';
@@ -1,37 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
- import { v as version } from './package-aaf62247.js';
3
- import { d as checkEmptyOrUrl } from './index-642cd1f2.js';
4
-
5
- const postLogoCss = ":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
6
- const PostLogoStyle0 = postLogoCss;
7
-
8
- const PostLogo = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.url = undefined;
12
- }
13
- validateUrl() {
14
- checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
15
- }
16
- componentDidLoad() {
17
- this.validateUrl();
18
- this.checkDescription();
19
- }
20
- checkDescription() {
21
- if (!this.host.textContent) {
22
- console.warn('Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.');
23
- }
24
- }
25
- render() {
26
- const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
27
- const LogoTag = logoLink ? 'a' : 'span';
28
- return (h(Host, { key: 'b574181a7c53cd9c9902e6ba186cd5a0de94cb3e', "data-version": version }, h(LogoTag, Object.assign({ key: 'a27bf9db453b9b991c4db8d003eca10a28935b73', class: "logo" }, (logoLink ? { href: logoLink } : {})), h("span", { key: '1e464aff7a75b29bd72eb15aed9ac122a3b53765', class: "description" }, h("slot", { key: 'd32bbf03ff0d5343fd05f2c1c31e6b1d1d767926', onSlotchange: () => this.checkDescription() })), h("svg", { key: '3fa62f2304816bc4a7f974a2011e664f39a9a943', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: '47dbbc031af1c8f56f0c7c9046ecf1bb2aacbeff', id: "Logo" }, h("rect", { key: '8da0d35310d062d0e1f23bc9eb19fef4fd5f7a96', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '7d96cc5f82e35308826e77e5daa94494ef8947e6', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: '85b88d253f50500662ea6e7689a5cfa8461bd7c1', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
29
- }
30
- get host() { return getElement(this); }
31
- static get watchers() { return {
32
- "url": ["validateUrl"]
33
- }; }
34
- };
35
- PostLogo.style = PostLogoStyle0;
36
-
37
- export { PostLogo as P };
@@ -1,6 +0,0 @@
1
- export { P as post_logo } from './post-logo-0a072d4b.js';
2
- import './index-e1b64755.js';
3
- import './package-aaf62247.js';
4
- import './index-642cd1f2.js';
5
- import './constants-8d548297.js';
6
- import './check-one-of-6b3ef8eb.js';
@@ -1,3 +0,0 @@
1
- export { P as post_popovercontainer } from './post-popovercontainer-409abba0.js';
2
- import './index-e1b64755.js';
3
- import './package-aaf62247.js';
@@ -1 +0,0 @@
1
- export{P as post_tab_panel}from"./p-8bd32536.js";import"./p-3eab790d.js";import"./p-7986d834.js";
@@ -1 +0,0 @@
1
- export{P as post_language_option}from"./p-9cd82521.js";import"./p-3eab790d.js";import"./p-ba14d022.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-7986d834.js";
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as o}from"./p-3eab790d.js";import{v as s}from"./p-7986d834.js";const a=class{constructor(i){t(this,i),this.titleId=void 0,this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`list-${crypto.randomUUID()}`}componentDidLoad(){this.checkTitle()}checkTitle(){if(!this.titleEl.innerText)throw new Error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return i(e,{key:"4931dd182e1a0a25704abacf996d7ce3489cb663","data-version":s},i("div",{key:"84347e7b815ace536af32f8aabea7b730190bee5",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},i("slot",{key:"8778de71facc6b3376af67fcf8493a68bd6001cf"})),i("div",{key:"f81e8f7fd38d894e31494af05f93c53b8595324d",role:"list","aria-labelledby":this.titleId},i("slot",{key:"04df5a2a6e49b9296353e6ea078e2643c8c39a76",name:"post-list-item"})))}get host(){return o(this)}};a.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";export{a as P}
@@ -1 +0,0 @@
1
- export{P as post_popovercontainer}from"./p-d176f664.js";import"./p-3eab790d.js";import"./p-7986d834.js";