@synergy-design-system/components 2.30.2 → 2.30.4

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 (379) hide show
  1. package/dist/chunks/{chunk.TILODMF6.js → chunk.2DLRC5TE.js} +2 -2
  2. package/dist/chunks/{chunk.OMI5RA5T.js → chunk.2GSYDCNQ.js} +2 -2
  3. package/dist/chunks/chunk.2GSYDCNQ.js.map +7 -0
  4. package/dist/chunks/{chunk.ENQBDTFB.js → chunk.2WXFDAH7.js} +2 -2
  5. package/dist/chunks/{chunk.4ETD2DNL.js → chunk.2YPXA4EL.js} +2 -2
  6. package/dist/chunks/{chunk.QA5GZULT.js → chunk.342T37S6.js} +2 -2
  7. package/dist/chunks/{chunk.UKJI6GPV.js → chunk.3RHSPVWP.js} +2 -2
  8. package/dist/chunks/{chunk.W5XRTLRL.js → chunk.3T5IJP7C.js} +3 -3
  9. package/dist/chunks/chunk.3T5IJP7C.js.map +7 -0
  10. package/dist/chunks/{chunk.5NYIBZLL.js → chunk.3TKATAJJ.js} +2 -2
  11. package/dist/chunks/{chunk.5NYIBZLL.js.map → chunk.3TKATAJJ.js.map} +1 -1
  12. package/dist/chunks/{chunk.B6HFSIU2.js → chunk.4DW7CR6A.js} +28 -1
  13. package/dist/chunks/{chunk.B6HFSIU2.js.map → chunk.4DW7CR6A.js.map} +2 -2
  14. package/dist/chunks/{chunk.62XLN3FC.js → chunk.4HHHVPCU.js} +2 -2
  15. package/dist/chunks/{chunk.62XLN3FC.js.map → chunk.4HHHVPCU.js.map} +1 -1
  16. package/dist/chunks/{chunk.3DBL44XT.js → chunk.4SNNRPZZ.js} +35 -7
  17. package/dist/chunks/chunk.4SNNRPZZ.js.map +7 -0
  18. package/dist/chunks/{chunk.QFNMNSWC.js → chunk.4YGRF4BM.js} +2 -2
  19. package/dist/chunks/chunk.4YGRF4BM.js.map +7 -0
  20. package/dist/chunks/{chunk.IACSPHN4.js → chunk.573I2RT5.js} +2 -2
  21. package/dist/chunks/{chunk.DAV2CQP4.js → chunk.5IZULV2E.js} +5 -5
  22. package/dist/chunks/chunk.5IZULV2E.js.map +7 -0
  23. package/dist/chunks/{chunk.PS66JFEN.js → chunk.5KPQ3VYB.js} +3 -3
  24. package/dist/chunks/chunk.5KPQ3VYB.js.map +7 -0
  25. package/dist/chunks/{chunk.ZRWZBAUT.js → chunk.5NU5JFH5.js} +2 -2
  26. package/dist/chunks/{chunk.ZSR45DPF.js → chunk.63R35DYO.js} +3 -3
  27. package/dist/chunks/chunk.63R35DYO.js.map +7 -0
  28. package/dist/chunks/{chunk.UTJJJQMA.js → chunk.6GBQX53P.js} +2 -2
  29. package/dist/chunks/{chunk.GUZDBXQN.js → chunk.6L4BDFQE.js} +4 -4
  30. package/dist/chunks/chunk.6L4BDFQE.js.map +7 -0
  31. package/dist/chunks/{chunk.XIMS5LSS.js → chunk.6XJSQXBY.js} +2 -2
  32. package/dist/chunks/{chunk.UNGVPGXL.js → chunk.7CA3JCDV.js} +2 -2
  33. package/dist/chunks/{chunk.54GYFPMI.js → chunk.7FASNWSN.js} +2 -2
  34. package/dist/chunks/{chunk.UUMXRZQH.js → chunk.7Y2NWCT3.js} +3 -3
  35. package/dist/chunks/chunk.7Y2NWCT3.js.map +7 -0
  36. package/dist/chunks/{chunk.J7BEYJP3.js → chunk.ABHQSTYM.js} +2 -2
  37. package/dist/chunks/chunk.ABHQSTYM.js.map +7 -0
  38. package/dist/chunks/{chunk.GA5LC2F3.js → chunk.ACDSXF4A.js} +2 -2
  39. package/dist/chunks/{chunk.A6S64XOS.js → chunk.ADBSYBKF.js} +2 -2
  40. package/dist/chunks/{chunk.6P6MZH7T.js → chunk.AEO3YBAE.js} +2 -2
  41. package/dist/chunks/{chunk.5BL4RVHI.js → chunk.AM4CD2E5.js} +2 -2
  42. package/dist/chunks/{chunk.MSQLDQBH.js → chunk.AMHWVTPZ.js} +2 -2
  43. package/dist/chunks/{chunk.XKQKPYTB.js → chunk.B7IE3QTD.js} +2 -2
  44. package/dist/chunks/{chunk.P6QZVA24.js → chunk.BDU6VEYE.js} +2 -2
  45. package/dist/chunks/{chunk.WABV7HP2.js → chunk.CWMN3RGF.js} +2 -2
  46. package/dist/chunks/{chunk.HPFIPD65.js → chunk.D3JQ2TWU.js} +2 -2
  47. package/dist/chunks/{chunk.NIV4I3BO.js → chunk.DQFLAUMY.js} +2 -2
  48. package/dist/chunks/{chunk.BZELMZLF.js → chunk.DTZ5GW6T.js} +3 -3
  49. package/dist/chunks/chunk.DTZ5GW6T.js.map +7 -0
  50. package/dist/chunks/{chunk.4KYHVE5E.js → chunk.E65WRZUZ.js} +2 -2
  51. package/dist/chunks/{chunk.B5NEBCX6.js → chunk.EEDY654D.js} +2 -2
  52. package/dist/chunks/{chunk.NV5NAKG7.js → chunk.EFTA2WH7.js} +2 -2
  53. package/dist/chunks/{chunk.SVSSWAPO.js → chunk.EFVTKJMU.js} +2 -2
  54. package/dist/chunks/chunk.EFVTKJMU.js.map +7 -0
  55. package/dist/chunks/{chunk.Y7CXPPVU.js → chunk.F6RNX3ZO.js} +2 -2
  56. package/dist/chunks/{chunk.Y7CXPPVU.js.map → chunk.F6RNX3ZO.js.map} +1 -1
  57. package/dist/chunks/{chunk.NNHI3TAI.js → chunk.FJ2ARLVU.js} +3 -3
  58. package/dist/chunks/chunk.FJ2ARLVU.js.map +7 -0
  59. package/dist/chunks/{chunk.5CCH7OXU.js → chunk.FMMNG7VN.js} +2 -2
  60. package/dist/chunks/{chunk.AAL3KZPB.js → chunk.GIRJTNXT.js} +2 -2
  61. package/dist/chunks/{chunk.AAL3KZPB.js.map → chunk.GIRJTNXT.js.map} +1 -1
  62. package/dist/chunks/{chunk.UTQI2VQ2.js → chunk.GVUUQ2W4.js} +4 -4
  63. package/dist/chunks/chunk.GVUUQ2W4.js.map +7 -0
  64. package/dist/chunks/{chunk.6RF44NIZ.js → chunk.H7UCBY57.js} +3 -3
  65. package/dist/chunks/{chunk.ZQ5BS2TM.js → chunk.HM44E4PX.js} +4 -4
  66. package/dist/chunks/chunk.HM44E4PX.js.map +7 -0
  67. package/dist/chunks/{chunk.CISKTZGG.js → chunk.HUORPYGL.js} +2 -2
  68. package/dist/chunks/{chunk.HKO5WHXJ.js → chunk.HVZKVKOR.js} +2 -2
  69. package/dist/chunks/{chunk.ODUYF2HL.js → chunk.HYTF4XGY.js} +2 -2
  70. package/dist/chunks/{chunk.YAARHVTM.js → chunk.I5CHSTMM.js} +2 -2
  71. package/dist/chunks/{chunk.YAARHVTM.js.map → chunk.I5CHSTMM.js.map} +1 -1
  72. package/dist/chunks/{chunk.PZNGAGHS.js → chunk.IUCGQ5D2.js} +2 -2
  73. package/dist/chunks/{chunk.SVQF57S5.js → chunk.J2SYEGGE.js} +5 -5
  74. package/dist/chunks/chunk.J2SYEGGE.js.map +7 -0
  75. package/dist/chunks/{chunk.6TYEFVBX.js → chunk.J7MCFPFT.js} +2 -2
  76. package/dist/chunks/{chunk.OM4E6PT6.js → chunk.JFBMMGIE.js} +3 -3
  77. package/dist/chunks/chunk.JFBMMGIE.js.map +7 -0
  78. package/dist/chunks/{chunk.FWMVFHBH.js → chunk.JL3625M4.js} +5 -5
  79. package/dist/chunks/chunk.JL3625M4.js.map +7 -0
  80. package/dist/chunks/{chunk.XYKC25YV.js → chunk.JVF6WH3G.js} +2 -2
  81. package/dist/chunks/{chunk.BXLEPXUW.js → chunk.L5YW5P5A.js} +4 -4
  82. package/dist/chunks/{chunk.ZHURWMEB.js → chunk.LHTUXCX5.js} +3 -3
  83. package/dist/chunks/chunk.LHTUXCX5.js.map +7 -0
  84. package/dist/chunks/{chunk.W24NNUJZ.js → chunk.LQB3KP2I.js} +2 -2
  85. package/dist/chunks/{chunk.WLWKLEXV.js → chunk.LXPCRROJ.js} +4 -4
  86. package/dist/chunks/chunk.LXPCRROJ.js.map +7 -0
  87. package/dist/chunks/{chunk.OW43BAXS.js → chunk.LZYNETOH.js} +3 -3
  88. package/dist/chunks/chunk.LZYNETOH.js.map +7 -0
  89. package/dist/chunks/{chunk.HFGDRY3E.js → chunk.MXYLW6LZ.js} +3 -3
  90. package/dist/chunks/{chunk.3Y3MJUES.js → chunk.N7KBZBXL.js} +2 -2
  91. package/dist/chunks/{chunk.5F5CN6NW.js → chunk.NXKINKZM.js} +2 -2
  92. package/dist/chunks/{chunk.AMIQC3O7.js → chunk.OLRA37R5.js} +1 -1
  93. package/dist/chunks/{chunk.AMIQC3O7.js.map → chunk.OLRA37R5.js.map} +1 -1
  94. package/dist/chunks/{chunk.REU6GUFR.js → chunk.ON3LGQ5S.js} +2 -2
  95. package/dist/chunks/chunk.ON3LGQ5S.js.map +7 -0
  96. package/dist/chunks/{chunk.M5PBGVOF.js → chunk.POX3RJRS.js} +2 -2
  97. package/dist/chunks/{chunk.M5PBGVOF.js.map → chunk.POX3RJRS.js.map} +1 -1
  98. package/dist/chunks/{chunk.6WWQYPMH.js → chunk.PS4UOADD.js} +2 -2
  99. package/dist/chunks/{chunk.XK322UL3.js → chunk.PXLPH4ZT.js} +2 -2
  100. package/dist/chunks/{chunk.V4SIKF4X.js → chunk.PY4VOF4Y.js} +28 -1
  101. package/dist/chunks/{chunk.V4SIKF4X.js.map → chunk.PY4VOF4Y.js.map} +2 -2
  102. package/dist/chunks/{chunk.B6WN2G5V.js → chunk.QAEH7R3U.js} +7 -7
  103. package/dist/chunks/{chunk.TFNYR2KP.js → chunk.QQ6KFKLP.js} +3 -3
  104. package/dist/chunks/{chunk.TFNYR2KP.js.map → chunk.QQ6KFKLP.js.map} +1 -1
  105. package/dist/chunks/{chunk.RVC3AMUR.js → chunk.RGIES44Z.js} +2 -2
  106. package/dist/chunks/chunk.RGIES44Z.js.map +7 -0
  107. package/dist/chunks/{chunk.TBNGCBTZ.js → chunk.RKFTHGTE.js} +2 -2
  108. package/dist/chunks/{chunk.X4A55LYA.js → chunk.RPFN53P3.js} +2 -2
  109. package/dist/chunks/{chunk.LX6SYGK5.js → chunk.RSWZUKXM.js} +2 -2
  110. package/dist/chunks/{chunk.G5DUCCER.js → chunk.RUEERVHM.js} +2 -2
  111. package/dist/chunks/{chunk.BIJHP4OD.js → chunk.S52BIS46.js} +2 -2
  112. package/dist/chunks/{chunk.WSW54RSO.js → chunk.SAFEBL4O.js} +2 -2
  113. package/dist/chunks/{chunk.R5UXKTYT.js → chunk.SVRT65NQ.js} +4 -4
  114. package/dist/chunks/chunk.SVRT65NQ.js.map +7 -0
  115. package/dist/chunks/{chunk.TPPNCG2H.js → chunk.T4MII26M.js} +3 -3
  116. package/dist/chunks/chunk.T4MII26M.js.map +7 -0
  117. package/dist/chunks/{chunk.JYLAZI35.js → chunk.TCX6H2O5.js} +6 -6
  118. package/dist/chunks/chunk.TCX6H2O5.js.map +7 -0
  119. package/dist/chunks/{chunk.5NUVDOEI.js → chunk.TYYODSM6.js} +2 -2
  120. package/dist/chunks/{chunk.HZPQCZB4.js → chunk.U2N5PM4G.js} +2 -2
  121. package/dist/chunks/chunk.U2N5PM4G.js.map +7 -0
  122. package/dist/chunks/{chunk.CLFNUKD3.js → chunk.UMRCM4IO.js} +2 -2
  123. package/dist/chunks/{chunk.7TXCGOZV.js → chunk.V75RLG7B.js} +2 -2
  124. package/dist/chunks/{chunk.2LVEER6L.js → chunk.VGDKZCQO.js} +2 -2
  125. package/dist/chunks/{chunk.Z6GCX27R.js → chunk.VJ4QWPCQ.js} +2 -2
  126. package/dist/chunks/chunk.VJ4QWPCQ.js.map +7 -0
  127. package/dist/chunks/{chunk.B6R3IVGO.js → chunk.VN2PSQ4U.js} +17 -1
  128. package/dist/chunks/chunk.VN2PSQ4U.js.map +7 -0
  129. package/dist/chunks/{chunk.MK3QC5KY.js → chunk.VWVI45BG.js} +2 -2
  130. package/dist/chunks/{chunk.5SV32DIR.js → chunk.W74T3FY5.js} +4 -4
  131. package/dist/chunks/{chunk.ZIJT7PED.js → chunk.WAOOF5H7.js} +2 -2
  132. package/dist/chunks/{chunk.ZIJT7PED.js.map → chunk.WAOOF5H7.js.map} +1 -1
  133. package/dist/chunks/{chunk.GC3UZKRN.js → chunk.WRTU5JLC.js} +3 -3
  134. package/dist/chunks/chunk.WRTU5JLC.js.map +7 -0
  135. package/dist/chunks/{chunk.JI5XL62K.js → chunk.X3EIVXGN.js} +3 -3
  136. package/dist/chunks/chunk.X3EIVXGN.js.map +7 -0
  137. package/dist/chunks/{chunk.4V3CK3E5.js → chunk.X4Z6PTBI.js} +4 -4
  138. package/dist/chunks/chunk.X4Z6PTBI.js.map +7 -0
  139. package/dist/chunks/{chunk.R2QLFXMK.js → chunk.XYD2O3EH.js} +2 -2
  140. package/dist/chunks/{chunk.BCHOA243.js → chunk.Y5QM2QPR.js} +2 -2
  141. package/dist/chunks/chunk.Y5QM2QPR.js.map +7 -0
  142. package/dist/chunks/{chunk.R4VNFUOA.js → chunk.ZKNFPDD7.js} +2 -2
  143. package/dist/chunks/{chunk.XKQC62H5.js → chunk.ZP3B77TW.js} +5 -5
  144. package/dist/chunks/chunk.ZP3B77TW.js.map +7 -0
  145. package/dist/chunks/{chunk.IMDTBKI4.js → chunk.ZZVDC3ZS.js} +3 -3
  146. package/dist/chunks/chunk.ZZVDC3ZS.js.map +7 -0
  147. package/dist/components/accordion/accordion.component.js +2 -2
  148. package/dist/components/accordion/accordion.js +3 -3
  149. package/dist/components/alert/alert.component.d.ts +1 -1
  150. package/dist/components/alert/alert.component.js +4 -4
  151. package/dist/components/alert/alert.js +5 -5
  152. package/dist/components/badge/badge.component.d.ts +1 -1
  153. package/dist/components/badge/badge.component.js +2 -2
  154. package/dist/components/badge/badge.js +3 -3
  155. package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  156. package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
  157. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  158. package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +1 -1
  159. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  160. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  161. package/dist/components/button/button.component.d.ts +1 -1
  162. package/dist/components/button/button.component.js +5 -5
  163. package/dist/components/button/button.js +6 -6
  164. package/dist/components/button-group/button-group.component.d.ts +1 -1
  165. package/dist/components/button-group/button-group.component.js +2 -2
  166. package/dist/components/button-group/button-group.js +3 -3
  167. package/dist/components/card/card.component.d.ts +1 -1
  168. package/dist/components/card/card.component.js +2 -2
  169. package/dist/components/card/card.js +3 -3
  170. package/dist/components/checkbox/checkbox.component.d.ts +1 -1
  171. package/dist/components/checkbox/checkbox.component.js +4 -4
  172. package/dist/components/checkbox/checkbox.js +5 -5
  173. package/dist/components/combobox/combobox.component.js +7 -7
  174. package/dist/components/combobox/combobox.js +8 -8
  175. package/dist/components/combobox/combobox.styles.js +1 -1
  176. package/dist/components/details/details.component.d.ts +1 -1
  177. package/dist/components/details/details.component.js +3 -3
  178. package/dist/components/details/details.js +4 -4
  179. package/dist/components/dialog/dialog.component.d.ts +1 -1
  180. package/dist/components/dialog/dialog.component.js +4 -4
  181. package/dist/components/dialog/dialog.js +5 -5
  182. package/dist/components/divider/divider.component.d.ts +1 -1
  183. package/dist/components/divider/divider.component.js +2 -2
  184. package/dist/components/divider/divider.js +3 -3
  185. package/dist/components/drawer/drawer.component.d.ts +1 -1
  186. package/dist/components/drawer/drawer.component.js +4 -4
  187. package/dist/components/drawer/drawer.js +5 -5
  188. package/dist/components/dropdown/dropdown.component.d.ts +1 -1
  189. package/dist/components/dropdown/dropdown.component.js +3 -3
  190. package/dist/components/dropdown/dropdown.js +4 -4
  191. package/dist/components/file/file.component.d.ts +1 -0
  192. package/dist/components/file/file.component.js +6 -6
  193. package/dist/components/file/file.js +7 -7
  194. package/dist/components/header/header.component.js +4 -4
  195. package/dist/components/header/header.js +5 -5
  196. package/dist/components/icon/icon.component.d.ts +1 -1
  197. package/dist/components/icon/icon.component.js +2 -2
  198. package/dist/components/icon/icon.js +3 -3
  199. package/dist/components/icon-button/icon-button.component.d.ts +1 -1
  200. package/dist/components/icon-button/icon-button.component.js +3 -3
  201. package/dist/components/icon-button/icon-button.js +4 -4
  202. package/dist/components/input/input.component.d.ts +1 -1
  203. package/dist/components/input/input.component.js +5 -5
  204. package/dist/components/input/input.js +6 -6
  205. package/dist/components/menu/menu.component.d.ts +1 -1
  206. package/dist/components/menu/menu.component.js +2 -2
  207. package/dist/components/menu/menu.js +3 -3
  208. package/dist/components/menu-item/menu-item.component.d.ts +1 -1
  209. package/dist/components/menu-item/menu-item.component.js +5 -5
  210. package/dist/components/menu-item/menu-item.js +6 -6
  211. package/dist/components/menu-label/menu-label.component.d.ts +1 -1
  212. package/dist/components/menu-label/menu-label.component.js +3 -3
  213. package/dist/components/menu-label/menu-label.js +4 -4
  214. package/dist/components/nav-item/nav-item.component.d.ts +1 -0
  215. package/dist/components/nav-item/nav-item.component.js +3 -3
  216. package/dist/components/nav-item/nav-item.js +4 -4
  217. package/dist/components/optgroup/optgroup.component.js +3 -3
  218. package/dist/components/optgroup/optgroup.js +4 -4
  219. package/dist/components/option/option.component.d.ts +1 -1
  220. package/dist/components/option/option.component.js +3 -3
  221. package/dist/components/option/option.js +4 -4
  222. package/dist/components/popup/popup.component.d.ts +1 -1
  223. package/dist/components/popup/popup.component.js +2 -2
  224. package/dist/components/popup/popup.js +3 -3
  225. package/dist/components/prio-nav/prio-nav.component.d.ts +1 -0
  226. package/dist/components/prio-nav/prio-nav.component.js +8 -8
  227. package/dist/components/prio-nav/prio-nav.js +9 -9
  228. package/dist/components/progress-bar/progress-bar.component.d.ts +1 -1
  229. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  230. package/dist/components/progress-bar/progress-bar.js +3 -3
  231. package/dist/components/progress-ring/progress-ring.component.d.ts +1 -1
  232. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  233. package/dist/components/progress-ring/progress-ring.js +3 -3
  234. package/dist/components/radio/radio.component.d.ts +1 -1
  235. package/dist/components/radio/radio.component.js +3 -3
  236. package/dist/components/radio/radio.js +4 -4
  237. package/dist/components/radio-button/radio-button.component.d.ts +1 -1
  238. package/dist/components/radio-button/radio-button.component.js +2 -2
  239. package/dist/components/radio-button/radio-button.js +3 -3
  240. package/dist/components/radio-group/radio-group.component.d.ts +1 -1
  241. package/dist/components/radio-group/radio-group.component.js +4 -4
  242. package/dist/components/radio-group/radio-group.js +5 -5
  243. package/dist/components/range/range.component.js +5 -5
  244. package/dist/components/range/range.js +6 -6
  245. package/dist/components/range-tick/range-tick.component.d.ts +1 -1
  246. package/dist/components/range-tick/range-tick.component.js +2 -2
  247. package/dist/components/range-tick/range-tick.js +3 -3
  248. package/dist/components/resize-observer/resize-observer.component.d.ts +1 -1
  249. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  250. package/dist/components/select/select.component.d.ts +6 -1
  251. package/dist/components/select/select.component.js +9 -9
  252. package/dist/components/select/select.custom.styles.js +1 -1
  253. package/dist/components/select/select.js +10 -10
  254. package/dist/components/side-nav/side-nav.component.js +6 -6
  255. package/dist/components/side-nav/side-nav.js +7 -7
  256. package/dist/components/spinner/spinner.component.d.ts +1 -1
  257. package/dist/components/spinner/spinner.component.js +2 -2
  258. package/dist/components/spinner/spinner.js +3 -3
  259. package/dist/components/switch/switch.component.d.ts +1 -1
  260. package/dist/components/switch/switch.component.js +3 -3
  261. package/dist/components/switch/switch.js +4 -4
  262. package/dist/components/tab/tab.component.d.ts +1 -1
  263. package/dist/components/tab/tab.component.js +4 -4
  264. package/dist/components/tab/tab.js +5 -5
  265. package/dist/components/tab-group/tab-group.component.d.ts +1 -1
  266. package/dist/components/tab-group/tab-group.component.js +5 -5
  267. package/dist/components/tab-group/tab-group.js +6 -6
  268. package/dist/components/tab-panel/tab-panel.component.d.ts +1 -1
  269. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  270. package/dist/components/tab-panel/tab-panel.js +3 -3
  271. package/dist/components/tag/tag.component.d.ts +1 -1
  272. package/dist/components/tag/tag.component.js +5 -5
  273. package/dist/components/tag/tag.custom.styles.js +1 -1
  274. package/dist/components/tag/tag.js +6 -6
  275. package/dist/components/textarea/textarea.component.d.ts +1 -1
  276. package/dist/components/textarea/textarea.component.js +3 -3
  277. package/dist/components/textarea/textarea.js +4 -4
  278. package/dist/components/tooltip/tooltip.component.d.ts +1 -1
  279. package/dist/components/tooltip/tooltip.component.js +3 -3
  280. package/dist/components/tooltip/tooltip.js +4 -4
  281. package/dist/components/validate/utility.js +2 -2
  282. package/dist/components/validate/validate.component.d.ts +1 -1
  283. package/dist/components/validate/validate.component.js +6 -6
  284. package/dist/components/validate/validate.js +7 -7
  285. package/dist/custom-elements.json +103 -80
  286. package/dist/styles/index.css +1 -1
  287. package/dist/synergy.js +106 -106
  288. package/dist/utilities/form.js +2 -2
  289. package/dist/vscode.html-custom-data.json +48 -48
  290. package/package.json +1 -1
  291. package/dist/chunks/chunk.3DBL44XT.js.map +0 -7
  292. package/dist/chunks/chunk.4V3CK3E5.js.map +0 -7
  293. package/dist/chunks/chunk.B6R3IVGO.js.map +0 -7
  294. package/dist/chunks/chunk.BCHOA243.js.map +0 -7
  295. package/dist/chunks/chunk.BZELMZLF.js.map +0 -7
  296. package/dist/chunks/chunk.DAV2CQP4.js.map +0 -7
  297. package/dist/chunks/chunk.FWMVFHBH.js.map +0 -7
  298. package/dist/chunks/chunk.GC3UZKRN.js.map +0 -7
  299. package/dist/chunks/chunk.GUZDBXQN.js.map +0 -7
  300. package/dist/chunks/chunk.HZPQCZB4.js.map +0 -7
  301. package/dist/chunks/chunk.IMDTBKI4.js.map +0 -7
  302. package/dist/chunks/chunk.J7BEYJP3.js.map +0 -7
  303. package/dist/chunks/chunk.JI5XL62K.js.map +0 -7
  304. package/dist/chunks/chunk.JYLAZI35.js.map +0 -7
  305. package/dist/chunks/chunk.NNHI3TAI.js.map +0 -7
  306. package/dist/chunks/chunk.OM4E6PT6.js.map +0 -7
  307. package/dist/chunks/chunk.OMI5RA5T.js.map +0 -7
  308. package/dist/chunks/chunk.OW43BAXS.js.map +0 -7
  309. package/dist/chunks/chunk.PS66JFEN.js.map +0 -7
  310. package/dist/chunks/chunk.QFNMNSWC.js.map +0 -7
  311. package/dist/chunks/chunk.R5UXKTYT.js.map +0 -7
  312. package/dist/chunks/chunk.REU6GUFR.js.map +0 -7
  313. package/dist/chunks/chunk.RVC3AMUR.js.map +0 -7
  314. package/dist/chunks/chunk.SVQF57S5.js.map +0 -7
  315. package/dist/chunks/chunk.SVSSWAPO.js.map +0 -7
  316. package/dist/chunks/chunk.TPPNCG2H.js.map +0 -7
  317. package/dist/chunks/chunk.UTQI2VQ2.js.map +0 -7
  318. package/dist/chunks/chunk.UUMXRZQH.js.map +0 -7
  319. package/dist/chunks/chunk.W5XRTLRL.js.map +0 -7
  320. package/dist/chunks/chunk.WLWKLEXV.js.map +0 -7
  321. package/dist/chunks/chunk.XKQC62H5.js.map +0 -7
  322. package/dist/chunks/chunk.Z6GCX27R.js.map +0 -7
  323. package/dist/chunks/chunk.ZHURWMEB.js.map +0 -7
  324. package/dist/chunks/chunk.ZQ5BS2TM.js.map +0 -7
  325. package/dist/chunks/chunk.ZSR45DPF.js.map +0 -7
  326. /package/dist/chunks/{chunk.TILODMF6.js.map → chunk.2DLRC5TE.js.map} +0 -0
  327. /package/dist/chunks/{chunk.ENQBDTFB.js.map → chunk.2WXFDAH7.js.map} +0 -0
  328. /package/dist/chunks/{chunk.4ETD2DNL.js.map → chunk.2YPXA4EL.js.map} +0 -0
  329. /package/dist/chunks/{chunk.QA5GZULT.js.map → chunk.342T37S6.js.map} +0 -0
  330. /package/dist/chunks/{chunk.UKJI6GPV.js.map → chunk.3RHSPVWP.js.map} +0 -0
  331. /package/dist/chunks/{chunk.IACSPHN4.js.map → chunk.573I2RT5.js.map} +0 -0
  332. /package/dist/chunks/{chunk.ZRWZBAUT.js.map → chunk.5NU5JFH5.js.map} +0 -0
  333. /package/dist/chunks/{chunk.UTJJJQMA.js.map → chunk.6GBQX53P.js.map} +0 -0
  334. /package/dist/chunks/{chunk.XIMS5LSS.js.map → chunk.6XJSQXBY.js.map} +0 -0
  335. /package/dist/chunks/{chunk.UNGVPGXL.js.map → chunk.7CA3JCDV.js.map} +0 -0
  336. /package/dist/chunks/{chunk.54GYFPMI.js.map → chunk.7FASNWSN.js.map} +0 -0
  337. /package/dist/chunks/{chunk.GA5LC2F3.js.map → chunk.ACDSXF4A.js.map} +0 -0
  338. /package/dist/chunks/{chunk.A6S64XOS.js.map → chunk.ADBSYBKF.js.map} +0 -0
  339. /package/dist/chunks/{chunk.6P6MZH7T.js.map → chunk.AEO3YBAE.js.map} +0 -0
  340. /package/dist/chunks/{chunk.5BL4RVHI.js.map → chunk.AM4CD2E5.js.map} +0 -0
  341. /package/dist/chunks/{chunk.MSQLDQBH.js.map → chunk.AMHWVTPZ.js.map} +0 -0
  342. /package/dist/chunks/{chunk.XKQKPYTB.js.map → chunk.B7IE3QTD.js.map} +0 -0
  343. /package/dist/chunks/{chunk.P6QZVA24.js.map → chunk.BDU6VEYE.js.map} +0 -0
  344. /package/dist/chunks/{chunk.WABV7HP2.js.map → chunk.CWMN3RGF.js.map} +0 -0
  345. /package/dist/chunks/{chunk.HPFIPD65.js.map → chunk.D3JQ2TWU.js.map} +0 -0
  346. /package/dist/chunks/{chunk.NIV4I3BO.js.map → chunk.DQFLAUMY.js.map} +0 -0
  347. /package/dist/chunks/{chunk.4KYHVE5E.js.map → chunk.E65WRZUZ.js.map} +0 -0
  348. /package/dist/chunks/{chunk.B5NEBCX6.js.map → chunk.EEDY654D.js.map} +0 -0
  349. /package/dist/chunks/{chunk.NV5NAKG7.js.map → chunk.EFTA2WH7.js.map} +0 -0
  350. /package/dist/chunks/{chunk.5CCH7OXU.js.map → chunk.FMMNG7VN.js.map} +0 -0
  351. /package/dist/chunks/{chunk.6RF44NIZ.js.map → chunk.H7UCBY57.js.map} +0 -0
  352. /package/dist/chunks/{chunk.CISKTZGG.js.map → chunk.HUORPYGL.js.map} +0 -0
  353. /package/dist/chunks/{chunk.HKO5WHXJ.js.map → chunk.HVZKVKOR.js.map} +0 -0
  354. /package/dist/chunks/{chunk.ODUYF2HL.js.map → chunk.HYTF4XGY.js.map} +0 -0
  355. /package/dist/chunks/{chunk.PZNGAGHS.js.map → chunk.IUCGQ5D2.js.map} +0 -0
  356. /package/dist/chunks/{chunk.6TYEFVBX.js.map → chunk.J7MCFPFT.js.map} +0 -0
  357. /package/dist/chunks/{chunk.XYKC25YV.js.map → chunk.JVF6WH3G.js.map} +0 -0
  358. /package/dist/chunks/{chunk.BXLEPXUW.js.map → chunk.L5YW5P5A.js.map} +0 -0
  359. /package/dist/chunks/{chunk.W24NNUJZ.js.map → chunk.LQB3KP2I.js.map} +0 -0
  360. /package/dist/chunks/{chunk.HFGDRY3E.js.map → chunk.MXYLW6LZ.js.map} +0 -0
  361. /package/dist/chunks/{chunk.3Y3MJUES.js.map → chunk.N7KBZBXL.js.map} +0 -0
  362. /package/dist/chunks/{chunk.5F5CN6NW.js.map → chunk.NXKINKZM.js.map} +0 -0
  363. /package/dist/chunks/{chunk.6WWQYPMH.js.map → chunk.PS4UOADD.js.map} +0 -0
  364. /package/dist/chunks/{chunk.XK322UL3.js.map → chunk.PXLPH4ZT.js.map} +0 -0
  365. /package/dist/chunks/{chunk.B6WN2G5V.js.map → chunk.QAEH7R3U.js.map} +0 -0
  366. /package/dist/chunks/{chunk.TBNGCBTZ.js.map → chunk.RKFTHGTE.js.map} +0 -0
  367. /package/dist/chunks/{chunk.X4A55LYA.js.map → chunk.RPFN53P3.js.map} +0 -0
  368. /package/dist/chunks/{chunk.LX6SYGK5.js.map → chunk.RSWZUKXM.js.map} +0 -0
  369. /package/dist/chunks/{chunk.G5DUCCER.js.map → chunk.RUEERVHM.js.map} +0 -0
  370. /package/dist/chunks/{chunk.BIJHP4OD.js.map → chunk.S52BIS46.js.map} +0 -0
  371. /package/dist/chunks/{chunk.WSW54RSO.js.map → chunk.SAFEBL4O.js.map} +0 -0
  372. /package/dist/chunks/{chunk.5NUVDOEI.js.map → chunk.TYYODSM6.js.map} +0 -0
  373. /package/dist/chunks/{chunk.CLFNUKD3.js.map → chunk.UMRCM4IO.js.map} +0 -0
  374. /package/dist/chunks/{chunk.7TXCGOZV.js.map → chunk.V75RLG7B.js.map} +0 -0
  375. /package/dist/chunks/{chunk.2LVEER6L.js.map → chunk.VGDKZCQO.js.map} +0 -0
  376. /package/dist/chunks/{chunk.MK3QC5KY.js.map → chunk.VWVI45BG.js.map} +0 -0
  377. /package/dist/chunks/{chunk.5SV32DIR.js.map → chunk.W74T3FY5.js.map} +0 -0
  378. /package/dist/chunks/{chunk.R2QLFXMK.js.map → chunk.XYD2O3EH.js.map} +0 -0
  379. /package/dist/chunks/{chunk.R4VNFUOA.js.map → chunk.ZKNFPDD7.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/icon/icon.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { getIconLibrary, type IconLibrary, unwatchIcon, watchIcon } from './library.js';\nimport { html } from 'lit';\nimport { isTemplateResult } from 'lit/directive-helpers.js';\nimport { property, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './icon.styles.js';\nimport customStyles from './icon.custom.styles.js';\nimport type { CSSResultGroup, HTMLTemplateResult } from 'lit';\n\nconst CACHEABLE_ERROR = Symbol();\nconst RETRYABLE_ERROR = Symbol();\ntype SVGResult = HTMLTemplateResult | SVGSVGElement | typeof RETRYABLE_ERROR | typeof CACHEABLE_ERROR;\n\nlet parser: DOMParser;\nconst iconCache = new Map<string, Promise<SVGResult>>();\n\ninterface IconSource {\n url?: string;\n fromLibrary: boolean;\n}\n\n/**\n * @summary Icons are symbols that can be used to represent various options within an application.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-icon--docs\n * @status stable\n * @since 2.0\n *\n * @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n * @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n *\n * @csspart svg - The internal SVG element.\n * @csspart use - The <use> element generated when using `spriteSheet: true`\n */\nexport default class SynIcon extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private initialRender = false;\n\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n private async resolveIcon(url: string, library?: IconLibrary): Promise<SVGResult> {\n let fileData: Response;\n\n if (library?.spriteSheet) {\n this.svg = html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\" width=\"100%\" height=\"100%\"></use>\n </svg>`;\n\n return this.svg;\n }\n\n // #806: Make sure to not fetch system icons\n // as they are part of the bundle anyways.\n // This speeds up the loading of the icon.\n if (this.library === 'system') {\n // Skip the icon if the URL is empty\n if (!url) {\n return CACHEABLE_ERROR;\n }\n\n // If the URL is a system icon, we can just return it\n fileData = new Response(url, {\n status: 200,\n });\n } else {\n try {\n fileData = await fetch(url, { mode: 'cors' });\n if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch {\n return RETRYABLE_ERROR;\n }\n }\n\n try {\n const div = document.createElement('div');\n div.innerHTML = await fileData.text();\n\n const svg = div.firstElementChild;\n if (svg?.tagName?.toLowerCase() !== 'svg') return CACHEABLE_ERROR;\n\n if (!parser) parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, 'text/html');\n\n const svgEl = doc.body.querySelector('svg');\n if (!svgEl) return CACHEABLE_ERROR;\n\n svgEl.part.add('svg');\n return document.adoptNode(svgEl);\n } catch {\n return CACHEABLE_ERROR;\n }\n }\n\n @state() private svg: SVGElement | HTMLTemplateResult | null = null;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property({ reflect: true }) name?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /**\n * An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and\n * ignored by assistive devices.\n */\n @property() label = '';\n\n /** The name of a registered custom icon library. */\n @property({ reflect: true }) library = 'default';\n\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n\n private getIconSource(): IconSource {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n\n @watch('label')\n handleLabelChange() {\n const hasLabel = typeof this.label === 'string' && this.label.length > 0;\n\n if (hasLabel) {\n this.setAttribute('role', 'img');\n this.setAttribute('aria-label', this.label);\n this.removeAttribute('aria-hidden');\n } else {\n this.removeAttribute('role');\n this.removeAttribute('aria-label');\n this.setAttribute('aria-hidden', 'true');\n }\n }\n\n @watch(['name', 'src', 'library'])\n async setIcon() {\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : undefined;\n\n if (!url) {\n this.svg = null;\n return;\n }\n\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n\n // If we haven't rendered yet, exit early. This avoids unnecessary work due to watching multiple props.\n if (!this.initialRender) {\n return;\n }\n\n const svg = await iconResolver;\n\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n\n if (url !== this.getIconSource().url) {\n // If the url has changed while fetching the icon, ignore this request\n return;\n }\n\n if (isTemplateResult(svg)) {\n this.svg = svg;\n\n if (library) {\n // Using a templateResult requires the SVG to be written to the DOM first before we can grab the SVGElement\n // to be passed to the library's mutator function.\n await this.updateComplete;\n\n const shadowSVG = this.shadowRoot!.querySelector(\"[part='svg']\")!;\n\n if (typeof library.mutator === 'function' && shadowSVG) {\n library.mutator(shadowSVG as SVGElement);\n }\n }\n\n return;\n }\n\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit('syn-error');\n break;\n default:\n this.svg = svg.cloneNode(true) as SVGElement;\n library?.mutator?.(this.svg);\n this.emit('syn-load');\n }\n }\n\n render() {\n return this.svg;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,UAAU,aAAa;AAQhC,IAAM,kBAAkB,OAAO;AAC/B,IAAM,kBAAkB,OAAO;AAG/B,IAAI;AACJ,IAAM,YAAY,oBAAI,IAAgC;AAmBtD,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAGE,SAAQ,gBAAgB;AAwDf,SAAQ,MAA8C;AAenD,iBAAQ;AAGS,mBAAU;AAAA;AAAA;AAAA,EAvEvC,MAAc,YAAY,KAAa,SAA2C;AAjDpF;AAkDI,QAAI;AAEJ,QAAI,mCAAS,aAAa;AACxB,WAAK,MAAM;AAAA,gCACe,GAAG;AAAA;AAG7B,aAAO,KAAK;AAAA,IACd;AAKA,QAAI,KAAK,YAAY,UAAU;AAE7B,UAAI,CAAC,KAAK;AACR,eAAO;AAAA,MACT;AAGA,iBAAW,IAAI,SAAS,KAAK;AAAA,QAC3B,QAAQ;AAAA,MACV,CAAC;AAAA,IACH,OAAO;AACL,UAAI;AACF,mBAAW,MAAM,MAAM,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5C,YAAI,CAAC,SAAS,GAAI,QAAO,SAAS,WAAW,MAAM,kBAAkB;AAAA,MACvE,SAAQ;AACN,eAAO;AAAA,MACT;AAAA,IACF;AAEA,QAAI;AACF,YAAM,MAAM,SAAS,cAAc,KAAK;AACxC,UAAI,YAAY,MAAM,SAAS,KAAK;AAEpC,YAAM,MAAM,IAAI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,SAAS,KAAK,CAAC;AAAA,GA7ER,QA6EU;AAiC7B;AAAA,EADC,MAAM,OAAO;AAAA,GA7GK,QA8GnB;AAeM;AAAA,EADL,MAAM,CAAC,QAAQ,OAAO,SAAS,CAAC;AAAA,GA5Hd,QA6Hb;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynProgressRing
3
- } from "./chunk.BCHOA243.js";
3
+ } from "./chunk.Y5QM2QPR.js";
4
4
 
5
5
  // src/components/progress-ring/progress-ring.ts
6
6
  var progress_ring_default = SynProgressRing;
@@ -9,4 +9,4 @@ SynProgressRing.define("syn-progress-ring");
9
9
  export {
10
10
  progress_ring_default
11
11
  };
12
- //# sourceMappingURL=chunk.IACSPHN4.js.map
12
+ //# sourceMappingURL=chunk.573I2RT5.js.map
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk.AERTEAG5.js";
11
11
  import {
12
12
  SynButton
13
- } from "./chunk.FWMVFHBH.js";
13
+ } from "./chunk.JL3625M4.js";
14
14
  import {
15
15
  FormControlController
16
- } from "./chunk.AMIQC3O7.js";
16
+ } from "./chunk.OLRA37R5.js";
17
17
  import {
18
18
  animateTo
19
19
  } from "./chunk.A3OYJILJ.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk.WVVQK5TE.js";
