@synergy-design-system/components 2.30.1 → 2.30.3

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 (369) hide show
  1. package/dist/chunks/{chunk.5PKVCNHM.js → chunk.2BF2ZBSM.js} +8 -8
  2. package/dist/chunks/chunk.2BF2ZBSM.js.map +7 -0
  3. package/dist/chunks/{chunk.SZ73NMRJ.js → chunk.2NS2E3LJ.js} +2 -2
  4. package/dist/chunks/{chunk.DG6GXAVF.js → chunk.2W4MHJAM.js} +6 -6
  5. package/dist/chunks/chunk.2W4MHJAM.js.map +7 -0
  6. package/dist/chunks/{chunk.3TOKEYJ6.js → chunk.3EPDSEI7.js} +2 -2
  7. package/dist/chunks/{chunk.2X3APD3V.js → chunk.3OUFLG7V.js} +6 -6
  8. package/dist/chunks/chunk.3OUFLG7V.js.map +7 -0
  9. package/dist/chunks/{chunk.WASTXK4A.js → chunk.3QPOD3RO.js} +6 -6
  10. package/dist/chunks/chunk.3QPOD3RO.js.map +7 -0
  11. package/dist/chunks/{chunk.QOP6ET4B.js → chunk.3TECDOBS.js} +2 -2
  12. package/dist/chunks/{chunk.JCJ64TPZ.js → chunk.43UZR7JA.js} +2 -2
  13. package/dist/chunks/{chunk.UTPP6KE2.js → chunk.45RYQJWS.js} +2 -2
  14. package/dist/chunks/{chunk.AQHRP3JF.js → chunk.4FYUNOAF.js} +2 -2
  15. package/dist/chunks/{chunk.2GXRGBN3.js → chunk.4KUAEC3S.js} +2 -2
  16. package/dist/chunks/{chunk.GAN4SEH5.js → chunk.4XC7NAJH.js} +2 -2
  17. package/dist/chunks/{chunk.QJPMVHQX.js → chunk.5U2JN5LA.js} +2 -2
  18. package/dist/chunks/chunk.5U2JN5LA.js.map +7 -0
  19. package/dist/chunks/{chunk.BMR7V4GF.js → chunk.67BZVLOD.js} +2 -2
  20. package/dist/chunks/{chunk.UTJJJQMA.js → chunk.6GBQX53P.js} +2 -2
  21. package/dist/chunks/{chunk.NHGNW7PA.js → chunk.6HKWYUE5.js} +6 -6
  22. package/dist/chunks/chunk.6HKWYUE5.js.map +7 -0
  23. package/dist/chunks/{chunk.USSHF6CO.js → chunk.7PPS4IJJ.js} +2 -2
  24. package/dist/chunks/{chunk.KLZ5NK2C.js → chunk.7YYNY2ZX.js} +2 -2
  25. package/dist/chunks/{chunk.FHND52A3.js → chunk.A77V4OPP.js} +3 -3
  26. package/dist/chunks/chunk.A77V4OPP.js.map +7 -0
  27. package/dist/chunks/{chunk.HWNTLXRL.js → chunk.ARJFVRBM.js} +3 -3
  28. package/dist/chunks/chunk.ARJFVRBM.js.map +7 -0
  29. package/dist/chunks/{chunk.IZBTM55D.js → chunk.BG6L74VC.js} +2 -2
  30. package/dist/chunks/{chunk.2RAC47FN.js → chunk.BXAD2FTL.js} +2 -2
  31. package/dist/chunks/chunk.BXAD2FTL.js.map +7 -0
  32. package/dist/chunks/{chunk.2RXN2SCD.js → chunk.C4JBMUTM.js} +6 -6
  33. package/dist/chunks/chunk.C4JBMUTM.js.map +7 -0
  34. package/dist/chunks/{chunk.JP4QSX7M.js → chunk.CFUIAMHI.js} +2 -2
  35. package/dist/chunks/{chunk.RAU2GK6I.js → chunk.CXRCFXZR.js} +8 -8
  36. package/dist/chunks/chunk.CXRCFXZR.js.map +7 -0
  37. package/dist/chunks/{chunk.U3CL2TPE.js → chunk.CZG2SMYG.js} +2 -2
  38. package/dist/chunks/{chunk.762G3PEJ.js → chunk.D3UJRRO6.js} +6 -6
  39. package/dist/chunks/chunk.D3UJRRO6.js.map +7 -0
  40. package/dist/chunks/{chunk.5ZRFAVKG.js → chunk.DCDK3EXG.js} +2 -2
  41. package/dist/chunks/{chunk.SFIQJMJV.js → chunk.DMB7Z2ZQ.js} +2 -2
  42. package/dist/chunks/{chunk.YSRREAXX.js → chunk.E5IDSSSD.js} +3 -3
  43. package/dist/chunks/{chunk.YSRREAXX.js.map → chunk.E5IDSSSD.js.map} +1 -1
  44. package/dist/chunks/{chunk.FITEZWTQ.js → chunk.FA4T7QQM.js} +2 -2
  45. package/dist/chunks/{chunk.FITEZWTQ.js.map → chunk.FA4T7QQM.js.map} +1 -1
  46. package/dist/chunks/{chunk.X3CFZAHW.js → chunk.FQYBA7T7.js} +2 -2
  47. package/dist/chunks/{chunk.X3CFZAHW.js.map → chunk.FQYBA7T7.js.map} +1 -1
  48. package/dist/chunks/{chunk.532L4VKN.js → chunk.FT3M2BTH.js} +2 -2
  49. package/dist/chunks/{chunk.SWCGPDHW.js → chunk.FULJSSFR.js} +2 -2
  50. package/dist/chunks/{chunk.TX2PDRBM.js → chunk.G2JP7HEH.js} +7 -7
  51. package/dist/chunks/chunk.G2JP7HEH.js.map +7 -0
  52. package/dist/chunks/{chunk.WA7EKCMV.js → chunk.G2TWKVVP.js} +2 -2
  53. package/dist/chunks/{chunk.BOBXDVSO.js → chunk.GA2HU6II.js} +6 -6
  54. package/dist/chunks/chunk.GA2HU6II.js.map +7 -0
  55. package/dist/chunks/{chunk.AJW2D63L.js → chunk.GE3DTZIM.js} +2 -2
  56. package/dist/chunks/{chunk.NUYZREPZ.js → chunk.GEV5TYRZ.js} +4 -4
  57. package/dist/chunks/{chunk.R3THZVHP.js → chunk.IC3XQ2EB.js} +2 -2
  58. package/dist/chunks/chunk.IC3XQ2EB.js.map +7 -0
  59. package/dist/chunks/{chunk.PRJ3FJGJ.js → chunk.ICGTNBIJ.js} +3 -3
  60. package/dist/chunks/{chunk.QX2JOWGH.js → chunk.IGLOIZ2W.js} +5 -5
  61. package/dist/chunks/chunk.IGLOIZ2W.js.map +7 -0
  62. package/dist/chunks/{chunk.ZDYMO5XT.js → chunk.IHQEDOAX.js} +2 -2
  63. package/dist/chunks/{chunk.FGAEUKVN.js → chunk.IUY4D7U3.js} +2 -2
  64. package/dist/chunks/{chunk.B3D627OD.js → chunk.JIELXBUU.js} +2 -2
  65. package/dist/chunks/chunk.JIELXBUU.js.map +7 -0
  66. package/dist/chunks/{chunk.E6OUQFF4.js → chunk.JU7GGWDE.js} +2 -2
  67. package/dist/chunks/{chunk.K36FG4W2.js → chunk.K4EBTKOS.js} +9 -9
  68. package/dist/chunks/chunk.K4EBTKOS.js.map +7 -0
  69. package/dist/chunks/{chunk.GYSYAXFI.js → chunk.KSWTSMEX.js} +8 -8
  70. package/dist/chunks/chunk.KSWTSMEX.js.map +7 -0
  71. package/dist/chunks/{chunk.A4FID4OH.js → chunk.KUQ6N3FH.js} +2 -2
  72. package/dist/chunks/{chunk.BRFSQ5UO.js → chunk.KWMZ63WC.js} +2 -2
  73. package/dist/chunks/chunk.KWMZ63WC.js.map +7 -0
  74. package/dist/chunks/{chunk.T4IRZQY2.js → chunk.KXDWM25J.js} +2 -2
  75. package/dist/chunks/{chunk.T4IRZQY2.js.map → chunk.KXDWM25J.js.map} +1 -1
  76. package/dist/chunks/{chunk.GOYGD46T.js → chunk.MVBAJTOF.js} +7 -7
  77. package/dist/chunks/{chunk.6ZCQFVOC.js → chunk.NC57MFGC.js} +2 -2
  78. package/dist/chunks/{chunk.3ZXMZDAX.js → chunk.NECBJEDG.js} +2 -2
  79. package/dist/chunks/{chunk.E4QLMZHL.js → chunk.NFEMXBDN.js} +2 -2
  80. package/dist/chunks/{chunk.YU2PZ5EK.js → chunk.NGIPAGC4.js} +2 -2
  81. package/dist/chunks/{chunk.UKUUCUD7.js → chunk.NLYJFOZZ.js} +6 -6
  82. package/dist/chunks/{chunk.RYQHOPIY.js → chunk.NTSN7KDQ.js} +2 -2
  83. package/dist/chunks/chunk.NTSN7KDQ.js.map +7 -0
  84. package/dist/chunks/{chunk.AMIQC3O7.js → chunk.OLRA37R5.js} +1 -1
  85. package/dist/chunks/{chunk.AMIQC3O7.js.map → chunk.OLRA37R5.js.map} +1 -1
  86. package/dist/chunks/{chunk.6AKLDG33.js → chunk.OPSPWNFD.js} +2 -2
  87. package/dist/chunks/{chunk.6AKLDG33.js.map → chunk.OPSPWNFD.js.map} +1 -1
  88. package/dist/chunks/{chunk.PDDQXWQR.js → chunk.OSJ3WQFD.js} +2 -2
  89. package/dist/chunks/{chunk.Y5RGUISY.js → chunk.PCHN7UNX.js} +2 -2
  90. package/dist/chunks/{chunk.Y5RGUISY.js.map → chunk.PCHN7UNX.js.map} +1 -1
  91. package/dist/chunks/{chunk.CILTVCBQ.js → chunk.PJF3RP7Q.js} +7 -7
  92. package/dist/chunks/chunk.PJF3RP7Q.js.map +7 -0
  93. package/dist/chunks/{chunk.IQGYOOWV.js → chunk.PLRHUWDP.js} +2 -2
  94. package/dist/chunks/{chunk.EFJD5CZ6.js → chunk.PQGDR57N.js} +2 -2
  95. package/dist/chunks/{chunk.D36G42T7.js → chunk.PZSENCZE.js} +7 -7
  96. package/dist/chunks/chunk.PZSENCZE.js.map +7 -0
  97. package/dist/chunks/{chunk.NDIBJ6JI.js → chunk.QCGPJAQF.js} +6 -6
  98. package/dist/chunks/chunk.QCGPJAQF.js.map +7 -0
  99. package/dist/chunks/{chunk.ZUQIXELH.js → chunk.QFS6KGDB.js} +2 -2
  100. package/dist/chunks/{chunk.QHPOPKTJ.js → chunk.R2CZGOPZ.js} +6 -6
  101. package/dist/chunks/chunk.R2CZGOPZ.js.map +7 -0
  102. package/dist/chunks/{chunk.HLQWQZQU.js → chunk.R3VV2JKB.js} +5 -5
  103. package/dist/chunks/chunk.R3VV2JKB.js.map +7 -0
  104. package/dist/chunks/{chunk.FJSVF4A2.js → chunk.RCM2ZMZA.js} +2 -2
  105. package/dist/chunks/{chunk.D6UYGOT5.js → chunk.RM54PPPR.js} +2 -2
  106. package/dist/chunks/{chunk.3A4IZ7IM.js → chunk.RMDAJPSI.js} +9 -9
  107. package/dist/chunks/chunk.RMDAJPSI.js.map +7 -0
  108. package/dist/chunks/{chunk.UOY56ORY.js → chunk.RVEOI5HV.js} +2 -2
  109. package/dist/chunks/{chunk.UKYLRMT2.js → chunk.RXJYIHMS.js} +2 -2
  110. package/dist/chunks/{chunk.JQADLKNT.js → chunk.S3JOQPQH.js} +8 -8
  111. package/dist/chunks/chunk.S3JOQPQH.js.map +7 -0
  112. package/dist/chunks/{chunk.6OVQULWC.js → chunk.SFKDMJXY.js} +8 -8
  113. package/dist/chunks/{chunk.6OVQULWC.js.map → chunk.SFKDMJXY.js.map} +1 -1
  114. package/dist/chunks/{chunk.MDKD6I5N.js → chunk.SV2YRXTN.js} +9 -9
  115. package/dist/chunks/chunk.SV2YRXTN.js.map +7 -0
  116. package/dist/chunks/{chunk.3JKMMYX3.js → chunk.THRS75O2.js} +2 -2
  117. package/dist/chunks/{chunk.5WZOBIEX.js → chunk.TYEVZCIC.js} +9 -9
  118. package/dist/chunks/{chunk.KBBZYAPL.js → chunk.UMJHRTE5.js} +9 -9
  119. package/dist/chunks/chunk.UMJHRTE5.js.map +7 -0
  120. package/dist/chunks/{chunk.EEMCXA5G.js → chunk.VHXR6VJU.js} +2 -2
  121. package/dist/chunks/{chunk.GTFKE4JG.js → chunk.VP73GNNH.js} +2 -2
  122. package/dist/chunks/{chunk.AP55JRQ3.js → chunk.VXYIZUDW.js} +2 -2
  123. package/dist/chunks/{chunk.QVRCVDGA.js → chunk.WJR72FH5.js} +2 -2
  124. package/dist/chunks/{chunk.XA4EOA25.js → chunk.WPIWR6GG.js} +8 -8
  125. package/dist/chunks/{chunk.HI3CSD4O.js → chunk.WTUKJGCV.js} +2 -2
  126. package/dist/chunks/{chunk.63LZB375.js → chunk.WZSMJ2WD.js} +2 -2
  127. package/dist/chunks/chunk.WZSMJ2WD.js.map +7 -0
  128. package/dist/chunks/{chunk.2HPEABF4.js → chunk.XHQTVQU6.js} +2 -2
  129. package/dist/chunks/{chunk.QQ26YV6J.js → chunk.XV6MIV3R.js} +7 -7
  130. package/dist/chunks/chunk.XV6MIV3R.js.map +7 -0
  131. package/dist/chunks/{chunk.IXSDGMHS.js → chunk.YJ5O6SUI.js} +2 -2
  132. package/dist/chunks/{chunk.574KKJH2.js → chunk.YTCOW742.js} +2 -2
  133. package/dist/chunks/{chunk.M6OBVNV5.js → chunk.ZFDM6C6S.js} +2 -2
  134. package/dist/chunks/{chunk.OJFEU2LY.js → chunk.ZHBRF2U3.js} +2 -2
  135. package/dist/chunks/{chunk.OJFEU2LY.js.map → chunk.ZHBRF2U3.js.map} +1 -1
  136. package/dist/chunks/{chunk.WIZJDLTC.js → chunk.ZHGCYOV2.js} +2 -2
  137. package/dist/chunks/chunk.ZHGCYOV2.js.map +7 -0
  138. package/dist/chunks/{chunk.46CKMKX5.js → chunk.ZJ43C76S.js} +3 -3
  139. package/dist/chunks/chunk.ZJ43C76S.js.map +7 -0
  140. package/dist/chunks/{chunk.NPAGHPJZ.js → chunk.ZOLZENHH.js} +2 -2
  141. package/dist/components/accordion/accordion.component.js +4 -4
  142. package/dist/components/accordion/accordion.js +5 -5
  143. package/dist/components/alert/alert.component.d.ts +1 -1
  144. package/dist/components/alert/alert.component.js +8 -8
  145. package/dist/components/alert/alert.js +9 -9
  146. package/dist/components/badge/badge.component.d.ts +1 -1
  147. package/dist/components/badge/badge.component.js +4 -4
  148. package/dist/components/badge/badge.js +5 -5
  149. package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  150. package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
  151. package/dist/components/breadcrumb/breadcrumb.js +8 -8
  152. package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +1 -1
  153. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  154. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  155. package/dist/components/button/button.component.d.ts +1 -1
  156. package/dist/components/button/button.component.js +7 -7
  157. package/dist/components/button/button.js +8 -8
  158. package/dist/components/button-group/button-group.component.d.ts +1 -1
  159. package/dist/components/button-group/button-group.component.js +2 -2
  160. package/dist/components/button-group/button-group.js +3 -3
  161. package/dist/components/card/card.component.d.ts +1 -1
  162. package/dist/components/card/card.component.js +2 -2
  163. package/dist/components/card/card.js +3 -3
  164. package/dist/components/checkbox/checkbox.component.d.ts +1 -1
  165. package/dist/components/checkbox/checkbox.component.js +5 -5
  166. package/dist/components/checkbox/checkbox.js +6 -6
  167. package/dist/components/combobox/combobox.component.js +8 -8
  168. package/dist/components/combobox/combobox.js +9 -9
  169. package/dist/components/details/details.component.d.ts +1 -1
  170. package/dist/components/details/details.component.js +5 -5
  171. package/dist/components/details/details.js +6 -6
  172. package/dist/components/dialog/dialog.component.d.ts +1 -1
  173. package/dist/components/dialog/dialog.component.js +6 -6
  174. package/dist/components/dialog/dialog.js +7 -7
  175. package/dist/components/divider/divider.component.d.ts +1 -1
  176. package/dist/components/divider/divider.component.js +2 -2
  177. package/dist/components/divider/divider.js +3 -3
  178. package/dist/components/drawer/drawer.component.d.ts +1 -1
  179. package/dist/components/drawer/drawer.component.js +6 -6
  180. package/dist/components/drawer/drawer.js +7 -7
  181. package/dist/components/dropdown/dropdown.component.d.ts +1 -1
  182. package/dist/components/dropdown/dropdown.component.js +4 -4
  183. package/dist/components/dropdown/dropdown.js +5 -5
  184. package/dist/components/file/file.component.d.ts +1 -0
  185. package/dist/components/file/file.component.js +8 -8
  186. package/dist/components/file/file.js +9 -9
  187. package/dist/components/header/header.component.js +6 -6
  188. package/dist/components/header/header.js +7 -7
  189. package/dist/components/icon/icon.component.d.ts +1 -1
  190. package/dist/components/icon/icon.component.js +2 -2
  191. package/dist/components/icon/icon.js +3 -3
  192. package/dist/components/icon-button/icon-button.component.d.ts +1 -1
  193. package/dist/components/icon-button/icon-button.component.js +4 -4
  194. package/dist/components/icon-button/icon-button.js +5 -5
  195. package/dist/components/input/input.component.d.ts +1 -1
  196. package/dist/components/input/input.component.js +7 -7
  197. package/dist/components/input/input.js +8 -8
  198. package/dist/components/menu/menu.component.d.ts +1 -1
  199. package/dist/components/menu/menu.component.js +2 -2
  200. package/dist/components/menu/menu.js +3 -3
  201. package/dist/components/menu-item/menu-item.component.d.ts +1 -1
  202. package/dist/components/menu-item/menu-item.component.js +7 -7
  203. package/dist/components/menu-item/menu-item.js +8 -8
  204. package/dist/components/menu-label/menu-label.component.d.ts +1 -1
  205. package/dist/components/menu-label/menu-label.component.js +3 -3
  206. package/dist/components/menu-label/menu-label.js +4 -4
  207. package/dist/components/nav-item/nav-item.component.d.ts +1 -0
  208. package/dist/components/nav-item/nav-item.component.js +3 -3
  209. package/dist/components/nav-item/nav-item.js +4 -4
  210. package/dist/components/optgroup/optgroup.component.js +3 -3
  211. package/dist/components/optgroup/optgroup.js +4 -4
  212. package/dist/components/option/option.component.d.ts +1 -1
  213. package/dist/components/option/option.component.js +5 -5
  214. package/dist/components/option/option.js +6 -6
  215. package/dist/components/popup/popup.component.d.ts +1 -1
  216. package/dist/components/popup/popup.component.js +2 -2
  217. package/dist/components/popup/popup.js +3 -3
  218. package/dist/components/prio-nav/prio-nav.component.d.ts +1 -0
  219. package/dist/components/prio-nav/prio-nav.component.js +10 -10
  220. package/dist/components/prio-nav/prio-nav.js +11 -11
  221. package/dist/components/progress-bar/progress-bar.component.d.ts +1 -1
  222. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  223. package/dist/components/progress-bar/progress-bar.js +3 -3
  224. package/dist/components/progress-ring/progress-ring.component.d.ts +1 -1
  225. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  226. package/dist/components/progress-ring/progress-ring.js +3 -3
  227. package/dist/components/radio/radio.component.d.ts +1 -1
  228. package/dist/components/radio/radio.component.js +4 -4
  229. package/dist/components/radio/radio.js +5 -5
  230. package/dist/components/radio-button/radio-button.component.d.ts +1 -1
  231. package/dist/components/radio-button/radio-button.component.js +3 -3
  232. package/dist/components/radio-button/radio-button.js +4 -4
  233. package/dist/components/radio-group/radio-group.component.d.ts +1 -1
  234. package/dist/components/radio-group/radio-group.component.js +5 -5
  235. package/dist/components/radio-group/radio-group.js +6 -6
  236. package/dist/components/range/range.component.js +6 -6
  237. package/dist/components/range/range.js +7 -7
  238. package/dist/components/range-tick/range-tick.component.d.ts +1 -1
  239. package/dist/components/range-tick/range-tick.component.js +2 -2
  240. package/dist/components/range-tick/range-tick.js +3 -3
  241. package/dist/components/resize-observer/resize-observer.component.d.ts +1 -1
  242. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  243. package/dist/components/select/select.component.d.ts +1 -1
  244. package/dist/components/select/select.component.js +9 -9
  245. package/dist/components/select/select.js +10 -10
  246. package/dist/components/side-nav/side-nav.component.js +8 -8
  247. package/dist/components/side-nav/side-nav.js +9 -9
  248. package/dist/components/spinner/spinner.component.d.ts +1 -1
  249. package/dist/components/spinner/spinner.component.js +2 -2
  250. package/dist/components/spinner/spinner.js +3 -3
  251. package/dist/components/switch/switch.component.d.ts +1 -1
  252. package/dist/components/switch/switch.component.js +4 -4
  253. package/dist/components/switch/switch.js +5 -5
  254. package/dist/components/tab/tab.component.d.ts +1 -1
  255. package/dist/components/tab/tab.component.js +6 -6
  256. package/dist/components/tab/tab.js +7 -7
  257. package/dist/components/tab-group/tab-group.component.d.ts +1 -1
  258. package/dist/components/tab-group/tab-group.component.js +7 -7
  259. package/dist/components/tab-group/tab-group.js +8 -8
  260. package/dist/components/tab-panel/tab-panel.component.d.ts +1 -1
  261. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  262. package/dist/components/tab-panel/tab-panel.js +3 -3
  263. package/dist/components/tag/tag.component.d.ts +1 -1
  264. package/dist/components/tag/tag.component.js +6 -6
  265. package/dist/components/tag/tag.js +7 -7
  266. package/dist/components/textarea/textarea.component.d.ts +1 -1
  267. package/dist/components/textarea/textarea.component.js +4 -4
  268. package/dist/components/textarea/textarea.js +5 -5
  269. package/dist/components/tooltip/tooltip.component.d.ts +1 -1
  270. package/dist/components/tooltip/tooltip.component.js +4 -4
  271. package/dist/components/tooltip/tooltip.js +5 -5
  272. package/dist/components/validate/utility.js +2 -2
  273. package/dist/components/validate/validate.component.d.ts +1 -1
  274. package/dist/components/validate/validate.component.js +10 -10
  275. package/dist/components/validate/validate.js +11 -11
  276. package/dist/custom-elements.json +93 -85
  277. package/dist/styles/index.css +1 -1
  278. package/dist/synergy.js +109 -109
  279. package/dist/utilities/form.js +2 -2
  280. package/dist/vscode.html-custom-data.json +48 -48
  281. package/package.json +1 -1
  282. package/dist/chunks/chunk.2RAC47FN.js.map +0 -7
  283. package/dist/chunks/chunk.2RXN2SCD.js.map +0 -7
  284. package/dist/chunks/chunk.2X3APD3V.js.map +0 -7
  285. package/dist/chunks/chunk.3A4IZ7IM.js.map +0 -7
  286. package/dist/chunks/chunk.46CKMKX5.js.map +0 -7
  287. package/dist/chunks/chunk.5PKVCNHM.js.map +0 -7
  288. package/dist/chunks/chunk.63LZB375.js.map +0 -7
  289. package/dist/chunks/chunk.762G3PEJ.js.map +0 -7
  290. package/dist/chunks/chunk.B3D627OD.js.map +0 -7
  291. package/dist/chunks/chunk.BOBXDVSO.js.map +0 -7
  292. package/dist/chunks/chunk.BRFSQ5UO.js.map +0 -7
  293. package/dist/chunks/chunk.CILTVCBQ.js.map +0 -7
  294. package/dist/chunks/chunk.D36G42T7.js.map +0 -7
  295. package/dist/chunks/chunk.DG6GXAVF.js.map +0 -7
  296. package/dist/chunks/chunk.FHND52A3.js.map +0 -7
  297. package/dist/chunks/chunk.GYSYAXFI.js.map +0 -7
  298. package/dist/chunks/chunk.HLQWQZQU.js.map +0 -7
  299. package/dist/chunks/chunk.HWNTLXRL.js.map +0 -7
  300. package/dist/chunks/chunk.JQADLKNT.js.map +0 -7
  301. package/dist/chunks/chunk.K36FG4W2.js.map +0 -7
  302. package/dist/chunks/chunk.KBBZYAPL.js.map +0 -7
  303. package/dist/chunks/chunk.MDKD6I5N.js.map +0 -7
  304. package/dist/chunks/chunk.NDIBJ6JI.js.map +0 -7
  305. package/dist/chunks/chunk.NHGNW7PA.js.map +0 -7
  306. package/dist/chunks/chunk.QHPOPKTJ.js.map +0 -7
  307. package/dist/chunks/chunk.QJPMVHQX.js.map +0 -7
  308. package/dist/chunks/chunk.QQ26YV6J.js.map +0 -7
  309. package/dist/chunks/chunk.QX2JOWGH.js.map +0 -7
  310. package/dist/chunks/chunk.R3THZVHP.js.map +0 -7
  311. package/dist/chunks/chunk.RAU2GK6I.js.map +0 -7
  312. package/dist/chunks/chunk.RYQHOPIY.js.map +0 -7
  313. package/dist/chunks/chunk.TX2PDRBM.js.map +0 -7
  314. package/dist/chunks/chunk.WASTXK4A.js.map +0 -7
  315. package/dist/chunks/chunk.WIZJDLTC.js.map +0 -7
  316. /package/dist/chunks/{chunk.SZ73NMRJ.js.map → chunk.2NS2E3LJ.js.map} +0 -0
  317. /package/dist/chunks/{chunk.3TOKEYJ6.js.map → chunk.3EPDSEI7.js.map} +0 -0
  318. /package/dist/chunks/{chunk.QOP6ET4B.js.map → chunk.3TECDOBS.js.map} +0 -0
  319. /package/dist/chunks/{chunk.JCJ64TPZ.js.map → chunk.43UZR7JA.js.map} +0 -0
  320. /package/dist/chunks/{chunk.UTPP6KE2.js.map → chunk.45RYQJWS.js.map} +0 -0
  321. /package/dist/chunks/{chunk.AQHRP3JF.js.map → chunk.4FYUNOAF.js.map} +0 -0
  322. /package/dist/chunks/{chunk.2GXRGBN3.js.map → chunk.4KUAEC3S.js.map} +0 -0
  323. /package/dist/chunks/{chunk.GAN4SEH5.js.map → chunk.4XC7NAJH.js.map} +0 -0
  324. /package/dist/chunks/{chunk.BMR7V4GF.js.map → chunk.67BZVLOD.js.map} +0 -0
  325. /package/dist/chunks/{chunk.UTJJJQMA.js.map → chunk.6GBQX53P.js.map} +0 -0
  326. /package/dist/chunks/{chunk.USSHF6CO.js.map → chunk.7PPS4IJJ.js.map} +0 -0
  327. /package/dist/chunks/{chunk.KLZ5NK2C.js.map → chunk.7YYNY2ZX.js.map} +0 -0
  328. /package/dist/chunks/{chunk.IZBTM55D.js.map → chunk.BG6L74VC.js.map} +0 -0
  329. /package/dist/chunks/{chunk.JP4QSX7M.js.map → chunk.CFUIAMHI.js.map} +0 -0
  330. /package/dist/chunks/{chunk.U3CL2TPE.js.map → chunk.CZG2SMYG.js.map} +0 -0
  331. /package/dist/chunks/{chunk.5ZRFAVKG.js.map → chunk.DCDK3EXG.js.map} +0 -0
  332. /package/dist/chunks/{chunk.SFIQJMJV.js.map → chunk.DMB7Z2ZQ.js.map} +0 -0
  333. /package/dist/chunks/{chunk.532L4VKN.js.map → chunk.FT3M2BTH.js.map} +0 -0
  334. /package/dist/chunks/{chunk.SWCGPDHW.js.map → chunk.FULJSSFR.js.map} +0 -0
  335. /package/dist/chunks/{chunk.WA7EKCMV.js.map → chunk.G2TWKVVP.js.map} +0 -0
  336. /package/dist/chunks/{chunk.AJW2D63L.js.map → chunk.GE3DTZIM.js.map} +0 -0
  337. /package/dist/chunks/{chunk.NUYZREPZ.js.map → chunk.GEV5TYRZ.js.map} +0 -0
  338. /package/dist/chunks/{chunk.PRJ3FJGJ.js.map → chunk.ICGTNBIJ.js.map} +0 -0
  339. /package/dist/chunks/{chunk.ZDYMO5XT.js.map → chunk.IHQEDOAX.js.map} +0 -0
  340. /package/dist/chunks/{chunk.FGAEUKVN.js.map → chunk.IUY4D7U3.js.map} +0 -0
  341. /package/dist/chunks/{chunk.E6OUQFF4.js.map → chunk.JU7GGWDE.js.map} +0 -0
  342. /package/dist/chunks/{chunk.A4FID4OH.js.map → chunk.KUQ6N3FH.js.map} +0 -0
  343. /package/dist/chunks/{chunk.GOYGD46T.js.map → chunk.MVBAJTOF.js.map} +0 -0
  344. /package/dist/chunks/{chunk.6ZCQFVOC.js.map → chunk.NC57MFGC.js.map} +0 -0
  345. /package/dist/chunks/{chunk.3ZXMZDAX.js.map → chunk.NECBJEDG.js.map} +0 -0
  346. /package/dist/chunks/{chunk.E4QLMZHL.js.map → chunk.NFEMXBDN.js.map} +0 -0
  347. /package/dist/chunks/{chunk.YU2PZ5EK.js.map → chunk.NGIPAGC4.js.map} +0 -0
  348. /package/dist/chunks/{chunk.UKUUCUD7.js.map → chunk.NLYJFOZZ.js.map} +0 -0
  349. /package/dist/chunks/{chunk.PDDQXWQR.js.map → chunk.OSJ3WQFD.js.map} +0 -0
  350. /package/dist/chunks/{chunk.IQGYOOWV.js.map → chunk.PLRHUWDP.js.map} +0 -0
  351. /package/dist/chunks/{chunk.EFJD5CZ6.js.map → chunk.PQGDR57N.js.map} +0 -0
  352. /package/dist/chunks/{chunk.ZUQIXELH.js.map → chunk.QFS6KGDB.js.map} +0 -0
  353. /package/dist/chunks/{chunk.FJSVF4A2.js.map → chunk.RCM2ZMZA.js.map} +0 -0
  354. /package/dist/chunks/{chunk.D6UYGOT5.js.map → chunk.RM54PPPR.js.map} +0 -0
  355. /package/dist/chunks/{chunk.UOY56ORY.js.map → chunk.RVEOI5HV.js.map} +0 -0
  356. /package/dist/chunks/{chunk.UKYLRMT2.js.map → chunk.RXJYIHMS.js.map} +0 -0
  357. /package/dist/chunks/{chunk.3JKMMYX3.js.map → chunk.THRS75O2.js.map} +0 -0
  358. /package/dist/chunks/{chunk.5WZOBIEX.js.map → chunk.TYEVZCIC.js.map} +0 -0
  359. /package/dist/chunks/{chunk.EEMCXA5G.js.map → chunk.VHXR6VJU.js.map} +0 -0
  360. /package/dist/chunks/{chunk.GTFKE4JG.js.map → chunk.VP73GNNH.js.map} +0 -0
  361. /package/dist/chunks/{chunk.AP55JRQ3.js.map → chunk.VXYIZUDW.js.map} +0 -0
  362. /package/dist/chunks/{chunk.QVRCVDGA.js.map → chunk.WJR72FH5.js.map} +0 -0
  363. /package/dist/chunks/{chunk.XA4EOA25.js.map → chunk.WPIWR6GG.js.map} +0 -0
  364. /package/dist/chunks/{chunk.HI3CSD4O.js.map → chunk.WTUKJGCV.js.map} +0 -0
  365. /package/dist/chunks/{chunk.2HPEABF4.js.map → chunk.XHQTVQU6.js.map} +0 -0
  366. /package/dist/chunks/{chunk.IXSDGMHS.js.map → chunk.YJ5O6SUI.js.map} +0 -0
  367. /package/dist/chunks/{chunk.574KKJH2.js.map → chunk.YTCOW742.js.map} +0 -0
  368. /package/dist/chunks/{chunk.M6OBVNV5.js.map → chunk.ZFDM6C6S.js.map} +0 -0
  369. /package/dist/chunks/{chunk.NPAGHPJZ.js.map → chunk.ZOLZENHH.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/button/button.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { FormControlController, validValidityState } from '../../internal/form.js';\nimport { HasSlotController, getTextContent } from '../../internal/slot.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynSpinner from '../spinner/spinner.component.js';\nimport styles from './button.styles.js';\nimport customStyles from './button.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Buttons represent actions that are available to the user.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-button--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-spinner\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @slot - The button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @csspart base - The component's base wrapper.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The button's label.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart caret - The button's caret icon, an `<syn-icon>` element.\n * @csspart spinner - The spinner that shows when the button is in the loading state.\n */\n@enableDefaultSettings('SynButton')\nexport default class SynButton extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-spinner': SynSpinner\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['click']\n });\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.button') button: HTMLButtonElement | HTMLLinkElement;\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n @state() private iconOnly = false;\n\n @state() private hasFocus = false;\n @state() invalid = false;\n @property({ reflect: true }) title = ''; // make reactive to pass through\n\n /** The button's theme variant. */\n @property({ reflect: true }) variant: 'filled' | 'outline' | 'text' = 'outline';\n\n /** The button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */\n @property({ type: Boolean, reflect: true }) caret = false;\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the button in a loading state. */\n @property({ type: Boolean, reflect: true }) loading = false;\n\n /**\n * The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n * `<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n */\n @property() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\n * This attribute is ignored when `href` is present.\n */\n @property() name = '';\n\n /**\n * The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\n * button is the submitter. This attribute is ignored when `href` is present.\n */\n @property() value = '';\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href = '';\n\n /** Tells the browser where to open the link. Only used when `href` is present. */\n @property() target: '_blank' | '_parent' | '_self' | '_top';\n\n /**\n * When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\n * default is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\n * specific tab/window, this will prevent that from working correctly. You can remove or change the default value by\n * setting the attribute to an empty string or a value of your choice, respectively.\n */\n @property() rel = 'noreferrer noopener';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is present. */\n @property() download?: string;\n\n /**\n * The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\n * value of this attribute must be an id of a form in the same document or shadow root as the button.\n */\n @property() form: string;\n\n /** Used to override the form owner's `action` attribute. */\n @property({ attribute: 'formaction' }) formAction: string;\n\n /** Used to override the form owner's `enctype` attribute. */\n @property({ attribute: 'formenctype' })\n formEnctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';\n\n /** Used to override the form owner's `method` attribute. */\n @property({ attribute: 'formmethod' }) formMethod: 'post' | 'get';\n\n /** Used to override the form owner's `novalidate` attribute. */\n @property({ attribute: 'formnovalidate', type: Boolean }) formNoValidate: boolean;\n\n /** Used to override the form owner's `target` attribute. */\n @property({ attribute: 'formtarget' }) formTarget: '_self' | '_blank' | '_parent' | '_top' | string;\n\n /** Gets the validity state object */\n get validity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validity;\n }\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validationMessage;\n }\n\n return '';\n }\n\n firstUpdated() {\n if (this.isButton()) {\n this.formControlController.updateValidity();\n }\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick() {\n if (this.type === 'submit') {\n this.formControlController.submit(this);\n }\n\n if (this.type === 'reset') {\n this.formControlController.reset(this);\n }\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private isButton() {\n return this.href ? false : true;\n }\n\n private isLink() {\n return this.href ? true : false;\n }\n\n private handleSlotChange() {\n const textContent = getTextContent(this.defaultSlot).trim();\n const assignedElements = this.defaultSlot.assignedElements({flatten: true})\n const iconOnlyElement = assignedElements.length === 1 && assignedElements[0].tagName.toLowerCase() === 'syn-icon';\n\n this.iconOnly = iconOnlyElement && textContent === '';\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n if (this.isButton()) {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n }\n\n /** Simulates a click on the button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the button. */\n blur() {\n this.button.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).checkValidity();\n }\n\n return true;\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).reportValidity();\n }\n\n return true;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n if (this.isButton()) {\n (this.button as HTMLButtonElement).setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n }\n\n render() {\n const isLink = this.isLink();\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable lit/binding-positions */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n button: true,\n 'button--primary': true,\n 'button--text': this.variant === 'text',\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n 'button--caret': this.caret,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--filled': this.variant === 'filled',\n 'button--outline': this.variant === 'outline',\n 'button--rtl': this.localize.dir() === 'rtl',\n 'button--has-label': this.hasSlotController.test('[default]'),\n 'button--has-prefix': this.hasSlotController.test('prefix'),\n 'button--has-suffix': this.hasSlotController.test('suffix')\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : this.type)}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(isLink ? undefined : this.name)}\n value=${ifDefined(isLink ? undefined : this.value)}\n href=${ifDefined(isLink && !this.disabled ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink ? this.rel : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @invalid=${this.isButton() ? this.handleInvalid : null}\n @click=${this.handleClick}\n >\n <slot name=\"prefix\" part=\"prefix\" class=\"button__prefix\"></slot>\n <slot part=\"label\" class=${classMap({ 'button__label': true, 'button__icon-only': this.iconOnly })} @slotchange=${this.handleSlotChange}></slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"button__suffix\"></slot>\n ${\n this.caret ? html` <syn-icon part=\"caret\" class=\"button__caret\" library=\"system\" name=\"caret\"></syn-icon> ` : ''\n }\n ${this.loading ? html`<syn-spinner part=\"spinner\"></syn-spinner>` : ''}\n </${tag}>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable lit/binding-positions */\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAGzB,SAAS,MAAM,eAAe;AAC9B,SAAS,iBAAiB;AAE1B,SAAS,UAAU,OAAO,aAAa;AAqCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAOE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,OAAO;AAAA,IAC/B,CAAC;AAED,SAAiB,oB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EP;AAGA;AAAA,EAAX,SAAS;AAAA,GAvES,UAuEP;AAMA;AAAA,EAAX,SAAS;AAAA,GA7ES,UA6EP;AAG2B;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GAhFlB,UAgFoB;AAIvC;AAAA,EADC,SAAS,EAAE,WAAW,cAAc,CAAC;AAAA,GAnFnB,UAoFnB;AAGuC;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GAvFlB,UAuFoB;AAGmB;AAAA,EAAzD,SAAS,EAAE,WAAW,kBAAkB,MAAM,QAAQ,CAAC;AAAA,GA1FrC,UA0FuC;AAGnB;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GA7FlB,UA6FoB;AAoEvC;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhK9B,UAiKnB;AAjKmB,YAArB;AAAA,EADC,sBAAsB,WAAW;AAAA,GACb;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynPopup
3
- } from "./chunk.QJPMVHQX.js";
3
+ } from "./chunk.5U2JN5LA.js";
4
4
 
