@synergy-design-system/components 3.5.0 → 3.6.1

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 (371) hide show
  1. package/dist/chunks/{chunk.V6TCG5BQ.js → chunk.2A5ZKU32.js} +7 -7
  2. package/dist/chunks/{chunk.CV7OGSN7.js → chunk.2IVMHEQ6.js} +7 -7
  3. package/dist/chunks/{chunk.5T4HS4EI.js → chunk.2PPN6KVK.js} +2 -2
  4. package/dist/chunks/{chunk.DEJAPNIZ.js → chunk.3334XOIY.js} +25 -17
  5. package/dist/chunks/chunk.3334XOIY.js.map +7 -0
  6. package/dist/chunks/{chunk.CPC3JTDA.js → chunk.34DCXKYT.js} +7 -7
  7. package/dist/chunks/{chunk.XCFOLSPD.js → chunk.36JGEYPF.js} +2 -2
  8. package/dist/chunks/{chunk.IFEFFC3Q.js → chunk.3NWL4AL3.js} +19 -19
  9. package/dist/chunks/{chunk.EAEQ3AGO.js → chunk.3WVDHGXC.js} +5 -5
  10. package/dist/chunks/{chunk.OY6ZX6TH.js → chunk.3XZMOCG6.js} +80 -14
  11. package/dist/chunks/chunk.3XZMOCG6.js.map +7 -0
  12. package/dist/chunks/{chunk.WEOHOC3C.js → chunk.4GDY7NEK.js} +37 -3
  13. package/dist/chunks/chunk.4GDY7NEK.js.map +7 -0
  14. package/dist/chunks/{chunk.RHL3SPJO.js → chunk.4ZWPK4JG.js} +9 -9
  15. package/dist/chunks/{chunk.RSTYXHB5.js → chunk.57A42NLG.js} +2 -2
  16. package/dist/chunks/{chunk.EUQYBYAZ.js → chunk.5QUHHGOD.js} +2 -2
  17. package/dist/chunks/{chunk.XQZR2X4X.js → chunk.6LMYTIGS.js} +2 -2
  18. package/dist/chunks/{chunk.KT6MHQM6.js → chunk.6VJY3TRA.js} +15 -13
  19. package/dist/chunks/chunk.6VJY3TRA.js.map +7 -0
  20. package/dist/chunks/{chunk.UCRA4FZW.js → chunk.A2AYJJ7H.js} +2 -2
  21. package/dist/chunks/{chunk.BZMKXI2L.js → chunk.AHX2WNRS.js} +2 -2
  22. package/dist/chunks/{chunk.GIEAMHSU.js → chunk.AOOC5ALQ.js} +4 -7
  23. package/dist/chunks/chunk.AOOC5ALQ.js.map +7 -0
  24. package/dist/chunks/{chunk.UNYO3GI7.js → chunk.CAEBFUZN.js} +143 -50
  25. package/dist/chunks/chunk.CAEBFUZN.js.map +7 -0
  26. package/dist/chunks/{chunk.OZ3LPRZE.js → chunk.CVUNFQUG.js} +2 -2
  27. package/dist/chunks/{chunk.UOEHTGNM.js → chunk.D5UFMTUH.js} +2 -2
  28. package/dist/chunks/{chunk.AVH3ZNCM.js → chunk.DFMLUH2N.js} +2 -2
  29. package/dist/chunks/{chunk.5RI2MXEU.js → chunk.E3U7WNRA.js} +8 -11
  30. package/dist/chunks/chunk.E3U7WNRA.js.map +7 -0
  31. package/dist/chunks/{chunk.MZJLG4BF.js → chunk.EA2ED5LW.js} +2 -2
  32. package/dist/chunks/{chunk.UE2OCWAE.js → chunk.EJTQEUF4.js} +2 -2
  33. package/dist/chunks/{chunk.X4NXSNI6.js → chunk.EPMUBNXV.js} +2 -2
  34. package/dist/chunks/{chunk.YOFWLXEH.js → chunk.EQUDFX74.js} +16 -10
  35. package/dist/chunks/chunk.EQUDFX74.js.map +7 -0
  36. package/dist/chunks/{chunk.EX4R7WUE.js → chunk.FDOTWE5Q.js} +5 -5
  37. package/dist/chunks/{chunk.BQ7JABKS.js → chunk.HBXMQ7PF.js} +5 -5
  38. package/dist/chunks/{chunk.3XQ5VLXY.js → chunk.HINYMLWI.js} +2 -2
  39. package/dist/chunks/{chunk.7J4TXMXH.js → chunk.HSSW752S.js} +2 -2
  40. package/dist/chunks/{chunk.FFAHZBAJ.js → chunk.HZ74RYOQ.js} +2 -2
  41. package/dist/chunks/{chunk.MCKS4JLW.js → chunk.IKGD2H5A.js} +3 -3
  42. package/dist/chunks/{chunk.V4GFOKBI.js → chunk.IUFTAV2I.js} +2 -2
  43. package/dist/chunks/{chunk.V4GFOKBI.js.map → chunk.IUFTAV2I.js.map} +1 -1
  44. package/dist/chunks/{chunk.KGECDG22.js → chunk.J2QD6WCF.js} +2 -2
  45. package/dist/chunks/{chunk.XUAUB2UI.js → chunk.J37FDI7L.js} +2 -2
  46. package/dist/chunks/{chunk.GZVYO3UJ.js → chunk.JHE7UVMI.js} +2 -2
  47. package/dist/chunks/{chunk.LKMV5MVK.js → chunk.JKA6KBXT.js} +6 -6
  48. package/dist/chunks/{chunk.K5OSYXNU.js → chunk.JWA6M5ZZ.js} +2 -2
  49. package/dist/chunks/{chunk.PODVUIE6.js → chunk.JXKV4DYA.js} +2 -2
  50. package/dist/chunks/{chunk.FKVCNOHV.js → chunk.KC4VEV4Y.js} +4 -4
  51. package/dist/chunks/{chunk.STHUTCU7.js → chunk.KURP6IS6.js} +8 -8
  52. package/dist/chunks/{chunk.YGMDIJUQ.js → chunk.L6H7CHLC.js} +2 -2
  53. package/dist/chunks/{chunk.TBZAI6T6.js → chunk.LJNMLUJK.js} +3 -3
  54. package/dist/chunks/{chunk.3AZ6O5UW.js → chunk.LWIAMY4V.js} +3 -3
  55. package/dist/chunks/{chunk.JJ2K4ORZ.js → chunk.MAKIWTSE.js} +10 -13
  56. package/dist/chunks/chunk.MAKIWTSE.js.map +7 -0
  57. package/dist/chunks/{chunk.DFS7LPJO.js → chunk.N2P6JGTF.js} +2 -2
  58. package/dist/chunks/{chunk.RZ3REQWL.js → chunk.N5ZE6OSY.js} +2 -2
  59. package/dist/chunks/{chunk.VH6SKOPX.js → chunk.NEHYBY5N.js} +2 -2
  60. package/dist/chunks/{chunk.YUUXCVT2.js → chunk.NMBIRUQU.js} +2 -2
  61. package/dist/chunks/{chunk.2BATB6NO.js → chunk.NMWM3BP7.js} +4 -4
  62. package/dist/chunks/{chunk.THNHZ3LC.js → chunk.NUNQOP7A.js} +2 -2
  63. package/dist/chunks/{chunk.BJUQE5YL.js → chunk.NWNEDOFO.js} +2 -2
  64. package/dist/chunks/{chunk.3IQ2QEPZ.js → chunk.NXIQ25W4.js} +21 -13
  65. package/dist/chunks/chunk.NXIQ25W4.js.map +7 -0
  66. package/dist/chunks/{chunk.JCWTUOY2.js → chunk.O5STVMJZ.js} +11 -11
  67. package/dist/chunks/{chunk.MCAB6KY5.js → chunk.OEGAZKUI.js} +2 -2
  68. package/dist/chunks/{chunk.Q7G25NQW.js → chunk.P4ZXNQQ4.js} +2 -2
  69. package/dist/chunks/{chunk.G7UFPFQ2.js → chunk.PDOQLAYW.js} +3 -3
  70. package/dist/chunks/{chunk.MJA5HEFN.js → chunk.PDVI2IPR.js} +2 -2
  71. package/dist/chunks/{chunk.SWMV7T2O.js → chunk.PIKKRGFU.js} +6 -6
  72. package/dist/chunks/{chunk.Y5XMLHNP.js → chunk.PLIBKR5J.js} +2 -2
  73. package/dist/chunks/{chunk.JHJFFBNL.js → chunk.Q3XZRHS6.js} +5 -5
  74. package/dist/chunks/{chunk.UNTUMNPO.js → chunk.Q7TOL5PH.js} +6 -6
  75. package/dist/chunks/{chunk.UUECFETB.js → chunk.Q7VKIJC3.js} +2 -2
  76. package/dist/chunks/{chunk.GZHQAHOL.js → chunk.QKRQEB4F.js} +11 -4
  77. package/dist/chunks/chunk.QKRQEB4F.js.map +7 -0
  78. package/dist/chunks/{chunk.FKDUVEOP.js → chunk.QOBJ2NX5.js} +3 -3
  79. package/dist/chunks/{chunk.7TPOI264.js → chunk.QTVJRWRP.js} +10 -10
  80. package/dist/chunks/{chunk.O7OELAMY.js → chunk.R4FKW3GX.js} +8 -8
  81. package/dist/chunks/{chunk.J3GDNLNN.js → chunk.RCI5CCXX.js} +2 -2
  82. package/dist/chunks/{chunk.CMCJB5AA.js → chunk.RU2RT37T.js} +6 -6
  83. package/dist/chunks/{chunk.6A2AHHWZ.js → chunk.RXRHPQ7D.js} +2 -2
  84. package/dist/chunks/{chunk.BVFTZ3AB.js → chunk.S2IHOYLF.js} +2 -2
  85. package/dist/chunks/{chunk.7RZ27FQL.js → chunk.SBAXRTPJ.js} +5 -8
  86. package/dist/chunks/chunk.SBAXRTPJ.js.map +7 -0
  87. package/dist/chunks/{chunk.DYE6F2Y6.js → chunk.SCKEUIIF.js} +2 -2
  88. package/dist/chunks/{chunk.TDWLNFH4.js → chunk.SCMER6XQ.js} +2 -2
  89. package/dist/chunks/{chunk.6L4RCUNM.js → chunk.SSOL4LVM.js} +10 -13
  90. package/dist/chunks/chunk.SSOL4LVM.js.map +7 -0
  91. package/dist/chunks/{chunk.WUKKH3NE.js → chunk.SYMEFYEK.js} +2 -2
  92. package/dist/chunks/{chunk.IPWLCVHW.js → chunk.TASXJ4ZX.js} +2 -2
  93. package/dist/chunks/{chunk.SKQK3F66.js → chunk.TB237H74.js} +2 -2
  94. package/dist/chunks/{chunk.TVVJTCGG.js → chunk.TUSN4AOP.js} +4 -5
  95. package/dist/chunks/chunk.TUSN4AOP.js.map +7 -0
  96. package/dist/chunks/{chunk.ZJ6JMFVP.js → chunk.TVSMRXAW.js} +2 -2
  97. package/dist/chunks/{chunk.TSWB7UFK.js → chunk.UA5B6CPN.js} +82 -15
  98. package/dist/chunks/chunk.UA5B6CPN.js.map +7 -0
  99. package/dist/chunks/{chunk.SBLP34SQ.js → chunk.UCXZFEKY.js} +2 -2
  100. package/dist/chunks/{chunk.NTBDBGG7.js → chunk.UEMDEZX6.js} +2 -2
  101. package/dist/chunks/{chunk.CJLZ3QMG.js → chunk.VCJQ6DPU.js} +9 -9
  102. package/dist/chunks/{chunk.FOH4KP4A.js → chunk.VEIXDC5G.js} +6 -6
  103. package/dist/chunks/{chunk.XLYCEJU4.js → chunk.VU6FOBTQ.js} +2 -2
  104. package/dist/chunks/{chunk.SFBSB7EM.js → chunk.WBOHZGDF.js} +5 -5
  105. package/dist/chunks/{chunk.N4Y2OUEA.js → chunk.WM6M3IWG.js} +2 -2
  106. package/dist/chunks/{chunk.XWUVIVOV.js → chunk.WOUHL4WE.js} +2 -2
  107. package/dist/chunks/{chunk.H63OT7RB.js → chunk.X5VH7MID.js} +4 -7
  108. package/dist/chunks/chunk.X5VH7MID.js.map +7 -0
  109. package/dist/chunks/{chunk.2YBC7C2K.js → chunk.XAXHRDXN.js} +5 -5
  110. package/dist/chunks/{chunk.VHCBBPBS.js → chunk.XBDUDOPF.js} +8 -8
  111. package/dist/chunks/{chunk.XZ7DDRXL.js → chunk.XIO6NVNU.js} +6 -6
  112. package/dist/chunks/{chunk.KUTXV7RO.js → chunk.XO7VQMVX.js} +2 -2
  113. package/dist/chunks/{chunk.SN2VEGTZ.js → chunk.XVXJDFUK.js} +2 -2
  114. package/dist/chunks/{chunk.GCISSJZP.js → chunk.XYDE666E.js} +2 -2
  115. package/dist/chunks/{chunk.BBPFCDZW.js → chunk.YSWL6IJW.js} +2 -2
  116. package/dist/chunks/{chunk.UQ65IBBL.js → chunk.YYCO33PM.js} +2 -2
  117. package/dist/chunks/{chunk.GT6WAUZ7.js → chunk.Z7JE3NFJ.js} +2 -2
  118. package/dist/chunks/{chunk.CKADV3OI.js → chunk.ZJSALTLL.js} +6 -6
  119. package/dist/chunks/{chunk.3DCW4HDA.js → chunk.ZOW7OV2U.js} +2 -2
  120. package/dist/chunks/{chunk.QGLCODBD.js → chunk.ZQJTGEHX.js} +2 -2
  121. package/dist/chunks/{chunk.LALGMGC2.js → chunk.ZS2RODX4.js} +2 -2
  122. package/dist/components/accordion/accordion.component.js +3 -3
  123. package/dist/components/accordion/accordion.js +4 -4
  124. package/dist/components/alert/alert.component.js +9 -10
  125. package/dist/components/alert/alert.js +10 -11
  126. package/dist/components/alert/alert.styles.js +1 -1
  127. package/dist/components/badge/badge.component.js +4 -4
  128. package/dist/components/badge/badge.js +5 -5
  129. package/dist/components/breadcrumb/breadcrumb.component.js +9 -9
  130. package/dist/components/breadcrumb/breadcrumb.js +10 -10
  131. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  132. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  133. package/dist/components/button/button.component.js +8 -8
  134. package/dist/components/button/button.js +9 -9
  135. package/dist/components/button-group/button-group.component.js +2 -2
  136. package/dist/components/button-group/button-group.js +3 -3
  137. package/dist/components/card/card.component.js +2 -2
  138. package/dist/components/card/card.js +3 -3
  139. package/dist/components/checkbox/checkbox.component.js +6 -6
  140. package/dist/components/checkbox/checkbox.js +7 -7
  141. package/dist/components/combobox/combobox.component.js +14 -15
  142. package/dist/components/combobox/combobox.js +15 -16
  143. package/dist/components/details/details.component.js +7 -7
  144. package/dist/components/details/details.js +8 -8
  145. package/dist/components/dialog/dialog.component.js +8 -8
  146. package/dist/components/dialog/dialog.js +9 -9
  147. package/dist/components/divider/divider.component.js +2 -2
  148. package/dist/components/divider/divider.js +3 -3
  149. package/dist/components/drawer/drawer.component.js +8 -8
  150. package/dist/components/drawer/drawer.js +9 -9
  151. package/dist/components/dropdown/dropdown.component.js +6 -8
  152. package/dist/components/dropdown/dropdown.js +7 -9
  153. package/dist/components/dropdown/dropdown.styles.js +1 -1
  154. package/dist/components/file/file.component.js +9 -9
  155. package/dist/components/file/file.js +10 -10
  156. package/dist/components/header/header.component.js +8 -8
  157. package/dist/components/header/header.js +9 -9
  158. package/dist/components/icon/icon.component.js +4 -4
  159. package/dist/components/icon/icon.js +5 -5
  160. package/dist/components/icon/library.js +2 -2
  161. package/dist/components/icon/library.migration.js +3 -3
  162. package/dist/components/icon-button/icon-button.component.js +6 -6
  163. package/dist/components/icon-button/icon-button.js +7 -7
  164. package/dist/components/input/input.component.js +9 -9
  165. package/dist/components/input/input.js +10 -10
  166. package/dist/components/menu/menu.component.js +3 -4
  167. package/dist/components/menu/menu.js +4 -5
  168. package/dist/components/menu/menu.styles.js +1 -1
  169. package/dist/components/menu-item/menu-item.component.js +11 -13
  170. package/dist/components/menu-item/menu-item.js +12 -14
  171. package/dist/components/menu-item/menu-item.styles.js +1 -1
  172. package/dist/components/menu-label/menu-label.component.js +4 -5
  173. package/dist/components/menu-label/menu-label.js +5 -6
  174. package/dist/components/menu-label/menu-label.styles.js +1 -1
  175. package/dist/components/nav-item/nav-item.component.js +6 -6
  176. package/dist/components/nav-item/nav-item.js +7 -7
  177. package/dist/components/optgroup/optgroup.component.js +3 -3
  178. package/dist/components/optgroup/optgroup.js +4 -4
  179. package/dist/components/option/option.component.js +8 -8
  180. package/dist/components/option/option.js +9 -9
  181. package/dist/components/popup/popup.component.js +3 -4
  182. package/dist/components/popup/popup.js +4 -5
  183. package/dist/components/popup/popup.styles.js +1 -1
  184. package/dist/components/prio-nav/prio-nav.component.js +17 -20
  185. package/dist/components/prio-nav/prio-nav.js +18 -21
  186. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  187. package/dist/components/progress-bar/progress-bar.js +3 -3
  188. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  189. package/dist/components/progress-ring/progress-ring.js +3 -3
  190. package/dist/components/radio/radio.component.js +6 -6
  191. package/dist/components/radio/radio.js +7 -7
  192. package/dist/components/radio-button/radio-button.component.js +3 -3
  193. package/dist/components/radio-button/radio-button.js +4 -4
  194. package/dist/components/radio-group/radio-group.component.js +4 -4
  195. package/dist/components/radio-group/radio-group.js +5 -5
  196. package/dist/components/range/range.component.js +7 -9
  197. package/dist/components/range/range.js +8 -10
  198. package/dist/components/range-tick/range-tick.component.js +2 -2
  199. package/dist/components/range-tick/range-tick.js +3 -3
  200. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  201. package/dist/components/select/select.component.js +11 -12
  202. package/dist/components/select/select.js +12 -13
  203. package/dist/components/side-nav/side-nav.component.js +13 -13
  204. package/dist/components/side-nav/side-nav.js +14 -14
  205. package/dist/components/spinner/spinner.component.js +2 -2
  206. package/dist/components/spinner/spinner.js +3 -3
  207. package/dist/components/switch/switch.component.js +3 -3
  208. package/dist/components/switch/switch.js +4 -4
  209. package/dist/components/tab/tab.component.js +8 -8
  210. package/dist/components/tab/tab.js +9 -9
  211. package/dist/components/tab-group/tab-group.component.js +9 -9
  212. package/dist/components/tab-group/tab-group.js +10 -10
  213. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  214. package/dist/components/tab-panel/tab-panel.js +3 -3
  215. package/dist/components/tag/tag.component.js +8 -8
  216. package/dist/components/tag/tag.js +9 -9
  217. package/dist/components/textarea/textarea.component.js +3 -3
  218. package/dist/components/textarea/textarea.js +4 -4
  219. package/dist/components/tooltip/tooltip.component.d.ts +6 -0
  220. package/dist/components/tooltip/tooltip.component.js +6 -8
  221. package/dist/components/tooltip/tooltip.js +7 -9
  222. package/dist/components/tooltip/tooltip.styles.js +1 -1
  223. package/dist/components/validate/utility.d.ts +11 -0
  224. package/dist/components/validate/utility.js +4 -2
  225. package/dist/components/validate/validate.component.d.ts +21 -2
  226. package/dist/components/validate/validate.component.js +15 -12
  227. package/dist/components/validate/validate.js +16 -13
  228. package/dist/custom-elements.json +142 -84
  229. package/dist/styles/index.css +1 -1
  230. package/dist/synergy.js +164 -171
  231. package/dist/utilities/icon-library.js +2 -2
  232. package/dist/vscode.html-custom-data.json +30 -26
  233. package/package.json +4 -4
  234. package/dist/chunks/chunk.2KYFCKCK.js +0 -10
  235. package/dist/chunks/chunk.2KYFCKCK.js.map +0 -7
  236. package/dist/chunks/chunk.36EHOOOO.js +0 -23
  237. package/dist/chunks/chunk.36EHOOOO.js.map +0 -7
  238. package/dist/chunks/chunk.3IQ2QEPZ.js.map +0 -7
  239. package/dist/chunks/chunk.5RI2MXEU.js.map +0 -7
  240. package/dist/chunks/chunk.6L4RCUNM.js.map +0 -7
  241. package/dist/chunks/chunk.7RZ27FQL.js.map +0 -7
  242. package/dist/chunks/chunk.CCY6IYFD.js +0 -107
  243. package/dist/chunks/chunk.CCY6IYFD.js.map +0 -7
  244. package/dist/chunks/chunk.DEJAPNIZ.js.map +0 -7
  245. package/dist/chunks/chunk.E7LBPRDC.js +0 -18
  246. package/dist/chunks/chunk.E7LBPRDC.js.map +0 -7
  247. package/dist/chunks/chunk.GIEAMHSU.js.map +0 -7
  248. package/dist/chunks/chunk.GZHQAHOL.js.map +0 -7
  249. package/dist/chunks/chunk.H63OT7RB.js.map +0 -7
  250. package/dist/chunks/chunk.JILCM7FD.js +0 -26
  251. package/dist/chunks/chunk.JILCM7FD.js.map +0 -7
  252. package/dist/chunks/chunk.JJ2K4ORZ.js.map +0 -7
  253. package/dist/chunks/chunk.KT6MHQM6.js.map +0 -7
  254. package/dist/chunks/chunk.N7HN275B.js +0 -161
  255. package/dist/chunks/chunk.N7HN275B.js.map +0 -7
  256. package/dist/chunks/chunk.OY6ZX6TH.js.map +0 -7
  257. package/dist/chunks/chunk.TSWB7UFK.js.map +0 -7
  258. package/dist/chunks/chunk.TVVJTCGG.js.map +0 -7
  259. package/dist/chunks/chunk.UNYO3GI7.js.map +0 -7
  260. package/dist/chunks/chunk.V37RYGE7.js +0 -24
  261. package/dist/chunks/chunk.V37RYGE7.js.map +0 -7
  262. package/dist/chunks/chunk.WEOHOC3C.js.map +0 -7
  263. package/dist/chunks/chunk.YOFWLXEH.js.map +0 -7
  264. package/dist/components/alert/alert.custom.styles.d.ts +0 -2
  265. package/dist/components/alert/alert.custom.styles.js +0 -8
  266. package/dist/components/alert/alert.custom.styles.js.map +0 -7
  267. package/dist/components/dropdown/dropdown.custom.styles.d.ts +0 -2
  268. package/dist/components/dropdown/dropdown.custom.styles.js +0 -8
  269. package/dist/components/dropdown/dropdown.custom.styles.js.map +0 -7
  270. package/dist/components/menu/menu.custom.styles.d.ts +0 -2
  271. package/dist/components/menu/menu.custom.styles.js +0 -8
  272. package/dist/components/menu/menu.custom.styles.js.map +0 -7
  273. package/dist/components/menu-item/menu-item.custom.styles.d.ts +0 -2
  274. package/dist/components/menu-item/menu-item.custom.styles.js +0 -8
  275. package/dist/components/menu-item/menu-item.custom.styles.js.map +0 -7
  276. package/dist/components/menu-label/menu-label.custom.styles.d.ts +0 -2
  277. package/dist/components/menu-label/menu-label.custom.styles.js +0 -8
  278. package/dist/components/menu-label/menu-label.custom.styles.js.map +0 -7
  279. package/dist/components/popup/popup.custom.styles.d.ts +0 -2
  280. package/dist/components/popup/popup.custom.styles.js +0 -8
  281. package/dist/components/popup/popup.custom.styles.js.map +0 -7
  282. package/dist/components/tooltip/tooltip.custom.styles.d.ts +0 -2
  283. package/dist/components/tooltip/tooltip.custom.styles.js +0 -8
  284. package/dist/components/tooltip/tooltip.custom.styles.js.map +0 -7
  285. /package/dist/chunks/{chunk.V6TCG5BQ.js.map → chunk.2A5ZKU32.js.map} +0 -0
  286. /package/dist/chunks/{chunk.CV7OGSN7.js.map → chunk.2IVMHEQ6.js.map} +0 -0
  287. /package/dist/chunks/{chunk.5T4HS4EI.js.map → chunk.2PPN6KVK.js.map} +0 -0
  288. /package/dist/chunks/{chunk.CPC3JTDA.js.map → chunk.34DCXKYT.js.map} +0 -0
  289. /package/dist/chunks/{chunk.XCFOLSPD.js.map → chunk.36JGEYPF.js.map} +0 -0
  290. /package/dist/chunks/{chunk.IFEFFC3Q.js.map → chunk.3NWL4AL3.js.map} +0 -0
  291. /package/dist/chunks/{chunk.EAEQ3AGO.js.map → chunk.3WVDHGXC.js.map} +0 -0
  292. /package/dist/chunks/{chunk.RHL3SPJO.js.map → chunk.4ZWPK4JG.js.map} +0 -0
  293. /package/dist/chunks/{chunk.RSTYXHB5.js.map → chunk.57A42NLG.js.map} +0 -0
  294. /package/dist/chunks/{chunk.EUQYBYAZ.js.map → chunk.5QUHHGOD.js.map} +0 -0
  295. /package/dist/chunks/{chunk.XQZR2X4X.js.map → chunk.6LMYTIGS.js.map} +0 -0
  296. /package/dist/chunks/{chunk.UCRA4FZW.js.map → chunk.A2AYJJ7H.js.map} +0 -0
  297. /package/dist/chunks/{chunk.BZMKXI2L.js.map → chunk.AHX2WNRS.js.map} +0 -0
  298. /package/dist/chunks/{chunk.OZ3LPRZE.js.map → chunk.CVUNFQUG.js.map} +0 -0
  299. /package/dist/chunks/{chunk.UOEHTGNM.js.map → chunk.D5UFMTUH.js.map} +0 -0
  300. /package/dist/chunks/{chunk.AVH3ZNCM.js.map → chunk.DFMLUH2N.js.map} +0 -0
  301. /package/dist/chunks/{chunk.MZJLG4BF.js.map → chunk.EA2ED5LW.js.map} +0 -0
  302. /package/dist/chunks/{chunk.UE2OCWAE.js.map → chunk.EJTQEUF4.js.map} +0 -0
  303. /package/dist/chunks/{chunk.X4NXSNI6.js.map → chunk.EPMUBNXV.js.map} +0 -0
  304. /package/dist/chunks/{chunk.EX4R7WUE.js.map → chunk.FDOTWE5Q.js.map} +0 -0
  305. /package/dist/chunks/{chunk.BQ7JABKS.js.map → chunk.HBXMQ7PF.js.map} +0 -0
  306. /package/dist/chunks/{chunk.3XQ5VLXY.js.map → chunk.HINYMLWI.js.map} +0 -0
  307. /package/dist/chunks/{chunk.7J4TXMXH.js.map → chunk.HSSW752S.js.map} +0 -0
  308. /package/dist/chunks/{chunk.FFAHZBAJ.js.map → chunk.HZ74RYOQ.js.map} +0 -0
  309. /package/dist/chunks/{chunk.MCKS4JLW.js.map → chunk.IKGD2H5A.js.map} +0 -0
  310. /package/dist/chunks/{chunk.KGECDG22.js.map → chunk.J2QD6WCF.js.map} +0 -0
  311. /package/dist/chunks/{chunk.XUAUB2UI.js.map → chunk.J37FDI7L.js.map} +0 -0
  312. /package/dist/chunks/{chunk.GZVYO3UJ.js.map → chunk.JHE7UVMI.js.map} +0 -0
  313. /package/dist/chunks/{chunk.LKMV5MVK.js.map → chunk.JKA6KBXT.js.map} +0 -0
  314. /package/dist/chunks/{chunk.K5OSYXNU.js.map → chunk.JWA6M5ZZ.js.map} +0 -0
  315. /package/dist/chunks/{chunk.PODVUIE6.js.map → chunk.JXKV4DYA.js.map} +0 -0
  316. /package/dist/chunks/{chunk.FKVCNOHV.js.map → chunk.KC4VEV4Y.js.map} +0 -0
  317. /package/dist/chunks/{chunk.STHUTCU7.js.map → chunk.KURP6IS6.js.map} +0 -0
  318. /package/dist/chunks/{chunk.YGMDIJUQ.js.map → chunk.L6H7CHLC.js.map} +0 -0
  319. /package/dist/chunks/{chunk.TBZAI6T6.js.map → chunk.LJNMLUJK.js.map} +0 -0
  320. /package/dist/chunks/{chunk.3AZ6O5UW.js.map → chunk.LWIAMY4V.js.map} +0 -0
  321. /package/dist/chunks/{chunk.DFS7LPJO.js.map → chunk.N2P6JGTF.js.map} +0 -0
  322. /package/dist/chunks/{chunk.RZ3REQWL.js.map → chunk.N5ZE6OSY.js.map} +0 -0
  323. /package/dist/chunks/{chunk.VH6SKOPX.js.map → chunk.NEHYBY5N.js.map} +0 -0
  324. /package/dist/chunks/{chunk.YUUXCVT2.js.map → chunk.NMBIRUQU.js.map} +0 -0
  325. /package/dist/chunks/{chunk.2BATB6NO.js.map → chunk.NMWM3BP7.js.map} +0 -0
  326. /package/dist/chunks/{chunk.THNHZ3LC.js.map → chunk.NUNQOP7A.js.map} +0 -0
  327. /package/dist/chunks/{chunk.BJUQE5YL.js.map → chunk.NWNEDOFO.js.map} +0 -0
  328. /package/dist/chunks/{chunk.JCWTUOY2.js.map → chunk.O5STVMJZ.js.map} +0 -0
  329. /package/dist/chunks/{chunk.MCAB6KY5.js.map → chunk.OEGAZKUI.js.map} +0 -0
  330. /package/dist/chunks/{chunk.Q7G25NQW.js.map → chunk.P4ZXNQQ4.js.map} +0 -0
  331. /package/dist/chunks/{chunk.G7UFPFQ2.js.map → chunk.PDOQLAYW.js.map} +0 -0
  332. /package/dist/chunks/{chunk.MJA5HEFN.js.map → chunk.PDVI2IPR.js.map} +0 -0
  333. /package/dist/chunks/{chunk.SWMV7T2O.js.map → chunk.PIKKRGFU.js.map} +0 -0
  334. /package/dist/chunks/{chunk.Y5XMLHNP.js.map → chunk.PLIBKR5J.js.map} +0 -0
  335. /package/dist/chunks/{chunk.JHJFFBNL.js.map → chunk.Q3XZRHS6.js.map} +0 -0
  336. /package/dist/chunks/{chunk.UNTUMNPO.js.map → chunk.Q7TOL5PH.js.map} +0 -0
  337. /package/dist/chunks/{chunk.UUECFETB.js.map → chunk.Q7VKIJC3.js.map} +0 -0
  338. /package/dist/chunks/{chunk.FKDUVEOP.js.map → chunk.QOBJ2NX5.js.map} +0 -0
  339. /package/dist/chunks/{chunk.7TPOI264.js.map → chunk.QTVJRWRP.js.map} +0 -0
  340. /package/dist/chunks/{chunk.O7OELAMY.js.map → chunk.R4FKW3GX.js.map} +0 -0
  341. /package/dist/chunks/{chunk.J3GDNLNN.js.map → chunk.RCI5CCXX.js.map} +0 -0
  342. /package/dist/chunks/{chunk.CMCJB5AA.js.map → chunk.RU2RT37T.js.map} +0 -0
  343. /package/dist/chunks/{chunk.6A2AHHWZ.js.map → chunk.RXRHPQ7D.js.map} +0 -0
  344. /package/dist/chunks/{chunk.BVFTZ3AB.js.map → chunk.S2IHOYLF.js.map} +0 -0
  345. /package/dist/chunks/{chunk.DYE6F2Y6.js.map → chunk.SCKEUIIF.js.map} +0 -0
  346. /package/dist/chunks/{chunk.TDWLNFH4.js.map → chunk.SCMER6XQ.js.map} +0 -0
  347. /package/dist/chunks/{chunk.WUKKH3NE.js.map → chunk.SYMEFYEK.js.map} +0 -0
  348. /package/dist/chunks/{chunk.IPWLCVHW.js.map → chunk.TASXJ4ZX.js.map} +0 -0
  349. /package/dist/chunks/{chunk.SKQK3F66.js.map → chunk.TB237H74.js.map} +0 -0
  350. /package/dist/chunks/{chunk.ZJ6JMFVP.js.map → chunk.TVSMRXAW.js.map} +0 -0
  351. /package/dist/chunks/{chunk.SBLP34SQ.js.map → chunk.UCXZFEKY.js.map} +0 -0
  352. /package/dist/chunks/{chunk.NTBDBGG7.js.map → chunk.UEMDEZX6.js.map} +0 -0
  353. /package/dist/chunks/{chunk.CJLZ3QMG.js.map → chunk.VCJQ6DPU.js.map} +0 -0
  354. /package/dist/chunks/{chunk.FOH4KP4A.js.map → chunk.VEIXDC5G.js.map} +0 -0
  355. /package/dist/chunks/{chunk.XLYCEJU4.js.map → chunk.VU6FOBTQ.js.map} +0 -0
  356. /package/dist/chunks/{chunk.SFBSB7EM.js.map → chunk.WBOHZGDF.js.map} +0 -0
  357. /package/dist/chunks/{chunk.N4Y2OUEA.js.map → chunk.WM6M3IWG.js.map} +0 -0
  358. /package/dist/chunks/{chunk.XWUVIVOV.js.map → chunk.WOUHL4WE.js.map} +0 -0
  359. /package/dist/chunks/{chunk.2YBC7C2K.js.map → chunk.XAXHRDXN.js.map} +0 -0
  360. /package/dist/chunks/{chunk.VHCBBPBS.js.map → chunk.XBDUDOPF.js.map} +0 -0
  361. /package/dist/chunks/{chunk.XZ7DDRXL.js.map → chunk.XIO6NVNU.js.map} +0 -0
  362. /package/dist/chunks/{chunk.KUTXV7RO.js.map → chunk.XO7VQMVX.js.map} +0 -0
  363. /package/dist/chunks/{chunk.SN2VEGTZ.js.map → chunk.XVXJDFUK.js.map} +0 -0
  364. /package/dist/chunks/{chunk.GCISSJZP.js.map → chunk.XYDE666E.js.map} +0 -0
  365. /package/dist/chunks/{chunk.BBPFCDZW.js.map → chunk.YSWL6IJW.js.map} +0 -0
  366. /package/dist/chunks/{chunk.UQ65IBBL.js.map → chunk.YYCO33PM.js.map} +0 -0
  367. /package/dist/chunks/{chunk.GT6WAUZ7.js.map → chunk.Z7JE3NFJ.js.map} +0 -0
  368. /package/dist/chunks/{chunk.CKADV3OI.js.map → chunk.ZJSALTLL.js.map} +0 -0
  369. /package/dist/chunks/{chunk.3DCW4HDA.js.map → chunk.ZOW7OV2U.js.map} +0 -0
  370. /package/dist/chunks/{chunk.QGLCODBD.js.map → chunk.ZQJTGEHX.js.map} +0 -0
  371. /package/dist/chunks/{chunk.LALGMGC2.js.map → chunk.ZS2RODX4.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/validate/utility.ts"],
4
+ "sourcesContent": ["import SynergyElement from '../../internal/synergy-element.js';\nimport type SynInput from '../input/input.component.js';\n\n/**\n * An actual element can be any HTMLElement (including SynergyElement subclasses) or undefined if no element is provided.\n */\ntype ActualElement = HTMLElement | undefined;\n\n/**\n * @var WhitelistedSynergyFormEventNames A list of all the event names that should be transformed\n * This is needed to allow the automatic transformation of events to synergy events,\n * but only for those synergy needs (e.g. we do not want to transform click to syn-click).\n */\nconst WhitelistedSynergyFormEventNames = [\n 'blur',\n 'change',\n 'clear',\n 'focus',\n 'invalid',\n 'input',\n 'move',\n];\n\n/**\n * Low level interface to check for event type\n * @param eventName The event name to check\n * @param type The type to check\n * @returns True if the event name is of the provided type, false otherwise\n */\nconst isEventOfType = (eventName: string, type: string) => eventName.includes(type);\n\n/**\n * Check if the provided event name is a blur event\n * @param eventName The event name to check\n */\nexport const isBlurEvent = (eventName: string) => isEventOfType(eventName, 'blur');\n\n/**\n * Check if the provided event name is a change event\n * @param eventName The event name to check\n */\nexport const isChangeEvent = (eventName: string) => isEventOfType(eventName, 'change');\n\n/**\n * Check if the provided event is an invalid event\n * @param eventName The event name to check\n */\nexport const isInvalidEvent = (eventName: string) => isEventOfType(eventName, 'invalid');\n\n/**\n * Check if the provided element is a synergy element\n * @param element The element to check for\n * @returns True if the element is a synergy element, false otherwise\n */\nexport const isSynergyElement = (element?: HTMLElement) => element instanceof SynergyElement;\n\n/**\n * Get a list of event names from the provided attribute string\n * @param events The events string\n * @returns an array of events\n */\nexport const normalizeEventAttribute = (events: string = '') => events\n .split(' ')\n .map(s => s.trim())\n .filter(Boolean);\n\n/**\n * Get the event name for the provided element\n * @param element The element to get the event name for\n * @param eventName The event name to get\n */\nexport const getEventNameForElement = (element: HTMLElement, eventName: string) => {\n const sanitizedEventName = eventName.trim();\n const elementIsSynergyElement = isSynergyElement(element);\n\n if (!elementIsSynergyElement) {\n return sanitizedEventName;\n }\n\n return WhitelistedSynergyFormEventNames.includes(sanitizedEventName)\n ? `syn-${sanitizedEventName}`\n : sanitizedEventName;\n};\n\n/**\n * Check the size that the alert should use based on the provided element\n * @param element The html element to check for\n * @returns The size that the alert should use\n */\nexport const alertSizeForInput = (element?: HTMLElement) => {\n // Don\u00B4t set alert size if we are not dealing with a synergy element\n if (!isSynergyElement(element)) {\n return undefined;\n }\n\n const { size } = element as SynInput;\n const hasSize = size !== undefined && size !== null;\n return hasSize ? size : undefined;\n};\n\n/**\n * Mapping of Synergy element tag names to their internal input selectors\n */\nconst ELEMENT_SELECTORS = {\n 'syn-checkbox': 'input',\n 'syn-combobox': '.combobox__value-input',\n 'syn-file': 'input',\n 'syn-input': 'input',\n 'syn-radio-group': 'input',\n\n // Range could also use the first thumb, but unfortunately this collides with the already present tooltip\n 'syn-range': '.input__control',\n\n 'syn-select': '.select__value-input',\n 'syn-switch': 'input',\n 'syn-textarea': '.textarea__control',\n} as const;\n\n/**\n * Helper function to query an element's shadow DOM for an input\n */\nconst queryInputInShadowRoot = (\n element: HTMLElement,\n selector: string,\n): HTMLInputElement | null => element\n .shadowRoot\n ?.querySelector<HTMLInputElement>(selector) ?? null;\n\n/**\n * Retrieve the actual input element from the provided element, if it exists.\n * @param element The element to get the actual input for\n * @returns The html input element\n */\nexport const getActualInputElement = (element: ActualElement): ActualElement => {\n // If there is no input, skip before doing any harm\n if (!element) {\n return undefined;\n }\n\n // If the element doesn't have a shadow root, return it directly\n if (!element.shadowRoot) {\n return element;\n }\n\n const tagName = element.tagName.toLowerCase() as keyof typeof ELEMENT_SELECTORS;\n\n // Check if it's a known Synergy element\n const selector = ELEMENT_SELECTORS[tagName];\n if (selector) {\n const actualInput = queryInputInShadowRoot(element, selector);\n if (actualInput) return actualInput;\n }\n\n // Fallback: try common input selectors in shadow DOM\n const fallbackInput = queryInputInShadowRoot(element, 'input,select,textarea');\n if (fallbackInput) return fallbackInput;\n\n // For elements without shadow DOM or no inputs found, return the element itself\n return element;\n};\n"],
5
+ "mappings": ";;;;;AAaA,IAAM,mCAAmC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAQA,IAAM,gBAAgB,CAAC,WAAmB,SAAiB,UAAU,SAAS,IAAI;AAM3E,IAAM,cAAc,CAAC,cAAsB,cAAc,WAAW,MAAM;AAM1E,IAAM,gBAAgB,CAAC,cAA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AAC5D,QAAI,YAAa,QAAO;AAAA,EAC1B;AAGA,QAAM,gBAAgB,uBAAuB,SAAS,uBAAuB;AAC7E,MAAI,cAAe,QAAO;AAG1B,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -1,24 +1,24 @@
1
- import {
2
- prio_nav_styles_default
3
- } from "./chunk.74N5WLM5.js";
4
1
  import {
5
2
  filterOnlyNavItems,
6
3
  getAssignedElementsForSlot,
7
4
  hideNavigationItem,
8
5
  showNavigationItem
9
6
  } from "./chunk.OJ3N7TWP.js";
7
+ import {
8
+ prio_nav_styles_default
9
+ } from "./chunk.74N5WLM5.js";
10
10
  import {
11
11
  SynNavItem
12
- } from "./chunk.FKVCNOHV.js";
12
+ } from "./chunk.KC4VEV4Y.js";
13
13
  import {
14
14
  SynMenu
15
- } from "./chunk.H63OT7RB.js";
15
+ } from "./chunk.X5VH7MID.js";
16
16
  import {
17
17
  SynDropdown
18
- } from "./chunk.5RI2MXEU.js";
18
+ } from "./chunk.E3U7WNRA.js";
19
19
  import {
20
20
  SynIcon
21
- } from "./chunk.TBZAI6T6.js";
21
+ } from "./chunk.LJNMLUJK.js";
22
22
  import {
23
23
  LocalizeController
24
24
  } from "./chunk.QLETXF4A.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk.2NT3B5WJ.js";
