@synergy-design-system/components 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (786) hide show
  1. package/README.md +0 -61
  2. package/dist/chunks/{chunk.3EJU447K.js → chunk.26QTFTWA.js} +5 -5
  3. package/dist/chunks/chunk.26QTFTWA.js.map +7 -0
  4. package/dist/chunks/{chunk.VA26EAEP.js → chunk.2BJPTG2Q.js} +1 -1
  5. package/dist/chunks/chunk.2BJPTG2Q.js.map +7 -0
  6. package/dist/chunks/{chunk.5732DMBC.js → chunk.2DT3C6WE.js} +1 -1
  7. package/dist/chunks/chunk.2DT3C6WE.js.map +7 -0
  8. package/dist/chunks/{chunk.4ZEHQOJ3.js → chunk.2EZFBKDU.js} +2 -2
  9. package/dist/chunks/chunk.2EZFBKDU.js.map +7 -0
  10. package/dist/chunks/chunk.2IL4PA6Q.js +130 -0
  11. package/dist/chunks/chunk.2IL4PA6Q.js.map +7 -0
  12. package/dist/chunks/{chunk.FVYPYWJH.js → chunk.2J5ARXAO.js} +5 -5
  13. package/dist/chunks/{chunk.FSZIE7IO.js → chunk.34A453XJ.js} +1 -1
  14. package/dist/chunks/chunk.34A453XJ.js.map +7 -0
  15. package/dist/chunks/chunk.34RGILSE.js +10 -0
  16. package/dist/chunks/chunk.34RGILSE.js.map +7 -0
  17. package/dist/chunks/{chunk.I5R3PXG7.js → chunk.3GSHQV5Q.js} +2 -2
  18. package/dist/chunks/{chunk.3NXKLKWH.js → chunk.3JDUKQRN.js} +1 -1
  19. package/dist/chunks/chunk.3JDUKQRN.js.map +7 -0
  20. package/dist/chunks/{chunk.SLKJ2OJN.js → chunk.4K5KFEYL.js} +7 -7
  21. package/dist/chunks/chunk.4K5KFEYL.js.map +7 -0
  22. package/dist/chunks/{chunk.ZBW4ZSZ7.js → chunk.4XZTYPIY.js} +1 -1
  23. package/dist/chunks/chunk.4XZTYPIY.js.map +7 -0
  24. package/dist/chunks/{chunk.SEYI7UTA.js → chunk.4YHI2ATV.js} +15 -1
  25. package/dist/chunks/{chunk.SEYI7UTA.js.map → chunk.4YHI2ATV.js.map} +2 -2
  26. package/dist/chunks/{chunk.67NOFASU.js → chunk.4ZMYXIBW.js} +2 -2
  27. package/dist/chunks/chunk.4ZMYXIBW.js.map +7 -0
  28. package/dist/chunks/{chunk.U6VNE4JX.js → chunk.52USEUTP.js} +2 -2
  29. package/dist/chunks/chunk.52USEUTP.js.map +7 -0
  30. package/dist/chunks/{chunk.IVM3BGRH.js → chunk.5FVNGR5M.js} +1 -1
  31. package/dist/chunks/chunk.5FVNGR5M.js.map +7 -0
  32. package/dist/chunks/{chunk.OIB4NIRJ.js → chunk.5ICJ7VWS.js} +2 -2
  33. package/dist/chunks/chunk.5ICJ7VWS.js.map +7 -0
  34. package/dist/chunks/{chunk.OI3HOOCT.js → chunk.5KL2GWNQ.js} +1 -1
  35. package/dist/chunks/chunk.5KL2GWNQ.js.map +7 -0
  36. package/dist/chunks/{chunk.VV3WAINT.js → chunk.5QMMVRAY.js} +2 -2
  37. package/dist/chunks/chunk.5QMMVRAY.js.map +7 -0
  38. package/dist/chunks/{chunk.RBOU3KVS.js → chunk.5QYKBLQ4.js} +7 -7
  39. package/dist/chunks/chunk.5QYKBLQ4.js.map +7 -0
  40. package/dist/chunks/{chunk.4ADVK4N5.js → chunk.5RIU5X7Z.js} +2 -2
  41. package/dist/chunks/chunk.5RIU5X7Z.js.map +7 -0
  42. package/dist/chunks/{chunk.FD2CG2HT.js → chunk.6AT5JL7A.js} +1 -29
  43. package/dist/chunks/chunk.6AT5JL7A.js.map +7 -0
  44. package/dist/chunks/{chunk.HSQZ3ZWE.js → chunk.6EHOI2BO.js} +14 -14
  45. package/dist/chunks/{chunk.ZNJG4EY4.js → chunk.6F7L74P2.js} +2 -2
  46. package/dist/chunks/chunk.6F7L74P2.js.map +7 -0
  47. package/dist/chunks/{chunk.UAUY6RVN.js → chunk.6GU7PVLX.js} +2 -2
  48. package/dist/chunks/chunk.6GU7PVLX.js.map +7 -0
  49. package/dist/chunks/{chunk.5F5Y2RD6.js → chunk.6JDKH43H.js} +537 -131
  50. package/dist/chunks/chunk.6JDKH43H.js.map +7 -0
  51. package/dist/chunks/{chunk.HVXG4JG6.js → chunk.6KIX3PER.js} +1 -1
  52. package/dist/chunks/chunk.6KIX3PER.js.map +7 -0
  53. package/dist/chunks/{chunk.M72HMQL6.js → chunk.6ND5EQHX.js} +2 -2
  54. package/dist/chunks/chunk.6ND5EQHX.js.map +7 -0
  55. package/dist/chunks/{chunk.BNHQTT5B.js → chunk.6PRXWBZE.js} +2 -2
  56. package/dist/chunks/{chunk.XDOZEDCW.js → chunk.6TVTDKLK.js} +2 -2
  57. package/dist/chunks/chunk.6TVTDKLK.js.map +7 -0
  58. package/dist/chunks/{chunk.EMTWFPA4.js → chunk.6UWGX2XK.js} +2 -2
  59. package/dist/chunks/chunk.6UWGX2XK.js.map +7 -0
  60. package/dist/chunks/{chunk.XKT2M3XA.js → chunk.7G6N24FO.js} +2 -2
  61. package/dist/chunks/{chunk.OHDB73E6.js → chunk.7UHGS3KI.js} +2 -2
  62. package/dist/chunks/chunk.7UHGS3KI.js.map +7 -0
  63. package/dist/chunks/{chunk.JLXCLATV.js → chunk.7V7XEBE2.js} +1 -1
  64. package/dist/chunks/chunk.7V7XEBE2.js.map +7 -0
  65. package/dist/chunks/{chunk.N7BCC4V5.js → chunk.B45BLWF7.js} +13 -13
  66. package/dist/chunks/chunk.B45BLWF7.js.map +7 -0
  67. package/dist/chunks/{chunk.KW5TWA5Y.js → chunk.BC532CB6.js} +1 -1
  68. package/dist/chunks/chunk.BC532CB6.js.map +7 -0
  69. package/dist/chunks/{chunk.X7XPEYAM.js → chunk.BHJVE26D.js} +2 -3
  70. package/dist/chunks/chunk.BHJVE26D.js.map +7 -0
  71. package/dist/chunks/{chunk.6VA5V372.js → chunk.BIAB7B7S.js} +2 -2
  72. package/dist/chunks/chunk.BIAB7B7S.js.map +7 -0
  73. package/dist/chunks/{chunk.AF4RYZHB.js → chunk.BJVWQ3LR.js} +2 -2
  74. package/dist/chunks/{chunk.SUH6DGJ5.js → chunk.BQTSV4AJ.js} +6 -6
  75. package/dist/chunks/chunk.BQTSV4AJ.js.map +7 -0
  76. package/dist/chunks/{chunk.BXY667C7.js → chunk.CCY6IYFD.js} +1 -1
  77. package/dist/chunks/chunk.CCY6IYFD.js.map +7 -0
  78. package/dist/chunks/{chunk.R4FCX5PU.js → chunk.CEP5JF3B.js} +2 -2
  79. package/dist/chunks/{chunk.IOFVUQIY.js → chunk.CGHRPSUK.js} +2 -2
  80. package/dist/chunks/chunk.CGHRPSUK.js.map +7 -0
  81. package/dist/chunks/{chunk.WVVQK5TE.js → chunk.CHFWLQN5.js} +1 -1
  82. package/dist/chunks/chunk.CHFWLQN5.js.map +7 -0
  83. package/dist/chunks/{chunk.VBPHUZ5N.js → chunk.CJMW4UVM.js} +15 -15
  84. package/dist/chunks/chunk.CJMW4UVM.js.map +7 -0
  85. package/dist/chunks/{chunk.Y5TMYX2L.js → chunk.CMOZ4SCN.js} +1 -1
  86. package/dist/chunks/chunk.CMOZ4SCN.js.map +7 -0
  87. package/dist/chunks/{chunk.GRVNUIP2.js → chunk.CX7IEDUW.js} +1 -1
  88. package/dist/chunks/chunk.CX7IEDUW.js.map +7 -0
  89. package/dist/chunks/{chunk.XL2GZSHM.js → chunk.D43HKTYD.js} +5 -5
  90. package/dist/chunks/chunk.D43HKTYD.js.map +7 -0
  91. package/dist/chunks/{chunk.HW62YVCL.js → chunk.D47LGG4N.js} +5 -5
  92. package/dist/chunks/chunk.D47LGG4N.js.map +7 -0
  93. package/dist/chunks/{chunk.DZ7YIR5N.js → chunk.DAIQ5WRI.js} +1 -1
  94. package/dist/chunks/chunk.DAIQ5WRI.js.map +7 -0
  95. package/dist/chunks/{chunk.AZ3N5IOO.js → chunk.DEJAPNIZ.js} +1 -1
  96. package/dist/chunks/chunk.DEJAPNIZ.js.map +7 -0
  97. package/dist/chunks/{chunk.MJ4Q6YEU.js → chunk.DQVEBDUM.js} +2 -2
  98. package/dist/chunks/chunk.DQVEBDUM.js.map +7 -0
  99. package/dist/chunks/{chunk.JG7YXWHG.js → chunk.ECNXEYTN.js} +2 -2
  100. package/dist/chunks/chunk.ECNXEYTN.js.map +7 -0
  101. package/dist/chunks/{chunk.QT47J2O6.js → chunk.EZ722KZU.js} +2 -2
  102. package/dist/chunks/chunk.EZ722KZU.js.map +7 -0
  103. package/dist/chunks/{chunk.F4TDCDGD.js → chunk.FBYEVEZ6.js} +5 -5
  104. package/dist/chunks/chunk.FBYEVEZ6.js.map +7 -0
  105. package/dist/chunks/{chunk.4URTG3MF.js → chunk.FKIDTC5A.js} +7 -7
  106. package/dist/chunks/chunk.FKIDTC5A.js.map +7 -0
  107. package/dist/chunks/{chunk.42F33KBM.js → chunk.FUYMXIMF.js} +4 -4
  108. package/dist/chunks/{chunk.BWTMFHNM.js → chunk.FVIRHFY6.js} +5 -3
  109. package/dist/chunks/{chunk.BWTMFHNM.js.map → chunk.FVIRHFY6.js.map} +2 -2
  110. package/dist/chunks/{chunk.NLYVOJGK.js → chunk.FXJLG622.js} +1 -1
  111. package/dist/chunks/chunk.FXJLG622.js.map +7 -0
  112. package/dist/chunks/{chunk.D5GEYHUG.js → chunk.GEMZSFPA.js} +7 -7
  113. package/dist/chunks/chunk.GEMZSFPA.js.map +7 -0
  114. package/dist/chunks/{chunk.5QGW4QZT.js → chunk.GFD645IU.js} +5 -5
  115. package/dist/chunks/chunk.GFD645IU.js.map +7 -0
  116. package/dist/chunks/{chunk.P3JEES5B.js → chunk.GOAMFSM4.js} +13 -13
  117. package/dist/chunks/{chunk.XTWO6ZZW.js → chunk.GPP4D4HH.js} +1 -1
  118. package/dist/chunks/chunk.GPP4D4HH.js.map +7 -0
  119. package/dist/chunks/{chunk.R5WFWL7W.js → chunk.H5WUQAD7.js} +2 -2
  120. package/dist/chunks/chunk.H5WUQAD7.js.map +7 -0
  121. package/dist/chunks/{chunk.OBERL73O.js → chunk.H647D2ZB.js} +5 -5
  122. package/dist/chunks/chunk.H647D2ZB.js.map +7 -0
  123. package/dist/chunks/{chunk.UT3DWYFM.js → chunk.H6EHQYZA.js} +2 -2
  124. package/dist/chunks/chunk.H6EHQYZA.js.map +7 -0
  125. package/dist/chunks/{chunk.K5VB7VKA.js → chunk.I5ABAZLK.js} +8 -8
  126. package/dist/chunks/chunk.I5ABAZLK.js.map +7 -0
  127. package/dist/chunks/{chunk.UBGDTOZZ.js → chunk.IJIRSZXP.js} +2 -2
  128. package/dist/chunks/chunk.IJIRSZXP.js.map +7 -0
  129. package/dist/chunks/{chunk.36BZPB3H.js → chunk.IQ45XDXM.js} +2 -2
  130. package/dist/chunks/chunk.IQ45XDXM.js.map +7 -0
  131. package/dist/chunks/{chunk.U5757NSE.js → chunk.J3GDDM6Q.js} +1 -1
  132. package/dist/chunks/chunk.J3GDDM6Q.js.map +7 -0
  133. package/dist/chunks/{chunk.43YNZAWL.js → chunk.JDYQ7EFG.js} +1 -1
  134. package/dist/chunks/chunk.JDYQ7EFG.js.map +7 -0
  135. package/dist/chunks/{chunk.3FT4KLCP.js → chunk.JFAN6AQH.js} +13 -13
  136. package/dist/chunks/chunk.JFAN6AQH.js.map +7 -0
  137. package/dist/chunks/{chunk.RAOPZXJL.js → chunk.JILCM7FD.js} +1 -1
  138. package/dist/chunks/chunk.JILCM7FD.js.map +7 -0
  139. package/dist/chunks/{chunk.6B7GMPMK.js → chunk.K2HZDQMS.js} +12 -12
  140. package/dist/chunks/chunk.K2HZDQMS.js.map +7 -0
  141. package/dist/chunks/{chunk.GJIDYO3Z.js → chunk.KHRQ5VI4.js} +6 -6
  142. package/dist/chunks/chunk.KHRQ5VI4.js.map +7 -0
  143. package/dist/chunks/{chunk.LJGUOWPM.js → chunk.KIVJSZWU.js} +10 -10
  144. package/dist/chunks/chunk.KIVJSZWU.js.map +7 -0
  145. package/dist/chunks/{chunk.IAS6MLT6.js → chunk.KLL2SVR7.js} +2 -1
  146. package/dist/chunks/chunk.KLL2SVR7.js.map +7 -0
  147. package/dist/chunks/{chunk.JYLOZXGC.js → chunk.KOKPJSO2.js} +14 -14
  148. package/dist/chunks/{chunk.FQWBH6B3.js → chunk.KPHDBL43.js} +1 -1
  149. package/dist/chunks/chunk.KPHDBL43.js.map +7 -0
  150. package/dist/chunks/{chunk.UPDHOWDW.js → chunk.KRR2BTZW.js} +2 -2
  151. package/dist/chunks/{chunk.PGGH5VGL.js → chunk.KT7OGMZP.js} +4 -4
  152. package/dist/chunks/chunk.KT7OGMZP.js.map +7 -0
  153. package/dist/chunks/{chunk.2GP2EYG4.js → chunk.L3PVKJP6.js} +6 -6
  154. package/dist/chunks/chunk.L3PVKJP6.js.map +7 -0
  155. package/dist/chunks/{chunk.YBITSWNW.js → chunk.LFRJ623K.js} +2 -2
  156. package/dist/chunks/chunk.LFRJ623K.js.map +7 -0
  157. package/dist/chunks/{chunk.C2ENQBPM.js → chunk.LQDIH4Z5.js} +1 -1
  158. package/dist/chunks/chunk.LQDIH4Z5.js.map +7 -0
  159. package/dist/chunks/{chunk.DHT3ZN7B.js → chunk.LZTCTUDK.js} +11 -11
  160. package/dist/chunks/chunk.LZTCTUDK.js.map +7 -0
  161. package/dist/chunks/{chunk.6KTVNSPY.js → chunk.MFLXKYBR.js} +11 -11
  162. package/dist/chunks/chunk.MFLXKYBR.js.map +7 -0
  163. package/dist/chunks/{chunk.X6HKBVIE.js → chunk.MP5AW7KH.js} +2 -2
  164. package/dist/chunks/{chunk.JX6C3ADT.js → chunk.MUYFKDTO.js} +13 -7
  165. package/dist/chunks/chunk.MUYFKDTO.js.map +7 -0
  166. package/dist/chunks/{chunk.FSWTBNSI.js → chunk.N7HN275B.js} +1 -1
  167. package/dist/chunks/chunk.N7HN275B.js.map +7 -0
  168. package/dist/chunks/{chunk.34V3QOIQ.js → chunk.NMWM3BP7.js} +2 -2
  169. package/dist/chunks/chunk.NMWM3BP7.js.map +7 -0
  170. package/dist/chunks/{chunk.4I2C7KCE.js → chunk.O6TRAUHQ.js} +2 -2
  171. package/dist/chunks/{chunk.O6ZH6AOI.js → chunk.OFKOVRHG.js} +1 -1
  172. package/dist/chunks/chunk.OFKOVRHG.js.map +7 -0
  173. package/dist/chunks/{chunk.LVYJDZMX.js → chunk.OUZ7W2PK.js} +2 -2
  174. package/dist/chunks/chunk.OUZ7W2PK.js.map +7 -0
  175. package/dist/chunks/{chunk.6EK4W7PI.js → chunk.OYDK7VLV.js} +22 -22
  176. package/dist/chunks/chunk.OYDK7VLV.js.map +7 -0
  177. package/dist/chunks/{chunk.JKSFECFA.js → chunk.P4JFVVSO.js} +2 -2
  178. package/dist/chunks/chunk.P4JFVVSO.js.map +7 -0
  179. package/dist/chunks/{chunk.RMIDAEF5.js → chunk.PB6IANE7.js} +1 -1
  180. package/dist/chunks/chunk.PB6IANE7.js.map +7 -0
  181. package/dist/chunks/{chunk.B3UAPU32.js → chunk.PDY32KGV.js} +6 -6
  182. package/dist/chunks/chunk.PDY32KGV.js.map +7 -0
  183. package/dist/chunks/{chunk.XAQKFEHH.js → chunk.PHFTXPIT.js} +1 -1
  184. package/dist/chunks/chunk.PHFTXPIT.js.map +7 -0
  185. package/dist/chunks/{chunk.234ERFCE.js → chunk.PLV4PZYX.js} +1 -1
  186. package/dist/chunks/chunk.PLV4PZYX.js.map +7 -0
  187. package/dist/chunks/{chunk.N7LV5KRH.js → chunk.PN5GCUMW.js} +9 -9
  188. package/dist/chunks/chunk.PN5GCUMW.js.map +7 -0
  189. package/dist/chunks/{chunk.MU43DZ7W.js → chunk.PN64BR66.js} +1 -1
  190. package/dist/chunks/chunk.PN64BR66.js.map +7 -0
  191. package/dist/chunks/{chunk.VYQ53GHN.js → chunk.PNCX23JO.js} +9 -9
  192. package/dist/chunks/chunk.PNCX23JO.js.map +7 -0
  193. package/dist/chunks/{chunk.PR7SSUOT.js → chunk.PNEINJI2.js} +2 -2
  194. package/dist/chunks/chunk.PNEINJI2.js.map +7 -0
  195. package/dist/chunks/{chunk.G4URZQCL.js → chunk.PTRCO527.js} +1 -1
  196. package/dist/chunks/chunk.PTRCO527.js.map +7 -0
  197. package/dist/chunks/{chunk.EIJX4T2G.js → chunk.Q2XJ7NJC.js} +10 -10
  198. package/dist/chunks/chunk.Q2XJ7NJC.js.map +7 -0
  199. package/dist/chunks/{chunk.PKYC7QF3.js → chunk.Q5EKPQBR.js} +1 -1
  200. package/dist/chunks/chunk.Q5EKPQBR.js.map +7 -0
  201. package/dist/chunks/{chunk.6EKUFYET.js → chunk.Q6HZ4JXR.js} +1 -1
  202. package/dist/chunks/chunk.Q6HZ4JXR.js.map +7 -0
  203. package/dist/chunks/{chunk.2RSO2DKG.js → chunk.QG5SKZKD.js} +2 -2
  204. package/dist/chunks/chunk.QG5SKZKD.js.map +7 -0
  205. package/dist/chunks/{chunk.OAQRCZOO.js → chunk.QLETXF4A.js} +2 -2
  206. package/dist/chunks/chunk.QLETXF4A.js.map +7 -0
  207. package/dist/chunks/{chunk.5T3K7UXO.js → chunk.QRPDILBH.js} +2 -2
  208. package/dist/chunks/chunk.QRPDILBH.js.map +7 -0
  209. package/dist/chunks/{chunk.DRLFKWVC.js → chunk.QWIUHODV.js} +2 -2
  210. package/dist/chunks/{chunk.C4JTZKPZ.js → chunk.R3SMKUIL.js} +1 -1
  211. package/dist/chunks/chunk.R3SMKUIL.js.map +7 -0
  212. package/dist/chunks/{chunk.IYB26JEV.js → chunk.RBDBPRCS.js} +2 -2
  213. package/dist/chunks/chunk.RBDBPRCS.js.map +7 -0
  214. package/dist/chunks/{chunk.3EQF2FRQ.js → chunk.RH63RIHH.js} +10 -10
  215. package/dist/chunks/chunk.RH63RIHH.js.map +7 -0
  216. package/dist/chunks/{chunk.ADSEQZBF.js → chunk.RJUVM6NO.js} +1 -1
  217. package/dist/chunks/chunk.RJUVM6NO.js.map +7 -0
  218. package/dist/chunks/{chunk.KPBZSLEA.js → chunk.RO6WY67Q.js} +2 -2
  219. package/dist/chunks/chunk.RO6WY67Q.js.map +7 -0
  220. package/dist/chunks/{chunk.YTEJW7IF.js → chunk.RODNHT5C.js} +2 -2
  221. package/dist/chunks/chunk.RODNHT5C.js.map +7 -0
  222. package/dist/chunks/{chunk.YIYXW5NV.js → chunk.RRYH72O7.js} +2 -2
  223. package/dist/chunks/chunk.RRYH72O7.js.map +7 -0
  224. package/dist/chunks/{chunk.Z3SZOYBJ.js → chunk.RXBJIQCC.js} +2 -2
  225. package/dist/chunks/chunk.RXBJIQCC.js.map +7 -0
  226. package/dist/chunks/{chunk.ZVOOP3PI.js → chunk.RY3ZM7MQ.js} +24 -8
  227. package/dist/chunks/{chunk.ZVOOP3PI.js.map → chunk.RY3ZM7MQ.js.map} +2 -2
  228. package/dist/chunks/{chunk.HXLRLIDZ.js → chunk.S7JH7R5W.js} +8 -8
  229. package/dist/chunks/{chunk.Q3SJASPT.js → chunk.SEYPIVFM.js} +2 -2
  230. package/dist/chunks/chunk.SEYPIVFM.js.map +7 -0
  231. package/dist/chunks/{chunk.JE5Y2YD7.js → chunk.SMIMHADA.js} +1 -1
  232. package/dist/chunks/chunk.SMIMHADA.js.map +7 -0
  233. package/dist/chunks/{chunk.LBN3HL2T.js → chunk.SNYUENL4.js} +12 -12
  234. package/dist/chunks/chunk.SNYUENL4.js.map +7 -0
  235. package/dist/chunks/{chunk.ZPL7FJ2H.js → chunk.T23XHCUI.js} +10 -10
  236. package/dist/chunks/{chunk.RV5JERXK.js → chunk.T5GCLOJ6.js} +16 -16
  237. package/dist/chunks/chunk.T5GCLOJ6.js.map +7 -0
  238. package/dist/chunks/{chunk.MM3NO6GS.js → chunk.TNT5GH3Y.js} +64 -5
  239. package/dist/chunks/chunk.TNT5GH3Y.js.map +7 -0
  240. package/dist/chunks/{chunk.D6IIQDWJ.js → chunk.TVVJTCGG.js} +1 -1
  241. package/dist/chunks/chunk.TVVJTCGG.js.map +7 -0
  242. package/dist/chunks/{chunk.5SQ7NVBX.js → chunk.UB4EPKCP.js} +1 -1
  243. package/dist/chunks/chunk.UB4EPKCP.js.map +7 -0
  244. package/dist/chunks/{chunk.4T2NDUOQ.js → chunk.UJRM7HDU.js} +2 -2
  245. package/dist/chunks/chunk.UJRM7HDU.js.map +7 -0
  246. package/dist/chunks/{chunk.4FRKK5XY.js → chunk.UOOCDAPN.js} +3 -3
  247. package/dist/chunks/{chunk.N7QJ54ZM.js → chunk.UORFJFA2.js} +1 -1
  248. package/dist/chunks/chunk.UORFJFA2.js.map +7 -0
  249. package/dist/chunks/{chunk.X57JLQDS.js → chunk.UW35P23G.js} +2 -2
  250. package/dist/chunks/chunk.UW35P23G.js.map +7 -0
  251. package/dist/chunks/{chunk.56BJYBST.js → chunk.UWMO4OOX.js} +2 -2
  252. package/dist/chunks/{chunk.C2CWYCOU.js → chunk.V37RYGE7.js} +1 -1
  253. package/dist/chunks/chunk.V37RYGE7.js.map +7 -0
  254. package/dist/chunks/{chunk.N6C27EXQ.js → chunk.VL3GX6WV.js} +9 -1
  255. package/dist/chunks/chunk.VL3GX6WV.js.map +7 -0
  256. package/dist/chunks/chunk.VMLERD3J.js +52 -0
  257. package/dist/chunks/chunk.VMLERD3J.js.map +7 -0
  258. package/dist/chunks/{chunk.QUM76UHV.js → chunk.VPL7U5EC.js} +1 -1
  259. package/dist/chunks/chunk.VPL7U5EC.js.map +7 -0
  260. package/dist/chunks/{chunk.PWODN6WT.js → chunk.VQ2RY6WP.js} +2 -2
  261. package/dist/chunks/chunk.VQ2RY6WP.js.map +7 -0
  262. package/dist/chunks/{chunk.B56PMMC4.js → chunk.WHDNCE4Q.js} +9 -9
  263. package/dist/chunks/{chunk.JQ4NCOOB.js → chunk.WNUAJF2S.js} +7 -7
  264. package/dist/chunks/{chunk.QACXXBE3.js → chunk.WPAX3KY7.js} +12 -12
  265. package/dist/chunks/chunk.WPAX3KY7.js.map +7 -0
  266. package/dist/chunks/{chunk.S22BO5SF.js → chunk.WRPQ3635.js} +1 -1
  267. package/dist/chunks/chunk.WRPQ3635.js.map +7 -0
  268. package/dist/chunks/{chunk.4TB35TYG.js → chunk.X323W6VB.js} +1 -1
  269. package/dist/chunks/chunk.X323W6VB.js.map +7 -0
  270. package/dist/chunks/{chunk.6EPU7YUS.js → chunk.X5NFOV5A.js} +1 -1
  271. package/dist/chunks/chunk.X5NFOV5A.js.map +7 -0
  272. package/dist/chunks/{chunk.QXZFSE4T.js → chunk.X5TIKPLJ.js} +2 -2
  273. package/dist/chunks/chunk.X5TIKPLJ.js.map +7 -0
  274. package/dist/chunks/{chunk.ZR7J6ZEM.js → chunk.X6WKPXTG.js} +2 -2
  275. package/dist/chunks/chunk.X6WKPXTG.js.map +7 -0
  276. package/dist/chunks/{chunk.7SIMUMVH.js → chunk.XGBJ2PGD.js} +7 -7
  277. package/dist/chunks/chunk.XGBJ2PGD.js.map +7 -0
  278. package/dist/chunks/{chunk.DQKV5FSY.js → chunk.XRSLCQH3.js} +1 -1
  279. package/dist/chunks/chunk.XRSLCQH3.js.map +7 -0
  280. package/dist/chunks/{chunk.2ACTZBEC.js → chunk.XYTR2GHP.js} +7 -7
  281. package/dist/chunks/chunk.XYTR2GHP.js.map +7 -0
  282. package/dist/chunks/{chunk.KSWDM4HW.js → chunk.YACUYJZN.js} +2 -2
  283. package/dist/chunks/{chunk.EHSNF4SS.js → chunk.YITQ6NLI.js} +1 -1
  284. package/dist/chunks/chunk.YITQ6NLI.js.map +7 -0
  285. package/dist/chunks/{chunk.O644HRW3.js → chunk.YOFWLXEH.js} +1 -1
  286. package/dist/chunks/chunk.YOFWLXEH.js.map +7 -0
  287. package/dist/chunks/{chunk.K62NPKGN.js → chunk.YPYFEST2.js} +1 -1
  288. package/dist/chunks/chunk.YPYFEST2.js.map +7 -0
  289. package/dist/chunks/{chunk.KLUICBMV.js → chunk.YSKOI4OG.js} +4 -4
  290. package/dist/chunks/{chunk.WPVUSCH3.js → chunk.YUK555QP.js} +2 -2
  291. package/dist/chunks/{chunk.DXVTZKXX.js → chunk.YZMG6OGY.js} +2 -2
  292. package/dist/chunks/{chunk.ATT3RT4A.js → chunk.ZA7XD4RH.js} +11 -11
  293. package/dist/chunks/chunk.ZA7XD4RH.js.map +7 -0
  294. package/dist/chunks/{chunk.6OX2AX3Z.js → chunk.ZC3GXTWV.js} +1 -1
  295. package/dist/chunks/chunk.ZC3GXTWV.js.map +7 -0
  296. package/dist/chunks/{chunk.IMZSPXJV.js → chunk.ZNM2KW2N.js} +2 -2
  297. package/dist/chunks/chunk.ZNM2KW2N.js.map +7 -0
  298. package/dist/chunks/{chunk.4BRJ5OJE.js → chunk.ZXEPSSXQ.js} +2 -2
  299. package/dist/chunks/chunk.ZXEPSSXQ.js.map +7 -0
  300. package/dist/components/accordion/accordion.component.js +8 -7
  301. package/dist/components/accordion/accordion.js +9 -8
  302. package/dist/components/alert/alert.component.d.ts +0 -6
  303. package/dist/components/alert/alert.component.js +22 -21
  304. package/dist/components/alert/alert.d.ts +0 -6
  305. package/dist/components/alert/alert.js +23 -22
  306. package/dist/components/alert/alert.styles.d.ts +0 -6
  307. package/dist/components/alert/alert.styles.js +1 -1
  308. package/dist/components/badge/badge.component.d.ts +0 -6
  309. package/dist/components/badge/badge.component.js +10 -9
  310. package/dist/components/badge/badge.d.ts +0 -6
  311. package/dist/components/badge/badge.js +11 -10
  312. package/dist/components/badge/badge.styles.d.ts +0 -6
  313. package/dist/components/badge/badge.styles.js +1 -1
  314. package/dist/components/breadcrumb/breadcrumb.component.d.ts +0 -6
  315. package/dist/components/breadcrumb/breadcrumb.component.js +12 -12
  316. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -6
  317. package/dist/components/breadcrumb/breadcrumb.js +13 -13
  318. package/dist/components/breadcrumb/breadcrumb.styles.d.ts +0 -6
  319. package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
  320. package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +0 -6
  321. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +6 -6
  322. package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +0 -6
  323. package/dist/components/breadcrumb-item/breadcrumb-item.js +7 -7
  324. package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -6
  325. package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
  326. package/dist/components/button/button.component.d.ts +0 -6
  327. package/dist/components/button/button.component.js +21 -20
  328. package/dist/components/button/button.custom.styles.js +1 -1
  329. package/dist/components/button/button.d.ts +0 -6
  330. package/dist/components/button/button.js +22 -21
  331. package/dist/components/button/button.styles.d.ts +0 -6
  332. package/dist/components/button/button.styles.js +1 -1
  333. package/dist/components/button-group/button-group.component.d.ts +7 -6
  334. package/dist/components/button-group/button-group.component.js +10 -4
  335. package/dist/components/button-group/button-group.custom.styles.d.ts +2 -0
  336. package/dist/components/button-group/button-group.custom.styles.js +8 -0
  337. package/dist/components/button-group/button-group.custom.styles.js.map +7 -0
  338. package/dist/components/button-group/button-group.d.ts +0 -6
  339. package/dist/components/button-group/button-group.js +11 -5
  340. package/dist/components/button-group/button-group.styles.d.ts +0 -6
  341. package/dist/components/button-group/button-group.styles.js +1 -1
  342. package/dist/components/card/card.component.d.ts +0 -6
  343. package/dist/components/card/card.component.js +5 -5
  344. package/dist/components/card/card.d.ts +0 -6
  345. package/dist/components/card/card.js +6 -6
  346. package/dist/components/card/card.styles.d.ts +0 -6
  347. package/dist/components/card/card.styles.js +1 -1
  348. package/dist/components/checkbox/checkbox.component.d.ts +0 -6
  349. package/dist/components/checkbox/checkbox.component.js +18 -17
  350. package/dist/components/checkbox/checkbox.d.ts +0 -6
  351. package/dist/components/checkbox/checkbox.js +19 -18
  352. package/dist/components/checkbox/checkbox.styles.d.ts +0 -6
  353. package/dist/components/checkbox/checkbox.styles.js +1 -1
  354. package/dist/components/combobox/combobox.component.d.ts +125 -17
  355. package/dist/components/combobox/combobox.component.js +37 -30
  356. package/dist/components/combobox/combobox.custom.styles.js +1 -1
  357. package/dist/components/combobox/combobox.js +38 -31
  358. package/dist/components/combobox/combobox.styles.d.ts +0 -6
  359. package/dist/components/combobox/combobox.styles.js +1 -1
  360. package/dist/components/combobox/option-renderer.js +1 -1
  361. package/dist/components/combobox/utils.d.ts +8 -1
  362. package/dist/components/combobox/utils.js +3 -1
  363. package/dist/components/details/details.component.d.ts +0 -6
  364. package/dist/components/details/details.component.js +19 -18
  365. package/dist/components/details/details.d.ts +0 -6
  366. package/dist/components/details/details.js +20 -19
  367. package/dist/components/details/details.styles.d.ts +0 -6
  368. package/dist/components/details/details.styles.js +1 -1
  369. package/dist/components/dialog/dialog.component.d.ts +0 -6
  370. package/dist/components/dialog/dialog.component.js +25 -24
  371. package/dist/components/dialog/dialog.d.ts +0 -6
  372. package/dist/components/dialog/dialog.js +26 -25
  373. package/dist/components/dialog/dialog.styles.d.ts +0 -6
  374. package/dist/components/dialog/dialog.styles.js +1 -1
  375. package/dist/components/divider/divider.component.d.ts +0 -6
  376. package/dist/components/divider/divider.component.js +5 -5
  377. package/dist/components/divider/divider.d.ts +0 -6
  378. package/dist/components/divider/divider.js +6 -6
  379. package/dist/components/divider/divider.styles.d.ts +0 -6
  380. package/dist/components/divider/divider.styles.js +1 -1
  381. package/dist/components/drawer/drawer.component.d.ts +0 -6
  382. package/dist/components/drawer/drawer.component.js +25 -24
  383. package/dist/components/drawer/drawer.d.ts +0 -6
  384. package/dist/components/drawer/drawer.js +26 -25
  385. package/dist/components/drawer/drawer.styles.d.ts +0 -6
  386. package/dist/components/drawer/drawer.styles.js +1 -1
  387. package/dist/components/dropdown/dropdown.component.d.ts +0 -6
  388. package/dist/components/dropdown/dropdown.component.js +13 -13
  389. package/dist/components/dropdown/dropdown.d.ts +0 -6
  390. package/dist/components/dropdown/dropdown.js +14 -14
  391. package/dist/components/dropdown/dropdown.styles.d.ts +0 -6
  392. package/dist/components/dropdown/dropdown.styles.js +1 -1
  393. package/dist/components/file/file.component.js +26 -25
  394. package/dist/components/file/file.js +27 -26
  395. package/dist/components/header/header.component.js +13 -13
  396. package/dist/components/header/header.js +14 -14
  397. package/dist/components/icon/icon.component.d.ts +0 -6
  398. package/dist/components/icon/icon.component.js +8 -8
  399. package/dist/components/icon/icon.d.ts +0 -6
  400. package/dist/components/icon/icon.js +9 -9
  401. package/dist/components/icon/icon.styles.d.ts +0 -6
  402. package/dist/components/icon/icon.styles.js +1 -1
  403. package/dist/components/icon/library.d.ts +0 -6
  404. package/dist/components/icon/library.default.d.ts +0 -6
  405. package/dist/components/icon/library.default.js +2 -2
  406. package/dist/components/icon/library.js +3 -3
  407. package/dist/components/icon/library.migration.js +4 -4
  408. package/dist/components/icon-button/icon-button.component.d.ts +0 -6
  409. package/dist/components/icon-button/icon-button.component.js +14 -13
  410. package/dist/components/icon-button/icon-button.d.ts +0 -6
  411. package/dist/components/icon-button/icon-button.js +15 -14
  412. package/dist/components/icon-button/icon-button.styles.d.ts +0 -6
  413. package/dist/components/icon-button/icon-button.styles.js +1 -1
  414. package/dist/components/input/input.component.d.ts +0 -6
  415. package/dist/components/input/input.component.js +22 -21
  416. package/dist/components/input/input.d.ts +0 -6
  417. package/dist/components/input/input.js +23 -22
  418. package/dist/components/input/input.styles.d.ts +0 -6
  419. package/dist/components/input/input.styles.js +1 -1
  420. package/dist/components/menu/menu.component.d.ts +0 -6
  421. package/dist/components/menu/menu.component.js +4 -4
  422. package/dist/components/menu/menu.d.ts +0 -6
  423. package/dist/components/menu/menu.js +5 -5
  424. package/dist/components/menu/menu.styles.d.ts +0 -6
  425. package/dist/components/menu/menu.styles.js +1 -1
  426. package/dist/components/menu-item/menu-item.component.d.ts +0 -6
  427. package/dist/components/menu-item/menu-item.component.js +18 -18
  428. package/dist/components/menu-item/menu-item.d.ts +0 -6
  429. package/dist/components/menu-item/menu-item.js +19 -19
  430. package/dist/components/menu-item/menu-item.styles.d.ts +0 -6
  431. package/dist/components/menu-item/menu-item.styles.js +1 -1
  432. package/dist/components/menu-item/submenu-controller.d.ts +0 -6
  433. package/dist/components/menu-item/submenu-controller.js +2 -2
  434. package/dist/components/menu-label/menu-label.component.d.ts +0 -6
  435. package/dist/components/menu-label/menu-label.component.js +7 -7
  436. package/dist/components/menu-label/menu-label.d.ts +0 -6
  437. package/dist/components/menu-label/menu-label.js +8 -8
  438. package/dist/components/menu-label/menu-label.styles.d.ts +0 -6
  439. package/dist/components/menu-label/menu-label.styles.js +1 -1
  440. package/dist/components/nav-item/nav-item.component.js +12 -12
  441. package/dist/components/nav-item/nav-item.js +13 -13
  442. package/dist/components/optgroup/optgroup.component.js +7 -7
  443. package/dist/components/optgroup/optgroup.js +8 -8
  444. package/dist/components/option/option.component.d.ts +0 -6
  445. package/dist/components/option/option.component.js +17 -12
  446. package/dist/components/option/option.d.ts +0 -6
  447. package/dist/components/option/option.js +18 -13
  448. package/dist/components/option/option.styles.d.ts +0 -6
  449. package/dist/components/option/option.styles.js +1 -1
  450. package/dist/components/popup/popup.component.d.ts +0 -6
  451. package/dist/components/popup/popup.component.js +6 -6
  452. package/dist/components/popup/popup.d.ts +0 -6
  453. package/dist/components/popup/popup.js +7 -7
  454. package/dist/components/popup/popup.styles.d.ts +0 -6
  455. package/dist/components/popup/popup.styles.js +1 -1
  456. package/dist/components/prio-nav/prio-nav.component.js +25 -25
  457. package/dist/components/prio-nav/prio-nav.js +26 -26
  458. package/dist/components/progress-bar/progress-bar.component.d.ts +0 -6
  459. package/dist/components/progress-bar/progress-bar.component.js +6 -6
  460. package/dist/components/progress-bar/progress-bar.d.ts +0 -6
  461. package/dist/components/progress-bar/progress-bar.js +7 -7
  462. package/dist/components/progress-bar/progress-bar.styles.d.ts +0 -6
  463. package/dist/components/progress-bar/progress-bar.styles.js +1 -1
  464. package/dist/components/progress-ring/progress-ring.component.d.ts +0 -6
  465. package/dist/components/progress-ring/progress-ring.component.js +6 -6
  466. package/dist/components/progress-ring/progress-ring.d.ts +0 -6
  467. package/dist/components/progress-ring/progress-ring.js +7 -7
  468. package/dist/components/progress-ring/progress-ring.styles.d.ts +0 -6
  469. package/dist/components/progress-ring/progress-ring.styles.js +1 -1
  470. package/dist/components/radio/radio.component.d.ts +0 -6
  471. package/dist/components/radio/radio.component.js +14 -13
  472. package/dist/components/radio/radio.d.ts +0 -6
  473. package/dist/components/radio/radio.js +15 -14
  474. package/dist/components/radio/radio.styles.d.ts +0 -6
  475. package/dist/components/radio/radio.styles.js +1 -1
  476. package/dist/components/radio-button/radio-button.component.d.ts +0 -6
  477. package/dist/components/radio-button/radio-button.component.js +11 -10
  478. package/dist/components/radio-button/radio-button.d.ts +0 -6
  479. package/dist/components/radio-button/radio-button.js +12 -11
  480. package/dist/components/radio-button/radio-button.styles.d.ts +0 -6
  481. package/dist/components/radio-button/radio-button.styles.js +2 -2
  482. package/dist/components/radio-group/radio-group.component.d.ts +0 -6
  483. package/dist/components/radio-group/radio-group.component.js +15 -13
  484. package/dist/components/radio-group/radio-group.d.ts +0 -6
  485. package/dist/components/radio-group/radio-group.js +16 -14
  486. package/dist/components/radio-group/radio-group.styles.d.ts +0 -6
  487. package/dist/components/radio-group/radio-group.styles.js +1 -1
  488. package/dist/components/range/range.component.js +22 -21
  489. package/dist/components/range/range.js +23 -22
  490. package/dist/components/range-tick/range-tick.component.js +3 -3
  491. package/dist/components/range-tick/range-tick.js +4 -4
  492. package/dist/components/resize-observer/resize-observer.component.d.ts +0 -6
  493. package/dist/components/resize-observer/resize-observer.component.js +5 -5
  494. package/dist/components/resize-observer/resize-observer.styles.d.ts +0 -6
  495. package/dist/components/resize-observer/resize-observer.styles.js +1 -1
  496. package/dist/components/select/select.component.d.ts +0 -6
  497. package/dist/components/select/select.component.js +30 -29
  498. package/dist/components/select/select.d.ts +0 -6
  499. package/dist/components/select/select.js +31 -30
  500. package/dist/components/select/select.styles.d.ts +0 -6
  501. package/dist/components/select/select.styles.js +1 -1
  502. package/dist/components/side-nav/side-nav.component.js +29 -28
  503. package/dist/components/side-nav/side-nav.js +30 -29
  504. package/dist/components/spinner/spinner.component.d.ts +0 -6
  505. package/dist/components/spinner/spinner.component.js +6 -6
  506. package/dist/components/spinner/spinner.d.ts +0 -6
  507. package/dist/components/spinner/spinner.js +7 -7
  508. package/dist/components/spinner/spinner.styles.d.ts +0 -6
  509. package/dist/components/spinner/spinner.styles.js +1 -1
  510. package/dist/components/switch/switch.component.d.ts +0 -6
  511. package/dist/components/switch/switch.component.js +13 -12
  512. package/dist/components/switch/switch.d.ts +0 -6
  513. package/dist/components/switch/switch.js +14 -13
  514. package/dist/components/switch/switch.styles.d.ts +0 -6
  515. package/dist/components/switch/switch.styles.js +1 -1
  516. package/dist/components/tab/tab.component.d.ts +0 -6
  517. package/dist/components/tab/tab.component.js +18 -17
  518. package/dist/components/tab/tab.d.ts +0 -6
  519. package/dist/components/tab/tab.js +19 -18
  520. package/dist/components/tab/tab.styles.d.ts +0 -6
  521. package/dist/components/tab/tab.styles.js +1 -1
  522. package/dist/components/tab-group/tab-group.component.d.ts +0 -6
  523. package/dist/components/tab-group/tab-group.component.js +21 -20
  524. package/dist/components/tab-group/tab-group.d.ts +0 -6
  525. package/dist/components/tab-group/tab-group.js +22 -21
  526. package/dist/components/tab-group/tab-group.styles.d.ts +0 -6
  527. package/dist/components/tab-group/tab-group.styles.js +1 -1
  528. package/dist/components/tab-panel/tab-panel.component.d.ts +0 -6
  529. package/dist/components/tab-panel/tab-panel.component.js +5 -5
  530. package/dist/components/tab-panel/tab-panel.d.ts +0 -6
  531. package/dist/components/tab-panel/tab-panel.js +6 -6
  532. package/dist/components/tab-panel/tab-panel.styles.d.ts +0 -6
  533. package/dist/components/tab-panel/tab-panel.styles.js +1 -1
  534. package/dist/components/tag/tag.component.d.ts +0 -6
  535. package/dist/components/tag/tag.component.js +18 -17
  536. package/dist/components/tag/tag.d.ts +0 -6
  537. package/dist/components/tag/tag.js +19 -18
  538. package/dist/components/tag/tag.styles.d.ts +0 -6
  539. package/dist/components/tag/tag.styles.js +1 -1
  540. package/dist/components/textarea/textarea.component.d.ts +0 -6
  541. package/dist/components/textarea/textarea.component.js +13 -12
  542. package/dist/components/textarea/textarea.d.ts +0 -6
  543. package/dist/components/textarea/textarea.js +14 -13
  544. package/dist/components/textarea/textarea.styles.d.ts +0 -6
  545. package/dist/components/textarea/textarea.styles.js +1 -1
  546. package/dist/components/tooltip/tooltip.component.d.ts +0 -6
  547. package/dist/components/tooltip/tooltip.component.js +12 -12
  548. package/dist/components/tooltip/tooltip.d.ts +0 -6
  549. package/dist/components/tooltip/tooltip.js +13 -13
  550. package/dist/components/tooltip/tooltip.styles.d.ts +0 -6
  551. package/dist/components/tooltip/tooltip.styles.js +1 -1
  552. package/dist/components/validate/utility.js +2 -2
  553. package/dist/components/validate/validate.component.js +24 -23
  554. package/dist/components/validate/validate.js +25 -24
  555. package/dist/custom-elements.json +336 -54
  556. package/dist/events/syn-after-hide.d.ts +0 -6
  557. package/dist/events/syn-after-show.d.ts +0 -6
  558. package/dist/events/syn-blur.d.ts +0 -6
  559. package/dist/events/syn-change.d.ts +0 -6
  560. package/dist/events/syn-clear.d.ts +0 -6
  561. package/dist/events/syn-close.d.ts +0 -6
  562. package/dist/events/syn-default-settings-changed.d.ts +1 -1
  563. package/dist/events/syn-error.d.ts +0 -6
  564. package/dist/events/syn-focus.d.ts +0 -6
  565. package/dist/events/syn-hide.d.ts +0 -6
  566. package/dist/events/syn-initial-focus.d.ts +0 -6
  567. package/dist/events/syn-input.d.ts +0 -6
  568. package/dist/events/syn-invalid.d.ts +0 -6
  569. package/dist/events/syn-load.d.ts +0 -6
  570. package/dist/events/syn-remove.d.ts +0 -6
  571. package/dist/events/syn-reposition.d.ts +0 -6
  572. package/dist/events/syn-request-close.d.ts +0 -6
  573. package/dist/events/syn-resize.d.ts +0 -6
  574. package/dist/events/syn-select.d.ts +0 -6
  575. package/dist/events/syn-show.d.ts +0 -6
  576. package/dist/events/syn-tab-hide.d.ts +0 -6
  577. package/dist/events/syn-tab-show.d.ts +0 -6
  578. package/dist/internal/active-elements.d.ts +0 -6
  579. package/dist/internal/animate.d.ts +0 -6
  580. package/dist/internal/default-value.d.ts +0 -6
  581. package/dist/internal/event.d.ts +0 -6
  582. package/dist/internal/form.d.ts +0 -6
  583. package/dist/internal/modal.d.ts +0 -6
  584. package/dist/internal/offset.d.ts +0 -6
  585. package/dist/internal/scroll.d.ts +0 -6
  586. package/dist/internal/scrollend-polyfill.d.ts +0 -6
  587. package/dist/internal/slot.d.ts +0 -6
  588. package/dist/internal/string.d.ts +0 -6
  589. package/dist/internal/synergy-element.d.ts +0 -6
  590. package/dist/internal/tabbable.d.ts +0 -6
  591. package/dist/internal/test/data-testid-helpers.d.ts +0 -6
  592. package/dist/internal/test/element-visible-overflow.d.ts +0 -6
  593. package/dist/internal/test/form-control-base-tests.d.ts +0 -6
  594. package/dist/internal/test/wait-for-scrolling.d.ts +0 -6
  595. package/dist/internal/test.d.ts +0 -6
  596. package/dist/internal/watch.d.ts +0 -6
  597. package/dist/styles/component.styles.d.ts +0 -6
  598. package/dist/styles/form-control.styles.d.ts +0 -6
  599. package/dist/styles/index.css +1 -7
  600. package/dist/styles/utility.css +0 -6
  601. package/dist/synergy-autoloader.d.ts +0 -6
  602. package/dist/synergy-autoloader.js +1 -1
  603. package/dist/synergy-autoloader.js.map +2 -2
  604. package/dist/synergy.js +177 -175
  605. package/dist/translations/de.d.ts +0 -6
  606. package/dist/translations/de.js +3 -4
  607. package/dist/translations/de.js.map +2 -2
  608. package/dist/translations/en.d.ts +0 -6
  609. package/dist/translations/en.js +1 -1
  610. package/dist/utilities/animation-registry.d.ts +0 -6
  611. package/dist/utilities/animation-registry.js +1 -1
  612. package/dist/utilities/base-path.d.ts +0 -6
  613. package/dist/utilities/base-path.js +1 -1
  614. package/dist/utilities/defaultSettings/base.d.ts +7 -1
  615. package/dist/utilities/defaultSettings/base.js +1 -1
  616. package/dist/utilities/defaultSettings/decorator.js +4 -3
  617. package/dist/utilities/defaultSettings/functions.js +3 -2
  618. package/dist/utilities/defaultSettings/index.js +4 -3
  619. package/dist/utilities/defaultSettings/sort.d.ts +9 -0
  620. package/dist/utilities/defaultSettings/sort.js +10 -0
  621. package/dist/utilities/defaultSettings/sort.js.map +7 -0
  622. package/dist/utilities/form.d.ts +0 -6
  623. package/dist/utilities/form.js +2 -2
  624. package/dist/utilities/icon-library.d.ts +0 -6
  625. package/dist/utilities/icon-library.js +3 -3
  626. package/dist/utilities/localize.d.ts +0 -6
  627. package/dist/utilities/localize.js +2 -2
  628. package/dist/vscode.html-custom-data.json +44 -7
  629. package/package.json +4 -9
  630. package/dist/chunks/chunk.234ERFCE.js.map +0 -7
  631. package/dist/chunks/chunk.2ACTZBEC.js.map +0 -7
  632. package/dist/chunks/chunk.2GP2EYG4.js.map +0 -7
  633. package/dist/chunks/chunk.2RSO2DKG.js.map +0 -7
  634. package/dist/chunks/chunk.34V3QOIQ.js.map +0 -7
  635. package/dist/chunks/chunk.36BZPB3H.js.map +0 -7
  636. package/dist/chunks/chunk.3EJU447K.js.map +0 -7
  637. package/dist/chunks/chunk.3EQF2FRQ.js.map +0 -7
  638. package/dist/chunks/chunk.3FT4KLCP.js.map +0 -7
  639. package/dist/chunks/chunk.3NXKLKWH.js.map +0 -7
  640. package/dist/chunks/chunk.43YNZAWL.js.map +0 -7
  641. package/dist/chunks/chunk.4ADVK4N5.js.map +0 -7
  642. package/dist/chunks/chunk.4BRJ5OJE.js.map +0 -7
  643. package/dist/chunks/chunk.4T2NDUOQ.js.map +0 -7
  644. package/dist/chunks/chunk.4TB35TYG.js.map +0 -7
  645. package/dist/chunks/chunk.4URTG3MF.js.map +0 -7
  646. package/dist/chunks/chunk.4ZEHQOJ3.js.map +0 -7
  647. package/dist/chunks/chunk.5732DMBC.js.map +0 -7
  648. package/dist/chunks/chunk.5F5Y2RD6.js.map +0 -7
  649. package/dist/chunks/chunk.5QGW4QZT.js.map +0 -7
  650. package/dist/chunks/chunk.5SQ7NVBX.js.map +0 -7
  651. package/dist/chunks/chunk.5T3K7UXO.js.map +0 -7
  652. package/dist/chunks/chunk.67NOFASU.js.map +0 -7
  653. package/dist/chunks/chunk.6B7GMPMK.js.map +0 -7
  654. package/dist/chunks/chunk.6EK4W7PI.js.map +0 -7
  655. package/dist/chunks/chunk.6EKUFYET.js.map +0 -7
  656. package/dist/chunks/chunk.6EPU7YUS.js.map +0 -7
  657. package/dist/chunks/chunk.6KTVNSPY.js.map +0 -7
  658. package/dist/chunks/chunk.6OX2AX3Z.js.map +0 -7
  659. package/dist/chunks/chunk.6VA5V372.js.map +0 -7
  660. package/dist/chunks/chunk.7SIMUMVH.js.map +0 -7
  661. package/dist/chunks/chunk.ADSEQZBF.js.map +0 -7
  662. package/dist/chunks/chunk.ATT3RT4A.js.map +0 -7
  663. package/dist/chunks/chunk.AZ3N5IOO.js.map +0 -7
  664. package/dist/chunks/chunk.B3UAPU32.js.map +0 -7
  665. package/dist/chunks/chunk.BIJTSOZF.js +0 -43
  666. package/dist/chunks/chunk.BIJTSOZF.js.map +0 -7
  667. package/dist/chunks/chunk.BXY667C7.js.map +0 -7
  668. package/dist/chunks/chunk.C2CWYCOU.js.map +0 -7
  669. package/dist/chunks/chunk.C2ENQBPM.js.map +0 -7
  670. package/dist/chunks/chunk.C4JTZKPZ.js.map +0 -7
  671. package/dist/chunks/chunk.D5GEYHUG.js.map +0 -7
  672. package/dist/chunks/chunk.D6IIQDWJ.js.map +0 -7
  673. package/dist/chunks/chunk.DHT3ZN7B.js.map +0 -7
  674. package/dist/chunks/chunk.DQKV5FSY.js.map +0 -7
  675. package/dist/chunks/chunk.DZ7YIR5N.js.map +0 -7
  676. package/dist/chunks/chunk.EHSNF4SS.js.map +0 -7
  677. package/dist/chunks/chunk.EIJX4T2G.js.map +0 -7
  678. package/dist/chunks/chunk.EMTWFPA4.js.map +0 -7
  679. package/dist/chunks/chunk.F4TDCDGD.js.map +0 -7
  680. package/dist/chunks/chunk.FD2CG2HT.js.map +0 -7
  681. package/dist/chunks/chunk.FQWBH6B3.js.map +0 -7
  682. package/dist/chunks/chunk.FSWTBNSI.js.map +0 -7
  683. package/dist/chunks/chunk.FSZIE7IO.js.map +0 -7
  684. package/dist/chunks/chunk.G4URZQCL.js.map +0 -7
  685. package/dist/chunks/chunk.GJIDYO3Z.js.map +0 -7
  686. package/dist/chunks/chunk.GRVNUIP2.js.map +0 -7
  687. package/dist/chunks/chunk.HVXG4JG6.js.map +0 -7
  688. package/dist/chunks/chunk.HW62YVCL.js.map +0 -7
  689. package/dist/chunks/chunk.IAS6MLT6.js.map +0 -7
  690. package/dist/chunks/chunk.IMZSPXJV.js.map +0 -7
  691. package/dist/chunks/chunk.IOFVUQIY.js.map +0 -7
  692. package/dist/chunks/chunk.IVM3BGRH.js.map +0 -7
  693. package/dist/chunks/chunk.IYB26JEV.js.map +0 -7
  694. package/dist/chunks/chunk.JE5Y2YD7.js.map +0 -7
  695. package/dist/chunks/chunk.JG7YXWHG.js.map +0 -7
  696. package/dist/chunks/chunk.JKSFECFA.js.map +0 -7
  697. package/dist/chunks/chunk.JLXCLATV.js.map +0 -7
  698. package/dist/chunks/chunk.JX6C3ADT.js.map +0 -7
  699. package/dist/chunks/chunk.K5VB7VKA.js.map +0 -7
  700. package/dist/chunks/chunk.K62NPKGN.js.map +0 -7
  701. package/dist/chunks/chunk.KPBZSLEA.js.map +0 -7
  702. package/dist/chunks/chunk.KW5TWA5Y.js.map +0 -7
  703. package/dist/chunks/chunk.LBN3HL2T.js.map +0 -7
  704. package/dist/chunks/chunk.LJGUOWPM.js.map +0 -7
  705. package/dist/chunks/chunk.LVYJDZMX.js.map +0 -7
  706. package/dist/chunks/chunk.M72HMQL6.js.map +0 -7
  707. package/dist/chunks/chunk.MJ4Q6YEU.js.map +0 -7
  708. package/dist/chunks/chunk.MM3NO6GS.js.map +0 -7
  709. package/dist/chunks/chunk.MU43DZ7W.js.map +0 -7
  710. package/dist/chunks/chunk.N6C27EXQ.js.map +0 -7
  711. package/dist/chunks/chunk.N7BCC4V5.js.map +0 -7
  712. package/dist/chunks/chunk.N7LV5KRH.js.map +0 -7
  713. package/dist/chunks/chunk.N7QJ54ZM.js.map +0 -7
  714. package/dist/chunks/chunk.NLYVOJGK.js.map +0 -7
  715. package/dist/chunks/chunk.O644HRW3.js.map +0 -7
  716. package/dist/chunks/chunk.O6ZH6AOI.js.map +0 -7
  717. package/dist/chunks/chunk.OAQRCZOO.js.map +0 -7
  718. package/dist/chunks/chunk.OBERL73O.js.map +0 -7
  719. package/dist/chunks/chunk.OHDB73E6.js.map +0 -7
  720. package/dist/chunks/chunk.OI3HOOCT.js.map +0 -7
  721. package/dist/chunks/chunk.OIB4NIRJ.js.map +0 -7
  722. package/dist/chunks/chunk.PGGH5VGL.js.map +0 -7
  723. package/dist/chunks/chunk.PKYC7QF3.js.map +0 -7
  724. package/dist/chunks/chunk.PR7SSUOT.js.map +0 -7
  725. package/dist/chunks/chunk.PWODN6WT.js.map +0 -7
  726. package/dist/chunks/chunk.Q3SJASPT.js.map +0 -7
  727. package/dist/chunks/chunk.QACXXBE3.js.map +0 -7
  728. package/dist/chunks/chunk.QT47J2O6.js.map +0 -7
  729. package/dist/chunks/chunk.QUM76UHV.js.map +0 -7
  730. package/dist/chunks/chunk.QXZFSE4T.js.map +0 -7
  731. package/dist/chunks/chunk.R5WFWL7W.js.map +0 -7
  732. package/dist/chunks/chunk.RAOPZXJL.js.map +0 -7
  733. package/dist/chunks/chunk.RBOU3KVS.js.map +0 -7
  734. package/dist/chunks/chunk.RMIDAEF5.js.map +0 -7
  735. package/dist/chunks/chunk.RV5JERXK.js.map +0 -7
  736. package/dist/chunks/chunk.S22BO5SF.js.map +0 -7
  737. package/dist/chunks/chunk.SLKJ2OJN.js.map +0 -7
  738. package/dist/chunks/chunk.SUH6DGJ5.js.map +0 -7
  739. package/dist/chunks/chunk.U5757NSE.js.map +0 -7
  740. package/dist/chunks/chunk.U6VNE4JX.js.map +0 -7
  741. package/dist/chunks/chunk.UAUY6RVN.js.map +0 -7
  742. package/dist/chunks/chunk.UBGDTOZZ.js.map +0 -7
  743. package/dist/chunks/chunk.UT3DWYFM.js.map +0 -7
  744. package/dist/chunks/chunk.VA26EAEP.js.map +0 -7
  745. package/dist/chunks/chunk.VBPHUZ5N.js.map +0 -7
  746. package/dist/chunks/chunk.VV3WAINT.js.map +0 -7
  747. package/dist/chunks/chunk.VYQ53GHN.js.map +0 -7
  748. package/dist/chunks/chunk.WVVQK5TE.js.map +0 -7
  749. package/dist/chunks/chunk.X57JLQDS.js.map +0 -7
  750. package/dist/chunks/chunk.X7XPEYAM.js.map +0 -7
  751. package/dist/chunks/chunk.XAQKFEHH.js.map +0 -7
  752. package/dist/chunks/chunk.XDOZEDCW.js.map +0 -7
  753. package/dist/chunks/chunk.XL2GZSHM.js.map +0 -7
  754. package/dist/chunks/chunk.XTWO6ZZW.js.map +0 -7
  755. package/dist/chunks/chunk.Y5TMYX2L.js.map +0 -7
  756. package/dist/chunks/chunk.YBITSWNW.js.map +0 -7
  757. package/dist/chunks/chunk.YIYXW5NV.js.map +0 -7
  758. package/dist/chunks/chunk.YTEJW7IF.js.map +0 -7
  759. package/dist/chunks/chunk.Z3SZOYBJ.js.map +0 -7
  760. package/dist/chunks/chunk.ZBW4ZSZ7.js.map +0 -7
  761. package/dist/chunks/chunk.ZNJG4EY4.js.map +0 -7
  762. package/dist/chunks/chunk.ZR7J6ZEM.js.map +0 -7
  763. /package/dist/chunks/{chunk.FVYPYWJH.js.map → chunk.2J5ARXAO.js.map} +0 -0
  764. /package/dist/chunks/{chunk.I5R3PXG7.js.map → chunk.3GSHQV5Q.js.map} +0 -0
  765. /package/dist/chunks/{chunk.HSQZ3ZWE.js.map → chunk.6EHOI2BO.js.map} +0 -0
  766. /package/dist/chunks/{chunk.BNHQTT5B.js.map → chunk.6PRXWBZE.js.map} +0 -0
  767. /package/dist/chunks/{chunk.XKT2M3XA.js.map → chunk.7G6N24FO.js.map} +0 -0
  768. /package/dist/chunks/{chunk.AF4RYZHB.js.map → chunk.BJVWQ3LR.js.map} +0 -0
  769. /package/dist/chunks/{chunk.R4FCX5PU.js.map → chunk.CEP5JF3B.js.map} +0 -0
  770. /package/dist/chunks/{chunk.42F33KBM.js.map → chunk.FUYMXIMF.js.map} +0 -0
  771. /package/dist/chunks/{chunk.P3JEES5B.js.map → chunk.GOAMFSM4.js.map} +0 -0
  772. /package/dist/chunks/{chunk.JYLOZXGC.js.map → chunk.KOKPJSO2.js.map} +0 -0
  773. /package/dist/chunks/{chunk.UPDHOWDW.js.map → chunk.KRR2BTZW.js.map} +0 -0
  774. /package/dist/chunks/{chunk.X6HKBVIE.js.map → chunk.MP5AW7KH.js.map} +0 -0
  775. /package/dist/chunks/{chunk.4I2C7KCE.js.map → chunk.O6TRAUHQ.js.map} +0 -0
  776. /package/dist/chunks/{chunk.DRLFKWVC.js.map → chunk.QWIUHODV.js.map} +0 -0
  777. /package/dist/chunks/{chunk.HXLRLIDZ.js.map → chunk.S7JH7R5W.js.map} +0 -0
  778. /package/dist/chunks/{chunk.ZPL7FJ2H.js.map → chunk.T23XHCUI.js.map} +0 -0
  779. /package/dist/chunks/{chunk.4FRKK5XY.js.map → chunk.UOOCDAPN.js.map} +0 -0
  780. /package/dist/chunks/{chunk.56BJYBST.js.map → chunk.UWMO4OOX.js.map} +0 -0
  781. /package/dist/chunks/{chunk.B56PMMC4.js.map → chunk.WHDNCE4Q.js.map} +0 -0
  782. /package/dist/chunks/{chunk.JQ4NCOOB.js.map → chunk.WNUAJF2S.js.map} +0 -0
  783. /package/dist/chunks/{chunk.KSWDM4HW.js.map → chunk.YACUYJZN.js.map} +0 -0
  784. /package/dist/chunks/{chunk.KLUICBMV.js.map → chunk.YSKOI4OG.js.map} +0 -0
  785. /package/dist/chunks/{chunk.WPVUSCH3.js.map → chunk.YUK555QP.js.map} +0 -0
  786. /package/dist/chunks/{chunk.DXVTZKXX.js.map → chunk.YZMG6OGY.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/tab-panel/tab-panel.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport SynTabPanel from './tab-panel.component.js';\n\nexport * from './tab-panel.component.js';\nexport default SynTabPanel;\n\nSynTabPanel.define('syn-tab-panel');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-tab-panel': SynTabPanel;\n }\n}\n"],
5
+ "mappings": ";;;;;AAIA,IAAO,oBAAQ;AAEf,YAAY,OAAO,eAAe;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSelect
3
- } from "./chunk.6EK4W7PI.js";
3
+ } from "./chunk.OYDK7VLV.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.Z3SZOYBJ.js.map
12
+ //# sourceMappingURL=chunk.RXBJIQCC.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/select/select.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport SynSelect from './select.component.js';\n\nexport * from './select.component.js';\nexport default SynSelect;\n\nSynSelect.define('syn-select');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-select': SynSelect;\n }\n}\n"],
5
+ "mappings": ";;;;;AAIA,IAAO,iBAAQ;AAEf,UAAU,OAAO,YAAY;",
6
+ "names": []
7
+ }
@@ -1,7 +1,10 @@
1
1
  import {
2
2
  INITIAL_DEFAULT_SETTINGS,
3
3
  defaultSettings
4
- } from "./chunk.N6C27EXQ.js";
4
+ } from "./chunk.VL3GX6WV.js";
5
+ import {
6
+ sortComponentsForUpdate
7
+ } from "./chunk.VMLERD3J.js";
5
8
 