5
5
  // src/components/popup/popup.ts
6
6
  var popup_default = SynPopup;
@@ -9,4 +9,4 @@ SynPopup.define("syn-popup");
9
9
  export {
10
10
  popup_default
11
11
  };
12
- //# sourceMappingURL=chunk.EEMCXA5G.js.map
12
+ //# sourceMappingURL=chunk.VHXR6VJU.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenuItem
3
- } from "./chunk.JQADLKNT.js";
3
+ } from "./chunk.S3JOQPQH.js";
4
4
 
5
5
  // src/components/menu-item/menu-item.ts
6
6
  var menu_item_default = SynMenuItem;
@@ -9,4 +9,4 @@ SynMenuItem.define("syn-menu-item");
9
9
  export {
10
10
  menu_item_default
11
11
  };
12
- //# sourceMappingURL=chunk.GTFKE4JG.js.map
12
+ //# sourceMappingURL=chunk.VP73GNNH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynCard
3
- } from "./chunk.2RAC47FN.js";
3
+ } from "./chunk.BXAD2FTL.js";
4
4
 
5
5
  // src/components/card/card.ts
6
6
  var card_default = SynCard;
@@ -9,4 +9,4 @@ SynCard.define("syn-card");
9
9
  export {
10
10
  card_default
11
11
  };