27
27
  import {
28
28
  SynIcon
29
- } from "./chunk.QFNMNSWC.js";
29
+ } from "./chunk.4YGRF4BM.js";
30
30
  import {
31
31
  LocalizeController
32
32
  } from "./chunk.GIU3H3J3.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk.NLYVOJGK.js";
42
42
  import {
43
43
  SynergyElement
44
- } from "./chunk.62XLN3FC.js";
44
+ } from "./chunk.4HHHVPCU.js";
45
45
  import {
46
46
  __decorateClass
47
47
  } from "./chunk.2GFK6XTO.js";
@@ -534,4 +534,4 @@ setDefaultAnimation("file.text.appear", {
534
534
  export {
535
535
  SynFile
536
536
  };
537
- //# sourceMappingURL=chunk.DAV2CQP4.js.map
537
+ //# sourceMappingURL=chunk.5IZULV2E.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/file/file.component.ts"],
4
+ "sourcesContent": ["import { classMap } from 'lit/directives/class-map.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { watch } from '../../internal/watch.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynButton from '../button/button.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './file.styles.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { animateTo } from '../../internal/animate.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary File controls allow selecting an arbitrary number of files for uploading.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-file--docs\n * @status stable\n *\n * @dependency syn-button\n * @dependency syn-icon\n *\n * @slot label - The file control's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the file control.\n * Alternatively, you can use the `help-text` attribute.\n * @slot droparea-icon - Optional droparea icon to use instead of the default.\n * Works best with `<syn-icon>`.\n * @slot trigger - Optional content to be used as trigger instead of the default content.\n * Opening the file dialog on click and as well as drag and drop will work for this content.\n * Following attributes will no longer work: *label*, *droparea*, *help-text*, *size*,\n * *hide-value*. Also if using the disabled attribute, the disabled styling will not be\n * applied and must be taken care of yourself.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-error - Emitted when multiple files are selected via drag and drop, without\n * the `multiple` property being set.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart button-wrapper - The wrapper around the button and text value.\n * @csspart button - The syn-button acting as a file input.\n * @csspart button__base - The syn-button's exported `base` part.\n * @csspart value - The chosen files or placeholder text for the file input.\n * @csspart droparea - The element wrapping the drop zone.\n * @csspart droparea-background - The background of the drop zone.\n * @csspart droparea-icon - The container that wraps the icon for the drop zone.\n * @csspart droparea-value - The text for the drop zone.\n * @csspart trigger - The container that wraps the trigger.\n *\n * @animation file.iconDrop - The animation to use for the file icon\n * when a file is dropped\n * @animation file.text.disappear - The disappear animation to use for the file placeholder text\n * when a file is dropped\n * @animation file.text.appear - The appear animation to use for the file placeholder text\n * when a file is dropped\n */\n@enableDefaultSettings('SynFile')\nexport default class SynFile extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n formControlCustomStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-button': SynButton,\n 'syn-icon': SynIcon,\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-change'],\n // This makes sure the value sent in formdata events is always the files object\n // @see internals/form.ts #handleFormData for more information\n value: (el: SynFile) => el.files,\n });\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n\n private readonly localize = new LocalizeController(this);\n\n @state() private userIsDragging = false;\n\n /**\n * The selected files as a FileList object containing a list of File objects.\n * The FileList behaves like an array, so you can get the number of selected files\n * via its length property.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files\n */\n @property({ type: Object })\n set files(v: FileList | null) {\n if (this.input) {\n this.input.files = v;\n }\n }\n\n get files() {\n return this.input?.files;\n }\n\n /** The name of the file control, submitted as a name/value pair with form data. */\n @property({ type: String }) name = '';\n\n /**\n * The current value of the input, submitted as a name/value pair with form data.\n * Beware that the only valid value when setting a file input is an empty string!\n */\n\n /**\n * The value of the file control contains a string that represents the path of the selected file.\n * If multiple files are selected, the value represents the first file in the list.\n * If no file is selected, the value is an empty string.\n * Beware that the only valid value when setting a file control is an empty string!\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value\n */\n @property({ type: String })\n set value(v: string) {\n if (this.input) {\n this.input.value = v;\n }\n }\n\n get value() {\n return this.input?.value;\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The file control's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The file control's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The file control's help text.\n * If you need to display HTML, use the `help-text` slot instead.\n */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Disables the file control. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** Draw the file control as a drop area */\n @property({ type: Boolean }) droparea = false;\n\n /**\n * Comma separated list of supported file types\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n * @example <syn-file accept=\".jpg,.jpeg,.png,.gif,text/plain,image/*\"></syn-file>\n */\n @property({ type: String }) accept = '';\n\n /**\n * Specifies the types of files that the server accepts.\n * Can be set either to user or environment.\n * Works only when not using a droparea!\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture\n */\n @property({ type: String }) capture: 'user' | 'environment';\n\n /**\n * Indicates whether the user can select more than one file.\n * Has no effect if webkitdirectory is set.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple\n */\n @property({ reflect: true, type: Boolean }) multiple = false;\n\n /**\n * Indicates that the file control should let the user select directories instead of files.\n * When a directory is selected, the directory and its entire hierarchy of contents are included\n * in the set of selected items.\n * Note: This is a non-standard attribute but is supported in the major browsers.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory\n */\n @property({ reflect: true, type: Boolean }) webkitdirectory = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element.\n * This attribute allows you to place the form control outside of a form and associate it\n * with the form that has this `id`. The form must be in the same document\n * or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the input a required field. */\n @property({ reflect: true, type: Boolean }) required = false;\n\n /** Suppress the value from being displayed in the file control */\n @property({ attribute: 'hide-value', type: Boolean }) hideValue = false;\n\n @query('.input__control') input: HTMLInputElement;\n\n @query('.button') button: SynButton;\n\n @query('.droparea') dropareaWrapper: HTMLDivElement;\n\n @query('.droparea__icon') dropareaIcon: HTMLSpanElement;\n\n @query('.input__value') inputChosen: HTMLSpanElement;\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n /**\n * Checks for validity but does not show a validation message.\n * Returns `true` when valid and `false` when invalid.\n */\n checkValidity() {\n return this.input.checkValidity();\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 return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the button or droparea. */\n focus(options?: FocusOptions) {\n if (this.droparea) {\n this.dropareaWrapper?.focus(options);\n return;\n }\n\n this.button?.focus(options);\n }\n\n /** Removes focus from the button or droparea. */\n blur() {\n if (this.droparea) {\n this.dropareaWrapper?.blur();\n return;\n }\n\n this.button?.blur();\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleFiles(files: FileList | null) {\n if (!files) {\n this.value = '';\n return;\n }\n this.files = files;\n }\n\n private async handleTransferItems(items: DataTransferItemList | null): Promise<FileList> {\n if (!items) {\n this.value = '';\n return new Promise((_resolve, reject) => { reject(new Error('No proper items found')); });\n }\n\n const entries = Array\n .from(items)\n .map(item => item.webkitGetAsEntry());\n\n const filesPromises = entries.map(entry => this.getFilesFromEntry(entry));\n const filesArray = await Promise.all(filesPromises);\n const files = filesArray.flat();\n\n const dataTransfer = new DataTransfer();\n Array.from(files).forEach(f => dataTransfer.items.add(f));\n return dataTransfer.files;\n }\n\n private async getFilesFromEntry(entry: FileSystemEntry | null): Promise<File[]> {\n if (!entry) {\n return [];\n }\n if (entry.isFile) {\n return new Promise<File[]>((resolve, reject) => {\n (entry as FileSystemFileEntry).file(file => resolve([file]), reject);\n });\n }\n if (entry.isDirectory) {\n return new Promise<File[]>((resolve, reject) => {\n const dirReader = (entry as FileSystemDirectoryEntry).createReader();\n dirReader.readEntries((entries) => {\n Promise.all(entries.map(e => this.getFilesFromEntry(e)))\n .then((files) => { resolve(files.flat()); })\n .catch(reject);\n });\n });\n }\n return [];\n }\n\n private handleClick(e: Event) {\n e.preventDefault();\n this.input.click();\n }\n\n /** Handles the change event of the native input */\n private handleChange(e: Event) {\n e.preventDefault();\n e.stopPropagation();\n\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n private handleDragOver(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n this.userIsDragging = true;\n }\n\n private handleDragLeave(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n this.userIsDragging = false;\n }\n\n // eslint-disable-next-line complexity\n private async handleDrop(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n\n if (!e.dataTransfer) {\n return;\n }\n\n const files = await this.handleTransferItems(e.dataTransfer?.items);\n\n this.userIsDragging = false;\n\n if (!files) {\n return;\n }\n\n // webkitdirectory also allows multiple files\n if (!this.multiple && !this.webkitdirectory && files.length > 1) {\n this.emit('syn-error');\n return;\n }\n\n // Use the transferred file list from the drag drop interface\n const hasTrigger = this.hasSlotController.test('trigger');\n if (!hasTrigger) {\n const disappearAnimation = getAnimation(this.inputChosen, 'file.text.disappear', { dir: this.localize.dir() });\n const appearAnimation = getAnimation(this.inputChosen, 'file.text.appear', { dir: this.localize.dir() });\n\n if (this.droparea) {\n const dropIconAnimation = getAnimation(this.dropareaIcon, 'file.iconDrop', { dir: this.localize.dir() });\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n animateTo(this.dropareaIcon, dropIconAnimation.keyframes, dropIconAnimation.options);\n }\n // eslint-disable-next-line max-len\n await animateTo(this.inputChosen, disappearAnimation.keyframes, disappearAnimation.options);\n this.handleFiles(files);\n await animateTo(this.inputChosen, appearAnimation.keyframes, appearAnimation.options);\n } else {\n this.handleFiles(files);\n }\n\n this.input.dispatchEvent(new Event('change'));\n }\n\n /**\n * Handle the focus of the droparea and emit focus event\n */\n private handleFocus() {\n this.emit('syn-focus');\n }\n\n /**\n * Handle the blur of the droparea and emit blur event\n */\n private handleBlur() {\n this.emit('syn-blur');\n }\n\n private renderValue() {\n let hasFiles = false;\n let fileChosenLabel = this.localize.term('numFilesSelected', 0, this.webkitdirectory);\n\n if (this.files && this.files?.length > 0) {\n hasFiles = true;\n fileChosenLabel = this.files.length === 1\n ? this.files[0].name\n : this.localize.term('numFilesSelected', this.files.length, this.webkitdirectory);\n }\n\n return html`\n <span\n class=${classMap({\n input__value: true,\n 'input__value--hidden': this.hideValue,\n 'input__value--placeholder': !hasFiles,\n })}\n part=\"value\"\n >\n ${fileChosenLabel}\n </span>\n `;\n }\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderDroparea() {\n return html`\n <div\n class=\"droparea\"\n @click=${this.handleClick}\n @keypress=${this.handleClick}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n tabindex=${this.disabled ? -1 : 0}\n part=\"droparea\"\n >\n <div\n class=\"droparea__background\"\n part=\"droparea-background\"\n >\n <span part=\"droparea-icon\" class=\"droparea__icon\">\n <slot name=\"droparea-icon\">\n <syn-icon name=\"upload-file\" library=\"system\" ></syn-icon>\n </slot>\n </span>\n <p\n class=\"droparea__text\"\n part=\"droparea-value\"\n >\n <strong>${this.localize.term(this.webkitdirectory ? 'folderDragDrop' : 'fileDragDrop')}</strong>\n ${this.renderValue()}\n </p>\n </div>\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderButton() {\n let buttonText = this.localize.term('fileButtonText');\n if (this.multiple) {\n buttonText = this.localize.term('fileButtonTextMultiple');\n }\n if (this.webkitdirectory) {\n buttonText = this.localize.term('folderButtonText');\n }\n\n return html`\n <div\n class=\"button__wrapper\"\n part=\"button-wrapper\"\n >\n <syn-button\n class=\"button\"\n @click=${this.handleClick}\n ?disabled=${this.disabled}\n exportparts=\"base:button__base\"\n part=\"button\"\n size=${this.size}\n variant=\"outline\"\n >\n ${buttonText}\n </syn-button>\n ${this.renderValue()}\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n // eslint-disable-next-line complexity\n render() {\n const hasLabel = this.label || !!this.hasSlotController.test('label');\n const hasHelpText = this.helpText ? true : !!this.hasSlotController.test('help-text');\n const hasTrigger = !!this.hasSlotController.test('trigger');\n\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--droparea': this.droparea,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-label': hasLabel,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n 'form-control--user-dragging': this.userIsDragging,\n })}\n @dragenter=${this.handleDragOver}\n @dragleave=${this.handleDragLeave}\n @dragover=${this.handleDragOver}\n @drop=${this.handleDrop}\n part=\"form-control\"\n >\n ${\n hasTrigger\n ? html`\n <slot \n @click=${this.handleClick}\n @keypress=${this.handleClick}\n name=\"trigger\"\n part=\"trigger\"\n ></slot>\n `\n : html`\n <label\n aria-hidden=${hasLabel ? 'false' : 'true'}\n class=\"form-control__label\"\n for=\"input\"\n part=\"form-control-label\"\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div\n class=\"form-control-input\"\n part=\"form-control-input\"\n >\n\n ${this.droparea ? this.renderDroparea() : this.renderButton()}\n </div>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n `\n }\n <input\n accept=${this.accept}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n class=\"input__control\"\n ?disabled=${this.disabled}\n id=\"input\"\n @invalid=${this.handleInvalid}\n ?multiple=${this.multiple}\n name=${ifDefined(this.name)}\n ?required=${this.required}\n type=\"file\"\n tabindex=\"-1\"\n ?webkitdirectory=${this.webkitdirectory}\n >\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n\nsetDefaultAnimation('file.iconDrop', {\n keyframes: [\n { scale: 1 },\n { scale: 0.7 },\n { scale: 1 },\n ],\n options: { duration: 600, easing: 'ease-out' },\n});\n\nsetDefaultAnimation('file.text.disappear', {\n keyframes: [\n { opacity: 1 },\n { opacity: 0, transform: 'translateY(-40%)' },\n ],\n options: { duration: 300, easing: 'cubic-bezier(0.45, 1.45, 0.8, 1)' },\n});\n\nsetDefaultAnimation('file.text.appear', {\n keyframes: [\n { opacity: 0, transform: 'translateY(40%)' },\n { opacity: 1 },\n ],\n options: { duration: 300, easing: 'cubic-bezier(0.45, 1.45, 0.8, 1)' },\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,gBAAgB;AACzB,SAAS,UAAU,OAAO,aAAa;AAEvC,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAkE1B,IAAqB,UAArB,cAAqC,eAA6C;AAAA,EAAlF;AAAA;AAaE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,YAAY;AAAA;AAAA;AAAA,MAGlC,OAAO,CAAC,OAAgB,GAAG;AAAA,IAC7B,CAAC;AAED,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,OAAO;AAErF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAE9C,SAAQ,iBAAiB;AAsBN,gBAAO;AA4BnB,wBAAe;AAGF,gBAAqC;AAGtD,iBAAQ;AAMkB,oBAAW;AAGL,oBAAW;AAG1B,oBAAW;AASZ,kBAAS;AAmBO,oBAAW;AAWX,2BAAkB;AAQjC,gBAAO;AAGQ,oBAAW;AAGD,qBAAY;AAAA;AAAA,EA9GlE,IAAI,MAAM,GAAoB;AAC5B,QAAI,KAAK,OAAO;AACd,WAAK,MAAM,QAAQ;AAAA,IACrB;AAAA,EACF;AAAA,EAEA,IAAI,QAAQ;AA/Gd;AAgHI,YAAO,UAAK,UAAL,mBAAY;AAAA,EACrB;AAAA,EAoBA,IAAI,MAAM,GAAW;AACnB,QAAI,KAAK,OAAO;AACd,WAAK,MA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AAO,IAAI;AAAA,IACb,EAAE,OAAO,EAAE;AAAA,EACb;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,WAAW;AAC/C,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW;AAAA,IACT,EAAE,SAAS,EAAE;AAAA,IACb,EAAE,SAAS,GAAG,WAAW,mBAAmB;AAAA,EAC9C;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,mCAAmC;AACvE,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,WAAW,kBAAkB;AAAA,IAC3C,EAAE,SAAS,EAAE;AAAA,EACf;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,mCAAmC;AACvE,CAAC;",
6
+ "names": []
7
+ }
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk.HQ6QUSK7.js";
19
19
  import {
20
20
  SynIcon
21
- } from "./chunk.QFNMNSWC.js";
21
+ } from "./chunk.4YGRF4BM.js";
22
22
  import {
23
23
  LocalizeController
24
24
  } from "./chunk.GIU3H3J3.js";
@@ -33,7 +33,7 @@ import {
33
33
  } from "./chunk.NLYVOJGK.js";
34
34
  import {
35
35
  SynergyElement
36
- } from "./chunk.62XLN3FC.js";
36
+ } from "./chunk.4HHHVPCU.js";
37
37
  import {
38
38
  __decorateClass
39
39
  } from "./chunk.2GFK6XTO.js";