6
9
  // src/utilities/defaultSettings/functions.ts
7
10
  var SYNERGY_SETTING_EMIT_EVENTS = false;
@@ -10,7 +13,13 @@ var elementPropertyCache = /* @__PURE__ */ new Map();
10
13
  var globalEventNotificationMap = /* @__PURE__ */ new Set();
11
14
  function defaultSettingsHandler(e) {
12
15
  const { detail } = e;
13
- Object.entries(detail).forEach(([componentName, changes]) => {
16
+ const sortedDetail = sortComponentsForUpdate(
17
+ Object.keys(detail)
18
+ ).map((componentName) => ({
19
+ changes: detail[componentName],
20
+ componentName
21
+ }));
22
+ sortedDetail.forEach(({ componentName, changes }) => {
14
23
  globalEventNotificationMap.forEach((element) => {
15
24
  if (element.__originalDecoratedClassName !== "undefined" && element.__originalDecoratedClassName === componentName) {
16
25
  element.overrideGlobalSettings(changes);
@@ -113,16 +122,23 @@ var setGlobalDefaultSettings = (newSettings) => {
113
122
  newValue,
114
123
  oldValue: defaultSettings[key][component]
115
124
  });
116
- defaultSettings[key][component] = newValue;
117
125
  });
118
126
  }
119
127
  });
120
- Object.entries(detail).forEach(([component, changes]) => {
121
- const cachedItem = elementPropertyCache.get(component);
122
- if (typeof cachedItem !== "undefined") {
128
+ const componentsToUpdate = Object.keys(detail);
129
+ const sortedComponents = sortComponentsForUpdate(componentsToUpdate);
130
+ sortedComponents.forEach((component) => {
131
+ const changes = detail[component];
132
+ if (changes) {
123
133
  changes.forEach((change) => {
124
- cachedItem[change.attribute] = change.newValue;
134
+ defaultSettings[change.attribute][component] = change.newValue;
125
135
  });
136
+ const cachedItem = elementPropertyCache.get(component);
137
+ if (typeof cachedItem !== "undefined") {
138
+ changes.forEach((change) => {
139
+ cachedItem[change.attribute] = change.newValue;
140
+ });
141
+ }
126
142
  }
127
143
  });
128
144
  if (SYNERGY_SETTING_EMIT_EVENTS) {
@@ -148,4 +164,4 @@ export {
148
164
  setGlobalDefaultSettings,
149
165
  resetGlobalDefaultSettings
150
166
  };
151
- //# sourceMappingURL=chunk.ZVOOP3PI.js.map
167
+ //# sourceMappingURL=chunk.RY3ZM7MQ.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utilities/defaultSettings/functions.ts"],
4
- "sourcesContent": ["/* eslint-disable no-underscore-dangle */\nimport type SynergyElement from '../../internal/synergy-element.js';\nimport {\n type AllowedValueForDefaultSetting,\n type ComponentNamesWithDefaultValues,\n type ExtractSettingsForElement,\n type GlobalSettingsEnabledElement,\n INITIAL_DEFAULT_SETTINGS,\n type RecursivePartial,\n type SynDefaultSettings,\n defaultSettings,\n} from './base.js';\nimport type { SynDefaultChangedAttribute, SynDefaultSettingsChangedEvent } from '../../events/events.js';\n\n/**\n * Whether to emit events when the default settings change\n */\nlet SYNERGY_SETTING_EMIT_EVENTS = false;\n\n/**\n * Internal flag to check if the global event listeners have been set up\n */\nlet hasGlobalEventSetup = false;\n\n// Cache for speeding up lookups\nconst elementPropertyCache = new Map<ComponentNamesWithDefaultValues, Record<string, unknown>>();\n\n/**\n * List of all components that have default values\n */\nconst globalEventNotificationMap = new Set<GlobalSettingsEnabledElement>();\n\n/**\n * The default setting update handler that is bound to the global event\n * @param e The syn-default-settings-change-event emitted\n */\nfunction defaultSettingsHandler(e: SynDefaultSettingsChangedEvent) {\n const { detail } = e;\n Object.entries(detail).forEach(([componentName, changes]) => {\n globalEventNotificationMap.forEach(element => {\n if (\n element.__originalDecoratedClassName !== 'undefined'\n && element.__originalDecoratedClassName === componentName\n ) {\n element.overrideGlobalSettings(changes);\n }\n });\n });\n}\n\n/**\n * Enables or disables the setting to emit events when the default settings change\n * @param enabled Whether to enable or disable the setting\n */\nexport const enableSettingEmitEvents = (enabled = true) => {\n SYNERGY_SETTING_EMIT_EVENTS = enabled;\n\n if (!enabled) {\n // Make sure to always remove the old element cache\n // when the feature is disabled.\n // Otherwise, we could get a memory leak\n globalEventNotificationMap.clear();\n\n hasGlobalEventSetup = false;\n window.removeEventListener('syn-default-settings-changed', defaultSettingsHandler, {\n capture: true,\n });\n return;\n }\n\n if (enabled && !hasGlobalEventSetup) {\n hasGlobalEventSetup = true;\n window.addEventListener('syn-default-settings-changed', defaultSettingsHandler, {\n capture: true,\n });\n }\n};\n\n/**\n * Enables or disables the setting to emit events when the default settings change\n * @param enabled Whether to enable or disable the setting\n *\n * @deprecated This API is now marked stable. Please use enableSettingEmitEvents instead!\n */\nexport const enableExperimentalSettingEmitEvents = (enabled = true) => {\n enableSettingEmitEvents(enabled);\n};\n\n/**\n * Adds an element to the global event notification map\n * Does not have any effect when SYNERGY_SETTING_EMIT_EVENTS is false\n * @param element The element to add\n */\nexport const addGlobalEventNotification = (\n element: GlobalSettingsEnabledElement,\n) => {\n if (\n SYNERGY_SETTING_EMIT_EVENTS\n && !globalEventNotificationMap.has(element)\n ) {\n globalEventNotificationMap.add(element);\n }\n};\n\n/**\n * Removes an element from the global event notification map\n * Does not have any effect when SYNERGY_SETTING_EMIT_EVENTS is false\n * @param element The element to remove\n */\nexport const removeGlobalEventNotification = (\n element: GlobalSettingsEnabledElement,\n) => {\n // Always try to remove the element from the map\n // This is done because the event support might have been disabled\n // between the time the element was added and removed\n if (globalEventNotificationMap.has(element)) {\n globalEventNotificationMap.delete(element);\n }\n};\n\n/**\n * Extracts all available default settings for a given component\n * @param component The name of the component to get the settings for\n * @param from The source to get the settings from\n * @returns key value pair of found settings for the given component\n */\nexport const extractDefaultSettingsForElement = (\n component: ComponentNamesWithDefaultValues,\n from: 'default' | 'initial' = 'default',\n) => {\n const store = from === 'default' ? defaultSettings : INITIAL_DEFAULT_SETTINGS;\n\n // When we have settings in the cache, make sure to use them to speed them up when possible.\n // This is only available when using the default source!\n if (from === 'default') {\n const cachedSettings = elementPropertyCache.get(component);\n if (typeof cachedSettings !== 'undefined') {\n return cachedSettings;\n }\n }\n\n const allElementSettings = Object.entries(store).reduce(\n (acc: Record<string, unknown>, [key, value]) => {\n const elementSetting = value[component as keyof SynDefaultSettings[keyof SynDefaultSettings]];\n if (elementSetting) {\n acc[key] = elementSetting;\n }\n return acc;\n },\n {},\n );\n\n // Set the cache item when we are using the default source\n if (from === 'default') {\n elementPropertyCache.set(component, allElementSettings);\n }\n\n return allElementSettings;\n};\n\n/**\n * Set the default values for a given component\n * @param component The component to set the defaults for\n * @param newValues Map of new values to set\n */\nexport const setDefaultSettingsForElement = <C extends SynergyElement>(\n component: ComponentNamesWithDefaultValues,\n newValues: Partial<ExtractSettingsForElement<C>>,\n) => {\n // List of all changes in the default settings\n const detail = {\n [component]: [] as SynDefaultChangedAttribute[],\n } as Record<string, SynDefaultChangedAttribute[]>;\n\n Object.entries(newValues).forEach(([key, value]) => {\n if (\n defaultSettings[key as keyof SynDefaultSettings]\n && typeof (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] !== 'undefined'\n ) {\n detail[component].push({\n attribute: key,\n newValue: value,\n oldValue:\n defaultSettings[key as keyof SynDefaultSettings][\n component as keyof SynDefaultSettings[keyof SynDefaultSettings]\n ],\n });\n\n (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] = value as AllowedValueForDefaultSetting<C, keyof C>;\n }\n });\n\n // Make sure to clean up the cache when we change the default settings\n const cachedItem = elementPropertyCache.get(component);\n if (typeof cachedItem !== 'undefined') {\n detail[component].forEach(change => {\n cachedItem[change.attribute] = change.newValue;\n });\n }\n\n // Fire the change event\n if (SYNERGY_SETTING_EMIT_EVENTS) {\n const event = new CustomEvent<typeof detail>('syn-default-settings-changed', {\n bubbles: true,\n detail,\n });\n dispatchEvent(event);\n }\n\n return defaultSettings;\n};\n\n/**\n * Set the global default settings\n * @param newSettings The new settings to set\n */\nexport const setGlobalDefaultSettings = (\n newSettings: RecursivePartial<SynDefaultSettings>,\n): SynDefaultSettings => {\n // List of all changes in the default settings\n const detail = {} as Record<string, SynDefaultChangedAttribute[]>;\n\n Object.entries(newSettings).forEach(([key, value]) => {\n if (defaultSettings[key as keyof SynDefaultSettings]) {\n Object.entries(value).forEach(([component, newValue]) => {\n // Create the component part of details if it does not exist yet\n if (!detail[component]) {\n detail[component] = [];\n }\n\n // Add the changed attribute to the detail object\n detail[component].push({\n attribute: key,\n newValue: newValue as unknown,\n oldValue:\n defaultSettings[key as keyof SynDefaultSettings][\n component as keyof SynDefaultSettings[keyof SynDefaultSettings]\n ],\n });\n\n // Set the new value\n (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] = newValue;\n });\n }\n });\n\n // Make sure to update the cache when we change a default settings\n Object\n .entries(detail)\n .forEach(([component, changes]) => {\n const cachedItem = elementPropertyCache.get(component as ComponentNamesWithDefaultValues);\n if (typeof cachedItem !== 'undefined') {\n changes.forEach(change => {\n cachedItem[change.attribute] = change.newValue;\n });\n }\n });\n\n // Fire the change event\n if (SYNERGY_SETTING_EMIT_EVENTS) {\n const event = new CustomEvent<typeof detail>('syn-default-settings-changed', {\n bubbles: true,\n detail,\n });\n dispatchEvent(event);\n }\n\n return defaultSettings;\n};\n\n/**\n * Reset the global default settings to synergies initial values\n */\nexport const resetGlobalDefaultSettings = (): SynDefaultSettings => setGlobalDefaultSettings(\n INITIAL_DEFAULT_SETTINGS,\n);\n"],
5
- "mappings": ";;;;;;AAiBA,IAAI,8BAA8B;AAKlC,IAAI,sBAAsB;AAG1B,IAAM,uBAAuB,oBAAI,IAA8D;AAK/F,IAAM,6BAA6B,oBAAI,IAAkC;AAMzE,SAAS,uBAAuB,GAAmC;AACjE,QAAM,EAAE,OAAO,IAAI;AACnB,SAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC,CAAC,eAAe,OAAO,MAAM;AAC3D,+BAA2B,QAAQ,aAAW;AAC5C,UACE,QAAQ,iCAAiC,eACtC,QAAQ,iCAAiC,eAC5C;AACA,gBAAQ,uBAAuB,OAAO;AAAA,MACxC;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AAMO,IAAM,0BAA0B,CAAC,UAAU,SAAS;AACzD,gCAA8B;AAE9B,MAAI,CAAC,SAAS;AAIZ,+BAA2B,MAAM;AAEjC,0BAAsB;AACtB,WAAO,oBAAoB,gCAAgC,wBAAwB;AAAA,MACjF,SAAS;AAAA,IACX,CAAC;AACD;AAAA,EACF;AAEA,MAAI,WAAW,CAAC,qBAAqB;AACnC,0BAAsB;AACtB,WAAO,iBAAiB,gCAAgC,wBAAwB;AAAA,MAC9E,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AAC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,MAC3E,SAAS;AAAA,MACT;AAAA,IACF,CAAC;AACD,kBAAc,KAAK;AAAA,EACrB;AAEA,SAAO;AACT;AAKO,IAAM,6BAA6B,MAA0B;AAAA,EAClE;AACF;",
4
+ "sourcesContent": ["/* eslint-disable no-underscore-dangle */\nimport type SynergyElement from '../../internal/synergy-element.js';\nimport {\n type AllowedValueForDefaultSetting,\n type ComponentNamesWithDefaultValues,\n type ExtractSettingsForElement,\n type GlobalSettingsEnabledElement,\n INITIAL_DEFAULT_SETTINGS,\n type RecursivePartial,\n type SynDefaultSettings,\n defaultSettings,\n} from './base.js';\nimport { sortComponentsForUpdate } from './sort.js';\nimport type { SynDefaultChangedAttribute, SynDefaultSettingsChangedEvent } from '../../events/events.js';\n\n/**\n * Whether to emit events when the default settings change\n */\nlet SYNERGY_SETTING_EMIT_EVENTS = false;\n\n/**\n * Internal flag to check if the global event listeners have been set up\n */\nlet hasGlobalEventSetup = false;\n\n// Cache for speeding up lookups\nconst elementPropertyCache = new Map<ComponentNamesWithDefaultValues, Record<string, unknown>>();\n\n/**\n * List of all components that have default values\n */\nconst globalEventNotificationMap = new Set<GlobalSettingsEnabledElement>();\n\n/**\n * The default setting update handler that is bound to the global event\n * @param e The syn-default-settings-change-event emitted\n */\nfunction defaultSettingsHandler(e: SynDefaultSettingsChangedEvent) {\n const { detail } = e;\n\n const sortedDetail = sortComponentsForUpdate(\n Object.keys(detail) as ComponentNamesWithDefaultValues[],\n ).map(componentName => ({\n changes: detail[componentName],\n componentName,\n }));\n\n sortedDetail.forEach(({ componentName, changes }) => {\n globalEventNotificationMap.forEach(element => {\n if (\n element.__originalDecoratedClassName !== 'undefined'\n && element.__originalDecoratedClassName === componentName\n ) {\n element.overrideGlobalSettings(changes);\n }\n });\n });\n}\n\n/**\n * Enables or disables the setting to emit events when the default settings change\n * @param enabled Whether to enable or disable the setting\n */\nexport const enableSettingEmitEvents = (enabled = true) => {\n SYNERGY_SETTING_EMIT_EVENTS = enabled;\n\n if (!enabled) {\n // Make sure to always remove the old element cache\n // when the feature is disabled.\n // Otherwise, we could get a memory leak\n globalEventNotificationMap.clear();\n\n hasGlobalEventSetup = false;\n window.removeEventListener('syn-default-settings-changed', defaultSettingsHandler, {\n capture: true,\n });\n return;\n }\n\n if (enabled && !hasGlobalEventSetup) {\n hasGlobalEventSetup = true;\n window.addEventListener('syn-default-settings-changed', defaultSettingsHandler, {\n capture: true,\n });\n }\n};\n\n/**\n * Enables or disables the setting to emit events when the default settings change\n * @param enabled Whether to enable or disable the setting\n *\n * @deprecated This API is now marked stable. Please use enableSettingEmitEvents instead!\n */\nexport const enableExperimentalSettingEmitEvents = (enabled = true) => {\n enableSettingEmitEvents(enabled);\n};\n\n/**\n * Adds an element to the global event notification map\n * Does not have any effect when SYNERGY_SETTING_EMIT_EVENTS is false\n * @param element The element to add\n */\nexport const addGlobalEventNotification = (\n element: GlobalSettingsEnabledElement,\n) => {\n if (\n SYNERGY_SETTING_EMIT_EVENTS\n && !globalEventNotificationMap.has(element)\n ) {\n globalEventNotificationMap.add(element);\n }\n};\n\n/**\n * Removes an element from the global event notification map\n * Does not have any effect when SYNERGY_SETTING_EMIT_EVENTS is false\n * @param element The element to remove\n */\nexport const removeGlobalEventNotification = (\n element: GlobalSettingsEnabledElement,\n) => {\n // Always try to remove the element from the map\n // This is done because the event support might have been disabled\n // between the time the element was added and removed\n if (globalEventNotificationMap.has(element)) {\n globalEventNotificationMap.delete(element);\n }\n};\n\n/**\n * Extracts all available default settings for a given component\n * @param component The name of the component to get the settings for\n * @param from The source to get the settings from\n * @returns key value pair of found settings for the given component\n */\nexport const extractDefaultSettingsForElement = (\n component: ComponentNamesWithDefaultValues,\n from: 'default' | 'initial' = 'default',\n) => {\n const store = from === 'default' ? defaultSettings : INITIAL_DEFAULT_SETTINGS;\n\n // When we have settings in the cache, make sure to use them to speed them up when possible.\n // This is only available when using the default source!\n if (from === 'default') {\n const cachedSettings = elementPropertyCache.get(component);\n if (typeof cachedSettings !== 'undefined') {\n return cachedSettings;\n }\n }\n\n const allElementSettings = Object.entries(store).reduce(\n (acc: Record<string, unknown>, [key, value]) => {\n const elementSetting = value[component as keyof SynDefaultSettings[keyof SynDefaultSettings]];\n if (elementSetting) {\n acc[key] = elementSetting;\n }\n return acc;\n },\n {},\n );\n\n // Set the cache item when we are using the default source\n if (from === 'default') {\n elementPropertyCache.set(component, allElementSettings);\n }\n\n return allElementSettings;\n};\n\n/**\n * Set the default values for a given component\n * @param component The component to set the defaults for\n * @param newValues Map of new values to set\n */\nexport const setDefaultSettingsForElement = <C extends SynergyElement>(\n component: ComponentNamesWithDefaultValues,\n newValues: Partial<ExtractSettingsForElement<C>>,\n) => {\n // List of all changes in the default settings\n const detail = {\n [component]: [] as SynDefaultChangedAttribute[],\n } as Record<string, SynDefaultChangedAttribute[]>;\n\n Object.entries(newValues).forEach(([key, value]) => {\n if (\n defaultSettings[key as keyof SynDefaultSettings]\n && typeof (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] !== 'undefined'\n ) {\n detail[component].push({\n attribute: key,\n newValue: value,\n oldValue:\n defaultSettings[key as keyof SynDefaultSettings][\n component as keyof SynDefaultSettings[keyof SynDefaultSettings]\n ],\n });\n\n (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] = value as AllowedValueForDefaultSetting<C, keyof C>;\n }\n });\n\n // Make sure to clean up the cache when we change the default settings\n const cachedItem = elementPropertyCache.get(component);\n if (typeof cachedItem !== 'undefined') {\n detail[component].forEach(change => {\n cachedItem[change.attribute] = change.newValue;\n });\n }\n\n // Fire the change event\n if (SYNERGY_SETTING_EMIT_EVENTS) {\n const event = new CustomEvent<typeof detail>('syn-default-settings-changed', {\n bubbles: true,\n detail,\n });\n dispatchEvent(event);\n }\n\n return defaultSettings;\n};\n\n/**\n * Set the global default settings\n * @param newSettings The new settings to set\n */\nexport const setGlobalDefaultSettings = (\n newSettings: RecursivePartial<SynDefaultSettings>,\n): SynDefaultSettings => {\n // List of all changes in the default settings\n const detail = {} as Record<string, SynDefaultChangedAttribute[]>;\n\n Object.entries(newSettings).forEach(([key, value]) => {\n if (defaultSettings[key as keyof SynDefaultSettings]) {\n Object.entries(value).forEach(([component, newValue]) => {\n // Create the component part of details if it does not exist yet\n if (!detail[component]) {\n detail[component] = [];\n }\n\n // Add the changed attribute to the detail object\n detail[component].push({\n attribute: key,\n newValue: newValue as unknown,\n oldValue:\n defaultSettings[key as keyof SynDefaultSettings][\n component as keyof SynDefaultSettings[keyof SynDefaultSettings]\n ],\n });\n });\n }\n });\n\n // Sort components by dependencies and priority before processing\n // This has to be done to ensure that components depending on other components\n // get updated after the components they depend on.\n const componentsToUpdate = Object.keys(detail) as ComponentNamesWithDefaultValues[];\n const sortedComponents = sortComponentsForUpdate(componentsToUpdate);\n\n // Second pass: update defaultSettings and cache in sorted order\n sortedComponents.forEach((component) => {\n const changes = detail[component];\n\n if (changes) {\n // Update defaultSettings for this component\n changes.forEach(change => {\n (\n defaultSettings[change.attribute as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] = change.newValue;\n });\n\n // Update cache for this component\n const cachedItem = elementPropertyCache.get(component);\n if (typeof cachedItem !== 'undefined') {\n changes.forEach(change => {\n cachedItem[change.attribute] = change.newValue;\n });\n }\n }\n });\n\n // Fire the change event\n if (SYNERGY_SETTING_EMIT_EVENTS) {\n const event = new CustomEvent<typeof detail>('syn-default-settings-changed', {\n bubbles: true,\n detail,\n });\n dispatchEvent(event);\n }\n\n return defaultSettings;\n};\n\n/**\n * Reset the global default settings to synergies initial values\n */\nexport const resetGlobalDefaultSettings = (): SynDefaultSettings => setGlobalDefaultSettings(\n INITIAL_DEFAULT_SETTINGS,\n);\n"],
5
+ "mappings": ";;;;;;;;;AAkBA,IAAI,8BAA8B;AAKlC,IAAI,sBAAsB;AAG1B,IAAM,uBAAuB,oBAAI,IAA8D;AAK/F,IAAM,6BAA6B,oBAAI,IAAkC;AAMzE,SAAS,uBAAuB,GAAmC;AACjE,QAAM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M;AACpD,QAAI,gBAAgB,GAA+B,GAAG;AACpD,aAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,WAAW,QAAQ,MAAM;AAEvD,YAAI,CAAC,OAAO,SAAS,GAAG;AACtB,iBAAO,SAAS,IAAI,CAAC;AAAA,QACvB;AAGA,eAAO,SAAS,EAAE,KAAK;AAAA,UACrB,WAAW;AAAA,UACX;AAAA,UACA,UACA,gBAAgB,GAA+B,EAC7C,SACF;AAAA,QACF,CAAC;AAAA,MACH,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAKD,QAAM,qBAAqB,OAAO,KAAK,MAAM;AAC7C,QAAM,mBAAmB,wBAAwB,kBAAkB;AAGnE,mBAAiB,QAAQ,CAAC,cAAc;AACtC,UAAM,UAAU,OAAO,SAAS;AAEhC,QAAI,SAAS;AAEX,cAAQ,QAAQ,YAAU;AACxB,QACE,gBAAgB,OAAO,SAAqC,EAC5D,SAAS,IAAI,OAAO;AAAA,MACxB,CAAC;AAGD,YAAM,aAAa,qBAAqB,IAAI,SAAS;AACrD,UAAI,OAAO,eAAe,aAAa;AACrC,gBAAQ,QAAQ,YAAU;AACxB,qBAAW,OAAO,SAAS,IAAI,OAAO;AAAA,QACxC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC;AAGD,MAAI,6BAA6B;AAC/B,UAAM,QAAQ,IAAI,YAA2B,gCAAgC;AAAA,MAC3E,SAAS;AAAA,MACT;AAAA,IACF,CAAC;AACD,kBAAc,KAAK;AAAA,EACrB;AAEA,SAAO;AACT;AAKO,IAAM,6BAA6B,MAA0B;AAAA,EAClE;AACF;",
6
6
  "names": []
7
7
  }
@@ -9,25 +9,25 @@ import {
9
9
  } from "./chunk.74N5WLM5.js";
10
10
  import {
11
11
  SynNavItem
12
- } from "./chunk.JQ4NCOOB.js";
12
+ } from "./chunk.WNUAJF2S.js";
13
13
  import {
14
14
  SynMenu
15
- } from "./chunk.PGGH5VGL.js";
15
+ } from "./chunk.KT7OGMZP.js";
16
16
  import {
17
17
  SynDropdown
18
- } from "./chunk.ATT3RT4A.js";
18
+ } from "./chunk.ZA7XD4RH.js";
19
19
  import {
20
20
  SynIcon
21
- } from "./chunk.GJIDYO3Z.js";
21
+ } from "./chunk.KHRQ5VI4.js";
22
22
  import {
23
23
  LocalizeController
24
- } from "./chunk.OAQRCZOO.js";
24
+ } from "./chunk.QLETXF4A.js";
25
25
  import {
26
26
  component_styles_default
27
- } from "./chunk.NLYVOJGK.js";
27
+ } from "./chunk.FXJLG622.js";
28
28
  import {
29
29
  SynergyElement
30
- } from "./chunk.JG7YXWHG.js";
30
+ } from "./chunk.ECNXEYTN.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.HXLRLIDZ.js.map
212
+ //# sourceMappingURL=chunk.S7JH7R5W.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDrawer
3
- } from "./chunk.VBPHUZ5N.js";
3
+ } from "./chunk.CJMW4UVM.js";
4
4
 