12
- //# sourceMappingURL=chunk.AP55JRQ3.js.map
12
+ //# sourceMappingURL=chunk.VXYIZUDW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTag
3
- } from "./chunk.HWNTLXRL.js";
3
+ } from "./chunk.ARJFVRBM.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.QVRCVDGA.js.map
12
+ //# sourceMappingURL=chunk.WJR72FH5.js.map
@@ -1,18 +1,18 @@
1
- import {
2
- watch
3
- } from "./chunk.74IOULXM.js";
4
- import {
5
- accordion_styles_default
6
- } from "./chunk.WNUZ6LH4.js";
7
1
  import {
8
2
  enableDefaultSettings
9
3
  } from "./chunk.NUIJATJY.js";
4
+ import {
5
+ watch
6
+ } from "./chunk.74IOULXM.js";
10
7
  import {
11
8
  component_styles_default
12
9
  } from "./chunk.NLYVOJGK.js";
13
10
  import {
14
11
  SynergyElement
15
- } from "./chunk.FITEZWTQ.js";
12
+ } from "./chunk.FA4T7QQM.js";
13
+ import {
14
+ accordion_styles_default
15
+ } from "./chunk.WNUZ6LH4.js";
16
16
  import {
17
17
  __decorateClass
18
18
  } from "./chunk.2GFK6XTO.js";
