@swisspost/design-system-components 9.0.0-next.8 → 9.0.0

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 (432) hide show
  1. package/dist/cjs/index-e1f32cce.js +16 -36
  2. package/dist/cjs/index.cjs.js +23 -44
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-a2b895fc.js → package-3ed88bb9.js} +1 -1
  5. package/dist/cjs/{post-accordion-3ce01432.js → post-accordion-9ef382e8.js} +2 -2
  6. package/dist/cjs/post-accordion-item-5f685bee.js +52 -0
  7. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  8. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/post-alert-88adc668.js +99 -0
  10. package/dist/cjs/{post-banner.cjs.entry.js → post-alert.cjs.entry.js} +3 -3
  11. package/dist/cjs/post-card-control-c6e5c427.js +272 -0
  12. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  13. package/dist/cjs/{post-collapsible-trigger-8ca4d85b.js → post-collapsible-trigger-1764e6dc.js} +12 -7
  14. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -3
  15. package/dist/cjs/post-components.cjs.js +1 -1
  16. package/dist/cjs/post-icon-f735da00.js +139 -0
  17. package/dist/cjs/{post-language-option.cjs.entry.js → post-icon.cjs.entry.js} +4 -3
  18. package/dist/cjs/post-logo-2cd8ae98.js +39 -0
  19. package/dist/cjs/{post-breadcrumb-item.cjs.entry.js → post-logo.cjs.entry.js} +3 -3
  20. package/dist/cjs/post-popover-36c854a4.js +131 -0
  21. package/dist/cjs/post-popover.cjs.entry.js +2 -3
  22. package/dist/cjs/{post-megadropdown-trigger-7376d867.js → post-popovercontainer-cb4793c1.js} +142 -545
  23. package/dist/cjs/post-popovercontainer.cjs.entry.js +11 -0
  24. package/dist/cjs/post-rating-d5073d8d.js +88 -0
  25. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  26. package/dist/cjs/post-tab-header-b756d9b1.js +32 -0
  27. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  28. package/dist/cjs/{post-tab-panel-34aed8e6.js → post-tab-panel-97b79ecd.js} +2 -2
  29. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  30. package/dist/cjs/{post-tabs-dd2da5d2.js → post-tabs-834497f2.js} +8 -6
  31. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  32. package/dist/cjs/post-tag-c70fb945.js +47 -0
  33. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  34. package/dist/cjs/post-tooltip-20ebe011.js +69 -0
  35. package/dist/cjs/{post-tooltip-3e0c1509.js → post-tooltip-trigger-6f4c9748.js} +506 -556
  36. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +12 -0
  37. package/dist/cjs/post-tooltip.cjs.entry.js +2 -6
  38. package/dist/collection/collection-manifest.json +3 -17
  39. package/dist/collection/components/post-accordion/post-accordion.css +1 -1
  40. package/dist/collection/components/post-accordion/post-accordion.js +2 -2
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  42. package/dist/collection/components/post-accordion-item/post-accordion-item.js +8 -19
  43. package/dist/collection/components/post-alert/alert-types.js +1 -0
  44. package/dist/collection/components/post-alert/post-alert.css +35 -0
  45. package/dist/collection/components/{post-banner/post-banner.js → post-alert/post-alert.js} +68 -39
  46. package/dist/collection/components/post-card-control/post-card-control.css +30 -2
  47. package/dist/collection/components/post-card-control/post-card-control.js +8 -8
  48. package/dist/collection/components/post-collapsible/post-collapsible.js +2 -4
  49. package/dist/collection/components/post-icon/post-icon.css +1 -1
  50. package/dist/collection/components/post-icon/post-icon.js +52 -13
  51. package/dist/collection/components/post-logo/post-logo.js +1 -1
  52. package/dist/collection/components/post-popover/post-popover.css +30 -2
  53. package/dist/collection/components/post-popover/post-popover.js +10 -6
  54. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +31 -1
  55. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +180 -52
  56. package/dist/collection/components/post-rating/post-rating.css +29 -1
  57. package/dist/collection/components/post-rating/post-rating.js +1 -1
  58. package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
  59. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  60. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  61. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  62. package/dist/collection/components/post-tabs/post-tabs.js +6 -4
  63. package/dist/collection/components/post-tag/post-tag.css +29 -1
  64. package/dist/collection/components/post-tag/post-tag.js +2 -2
  65. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  66. package/dist/collection/components/post-tooltip/post-tooltip.js +60 -213
  67. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.css +1 -0
  68. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +230 -0
  69. package/dist/collection/index.js +2 -16
  70. package/dist/components/index.js +2 -16
  71. package/dist/components/index2.js +1 -1
  72. package/dist/components/package.js +1 -1
  73. package/dist/components/post-accordion-item2.js +10 -27
  74. package/dist/components/post-accordion2.js +1 -1
  75. package/dist/components/{post-menu.d.ts → post-alert.d.ts} +4 -4
  76. package/dist/components/post-alert.js +6 -0
  77. package/dist/components/post-alert2.js +136 -0
  78. package/dist/components/post-card-control2.js +3 -3
  79. package/dist/components/post-collapsible-trigger2.js +8 -1
  80. package/dist/components/post-collapsible2.js +3 -5
  81. package/dist/components/post-icon2.js +54 -15
  82. package/dist/components/post-logo2.js +2 -2
  83. package/dist/components/post-popover2.js +35 -8
  84. package/dist/components/post-popovercontainer2.js +136 -41
  85. package/dist/components/post-rating2.js +2 -2
  86. package/dist/components/post-tab-header2.js +2 -2
  87. package/dist/components/post-tab-panel2.js +1 -1
  88. package/dist/components/post-tabs2.js +7 -5
  89. package/dist/components/post-tag2.js +2 -2
  90. package/dist/components/{post-banner.d.ts → post-tooltip-trigger.d.ts} +4 -4
  91. package/dist/components/post-tooltip-trigger.js +6 -0
  92. package/dist/components/post-tooltip-trigger2.js +4968 -0
  93. package/dist/components/post-tooltip2.js +32 -4962
  94. package/dist/docs.json +290 -1288
  95. package/dist/esm/{index-f8a00dc0.js → index-69587a51.js} +1 -1
  96. package/dist/esm/index-e1b64755.js +16 -36
  97. package/dist/esm/index.js +19 -26
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/package-983f957d.js +3 -0
  100. package/dist/esm/{post-accordion-19e88941.js → post-accordion-ad570427.js} +2 -2
  101. package/dist/esm/post-accordion-item-4db0aa2a.js +50 -0
  102. package/dist/esm/post-accordion-item.entry.js +3 -3
  103. package/dist/esm/post-accordion.entry.js +2 -2
  104. package/dist/esm/post-alert-1e9fbdfa.js +97 -0
  105. package/dist/esm/{post-banner.entry.js → post-alert.entry.js} +3 -3
  106. package/dist/esm/post-card-control-ccb189a8.js +270 -0
  107. package/dist/esm/post-card-control.entry.js +2 -2
  108. package/dist/esm/{post-collapsible-trigger-1d939eb6.js → post-collapsible-trigger-45fe328a.js} +12 -7
  109. package/dist/esm/post-collapsible_2.entry.js +3 -4
  110. package/dist/esm/post-components.js +1 -1
  111. package/dist/esm/post-icon-3fc4dd7d.js +137 -0
  112. package/dist/esm/post-icon.entry.js +8 -0
  113. package/dist/esm/post-logo-e6cdea13.js +37 -0
  114. package/dist/esm/post-logo.entry.js +7 -0
  115. package/dist/esm/post-popover-afdf4906.js +129 -0
  116. package/dist/esm/post-popover.entry.js +2 -3
  117. package/dist/esm/{post-megadropdown-trigger-210b4ab3.js → post-popovercontainer-b19b7606.js} +144 -538
  118. package/dist/esm/post-popovercontainer.entry.js +3 -0
  119. package/dist/esm/post-rating-f60024fa.js +86 -0
  120. package/dist/esm/post-rating.entry.js +2 -2
  121. package/dist/esm/post-tab-header-333e15d5.js +30 -0
  122. package/dist/esm/post-tab-header.entry.js +2 -2
  123. package/dist/esm/{post-tab-panel-afce8d40.js → post-tab-panel-0ddb05a2.js} +2 -2
  124. package/dist/esm/post-tab-panel.entry.js +2 -2
  125. package/dist/esm/{post-tabs-fbb42496.js → post-tabs-ab7853cf.js} +8 -6
  126. package/dist/esm/post-tabs.entry.js +2 -2
  127. package/dist/esm/post-tag-4a7d14b9.js +45 -0
  128. package/dist/esm/post-tag.entry.js +2 -2
  129. package/dist/esm/post-tooltip-c03cd719.js +67 -0
  130. package/dist/esm/{post-tooltip-7101ed24.js → post-tooltip-trigger-1fefc8ad.js} +506 -556
  131. package/dist/esm/post-tooltip-trigger.entry.js +4 -0
  132. package/dist/esm/post-tooltip.entry.js +2 -6
  133. package/dist/post-components/index.esm.js +1 -1
  134. package/dist/post-components/p-0a45da5e.entry.js +1 -0
  135. package/dist/post-components/p-12e82863.entry.js +1 -0
  136. package/dist/post-components/p-1386b77d.js +1 -0
  137. package/dist/post-components/p-1528b798.js +1 -0
  138. package/dist/post-components/p-18dc1299.entry.js +1 -0
  139. package/dist/post-components/p-1a8f6c84.entry.js +1 -0
  140. package/dist/post-components/p-256453ca.js +1 -0
  141. package/dist/post-components/p-3272ebad.js +1 -0
  142. package/dist/post-components/p-3596035e.js +1 -0
  143. package/dist/post-components/p-3668f4fa.entry.js +1 -0
  144. package/dist/post-components/p-375845d4.js +1 -0
  145. package/dist/post-components/p-381de59d.entry.js +1 -0
  146. package/dist/post-components/p-4e68c514.js +1 -0
  147. package/dist/post-components/p-4eb5d9a1.entry.js +1 -0
  148. package/dist/post-components/p-61a7d216.js +1 -0
  149. package/dist/post-components/{p-0338f9da.js → p-788e64fb.js} +1 -1
  150. package/dist/post-components/p-7d5b41d1.js +1 -0
  151. package/dist/post-components/p-82ea24e7.js +1 -0
  152. package/dist/post-components/p-85c4d04f.js +1 -0
  153. package/dist/post-components/p-85c6d001.entry.js +1 -0
  154. package/dist/post-components/p-8e555dda.js +15 -0
  155. package/dist/post-components/p-962a6f36.entry.js +1 -0
  156. package/dist/post-components/p-a76c71bc.js +1 -0
  157. package/dist/post-components/p-a7e8fd41.entry.js +1 -0
  158. package/dist/post-components/p-ac216bd0.entry.js +1 -0
  159. package/dist/post-components/p-b17ecbee.entry.js +1 -0
  160. package/dist/post-components/p-bb4227ad.entry.js +1 -0
  161. package/dist/post-components/p-bc294d0b.js +1 -0
  162. package/dist/post-components/p-d0b3c5d3.entry.js +1 -0
  163. package/dist/post-components/p-d4e148d8.entry.js +1 -0
  164. package/dist/post-components/p-d9809281.js +1 -0
  165. package/dist/post-components/p-eb1e7a49.js +1 -0
  166. package/dist/post-components/p-f35291d5.entry.js +1 -0
  167. package/dist/post-components/p-fc3bfe08.js +1 -0
  168. package/dist/post-components/post-components.esm.js +1 -1
  169. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  170. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -5
  171. package/dist/types/components/post-alert/alert-types.d.ts +2 -0
  172. package/dist/types/components/post-alert/post-alert.d.ts +54 -0
  173. package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
  174. package/dist/types/components/post-icon/post-icon.d.ts +1 -1
  175. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +31 -13
  176. package/dist/types/components/post-tag/post-tag.d.ts +1 -1
  177. package/dist/types/components/post-tooltip/post-tooltip.d.ts +20 -34
  178. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +47 -0
  179. package/dist/types/components.d.ts +124 -490
  180. package/dist/types/index.d.ts +2 -16
  181. package/loaders/index.d.ts +4 -32
  182. package/loaders/index.js +4 -18
  183. package/loaders/index2.js +1 -1
  184. package/loaders/package.js +1 -1
  185. package/loaders/post-accordion-item.js +11 -28
  186. package/loaders/post-accordion.js +1 -1
  187. package/loaders/{post-menu.d.ts → post-alert.d.ts} +4 -4
  188. package/loaders/post-alert.js +139 -0
  189. package/loaders/post-card-control.js +3 -3
  190. package/loaders/post-collapsible-trigger2.js +8 -1
  191. package/loaders/post-collapsible2.js +3 -5
  192. package/loaders/post-icon2.js +54 -15
  193. package/loaders/post-logo.js +2 -2
  194. package/loaders/post-popover.js +35 -8
  195. package/loaders/post-popovercontainer2.js +136 -41
  196. package/loaders/post-rating.js +2 -2
  197. package/loaders/post-tab-header.js +2 -2
  198. package/loaders/post-tab-panel.js +1 -1
  199. package/loaders/post-tabs.js +7 -5
  200. package/loaders/post-tag.js +2 -2
  201. package/loaders/{post-avatar.d.ts → post-tooltip-trigger.d.ts} +4 -4
  202. package/loaders/post-tooltip-trigger.js +4971 -0
  203. package/loaders/post-tooltip.js +32 -4962
  204. package/package.json +5 -7
  205. package/dist/cjs/attribute-observer-10f08c04.js +0 -27
  206. package/dist/cjs/get-root-7a3498ef.js +0 -11
  207. package/dist/cjs/post-accordion-item-81601b1e.js +0 -62
  208. package/dist/cjs/post-avatar-b1c97f51.js +0 -148
  209. package/dist/cjs/post-avatar.cjs.entry.js +0 -13
  210. package/dist/cjs/post-back-to-top-0ce98569.js +0 -98
  211. package/dist/cjs/post-back-to-top.cjs.entry.js +0 -14
  212. package/dist/cjs/post-banner-8611eab5.js +0 -90
  213. package/dist/cjs/post-breadcrumb-item-2075462a.js +0 -49
  214. package/dist/cjs/post-card-control-acd30573.js +0 -272
  215. package/dist/cjs/post-closebutton_10.cjs.entry.js +0 -25
  216. package/dist/cjs/post-language-option-cf32d0ed.js +0 -68
  217. package/dist/cjs/post-menu-a3b7b63b.js +0 -176
  218. package/dist/cjs/post-menu-item-28ab1a72.js +0 -20
  219. package/dist/cjs/post-menu-item.cjs.entry.js +0 -11
  220. package/dist/cjs/post-menu-trigger-821839f5.js +0 -75
  221. package/dist/cjs/post-menu-trigger.cjs.entry.js +0 -13
  222. package/dist/cjs/post-menu.cjs.entry.js +0 -11
  223. package/dist/cjs/post-popover-c4f50134.js +0 -104
  224. package/dist/cjs/post-rating-3a87ca46.js +0 -88
  225. package/dist/cjs/post-tab-header-5fdb05a1.js +0 -32
  226. package/dist/cjs/post-tag-59232922.js +0 -47
  227. package/dist/cjs/post-togglebutton-59c6357b.js +0 -28
  228. package/dist/cjs/post-togglebutton.cjs.entry.js +0 -11
  229. package/dist/collection/animations/slide.js +0 -23
  230. package/dist/collection/components/post-avatar/post-avatar.css +0 -3
  231. package/dist/collection/components/post-avatar/post-avatar.js +0 -237
  232. package/dist/collection/components/post-back-to-top/post-back-to-top.css +0 -1
  233. package/dist/collection/components/post-back-to-top/post-back-to-top.js +0 -107
  234. package/dist/collection/components/post-banner/banner-types.js +0 -1
  235. package/dist/collection/components/post-banner/post-banner.css +0 -3
  236. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +0 -1
  237. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +0 -83
  238. package/dist/collection/components/post-closebutton/post-closebutton.js +0 -12
  239. package/dist/collection/components/post-header/post-header.css +0 -1
  240. package/dist/collection/components/post-header/post-header.js +0 -103
  241. package/dist/collection/components/post-language-option/post-language-option.css +0 -3
  242. package/dist/collection/components/post-language-option/post-language-option.js +0 -191
  243. package/dist/collection/components/post-list/post-list.css +0 -3
  244. package/dist/collection/components/post-list/post-list.js +0 -87
  245. package/dist/collection/components/post-list-item/post-list-item.css +0 -1
  246. package/dist/collection/components/post-list-item/post-list-item.js +0 -25
  247. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +0 -1
  248. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +0 -61
  249. package/dist/collection/components/post-megadropdown/post-megadropdown.css +0 -1
  250. package/dist/collection/components/post-megadropdown/post-megadropdown.js +0 -137
  251. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +0 -1
  252. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +0 -48
  253. package/dist/collection/components/post-menu/post-menu.css +0 -3
  254. package/dist/collection/components/post-menu/post-menu.js +0 -278
  255. package/dist/collection/components/post-menu-item/post-menu-item.css +0 -1
  256. package/dist/collection/components/post-menu-item/post-menu-item.js +0 -20
  257. package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +0 -1
  258. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +0 -104
  259. package/dist/collection/components/post-togglebutton/post-togglebutton.css +0 -1
  260. package/dist/collection/components/post-togglebutton/post-togglebutton.js +0 -56
  261. package/dist/collection/utils/is-focusable.js +0 -26
  262. package/dist/components/attribute-observer.js +0 -25
  263. package/dist/components/get-root.js +0 -9
  264. package/dist/components/post-avatar.d.ts +0 -11
  265. package/dist/components/post-avatar.js +0 -6
  266. package/dist/components/post-avatar2.js +0 -173
  267. package/dist/components/post-back-to-top.d.ts +0 -11
  268. package/dist/components/post-back-to-top.js +0 -6
  269. package/dist/components/post-back-to-top2.js +0 -123
  270. package/dist/components/post-banner.js +0 -6
  271. package/dist/components/post-banner2.js +0 -125
  272. package/dist/components/post-breadcrumb-item.d.ts +0 -11
  273. package/dist/components/post-breadcrumb-item.js +0 -6
  274. package/dist/components/post-breadcrumb-item2.js +0 -72
  275. package/dist/components/post-closebutton.d.ts +0 -11
  276. package/dist/components/post-closebutton.js +0 -6
  277. package/dist/components/post-closebutton2.js +0 -34
  278. package/dist/components/post-header.d.ts +0 -11
  279. package/dist/components/post-header.js +0 -6
  280. package/dist/components/post-header2.js +0 -235
  281. package/dist/components/post-language-option.d.ts +0 -11
  282. package/dist/components/post-language-option.js +0 -6
  283. package/dist/components/post-language-option2.js +0 -92
  284. package/dist/components/post-list-item.d.ts +0 -11
  285. package/dist/components/post-list-item.js +0 -6
  286. package/dist/components/post-list-item2.js +0 -35
  287. package/dist/components/post-list.d.ts +0 -11
  288. package/dist/components/post-list.js +0 -6
  289. package/dist/components/post-list2.js +0 -53
  290. package/dist/components/post-mainnavigation.d.ts +0 -11
  291. package/dist/components/post-mainnavigation.js +0 -6
  292. package/dist/components/post-mainnavigation2.js +0 -48
  293. package/dist/components/post-megadropdown-trigger.d.ts +0 -11
  294. package/dist/components/post-megadropdown-trigger.js +0 -6
  295. package/dist/components/post-megadropdown-trigger2.js +0 -39
  296. package/dist/components/post-megadropdown.d.ts +0 -11
  297. package/dist/components/post-megadropdown.js +0 -6
  298. package/dist/components/post-megadropdown2.js +0 -67
  299. package/dist/components/post-menu-item.d.ts +0 -11
  300. package/dist/components/post-menu-item.js +0 -6
  301. package/dist/components/post-menu-item2.js +0 -33
  302. package/dist/components/post-menu-trigger.d.ts +0 -11
  303. package/dist/components/post-menu-trigger.js +0 -6
  304. package/dist/components/post-menu-trigger2.js +0 -92
  305. package/dist/components/post-menu.js +0 -6
  306. package/dist/components/post-menu2.js +0 -201
  307. package/dist/components/post-togglebutton.d.ts +0 -11
  308. package/dist/components/post-togglebutton.js +0 -6
  309. package/dist/components/post-togglebutton2.js +0 -43
  310. package/dist/esm/attribute-observer-37fa950a.js +0 -25
  311. package/dist/esm/get-root-7af2e0d1.js +0 -9
  312. package/dist/esm/package-9cafe148.js +0 -3
  313. package/dist/esm/post-accordion-item-33bbe4de.js +0 -60
  314. package/dist/esm/post-avatar-d15a9f9e.js +0 -146
  315. package/dist/esm/post-avatar.entry.js +0 -5
  316. package/dist/esm/post-back-to-top-bcf46150.js +0 -96
  317. package/dist/esm/post-back-to-top.entry.js +0 -6
  318. package/dist/esm/post-banner-bf5e6a18.js +0 -88
  319. package/dist/esm/post-breadcrumb-item-e3b41f74.js +0 -47
  320. package/dist/esm/post-breadcrumb-item.entry.js +0 -7
  321. package/dist/esm/post-card-control-f0788f6f.js +0 -270
  322. package/dist/esm/post-closebutton_10.entry.js +0 -8
  323. package/dist/esm/post-language-option-1436370d.js +0 -66
  324. package/dist/esm/post-language-option.entry.js +0 -7
  325. package/dist/esm/post-menu-e853e28b.js +0 -174
  326. package/dist/esm/post-menu-item-86d4c7ab.js +0 -18
  327. package/dist/esm/post-menu-item.entry.js +0 -3
  328. package/dist/esm/post-menu-trigger-80c2bdf4.js +0 -73
  329. package/dist/esm/post-menu-trigger.entry.js +0 -5
  330. package/dist/esm/post-menu.entry.js +0 -3
  331. package/dist/esm/post-popover-7195d05a.js +0 -102
  332. package/dist/esm/post-rating-8baf86fe.js +0 -86
  333. package/dist/esm/post-tab-header-a1d1d9d0.js +0 -30
  334. package/dist/esm/post-tag-d67b6a19.js +0 -45
  335. package/dist/esm/post-togglebutton-c3fb912d.js +0 -26
  336. package/dist/esm/post-togglebutton.entry.js +0 -3
  337. package/dist/post-components/p-00fa0152.js +0 -1
  338. package/dist/post-components/p-1667387e.entry.js +0 -1
  339. package/dist/post-components/p-19551c18.entry.js +0 -1
  340. package/dist/post-components/p-1b627f80.js +0 -1
  341. package/dist/post-components/p-24673919.js +0 -1
  342. package/dist/post-components/p-266b734f.entry.js +0 -1
  343. package/dist/post-components/p-282115c4.js +0 -1
  344. package/dist/post-components/p-2d0ffc1e.entry.js +0 -1
  345. package/dist/post-components/p-45018d7e.entry.js +0 -1
  346. package/dist/post-components/p-485dafcf.js +0 -1
  347. package/dist/post-components/p-4a647a78.js +0 -1
  348. package/dist/post-components/p-4abfa65b.js +0 -1
  349. package/dist/post-components/p-517f2b1f.entry.js +0 -1
  350. package/dist/post-components/p-55224ee7.entry.js +0 -1
  351. package/dist/post-components/p-558a9849.js +0 -1
  352. package/dist/post-components/p-59b31557.js +0 -1
  353. package/dist/post-components/p-5d1db85c.entry.js +0 -1
  354. package/dist/post-components/p-61e79941.js +0 -1
  355. package/dist/post-components/p-679978de.entry.js +0 -1
  356. package/dist/post-components/p-6a842b96.entry.js +0 -1
  357. package/dist/post-components/p-6adeaa6c.js +0 -1
  358. package/dist/post-components/p-6cea23cd.js +0 -15
  359. package/dist/post-components/p-71f03424.js +0 -1
  360. package/dist/post-components/p-8c2568c1.entry.js +0 -1
  361. package/dist/post-components/p-8fd3a3cb.entry.js +0 -1
  362. package/dist/post-components/p-939f2ba7.js +0 -1
  363. package/dist/post-components/p-a4c39296.entry.js +0 -1
  364. package/dist/post-components/p-af5d3b89.entry.js +0 -1
  365. package/dist/post-components/p-b4423249.entry.js +0 -1
  366. package/dist/post-components/p-c31a7d65.entry.js +0 -1
  367. package/dist/post-components/p-c544bb82.js +0 -1
  368. package/dist/post-components/p-ccb6dfa1.js +0 -1
  369. package/dist/post-components/p-d0b8820a.js +0 -1
  370. package/dist/post-components/p-d36adfb5.js +0 -1
  371. package/dist/post-components/p-da6a8268.entry.js +0 -1
  372. package/dist/post-components/p-ece14d88.js +0 -1
  373. package/dist/post-components/p-f0f8427e.js +0 -1
  374. package/dist/post-components/p-f2e1b4d8.js +0 -1
  375. package/dist/post-components/p-f627744e.js +0 -1
  376. package/dist/post-components/p-f7b6b96a.entry.js +0 -1
  377. package/dist/post-components/p-f812e93d.entry.js +0 -1
  378. package/dist/post-components/p-f8d41c32.js +0 -1
  379. package/dist/post-components/p-fc91cbc2.js +0 -1
  380. package/dist/post-components/p-fe516cdf.entry.js +0 -1
  381. package/dist/post-components/p-fe7467fb.entry.js +0 -1
  382. package/dist/types/animations/slide.d.ts +0 -2
  383. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -51
  384. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -19
  385. package/dist/types/components/post-banner/banner-types.d.ts +0 -2
  386. package/dist/types/components/post-banner/post-banner.d.ts +0 -49
  387. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -15
  388. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -7
  389. package/dist/types/components/post-header/post-header.d.ts +0 -16
  390. package/dist/types/components/post-language-option/post-language-option.d.ts +0 -40
  391. package/dist/types/components/post-list/post-list.d.ts +0 -24
  392. package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
  393. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -10
  394. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +0 -23
  395. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -10
  396. package/dist/types/components/post-menu/post-menu.d.ts +0 -47
  397. package/dist/types/components/post-menu-item/post-menu-item.d.ts +0 -4
  398. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -27
  399. package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +0 -13
  400. package/dist/types/utils/is-focusable.d.ts +0 -1
  401. package/loaders/attribute-observer.js +0 -25
  402. package/loaders/get-root.js +0 -9
  403. package/loaders/post-avatar.js +0 -176
  404. package/loaders/post-back-to-top.d.ts +0 -11
  405. package/loaders/post-back-to-top.js +0 -126
  406. package/loaders/post-banner.d.ts +0 -11
  407. package/loaders/post-banner.js +0 -128
  408. package/loaders/post-breadcrumb-item.d.ts +0 -11
  409. package/loaders/post-breadcrumb-item.js +0 -75
  410. package/loaders/post-closebutton.d.ts +0 -11
  411. package/loaders/post-closebutton.js +0 -37
  412. package/loaders/post-header.d.ts +0 -11
  413. package/loaders/post-header.js +0 -238
  414. package/loaders/post-language-option.d.ts +0 -11
  415. package/loaders/post-language-option.js +0 -95
  416. package/loaders/post-list-item.d.ts +0 -11
  417. package/loaders/post-list-item.js +0 -38
  418. package/loaders/post-list.d.ts +0 -11
  419. package/loaders/post-list.js +0 -56
  420. package/loaders/post-mainnavigation.d.ts +0 -11
  421. package/loaders/post-mainnavigation.js +0 -51
  422. package/loaders/post-megadropdown-trigger.d.ts +0 -11
  423. package/loaders/post-megadropdown-trigger.js +0 -42
  424. package/loaders/post-megadropdown.d.ts +0 -11
  425. package/loaders/post-megadropdown.js +0 -70
  426. package/loaders/post-menu-item.d.ts +0 -11
  427. package/loaders/post-menu-item.js +0 -36
  428. package/loaders/post-menu-trigger.d.ts +0 -11
  429. package/loaders/post-menu-trigger.js +0 -95
  430. package/loaders/post-menu.js +0 -204
  431. package/loaders/post-togglebutton.d.ts +0 -11
  432. package/loaders/post-togglebutton.js +0 -46