5
5
  // src/components/drawer/drawer.ts
6
6
  var drawer_default = SynDrawer;
@@ -9,4 +9,4 @@ SynDrawer.define("syn-drawer");
9
9
  export {
10
10
  drawer_default
11
11
  };
12
- //# sourceMappingURL=chunk.Q3SJASPT.js.map
12
+ //# sourceMappingURL=chunk.SEYPIVFM.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/drawer/drawer.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport SynDrawer from './drawer.component.js';\n\nexport * from './drawer.component.js';\nexport default SynDrawer;\n\nSynDrawer.define('syn-drawer');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-drawer': SynDrawer;\n }\n}\n"],
5
+ "mappings": ";;;;;AAIA,IAAO,iBAAQ;AAEf,UAAU,OAAO,YAAY;",
6
+ "names": []
7
+ }
@@ -31,4 +31,4 @@ function watch(propertyName, options) {
31
31
  export {
32
32
  watch
33
33
  };
34
- //# sourceMappingURL=chunk.JE5Y2YD7.js.map
34
+ //# sourceMappingURL=chunk.SMIMHADA.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/internal/watch.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport type { LitElement } from 'lit';\n\ntype UpdateHandler = (prev?: unknown, next?: unknown) => void;\n\ntype NonUndefined<A> = A extends undefined ? never : A;\n\ntype UpdateHandlerFunctionKeys<T extends object> = {\n [K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;\n}[keyof T];\n\ninterface WatchOptions {\n /**\n * If true, will only start watching after the initial update/render\n */\n waitUntilFirstUpdate?: boolean;\n}\n\n/**\n * Runs when observed properties change, e.g. @property or @state, but before the component updates. To wait for an\n * update to complete after a change occurs, use `await this.updateComplete` in the handler. To start watching after the\n * initial update/render, use `{ waitUntilFirstUpdate: true }` or `this.hasUpdated` in the handler.\n *\n * Usage:\n *\n * @watch('propName')\n * handlePropChange(oldValue, newValue) {\n * ...\n * }\n */\nexport function watch(propertyName: string | string[], options?: WatchOptions) {\n const resolvedOptions: Required<WatchOptions> = {\n waitUntilFirstUpdate: false,\n ...options\n };\n return <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => {\n // @ts-expect-error - update is a protected property\n const { update } = proto;\n const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];\n\n // @ts-expect-error - update is a protected property\n proto.update = function (this: ElemClass, changedProps: Map<keyof ElemClass, ElemClass[keyof ElemClass]>) {\n watchedProperties.forEach(property => {\n const key = property as keyof ElemClass;\n if (changedProps.has(key)) {\n const oldValue = changedProps.get(key);\n const newValue = this[key];\n\n if (oldValue !== newValue) {\n if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {\n (this[decoratedFnName] as unknown as UpdateHandler)(oldValue, newValue);\n }\n }\n }\n });\n\n update.call(this, changedProps);\n };\n };\n}\n"],
5
+ "mappings": ";;;;;AA8BO,SAAS,MAAM,cAAiC,SAAwB;AAC7E,QAAM,kBAA0C;AAAA,IAC9C,sBAAsB;AAAA,KACnB;AAEL,SAAO,CAA+B,OAAkB,oBAA0D;AAEhH,UAAM,EAAE,OAAO,IAAI;AACnB,UAAM,oBAAoB,MAAM,QAAQ,YAAY,IAAI,eAAe,CAAC,YAAY;AAGpF,UAAM,SAAS,SAA2B,cAAgE;AACxG,wBAAkB,QAAQ,cAAY;AACpC,cAAM,MAAM;AACZ,YAAI,aAAa,IAAI,GAAG,GAAG;AACzB,gBAAM,WAAW,aAAa,IAAI,GAAG;AACrC,gBAAM,WAAW,KAAK,GAAG;AAEzB,cAAI,aAAa,UAAU;AACzB,gBAAI,CAAC,gBAAgB,wBAAwB,KAAK,YAAY;AAC5D,cAAC,KAAK,eAAe,EAA+B,UAAU,QAAQ;AAAA,YACxE;AAAA,UACF;AAAA,QACF;AAAA,MACF,CAAC;AAED,aAAO,KAAK,MAAM,YAAY;AAAA,IAChC;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -1,38 +1,38 @@
1
1
  import {
2
2
  SynSpinner
3
- } from "./chunk.D5GEYHUG.js";
3
+ } from "./chunk.GEMZSFPA.js";
4
4
  import {
5
5
  FormControlController,
6
6
  validValidityState
7
- } from "./chunk.U5757NSE.js";
7
+ } from "./chunk.J3GDDM6Q.js";
8
8
  import {
9
9
  button_custom_styles_default
10
- } from "./chunk.SEYI7UTA.js";
10
+ } from "./chunk.4YHI2ATV.js";
11
11
  import {
12
12
  button_styles_default
13
- } from "./chunk.5SQ7NVBX.js";
13
+ } from "./chunk.UB4EPKCP.js";
14
14
  import {
15
15
  HasSlotController,
16
16
  getTextContent
17
- } from "./chunk.WVVQK5TE.js";
17
+ } from "./chunk.CHFWLQN5.js";
18
18
  import {
19
19
  SynIcon
20
- } from "./chunk.GJIDYO3Z.js";
20
+ } from "./chunk.KHRQ5VI4.js";
21
21
  import {
22
22
  watch
23
- } from "./chunk.JE5Y2YD7.js";
23
+ } from "./chunk.SMIMHADA.js";
24
24
  import {
25
25
  LocalizeController
26
- } from "./chunk.OAQRCZOO.js";
26
+ } from "./chunk.QLETXF4A.js";
27
27
  import {
28
28
  enableDefaultSettings
29
- } from "./chunk.KSWDM4HW.js";
29
+ } from "./chunk.YACUYJZN.js";
30
30
  import {
31
31
  component_styles_default
32
- } from "./chunk.NLYVOJGK.js";
32
+ } from "./chunk.FXJLG622.js";
33
33
  import {
34
34
  SynergyElement
35
- } from "./chunk.JG7YXWHG.js";
35
+ } from "./chunk.ECNXEYTN.js";
36
36
  import {
37
37
  __decorateClass
38
38
  } from "./chunk.MO2GTRUM.js";