28
28
  import {
29
29
  SynergyElement
30
- } from "./chunk.V4GFOKBI.js";
30
+ } from "./chunk.IUFTAV2I.js";
31
31
  import {
32
32
  __decorateClass
33
33
  } from "./chunk.MO2GTRUM.js";
@@ -209,4 +209,4 @@ __decorateClass([
209
209
  export {
210
210
  SynPrioNav
211
211
  };
212
- //# sourceMappingURL=chunk.RHL3SPJO.js.map
212
+ //# sourceMappingURL=chunk.4ZWPK4JG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSelect
3
- } from "./chunk.O7OELAMY.js";
3
+ } from "./chunk.R4FKW3GX.js";
4
4
 
5
5
  // src/components/select/select.ts
6
6
  var select_default = SynSelect;
@@ -9,4 +9,4 @@ SynSelect.define("syn-select");
9
9
  export {
10
10
  select_default
11
11
  };
12
- //# sourceMappingURL=chunk.RSTYXHB5.js.map
12
+ //# sourceMappingURL=chunk.57A42NLG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynValidate
3
- } from "./chunk.OY6ZX6TH.js";
3
+ } from "./chunk.3XZMOCG6.js";
4
4
 
5
5
  // src/components/validate/validate.ts
6
6
  var validate_default = SynValidate;
