@swisspost/design-system-components 10.0.0-next.40 → 10.0.0-next.41

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 (436) hide show
  1. package/dist/cjs/breakpoints-DIH5Oaz7.js +186 -0
  2. package/dist/cjs/event-from-AKK8RQrn.js +107 -0
  3. package/dist/cjs/{get-root-8102fecd.js → get-root-DmyBVSJ_.js} +1 -1
  4. package/dist/cjs/{index-b60129c4.js → index-CRMt-jq2.js} +1172 -309
  5. package/dist/cjs/index.cjs.js +0 -70
  6. package/dist/cjs/loader.cjs.js +3 -6
  7. package/dist/cjs/{package-b731881e.js → package-C2pR6Vs2.js} +1 -1
  8. package/dist/cjs/post-accordion_2.cjs.entry.js +177 -10
  9. package/dist/cjs/post-avatar.cjs.entry.js +151 -8
  10. package/dist/cjs/post-back-to-top.cjs.entry.js +86 -9
  11. package/dist/cjs/post-banner.cjs.entry.js +81 -9
  12. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +62 -8
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +119 -7
  14. package/dist/cjs/post-card-control.cjs.entry.js +283 -8
  15. package/dist/cjs/post-closebutton_15.cjs.entry.js +4376 -30
  16. package/dist/cjs/post-collapsible_2.cjs.entry.js +196 -10
  17. package/dist/cjs/post-components.cjs.js +7 -8
  18. package/dist/cjs/post-footer.cjs.entry.js +59 -8
  19. package/dist/cjs/post-linkarea.cjs.entry.js +24 -6
  20. package/dist/cjs/post-popover.cjs.entry.js +151 -8
  21. package/dist/cjs/post-rating.cjs.entry.js +115 -8
  22. package/dist/cjs/post-tab-header.cjs.entry.js +26 -9
  23. package/dist/cjs/post-tab-panel.cjs.entry.js +28 -9
  24. package/dist/cjs/post-tabs.cjs.entry.js +165 -7
  25. package/dist/cjs/post-tag.cjs.entry.js +50 -8
  26. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5195 -7
  27. package/dist/cjs/post-tooltip.cjs.entry.js +78 -9
  28. package/dist/collection/collection-manifest.json +4 -4
  29. package/dist/collection/components/post-accordion/post-accordion.js +39 -23
  30. package/dist/collection/components/post-accordion-item/post-accordion-item.js +26 -11
  31. package/dist/collection/components/post-avatar/post-avatar.js +12 -9
  32. package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -3
  33. package/dist/collection/components/post-banner/post-banner.js +18 -9
  34. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +4 -6
  35. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  36. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +13 -9
  37. package/dist/collection/components/post-card-control/post-card-control.js +33 -16
  38. package/dist/collection/components/post-collapsible/post-collapsible.js +6 -1
  39. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +21 -9
  40. package/dist/collection/components/post-footer/post-footer.js +8 -7
  41. package/dist/collection/components/post-header/post-header.css +1 -1
  42. package/dist/collection/components/post-header/post-header.js +28 -16
  43. package/dist/collection/components/post-icon/post-icon.js +66 -54
  44. package/dist/collection/components/post-language-option/post-language-option.css +1 -1
  45. package/dist/collection/components/post-language-option/post-language-option.js +17 -13
  46. package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
  47. package/dist/collection/components/post-language-switch/post-language-switch.js +43 -24
  48. package/dist/collection/components/post-list/post-list.js +12 -3
  49. package/dist/collection/components/post-logo/post-logo.js +3 -4
  50. package/dist/collection/components/post-megadropdown/post-megadropdown.js +12 -6
  51. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +34 -20
  52. package/dist/collection/components/post-menu/post-menu.css +1 -1
  53. package/dist/collection/components/post-menu/post-menu.js +43 -21
  54. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -0
  55. package/dist/collection/components/post-menu-item/post-menu-item.js +11 -1
  56. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +9 -5
  57. package/dist/collection/components/post-popover/post-popover.js +19 -5
  58. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  59. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +44 -16
  60. package/dist/collection/components/post-rating/post-rating.js +25 -5
  61. package/dist/collection/components/post-tab-header/post-tab-header.js +4 -6
  62. package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -6
  63. package/dist/collection/components/post-tabs/post-tabs.js +4 -3
  64. package/dist/collection/components/post-tag/post-tag.js +11 -9
  65. package/dist/collection/components/post-togglebutton/post-togglebutton.js +7 -2
  66. package/dist/collection/components/post-tooltip/post-tooltip.js +24 -6
  67. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +20 -12
  68. package/dist/collection/index.js +1 -37
  69. package/dist/collection/utils/breakpoints.js +38 -45
  70. package/dist/collection/utils/event-from.js +103 -0
  71. package/dist/collection/utils/index.js +1 -1
  72. package/dist/components/index.js +2315 -37
  73. package/dist/components/p-1KLiMO0w.js +3 -0
  74. package/dist/components/p-8U5GFtQP.js +105 -0
  75. package/dist/components/{post-menu2.js → p-BLhBouGz.js} +51 -30
  76. package/dist/{esm/index-ffccd040.js → components/p-CV7fm1rW.js} +1 -1
  77. package/dist/components/{post-menu-trigger2.js → p-CaPj3whI.js} +14 -12
  78. package/{loaders/post-breadcrumb-item2.js → dist/components/p-Cpaqct04.js} +9 -11
  79. package/dist/components/{post-accordion-item2.js → p-CtNCtg2z.js} +32 -21
  80. package/dist/components/p-Cx0AiN2A.js +182 -0
  81. package/dist/components/{post-collapsible-trigger2.js → p-D3LhzIrC.js} +25 -14
  82. package/dist/components/{get-root.js → p-DBHo9yGF.js} +1 -1
  83. package/dist/components/p-DQuPPEca.js +31 -0
  84. package/dist/components/{post-accordion2.js → p-DlEtlaNu.js} +41 -28
  85. package/{loaders/post-collapsible2.js → dist/components/p-DphlfQse.js} +11 -8
  86. package/dist/components/{post-popovercontainer2.js → p-elg4VvHg.js} +246 -278
  87. package/{loaders/post-icon2.js → dist/components/p-fmA57Ivd.js} +52 -54
  88. package/dist/components/post-accordion-item.js +1 -1
  89. package/dist/components/post-accordion.js +1 -1
  90. package/dist/components/post-avatar.js +183 -1
  91. package/dist/components/post-back-to-top.js +115 -1
  92. package/dist/components/post-banner.js +120 -1
  93. package/dist/components/post-breadcrumb-item.js +1 -1
  94. package/dist/components/post-breadcrumbs.js +182 -1
  95. package/dist/components/post-card-control.js +322 -1
  96. package/dist/components/post-closebutton.js +37 -1
  97. package/dist/components/post-collapsible-trigger.js +1 -1
  98. package/dist/components/post-collapsible.js +1 -1
  99. package/dist/components/post-footer.js +112 -1
  100. package/dist/components/post-header.js +273 -1
  101. package/dist/components/post-icon.js +1 -1
  102. package/dist/components/post-language-option.js +96 -1
  103. package/dist/components/post-language-switch.js +154 -1
  104. package/dist/components/post-linkarea.js +41 -1
  105. package/dist/components/post-list-item.js +34 -1
  106. package/dist/components/post-list.js +57 -1
  107. package/dist/components/post-logo.js +54 -1
  108. package/dist/components/post-mainnavigation.js +181 -1
  109. package/dist/components/post-megadropdown-trigger.js +132 -1
  110. package/dist/components/post-megadropdown.js +194 -1
  111. package/dist/components/post-menu-item.js +1 -1
  112. package/dist/components/post-menu-trigger.js +1 -1
  113. package/dist/components/post-menu.js +1 -1
  114. package/dist/components/post-popover.js +184 -1
  115. package/dist/components/post-popovercontainer.js +1 -1
  116. package/dist/components/post-rating.js +148 -1
  117. package/dist/components/post-tab-header.js +48 -1
  118. package/dist/components/post-tab-panel.js +50 -1
  119. package/dist/components/post-tabs.js +186 -1
  120. package/dist/components/post-tag.js +82 -1
  121. package/dist/components/post-togglebutton.js +52 -1
  122. package/dist/components/post-tooltip-trigger.js +5218 -1
  123. package/dist/components/post-tooltip.js +110 -1
  124. package/dist/docs.d.ts +8 -0
  125. package/dist/docs.json +416 -116
  126. package/dist/esm/breakpoints-DyVir0ex.js +182 -0
  127. package/dist/esm/event-from-8U5GFtQP.js +105 -0
  128. package/{loaders/get-root.js → dist/esm/get-root-D9QC9-TY.js} +1 -1
  129. package/{loaders/index2.js → dist/esm/index-BWC0gtGU.js} +1 -1
  130. package/dist/esm/{index-f4d19816.js → index-CVhzhVv0.js} +1169 -305
  131. package/dist/esm/index.js +1 -29
  132. package/dist/esm/loader.js +3 -4
  133. package/dist/esm/package-1KLiMO0w.js +3 -0
  134. package/dist/esm/post-accordion_2.entry.js +180 -7
  135. package/dist/esm/post-avatar.entry.js +154 -5
  136. package/dist/esm/post-back-to-top.entry.js +89 -6
  137. package/dist/esm/post-banner.entry.js +85 -7
  138. package/dist/esm/post-breadcrumb-item_2.entry.js +65 -5
  139. package/dist/esm/post-breadcrumbs.entry.js +123 -5
  140. package/dist/esm/post-card-control.entry.js +286 -5
  141. package/dist/esm/post-closebutton_15.entry.js +4362 -10
  142. package/dist/esm/post-collapsible_2.entry.js +199 -7
  143. package/dist/esm/post-components.js +5 -5
  144. package/dist/esm/post-footer.entry.js +62 -5
  145. package/dist/esm/post-linkarea.entry.js +27 -3
  146. package/dist/esm/post-popover.entry.js +155 -6
  147. package/dist/esm/post-rating.entry.js +118 -5
  148. package/dist/esm/post-tab-header.entry.js +29 -6
  149. package/dist/esm/post-tab-panel.entry.js +31 -6
  150. package/dist/esm/post-tabs.entry.js +169 -5
  151. package/dist/esm/post-tag.entry.js +53 -5
  152. package/dist/esm/post-tooltip-trigger.entry.js +5199 -5
  153. package/dist/esm/post-tooltip.entry.js +81 -6
  154. package/dist/post-components/index.esm.js +0 -1
  155. package/dist/post-components/p-0d08ab13.entry.js +1 -0
  156. package/dist/post-components/p-1KLiMO0w.js +1 -0
  157. package/dist/post-components/p-1e006e29.entry.js +1 -0
  158. package/dist/post-components/p-3a5bdb7f.entry.js +1 -0
  159. package/dist/post-components/p-4214b85e.entry.js +1 -0
  160. package/dist/post-components/p-50916d48.entry.js +1 -0
  161. package/dist/post-components/p-5f4126d8.entry.js +1 -0
  162. package/dist/post-components/p-62982420.entry.js +1 -0
  163. package/dist/post-components/p-78f4dd12.entry.js +1 -0
  164. package/dist/post-components/p-7a7d237b.entry.js +1 -0
  165. package/dist/post-components/p-80174475.entry.js +1 -0
  166. package/dist/post-components/p-8U5GFtQP.js +1 -0
  167. package/dist/post-components/p-8d5a4218.entry.js +1 -0
  168. package/dist/post-components/p-8e89ccc1.entry.js +1 -0
  169. package/dist/post-components/p-9003674b.entry.js +1 -0
  170. package/dist/post-components/p-925aee3d.entry.js +1 -0
  171. package/dist/post-components/p-9b446561.entry.js +1 -0
  172. package/dist/post-components/p-9ec29527.entry.js +1 -0
  173. package/dist/post-components/{p-b176309b.js → p-BWC0gtGU.js} +1 -1
  174. package/dist/post-components/{p-6b31a76a.js → p-Bkp2QDth.js} +1 -1
  175. package/dist/post-components/p-CVhzhVv0.js +2 -0
  176. package/dist/post-components/p-DyVir0ex.js +1 -0
  177. package/dist/post-components/p-ec764922.entry.js +1 -0
  178. package/dist/post-components/p-fa550b4a.entry.js +1 -0
  179. package/dist/post-components/p-fb46e260.entry.js +1 -0
  180. package/dist/post-components/post-components.esm.js +1 -1
  181. package/dist/types/components/post-header/post-header.d.ts +1 -0
  182. package/dist/types/components/post-icon/post-icon.d.ts +0 -4
  183. package/dist/types/components/post-language-switch/post-language-switch.d.ts +1 -0
  184. package/dist/types/components/post-tag/post-tag.d.ts +1 -1
  185. package/dist/types/components.d.ts +61 -1
  186. package/dist/types/index.d.ts +10 -37
  187. package/dist/types/stencil-public-runtime.d.ts +29 -1
  188. package/dist/types/utils/breakpoints.d.ts +12 -7
  189. package/dist/types/utils/event-from.d.ts +9 -0
  190. package/dist/types/utils/index.d.ts +1 -1
  191. package/hydrate/index.d.ts +273 -0
  192. package/hydrate/index.js +32002 -0
  193. package/hydrate/index.mjs +31994 -0
  194. package/hydrate/package.json +12 -0
  195. package/package.json +45 -17
  196. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  197. package/dist/cjs/breakpoints-cdf1b747.js +0 -59
  198. package/dist/cjs/event-guard-efabc84f.js +0 -47
  199. package/dist/cjs/post-accordion-item-5c879102.js +0 -161
  200. package/dist/cjs/post-avatar-4f1681df.js +0 -162
  201. package/dist/cjs/post-back-to-top-abbb4ac4.js +0 -93
  202. package/dist/cjs/post-banner-4d99c51c.js +0 -87
  203. package/dist/cjs/post-breadcrumbs-5ceabb10.js +0 -126
  204. package/dist/cjs/post-card-control-b657aeaa.js +0 -290
  205. package/dist/cjs/post-collapsible-trigger-33f09d6c.js +0 -190
  206. package/dist/cjs/post-footer-022cf408.js +0 -66
  207. package/dist/cjs/post-linkarea-5fbb2e25.js +0 -30
  208. package/dist/cjs/post-menu-item-d4cc4742.js +0 -68
  209. package/dist/cjs/post-popover-b7cd0091.js +0 -150
  210. package/dist/cjs/post-rating-c81d1ac3.js +0 -109
  211. package/dist/cjs/post-tab-header-1db15093.js +0 -34
  212. package/dist/cjs/post-tab-panel-698981b8.js +0 -36
  213. package/dist/cjs/post-tabs-79eab811.js +0 -173
  214. package/dist/cjs/post-tag-66a52727.js +0 -60
  215. package/dist/cjs/post-togglebutton-a6b8b75d.js +0 -4491
  216. package/dist/cjs/post-tooltip-560cf42c.js +0 -74
  217. package/dist/cjs/post-tooltip-trigger-2a54e3e4.js +0 -4685
  218. package/dist/collection/utils/event-guard.js +0 -43
  219. package/dist/components/breakpoints.js +0 -56
  220. package/dist/components/event-guard.js +0 -45
  221. package/dist/components/index2.js +0 -88
  222. package/dist/components/package.js +0 -3
  223. package/dist/components/post-avatar2.js +0 -190
  224. package/dist/components/post-back-to-top2.js +0 -118
  225. package/dist/components/post-banner2.js +0 -121
  226. package/dist/components/post-breadcrumb-item2.js +0 -82
  227. package/dist/components/post-breadcrumbs2.js +0 -184
  228. package/dist/components/post-card-control2.js +0 -325
  229. package/dist/components/post-closebutton2.js +0 -39
  230. package/dist/components/post-collapsible2.js +0 -108
  231. package/dist/components/post-footer2.js +0 -115
  232. package/dist/components/post-header2.js +0 -397
  233. package/dist/components/post-icon2.js +0 -156
  234. package/dist/components/post-language-option2.js +0 -102
  235. package/dist/components/post-language-switch2.js +0 -143
  236. package/dist/components/post-linkarea2.js +0 -43
  237. package/dist/components/post-list-item2.js +0 -36
  238. package/dist/components/post-list2.js +0 -54
  239. package/dist/components/post-logo2.js +0 -57
  240. package/dist/components/post-mainnavigation2.js +0 -183
  241. package/dist/components/post-megadropdown-trigger2.js +0 -121
  242. package/dist/components/post-megadropdown2.js +0 -190
  243. package/dist/components/post-menu-item2.js +0 -27
  244. package/dist/components/post-popover2.js +0 -178
  245. package/dist/components/post-rating2.js +0 -138
  246. package/dist/components/post-tab-header2.js +0 -52
  247. package/dist/components/post-tab-panel2.js +0 -54
  248. package/dist/components/post-tabs2.js +0 -189
  249. package/dist/components/post-tag2.js +0 -88
  250. package/dist/components/post-togglebutton2.js +0 -51
  251. package/dist/components/post-tooltip-trigger2.js +0 -4703
  252. package/dist/components/post-tooltip2.js +0 -102
  253. package/dist/esm/app-globals-0f993ce5.js +0 -3
  254. package/dist/esm/breakpoints-7812702e.js +0 -56
  255. package/dist/esm/event-guard-538ee077.js +0 -45
  256. package/dist/esm/get-root-1b1af46f.js +0 -15
  257. package/dist/esm/package-9374eb90.js +0 -3
  258. package/dist/esm/post-accordion-item-f416bd95.js +0 -158
  259. package/dist/esm/post-avatar-2cb5190b.js +0 -160
  260. package/dist/esm/post-back-to-top-f877d4c6.js +0 -91
  261. package/dist/esm/post-banner-576a5adb.js +0 -85
  262. package/dist/esm/post-breadcrumbs-63223336.js +0 -124
  263. package/dist/esm/post-card-control-2eebe7b4.js +0 -288
  264. package/dist/esm/post-collapsible-trigger-561df34e.js +0 -187
  265. package/dist/esm/post-footer-a270f67b.js +0 -64
  266. package/dist/esm/post-linkarea-456ce63d.js +0 -28
  267. package/dist/esm/post-menu-item-e051284c.js +0 -65
  268. package/dist/esm/post-popover-7c3c9072.js +0 -148
  269. package/dist/esm/post-rating-2c9dd11f.js +0 -107
  270. package/dist/esm/post-tab-header-f90b2f93.js +0 -32
  271. package/dist/esm/post-tab-panel-c19b5e30.js +0 -34
  272. package/dist/esm/post-tabs-0dadedf2.js +0 -171
  273. package/dist/esm/post-tag-b8be3b0c.js +0 -58
  274. package/dist/esm/post-togglebutton-83339cc9.js +0 -4475
  275. package/dist/esm/post-tooltip-3cc82984.js +0 -72
  276. package/dist/esm/post-tooltip-trigger-898c3dbc.js +0 -4683
  277. package/dist/post-components/p-0889c759.js +0 -1
  278. package/dist/post-components/p-104ddc50.js +0 -1
  279. package/dist/post-components/p-13b41e32.entry.js +0 -1
  280. package/dist/post-components/p-1906d77c.js +0 -1
  281. package/dist/post-components/p-19d0e6ea.entry.js +0 -1
  282. package/dist/post-components/p-1b9afb34.entry.js +0 -1
  283. package/dist/post-components/p-1fbffc90.js +0 -1
  284. package/dist/post-components/p-234925fa.js +0 -1
  285. package/dist/post-components/p-23fb976f.entry.js +0 -1
  286. package/dist/post-components/p-24c42ebe.entry.js +0 -1
  287. package/dist/post-components/p-28c19671.js +0 -8
  288. package/dist/post-components/p-37aaa30f.js +0 -1
  289. package/dist/post-components/p-3baf0b40.entry.js +0 -1
  290. package/dist/post-components/p-4390192f.js +0 -1
  291. package/dist/post-components/p-4a071696.js +0 -1
  292. package/dist/post-components/p-4c2d5072.js +0 -1
  293. package/dist/post-components/p-51b6114c.entry.js +0 -1
  294. package/dist/post-components/p-5fb4fc65.js +0 -1
  295. package/dist/post-components/p-64c13aaf.entry.js +0 -1
  296. package/dist/post-components/p-66679f9d.entry.js +0 -1
  297. package/dist/post-components/p-68a98f0b.js +0 -1
  298. package/dist/post-components/p-6a4dc55e.js +0 -1
  299. package/dist/post-components/p-722ffaae.js +0 -1
  300. package/dist/post-components/p-789f9a23.entry.js +0 -1
  301. package/dist/post-components/p-7e6eae42.js +0 -1
  302. package/dist/post-components/p-8117dd0c.js +0 -1
  303. package/dist/post-components/p-814c0c4d.entry.js +0 -1
  304. package/dist/post-components/p-87e0d6fa.js +0 -1
  305. package/dist/post-components/p-988d20f4.js +0 -1
  306. package/dist/post-components/p-9b1e4e52.entry.js +0 -1
  307. package/dist/post-components/p-9e461613.js +0 -2
  308. package/dist/post-components/p-ab44a18c.entry.js +0 -1
  309. package/dist/post-components/p-b2952b0e.entry.js +0 -1
  310. package/dist/post-components/p-c10b2a2f.js +0 -1
  311. package/dist/post-components/p-c80cb846.js +0 -1
  312. package/dist/post-components/p-da4704c1.js +0 -1
  313. package/dist/post-components/p-dc4de84a.entry.js +0 -1
  314. package/dist/post-components/p-e1255160.js +0 -1
  315. package/dist/post-components/p-f1f0ace3.entry.js +0 -1
  316. package/dist/post-components/p-f34fb6c4.entry.js +0 -1
  317. package/dist/post-components/p-f6f914bb.js +0 -1
  318. package/dist/post-components/p-fe7e64cf.entry.js +0 -1
  319. package/dist/post-components/p-fee94252.entry.js +0 -1
  320. package/dist/types/popover-fn.d.ts +0 -11
  321. package/dist/types/utils/event-guard.d.ts +0 -4
  322. package/loader/package.json +0 -11
  323. package/loaders/breakpoints.js +0 -56
  324. package/loaders/event-guard.js +0 -45
  325. package/loaders/fade.js +0 -11
  326. package/loaders/get-focusable-children.js +0 -35
  327. package/loaders/heading-levels.js +0 -3
  328. package/loaders/index.browser.js +0 -14
  329. package/loaders/index.d.ts +0 -108
  330. package/loaders/index.js +0 -39
  331. package/loaders/long-press-event.js +0 -264
  332. package/loaders/package.js +0 -3
  333. package/loaders/post-accordion-item.d.ts +0 -11
  334. package/loaders/post-accordion-item.js +0 -6
  335. package/loaders/post-accordion-item2.js +0 -103
  336. package/loaders/post-accordion.d.ts +0 -11
  337. package/loaders/post-accordion.js +0 -6
  338. package/loaders/post-accordion2.js +0 -126
  339. package/loaders/post-avatar.d.ts +0 -11
  340. package/loaders/post-avatar.js +0 -193
  341. package/loaders/post-back-to-top.d.ts +0 -11
  342. package/loaders/post-back-to-top.js +0 -121
  343. package/loaders/post-banner.d.ts +0 -11
  344. package/loaders/post-banner.js +0 -124
  345. package/loaders/post-breadcrumb-item.d.ts +0 -11
  346. package/loaders/post-breadcrumb-item.js +0 -6
  347. package/loaders/post-breadcrumbs.d.ts +0 -11
  348. package/loaders/post-breadcrumbs.js +0 -187
  349. package/loaders/post-card-control.d.ts +0 -11
  350. package/loaders/post-card-control.js +0 -328
  351. package/loaders/post-closebutton.d.ts +0 -11
  352. package/loaders/post-closebutton.js +0 -42
  353. package/loaders/post-collapsible-trigger.d.ts +0 -11
  354. package/loaders/post-collapsible-trigger.js +0 -6
  355. package/loaders/post-collapsible-trigger2.js +0 -125
  356. package/loaders/post-collapsible.d.ts +0 -11
  357. package/loaders/post-collapsible.js +0 -6
  358. package/loaders/post-footer.d.ts +0 -11
  359. package/loaders/post-footer.js +0 -118
  360. package/loaders/post-header.d.ts +0 -11
  361. package/loaders/post-header.js +0 -400
  362. package/loaders/post-icon.d.ts +0 -11
  363. package/loaders/post-icon.js +0 -6
  364. package/loaders/post-language-option.d.ts +0 -11
  365. package/loaders/post-language-option.js +0 -105
  366. package/loaders/post-language-switch.d.ts +0 -11
  367. package/loaders/post-language-switch.js +0 -146
  368. package/loaders/post-linkarea.d.ts +0 -11
  369. package/loaders/post-linkarea.js +0 -46
  370. package/loaders/post-list-item.d.ts +0 -11
  371. package/loaders/post-list-item.js +0 -39
  372. package/loaders/post-list.d.ts +0 -11
  373. package/loaders/post-list.js +0 -57
  374. package/loaders/post-logo.d.ts +0 -11
  375. package/loaders/post-logo.js +0 -60
  376. package/loaders/post-mainnavigation.d.ts +0 -11
  377. package/loaders/post-mainnavigation.js +0 -186
  378. package/loaders/post-megadropdown-trigger.d.ts +0 -11
  379. package/loaders/post-megadropdown-trigger.js +0 -124
  380. package/loaders/post-megadropdown.d.ts +0 -11
  381. package/loaders/post-megadropdown.js +0 -193
  382. package/loaders/post-menu-item.d.ts +0 -11
  383. package/loaders/post-menu-item.js +0 -6
  384. package/loaders/post-menu-item2.js +0 -27
  385. package/loaders/post-menu-trigger.d.ts +0 -11
  386. package/loaders/post-menu-trigger.js +0 -6
  387. package/loaders/post-menu-trigger2.js +0 -109
  388. package/loaders/post-menu.d.ts +0 -11
  389. package/loaders/post-menu.js +0 -6
  390. package/loaders/post-menu2.js +0 -202
  391. package/loaders/post-popover.d.ts +0 -11
  392. package/loaders/post-popover.js +0 -181
  393. package/loaders/post-popovercontainer.d.ts +0 -11
  394. package/loaders/post-popovercontainer.js +0 -6
  395. package/loaders/post-popovercontainer2.js +0 -3051
  396. package/loaders/post-rating.d.ts +0 -11
  397. package/loaders/post-rating.js +0 -141
  398. package/loaders/post-tab-header.d.ts +0 -11
  399. package/loaders/post-tab-header.js +0 -55
  400. package/loaders/post-tab-panel.d.ts +0 -11
  401. package/loaders/post-tab-panel.js +0 -57
  402. package/loaders/post-tabs.d.ts +0 -11
  403. package/loaders/post-tabs.js +0 -192
  404. package/loaders/post-tag.d.ts +0 -11
  405. package/loaders/post-tag.js +0 -91
  406. package/loaders/post-togglebutton.d.ts +0 -11
  407. package/loaders/post-togglebutton.js +0 -54
  408. package/loaders/post-tooltip-trigger.d.ts +0 -11
  409. package/loaders/post-tooltip-trigger.js +0 -4706
  410. package/loaders/post-tooltip.d.ts +0 -11
  411. package/loaders/post-tooltip.js +0 -105
  412. package/loaders/slide.js +0 -25
  413. package/loaders/switch-variants.js +0 -3
  414. /package/dist/cjs/{fade-72d5ef55.js → fade-nS5zzDQS.js} +0 -0
  415. /package/dist/cjs/{index-2b2b85e5.js → index-DtvYdwe1.js} +0 -0
  416. /package/dist/cjs/{index.browser-4af21c17.js → index.browser-Doj636JV.js} +0 -0
  417. /package/dist/cjs/{long-press-event-6e62d113.js → long-press-event-Q8jMUNXD.js} +0 -0
  418. /package/dist/cjs/{placement-b2bb6ec4.js → placement-qEFR9hmI.js} +0 -0
  419. /package/dist/cjs/{slide-cd1f09b3.js → slide-CbBL7A8w.js} +0 -0
  420. /package/dist/components/{index.browser.js → p-BLchVpF6.js} +0 -0
  421. /package/dist/components/{slide.js → p-BuLMaH5t.js} +0 -0
  422. /package/dist/components/{get-focusable-children.js → p-C35MCWIp.js} +0 -0
  423. /package/dist/components/{long-press-event.js → p-C_2k3G1c.js} +0 -0
  424. /package/dist/components/{switch-variants.js → p-DjIHLduJ.js} +0 -0
  425. /package/dist/components/{fade.js → p-SbIC4aZX.js} +0 -0
  426. /package/dist/components/{heading-levels.js → p-r4txK0AC.js} +0 -0
  427. /package/dist/esm/{fade-1f3cacf4.js → fade-SbIC4aZX.js} +0 -0
  428. /package/dist/esm/{index.browser-ff103197.js → index.browser-BLchVpF6.js} +0 -0
  429. /package/dist/esm/{long-press-event-04d24397.js → long-press-event-C_2k3G1c.js} +0 -0
  430. /package/dist/esm/{placement-8d56605d.js → placement-DRiVosES.js} +0 -0
  431. /package/dist/esm/{slide-cd2850ee.js → slide-BuLMaH5t.js} +0 -0
  432. /package/dist/post-components/{p-c65f32b0.js → p-BLchVpF6.js} +0 -0
  433. /package/dist/post-components/{p-9b052461.js → p-BuLMaH5t.js} +0 -0
  434. /package/dist/post-components/{p-8db32dab.js → p-C_2k3G1c.js} +0 -0
  435. /package/dist/post-components/{p-59a38c23.js → p-DRiVosES.js} +0 -0
  436. /package/dist/post-components/{p-64e3de38.js → p-SbIC4aZX.js} +0 -0