@@ -0,0 +1,3 @@
1
+ export { P as post_popovercontainer } from './post-popovercontainer-b19b7606.js';
2
+ import './index-e1b64755.js';
3
+ import './package-983f957d.js';
@@ -0,0 +1,86 @@
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-983f957d.js';
3
+
4
+ const postRatingCss = "@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
5
+ const PostRatingStyle0 = postRatingCss;
6
+
7
+ const PostRating = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.postInput = createEvent(this, "postInput", 7);
11
+ this.postChange = createEvent(this, "postChange", 7);
12
+ this.hasChanged = false;
13
+ this.hoveredIndex = undefined;
14
+ this.label = 'Rating';
15
+ this.stars = 5;
16
+ this.currentRating = 0;
17
+ this.readonly = false;
18
+ this.keydownHandler = this.keydownHandler.bind(this);
19
+ this.blurHandler = this.blurHandler.bind(this);
20
+ this.hoverHandler = this.hoverHandler.bind(this);
21
+ }
22
+ update(value) {
23
+ if (this.readonly || value < 0 || value > this.stars)
24
+ return;
25
+ this.currentRating = this.currentRating !== value ? value : 0; // If a star is clicked the second time, the rating gets set to 0.
26
+ this.postInput.emit({ value: this.currentRating });
27
+ this.hasChanged = true;
28
+ }
29
+ keydownHandler(e) {
30
+ switch (e.key) {
31
+ case 'ArrowDown':
32
+ case 'ArrowLeft':
33
+ e.preventDefault();
34
+ this.update(this.currentRating - 1);
35
+ break;
36
+ case 'ArrowUp':
37
+ case 'ArrowRight':
38
+ e.preventDefault();
39
+ this.update(this.currentRating + 1);
40
+ break;
41
+ case 'Home':
42
+ e.preventDefault();
43
+ this.update(0);
44
+ break;
45
+ case 'End':
46
+ e.preventDefault();
47
+ this.update(this.stars);
48
+ break;
49
+ case 'Enter':
50
+ case ' ':
51
+ this.blurHandler();
52
+ break;
53
+ default:
54
+ return;
55
+ }
56
+ }
57
+ blurHandler() {
58
+ if (this.hasChanged) {
59
+ this.postChange.emit({ value: this.currentRating });
60
+ this.hasChanged = false;
61
+ }
62
+ }
63
+ hoverHandler(index, e) {
64
+ if (this.readonly)
65
+ return;
66
+ if (e.type === 'mouseenter') {
67
+ this.hoveredIndex = index;
68
+ }
69
+ else if (e.type === 'mouseleave') {
70
+ this.hoveredIndex = undefined;
71
+ }
72
+ }
73
+ render() {
74
+ return (h(Host, { key: '442c936d6e9337d04b16edc62e56996139e86262', "data-version": version }, h("div", { key: '280ea877721676ba137c91d9be00007bcc5caf4f', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
75
+ 'star': true,
76
+ 'before-hover': i < this.hoveredIndex,
77
+ 'active': i < Math.round(this.currentRating),
78
+ 'hover': i === this.hoveredIndex,
79
+ 'after-active': i > this.hoveredIndex && i < this.currentRating,
80
+ }, onClick: () => this.update(i + 1), onMouseEnter: e => this.hoverHandler(i, e), onMouseLeave: e => this.hoverHandler(i, e) }, h("post-icon", { name: "2062", class: "stroke" }), h("post-icon", { name: "2574", class: "fill" })))))));
81
+ }
82
+ get host() { return getElement(this); }
83
+ };
84
+ PostRating.style = PostRatingStyle0;
85
+
86
+ export { PostRating as P };
@@ -1,3 +1,3 @@
1
- export { P as post_rating } from './post-rating-8baf86fe.js';
1
+ export { P as post_rating } from './post-rating-f60024fa.js';
2
2
  import './index-e1b64755.js';