@@ -247,4 +247,4 @@ setDefaultAnimation("details.hide", {
247
247
  export {
248
248
  SynDetails
249
249
  };
250
- //# sourceMappingURL=chunk.PS66JFEN.js.map
250
+ //# sourceMappingURL=chunk.5KPQ3VYB.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/details/details.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { animateTo, shimKeyframesHeightAuto, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './details.styles.js';\nimport customStyles from './details.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Details show a brief summary and expand to show additional content.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-details--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The details' main content.\n * @slot summary - The details' summary. Alternatively, you can use the `summary` attribute.\n * @slot expand-icon - Optional expand icon to use instead of the default. Works best with `<syn-icon>`.\n * @slot collapse-icon - Optional collapse icon to use instead of the default. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the details opens.\n * @event syn-after-show - Emitted after the details opens and all animations are complete.\n * @event syn-hide - Emitted when the details closes.\n * @event syn-after-hide - Emitted after the details closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart header - The header that wraps both the summary and the expand/collapse icon.\n * @csspart summary - The container that wraps the summary.\n * @csspart summary-icon - The container that wraps the expand/collapse icons.\n * @csspart content - The details content.\n * @csspart body - The container that wraps the details content.\n *\n * @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.\n * @animation details.hide - The animation to use when hiding details. You can use `height: auto` with this animation.\n */\n@enableDefaultSettings('SynDetails')\nexport default class SynDetails extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n static dependencies = {\n 'syn-icon': SynIcon\n };\n\n private readonly localize = new LocalizeController(this);\n\n @query('.details') details: HTMLDetailsElement;\n @query('.details__header') header: HTMLElement;\n @query('.details__body') body: HTMLElement;\n @query('.details__expand-icon-slot') expandIconSlot: HTMLSlotElement;\n\n detailsObserver: MutationObserver;\n\n /**\n * Indicates whether or not the details is open. You can toggle this attribute to show and hide the details, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the details' open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** The summary to show in the header. If you need to display HTML, use the `summary` slot instead. */\n @property() summary: string;\n\n /** Disables the details so it can't be toggled. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the details as contained element. */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /** The details's size. */\n @property({ reflect: true }) size: 'medium' | 'large' = 'medium';\n\n firstUpdated() {\n this.body.style.height = this.open ? 'auto' : '0';\n if (this.open) {\n this.details.open = true;\n }\n\n this.detailsObserver = new MutationObserver(changes => {\n for (const change of changes) {\n if (change.type === 'attributes' && change.attributeName === 'open') {\n if (this.details.open) {\n this.show();\n } else {\n this.hide();\n }\n }\n }\n });\n this.detailsObserver.observe(this.details, { attributes: true });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.detailsObserver?.disconnect();\n }\n\n private handleSummaryClick(event: MouseEvent) {\n event.preventDefault();\n\n if (!this.disabled) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n this.header.focus();\n }\n }\n\n private handleSummaryKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.hide();\n }\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {\n event.preventDefault();\n this.show();\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n this.details.open = true;\n // Show\n const slShow = this.emit('syn-show', { cancelable: true });\n if (slShow.defaultPrevented) {\n this.open = false;\n this.details.open = false;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.show', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.emit('syn-after-show');\n } else {\n // Hide\n const slHide = this.emit('syn-hide', { cancelable: true });\n if (slHide.defaultPrevented) {\n this.details.open = true;\n this.open = true;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.hide', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.details.open = false;\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the details. */\n async show() {\n if (this.open || this.disabled) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the details */\n async hide() {\n if (!this.open || this.disabled) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n render() {\n return html`\n <details\n part=\"base\"\n class=${classMap({\n details: true,\n 'details--size-medium': this.size === 'medium',\n 'details--size-large': this.size === 'large',\n 'details--open': this.open,\n 'details--disabled': this.disabled,\n 'details--contained': this.contained,\n })}\n >\n <summary\n part=\"header\"\n id=\"header\"\n class=\"details__header\"\n role=\"button\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-controls=\"content\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @click=${this.handleSummaryClick}\n @keydown=${this.handleSummaryKeyDown}\n >\n <slot name=\"summary\" part=\"summary\" class=\"details__summary\">${this.summary}</slot>\n\n <span part=\"summary-icon\" class=\"details__summary-icon\">\n <slot name=\"expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n <slot name=\"collapse-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </span>\n </summary>\n\n <div class=\"details__body\" part=\"body\" role=\"region\" aria-labelledby=\"header\">\n <slot part=\"content\" id=\"content\" class=\"details__content\"></slot>\n </div>\n </details>\n `;\n }\n}\n\nsetDefaultAnimation('details.show', {\n keyframes: [\n { height: '0', opacity: '0' },\n { height: 'auto', opacity: '1' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n\nsetDefaultAnimation('details.hide', {\n keyframes: [\n { height: 'auto', opacity: '1' },\n { height: '0', opacity: '0' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAwChC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAOE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAaX,gBAAO;AAMP,oBAAW;AAGX,qBAAY;AAG3B,gBAA2B;AAAA;AAAA,EAExD,eAAe;AACb,SAAK,KAAK,MAAM,SAAS,KAAK,OAAO,SAAS;AAC9C,QAAI,KAAK,MAAM;AACb,WAAK,QAAQ,OAAO;AAAA,IACtB;AAEA,SAAK,kBAAkB,IAAI,iBAAiB,aAAW;AACrD,iBAAW,UAAU,SAAS;AAC5B,YAAI,OAAO,SAAS,gBAAgB,OAAO,kBAAkB,QAAQ;AACnE,cAAI,KAAK,QAAQ,MAAM;AACrB,iBAAK,KAAK;AAAA,UACZ,OAAO;AACL,iBAAK,KAAK;AAAA,UACZ;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAC;AACD,SAAK,gBAAgB,QAAQ,KAAK,SAAS,EAAE,YAAY,KAAK,CAAC;AAAA,EACjE;AAAA,EAEA,uBAAuB;AA3GzB;AA4GI,UAAM,qBAAqB;AAC3B,eAAK,oBAAL,mBAAsB;AAAA,EACxB;AAAA,EAEQ,mBAAmB,OA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 "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTabGroup
3
- } from "./chunk.4V3CK3E5.js";
3
+ } from "./chunk.X4Z6PTBI.js";
4
4
 