@@ -9,4 +9,4 @@ SynValidate.define("syn-validate");
9
9
  export {
10
10
  validate_default
11
11
  };
12
- //# sourceMappingURL=chunk.EUQYBYAZ.js.map
12
+ //# sourceMappingURL=chunk.5QUHHGOD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTag
3
- } from "./chunk.G7UFPFQ2.js";
3
+ } from "./chunk.PDOQLAYW.js";
4
4
 
5
5
  // src/components/tag/tag.ts
6
6
  var tag_default = SynTag;
@@ -9,4 +9,4 @@ SynTag.define("syn-tag");
9
9
  export {
10
10
  tag_default
11
11
  };
12
- //# sourceMappingURL=chunk.XQZR2X4X.js.map
12
+ //# sourceMappingURL=chunk.6LMYTIGS.js.map
@@ -1,12 +1,9 @@
1
- import {
2
- tooltip_custom_styles_default
3
- } from "./chunk.E7LBPRDC.js";
4
1
  import {
5
2
  tooltip_styles_default
6
- } from "./chunk.YOFWLXEH.js";
3
+ } from "./chunk.EQUDFX74.js";
7
4
  import {
8
5
  SynPopup
9
- } from "./chunk.GIEAMHSU.js";
6
+ } from "./chunk.AOOC5ALQ.js";
10
7
  import {
11
8
  waitForEvent
12
9
  } from "./chunk.LQDIH4Z5.js";