@@ -295,4 +295,4 @@ SynButton = __decorateClass([
295
295
  export {
296
296
  SynButton
297
297
  };
298
- //# sourceMappingURL=chunk.LBN3HL2T.js.map
298
+ //# sourceMappingURL=chunk.SNYUENL4.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/button/button.component.ts"],
4
+ "sourcesContent": ["/* 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=\"chevron-down\"></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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,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,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,UAAU,QAAQ;AAChG,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAK9C,SAAQ,WAAW;AAEnB,SAAQ,WAAW;AACnB,mBAAU;AACU,iBAAQ;AAGR,mBAAyC;AAGzC,gBAAqC;AAGtB,iBAAQ;AAGR,oBAAW;AAGX,mBAAU;AAM1C,gBAAsC;AAMtC,gBAAO;AAMP,iBAAQ;AAGR,gBAAO;AAWP,eAAM;AAAA;AAAA;AAAA,EA4BlB,IAAI,WAAW;AACb,QAAI,KAAK,SAAS,GAAG;AACnB,aAAQ,KAAK,OAA6B;AAAA,IAC5C;AAEA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,oBAAoB;AACtB,QAAI,KAAK,SAAS,GAAG;AACnB,aAAQ,KAAK,OAA6B;AAAA,IAC5C;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,eAAe;AACb,QAAI,KAAK,SAAS,GAAG;AACnB,WAAK,sBAAsB,eAAe;AAAA,IAC5C;AAAA,EACF;AAAA,EAEQ,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACt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Input,
3
6
  getEventNameForElement,
@@ -5,25 +8,22 @@ import {
5
8
  isInvalidEvent,
6
9
  isSynergyElement,
7
10
  normalizeEventAttribute
8
- } from "./chunk.UPDHOWDW.js";
9
- import {
10
- validate_styles_default
11
- } from "./chunk.MVM3NN6Y.js";
11
+ } from "./chunk.KRR2BTZW.js";
12
12
  import {
13
13
  SynAlert
14
- } from "./chunk.6B7GMPMK.js";
14
+ } from "./chunk.K2HZDQMS.js";
15
15
  import {
16
16
  watch
17
- } from "./chunk.JE5Y2YD7.js";
17
+ } from "./chunk.SMIMHADA.js";
18
18
  import {
19
19
  enableDefaultSettings
20
- } from "./chunk.KSWDM4HW.js";
20
+ } from "./chunk.YACUYJZN.js";
21
21
  import {
22
22
  component_styles_default
23
- } from "./chunk.NLYVOJGK.js";
23
+ } from "./chunk.FXJLG622.js";
24
24
  import {
25
25
  SynergyElement
26
- } from "./chunk.JG7YXWHG.js";
26
+ } from "./chunk.ECNXEYTN.js";
27
27
  import {
28
28
  __decorateClass
29
29
  } from "./chunk.MO2GTRUM.js";