5
5
  // src/components/tab-group/tab-group.ts
6
6
  var tab_group_default = SynTabGroup;
@@ -9,4 +9,4 @@ SynTabGroup.define("syn-tab-group");
9
9
  export {
10
10
  tab_group_default
11
11
  };
12
- //# sourceMappingURL=chunk.ZRWZBAUT.js.map
12
+ //# sourceMappingURL=chunk.5NU5JFH5.js.map
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.WXVOTRW5.js";
17
17
  import {
18
18
  SynIconButton
19
- } from "./chunk.OW43BAXS.js";
19
+ } from "./chunk.LZYNETOH.js";
20
20
  import {
21
21
  waitForEvent
22
22
  } from "./chunk.C2ENQBPM.js";
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk.NLYVOJGK.js";
43
43
  import {
44
44
  SynergyElement
45
- } from "./chunk.62XLN3FC.js";
45
+ } from "./chunk.4HHHVPCU.js";
46
46
  import {
47
47
  __decorateClass
48
48
  } from "./chunk.2GFK6XTO.js";
@@ -398,4 +398,4 @@ setDefaultAnimation("drawer.overlay.hide", {
398
398
  export {
399
399
  SynDrawer
400
400
  };
401
- //# sourceMappingURL=chunk.ZSR45DPF.js.map
401
+ //# sourceMappingURL=chunk.63R35DYO.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/drawer/drawer.component.ts", "../../src/internal/string.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { 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 { uppercaseFirstLetter } from '../../internal/string.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 './drawer.styles.js';\nimport customStyles from './drawer.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Drawers slide in from a container to expose additional options and information.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-drawer--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The drawer's main content.\n * @slot label - The drawer'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 drawer's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the drawer opens.\n * @event syn-after-show - Emitted after the drawer opens and all animations are complete.\n * @event syn-hide - Emitted when the drawer closes.\n * @event syn-after-hide - Emitted after the drawer closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the drawer 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 drawer by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer 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 drawer.\n * @csspart panel - The drawer's panel (where the drawer and its content are rendered).\n * @csspart header - The drawer'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 drawer'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 drawer's body.\n * @csspart footer - The drawer's footer.\n *\n * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height\n * depending on its `placement`. Note that the drawer 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 drawer.showTop - The animation to use when showing a drawer with `top` placement.\n * @animation drawer.showEnd - The animation to use when showing a drawer with `end` placement.\n * @animation drawer.showBottom - The animation to use when showing a drawer with `bottom` placement.\n * @animation drawer.showStart - The animation to use when showing a drawer with `start` placement.\n * @animation drawer.hideTop - The animation to use when hiding a drawer with `top` placement.\n * @animation drawer.hideEnd - The animation to use when hiding a drawer with `end` placement.\n * @animation drawer.hideBottom - The animation to use when hiding a drawer with `bottom` placement.\n * @animation drawer.hideStart - The animation to use when hiding a drawer with `start` placement.\n * @animation drawer.denyClose - The animation to use when a request to close the drawer is denied.\n * @animation drawer.overlay.show - The animation to use when showing the drawer's overlay.\n * @animation drawer.overlay.hide - The animation to use when hiding the drawer'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 SynDrawer extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\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('.drawer') drawer: HTMLElement;\n @query('.drawer__panel') panel: HTMLElement;\n @query('.drawer__overlay') overlay: HTMLElement;\n\n /**\n * Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The drawer'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 /** The direction from which the drawer will open. */\n @property({ reflect: true }) placement: 'top' | 'end' | 'bottom' | 'start' = 'end';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this attribute and add `position: relative` to the parent.\n */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /**\n * Removes 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 drawer.\n */\n @property({ attribute: 'no-header', type: Boolean, reflect: true }) noHeader = false;\n\n firstUpdated() {\n this.drawer.hidden = !this.open;\n\n if (this.open) {\n this.addOpenListeners();\n\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\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, 'drawer.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 if (!this.contained) {\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose('keyboard');\n }\n } else {\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n }\n }\n\n private removeOpenListeners() {\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n this.closeWatcher?.destroy();\n }\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Contained drawers aren't modal and don't response to the escape key\n if (this.contained) {\n return;\n }\n\n if (event.key === 'Escape' && this.modal.isActive() && this.open) {\n event.stopImmediatePropagation();\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\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n\n // When the drawer is shown, Safari will attempt to set focus on whatever element has autofocus. This causes the\n // drawer's animation to jitter, so we'll temporarily remove the attribute, call `focus({ preventScroll: true })`\n // 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.drawer), stopAnimations(this.overlay)]);\n this.drawer.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, `drawer.show${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, 'drawer.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\n if (!this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, `drawer.hide${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, 'drawer.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.drawer.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 // 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 @watch('contained', { waitUntilFirstUpdate: true })\n handleNoModalChange() {\n if (this.open && !this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n\n if (this.open && this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n }\n\n /** Shows the drawer. */\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 drawer */\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 drawer: true,\n 'drawer--open': this.open,\n 'drawer--top': this.placement === 'top',\n 'drawer--end': this.placement === 'end',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--start': this.placement === 'start',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--rtl': this.localize.dir() === 'rtl',\n 'drawer--has-footer': this.hasSlotController.test('footer')\n })}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" @click=${() => this.requestClose('overlay')} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"drawer__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=\"0\"\n >\n ${!this.noHeader\n ? html`\n <header part=\"header\" class=\"drawer__header\">\n <h2 part=\"title\" class=\"drawer__title\" id=\"title\">\n <!-- If there's no label, use an invisible character to prevent the header from collapsing -->\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"drawer__header-actions\">\n <slot name=\"header-actions\"></slot>\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"drawer__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 <slot part=\"body\" class=\"drawer__body\"></slot>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\n// Top\nsetDefaultAnimation('drawer.showTop', {\n keyframes: [\n { opacity: 0, translate: '0 -100%' },\n { opacity: 1, translate: '0 0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideTop', {\n keyframes: [\n { opacity: 1, translate: '0 0' },\n { opacity: 0, translate: '0 -100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// End\nsetDefaultAnimation('drawer.showEnd', {\n keyframes: [\n { opacity: 0, translate: '100%' },\n { opacity: 1, translate: '0' }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideEnd', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '100%' }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Bottom\nsetDefaultAnimation('drawer.showBottom', {\n keyframes: [\n { opacity: 0, translate: '0 100%' },\n { opacity: 1, translate: '0 0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideBottom', {\n keyframes: [\n { opacity: 1, translate: '0 0' },\n { opacity: 0, translate: '0 100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Start\nsetDefaultAnimation('drawer.showStart', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: '100%' },\n { opacity: 1, translate: '0' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('drawer.hideStart', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '100%' }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\n// Deny close\nsetDefaultAnimation('drawer.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\n// Overlay\nsetDefaultAnimation('drawer.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('drawer.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n", "/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\n/** Converts the first letter of a string to uppercase */\nexport function uppercaseFirstLetter(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;;;ACRzB,SAAS,qBAAqB,QAAgB;AACnD,SAAO,OAAO,OAAO,CAAC,EAAE,YAAY,IAAI,OAAO,MAAM,CAAC;AACxD;;;AD2EA,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAIE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAGR,qBAAgD;AAMjC,qBAAY;AAMY,oBAAW;AAqD/E,SAAQ,wBAAwB,CAAC,UAAyB;AAExD,UAAI,KAAK,WAAW;AAClB;AAAA,MACF;AAEA,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,yBAAyB;AAC/B,aAAK,aAAa,UAAU;AAAA,MAC9B;AAAA,IACF;AAAA;AAAA,EA7DA,eAAe;AACb,SAAK,OAAO,SAAS,CAAC,KAAK;AAE3B,QAAI,KAAK,MAAM;AACb,WAAK,iBAAiB;AAEtB,UAAI,CAAC,KAAK,WAAW;AACnB,aAAK,MAAM,SAAS;AACpB,0BAAkB,IAAI;AAAA,MACxB;AAAA,IACF;AAAA,EACF;AAAA,EAEA,uBAAuB;AACrB,UAAM,qBAAqB;AAC3B,wBAAoB,IAAI;AACxB,SAAK,oBAAoB;AAAA,EAC3B;AAAA,EAEQ,a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AAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAGD,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,6 +1,6 @@
1
1
  import {
2
2
  formCollections
3
- } from "./chunk.AMIQC3O7.js";
3
+ } from "./chunk.OLRA37R5.js";
4
4
 
5
5
  // src/utilities/form.ts
6
6
  function serialize(form) {
@@ -37,4 +37,4 @@ export {
37
37
  serialize,
38
38
  getFormControls
39
39
  };
40
- //# sourceMappingURL=chunk.UTJJJQMA.js.map
40
+ //# sourceMappingURL=chunk.6GBQX53P.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  tag_custom_styles_default
3
- } from "./chunk.B6R3IVGO.js";
3
+ } from "./chunk.VN2PSQ4U.js";
4
4
  import {
5
5
  tag_styles_default
6
6
  } from "./chunk.6EPU7YUS.js";