@@ -19,18 +16,18 @@ import {
19
16
  getAnimation,
20
17
  setDefaultAnimation
21
18
  } from "./chunk.RJUVM6NO.js";
22
- import {
23
- LocalizeController
24
- } from "./chunk.QLETXF4A.js";
25
19
  import {
26
20
  watch
27
21
  } from "./chunk.SMIMHADA.js";
22
+ import {
23
+ LocalizeController
24
+ } from "./chunk.QLETXF4A.js";
28
25
  import {
29
26
  component_styles_default
30
27
  } from "./chunk.2NT3B5WJ.js";
31
28
  import {
32
29
  SynergyElement
33
- } from "./chunk.V4GFOKBI.js";
30
+ } from "./chunk.IUFTAV2I.js";
34
31
  import {
35
32
  __decorateClass
36
33
  } from "./chunk.MO2GTRUM.js";
@@ -38,11 +35,12 @@ import {
38
35
  // src/components/tooltip/tooltip.component.ts
39
36
  import { classMap } from "lit/directives/class-map.js";
40
37
  import { html } from "lit";
41
- import { property, query } from "lit/decorators.js";
38
+ import { property, state, query } from "lit/decorators.js";
42
39
  var SynTooltip = class extends SynergyElement {
43
40
  constructor() {
44
41
  super();
45
42
  this.localize = new LocalizeController(this);
43
+ this.anchor = void 0;
46
44
  this.content = "";
47
45
  this.placement = "top";
48
46
  this.disabled = false;
@@ -183,6 +181,7 @@ var SynTooltip = class extends SynergyElement {
183
181
  render() {
184
182
  return html`
185
183
  <syn-popup
184
+ .anchor=${this.anchor}
186
185
  part="base"
187
186
  exportparts="
188
187
  popup:base__popup,
@@ -211,7 +210,7 @@ var SynTooltip = class extends SynergyElement {
211
210
  `;
212
211
  }
213
212
  };
214
- SynTooltip.styles = [component_styles_default, tooltip_styles_default, tooltip_custom_styles_default];
213
+ SynTooltip.styles = [component_styles_default, tooltip_styles_default];
215
214
  SynTooltip.dependencies = { "syn-popup": SynPopup };
216
215
  __decorateClass([
217
216
  query("slot:not([name])")
@@ -222,6 +221,9 @@ __decorateClass([
222
221
  __decorateClass([
223
222
  query("syn-popup")
224
223
  ], SynTooltip.prototype, "popup", 2);
224
+ __decorateClass([
225
+ state()
226
+ ], SynTooltip.prototype, "anchor", 2);
225
227
  __decorateClass([
226
228
  property()
227
229
  ], SynTooltip.prototype, "content", 2);
@@ -247,7 +249,7 @@ __decorateClass([
247
249
  watch("open", { waitUntilFirstUpdate: true })
248
250
  ], SynTooltip.prototype, "handleOpenChange", 1);
249
251
  __decorateClass([
250
- watch(["content", "distance", "placement", "skidding"])
252
+ watch(["anchor", "content", "distance", "placement", "skidding"])
251
253
  ], SynTooltip.prototype, "handleOptionsChange", 1);
252
254
  __decorateClass([
253
255
  watch("disabled")
@@ -270,4 +272,4 @@ setDefaultAnimation("tooltip.hide", {
270
272
  export {
271
273
  SynTooltip
272
274
  };
273
- //# sourceMappingURL=chunk.KT6MHQM6.js.map
275
+ //# sourceMappingURL=chunk.6VJY3TRA.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/tooltip/tooltip.component.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport { animateTo, parseDuration, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, state, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynPopup from '../popup/popup.component.js';\nimport styles from './tooltip.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { VirtualElement } from '../popup/popup.component.js';\n\n/**\n * @summary Tooltips display additional information based on a specific action.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tooltip--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The tooltip's target element. Avoid slotting in more than one element, as subsequent ones will be ignored.\n * @slot content - The content to render in the tooltip. Alternatively, you can use the `content` attribute.\n *\n * @event syn-show - Emitted when the tooltip begins to show.\n * @event syn-after-show - Emitted after the tooltip has shown and all animations are complete.\n * @event syn-hide - Emitted when the tooltip begins to hide.\n * @event syn-after-hide - Emitted after the tooltip has hidden and all animations are complete.\n *\n * @csspart base - The component's base wrapper, an `<syn-popup>` element.\n * @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.\n * @csspart base__arrow - The popup's exported `arrow` part. Use this to target the tooltip's arrow.\n * @csspart body - The tooltip's body where its content is rendered.\n *\n * @cssproperty --max-width - The maximum width of the tooltip before its content will wrap.\n * @cssproperty --hide-delay - The amount of time to wait before hiding the tooltip when hovering.\n * @cssproperty --show-delay - The amount of time to wait before showing the tooltip when hovering.\n *\n * @animation tooltip.show - The animation to use when showing the tooltip.\n * @animation tooltip.hide - The animation to use when hiding the tooltip.\n */\nexport default class SynTooltip extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n static dependencies = { 'syn-popup': SynPopup };\n\n private hoverTimeout: number;\n private readonly localize = new LocalizeController(this);\n private closeWatcher: CloseWatcher | null;\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n @query('.tooltip__body') body: HTMLElement;\n @query('syn-popup') popup: SynPopup;\n\n /**\n * The element the tooltip will be anchored to. If the anchor lives outside of the tooltip, you can provide the anchor\n * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the tooltip, use the\n * `anchor` slot instead.\n */\n @state() private anchor: Element | string | VirtualElement | undefined = undefined;\n\n /** The tooltip's content. If you need to display HTML, use the `content` slot instead. */\n @property() content = '';\n\n /**\n * The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip\n * inside of the viewport.\n */\n @property() placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /** Disables the tooltip so it won't show when triggered. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** The distance in pixels from which to offset the tooltip away from its target. */\n @property({ type: Number }) distance = 13;\n\n /** Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods. */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** The distance in pixels from which to offset the tooltip along its target. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\n * options can be passed by separating them with a space. When manual is used, the tooltip must be activated\n * programmatically.\n */\n @property() trigger = 'hover focus';\n\n constructor() {\n super();\n this.addEventListener('blur', this.handleBlur, true);\n this.addEventListener('focus', this.handleFocus, true);\n this.addEventListener('click', this.handleClick);\n this.addEventListener('mouseover', this.handleMouseOver);\n this.addEventListener('mouseout', this.handleMouseOut);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n // Cleanup this event in case the tooltip is removed while open\n this.closeWatcher?.destroy();\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n }\n\n firstUpdated() {\n this.body.hidden = !this.open;\n\n // If the tooltip is visible on init, update its position\n if (this.open) {\n this.popup.active = true;\n this.popup.reposition();\n }\n }\n\n private handleBlur = () => {\n if (this.hasTrigger('focus')) {\n this.hide();\n }\n };\n\n private handleClick = () => {\n if (this.hasTrigger('click')) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n };\n\n private handleFocus = () => {\n if (this.hasTrigger('focus')) {\n this.show();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Pressing escape when a tooltip is open should dismiss it\n if (event.key === 'Escape') {\n event.stopPropagation();\n this.hide();\n }\n };\n\n private handleMouseOver = () => {\n if (this.hasTrigger('hover')) {\n const delay = parseDuration(getComputedStyle(this).getPropertyValue('--show-delay'));\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = window.setTimeout(() => this.show(), delay);\n }\n };\n\n private handleMouseOut = () => {\n if (this.hasTrigger('hover')) {\n const delay = parseDuration(getComputedStyle(this).getPropertyValue('--hide-delay'));\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = window.setTimeout(() => this.hide(), delay);\n }\n };\n\n private hasTrigger(triggerType: string) {\n const triggers = this.trigger.split(' ');\n return triggers.includes(triggerType);\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n if (this.disabled) {\n return;\n }\n\n // Show\n this.emit('syn-show');\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n this.hide();\n };\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n\n await stopAnimations(this.body);\n this.body.hidden = false;\n this.popup.active = true;\n const { keyframes, options } = getAnimation(this, 'tooltip.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.popup.reposition();\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n this.closeWatcher?.destroy();\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n\n await stopAnimations(this.body);\n const { keyframes, options } = getAnimation(this, 'tooltip.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.popup.active = false;\n this.body.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch(['anchor', 'content', 'distance','placement', 'skidding'])\n async handleOptionsChange() {\n if (this.hasUpdated) {\n await this.updateComplete;\n this.popup.reposition();\n }\n }\n\n @watch('disabled')\n handleDisabledChange() {\n if (this.disabled && this.open) {\n this.hide();\n }\n }\n\n /** Shows the tooltip. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the tooltip */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n //\n // NOTE: Tooltip is a bit unique in that we're using aria-live instead of aria-labelledby to trick screen readers into\n // announcing the content. It works really well, but it violates an accessibility rule. We're also adding the\n // aria-describedby attribute to a slot, which is required by <syn-popup> to correctly locate the first assigned\n // element, otherwise positioning is incorrect.\n //\n render() {\n return html`\n <syn-popup\n .anchor=${this.anchor}\n part=\"base\"\n exportparts=\"\n popup:base__popup,\n arrow:base__arrow\n \"\n class=${classMap({\n tooltip: true,\n 'tooltip--open': this.open\n })}\n placement=${this.placement}\n distance=${this.distance}\n skidding=${this.skidding}\n flip\n shift\n arrow\n hover-bridge\n >\n ${'' /* Always render slotted content in anchor position - it's always visible */}\n <slot slot=\"anchor\" aria-describedby=\"tooltip\"></slot>\n\n ${'' /* eslint-disable-next-line lit-a11y/accessible-name */}\n <div part=\"body\" id=\"tooltip\" class=\"tooltip__body\" role=\"tooltip\" aria-live=${this.open ? 'polite' : 'off'}>\n <slot name=\"content\">${this.content}</slot>\n </div>\n </syn-popup>\n `;\n }\n}\n\nsetDefaultAnimation('tooltip.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 150, easing: 'ease' }\n});\n\nsetDefaultAnimation('tooltip.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 150, easing: 'ease' }\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAsCvC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EA2DrD,cAAc;AACZ,UAAM;AAvDR,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAY9C,SAAQ,SAAwD;AAG7D,mBAAU;AAMV,qBAYK;AAG2B,oBAAW;AAG3B,oBAAW;AAGK,gBAAO;AAGvB,oBAAW;AAO3B,mBAAU;AA4BtB,SAAQ,aAAa,MAAM;AACzB,UAAI,KAAK,WAAW,OAAO,GAAG;AAC5B,aAAK,KAAK;AAAA,MACZ;AAAA,IACF;AAEA,SAAQ,cAAc,MAAM;AAC1B,UAAI,KAAK,WAAW,OAAO,GAAG;AAC5B,YAAI,KAAK,MAAM;AACb,eAAK,KAAK;AAAA,QACZ,OAAO;AACL,eAAK,KAAK;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAEA,SAAQ,cAAc,MAAM;AAC1B,UAAI,KAAK,WAAW,OAAO,GAAG;AAC5B,aAAK,KAAK;AAAA,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EAAE,MAAM,OAAO,CAAC;AAAA,GA5CP,WA4CS;AAGgB;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA/CvB,WA+CyB;AAGhB;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAlDP,WAkDS;AAOhB;AAAA,EAAX,SAAS;AAAA,GAzDS,WAyDP;AAgFN;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxI1B,WAyIb;AA2CA;AAAA,EADL,MAAM,CAAC,UAAU,WAAW,YAAW,aAAa,UAAU,CAAC;AAAA,GAnL7C,WAoLb;AAQN;AAAA,EADC,MAAM,UAAU;AAAA,GA3LE,WA4LnB;AAiEF,oBAAoB,gBAAgB;AAAA,EAClC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,gBAAgB;AAAA,EAClC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynPrioNav
3
- } from "./chunk.RHL3SPJO.js";
3
+ } from "./chunk.4ZWPK4JG.js";
4
4
 
5
5
  // src/components/prio-nav/prio-nav.ts
6
6
  var prio_nav_default = SynPrioNav;
@@ -9,4 +9,4 @@ SynPrioNav.define("syn-prio-nav");
9
9
  export {
10
10
  prio_nav_default
11
11
  };
12
- //# sourceMappingURL=chunk.UCRA4FZW.js.map
12
+ //# sourceMappingURL=chunk.A2AYJJ7H.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTab
3
- } from "./chunk.FOH4KP4A.js";
3
+ } from "./chunk.VEIXDC5G.js";
4
4
 
5
5
  // src/components/tab/tab.ts
6
6
  var tab_default = SynTab;
@@ -9,4 +9,4 @@ SynTab.define("syn-tab");
9
9
  export {
10
10
  tab_default
11
11
  };
12
- //# sourceMappingURL=chunk.BZMKXI2L.js.map
12
+ //# sourceMappingURL=chunk.AHX2WNRS.js.map
@@ -1,9 +1,6 @@
1
- import {
2
- popup_custom_styles_default
3
- } from "./chunk.36EHOOOO.js";
4
1
  import {
5
2
  popup_styles_default
6
- } from "./chunk.DEJAPNIZ.js";
3
+ } from "./chunk.3334XOIY.js";
7
4
  import {
8
5
  LocalizeController
9
6
  } from "./chunk.QLETXF4A.js";
@@ -12,7 +9,7 @@ import {
12
9
  } from "./chunk.2NT3B5WJ.js";
13
10
  import {
14
11
  SynergyElement
15
- } from "./chunk.V4GFOKBI.js";
12
+ } from "./chunk.IUFTAV2I.js";
16
13
  import {
17
14
  __decorateClass,
18
15
  __spreadProps,
@@ -342,7 +339,7 @@ var SynPopup = class extends SynergyElement {
342
339
  `;
343
340
  }
344
341
  };
345
- SynPopup.styles = [component_styles_default, popup_styles_default, popup_custom_styles_default];
342
+ SynPopup.styles = [component_styles_default, popup_styles_default];
346
343
  __decorateClass([
347
344
  query(".popup")
348
345
  ], SynPopup.prototype, "popup", 2);
@@ -426,4 +423,4 @@ __decorateClass([
426
423
  export {
427
424
  SynPopup
428
425
  };
429
- //# sourceMappingURL=chunk.GIEAMHSU.js.map
426
+ //# sourceMappingURL=chunk.AOOC5ALQ.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/popup/popup.component.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from '@floating-ui/dom';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { offsetParent } from 'composed-offset-position';\nimport { property, query } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './popup.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nconst SUPPORTS_POPOVER = globalThis?.HTMLElement?.prototype.hasOwnProperty('popover');\n\nexport interface VirtualElement {\n getBoundingClientRect: () => DOMRect;\n contextElement?: Element;\n}\n\nfunction isVirtualElement(e: unknown): e is VirtualElement {\n return (\n e !== null &&\n typeof e === 'object' &&\n 'getBoundingClientRect' in e &&\n ('contextElement' in e ? e.contextElement instanceof Element : true)\n );\n}\n\n/**\n * @summary Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-popup--docs\n * @status stable\n * @since 2.0\n *\n * @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive\n * operations in your listener or consider debouncing it.\n *\n * @slot - The popup's content.\n * @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the\n * `anchor` attribute or property instead.\n *\n * @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are\n * assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and\n * maybe a border or box shadow.\n * @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.\n * @csspart hover-bridge - The hover bridge element. Only available when the `hover-bridge` option is enabled.\n *\n * @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`\n * attribute is used.\n * @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.\n * @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n * @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n */\nexport default class SynPopup extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n private anchorEl: Element | VirtualElement | null;\n private cleanup: ReturnType<typeof autoUpdate> | undefined;\n private readonly localize = new LocalizeController(this);\n\n /** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */\n @query('.popup') popup: HTMLElement;\n @query('.popup__arrow') private arrowEl: HTMLElement;\n\n /**\n * The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor\n * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the\n * `anchor` slot instead.\n */\n @property() anchor: Element | string | VirtualElement;\n\n /**\n * Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\n * down and the popup will be hidden.\n */\n @property({ type: Boolean, reflect: true }) active = false;\n\n /**\n * The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\n * panel inside of the viewport.\n */\n @property({ reflect: true }) placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /** The distance in pixels from which to offset the panel away from its anchor. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its anchor. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n * `--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n * `::part(arrow)` in your stylesheet.\n */\n @property({ type: Boolean }) arrow = false;\n\n /**\n * The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\n * anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\n * align the arrow to the start, end, or center of the popover instead.\n */\n @property({ attribute: 'arrow-placement' }) arrowPlacement: 'start' | 'end' | 'center' | 'anchor' = 'anchor';\n\n /**\n * The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\n * this will prevent it from overflowing the corners.\n */\n @property({ attribute: 'arrow-padding', type: Number }) arrowPadding = 10;\n\n /**\n * When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n * `flipFallbackPlacements` to further configure how the fallback placement is determined.\n */\n @property({ type: Boolean }) flip = false;\n\n /**\n * If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\n * string of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\n * fallback strategy will be used instead.\n * */\n @property({\n attribute: 'flip-fallback-placements',\n converter: {\n fromAttribute: (value: string) => {\n return value\n .split(' ')\n .map(p => p.trim())\n .filter(p => p !== '');\n },\n toAttribute: (value: []) => {\n return value.join(' ');\n }\n }\n })\n flipFallbackPlacements = '';\n\n /**\n * When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\n * the popup should be positioned using the best available fit based on available space or as it was initially\n * preferred.\n */\n @property({ attribute: 'flip-fallback-strategy' }) flipFallbackStrategy: 'best-fit' | 'initial' = 'best-fit';\n\n /**\n * The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) flipBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the flip behavior will occur. */\n @property({ attribute: 'flip-padding', type: Number }) flipPadding = 0;\n\n /** Moves the popup along the axis to keep it in view when clipped. */\n @property({ type: Boolean }) shift = false;\n\n /**\n * The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) shiftBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the shift behavior will occur. */\n @property({ attribute: 'shift-padding', type: Number }) shiftPadding = 0;\n\n /** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */\n @property({ attribute: 'auto-size' }) autoSize: 'horizontal' | 'vertical' | 'both';\n\n /** Syncs the popup's width or height to that of the anchor element. */\n @property() sync: 'width' | 'height' | 'both';\n\n /**\n * The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) autoSizeBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */\n @property({ attribute: 'auto-size-padding', type: Number }) autoSizePadding = 0;\n\n /**\n * When a gap exists between the anchor and the popup element, this option will add a \"hover bridge\" that fills the\n * gap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane\n * because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is\n * active.\n */\n @property({ attribute: 'hover-bridge', type: Boolean }) hoverBridge = false;\n\n async connectedCallback() {\n super.connectedCallback();\n\n // Start the positioner after the first update\n await this.updateComplete;\n this.start();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.stop();\n }\n\n async updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n // Start or stop the positioner when active changes\n if (changedProps.has('active')) {\n if (this.active) {\n this.start();\n } else {\n this.stop();\n }\n }\n\n // Update the anchor when anchor changes\n if (changedProps.has('anchor')) {\n this.handleAnchorChange();\n }\n\n // All other properties will trigger a reposition when active\n if (this.active) {\n await this.updateComplete;\n this.reposition();\n }\n }\n\n private async handleAnchorChange() {\n await this.stop();\n\n if (this.anchor && typeof this.anchor === 'string') {\n // Locate the anchor by id\n const root = this.getRootNode() as Document | ShadowRoot;\n this.anchorEl = root.getElementById(this.anchor);\n } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {\n // Use the anchor's reference\n this.anchorEl = this.anchor;\n } else {\n // Look for a slotted anchor\n this.anchorEl = this.querySelector<HTMLElement>('[slot=\"anchor\"]');\n }\n\n // If the anchor is a <slot>, we'll use the first assigned element as the target since slots use `display: contents`\n // and positioning can't be calculated on them\n if (this.anchorEl instanceof HTMLSlotElement) {\n this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0] as HTMLElement;\n }\n\n // If the anchor is valid, start it up\n if (this.anchorEl && this.active) {\n this.start();\n }\n }\n\n private start() {\n // We can't start the positioner without an anchor or when the popup is inactive\n if (!this.anchorEl || !this.active) {\n return;\n }\n\n if (SUPPORTS_POPOVER) {\n this.popup.showPopover?.();\n }\n\n this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n this.reposition();\n });\n }\n\n private async stop(): Promise<void> {\n return new Promise(resolve => {\n if (SUPPORTS_POPOVER) {\n // #1041 In some testing frameworks the disconnectedCallback is called too early so this.popup is not yet available\n this.popup?.hidePopover?.();\n }\n if (this.cleanup) {\n this.cleanup();\n this.cleanup = undefined;\n this.removeAttribute('data-current-placement');\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n requestAnimationFrame(() => resolve());\n } else {\n resolve();\n }\n });\n }\n\n /** Forces the popup to recalculate and reposition itself. */\n reposition() {\n // Nothing to do if the popup is inactive or the anchor doesn't exist\n if (!this.active || !this.anchorEl) {\n return;\n }\n\n //\n // NOTE: Floating UI middlewares are order dependent: https://floating-ui.com/docs/middleware\n //\n const middleware = [\n // The offset middleware goes first\n offset({ mainAxis: this.distance, crossAxis: this.skidding })\n ];\n\n // First we sync width/height\n if (this.sync) {\n middleware.push(\n size({\n apply: ({ rects }) => {\n const syncWidth = this.sync === 'width' || this.sync === 'both';\n const syncHeight = this.sync === 'height' || this.sync === 'both';\n this.popup.style.width = syncWidth ? `${rects.reference.width}px` : '';\n this.popup.style.height = syncHeight ? `${rects.reference.height}px` : '';\n }\n })\n );\n } else {\n // Cleanup styles if we're not matching width/height\n this.popup.style.width = '';\n this.popup.style.height = '';\n }\n\n // Then we flip\n if (this.flip) {\n middleware.push(\n flip({\n boundary: this.flipBoundary,\n // @ts-expect-error - We're converting a string attribute to an array here\n fallbackPlacements: this.flipFallbackPlacements,\n fallbackStrategy: this.flipFallbackStrategy === 'best-fit' ? 'bestFit' : 'initialPlacement',\n padding: this.flipPadding\n })\n );\n }\n\n // Then we shift\n if (this.shift) {\n middleware.push(\n shift({\n boundary: this.shiftBoundary,\n padding: this.shiftPadding\n })\n );\n }\n\n // Now we adjust the size as needed\n if (this.autoSize) {\n middleware.push(\n size({\n boundary: this.autoSizeBoundary,\n padding: this.autoSizePadding,\n apply: ({ availableWidth, availableHeight }) => {\n if (this.autoSize === 'vertical' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-height', `${availableHeight}px`);\n } else {\n this.style.removeProperty('--auto-size-available-height');\n }\n\n if (this.autoSize === 'horizontal' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-width', `${availableWidth}px`);\n } else {\n this.style.removeProperty('--auto-size-available-width');\n }\n }\n })\n );\n } else {\n // Cleanup styles if we're no longer using auto-size\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n }\n\n // Finally, we add an arrow\n if (this.arrow) {\n middleware.push(\n arrow({\n element: this.arrowEl,\n padding: this.arrowPadding\n })\n );\n }\n\n //\n // Use custom positioning logic if the strategy is absolute. Otherwise, fall back to the default logic.\n //\n // More info: https://github.com/shoelace-style/shoelace/issues/1135\n //\n const getOffsetParent =\n SUPPORTS_POPOVER\n ? (element: Element) => platform.getOffsetParent(element, offsetParent)\n : platform.getOffsetParent;\n\n computePosition(this.anchorEl, this.popup, {\n placement: this.placement,\n middleware,\n strategy: SUPPORTS_POPOVER ? 'absolute' : 'fixed',\n platform: {\n ...platform,\n getOffsetParent\n }\n }).then(({ x, y, middlewareData, placement }) => {\n //\n // Even though we have our own localization utility, it uses different heuristics to determine RTL. Because of\n // that, we'll use the same approach that Floating UI uses.\n //\n // Source: https://github.com/floating-ui/floating-ui/blob/cb3b6ab07f95275730d3e6e46c702f8d4908b55c/packages/dom/src/utils/getDocumentRect.ts#L31\n //\n const isRtl = this.localize.dir() === 'rtl';\n const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[placement.split('-')[0]]!;\n\n this.setAttribute('data-current-placement', placement);\n\n Object.assign(this.popup.style, {\n left: `${x}px`,\n top: `${y}px`\n });\n\n if (this.arrow) {\n const arrowX = middlewareData.arrow!.x;\n const arrowY = middlewareData.arrow!.y;\n let top = '';\n let right = '';\n let bottom = '';\n let left = '';\n\n if (this.arrowPlacement === 'start') {\n // Start\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n top = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? value : '';\n left = isRtl ? '' : value;\n } else if (this.arrowPlacement === 'end') {\n // End\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? '' : value;\n left = isRtl ? value : '';\n bottom = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n } else if (this.arrowPlacement === 'center') {\n // Center\n left = typeof arrowX === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n top = typeof arrowY === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n } else {\n // Anchor (default)\n left = typeof arrowX === 'number' ? `${arrowX}px` : '';\n top = typeof arrowY === 'number' ? `${arrowY}px` : '';\n }\n\n Object.assign(this.arrowEl.style, {\n top,\n right,\n bottom,\n left,\n [staticSide]: 'calc(var(--arrow-size-diagonal) * -1)'\n });\n }\n });\n\n // Wait until the new position is drawn before updating the hover bridge, otherwise it can get out of sync\n requestAnimationFrame(() => this.updateHoverBridge());\n\n this.emit('syn-reposition');\n }\n\n private updateHoverBridge = () => {\n if (this.hoverBridge && this.anchorEl) {\n const anchorRect = this.anchorEl.getBoundingClientRect();\n const popupRect = this.popup.getBoundingClientRect();\n const isVertical = this.placement.includes('top') || this.placement.includes('bottom');\n let topLeftX = 0;\n let topLeftY = 0;\n let topRightX = 0;\n let topRightY = 0;\n let bottomLeftX = 0;\n let bottomLeftY = 0;\n let bottomRightX = 0;\n let bottomRightY = 0;\n\n if (isVertical) {\n if (anchorRect.top < popupRect.top) {\n // Anchor is above\n topLeftX = anchorRect.left;\n topLeftY = anchorRect.bottom;\n topRightX = anchorRect.right;\n topRightY = anchorRect.bottom;\n\n bottomLeftX = popupRect.left;\n bottomLeftY = popupRect.top;\n bottomRightX = popupRect.right;\n bottomRightY = popupRect.top;\n } else {\n // Anchor is below\n topLeftX = popupRect.left;\n topLeftY = popupRect.bottom;\n topRightX = popupRect.right;\n topRightY = popupRect.bottom;\n\n bottomLeftX = anchorRect.left;\n bottomLeftY = anchorRect.top;\n bottomRightX = anchorRect.right;\n bottomRightY = anchorRect.top;\n }\n } else {\n if (anchorRect.left < popupRect.left) {\n // Anchor is on the left\n topLeftX = anchorRect.right;\n topLeftY = anchorRect.top;\n topRightX = popupRect.left;\n topRightY = popupRect.top;\n\n bottomLeftX = anchorRect.right;\n bottomLeftY = anchorRect.bottom;\n bottomRightX = popupRect.left;\n bottomRightY = popupRect.bottom;\n } else {\n // Anchor is on the right\n topLeftX = popupRect.right;\n topLeftY = popupRect.top;\n topRightX = anchorRect.left;\n topRightY = anchorRect.top;\n\n bottomLeftX = popupRect.right;\n bottomLeftY = popupRect.bottom;\n bottomRightX = anchorRect.left;\n bottomRightY = anchorRect.bottom;\n }\n }\n\n this.style.setProperty('--hover-bridge-top-left-x', `${topLeftX}px`);\n this.style.setProperty('--hover-bridge-top-left-y', `${topLeftY}px`);\n this.style.setProperty('--hover-bridge-top-right-x', `${topRightX}px`);\n this.style.setProperty('--hover-bridge-top-right-y', `${topRightY}px`);\n this.style.setProperty('--hover-bridge-bottom-left-x', `${bottomLeftX}px`);\n this.style.setProperty('--hover-bridge-bottom-left-y', `${bottomLeftY}px`);\n this.style.setProperty('--hover-bridge-bottom-right-x', `${bottomRightX}px`);\n this.style.setProperty('--hover-bridge-bottom-right-y', `${bottomRightY}px`);\n }\n };\n\n render() {\n return html`\n <slot name=\"anchor\" @slotchange=${this.handleAnchorChange}></slot>\n\n <span\n part=\"hover-bridge\"\n class=${classMap({\n 'popup-hover-bridge': true,\n 'popup-hover-bridge--visible': this.hoverBridge && this.active\n })}\n ></span>\n\n <div\n part=\"popup\"\n popover=${ifDefined(SUPPORTS_POPOVER ? 'manual' : undefined)}\n class=${classMap({\n popup: true,\n 'popup--active': this.active,\n 'popup--fixed': !SUPPORTS_POPOVER,\n 'popup--has-arrow': this.arrow\n })}\n >\n <slot></slot>\n ${this.arrow ? html`<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>` : ''}\n </div>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AACA,SAAS,OAAO,YAAY,iBAAiB,MAAM,QAAQ,UAAU,OAAO,YAAY;AACxF,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,oBAAoB;AAC7B,SAAS,UAAU,aAAa;AAPhC;AAaA,IAAM,oBAAmB,8CAAY,gBAAZ,mBAAyB,UAAU,eAAe;AAO3E,SAAS,iBAAiB,GAAiC;AACzD,SACE,MAAM,QACN,OAAO,MAAM,YACb,2BAA2B,MAC1B,oBAAoB,IAAI,EAAE,0BAA0B,UAAU;AAEnE;AA+BA,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAKE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAiBX,kBAAS;AAMxB,qBAYZ;AAGW,oBAAW;AAGX,oBAAW;AAOV,iBAAQ;AAOO,0BAAwD;AAM5C,wBAAe;AAM1C,gBAAO;AAqBpC,kCAAyB;AAO0B,gCAA+C;AAU3C,uBAAc;AAGxC,iBAAQ;AAUmB,wBAAe;AAgBX,2BAAkB;AAQtB,uBAAc;AAkRtE,SAAQ,oBAAoB,MAAM;AAChC,UAAI,KAAK,eAAe,KAAK,UAAU;AACrC,cAAM,aAAa,KAAK,SAAS,sBAAsB;AACvD,cAAM,YAAY,KAAK,MAAM,sBAAsB;AACn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