@@ -362,4 +362,4 @@ SynValidate = __decorateClass([
362
362
  export {
363
363
  SynValidate
364
364
  };
365
- //# sourceMappingURL=chunk.ZPL7FJ2H.js.map
365
+ //# sourceMappingURL=chunk.T23XHCUI.js.map
@@ -1,48 +1,48 @@
1
+ import {
2
+ dialog_custom_styles_default
3
+ } from "./chunk.EHZBQTCT.js";
1
4
  import {
2
5
  dialog_styles_default
3
- } from "./chunk.MU43DZ7W.js";
6
+ } from "./chunk.PN64BR66.js";
4
7
  import {
5
8
  Modal
6
- } from "./chunk.JKSFECFA.js";
7
- import {
8
- dialog_custom_styles_default
9
- } from "./chunk.EHZBQTCT.js";
9
+ } from "./chunk.P4JFVVSO.js";
10
10
  import {
11
11
  lockBodyScrolling,
12
12
  unlockBodyScrolling
13
- } from "./chunk.5732DMBC.js";
13
+ } from "./chunk.2DT3C6WE.js";
14
14
  import {
15
15
  blurActiveElement
16
16
  } from "./chunk.WXVOTRW5.js";
17
17
  import {
18
18
  SynIconButton
19
- } from "./chunk.K5VB7VKA.js";
19
+ } from "./chunk.I5ABAZLK.js";
20
20
  import {
21
21
  waitForEvent
22
- } from "./chunk.C2ENQBPM.js";
22
+ } from "./chunk.LQDIH4Z5.js";
23
23
  import {
24
24
  animateTo,
25
25
  stopAnimations
26
- } from "./chunk.6EKUFYET.js";
26
+ } from "./chunk.Q6HZ4JXR.js";
27
27
  import {
28
28
  getAnimation,
29
29
  setDefaultAnimation
30
- } from "./chunk.ADSEQZBF.js";
30
+ } from "./chunk.RJUVM6NO.js";
31
31
  import {
32
32
  HasSlotController
33
- } from "./chunk.WVVQK5TE.js";
33
+ } from "./chunk.CHFWLQN5.js";
34
34
  import {
35
35
  watch
36
- } from "./chunk.JE5Y2YD7.js";
36
+ } from "./chunk.SMIMHADA.js";
37
37
  import {
38
38
  LocalizeController
39
- } from "./chunk.OAQRCZOO.js";
39
+ } from "./chunk.QLETXF4A.js";
40
40
  import {
41
41
  component_styles_default
42
- } from "./chunk.NLYVOJGK.js";
42
+ } from "./chunk.FXJLG622.js";
43
43
  import {
44
44
  SynergyElement
45
- } from "./chunk.JG7YXWHG.js";
45
+ } from "./chunk.ECNXEYTN.js";
46
46
  import {
47
47
  __decorateClass
48
48
  } from "./chunk.MO2GTRUM.js";