7
7
  import {
8
8
  SynIconButton
9
- } from "./chunk.OW43BAXS.js";
9
+ } from "./chunk.LZYNETOH.js";
10
10
  import {
11
11
  LocalizeController
12
12
  } from "./chunk.GIU3H3J3.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk.NLYVOJGK.js";
19
19
  import {
20
20
  SynergyElement
21
- } from "./chunk.62XLN3FC.js";
21
+ } from "./chunk.4HHHVPCU.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk.2GFK6XTO.js";
@@ -84,4 +84,4 @@ SynTag = __decorateClass([
84
84
  export {
85
85
  SynTag
86
86
  };
87
- //# sourceMappingURL=chunk.GUZDBXQN.js.map
87
+ //# sourceMappingURL=chunk.6L4BDFQE.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/tag/tag.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './tag.styles.js';\nimport customStyles from './tag.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Tags are used as labels to organize things or to indicate a selection.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tag--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The tag's content.\n *\n * @event syn-remove - Emitted when the remove button is activated.\n *\n * @csspart base - The component's base wrapper.\n * @csspart content - The tag's content.\n * @csspart remove-button - The tag's remove button, an `<syn-icon-button>`.\n * @csspart remove-button__base - The remove button's exported `base` part.\n */\n@enableDefaultSettings('SynTag')\nexport default class SynTag extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private readonly localize = new LocalizeController(this);\n\n /** The tag's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Makes the tag removable and shows a remove button. */\n @property({ type: Boolean }) removable = false;\n\n private handleRemoveClick() {\n this.emit('syn-remove');\n }\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n tag: true,\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifiers\n 'tag--removable': this.removable\n })}\n >\n <slot part=\"content\" class=\"tag__content\"></slot>\n\n ${this.removable\n ? html`\n <syn-icon-button\n part=\"remove-button\"\n exportparts=\"base:remove-button__base\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('remove')}\n class=\"tag__remove\"\n @click=${this.handleRemoveClick}\n tabindex=\"-1\"\n ></syn-icon-button>\n `\n : ''}\n </span>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,SAAS,gBAAgB;AA2BzB,IAAqB,SAArB,cAAoC,eAAe;AAAA,EAAnD;AAAA;AAIE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAG1B,gBAAqC;AAGrC,qBAAY;AAAA;AAAA,EAEjC,oBAAoB;AAC1B,SAAK,KAAK,YAAY;AAAA,EACxB;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,KAAK;AAAA;AAAA,MAGL,cAAc,KAAK,SAAS;AAAA,MAC5B,eAAe,KAAK,SAAS;AAAA,MAC7B,cAAc,KAAK,SAAS;AAAA;AAAA,MAG5B,kBAAkB,KAAK;AAAA,IACzB,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,UAIA,KAAK,YACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAMY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,yBAE3B,KAAK,iBAAiB;AAAA;AAAA;AAAA,gBAInC,EAAE;AAAA;AAAA;AAAA,EAGZ;AACF;AAnDqB,OACZ,SAAyB,CAAC,0BAAiB,oBAAQ,yBAAY;AADnD,OAEZ,eAAe,EAAE,mBAAmB,cAAc;AAK5B;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAPR,OAOU;AAGA;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAVR,OAUU;AAVV,SAArB;AAAA,EADC,sBAAsB,QAAQ;AAAA,GACV;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynBreadcrumb
3
- } from "./chunk.GC3UZKRN.js";
3
+ } from "./chunk.WRTU5JLC.js";
4
4
 