@@ -111,4 +111,4 @@ SynAccordion = __decorateClass([
111
111
  export {
112
112
  SynAccordion
113
113
  };
114
- //# sourceMappingURL=chunk.XA4EOA25.js.map
114
+ //# sourceMappingURL=chunk.WPIWR6GG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynOption
3
- } from "./chunk.WASTXK4A.js";
3
+ } from "./chunk.3QPOD3RO.js";
4
4
 
5
5
  // src/components/option/option.ts
6
6
  var option_default = SynOption;
@@ -9,4 +9,4 @@ SynOption.define("syn-option");
9
9
  export {
10
10
  option_default
11
11
  };
12
- //# sourceMappingURL=chunk.HI3CSD4O.js.map
12
+ //# sourceMappingURL=chunk.WTUKJGCV.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.NLYVOJGK.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.FITEZWTQ.js";
18
+ } from "./chunk.FA4T7QQM.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.2GFK6XTO.js";
@@ -120,4 +120,4 @@ __decorateClass([
120
120
  export {
121
121
  SynBreadcrumbItem
122
122
  };
123
- //# sourceMappingURL=chunk.63LZB375.js.map
123
+ //# sourceMappingURL=chunk.WZSMJ2WD.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/breadcrumb-item/breadcrumb-item.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './breadcrumb-item.styles.js';\nimport customStyles from './breadcrumb-item.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-breadcrumb-item--docs\n * @status stable\n * @since 2.0\n *\n * @slot - The breadcrumb item's label.\n * @slot prefix - An optional prefix, usually an icon or icon button.\n * @slot suffix - An optional suffix, usually an icon or icon button.\n * @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If\n * you want to change it for all items in the group, set the separator on `<syn-breadcrumb>` instead.\n *\n * @csspart base - The component's base wrapper.\n * @csspart label - The breadcrumb item's label.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart separator - The container that wraps the separator.\n */\nexport default class SynBreadcrumbItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private readonly hasSlotController = new HasSlotController(this, 'prefix', 'suffix');\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n @state() private renderType: 'button' | 'link' | 'dropdown' = 'button';\n\n /**\n * Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\n * internally. When unset, a button will be rendered instead.\n */\n @property() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @property() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** The `rel` attribute to use on the link. Only used when `href` is set. */\n @property() rel = 'noreferrer noopener';\n\n private setRenderType() {\n const hasDropdown =\n this.defaultSlot.assignedElements({ flatten: true }).filter(i => i.tagName.toLowerCase() === 'syn-dropdown')\n .length > 0;\n\n if (this.href) {\n this.renderType = 'link';\n return;\n }\n\n if (hasDropdown) {\n this.renderType = 'dropdown';\n return;\n }\n\n this.renderType = 'button';\n }\n\n @watch('href', { waitUntilFirstUpdate: true })\n hrefChanged() {\n this.setRenderType();\n }\n\n handleSlotChange() {\n this.setRenderType();\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n 'breadcrumb-item': true,\n 'breadcrumb-item--has-prefix': this.hasSlotController.test('prefix'),\n 'breadcrumb-item--has-suffix': this.hasSlotController.test('suffix')\n })}\n >\n <span part=\"prefix\" class=\"breadcrumb-item__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n ${this.renderType === 'link'\n ? html`\n <a\n part=\"label\"\n class=\"breadcrumb-item__label breadcrumb-item__label--link\"\n href=\"${this.href!}\"\n target=\"${ifDefined(this.target ? this.target : undefined)}\"\n rel=${ifDefined(this.target ? this.rel : undefined)}\n >\n <slot @slotchange=${this.handleSlotChange}></slot>\n </a>\n `\n : ''}\n ${this.renderType === 'button'\n ? html`\n <button part=\"label\" type=\"button\" class=\"breadcrumb-item__label breadcrumb-item__label--button\">\n <slot @slotchange=${this.handleSlotChange}></slot>\n </button>\n `\n : ''}\n ${this.renderType === 'dropdown'\n ? html`\n <div part=\"label\" class=\"breadcrumb-item__label breadcrumb-item__label--drop-down\">\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `\n : ''}\n\n <span part=\"suffix\" class=\"breadcrumb-item__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n\n <span part=\"separator\" class=\"breadcrumb-item__separator\" aria-hidden=\"true\">\n <slot name=\"separator\"></slot>\n </span>\n </div>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,aAAa;AA0BvC,IAAqB,oBAArB,cAA+C,eAAe;AAAA,EAA9D;AAAA;AAGE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,UAAU,QAAQ;AAI1E,SAAQ,aAA6C;AAYlD,eAAM;AAAA;AAAA,EAEV,gBAAgB;AACtB,UAAM,cACJ,KAAK,YAAY,iBAAiB,EAAE,SAAS,KAAK,CAAC,EAAE,OAAO,OAAK,EAAE,QAAQ,YAAY,MAAM,cAAc,EACxG,SAAS;AAEd,QAAI,KAAK,MAAM;AACb,WAAK,aAAa;AAClB;AAAA,IACF;AAEA,QAAI,aAAa;AACf,WAAK,aAAa;AAClB;AAAA,IACF;AAEA,SAAK,aAAa;AAAA,EACpB;AAAA,EAGA,cAAc;AACZ,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,mB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} from "./chunk.UMJHRTE5.js";
4
4
 
5
5
  // src/components/button/button.ts
6
6
  var button_default = SynButton;
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
9
9
  export {
10
10
  button_default
11
11
  };
12
- //# sourceMappingURL=chunk.2HPEABF4.js.map
12
+ //# sourceMappingURL=chunk.XHQTVQU6.js.map
@@ -6,22 +6,22 @@ import {
6
6
  isBlurEvent,
7
7
  isInvalidEvent,
8
8
  normalizeEventAttribute
9
- } from "./chunk.D6UYGOT5.js";
9
+ } from "./chunk.RM54PPPR.js";
10
10
  import {
11
11
  SynAlert
12
- } from "./chunk.3A4IZ7IM.js";
13
- import {
14
- watch
15
- } from "./chunk.74IOULXM.js";
12
+ } from "./chunk.RMDAJPSI.js";
16
13
  import {
17
14
  enableDefaultSettings
18
15
  } from "./chunk.NUIJATJY.js";