3
- import './package-9cafe148.js';
3
+ import './package-983f957d.js';
@@ -0,0 +1,30 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
+ import { v as version } from './package-983f957d.js';
3
+ import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
4
+
5
+ const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.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]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.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]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}";
6
+ const PostTabHeaderStyle0 = postTabHeaderCss;
7
+
8
+ const PostTabHeader = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.tabId = undefined;
12
+ this.panel = undefined;
13
+ }
14
+ validateFor(newValue) {
15
+ checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
16
+ }
17
+ componentWillLoad() {
18
+ this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
19
+ }
20
+ render() {
21
+ return (h(Host, { key: '5912b0379fbde496a165cc18bd8025e02858dd20', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '14d7d226e09a018139570ded2acef36ade7ad501' })));
22
+ }
23
+ get host() { return getElement(this); }
24
+ static get watchers() { return {
25
+ "panel": ["validateFor"]
26
+ }; }
27
+ };
28
+ PostTabHeader.style = PostTabHeaderStyle0;
29
+
30
+ export { PostTabHeader as P };
@@ -1,5 +1,5 @@
1
- export { P as post_tab_header } from './post-tab-header-a1d1d9d0.js';
1
+ export { P as post_tab_header } from './post-tab-header-333e15d5.js';
2
2
  import './index-e1b64755.js';