@@ -292,4 +292,4 @@ setDefaultAnimation("dialog.overlay.hide", {
292
292
  export {
293
293
  SynDialog
294
294
  };
295
- //# sourceMappingURL=chunk.RV5JERXK.js.map
295
+ //# sourceMappingURL=chunk.T5GCLOJ6.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/dialog/dialog.component.ts"],
4
+ "sourcesContent": ["/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../internal/scroll.js';\nimport { property, 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 Modal from '../../internal/modal.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './dialog.styles.js';\nimport customStyles from './dialog.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-dialog--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The dialog's main content.\n * @slot label - The dialog's label. Alternatively, you can use the `label` attribute.\n * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the dialog opens.\n * @event syn-after-show - Emitted after the dialog opens and all animations are complete.\n * @event syn-hide - Emitted when the dialog closes.\n * @event syn-after-hide - Emitted after the dialog closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the dialog opens and is ready to receive focus. Calling\n * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to\n * close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in\n * destructive behavior such as data loss.\n *\n * @csspart base - The component's base wrapper.\n * @csspart overlay - The overlay that covers the screen behind the dialog.\n * @csspart panel - The dialog's panel (where the dialog and its content are rendered).\n * @csspart header - The dialog's header. This element wraps the title and header actions.\n * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @csspart title - The dialog's title.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n * @csspart body - The dialog's body.\n * @csspart footer - The dialog's footer.\n *\n * @cssproperty --width - The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n * @cssproperty --header-spacing - The amount of padding to use for the header.\n * @cssproperty --body-spacing - The amount of padding to use for the body.\n * @cssproperty --footer-spacing - The amount of padding to use for the footer.\n *\n * @animation dialog.show - The animation to use when showing the dialog.\n * @animation dialog.hide - The animation to use when hiding the dialog.\n * @animation dialog.denyClose - The animation to use when a request to close the dialog is denied.\n * @animation dialog.overlay.show - The animation to use when showing the dialog's overlay.\n * @animation dialog.overlay.hide - The animation to use when hiding the dialog's overlay.\n *\n * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus\n * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when\n * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.\n */\nexport default class SynDialog extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = {\n 'syn-icon-button': SynIconButton\n };\n\n private readonly hasSlotController = new HasSlotController(this, 'footer');\n private readonly localize = new LocalizeController(this);\n private originalTrigger: HTMLElement | null;\n public modal = new Modal(this);\n private closeWatcher: CloseWatcher | null;\n\n @query('.dialog') dialog: HTMLElement;\n @query('.dialog__panel') panel: HTMLElement;\n @query('.dialog__overlay') overlay: HTMLElement;\n\n /**\n * Indicates whether or not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the dialog's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.\n */\n @property({ reflect: true }) label = '';\n\n /**\n * Disables the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the dialog.\n */\n @property({ attribute: 'no-header', type: Boolean, reflect: true }) noHeader = false;\n\n firstUpdated() {\n this.dialog.hidden = !this.open;\n\n if (this.open) {\n this.addOpenListeners();\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.modal.deactivate();\n unlockBodyScrolling(this);\n this.removeOpenListeners();\n }\n\n private requestClose(source: 'close-button' | 'keyboard' | 'overlay') {\n const slRequestClose = this.emit('syn-request-close', {\n cancelable: true,\n detail: { source }\n });\n\n if (slRequestClose.defaultPrevented) {\n const animation = getAnimation(this, 'dialog.denyClose', { dir: this.localize.dir() });\n animateTo(this.panel, animation.keyframes, animation.options);\n return;\n }\n\n this.hide();\n }\n\n private addOpenListeners() {\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose('keyboard');\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n }\n\n private removeOpenListeners() {\n this.closeWatcher?.destroy();\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n }\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape' && this.modal.isActive() && this.open) {\n event.stopPropagation();\n this.requestClose('keyboard');\n }\n };\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n this.originalTrigger = document.activeElement as HTMLElement;\n this.modal.activate();\n\n lockBodyScrolling(this);\n\n // When the dialog is shown, Safari will attempt to set focus on whatever element has autofocus. This can cause\n // the dialogs's animation to jitter (if it starts offscreen), so we'll temporarily remove the attribute, call\n // `focus({ preventScroll: true })` ourselves, and add the attribute back afterwards.\n //\n // Related: https://github.com/shoelace-style/shoelace/issues/693\n //\n const autoFocusTarget = this.querySelector('[autofocus]');\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute('autofocus');\n }\n\n await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);\n this.dialog.hidden = false;\n\n // Set initial focus\n requestAnimationFrame(() => {\n const slInitialFocus = this.emit('syn-initial-focus', { cancelable: true });\n\n if (!slInitialFocus.defaultPrevented) {\n // Set focus to the autofocus target and restore the attribute\n if (autoFocusTarget) {\n (autoFocusTarget as HTMLInputElement).focus({ preventScroll: true });\n } else {\n this.panel.focus({ preventScroll: true });\n }\n }\n\n // Restore the autofocus attribute\n if (autoFocusTarget) {\n autoFocusTarget.setAttribute('autofocus', '');\n }\n });\n\n const panelAnimation = getAnimation(this, 'dialog.show', { dir: this.localize.dir() });\n const overlayAnimation = getAnimation(this, 'dialog.overlay.show', { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options)\n ]);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n blurActiveElement(this);\n this.emit('syn-hide');\n this.removeOpenListeners();\n this.modal.deactivate();\n\n await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, 'dialog.hide', { dir: this.localize.dir() });\n const overlayAnimation = getAnimation(this, 'dialog.overlay.hide', { dir: this.localize.dir() });\n\n // Animate the overlay and the panel at the same time. Because animation durations might be different, we need to\n // hide each one individually when the animation finishes, otherwise the first one that finishes will reappear\n // unexpectedly. We'll unhide them after all animations have completed.\n await Promise.all([\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options).then(() => {\n this.overlay.hidden = true;\n }),\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options).then(() => {\n this.panel.hidden = true;\n })\n ]);\n\n this.dialog.hidden = true;\n\n // Now that the dialog is hidden, restore the overlay and panel for next time\n this.overlay.hidden = false;\n this.panel.hidden = false;\n\n unlockBodyScrolling(this);\n\n // Restore focus to the original trigger\n const trigger = this.originalTrigger;\n if (typeof trigger?.focus === 'function') {\n setTimeout(() => trigger.focus());\n }\n\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the dialog. */\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 dialog */\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 render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--has-footer': this.hasSlotController.test('footer')\n })}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" @click=${() => this.requestClose('overlay')} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden=${this.open ? 'false' : 'true'}\n aria-label=${ifDefined(this.noHeader ? this.label : undefined)}\n aria-labelledby=${ifDefined(!this.noHeader ? 'title' : undefined)}\n tabindex=\"-1\"\n >\n ${!this.noHeader\n ? html`\n <header part=\"header\" class=\"dialog__header\">\n <h2 part=\"title\" class=\"dialog__title\" id=\"title\">\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"dialog__header-actions\">\n <slot name=\"header-actions\"></slot>\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"dialog__close\"\n name=\"x-lg\"\n label=${this.localize.term('close')}\n library=\"system\"\n @click=\"${() => this.requestClose('close-button')}\"\n ></syn-icon-button>\n </div>\n </header>\n `\n : ''}\n ${\n '' /* The tabindex=\"-1\" is here because the body is technically scrollable if overflowing. However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard. Previously this was just a <slot>, but tabindex=\"-1\" on the slot causes children to not be focusable. https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 */\n }\n <div part=\"body\" class=\"dialog__body\" tabindex=\"-1\"><slot></slot></div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('dialog.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;AA6DhC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAME,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAM+B,oBAAW;AAiD/E,SAAQ,wBAAwB,CAAC,UAAyB;AACxD,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,gBAAgB;AACtB,aAAK,aAAa,UAAU;AAAA,MAC9B;AAAA,IACF;AAAA;AAAA,EApDA,eAAe;AACb,SAAK,OAAO,SAAS,CAAC,KAAK;AAE3B,QAAI,KAAK,MAAM;AACb,WAAK,iBAAiB;AACtB,WAA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C;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
6
+ "names": []
7
+ }
@@ -1,12 +1,18 @@
1
+ import {
2
+ button_group_custom_styles_default
3
+ } from "./chunk.34RGILSE.js";
1
4
  import {
2
5
  button_group_styles_default
3
- } from "./chunk.GRVNUIP2.js";
6
+ } from "./chunk.CX7IEDUW.js";
7
+ import {
8
+ enableDefaultSettings
9
+ } from "./chunk.YACUYJZN.js";
4
10
  import {
5
11
  component_styles_default
6
- } from "./chunk.NLYVOJGK.js";
12
+ } from "./chunk.FXJLG622.js";
7
13
  import {
8
14
  SynergyElement
9
- } from "./chunk.JG7YXWHG.js";
15
+ } from "./chunk.ECNXEYTN.js";
10
16
  import {
11
17
  __decorateClass
12
18
  } from "./chunk.MO2GTRUM.js";