16
+ import {
17
+ watch
18
+ } from "./chunk.74IOULXM.js";
19
19
  import {
20
20
  component_styles_default
21
21
  } from "./chunk.NLYVOJGK.js";
22
22
  import {
23
23
  SynergyElement
24
- } from "./chunk.FITEZWTQ.js";
24
+ } from "./chunk.FA4T7QQM.js";
25
25
  import {
26
26
  __decorateClass
27
27
  } from "./chunk.2GFK6XTO.js";
@@ -330,4 +330,4 @@ SynValidate = __decorateClass([
330
330
  export {
331
331
  SynValidate
332
332
  };
333
- //# sourceMappingURL=chunk.QQ26YV6J.js.map
333
+ //# sourceMappingURL=chunk.XV6MIV3R.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/validate/validate.component.ts"],
4
+ "sourcesContent": ["import type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit';\nimport { property, queryAssignedElements, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { watch } from '../../internal/watch.js';\nimport SynAlert from '../alert/alert.component.js';\nimport {\n getEventNameForElement,\n isBlurEvent,\n isInvalidEvent,\n normalizeEventAttribute,\n} from './utility.js';\nimport styles from './validate.styles.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs\n * @dependency syn-alert\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n */\n@enableDefaultSettings('SynValidate')\nexport default class SynValidate extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-alert': SynAlert,\n };\n\n controller = new AbortController();\n\n observer: MutationObserver;\n\n @queryAssignedElements() private slottedChildren: HTMLElement[];\n\n @state() validationMessage = '';\n\n @state() eagerFirstMount = true;\n\n @state() isInternalTriggeredInvalid = false;\n\n @state() isValid = true;\n\n /**\n * The variant that should be used to show validation alerts.\n *\n * The following variants are supported:\n * - **native** (default): Uses the native browser validation, usually a browser tooltip.\n * - **inline**: Show the validation message underneath the element, using a `<syn-alert>`\n */\n @property({ reflect: true }) variant: 'native' | 'inline' = 'native';\n\n /** Do not show the error icon when using the inline variant validation */\n @property({ attribute: 'hide-icon', reflect: true, type: Boolean }) hideIcon = false;\n\n /**\n * Defines the events that trigger the validation.\n * `invalid` will always automatically be included.\n * You may also use the `live` keyword to validate on every input change.\n * `live` will make sure to listen to the `invalid`, `input` and `blur` events.\n *\n * Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.\n *\n * @example ```html\n * <!-- Validate on invalid and change events (invalid, change) -->\n * <syn-validate on=\"invalid change\"></syn-validate>\n *\n * <!-- Validate on live events (invalid, blur, input)-->\n * <syn-validate on=\"live\"></syn-validate>\n *\n * <!-- Validate on live and custom events (invalid, blur, input, focus, change) -->\n * <syn-validate on=\"live focus change\"></syn-validate>\n * ```\n */\n @property({ reflect: true }) on: string = '';\n\n /**\n * Custom validation message to be displayed when the input is invalid.\n * Will override the default browser validation message.\n * Set to an empty string to reset the validation message.\n */\n @property({ attribute: 'custom-validation-message', type: String }) customValidationMessage = '';\n\n /**\n * Set this to true to validate the input immediately when it is rendered.\n * Best used with a `variant` of `inline`.\n * When setting eager, the input will not be focused automatically.\n *\n * When using a `variant` of `native` the browser will focus\n * the last eager field as it is using a tooltip.\n * In this case it is better to just provide one eager field.\n */\n @property({ type: Boolean }) eager = false;\n\n // Automatically refresh all event listeners when the on property changes.\n @watch('on', { waitUntilFirstUpdate: true })\n handleListenerChange() {\n this.updateEvents();\n }\n\n @watch('eager', { waitUntilFirstUpdate: false })\n async handleEagerChange() {\n if (this.eager) {\n const input = this.getInput();\n await this.updateComplete;\n input?.reportValidity();\n this.eagerFirstMount = true;\n } else {\n this.eagerFirstMount = false;\n }\n }\n\n // Synchronize the validation message on the wrapped input with the custom message\n @watch('customValidationMessage', { waitUntilFirstUpdate: true })\n handleCustomValidationMessageChange() {\n const input = this.getInput();\n if (input) {\n this.setCustomValidationMessage(input);\n this.setValidationMessage(input);\n }\n }\n\n /**\n * Returns the validity state of the input component.\n * `true` for valid and `false` for invalid.\n */\n getValidity() {\n return this.isValid;\n }\n\n /**\n * Get the input element to validate. Defined as the first slotted element\n * @returns The input element or undefined if not found\n */\n private getInput() {\n const input = this.slottedChildren[0];\n return input ? input as HTMLInputElement : undefined;\n }\n\n /**\n * Get the event names to listen for.\n * If the input is a synergy element, will use syn- prefixes.\n * @returns The event names to listen for\n */\n // eslint-disable-next-line complexity\n private getUsedEventNames() {\n const input = this.getInput();\n\n // If there is no input, skip before doing any harm\n if (!input) {\n return [];\n }\n\n // Make sure to always use an array of events\n // This is needed because on may be a special value like \"live\"\n const on = normalizeEventAttribute(this.on);\n\n // Filter makes sure to remove empty values, e.g.\n // <syn-validate on=\"\"></syn-validate>\n const [...events] = on.filter(Boolean);\n\n // Make sure to always have an invalid event\n if (!events.includes('invalid')) {\n events.push('invalid');\n }\n\n // Special handling for the live keyword:\n // live always means on input and blur\n if (events.includes('live')) {\n events.push('input');\n events.push('blur');\n }\n\n // Make sure to remove duplicated events and the live property\n // and map the events to the correct event names\n return Array.from(new Set(\n events\n .filter(e => e !== 'live')\n .map(e => getEventNameForElement(input, e)),\n ));\n }\n\n /**\n * Update the events on the input element.\n */\n private updateEvents() {\n this.controller.abort();\n this.controller = new AbortController();\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const events = this.getUsedEventNames();\n events.forEach(eventName => {\n input.addEventListener(eventName, this.validate, {\n capture: isInvalidEvent(eventName),\n signal: this.controller.signal,\n });\n });\n\n // If the change event is not included,\n // make sure to attach a custom listener that resets the validation message\n // This is needed as the custom message may be set on change\n const usedChangeEvent = getEventNameForElement(input, 'change');\n if (!events.includes(usedChangeEvent)) {\n input.addEventListener(usedChangeEvent, this.internalRevalidate, {\n signal: this.controller.signal,\n });\n }\n }\n\n private setValidationMessage(input: HTMLInputElement) {\n const { customValidationMessage } = this;\n const validationMessage = customValidationMessage || input.validationMessage;\n this.validationMessage = validationMessage;\n }\n\n /**\n * Set the custom validation message to the input. This will make sure to either:\n * - use the custom message if one is set or\n * - use the default message if the custom message is empty\n */\n private setCustomValidationMessage(input: HTMLInputElement) {\n // Set the custom validation message on the input only once, when the customValidationMessage\n // is changed. Otherwise there could be problems with `variant=\"native\"` and `on=\"live\"` or\n // `on=\"blur\"`, because the browser popup will never disappear even if clicking somewhere else.\n input.setCustomValidity(this.customValidationMessage);\n }\n\n /**\n * Set the validation message from the input element\n * @param e The event that was received\n */\n private internalRevalidate = (e: Event) => {\n const input = e.currentTarget as HTMLInputElement;\n if (input.validity?.valid) {\n this.validationMessage = '';\n }\n };\n\n /**\n * Handle the blur event during validation\n */\n // eslint-disable-next-line class-methods-use-this\n private handleFocus(input: HTMLInputElement) {\n const activeElement = document.activeElement! as HTMLInputElement;\n const activeElementIsWrapped = activeElement.closest('syn-validate');\n\n if (!activeElement.validity?.valid && activeElementIsWrapped) {\n // The active element is invalid do not scroll\n return;\n }\n\n input.scrollIntoView({ block: 'nearest' });\n input.focus();\n }\n\n /**\n * Triggers a validation run, showing the validation message if needed.\n */\n // eslint-disable-next-line complexity\n private validate = (e: Event) => {\n // Make sure to stop the validate component from going into an endless cycle of triggering\n if (isInvalidEvent(e.type) && this.variant === 'native' && this.isInternalTriggeredInvalid === true) {\n this.isInternalTriggeredInvalid = false;\n return;\n }\n\n // Make sure to always prevent the invalid event when not using native validation\n if (isInvalidEvent(e.type) && this.variant !== 'native') {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const input = e.currentTarget as HTMLInputElement;\n this.isValid = input.validity?.valid;\n\n // When we are using eager, make sure to skip focus on the first mount\n if (this.eager && this.eagerFirstMount) {\n this.eagerFirstMount = false;\n this.setValidationMessage(input);\n return;\n }\n\n // If the active element that has focus is placed in a validate component,\n // make sure to not loose focus.\n if (!this.isValid && !isBlurEvent(e.type)) {\n this.handleFocus(input);\n }\n\n this.setValidationMessage(input);\n\n // Trigger reportValidity when using native validation, so the browser popup is also shown\n // for other events than `invalid`. All events except the blur event, should trigger this.\n if (!isBlurEvent(e.type) && this.variant === 'native') {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.isInternalTriggeredInvalid = true;\n input.reportValidity();\n });\n }\n };\n\n async firstUpdated(changedProperties: PropertyValues) {\n super.firstUpdated(changedProperties);\n this.updateEvents();\n\n // #713: Make sure to set the custom validation message on mount\n // When we have a custom element, we need to wait for it to be ready!\n const input = this.getInput();\n\n if (this.customValidationMessage) {\n if (input instanceof SynergyElement) {\n await input.updateComplete;\n }\n input?.setCustomValidity(this.customValidationMessage);\n }\n\n // Make sure to run validation on mount if eager is set\n if (this.eager) {\n await this.updateComplete;\n this.isValid = input?.validity?.valid ?? false;\n input?.reportValidity();\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // #717: Make sure to remove to rerun validation when\n // disabled or readonly properties change on the input\n this.observer = new MutationObserver(entries => {\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const hasDisabledOrReadonly = entries\n // Only check for changes on the input element\n .filter(({ target }) => target === input)\n // Check if the input is disabled or readonly\n .every(entry => {\n const target = entry.target as HTMLInputElement;\n return target.hasAttribute('disabled') || target.hasAttribute('readonly');\n });\n\n if (hasDisabledOrReadonly) {\n this.isValid = true;\n this.validationMessage = '';\n } else {\n // When using a synergy element, we need to check the validity after the element is updated,\n // as we cannot rely on the validity state of the element itself.\n // Unfortunately, this depends on used browser :(.\n const waitForPromise = input instanceof SynergyElement\n ? input.updateComplete\n : Promise.resolve();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForPromise.then(() => {\n this.isValid = input?.validity?.valid ?? false;\n this.validationMessage = input?.validationMessage ?? '';\n });\n }\n });\n\n this.observer.observe(this, {\n attributeFilter: ['disabled', 'readonly'],\n attributes: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.controller.abort();\n this?.observer?.disconnect();\n }\n\n private renderInlineValidation() {\n if (this.variant !== 'inline' || !this.validationMessage) {\n return '';\n }\n\n return html`\n <syn-alert\n open\n exportparts=\"base:alert__base,message:alert__message,icon:alert__icon\"\n part=\"alert\"\n variant=\"danger\"\n >\n ${!this.hideIcon\n ? html`<syn-icon slot=\"icon\" name=\"error\" library=\"system\"></syn-icon>`\n : ''\n }\n ${this.validationMessage}\n </syn-alert>\n `;\n }\n\n render() {\n return html`\n <div\n class=\"validate\"\n part=\"base\"\n >\n <slot\n class=\"validate__input-wrapper\"\n part=\"input-wrapper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AAA,GACf;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynAccordion
3
- } from "./chunk.XA4EOA25.js";
3
+ } from "./chunk.WPIWR6GG.js";
4
4
 
5
5
  // src/components/accordion/accordion.ts
6
6
  var accordion_default = SynAccordion;
@@ -9,4 +9,4 @@ SynAccordion.define("syn-accordion");
9
9
  export {
10
10
  accordion_default
11
11
  };
12
- //# sourceMappingURL=chunk.IXSDGMHS.js.map
12
+ //# sourceMappingURL=chunk.YJ5O6SUI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDetails
3
- } from "./chunk.NHGNW7PA.js";
3
+ } from "./chunk.6HKWYUE5.js";
4
4
 