3
- import './package-9cafe148.js';
3
+ import './package-983f957d.js';
4
4
  import './check-non-empty-58bd6b17.js';
5
5
  import './constants-8d548297.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
- import { v as version } from './package-9cafe148.js';
2
+ import { v as version } from './package-983f957d.js';
3
3
 
4
4
  const postTabPanelCss = ":host{display:none}";
5
5
  const PostTabPanelStyle0 = postTabPanelCss;
@@ -15,7 +15,7 @@ const PostTabPanel = class {
15
15
  this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: 'b4d8a6dac8662fc442ba4b75c7f89bb630b1a0ad', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '3253ed0b5efe32b0c49fc97e46de31ee3dbbd813' })));
18
+ return (h(Host, { key: 'b3cf3aa9d4a89fc1f561ba7ecd62ff456e3392eb', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '63be1c4ea7c1c57a1438eeb164b446d39613f926' })));
19
19
  }
20
20
  get host() { return getElement(this); }
21
21
  };
@@ -1,3 +1,3 @@
1
- export { P as post_tab_panel } from './post-tab-panel-afce8d40.js';
1
+ export { P as post_tab_panel } from './post-tab-panel-0ddb05a2.js';
2
2
  import './index-e1b64755.js';
3
- import './package-9cafe148.js';
3
+ import './package-983f957d.js';
@@ -1,5 +1,5 @@
1
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-9cafe148.js';
2
+ import { v as version } from './package-983f957d.js';
3
3
  import { f as fadeOut, a as fadeIn } from './fade-7fd71785.js';