@@ -19,6 +25,8 @@ var SynButtonGroup = class extends SynergyElement {
19
25
  super(...arguments);
20
26
  this.disableRole = false;
21
27
  this.label = "";
28
+ this.size = "medium";
29
+ this.variant = "outline";
22
30
  }
23
31
  handleFocus(event) {
24
32
  const button = findButton(event.target);
@@ -42,6 +50,10 @@ var SynButtonGroup = class extends SynergyElement {
42
50
  const index = slottedElements.indexOf(el);
43
51
  const button = findButton(el);
44
52
  if (button) {
53
+ button.size = this.size;
54
+ if (button.tagName.toLowerCase() === "syn-button") {
55
+ button.variant = this.variant;
56
+ }
45
57
  button.toggleAttribute("data-syn-button-group__button", true);
46
58
  button.toggleAttribute("data-syn-button-group__button--first", index === 0);
47
59
  button.toggleAttribute("data-syn-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
@@ -53,6 +65,44 @@ var SynButtonGroup = class extends SynergyElement {
53
65
  }
54
66
  });
55
67
  }
68
+ firstUpdated() {
69
+ const startObserving = () => {
70
+ this.mutationObserver.observe(this, {
71
+ subtree: true,
72
+ attributes: true,
73
+ attributeFilter: ["size", "variant"]
74
+ });
75
+ };
76
+ this.mutationObserver = new MutationObserver((entries) => {
77
+ this.mutationObserver.disconnect();
78
+ const buttonGroupChanged = entries.some((entry) => entry.target === this);
79
+ const childrenChanged = entries.some((entry) => entry.target !== this);
80
+ if (childrenChanged) {
81
+ entries.filter((entry) => entry.target !== this).forEach((entry) => {
82
+ const target = entry.target;
83
+ const button = findButton(target);
84
+ if (button) {
85
+ button.size = void 0;
86
+ if (button.tagName.toLowerCase() === "syn-button") {
87
+ button.variant = void 0;
88
+ }
89
+ }
90
+ });
91
+ }
92
+ if (buttonGroupChanged || childrenChanged) {
93
+ this.handleSlotChange();
94
+ }
95
+ this.updateComplete.then(() => {
96
+ startObserving();
97
+ });
98
+ });
99
+ startObserving();
100
+ }
101
+ disconnectedCallback() {
102
+ var _a;
103
+ super.disconnectedCallback();
104
+ (_a = this.mutationObserver) == null ? void 0 : _a.disconnect();
105
+ }
56
106
  render() {
57
107
  return html`
58
108
  <div
@@ -70,7 +120,7 @@ var SynButtonGroup = class extends SynergyElement {
70
120
  `;
71
121
  }
72
122
  };