5
5
  // src/components/details/details.ts
6
6
  var details_default = SynDetails;
@@ -9,4 +9,4 @@ SynDetails.define("syn-details");
9
9
  export {
10
10
  details_default
11
11
  };
12
- //# sourceMappingURL=chunk.574KKJH2.js.map
12
+ //# sourceMappingURL=chunk.YTCOW742.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTabPanel
3
- } from "./chunk.X3CFZAHW.js";
3
+ } from "./chunk.FQYBA7T7.js";
4
4
 
5
5
  // src/components/tab-panel/tab-panel.ts
6
6
  var tab_panel_default = SynTabPanel;
@@ -9,4 +9,4 @@ SynTabPanel.define("syn-tab-panel");
9
9
  export {
10
10
  tab_panel_default
11
11
  };
12
- //# sourceMappingURL=chunk.M6OBVNV5.js.map
12
+ //# sourceMappingURL=chunk.ZFDM6C6S.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.NLYVOJGK.js";
13
13
  import {
14
14
  SynergyElement
15
- } from "./chunk.FITEZWTQ.js";
15
+ } from "./chunk.FA4T7QQM.js";
16
16
  import {
17
17
  __decorateClass
18
18
  } from "./chunk.2GFK6XTO.js";
@@ -43,4 +43,4 @@ __decorateClass([
43
43
  export {
44
44
  SynDivider
45
45
  };
46
- //# sourceMappingURL=chunk.OJFEU2LY.js.map
46
+ //# sourceMappingURL=chunk.ZHBRF2U3.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/divider/divider.component.ts"],
4
- "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { property } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './divider.styles.js';\nimport customStyles from './divider.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Dividers are used to visually separate or group elements.\n * @documentation https://synergy.style/components/divider\n * @status stable\n * @since 2.0\n *\n * @cssproperty --color - The color of the divider.\n * @cssproperty --width - The width of the divider.\n * @cssproperty --spacing - The spacing of the divider.\n */\nexport default class SynDivider extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n /** Draws the divider in a vertical orientation. */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'separator');\n }\n\n @watch('vertical')\n handleVerticalChange() {\n this.setAttribute('aria-orientation', this.vertical ? 'vertical' : 'horizontal');\n }\n}\n"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { property } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './divider.styles.js';\nimport customStyles from './divider.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Dividers are used to visually separate or group elements.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-divider--docs\n * @status stable\n * @since 2.0\n *\n * @cssproperty --color - The color of the divider.\n * @cssproperty --width - The width of the divider.\n * @cssproperty --spacing - The spacing of the divider.\n */\nexport default class SynDivider extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n /** Draws the divider in a vertical orientation. */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'separator');\n }\n\n @watch('vertical')\n handleVerticalChange() {\n this.setAttribute('aria-orientation', this.vertical ? 'vertical' : 'horizontal');\n }\n}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAkBzB,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAI8C,oBAAW;AAAA;AAAA,EAEvD,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,aAAa,QAAQ,WAAW;AAAA,EACvC;AAAA,EAGA,uBAAuB;AACrB,SAAK,aAAa,oBAAoB,KAAK,WAAW,aAAa,YAAY;AAAA,EACjF;AACF;AAfqB,WACZ,SAAyB,CAAC,0BAAiB,wBAAQ,6BAAY;AAG1B;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAJvB,WAIyB;AAQ5C;AAAA,EADC,MAAM,UAAU;AAAA,GAXE,WAYnB;",
6
6
  "names": []
7
7
  }
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.NLYVOJGK.js";
13
13
  import {
14
14
  SynergyElement
15
- } from "./chunk.FITEZWTQ.js";
15
+ } from "./chunk.FA4T7QQM.js";
16
16
  import {
17
17
  __decorateClass
18
18
  } from "./chunk.2GFK6XTO.js";