5
5
  // src/components/breadcrumb/breadcrumb.ts
6
6
  var breadcrumb_default = SynBreadcrumb;
@@ -9,4 +9,4 @@ SynBreadcrumb.define("syn-breadcrumb");
9
9
  export {
10
10
  breadcrumb_default
11
11
  };
12
- //# sourceMappingURL=chunk.XIMS5LSS.js.map
12
+ //# sourceMappingURL=chunk.6XJSQXBY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDrawer
3
- } from "./chunk.ZSR45DPF.js";
3
+ } from "./chunk.63R35DYO.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.UNGVPGXL.js.map
12
+ //# sourceMappingURL=chunk.7CA3JCDV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynBreadcrumbItem
3
- } from "./chunk.REU6GUFR.js";
3
+ } from "./chunk.ON3LGQ5S.js";
4
4
 
5
5
  // src/components/breadcrumb-item/breadcrumb-item.ts
6
6
  var breadcrumb_item_default = SynBreadcrumbItem;
@@ -9,4 +9,4 @@ SynBreadcrumbItem.define("syn-breadcrumb-item");
9
9
  export {
10
10
  breadcrumb_item_default
11
11
  };
12
- //# sourceMappingURL=chunk.54GYFPMI.js.map
12
+ //# sourceMappingURL=chunk.7FASNWSN.js.map
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.WXVOTRW5.js";
17
17
  import {
18
18
  SynIconButton
19
- } from "./chunk.OW43BAXS.js";
19
+ } from "./chunk.LZYNETOH.js";
20
20
  import {
21
21
  waitForEvent
22
22
  } from "./chunk.C2ENQBPM.js";
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk.NLYVOJGK.js";
43
43
  import {
44
44
  SynergyElement
45
- } from "./chunk.62XLN3FC.js";
45
+ } from "./chunk.4HHHVPCU.js";
46
46
  import {
47
47
  __decorateClass
48
48
  } from "./chunk.2GFK6XTO.js";