73
- SynButtonGroup.styles = [component_styles_default, button_group_styles_default];
123
+ SynButtonGroup.styles = [component_styles_default, button_group_styles_default, button_group_custom_styles_default];
74
124
  __decorateClass([
75
125
  query("slot")
76
126
  ], SynButtonGroup.prototype, "defaultSlot", 2);
@@ -80,6 +130,15 @@ __decorateClass([
80
130
  __decorateClass([
81
131
  property()
82
132
  ], SynButtonGroup.prototype, "label", 2);
133
+ __decorateClass([
134
+ property({ reflect: true })
135
+ ], SynButtonGroup.prototype, "size", 2);
136
+ __decorateClass([
137
+ property({ reflect: true })
138
+ ], SynButtonGroup.prototype, "variant", 2);
139
+ SynButtonGroup = __decorateClass([
140
+ enableDefaultSettings("SynButtonGroup")
141
+ ], SynButtonGroup);
83
142
  function findButton(el) {
84
143
  var _a;
85
144
  const selector = "syn-button, syn-radio-button";
@@ -89,4 +148,4 @@ function findButton(el) {
89
148
  export {
90
149
  SynButtonGroup
91
150
  };
92
- //# sourceMappingURL=chunk.MM3NO6GS.js.map
151
+ //# sourceMappingURL=chunk.TNT5GH3Y.js.map