@@ -68,4 +68,4 @@ __decorateClass([
68
68
  export {
69
69
  SynProgressBar
70
70
  };
71
- //# sourceMappingURL=chunk.WIZJDLTC.js.map
71
+ //# sourceMappingURL=chunk.ZHGCYOV2.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/progress-bar/progress-bar.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property } from 'lit/decorators.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './progress-bar.styles.js';\nimport customStyles from './progress-bar.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Progress bars are used to show the status of an ongoing operation.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-progress-bar--docs\n * @status stable\n * @since 2.0\n *\n * @slot - A label to show inside the progress indicator.\n *\n * @csspart base - The component's base wrapper.\n * @csspart indicator - The progress bar's indicator.\n * @csspart label - The progress bar's label.\n *\n * @cssproperty --height - The progress bar's height.\n * @cssproperty --track-color - The color of the track.\n * @cssproperty --indicator-color - The color of the indicator.\n * @cssproperty --label-color - The color of the label.\n * @cssproperty --speed - The speed of the progress bar when in indeterminate state.\n */\nexport default class SynProgressBar extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n private readonly localize = new LocalizeController(this);\n\n /** The current progress as a percentage, 0 to 100. */\n @property({ type: Number, reflect: true }) value = 0;\n\n /** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */\n @property({ type: Boolean, reflect: true }) indeterminate = false;\n\n /** A custom label for assistive devices. */\n @property() label = '';\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n 'progress-bar': true,\n 'progress-bar--indeterminate': this.indeterminate,\n 'progress-bar--rtl': this.localize.dir() === 'rtl'\n })}\n role=\"progressbar\"\n title=${ifDefined(this.title)}\n aria-label=${this.label.length > 0 ? this.label : this.localize.term('progress')}\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow=${this.indeterminate ? 0 : this.value}\n >\n <div part=\"indicator\" class=\"progress-bar__indicator\" style=${styleMap({ width: `${this.value}%` })}>\n ${!this.indeterminate ? html` <slot part=\"label\" class=\"progress-bar__label\"></slot> ` : ''}\n </div>\n </div>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAE1B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AAyBzB,IAAqB,iBAArB,cAA4C,eAAe;AAAA,EAA3D;AAAA;AAEE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAGZ,iBAAQ;AAGP,yBAAgB;AAGhD,iBAAQ;AAAA;AAAA,EAEpB,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,gBAAgB;AAAA,MAChB,+BAA+B,KAAK;AAAA,MACpC,qBAAqB,KAAK,SAAS,IAAI,MAAM;AAAA,IAC/C,CAAC,CAAC;AAAA;AAAA,gBAEM,UAAU,KAAK,KAAK,CAAC;AAAA,qBAChB,KAAK,MAAM,SAAS,IAAI,KAAK,QAAQ,KAAK,SAAS,KAAK,UAAU,CAAC;AAAA;AAAA;AAAA,wBAGhE,KAAK,gBAAgB,IAAI,KAAK,KAAK;AAAA;AAAA,sEAEW,SAAS,EAAE,OAAO,GAAG,KAAK,KAAK,IAAI,CAAC,CAAC;AAAA,YAC/F,CAAC,KAAK,gBAAgB,iEAAiE,EAAE;AAAA;AAAA;AAAA;AAAA,EAInG;AACF;AAnCqB,eACZ,SAAyB,CAAC,0BAAiB,6BAAQ,kCAAY;AAI3B;AAAA,EAA1C,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GALtB,eAKwB;AAGC;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GARvB,eAQyB;AAGhC;AAAA,EAAX,SAAS;AAAA,GAXS,eAWP;",
6
+ "names": []
7
+ }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.SHCZO4KK.js";
4
4
  import {
5
5
  SynDivider
6
- } from "./chunk.OJFEU2LY.js";
6
+ } from "./chunk.ZHBRF2U3.js";
7
7
  import {
8
8
  HasSlotController
9
9
  } from "./chunk.WVVQK5TE.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.NLYVOJGK.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.FITEZWTQ.js";
18
+ } from "./chunk.FA4T7QQM.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.2GFK6XTO.js";
@@ -348,4 +348,4 @@ __decorateClass([
348
348
  export {
349
349
  SynNavItem
350
350
  };
351
- //# sourceMappingURL=chunk.46CKMKX5.js.map
351
+ //# sourceMappingURL=chunk.ZJ43C76S.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/nav-item/nav-item.component.ts"],
4
+ "sourcesContent": ["import { classMap } from 'lit/directives/class-map.js';\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html, literal } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './nav-item.styles.js';\n\n/**\n * @summary Flexible button / link component that can be used to quickly build navigations.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-nav-item--docs\n * Takes one of 3 forms:\n * - button (default),\n * - link (overrides button if a 'href' is provided),\n * - or accordion (overrides all other if 'children' slot is defined).\n *\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n *\n * @event syn-show - Emitted when the navigation item:\n * - has children,\n * - and is clicked while HTML details are hidden.\n *\n * @event syn-hide - Emitted when the navigation item:\n * - has children,\n * - and is clicked while HTML details are shown.\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n *\n * @slot - The navigation item's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n * @slot children - Slot used to provide nested child navigation elements.\n * If provided, details and summary elements will be used.\n * A chevron will be shown on the right side regardless of the chevron property.\n *\n * @csspart base - The component's base wrapper including children.\n * @csspart children - The wrapper that holds the children\n * @csspart content-wrapper - The component's content wrapper.\n * @csspart content - The component's content excluding children.\n * @csspart current-indicator - The indicator used when current is set to true\n * @csspart chevron - The container that wraps the chevron.\n * @csspart details - The details element rendered when there are children available\n * @csspart divider - The components optional top divider.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n *\n * @cssproperty --indentation - Numeric value, indicating the level the item is placed at.\n * @cssproperty --indentation-stepping - The amount of pixels each level will indent.\n * @cssproperty --display-children - Display property of the children. Defaults to \"contents\"\n */\nexport default class SynNavItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'children', 'prefix', 'suffix');\n\n private resizeObserver: ResizeObserver;\n\n private mutationObserver: MutationObserver;\n\n /**\n * The current focus state\n */\n @state() private hasFocus = false;\n\n /**\n * Only the prefix should be displayed\n */\n @state() private showPrefixOnly = false;\n\n /**\n * A nested nav-item is marked as current\n */\n @state() private currentMarkedChild = false;\n\n /**\n * The content area is multiline\n */\n @state() private isMultiLine = false;\n\n /**\n * Reference to the children slot\n */\n @query('slot[name=\"children\"]') childrenSlot: HTMLSlotElement;\n\n /**\n * Reference to the outermost button\n */\n @query('.nav-item') control: HTMLButtonElement | HTMLLinkElement | HTMLElement;\n\n /**\n * The navigation item's href target.\n * If provided, the navigation item will use an anchor tag otherwise it will use a button tag.\n *\n * If the 'children' slot is provided, the navigation item will ignore the 'href' and use\n * accordion behavior.\n */\n @property({ reflect: true, type: String }) href: string;\n\n /** Tells the browser where to open the link. Only used when `href` is present. */\n @property() target: '_blank' | '_parent' | '_self' | '_top';\n\n /**\n * When using `href`, this attribute will map to the underlying link's `rel` attribute.\n * Unlike regular links, the default is `noreferrer noopener` to prevent security exploits.\n *\n * However, if you're using `target` to point to a specific tab/window,\n * this will prevent that from working correctly.\n *\n * You can remove or change the default value by setting the attribute\n * to an empty string or a value of your choice, respectively.\n */\n @property() rel = 'noreferrer noopener';\n\n /*\n * Indicates that the navigation item is currently selected.\n * The aria-current attribute is set to \"page\" on the host if true.\n */\n @property({ reflect: true, type: Boolean }) current = false;\n\n /**\n * Disables the navigation item.\n */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /**\n * The navigation item's orientation.\n */\n @property({ reflect: true, type: Boolean }) horizontal = false;\n\n /**\n * Appends a chevron to the right side of a navigation item.\n * Only used if `horizontal` is false.\n */\n @property({ reflect: true, type: Boolean }) chevron = false;\n\n /**\n * Reflects HTML details element state and allows control from parent.\n * Only used if `horizontal` is false and `children` is defined.\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Toggle to true to show a divider above the element.\n * Only available when horizontal is false.\n */\n @property({ reflect: true, type: Boolean }) divider = false;\n\n private isButton(): boolean {\n return !this.href && !this.hasSlotController.test('children');\n }\n\n private isLink(): boolean {\n return !!this.href && !this.hasSlotController.test('children');\n }\n\n private isAccordion(): boolean {\n return this.hasSlotController.test('children');\n }\n\n // eslint-disable-next-line class-methods-use-this\n private getNavItemChildren(childrenSlot: HTMLSlotElement): SynNavItem[] {\n return Array.from(\n childrenSlot?.assignedElements({\n flatten: true,\n }) as HTMLElement[]\n || [],\n )\n .map(slottedElement => (slottedElement.tagName.toLowerCase() === 'syn-nav-item' ? slottedElement as SynNavItem : Array.from(slottedElement.querySelectorAll<SynNavItem>(':scope > syn-nav-item'))))\n .flat();\n }\n\n private getAllNestedNavItems(childrenSlot: HTMLSlotElement): SynNavItem[] {\n const allNavItems = this.getNavItemChildren(childrenSlot);\n\n const nestedNavItems = allNavItems\n .map(item => item.getAllNestedNavItems(item.childrenSlot))\n .flat();\n\n return allNavItems.concat(nestedNavItems);\n }\n\n private handleCurrentMarkedChild() {\n const sideNav = this.closest('syn-side-nav');\n\n if (!this.open || !!sideNav?.rail) {\n this.currentMarkedChild = this\n .getAllNestedNavItems(this.childrenSlot)\n .some(item => item.current);\n }\n }\n\n private handleClickButton(e: MouseEvent) {\n if (this.disabled) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n\n private handleClickSummary(e: MouseEvent) {\n e.preventDefault();\n e.stopPropagation();\n\n if (this.disabled) return;\n\n if (this.open) {\n this.hideDetails();\n } else {\n this.showDetails();\n }\n }\n\n private hideDetails() {\n this.open = false;\n this.emit('syn-hide', {\n cancelable: true,\n });\n }\n\n private showDetails() {\n this.open = true;\n this.emit('syn-show', {\n cancelable: true,\n });\n }\n\n /**\n * Automatically add the correct level of indentation for sub items if none is provided\n */\n private handleSlotChange() {\n const computedStyle = getComputedStyle(this);\n const lengthStyle = computedStyle.length;\n\n // This workaround is needed for firefox.\n // When the nav-item is used inside a custom-element with a custom-element in it\n // (e.g syn-side-nav with integrated syn-drawer), the getComputedStyle property is not yet there\n // Moving it in the next render cycle works.\n // Probably related to the firefox special behavior. See: https://caniuse.com/mdn-api_window_getcomputedstyle\n if (lengthStyle === 0) {\n setTimeout(() => {\n this.handleSlotChange();\n });\n return;\n }\n\n this.handleCurrentMarkedChild();\n\n // Use the current level of the component\n const level = computedStyle.getPropertyValue('--indentation');\n\n // We allow at most 3 levels\n const nextLevel = Math.min(parseInt(level, 10) + 1, 2);\n\n this.getNavItemChildren(this.childrenSlot)\n .forEach(item => {\n item.style.setProperty('--indentation', nextLevel.toFixed(0));\n });\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleWidth(entries: ResizeObserverEntry[]) {\n entries.forEach(entry => {\n if (entry.contentRect.width < 100) {\n const hasPrefix = this.hasSlotController.test('prefix');\n this.showPrefixOnly = hasPrefix;\n } else {\n this.showPrefixOnly = false;\n }\n\n if (entry.contentRect.height > 48) {\n this.isMultiLine = true;\n } else {\n this.isMultiLine = false;\n }\n });\n }\n\n // Make sure the resize observer is disconnected when the horizontal property is set to true\n // In this case we, never want it to use prefix only mode\n @watch('horizontal', { waitUntilFirstUpdate: true })\n handleHorizontalChange() {\n if (this.horizontal) {\n this.resizeObserver.disconnect();\n } else {\n this.resizeObserver.observe(this);\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver((entries) => this.handleWidth(entries));\n if (!this.horizontal) {\n this.resizeObserver.observe(this);\n }\n }\n\n firstUpdated(_changedProperties: PropertyValues) {\n super.firstUpdated(_changedProperties);\n this.mutationObserver = new MutationObserver(() => {\n if (this.childrenSlot) {\n this.handleCurrentMarkedChild();\n }\n });\n\n this.mutationObserver.observe(this, {\n attributeFilter: ['current', 'open'],\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver?.disconnect();\n this.mutationObserver?.disconnect();\n }\n\n /**\n * Removes focus from the button.\n */\n blur() {\n this.control.blur();\n }\n\n /**\n * Simulates a click on the nav-items button, link or summary.\n */\n click() {\n this.control.click();\n }\n\n /**\n * Sets focus on the nav-item\n */\n focus(options?: FocusOptions) {\n this.control.focus(options);\n }\n\n // eslint-disable-next-line complexity\n render() {\n const isButton = this.isButton();\n const isLink = this.isLink();\n const isAccordion = this.isAccordion();\n\n const sideNav = this.closest('syn-side-nav');\n\n const showCurrentIndicatorForNested = (this.currentMarkedChild && !this.open)\n || (this.currentMarkedChild && this.open && !!sideNav?.rail && !sideNav?.open);\n\n // Defines the initial tag to use for the root component\n let tag = literal`button`;\n if (isAccordion) tag = literal`summary`;\n else if (isLink) tag = literal`a`;\n\n const hasChevron = (this.chevron || isAccordion) && !this.horizontal;\n\n // Define the click method to use\n let clickAction;\n if (isAccordion) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickAction = this.handleClickSummary;\n } else if (isButton) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickAction = this.handleClickButton;\n }\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable lit/binding-positions */\n /* eslint-disable @typescript-eslint/unbound-method */\n const root = html`\n <${tag}\n aria-controls=${ifDefined(isAccordion ? 'navigation-item-details' : undefined)}\n aria-current=${ifDefined(this.current ? 'page' : undefined)}\n aria-disabled=${this.disabled}\n @blur=${this.handleBlur}\n class=${classMap({\n 'nav-item': true,\n 'nav-item--current': this.current || showCurrentIndicatorForNested,\n 'nav-item--disabled': this.disabled,\n 'nav-item--focused': this.hasFocus,\n 'nav-item--has-content': this.hasSlotController.test('[default]'),\n 'nav-item--has-prefix': this.hasSlotController.test('prefix'),\n 'nav-item--has-suffix': this.hasSlotController.test('suffix'),\n 'nav-item--horizontal': this.horizontal,\n 'nav-item--is-link': isLink,\n 'nav-item--multi-line': this.isMultiLine,\n 'nav-item--show-prefix-only': this.showPrefixOnly,\n 'nav-item--vertical': !this.horizontal,\n 'nav-item-is-accordion': isAccordion,\n })}\n @click=${clickAction}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n @focus=${this.handleFocus}\n href=${ifDefined(isLink ? this.href : undefined)}\n part=\"base\"\n role=${isLink ? 'link' : 'button'}\n rel=${ifDefined(isLink ? this.rel : undefined)}\n tabindex=${this.disabled ? '-1' : '0'}\n target=${ifDefined(isLink ? this.target : undefined)}\n >\n\n ${this.divider && !this.horizontal\n ? html`<syn-divider class=\"divider\" part=\"divider\"></syn-divider>`\n : ''\n }\n\n <div class=\"nav-item__content\" part=\"content-wrapper\">\n <slot name=\"prefix\" part=\"prefix\" class=\"nav-item__prefix\"></slot>\n\n <div part=\"content-container\" class=\"nav-item__content-container\">\n <slot part=\"content\"></slot>\n </div>\n\n <slot name=\"suffix\" part=\"suffix\" class=\"nav-item__suffix\"></slot>\n\n ${hasChevron ? html`\n <syn-icon\n class=${classMap({\n 'nav-item__chevron': true,\n 'nav-item__chevron-open': this.open,\n })}\n color=\"currentColor\"\n library=\"system\"\n name=\"chevron-down\"\n part=\"chevron\"\n /></syn-icon>`\n : ''}\n\n <div\n class=${classMap({\n 'current-indicator': true,\n 'current-indicator--disabled': this.disabled,\n 'current-indicator--visible': this.current || showCurrentIndicatorForNested,\n })}\n part=\"current-indicator\"\n >\n </div>\n </div>\n\n </${tag}>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable lit/binding-positions */\n\n return isAccordion ? html`\n <details\n id=\"navigation-item-details\"\n ?open=${this.open}\n part=\"details\"\n >\n ${root}\n <slot\n class=\"children\"\n name=\"children\"\n part=\"children\"\n @slotchange=${this.handleSlotChange}\n ></slot>\n </details>\n ` : root;\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,gBAAgB;AAEzB,SAAS,MAAM,eAAe;AAC9B,SAAS,UAAU,OAAO,aAAa;AACvC,SAAS,iBAAiB;AAsD1B,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,YAAY,UAAU,QAAQ;AASnG,SAAQ,WAAW;AAKnB,SAAQ,iBAAiB;AAKzB,SAAQ,qBAAqB;AAK7B,SAAQ,cAAc;AAkCnB,eAAM;AAM0B,mBAAU;AAKV,oBAAW;AAKX,sBAAa;AAMb,mBAAU;AAMV,gBAAO;AAMP,mBAAU;AAAA;AAAA,EAE9C,WAAoB;AAC1B,WAAO,CAAC,KAAK,QAAQ,CAAC,KAAK,kBAAkB,KAAK,UAAU;AAAA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AS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAjFvB,WAiFyB;AAMA;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAvFvB,WAuFyB;AAMA;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GA7FvB,WA6FyB;AAMA;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAnGvB,WAmGyB;AA+I5C;AAAA,EADC,MAAM,cAAc,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAjPhC,WAkPnB;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTabGroup
3
- } from "./chunk.CILTVCBQ.js";
3
+ } from "./chunk.PJF3RP7Q.js";
4
4
 
5
5
  // src/components/tab-group/tab-group.ts
6
6
  var tab_group_default = SynTabGroup;
@@ -9,4 +9,4 @@ SynTabGroup.define("syn-tab-group");
9
9
  export {
10
10
  tab_group_default
11
11
  };
12
- //# sourceMappingURL=chunk.NPAGHPJZ.js.map
12
+ //# sourceMappingURL=chunk.ZOLZENHH.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  SynAccordion
3
- } from "../../chunks/chunk.XA4EOA25.js";
4
- import "../../chunks/chunk.74IOULXM.js";
5
- import "../../chunks/chunk.WNUZ6LH4.js";
3
+ } from "../../chunks/chunk.WPIWR6GG.js";
6
4
  import "../../chunks/chunk.NUIJATJY.js";