4
4
 
5
5
  /**
@@ -23,7 +23,7 @@ const customOnReady = (callback) => {
23
23
  return setTimeout(callback);
24
24
  };
25
25
 
26
- const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}:host{display:block}";
26
+ const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}";
27
27
  const PostTabsStyle0 = postTabsCss;
28
28
 
29
29
  const PostTabs = class {
@@ -34,12 +34,13 @@ const PostTabs = class {
34
34
  this.activePanel = undefined;
35
35
  }
36
36
  get tabs() {
37
- return this.host.querySelectorAll('post-tab-header');
37
+ return Array.from(this.host.querySelectorAll(':scope > post-tab-header'));
38
38
  }
39
39
  componentDidLoad() {
40
+ var _a;
40
41
  this.moveMisplacedTabs();
41
42
  this.enableTabs();
42
- const initiallyActivePanel = this.activePanel || this.tabs.item(0).panel;
43
+ const initiallyActivePanel = this.activePanel || ((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.panel);
43
44
  void this.show(initiallyActivePanel);
44
45
  this.isLoaded = true;
45
46
  }
@@ -84,6 +85,7 @@ const PostTabs = class {
84
85
  });
85
86
  }
86
87
  enableTabs() {
88
+ var _a;
87
89
  if (!this.tabs)
88
90
  return;
89
91
  this.tabs.forEach(async (tab) => {
@@ -110,7 +112,7 @@ const PostTabs = class {
110
112
  });
111
113
  // if the currently active tab was removed from the DOM then select the first one
112
114
  if (this.activeTab && !this.activeTab.isConnected) {
113
- void this.show(this.tabs.item(0).panel);
115
+ void this.show((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.panel);
114
116
  }
115
117
  }
116
118
  activateTab(tab) {
@@ -162,7 +164,7 @@ const PostTabs = class {
162
164
  nextTab.focus();
163
165
  }
164
166
  render() {
165
- return (h(Host, { key: '8e6ef1f64dd41d18cbb87d23ae27ed198dba420f', "data-version": version }, h("div", { key: '3e08dbfa502935737040e54f71c5cdba55838ac5', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '57c2c50ec3ca3ee38a69f3c46f0bd6cfb3649178', class: "tabs", role: "tablist" }, h("slot", { key: 'c7ce48bec67f02abf47fa2d152a786f2f7f912fe', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'daf2d7e9d51ad3831a68ed8cd6498d9042bc017f', class: "tab-content", part: "content" }, h("slot", { key: 'ee2c3619a2c262a416b34b65843f10e4baa62e38', onSlotchange: () => this.moveMisplacedTabs() }))));
167
+ return (h(Host, { key: 'a9ffdd06a929c2b7fd386059470467521754b3ad', "data-version": version }, h("div", { key: 'f0a4c8ed9a053a7644479b99f22f55f8029cf943', class: "tabs-wrapper", part: "tabs" }, h("div", { key: 'd90e3450f44a7bb5438395ce3a7bdfd0cb4bc659', class: "tabs", role: "tablist" }, h("slot", { key: 'ddeb20ddbf41a6a6ffc0f8244a4b08aeabe7f7ac', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'c0088f37dec20f684d88e3457d2b0631327bf63e', class: "tab-content", part: "content" }, h("slot", { key: 'd5528c69592eaff702c000f43c7d59ffde1ae444', onSlotchange: () => this.moveMisplacedTabs() }))));
166
168
  }
167
169
  get host() { return getElement(this); }
168
170
  };
@@ -1,4 +1,4 @@
1
- export { P as post_tabs } from './post-tabs-fbb42496.js';
1
+ export { P as post_tabs } from './post-tabs-ab7853cf.js';
2
2
  import './index-e1b64755.js';
3
- import './package-9cafe148.js';
3
+ import './package-983f957d.js';
4
4
  import './fade-7fd71785.js';
@@ -0,0 +1,45 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
+ import { v as version } from './package-983f957d.js';
3
+
4
+ const postTagCss = "@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
5
+ const PostTagStyle0 = postTagCss;
6
+
7
+ const PostTag = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.classes = undefined;
11
+ this.variant = undefined;
12
+ this.size = null;
13
+ this.icon = null;
14
+ this.setClasses = this.setClasses.bind(this);
15
+ }
16
+ variantChanged() {
17
+ this.setClasses();
18
+ }
19
+ sizeChanged() {
20
+ this.setClasses();
21
+ }
22
+ setClasses() {
23
+ this.classes = [
24
+ 'tag',
25
+ this.size ? `tag-${this.size}` : null,
26
+ this.variant ? `tag-${this.variant}` : null,
27
+ ]
28
+ .filter(c => c !== null)
29
+ .join(' ');
30
+ }
31
+ connectedCallback() {
32
+ this.setClasses();
33
+ }
34
+ render() {
35
+ return (h(Host, { key: '20c4c9dc37c9db3d4372090fb374bf2eea0cdb07', "data-version": version }, h("div", { key: '9bef44d17e73969a1fc3cfe580c6347958da89dc', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: '2bc158a3bd9981960053ab4ffc9f69419cd38af3', class: "tag-text" }, h("slot", { key: 'fabe72ce90e9a6e06fa62c748731de44f1c7f6b7' })))));
36
+ }
37
+ get host() { return getElement(this); }
38
+ static get watchers() { return {
39
+ "variant": ["variantChanged"],
40
+ "size": ["sizeChanged"]
41
+ }; }
42
+ };
43
+ PostTag.style = PostTagStyle0;
44
+
45
+ export { PostTag as P };
@@ -1,3 +1,3 @@
1
- export { P as post_tag } from './post-tag-d67b6a19.js';
1
+ export { P as post_tag } from './post-tag-4a7d14b9.js';
2
2
  import './index-e1b64755.js';
3
- import './package-9cafe148.js';
3
+ import './package-983f957d.js';
@@ -0,0 +1,67 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
2
+ import { v as version } from './package-983f957d.js';
3
+ import { c as checkType } from './check-type-8828dbe4.js';
4
+
5
+ const postTooltipCss = ":host{display:none;--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:\"\";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:200px;min-height:32px}";
6
+ const PostTooltipStyle0 = postTooltipCss;
7
+
8
+ const PostTooltip = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.placement = 'top';
12
+ this.arrow = false;
13
+ this.animation = null;
14
+ this.open = false;
15
+ }
16
+ validateOpen() {
17
+ checkType(this.open, 'boolean', 'The "open" property of the post-tooltip must be a boolean.');
18
+ }
19
+ componentDidLoad() {
20
+ if (!this.host.id) {
21
+ console.error(
22
+ /*prettier-ignore*/
23
+ 'No id set: <post-tooltip> must have an id, linking it to it\'s target element with a <post-tooltip-trigger> element.');
24
+ }
25
+ }
26
+ /**
27
+ * Programmatically display the tooltip.
28
+ * @param target An element where the tooltip should be shown
29
+ */
30
+ async show(target) {
31
+ if (this.open)
32
+ return;
33
+ this.popoverRef.show(target);
34
+ }
35
+ /**
36
+ * Programmatically hide this tooltip.
37
+ */
38
+ async hide() {
39
+ this.popoverRef.hide();
40
+ }
41
+ /**
42
+ * Toggle tooltip display.
43
+ * @param target An element where the tooltip should be shown
44
+ * @param [force] Pass true to always show or false to always hide
45
+ */
46
+ async toggle(target, force) {
47
+ this.popoverRef.toggle(target, force);
48
+ }
49
+ /**
50
+ * Set the open state based on the toggle event.
51
+ * @param e Popovercontainer toggle event
52
+ */
53
+ handleToggle(e) {
54
+ this.open = e.detail;
55
+ }
56
+ render() {
57
+ const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
58
+ return (h(Host, { key: '42d4dbfacdfd2aa9d00c8555cfb672e71013d455', "data-version": version, role: "tooltip" }, h("post-popovercontainer", { key: '781b9a2a90d6e1d7dc1fe233d68787cdc96d1b2a', safeSpace: 'trapezoid', class: popoverClass, arrow: this.arrow, animation: this.animation, placement: this.placement, onPostToggle: e => this.handleToggle(e), ref: (el) => (this.popoverRef = el) }, h("slot", { key: '895559a810d2ec11e5078c0334f4e8f9c73533e5' }))));
59
+ }
60
+ get host() { return getElement(this); }
61
+ static get watchers() { return {
62
+ "open": ["validateOpen"]
63
+ }; }
64
+ };
65
+ PostTooltip.style = PostTooltipStyle0;
66
+
67
+ export { PostTooltip as P };