@@ -292,4 +292,4 @@ setDefaultAnimation("dialog.overlay.hide", {
292
292
  export {
293
293
  SynDialog
294
294
  };
295
- //# sourceMappingURL=chunk.UUMXRZQH.js.map
295
+ //# sourceMappingURL=chunk.7Y2NWCT3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/dialog/dialog.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { 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\nset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
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.NLYVOJGK.js";
7
7
  import {
8
8
  SynergyElement
9
- } from "./chunk.62XLN3FC.js";
9
+ } from "./chunk.4HHHVPCU.js";
10
10
  import {
11
11
  __decorateClass
12
12
  } from "./chunk.2GFK6XTO.js";
@@ -89,4 +89,4 @@ function findButton(el) {
89
89
  export {
90
90
  SynButtonGroup
91
91
  };
92
- //# sourceMappingURL=chunk.J7BEYJP3.js.map
92
+ //# sourceMappingURL=chunk.ABHQSTYM.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/button-group/button-group.component.ts"],
4
+ "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './button-group.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-button-group--docs\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */\nexport default class SynButtonGroup extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n @query('slot') defaultSlot: HTMLSlotElement;\n\n @state() disableRole = false;\n\n /**\n * A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\n * devices when interacting with the control and is strongly recommended.\n */\n @property() label = '';\n\n private handleFocus(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--focus', true);\n }\n\n private handleBlur(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--focus', false);\n }\n\n private handleMouseOver(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--hover', true);\n }\n\n private handleMouseOut(event: Event) {\n const button = findButton(event.target as HTMLElement);\n button?.toggleAttribute('data-syn-button-group__button--hover', false);\n }\n\n private handleSlotChange() {\n const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })] as HTMLElement[];\n\n slottedElements.forEach(el => {\n const index = slottedElements.indexOf(el);\n const button = findButton(el);\n\n if (button) {\n button.toggleAttribute('data-syn-button-group__button', true);\n button.toggleAttribute('data-syn-button-group__button--first', index === 0);\n button.toggleAttribute('data-syn-button-group__button--inner', index > 0 && index < slottedElements.length - 1);\n button.toggleAttribute('data-syn-button-group__button--last', index === slottedElements.length - 1);\n button.toggleAttribute(\n 'data-syn-button-group__button--radio',\n button.tagName.toLowerCase() === 'syn-radio-button'\n );\n }\n });\n }\n\n render() {\n // eslint-disable-next-line lit-a11y/mouse-events-have-key-events\n return html`\n <div\n part=\"base\"\n class=\"button-group\"\n role=\"${this.disableRole ? 'presentation' : 'group'}\"\n aria-label=${this.label}\n @focusout=${this.handleBlur}\n @focusin=${this.handleFocus}\n @mouseover=${this.handleMouseOver}\n @mouseout=${this.handleMouseOut}\n >\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `;\n }\n}\n\nfunction findButton(el: HTMLElement) {\n const selector = 'syn-button, syn-radio-button';\n\n // The button could be the target element or a child of it (e.g. a dropdown or tooltip anchor)\n return el.closest(selector) ?? el.querySelector(selector);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAQA,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAgBvC,IAAqB,iBAArB,cAA4C,eAAe;AAAA,EAA3D;AAAA;AAKW,uBAAc;AAMX,iBAAQ;AAAA;AAAA,EAEZ,YAAY,OAAc;AAChC,UAAM,SAAS,WAAW,MAAM,MAAqB;AACrD,qCAAQ,gBAAgB,wCAAwC;AAAA,EAClE;AAAA,EAEQ,WAAW,O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;AAAA,GALY,eAKV;AAMG;AAAA,EAAX,SAAS;AAAA,GAXS,eAWP;AA6Dd,SAAS,WAAW,IAAiB;AAjGrC;AAkGE,QAAM,WAAW;AAGjB,UAAO,QAAG,QAAQ,QAAQ,MAAnB,YAAwB,GAAG,cAAc,QAAQ;AAC1D;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSwitch
3
- } from "./chunk.W5XRTLRL.js";
3
+ } from "./chunk.3T5IJP7C.js";
4
4
 