7
5
  import "../../chunks/chunk.JTSBAJHO.js";
8
6
  import "../../chunks/chunk.OH3PPVV4.js";
7
+ import "../../chunks/chunk.74IOULXM.js";
9
8
  import "../../chunks/chunk.NLYVOJGK.js";
10
- import "../../chunks/chunk.FITEZWTQ.js";
9
+ import "../../chunks/chunk.FA4T7QQM.js";
10
+ import "../../chunks/chunk.WNUZ6LH4.js";
11
11
  import "../../chunks/chunk.2GFK6XTO.js";
12
12
  export {
13
13
  SynAccordion as default
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  accordion_default
3
- } from "../../chunks/chunk.IXSDGMHS.js";
4
- import "../../chunks/chunk.XA4EOA25.js";
5
- import "../../chunks/chunk.74IOULXM.js";
6
- import "../../chunks/chunk.WNUZ6LH4.js";
3
+ } from "../../chunks/chunk.YJ5O6SUI.js";
4
+ import "../../chunks/chunk.WPIWR6GG.js";
7
5
  import "../../chunks/chunk.NUIJATJY.js";
8
6
  import "../../chunks/chunk.JTSBAJHO.js";
9
7
  import "../../chunks/chunk.OH3PPVV4.js";
8
+ import "../../chunks/chunk.74IOULXM.js";
10
9
  import "../../chunks/chunk.NLYVOJGK.js";
11
- import "../../chunks/chunk.FITEZWTQ.js";
10
+ import "../../chunks/chunk.FA4T7QQM.js";
11
+ import "../../chunks/chunk.WNUZ6LH4.js";
12
12
  import "../../chunks/chunk.2GFK6XTO.js";
13
13
  export {
14
14
  accordion_default as default
@@ -9,7 +9,7 @@ import SynIconButton from '../icon-button/icon-button.component.js';
9
9
  import type { CSSResultGroup } from 'lit';
10
10
  /**
11
11
  * @summary Alerts are used to display important messages inline or as toast notifications.
12
- * @documentation https://synergy.style/components/alert
12
+ * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-alert--docs
13
13
  * @status stable
14
14
  * @since 2.0
15
15
  *
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  SynAlert
3
- } from "../../chunks/chunk.3A4IZ7IM.js";
3
+ } from "../../chunks/chunk.RMDAJPSI.js";
4
4
  import "../../chunks/chunk.WXVOTRW5.js";
5
- import "../../chunks/chunk.FHND52A3.js";
5
+ import "../../chunks/chunk.A77V4OPP.js";
6
6
  import "../../chunks/chunk.6QYKWCSO.js";
7
7
  import "../../chunks/chunk.DZ7YIR5N.js";
8
8
  import "../../chunks/chunk.C2ENQBPM.js";
9
9
  import "../../chunks/chunk.A3OYJILJ.js";
10
10
  import "../../chunks/chunk.HQ6QUSK7.js";
11
11
  import "../../chunks/chunk.WVVQK5TE.js";
12
- import "../../chunks/chunk.QBHZAR4C.js";
13
- import "../../chunks/chunk.BXY667C7.js";
14
- import "../../chunks/chunk.R3THZVHP.js";
12
+ import "../../chunks/chunk.IC3XQ2EB.js";
15
13
  import "../../chunks/chunk.CITWLSAM.js";
16
14
  import "../../chunks/chunk.YTEJW7IF.js";
17
15
  import "../../chunks/chunk.NH4JQFOM.js";
18
16
  import "../../chunks/chunk.PJO6TM3T.js";
19
17
  import "../../chunks/chunk.ZBW4ZSZ7.js";
20
- import "../../chunks/chunk.234ERFCE.js";
21
- import "../../chunks/chunk.74IOULXM.js";
22
18
  import "../../chunks/chunk.GIU3H3J3.js";
23
19
  import "../../chunks/chunk.S5N2TE2L.js";
20
+ import "../../chunks/chunk.234ERFCE.js";
21
+ import "../../chunks/chunk.QBHZAR4C.js";
22
+ import "../../chunks/chunk.BXY667C7.js";
24
23
  import "../../chunks/chunk.NUIJATJY.js";
25
24
  import "../../chunks/chunk.JTSBAJHO.js";
26
25
  import "../../chunks/chunk.OH3PPVV4.js";
26
+ import "../../chunks/chunk.74IOULXM.js";
27
27
  import "../../chunks/chunk.NLYVOJGK.js";
28
- import "../../chunks/chunk.FITEZWTQ.js";
28
+ import "../../chunks/chunk.FA4T7QQM.js";
29
29
  import "../../chunks/chunk.2GFK6XTO.js";
30
30
  export {
31
31
  SynAlert as default