@@ -18,10 +18,22 @@ export class PostRating {
18
18
  }
19
19
  constructor() {
20
20
  this.hasChanged = false;
21
- this.hoveredIndex = undefined;
21
+ /**
22
+ * Defines a hidden label for the component.
23
+ */
22
24
  this.label = 'Rating';
25
+ /**
26
+ * Defines the total amount of stars rendered in the component.
27
+ */
23
28
  this.stars = 5;
29
+ /**
30
+ * Defines the rating that the component should show.
31
+ */
24
32
  this.currentRating = 0;
33
+ /**
34
+ * Defines if the component is readonly or not.
35
+ * This usually should be used together with the `currentRating` property.
36
+ */
25
37
  this.readonly = false;
26
38
  this.keydownHandler = this.keydownHandler.bind(this);
27
39
  this.blurHandler = this.blurHandler.bind(this);
@@ -103,6 +115,7 @@ export class PostRating {
103
115
  return {
104
116
  "label": {
105
117
  "type": "string",
118
+ "attribute": "label",
106
119
  "mutable": false,
107
120
  "complexType": {
108
121
  "original": "string",
@@ -115,12 +128,14 @@ export class PostRating {
115
128
  "tags": [],
116
129
  "text": "Defines a hidden label for the component."
117
130
  },
118
- "attribute": "label",
131
+ "getter": false,
132
+ "setter": false,
119
133
  "reflect": false,
120
134
  "defaultValue": "'Rating'"
121
135
  },
122
136
  "stars": {
123
137
  "type": "number",
138
+ "attribute": "stars",
124
139
  "mutable": false,
125
140
  "complexType": {
126
141
  "original": "number",
@@ -133,12 +148,14 @@ export class PostRating {
133
148
  "tags": [],
134
149
  "text": "Defines the total amount of stars rendered in the component."
135
150
  },
136
- "attribute": "stars",
151
+ "getter": false,
152
+ "setter": false,
137
153
  "reflect": false,
138
154
  "defaultValue": "5"
139
155
  },
140
156
  "currentRating": {
141
157
  "type": "number",
158
+ "attribute": "current-rating",
142
159
  "mutable": true,
143
160
  "complexType": {
144
161
  "original": "number",
@@ -151,12 +168,14 @@ export class PostRating {
151
168
  "tags": [],
152
169
  "text": "Defines the rating that the component should show."
153
170
  },
154
- "attribute": "current-rating",
171
+ "getter": false,
172
+ "setter": false,
155
173
  "reflect": false,
156
174
  "defaultValue": "0"
157
175
  },
158
176
  "readonly": {
159
177
  "type": "boolean",
178
+ "attribute": "readonly",
160
179
  "mutable": false,
161
180
  "complexType": {
162
181
  "original": "boolean",
@@ -169,7 +188,8 @@ export class PostRating {
169
188
  "tags": [],
170
189
  "text": "Defines if the component is readonly or not.\nThis usually should be used together with the `currentRating` property."
171
190
  },
172
- "attribute": "readonly",
191
+ "getter": false,
192
+ "setter": false,
173
193
  "reflect": false,
174
194
  "defaultValue": "false"
175
195
  }
@@ -6,10 +6,6 @@ import { nanoid } from "nanoid";
6
6
  * @slot default - Slot for the content of the tab header.
7
7
  */
8
8
  export class PostTabHeader {
9
- constructor() {
10
- this.tabId = undefined;
11
- this.panel = undefined;
12
- }
13
9
  validateFor() {
14
10
  checkRequiredAndType(this, 'panel', 'string');
15
11
  }
@@ -17,7 +13,7 @@ export class PostTabHeader {
17
13
  this.tabId = `tab-${this.host.id || nanoid(6)}`;
18
14
  }
19
15
  render() {
20
- return (h(Host, { key: '829043a1f87aef4e965e3f830cc29eca5ed13864', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: 'c1d6a7d9120b494e898a502eac31341d7fc8d87b' })));
16
+ return (h(Host, { key: 'd5f6cd0ceb819b475ec49f8ea66e6b4b25f04f8e', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '8a87fef31572674981dab80e56e6b20163b448ae' })));
21
17
  }
22
18
  static get is() { return "post-tab-header"; }
23
19
  static get encapsulation() { return "shadow"; }
@@ -35,6 +31,7 @@ export class PostTabHeader {
35
31
  return {
36
32
  "panel": {
37
33
  "type": "string",
34
+ "attribute": "panel",
38
35
  "mutable": false,
39
36
  "complexType": {
40
37
  "original": "string",
@@ -47,7 +44,8 @@ export class PostTabHeader {
47
44
  "tags": [],
48
45
  "text": "The name of the panel controlled by the tab header."
49
46
  },
50
- "attribute": "panel",
47
+ "getter": false,
48
+ "setter": false,
51
49
  "reflect": true
52
50
  }
53
51
  };
@@ -6,10 +6,6 @@ import { checkRequiredAndType } from "../../utils/index";
6
6
  * @slot default - Slot for placing the content of the tab panel.
7
7
  */
8
8
  export class PostTabPanel {
9
- constructor() {
10
- this.panelId = undefined;
11
- this.name = undefined;
12
- }
13
9
  validateName() {
14
10
  checkRequiredAndType(this, 'name', 'string');
15
11
  }
@@ -19,7 +15,7 @@ export class PostTabPanel {
19
15
  this.panelId = `panel-${this.host.id || nanoid(6)}`;
20
16
  }
21
17
  render() {
22
- return (h(Host, { key: '366d1b6074bf4212e7fc56500680ed12d8d83599', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '940f8dcf9e1302dfdd1c859e356799a2f2c7fe54' })));
18
+ return (h(Host, { key: '609dd2b8bf26e58e92a1dbc827e4479ac416d95b', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '121538878e0298f1f16f6e20eeb15d5da8a5ba9c' })));
23
19
  }
24
20
  static get is() { return "post-tab-panel"; }
25
21
  static get encapsulation() { return "shadow"; }
@@ -37,6 +33,7 @@ export class PostTabPanel {
37
33
  return {
38
34
  "name": {
39
35
  "type": "string",
36
+ "attribute": "name",
40
37
  "mutable": false,
41
38
  "complexType": {
42
39
  "original": "string",
@@ -49,7 +46,8 @@ export class PostTabPanel {
49
46
  "tags": [],
50
47
  "text": "The name of the panel, used to associate it with a tab header."
51
48
  },
52
- "attribute": "name",
49
+ "getter": false,
50
+ "setter": false,
53
51
  "reflect": true
54
52
  }
55
53
  };
@@ -11,7 +11,6 @@ import { componentOnReady } from "../../utils/index";
11
11
  export class PostTabs {
12
12
  constructor() {
13
13
  this.isLoaded = false;
14
- this.activePanel = undefined;
15
14
  }
16
15
  get tabs() {
17
16
  return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
@@ -141,7 +140,7 @@ export class PostTabs {
141
140
  nextTab.focus();
142
141
  }
143
142
  render() {
144
- return (h(Host, { key: '621652f2abeb8162e2d67261c57000a9d6e7b4ca', "data-version": version }, h("div", { key: '9cf2693b826588d3f099d30157886f70c34aa8b7', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '4d4a0f242a30ec484c4557880b4c184b47d74612', class: "tabs", role: "tablist" }, h("slot", { key: '44df627213090710a6171fae2b1b8698e1f68fa5', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'ec23dfe409569899a3b95cf3e2cd6fe2deae8c9b', class: "tab-content", part: "content" }, h("slot", { key: '16374ab8fae907d5d2c7229069dd7511f118c3ac', onSlotchange: () => this.moveMisplacedTabs() }))));
143
+ return (h(Host, { key: 'd7beaed26b8f79f7a8641bf5524236b8722a56d4', "data-version": version }, h("div", { key: '75449ea13ad30ca5bb402354cdf2eee51a6c8096', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '4eeafd45c7bac47ff16ceffd2643adaabdd01234', class: "tabs", role: "tablist" }, h("slot", { key: 'e3299d68dc943c2b0bf2ff1b48d54de65f00eb94', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '7bb1bf2984063cba9c7170e92cecbf4d4a4a21d9', class: "tab-content", part: "content" }, h("slot", { key: '8abb196b98d41eaa08c08598efed698533f215ec', onSlotchange: () => this.moveMisplacedTabs() }))));
145
144
  }
146
145
  static get is() { return "post-tabs"; }
147
146
  static get encapsulation() { return "shadow"; }
@@ -159,6 +158,7 @@ export class PostTabs {
159
158
  return {
160
159
  "activePanel": {
161
160
  "type": "string",
161
+ "attribute": "active-panel",
162
162
  "mutable": false,
163
163
  "complexType": {
164
164
  "original": "HTMLPostTabPanelElement['name']",
@@ -176,7 +176,8 @@ export class PostTabs {
176
176
  "tags": [],
177
177
  "text": "The name of the panel that is initially shown.\nIf not specified, it defaults to the panel associated with the first tab.\n\n**Changing this value after initialization has no effect.**"
178
178
  },
179
- "attribute": "active-panel",
179
+ "getter": false,
180
+ "setter": false,
180
181
  "reflect": false
181
182
  }
182
183
  };
@@ -6,10 +6,6 @@ import { checkEmptyOrOneOf, checkEmptyOrType } from "../../utils/index";
6
6
  */
7
7
  export class PostTag {
8
8
  constructor() {
9
- this.classes = undefined;
10
- this.variant = undefined;
11
- this.size = undefined;
12
- this.icon = undefined;
13
9
  this.setClasses = this.setClasses.bind(this);
14
10
  }
15
11
  variantChanged() {
@@ -41,7 +37,7 @@ export class PostTag {
41
37
  this.setClasses();
42
38
  }
43
39
  render() {
44
- return (h(Host, { key: '42743d0a7f87680223eef33ff9295827f3c80d4c', "data-version": version }, h("div", { key: '392ad72b23f638d7fdefe7acb20f45c9dcf2d630', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: '71b7dc696dd392dc9b195b363cd79a1fc0e0a708', class: "tag-text" }, h("slot", { key: '91610aff7550df9891fb617d2d9e5bcbcffbe256' })))));
40
+ return (h(Host, { key: '9e30e11663e54fb6bc389cfe7b060cace37c304e', "data-version": version }, h("div", { key: '09b0ea2d6df0631f00d78a6978d4aad4b429f39e', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: 'a041daf35564806f3bff974d04536972b1564a35', class: "tag-text" }, h("slot", { key: '97fb0e540d631062268b9080db3eb5e4aacf0242' })))));
45
41
  }
46
42
  static get is() { return "post-tag"; }
47
43
  static get encapsulation() { return "shadow"; }
@@ -59,6 +55,7 @@ export class PostTag {
59
55
  return {
60
56
  "variant": {
61
57
  "type": "string",
58
+ "attribute": "variant",
62
59
  "mutable": false,
63
60
  "complexType": {
64
61
  "original": "'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow'",
@@ -71,11 +68,13 @@ export class PostTag {
71
68
  "tags": [],
72
69
  "text": "Defines the color variant of the component."
73
70
  },
74
- "attribute": "variant",
71
+ "getter": false,
72
+ "setter": false,
75
73
  "reflect": false
76
74
  },
77
75
  "size": {
78
76
  "type": "string",
77
+ "attribute": "size",
79
78
  "mutable": false,
80
79
  "complexType": {
81
80
  "original": "'sm'",
@@ -88,11 +87,13 @@ export class PostTag {
88
87
  "tags": [],
89
88
  "text": "Defines the size of the component."
90
89
  },
91
- "attribute": "size",
90
+ "getter": false,
91
+ "setter": false,
92
92
  "reflect": false
93
93
  },
94
94
  "icon": {
95
95
  "type": "string",
96
+ "attribute": "icon",
96
97
  "mutable": false,
97
98
  "complexType": {
98
99
  "original": "string",
@@ -100,12 +101,13 @@ export class PostTag {
100
101
  "references": {}
101
102
  },
102
103
  "required": false,
103
- "optional": false,
104
+ "optional": true,
104
105
  "docs": {
105
106
  "tags": [],
106
107
  "text": "Defines the icon `name` inside of the component.\n<span className=\"banner banner-sm banner-info\">If not set the icon will not show up.</span>\nTo learn which icons are available, please visit our <a href=\"/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs\">icon library</a>."
107
108
  },
108
- "attribute": "icon",
109
+ "getter": false,
110
+ "setter": false,
109
111
  "reflect": false
110
112
  }
111
113
  };
@@ -5,6 +5,10 @@ import { version } from "../../../../package";
5
5
  */
6
6
  export class PostTogglebutton {
7
7
  constructor() {
8
+ /**
9
+ * If `true`, the button is in the "on" state, otherwise it is in the "off" state.
10
+ */
11
+ this.toggled = false;
8
12
  this.handleClick = () => {
9
13
  this.toggled = !this.toggled;
10
14
  };
@@ -15,7 +19,6 @@ export class PostTogglebutton {
15
19
  this.host.click();
16
20
  }
17
21
  };
18
- this.toggled = false;
19
22
  }
20
23
  componentWillLoad() {
21
24
  // add event listener to not override listener that might be set on the host
@@ -41,6 +44,7 @@ export class PostTogglebutton {
41
44
  return {
42
45
  "toggled": {
43
46
  "type": "boolean",
47
+ "attribute": "toggled",
44
48
  "mutable": true,
45
49
  "complexType": {
46
50
  "original": "boolean",
@@ -53,7 +57,8 @@ export class PostTogglebutton {
53
57
  "tags": [],
54
58
  "text": "If `true`, the button is in the \"on\" state, otherwise it is in the \"off\" state."
55
59
  },
56
- "attribute": "toggled",
60
+ "getter": false,
61
+ "setter": false,
57
62
  "reflect": false,
58
63
  "defaultValue": "false"
59
64
  }
@@ -4,9 +4,19 @@ import { checkEmptyOrOneOf } from "../../utils/index";
4
4
  import { PLACEMENT_TYPES } from "../../types/index";
5
5
  export class PostTooltip {
6
6
  constructor() {
7
+ /**
8
+ * Defines the position of the tooltip relative to its trigger.
9
+ * Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
10
+ * For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
11
+ */
7
12
  this.placement = 'top';
13
+ /**
14
+ * Whether or not to display a little pointer arrow
15
+ */
8
16
  this.arrow = false;
9
- this.animation = undefined;
17
+ /**
18
+ * Indicates the open state of the tooltip
19
+ */
10
20
  this.open = false;
11
21
  }
12
22
  validatePlacement() {
@@ -72,6 +82,7 @@ export class PostTooltip {
72
82
  return {
73
83
  "placement": {
74
84
  "type": "string",
85
+ "attribute": "placement",
75
86
  "mutable": false,
76
87
  "complexType": {
77
88
  "original": "Placement",
@@ -80,7 +91,7 @@ export class PostTooltip {
80
91
  "Placement": {
81
92
  "location": "import",
82
93
  "path": "@floating-ui/dom",
83
- "id": "../../node_modules/.pnpm/@floating-ui+dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
94
+ "id": "../../node_modules/.pnpm/@floating-ui+dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
84
95
  }
85
96
  }
86
97
  },
@@ -90,12 +101,14 @@ export class PostTooltip {
90
101
  "tags": [],
91
102
  "text": "Defines the position of the tooltip relative to its trigger.\nTooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.\nFor supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement)."
92
103
  },
93
- "attribute": "placement",
104
+ "getter": false,
105
+ "setter": false,
94
106
  "reflect": false,
95
107
  "defaultValue": "'top'"
96
108
  },
97
109
  "arrow": {
98
110
  "type": "boolean",
111
+ "attribute": "arrow",
99
112
  "mutable": false,
100
113
  "complexType": {
101
114
  "original": "boolean",
@@ -108,12 +121,14 @@ export class PostTooltip {
108
121
  "tags": [],
109
122
  "text": "Whether or not to display a little pointer arrow"
110
123
  },
111
- "attribute": "arrow",
124
+ "getter": false,
125
+ "setter": false,
112
126
  "reflect": false,
113
127
  "defaultValue": "false"
114
128
  },
115
129
  "animation": {
116
130
  "type": "string",
131
+ "attribute": "animation",
117
132
  "mutable": false,
118
133
  "complexType": {
119
134
  "original": "'pop-in'",
@@ -126,11 +141,13 @@ export class PostTooltip {
126
141
  "tags": [],
127
142
  "text": "Choose a tooltip animation"
128
143
  },
129
- "attribute": "animation",
144
+ "getter": false,
145
+ "setter": false,
130
146
  "reflect": false
131
147
  },
132
148
  "open": {
133
149
  "type": "boolean",
150
+ "attribute": "open",
134
151
  "mutable": true,
135
152
  "complexType": {
136
153
  "original": "boolean",
@@ -143,7 +160,8 @@ export class PostTooltip {
143
160
  "tags": [],
144
161
  "text": "Indicates the open state of the tooltip"
145
162
  },
146
- "attribute": "open",
163
+ "getter": false,
164
+ "setter": false,
147
165
  "reflect": true,
148
166
  "defaultValue": "false"
149
167
  }
@@ -13,6 +13,10 @@ if (IS_BROWSER) {
13
13
  */
14
14
  export class PostTooltipTrigger {
15
15
  constructor() {
16
+ /**
17
+ * Delay (in milliseconds) before the tooltip is shown.
18
+ */
19
+ this.delay = 0;
16
20
  /**
17
21
  * Reference to the element inside the host that will act as the trigger.
18
22
  */
@@ -21,8 +25,6 @@ export class PostTooltipTrigger {
21
25
  * Timeout ID for the delay.
22
26
  */
23
27
  this.delayTimeout = null;
24
- this.for = undefined;
25
- this.delay = 0;
26
28
  this.boundTriggerHandler = this.handleTriggerEvent.bind(this);
27
29
  this.boundTooltipHandler = this.handleTooltipEvent.bind(this);
28
30
  }
@@ -147,14 +149,16 @@ export class PostTooltipTrigger {
147
149
  this.interestLostHandler();
148
150
  }
149
151
  interestHandler() {
150
- if (this.delay > 0) {
151
- this.delayTimeout = window.setTimeout(() => {
152
+ if (this.trigger) {
153
+ if (this.delay > 0) {
154
+ this.delayTimeout = window.setTimeout(() => {
155
+ this.tooltip?.show(this.trigger);
156
+ this.delayTimeout = null;
157
+ }, this.delay);
158
+ }
159
+ else {
152
160
  this.tooltip?.show(this.trigger);
153
- this.delayTimeout = null;
154
- }, this.delay);
155
- }
156
- else {
157
- this.tooltip?.show(this.trigger);
161
+ }
158
162
  }
159
163
  }
160
164
  interestLostHandler() {
@@ -165,7 +169,7 @@ export class PostTooltipTrigger {
165
169
  this.tooltip?.hide();
166
170
  }
167
171
  render() {
168
- return (h(Host, { key: '26ac11df6c2961e3dd51722f6981185db17c6efb', "data-version": version }, h("slot", { key: 'd08036f40d0a6708b8614232134b0d5b4eba4b78', onSlotchange: () => this.handleSlotChange() })));
172
+ return (h(Host, { key: '1eec8bfef7a7e94db041be21820c79853ef66ba9', "data-version": version }, h("slot", { key: 'e48f94bf8a7be8559d1270a25573d6fbde894944', onSlotchange: () => this.handleSlotChange() })));
169
173
  }
170
174
  static get is() { return "post-tooltip-trigger"; }
171
175
  static get encapsulation() { return "shadow"; }
@@ -183,6 +187,7 @@ export class PostTooltipTrigger {
183
187
  return {
184
188
  "for": {
185
189
  "type": "string",
190
+ "attribute": "for",
186
191
  "mutable": false,
187
192
  "complexType": {
188
193
  "original": "string",
@@ -195,11 +200,13 @@ export class PostTooltipTrigger {
195
200
  "tags": [],
196
201
  "text": "ID of the tooltip element that this trigger is linked to."
197
202
  },
198
- "attribute": "for",
203
+ "getter": false,
204
+ "setter": false,
199
205
  "reflect": true
200
206
  },
201
207
  "delay": {
202
208
  "type": "number",
209
+ "attribute": "delay",
203
210
  "mutable": false,
204
211
  "complexType": {
205
212
  "original": "number",
@@ -212,7 +219,8 @@ export class PostTooltipTrigger {
212
219
  "tags": [],
213
220
  "text": "Delay (in milliseconds) before the tooltip is shown."
214
221
  },
215
- "attribute": "delay",
222
+ "getter": false,
223
+ "setter": false,
216
224
  "reflect": false,
217
225
  "defaultValue": "0"
218
226
  }
@@ -1,37 +1 @@
1
- // Export every single component so it gets included in the dist output
2
- export { PostAccordion } from './components/post-accordion/post-accordion';
3
- export { PostAccordionItem } from './components/post-accordion-item/post-accordion-item';
4
- export { PostAvatar } from './components/post-avatar/post-avatar';
5
- export { PostBackToTop } from './components/post-back-to-top/post-back-to-top';
6
- export { PostBanner } from './components/post-banner/post-banner';
7
- export { PostBreadcrumbs } from './components/post-breadcrumbs/post-breadcrumbs';
8
- export { PostBreadcrumbItem } from './components/post-breadcrumb-item/post-breadcrumb-item';
9
- export { PostCardControl } from './components/post-card-control/post-card-control';
10
- export { PostClosebutton } from './components/post-closebutton/post-closebutton';
11
- export { PostCollapsible } from './components/post-collapsible/post-collapsible';
12
- export { PostCollapsibleTrigger } from './components/post-collapsible-trigger/post-collapsible-trigger';
13
- export { PostFooter } from './components/post-footer/post-footer';
14
- export { PostHeader } from './components/post-header/post-header';
15
- export { PostIcon } from './components/post-icon/post-icon';
16
- export { PostLanguageOption } from './components/post-language-option/post-language-option';
17
- export { PostLanguageSwitch } from './components/post-language-switch/post-language-switch';
18
- export { PostLinkarea } from './components/post-linkarea/post-linkarea';
19
- export { PostList } from './components/post-list/post-list';
20
- export { PostListItem } from './components/post-list-item/post-list-item';
21
- export { PostLogo } from './components/post-logo/post-logo';
22
- export { PostMainnavigation } from './components/post-mainnavigation/post-mainnavigation';
23
- export { PostMegadropdown } from './components/post-megadropdown/post-megadropdown';
24
- export { PostMegadropdownTrigger } from './components/post-megadropdown-trigger/post-megadropdown-trigger';
25
- export { PostMenu } from './components/post-menu/post-menu';
26
- export { PostMenuItem } from './components/post-menu-item/post-menu-item';
27
- export { PostMenuTrigger } from './components/post-menu-trigger/post-menu-trigger';
28
- export { PostPopover } from './components/post-popover/post-popover';
29
- export { PostPopovercontainer } from './components/post-popovercontainer/post-popovercontainer';
30
- export { PostRating } from './components/post-rating/post-rating';
31
- export { PostTabs } from './components/post-tabs/post-tabs';
32
- export { PostTabHeader } from './components/post-tab-header/post-tab-header';
33
- export { PostTabPanel } from './components/post-tab-panel/post-tab-panel';
34
- export { PostTag } from './components/post-tag/post-tag';
35
- export { PostTogglebutton } from './components/post-togglebutton/post-togglebutton';
36
- export { PostTooltip } from './components/post-tooltip/post-tooltip';
37
- export { PostTooltipTrigger } from './components/post-tooltip-trigger/post-tooltip-trigger';
1
+ export {};
@@ -1,52 +1,45 @@
1
- import { IS_BROWSER } from "./environment";
2
- export class Breakpoint {
1
+ import { throttle } from "throttle-debounce";
2
+ import { IS_SERVER } from "./environment";
3
+ class Breakpoint {
3
4
  constructor() {
4
- this.current = {
5
- key: '',
6
- name: '',
7
- };
8
- if (IS_BROWSER && !this.breakpointMap) {
9
- const keys = this.getStyles('--post-breakpoint-keys');
10
- const names = this.getStyles('--post-breakpoint-names');
11
- const widths = this.getStyles('--post-breakpoint-widths');
12
- this.breakpointMap = widths
13
- .map((width, i) => ({
14
- minWidth: Number(width),
15
- key: keys[i],
16
- name: names[i],
17
- }))
18
- .reverse();
19
- window.addEventListener('resize', () => this.updateHandler(), { passive: true });
20
- }
5
+ this.updateCurrentBreakpoint = throttle(50, (options = { emitEvents: true }) => {
6
+ const previousBreakpoint = this.currentBreakpoint;
7
+ this.currentBreakpoint = this.breakpoints.find(breakpoint => {
8
+ return breakpoint.minWidth <= innerWidth;
9
+ });
10
+ if (!this.currentBreakpoint || !options.emitEvents)
11
+ return;
12
+ Object.keys(this.currentBreakpoint)
13
+ .filter(key => !previousBreakpoint || this.currentBreakpoint[key] !== previousBreakpoint[key])
14
+ .forEach((key) => this.dispatchEvent(key));
15
+ });
16
+ if (IS_SERVER || !!this.breakpoints)
17
+ return;
18
+ const keys = this.getValues('--post-grid-breakpoint-keys');
19
+ const devices = this.getValues('--post-grid-breakpoint-devices');
20
+ const widths = this.getValues('--post-grid-breakpoint-widths');
21
+ this.breakpoints = widths
22
+ .map((width, i) => ({
23
+ key: keys[i],
24
+ device: devices[i],
25
+ minWidth: Number(width),
26
+ }))
27
+ .sort((a, b) => b.minWidth - a.minWidth);
28
+ this.updateCurrentBreakpoint({ emitEvents: false });
29
+ window.addEventListener('resize', () => this.updateCurrentBreakpoint(), { passive: true });
21
30
  }
22
- getStyles(propertyName) {
23
- const styles = getComputedStyle(document.documentElement);
24
- return (styles
25
- .getPropertyValue(propertyName)
26
- ?.split(',')
27
- .map(w => w.trim()) ?? []);
31
+ getValues(cssCustomProperty) {
32
+ const values = getComputedStyle(document.documentElement).getPropertyValue(cssCustomProperty);
33
+ return values ? values.split(',').map(v => v.trim()) : [];
28
34
  }
29
- updateHandler(emitEvents = true) {
30
- const calculated = this.breakpointMap.find(({ minWidth }) => innerWidth >= minWidth);
31
- if (this.current.key !== calculated.key) {
32
- this.current.key = calculated.key;
33
- if (emitEvents)
34
- this.dispatchEvent('key');
35
- }
36
- if (this.current.name !== calculated.name) {
37
- this.current.name = calculated.name;
38
- if (emitEvents)
39
- this.dispatchEvent('name');
40
- }
35
+ dispatchEvent(property) {
36
+ if (IS_SERVER)
37
+ return;
38
+ window.dispatchEvent(new CustomEvent(`postBreakpoint:${property}`, { detail: this.currentBreakpoint[property] }));
41
39
  }
42
- dispatchEvent(type) {
43
- if (IS_BROWSER) {
44
- window.dispatchEvent(new CustomEvent(`postBreakpoint:${type}`, { detail: this.current[type] }));
45
- }
46
- }
47
- get(type) {
48
- this.updateHandler(false);
49
- return this.current[type];
40
+ get(property) {
41
+ this.updateCurrentBreakpoint({ emitEvents: false });
42
+ return this.currentBreakpoint[property];
50
43
  }
51
44
  }
52
45
  export const breakpoint = new Breakpoint();