5
5
  // src/components/switch/switch.ts
6
6
  var switch_default = SynSwitch;
@@ -9,4 +9,4 @@ SynSwitch.define("syn-switch");
9
9
  export {
10
10
  switch_default
11
11
  };
12
- //# sourceMappingURL=chunk.GA5LC2F3.js.map
12
+ //# sourceMappingURL=chunk.ACDSXF4A.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynIcon
3
- } from "./chunk.QFNMNSWC.js";
3
+ } from "./chunk.4YGRF4BM.js";
4
4
 
5
5
  // src/components/icon/icon.ts
6
6
  var icon_default = SynIcon;
@@ -9,4 +9,4 @@ SynIcon.define("syn-icon");
9
9
  export {
10
10
  icon_default
11
11
  };
12
- //# sourceMappingURL=chunk.A6S64XOS.js.map
12
+ //# sourceMappingURL=chunk.ADBSYBKF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDivider
3
- } from "./chunk.M5PBGVOF.js";
3
+ } from "./chunk.POX3RJRS.js";
4
4
 
5
5
  // src/components/divider/divider.ts
6
6
  var divider_default = SynDivider;
@@ -9,4 +9,4 @@ SynDivider.define("syn-divider");
9
9
  export {
10
10
  divider_default
11
11
  };
12
- //# sourceMappingURL=chunk.6P6MZH7T.js.map
12
+ //# sourceMappingURL=chunk.AEO3YBAE.js.map