@synergy-design-system/components 2.26.1 → 2.26.2

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 (303) hide show
  1. package/dist/chunks/{chunk.E2WDDT6V.js → chunk.2AZ6P6VB.js} +2 -2
  2. package/dist/chunks/{chunk.4WRP75PK.js → chunk.2LYOMDFO.js} +4 -17
  3. package/dist/chunks/chunk.2LYOMDFO.js.map +7 -0
  4. package/dist/chunks/{chunk.TQ3NUIO3.js → chunk.2VVNNYEP.js} +2 -2
  5. package/dist/chunks/{chunk.OSXAMRZ5.js → chunk.3FP2O73F.js} +2 -2
  6. package/dist/chunks/{chunk.7YM4Z5DZ.js → chunk.3JIFRS4H.js} +2 -2
  7. package/dist/chunks/{chunk.KBTACMFW.js → chunk.472SV47X.js} +2 -2
  8. package/dist/chunks/{chunk.CXCPJC6Q.js → chunk.4DPZWW6R.js} +2 -2
  9. package/dist/chunks/{chunk.FTPY2FG4.js → chunk.4ZXVGVNZ.js} +2 -2
  10. package/dist/chunks/{chunk.AL6GRCPR.js → chunk.5GQRM5PV.js} +3 -3
  11. package/dist/chunks/{chunk.XWLSLIKV.js → chunk.5MA2AWXE.js} +5 -5
  12. package/dist/chunks/{chunk.RDX4HT5A.js → chunk.5YH3KM7A.js} +2 -2
  13. package/dist/chunks/{chunk.PXNTBTBF.js → chunk.65UZKE67.js} +2 -2
  14. package/dist/chunks/{chunk.I45TC47W.js → chunk.6AJJ23WC.js} +4 -4
  15. package/dist/chunks/{chunk.BHQ3CFBE.js → chunk.6BIEV3ZF.js} +2 -2
  16. package/dist/chunks/{chunk.BHQ3CFBE.js.map → chunk.6BIEV3ZF.js.map} +1 -1
  17. package/dist/chunks/{chunk.H4CJGUSN.js → chunk.6KUQS2BX.js} +2 -2
  18. package/dist/chunks/{chunk.UMEU22Y2.js → chunk.6MUKDWYG.js} +2 -2
  19. package/dist/chunks/{chunk.OJUMZLQY.js → chunk.7FNYO42V.js} +4 -4
  20. package/dist/chunks/{chunk.CE2OPZJB.js → chunk.7LAT6LLA.js} +2 -2
  21. package/dist/chunks/{chunk.RS2BQRFA.js → chunk.7OXH5TGP.js} +2 -2
  22. package/dist/chunks/{chunk.7YFL4S2R.js → chunk.7Z7XJRNJ.js} +3 -3
  23. package/dist/chunks/{chunk.JQ5SNHTM.js → chunk.A3QOZO4K.js} +3 -3
  24. package/dist/chunks/{chunk.THNGOV7Q.js → chunk.AHGLC64T.js} +2 -2
  25. package/dist/chunks/{chunk.GFM4HFZB.js → chunk.AKRQMYC3.js} +4 -4
  26. package/dist/chunks/{chunk.LLK3XF4Y.js → chunk.AVTTFF7T.js} +5 -5
  27. package/dist/chunks/{chunk.7MN7ZHWV.js → chunk.B72XSQEF.js} +2 -2
  28. package/dist/chunks/{chunk.IFXKIEOU.js → chunk.BXY667C7.js} +3 -2
  29. package/dist/chunks/{chunk.IFXKIEOU.js.map → chunk.BXY667C7.js.map} +2 -2
  30. package/dist/chunks/{chunk.NAC6EUW4.js → chunk.C2XHBPEB.js} +2 -2
  31. package/dist/chunks/{chunk.BX3PAORM.js → chunk.CA4R3Y34.js} +4 -4
  32. package/dist/chunks/{chunk.BX3PAORM.js.map → chunk.CA4R3Y34.js.map} +2 -2
  33. package/dist/chunks/{chunk.F4JB7NV4.js → chunk.CPNKKDEZ.js} +2 -2
  34. package/dist/chunks/{chunk.ZT2BACAV.js → chunk.CSAFPRPP.js} +4 -4
  35. package/dist/chunks/{chunk.ZT2BACAV.js.map → chunk.CSAFPRPP.js.map} +2 -2
  36. package/dist/chunks/{chunk.3UJX6GHF.js → chunk.CXQPOR5U.js} +4 -4
  37. package/dist/chunks/{chunk.63VN66XO.js → chunk.CYOJT2QI.js} +2 -2
  38. package/dist/chunks/{chunk.N7ICTIY4.js → chunk.D6LZPKMM.js} +2 -2
  39. package/dist/chunks/{chunk.TGCNK3YN.js → chunk.DIB763NK.js} +2 -2
  40. package/dist/chunks/{chunk.T65MXKCV.js → chunk.DK7B62RH.js} +2 -2
  41. package/dist/chunks/{chunk.F5FM5LJN.js → chunk.DLVPJRV7.js} +2 -2
  42. package/dist/chunks/{chunk.JVASENKU.js → chunk.DPZWEAAW.js} +2 -2
  43. package/dist/chunks/{chunk.WNQ3CJAE.js → chunk.DT4HPGOS.js} +2 -2
  44. package/dist/chunks/{chunk.KW23D2EZ.js → chunk.E7EMXBQQ.js} +3 -3
  45. package/dist/chunks/{chunk.IWJG5IRD.js → chunk.F75RDT3G.js} +3 -3
  46. package/dist/chunks/{chunk.A2X3TLOJ.js → chunk.FEQA6RB5.js} +3 -3
  47. package/dist/chunks/{chunk.6Y3A6TVH.js → chunk.G5KHYL4R.js} +3 -3
  48. package/dist/chunks/{chunk.UIWD3IUJ.js → chunk.G65DXQNJ.js} +2 -2
  49. package/dist/chunks/{chunk.R57GDDLN.js → chunk.HJC2NUOQ.js} +2 -2
  50. package/dist/chunks/{chunk.JQ6ZF473.js → chunk.HM2CFDQD.js} +2 -2
  51. package/dist/chunks/{chunk.QWVKUGLD.js → chunk.HPXLGI6G.js} +3 -3
  52. package/dist/chunks/{chunk.A5YUMENA.js → chunk.HWJAWWSB.js} +2 -2
  53. package/dist/chunks/{chunk.5BFBNIZU.js → chunk.I724M2SD.js} +3 -3
  54. package/dist/chunks/{chunk.DGRP5F2D.js → chunk.IB7NUAMX.js} +2 -2
  55. package/dist/chunks/{chunk.POWANAOG.js → chunk.IHG73NBC.js} +2 -2
  56. package/dist/chunks/{chunk.MUO4IQRC.js → chunk.IMAVVHQP.js} +2 -2
  57. package/dist/chunks/{chunk.BFYX5JBQ.js → chunk.IN42F4T7.js} +2 -2
  58. package/dist/chunks/{chunk.2MDGY2UP.js → chunk.JCIM6NE3.js} +19 -1
  59. package/dist/chunks/chunk.JCIM6NE3.js.map +7 -0
  60. package/dist/chunks/{chunk.UTQUJC26.js → chunk.JJ2AGCRG.js} +2 -2
  61. package/dist/chunks/{chunk.SX5D36WC.js → chunk.JX2XVHDX.js} +2 -2
  62. package/dist/chunks/{chunk.PATQFYMI.js → chunk.K7HO5BA6.js} +3 -3
  63. package/dist/chunks/{chunk.BZU2ZUXB.js → chunk.KQOPBVJZ.js} +2 -2
  64. package/dist/chunks/{chunk.B2KJIFZI.js → chunk.KRAZTCNX.js} +3 -3
  65. package/dist/chunks/chunk.KRAZTCNX.js.map +7 -0
  66. package/dist/chunks/{chunk.XE7APWF7.js → chunk.KYAQDDYE.js} +2 -2
  67. package/dist/chunks/{chunk.S6EDTNOJ.js → chunk.KYEC6H3L.js} +2 -2
  68. package/dist/chunks/{chunk.DEPCI6OY.js → chunk.L4ACGJIZ.js} +2 -2
  69. package/dist/chunks/{chunk.54AUFLT4.js → chunk.L7XIXTJA.js} +2 -2
  70. package/dist/chunks/{chunk.QB46MWZN.js → chunk.LAXWESAC.js} +2 -2
  71. package/dist/chunks/{chunk.ILDZ7QVV.js → chunk.LBMFOI2R.js} +2 -2
  72. package/dist/chunks/{chunk.PW65DAD6.js → chunk.LDHNYUA3.js} +5 -10
  73. package/dist/chunks/chunk.LDHNYUA3.js.map +7 -0
  74. package/dist/chunks/{chunk.R35OVGIP.js → chunk.LYGXTUQV.js} +3 -3
  75. package/dist/chunks/{chunk.2MAVMLZA.js → chunk.MM5LMX2U.js} +2 -2
  76. package/dist/chunks/{chunk.GN2BDFRD.js → chunk.NCTEJ5GG.js} +2 -2
  77. package/dist/chunks/{chunk.AA6JA7AI.js → chunk.NZZ7TIEM.js} +2 -2
  78. package/dist/chunks/{chunk.4B6OSZM7.js → chunk.OC5HO7EC.js} +2 -2
  79. package/dist/chunks/{chunk.IBLR36VM.js → chunk.OVLOPGZT.js} +2 -2
  80. package/dist/chunks/{chunk.VDD6QJPR.js → chunk.OYH3VTBR.js} +2 -2
  81. package/dist/chunks/{chunk.KIKTNBQT.js → chunk.PESGZVWO.js} +2 -2
  82. package/dist/chunks/{chunk.BUZOBR2J.js → chunk.QBHZAR4C.js} +1 -2
  83. package/dist/chunks/{chunk.BUZOBR2J.js.map → chunk.QBHZAR4C.js.map} +2 -2
  84. package/dist/chunks/{chunk.ZOCS7QXM.js → chunk.QDQMEZ2R.js} +6 -6
  85. package/dist/chunks/{chunk.Y7VVMUQB.js → chunk.RA75SKST.js} +2 -2
  86. package/dist/chunks/{chunk.24DVA7ER.js → chunk.RBOINL5H.js} +5 -5
  87. package/dist/chunks/{chunk.24DVA7ER.js.map → chunk.RBOINL5H.js.map} +2 -2
  88. package/dist/chunks/{chunk.4C7KC7WO.js → chunk.SKNN7RRO.js} +2 -2
  89. package/dist/chunks/{chunk.5GTEOG7W.js → chunk.SV7S5SHM.js} +2 -2
  90. package/dist/chunks/{chunk.2L35H44B.js → chunk.TAHSL6PC.js} +3 -3
  91. package/dist/chunks/{chunk.4KREFSFG.js → chunk.TDRWALG4.js} +2 -2
  92. package/dist/chunks/{chunk.FWYYBCYT.js → chunk.TEOJQ4IE.js} +2 -2
  93. package/dist/chunks/{chunk.G2CFGNJS.js → chunk.TR5QNSVK.js} +2 -2
  94. package/dist/chunks/{chunk.XOMKE5PR.js → chunk.TSX3ATSL.js} +2 -2
  95. package/dist/chunks/{chunk.MCOYKGU6.js → chunk.U7TGMJTF.js} +3 -3
  96. package/dist/chunks/{chunk.33ZUFWCT.js → chunk.UDALFFTK.js} +18 -7
  97. package/dist/chunks/chunk.UDALFFTK.js.map +7 -0
  98. package/dist/chunks/{chunk.NJ66IUS4.js → chunk.UIQJ6TAS.js} +2 -2
  99. package/dist/chunks/{chunk.45JLH2JJ.js → chunk.V5GMZF3E.js} +2 -2
  100. package/dist/chunks/{chunk.FG7VPADU.js → chunk.VL5NI6HZ.js} +2 -2
  101. package/dist/chunks/{chunk.CSOAMITR.js → chunk.VLPTEIDZ.js} +2 -2
  102. package/dist/chunks/{chunk.3FAWUMXX.js → chunk.XC2X5ICO.js} +2 -2
  103. package/dist/chunks/{chunk.AC6O2276.js → chunk.XGI5VF4P.js} +2 -2
  104. package/dist/chunks/{chunk.MOX4ULPF.js → chunk.XX2PCZG5.js} +2 -2
  105. package/dist/chunks/{chunk.GAK7WLHP.js → chunk.YCKUXYYU.js} +2 -2
  106. package/dist/chunks/{chunk.ADSWJFMJ.js → chunk.YDGSPG5O.js} +2 -2
  107. package/dist/chunks/{chunk.4BRHW6CU.js → chunk.YLLDZCXR.js} +3 -3
  108. package/dist/chunks/{chunk.M2L5SZRH.js → chunk.YOW5Z4LL.js} +3 -3
  109. package/dist/chunks/{chunk.5RKT53KX.js → chunk.ZBZNLBFE.js} +4 -4
  110. package/dist/chunks/{chunk.5WWTEG4U.js → chunk.ZLQ27NJY.js} +5 -5
  111. package/dist/components/accordion/accordion.component.js +2 -2
  112. package/dist/components/accordion/accordion.js +3 -3
  113. package/dist/components/alert/alert.component.js +6 -6
  114. package/dist/components/alert/alert.custom.styles.js +1 -1
  115. package/dist/components/alert/alert.js +7 -7
  116. package/dist/components/alert/alert.styles.js +1 -1
  117. package/dist/components/badge/badge.component.js +2 -2
  118. package/dist/components/badge/badge.js +3 -3
  119. package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
  120. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  121. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  122. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  123. package/dist/components/button/button.component.js +4 -4
  124. package/dist/components/button/button.js +5 -5
  125. package/dist/components/button-group/button-group.component.js +2 -2
  126. package/dist/components/button-group/button-group.js +3 -3
  127. package/dist/components/card/card.component.js +2 -2
  128. package/dist/components/card/card.js +3 -3
  129. package/dist/components/checkbox/checkbox.component.js +3 -3
  130. package/dist/components/checkbox/checkbox.js +4 -4
  131. package/dist/components/combobox/combobox.component.js +5 -5
  132. package/dist/components/combobox/combobox.js +6 -6
  133. package/dist/components/details/details.component.js +3 -3
  134. package/dist/components/details/details.js +4 -4
  135. package/dist/components/dialog/dialog.component.js +6 -6
  136. package/dist/components/dialog/dialog.js +7 -7
  137. package/dist/components/divider/divider.component.js +2 -2
  138. package/dist/components/divider/divider.js +3 -3
  139. package/dist/components/drawer/drawer.component.js +6 -6
  140. package/dist/components/drawer/drawer.js +7 -7
  141. package/dist/components/dropdown/dropdown.component.js +4 -4
  142. package/dist/components/dropdown/dropdown.js +5 -5
  143. package/dist/components/file/file.component.js +5 -5
  144. package/dist/components/file/file.js +6 -6
  145. package/dist/components/header/header.component.js +4 -4
  146. package/dist/components/header/header.js +5 -5
  147. package/dist/components/icon/icon.component.js +2 -2
  148. package/dist/components/icon/icon.js +3 -3
  149. package/dist/components/icon-button/icon-button.component.js +3 -3
  150. package/dist/components/icon-button/icon-button.js +4 -4
  151. package/dist/components/input/input.component.js +4 -4
  152. package/dist/components/input/input.js +5 -5
  153. package/dist/components/menu/menu.component.js +2 -2
  154. package/dist/components/menu/menu.js +3 -3
  155. package/dist/components/menu-item/menu-item.component.js +5 -5
  156. package/dist/components/menu-item/menu-item.js +6 -6
  157. package/dist/components/menu-label/menu-label.component.js +3 -3
  158. package/dist/components/menu-label/menu-label.js +4 -4
  159. package/dist/components/nav-item/nav-item.component.js +3 -3
  160. package/dist/components/nav-item/nav-item.js +4 -4
  161. package/dist/components/optgroup/optgroup.component.js +3 -3
  162. package/dist/components/optgroup/optgroup.js +4 -4
  163. package/dist/components/option/option.component.js +3 -3
  164. package/dist/components/option/option.js +4 -4
  165. package/dist/components/popup/popup.component.js +2 -2
  166. package/dist/components/popup/popup.js +3 -3
  167. package/dist/components/prio-nav/prio-nav.component.js +9 -9
  168. package/dist/components/prio-nav/prio-nav.js +10 -10
  169. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  170. package/dist/components/progress-bar/progress-bar.js +3 -3
  171. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  172. package/dist/components/progress-ring/progress-ring.js +3 -3
  173. package/dist/components/radio/radio.component.js +3 -3
  174. package/dist/components/radio/radio.js +4 -4
  175. package/dist/components/radio-button/radio-button.component.js +2 -2
  176. package/dist/components/radio-button/radio-button.js +3 -3
  177. package/dist/components/radio-group/radio-group.component.js +3 -3
  178. package/dist/components/radio-group/radio-group.js +4 -4
  179. package/dist/components/range/range.component.js +4 -4
  180. package/dist/components/range/range.js +5 -5
  181. package/dist/components/range-tick/range-tick.component.js +2 -2
  182. package/dist/components/range-tick/range-tick.js +3 -3
  183. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  184. package/dist/components/select/select.component.js +6 -6
  185. package/dist/components/select/select.js +7 -7
  186. package/dist/components/side-nav/side-nav.component.js +8 -8
  187. package/dist/components/side-nav/side-nav.js +9 -9
  188. package/dist/components/spinner/spinner.component.js +2 -2
  189. package/dist/components/spinner/spinner.js +3 -3
  190. package/dist/components/switch/switch.component.js +2 -2
  191. package/dist/components/switch/switch.js +3 -3
  192. package/dist/components/tab/tab.component.js +4 -4
  193. package/dist/components/tab/tab.js +5 -5
  194. package/dist/components/tab-group/tab-group.component.js +5 -5
  195. package/dist/components/tab-group/tab-group.js +6 -6
  196. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  197. package/dist/components/tab-panel/tab-panel.js +3 -3
  198. package/dist/components/tag/tag.component.js +4 -4
  199. package/dist/components/tag/tag.js +5 -5
  200. package/dist/components/textarea/textarea.component.js +2 -2
  201. package/dist/components/textarea/textarea.js +3 -3
  202. package/dist/components/tooltip/tooltip.component.js +3 -3
  203. package/dist/components/tooltip/tooltip.js +4 -4
  204. package/dist/components/validate/utility.js +2 -2
  205. package/dist/components/validate/validate.component.js +8 -8
  206. package/dist/components/validate/validate.js +9 -9
  207. package/dist/custom-elements.json +1 -1
  208. package/dist/styles/index.css +1 -1
  209. package/dist/synergy.js +99 -99
  210. package/package.json +17 -17
  211. package/dist/chunks/chunk.2MDGY2UP.js.map +0 -7
  212. package/dist/chunks/chunk.33ZUFWCT.js.map +0 -7
  213. package/dist/chunks/chunk.4WRP75PK.js.map +0 -7
  214. package/dist/chunks/chunk.B2KJIFZI.js.map +0 -7
  215. package/dist/chunks/chunk.PW65DAD6.js.map +0 -7
  216. /package/dist/chunks/{chunk.E2WDDT6V.js.map → chunk.2AZ6P6VB.js.map} +0 -0
  217. /package/dist/chunks/{chunk.TQ3NUIO3.js.map → chunk.2VVNNYEP.js.map} +0 -0
  218. /package/dist/chunks/{chunk.OSXAMRZ5.js.map → chunk.3FP2O73F.js.map} +0 -0
  219. /package/dist/chunks/{chunk.7YM4Z5DZ.js.map → chunk.3JIFRS4H.js.map} +0 -0
  220. /package/dist/chunks/{chunk.KBTACMFW.js.map → chunk.472SV47X.js.map} +0 -0
  221. /package/dist/chunks/{chunk.CXCPJC6Q.js.map → chunk.4DPZWW6R.js.map} +0 -0
  222. /package/dist/chunks/{chunk.FTPY2FG4.js.map → chunk.4ZXVGVNZ.js.map} +0 -0
  223. /package/dist/chunks/{chunk.AL6GRCPR.js.map → chunk.5GQRM5PV.js.map} +0 -0
  224. /package/dist/chunks/{chunk.XWLSLIKV.js.map → chunk.5MA2AWXE.js.map} +0 -0
  225. /package/dist/chunks/{chunk.RDX4HT5A.js.map → chunk.5YH3KM7A.js.map} +0 -0
  226. /package/dist/chunks/{chunk.PXNTBTBF.js.map → chunk.65UZKE67.js.map} +0 -0
  227. /package/dist/chunks/{chunk.I45TC47W.js.map → chunk.6AJJ23WC.js.map} +0 -0
  228. /package/dist/chunks/{chunk.H4CJGUSN.js.map → chunk.6KUQS2BX.js.map} +0 -0
  229. /package/dist/chunks/{chunk.UMEU22Y2.js.map → chunk.6MUKDWYG.js.map} +0 -0
  230. /package/dist/chunks/{chunk.OJUMZLQY.js.map → chunk.7FNYO42V.js.map} +0 -0
  231. /package/dist/chunks/{chunk.CE2OPZJB.js.map → chunk.7LAT6LLA.js.map} +0 -0
  232. /package/dist/chunks/{chunk.RS2BQRFA.js.map → chunk.7OXH5TGP.js.map} +0 -0
  233. /package/dist/chunks/{chunk.7YFL4S2R.js.map → chunk.7Z7XJRNJ.js.map} +0 -0
  234. /package/dist/chunks/{chunk.JQ5SNHTM.js.map → chunk.A3QOZO4K.js.map} +0 -0
  235. /package/dist/chunks/{chunk.THNGOV7Q.js.map → chunk.AHGLC64T.js.map} +0 -0
  236. /package/dist/chunks/{chunk.GFM4HFZB.js.map → chunk.AKRQMYC3.js.map} +0 -0
  237. /package/dist/chunks/{chunk.LLK3XF4Y.js.map → chunk.AVTTFF7T.js.map} +0 -0
  238. /package/dist/chunks/{chunk.7MN7ZHWV.js.map → chunk.B72XSQEF.js.map} +0 -0
  239. /package/dist/chunks/{chunk.NAC6EUW4.js.map → chunk.C2XHBPEB.js.map} +0 -0
  240. /package/dist/chunks/{chunk.F4JB7NV4.js.map → chunk.CPNKKDEZ.js.map} +0 -0
  241. /package/dist/chunks/{chunk.3UJX6GHF.js.map → chunk.CXQPOR5U.js.map} +0 -0
  242. /package/dist/chunks/{chunk.63VN66XO.js.map → chunk.CYOJT2QI.js.map} +0 -0
  243. /package/dist/chunks/{chunk.N7ICTIY4.js.map → chunk.D6LZPKMM.js.map} +0 -0
  244. /package/dist/chunks/{chunk.TGCNK3YN.js.map → chunk.DIB763NK.js.map} +0 -0
  245. /package/dist/chunks/{chunk.T65MXKCV.js.map → chunk.DK7B62RH.js.map} +0 -0
  246. /package/dist/chunks/{chunk.F5FM5LJN.js.map → chunk.DLVPJRV7.js.map} +0 -0
  247. /package/dist/chunks/{chunk.JVASENKU.js.map → chunk.DPZWEAAW.js.map} +0 -0
  248. /package/dist/chunks/{chunk.WNQ3CJAE.js.map → chunk.DT4HPGOS.js.map} +0 -0
  249. /package/dist/chunks/{chunk.KW23D2EZ.js.map → chunk.E7EMXBQQ.js.map} +0 -0
  250. /package/dist/chunks/{chunk.IWJG5IRD.js.map → chunk.F75RDT3G.js.map} +0 -0
  251. /package/dist/chunks/{chunk.A2X3TLOJ.js.map → chunk.FEQA6RB5.js.map} +0 -0
  252. /package/dist/chunks/{chunk.6Y3A6TVH.js.map → chunk.G5KHYL4R.js.map} +0 -0
  253. /package/dist/chunks/{chunk.UIWD3IUJ.js.map → chunk.G65DXQNJ.js.map} +0 -0
  254. /package/dist/chunks/{chunk.R57GDDLN.js.map → chunk.HJC2NUOQ.js.map} +0 -0
  255. /package/dist/chunks/{chunk.JQ6ZF473.js.map → chunk.HM2CFDQD.js.map} +0 -0
  256. /package/dist/chunks/{chunk.QWVKUGLD.js.map → chunk.HPXLGI6G.js.map} +0 -0
  257. /package/dist/chunks/{chunk.A5YUMENA.js.map → chunk.HWJAWWSB.js.map} +0 -0
  258. /package/dist/chunks/{chunk.5BFBNIZU.js.map → chunk.I724M2SD.js.map} +0 -0
  259. /package/dist/chunks/{chunk.DGRP5F2D.js.map → chunk.IB7NUAMX.js.map} +0 -0
  260. /package/dist/chunks/{chunk.POWANAOG.js.map → chunk.IHG73NBC.js.map} +0 -0
  261. /package/dist/chunks/{chunk.MUO4IQRC.js.map → chunk.IMAVVHQP.js.map} +0 -0
  262. /package/dist/chunks/{chunk.BFYX5JBQ.js.map → chunk.IN42F4T7.js.map} +0 -0
  263. /package/dist/chunks/{chunk.UTQUJC26.js.map → chunk.JJ2AGCRG.js.map} +0 -0
  264. /package/dist/chunks/{chunk.SX5D36WC.js.map → chunk.JX2XVHDX.js.map} +0 -0
  265. /package/dist/chunks/{chunk.PATQFYMI.js.map → chunk.K7HO5BA6.js.map} +0 -0
  266. /package/dist/chunks/{chunk.BZU2ZUXB.js.map → chunk.KQOPBVJZ.js.map} +0 -0
  267. /package/dist/chunks/{chunk.XE7APWF7.js.map → chunk.KYAQDDYE.js.map} +0 -0
  268. /package/dist/chunks/{chunk.S6EDTNOJ.js.map → chunk.KYEC6H3L.js.map} +0 -0
  269. /package/dist/chunks/{chunk.DEPCI6OY.js.map → chunk.L4ACGJIZ.js.map} +0 -0
  270. /package/dist/chunks/{chunk.54AUFLT4.js.map → chunk.L7XIXTJA.js.map} +0 -0
  271. /package/dist/chunks/{chunk.QB46MWZN.js.map → chunk.LAXWESAC.js.map} +0 -0
  272. /package/dist/chunks/{chunk.ILDZ7QVV.js.map → chunk.LBMFOI2R.js.map} +0 -0
  273. /package/dist/chunks/{chunk.R35OVGIP.js.map → chunk.LYGXTUQV.js.map} +0 -0
  274. /package/dist/chunks/{chunk.2MAVMLZA.js.map → chunk.MM5LMX2U.js.map} +0 -0
  275. /package/dist/chunks/{chunk.GN2BDFRD.js.map → chunk.NCTEJ5GG.js.map} +0 -0
  276. /package/dist/chunks/{chunk.AA6JA7AI.js.map → chunk.NZZ7TIEM.js.map} +0 -0
  277. /package/dist/chunks/{chunk.4B6OSZM7.js.map → chunk.OC5HO7EC.js.map} +0 -0
  278. /package/dist/chunks/{chunk.IBLR36VM.js.map → chunk.OVLOPGZT.js.map} +0 -0
  279. /package/dist/chunks/{chunk.VDD6QJPR.js.map → chunk.OYH3VTBR.js.map} +0 -0
  280. /package/dist/chunks/{chunk.KIKTNBQT.js.map → chunk.PESGZVWO.js.map} +0 -0
  281. /package/dist/chunks/{chunk.ZOCS7QXM.js.map → chunk.QDQMEZ2R.js.map} +0 -0
  282. /package/dist/chunks/{chunk.Y7VVMUQB.js.map → chunk.RA75SKST.js.map} +0 -0
  283. /package/dist/chunks/{chunk.4C7KC7WO.js.map → chunk.SKNN7RRO.js.map} +0 -0
  284. /package/dist/chunks/{chunk.5GTEOG7W.js.map → chunk.SV7S5SHM.js.map} +0 -0
  285. /package/dist/chunks/{chunk.2L35H44B.js.map → chunk.TAHSL6PC.js.map} +0 -0
  286. /package/dist/chunks/{chunk.4KREFSFG.js.map → chunk.TDRWALG4.js.map} +0 -0
  287. /package/dist/chunks/{chunk.FWYYBCYT.js.map → chunk.TEOJQ4IE.js.map} +0 -0
  288. /package/dist/chunks/{chunk.G2CFGNJS.js.map → chunk.TR5QNSVK.js.map} +0 -0
  289. /package/dist/chunks/{chunk.XOMKE5PR.js.map → chunk.TSX3ATSL.js.map} +0 -0
  290. /package/dist/chunks/{chunk.MCOYKGU6.js.map → chunk.U7TGMJTF.js.map} +0 -0
  291. /package/dist/chunks/{chunk.NJ66IUS4.js.map → chunk.UIQJ6TAS.js.map} +0 -0
  292. /package/dist/chunks/{chunk.45JLH2JJ.js.map → chunk.V5GMZF3E.js.map} +0 -0
  293. /package/dist/chunks/{chunk.FG7VPADU.js.map → chunk.VL5NI6HZ.js.map} +0 -0
  294. /package/dist/chunks/{chunk.CSOAMITR.js.map → chunk.VLPTEIDZ.js.map} +0 -0
  295. /package/dist/chunks/{chunk.3FAWUMXX.js.map → chunk.XC2X5ICO.js.map} +0 -0
  296. /package/dist/chunks/{chunk.AC6O2276.js.map → chunk.XGI5VF4P.js.map} +0 -0
  297. /package/dist/chunks/{chunk.MOX4ULPF.js.map → chunk.XX2PCZG5.js.map} +0 -0
  298. /package/dist/chunks/{chunk.GAK7WLHP.js.map → chunk.YCKUXYYU.js.map} +0 -0
  299. /package/dist/chunks/{chunk.ADSWJFMJ.js.map → chunk.YDGSPG5O.js.map} +0 -0
  300. /package/dist/chunks/{chunk.4BRHW6CU.js.map → chunk.YLLDZCXR.js.map} +0 -0
  301. /package/dist/chunks/{chunk.M2L5SZRH.js.map → chunk.YOW5Z4LL.js.map} +0 -0
  302. /package/dist/chunks/{chunk.5RKT53KX.js.map → chunk.ZBZNLBFE.js.map} +0 -0
  303. /package/dist/chunks/{chunk.5WWTEG4U.js.map → chunk.ZLQ27NJY.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.MU43DZ7W.js";
4
4
  import {
5
5
  Modal
6
- } from "./chunk.4WRP75PK.js";
6
+ } from "./chunk.2LYOMDFO.js";
7
7
  import {
8
8
  dialog_custom_styles_default
9
9
  } from "./chunk.IU3SSJZE.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.WXVOTRW5.js";
17
17
  import {
18
18
  SynIconButton
19
- } from "./chunk.M2L5SZRH.js";
19
+ } from "./chunk.YOW5Z4LL.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.BHQ3CFBE.js";
45
+ } from "./chunk.6BIEV3ZF.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.BX3PAORM.js.map
295
+ //# sourceMappingURL=chunk.CA4R3Y34.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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 { 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';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\n\n/**\n * @summary Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.\n * @documentation https://synergy.style/components/dialog\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/synergy-design-system/synergy/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/synergy-design-system/synergy/issues/1753#issuecomment-1836803277 */\n }\n <div part=\"body\" class=\"dialog__body\" tabindex=\"-1\"><slot></slot></div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('dialog.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAA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;AAAA,GA1BR,UA0BU;AAMuC;AAAA,EAAnE,SAAS,EAAE,WAAW,aAAa,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAhC/C,UAgCiD;AAyD9D;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxF1B,UAyFb;AAyKR,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
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.style/components/dialog\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/synergy-design-system/synergy/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/synergy-design-system/synergy/issues/1753#issuecomment-1836803277 */\n }\n <div part=\"body\" class=\"dialog__body\" tabindex=\"-1\"><slot></slot></div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('dialog.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('dialog.denyClose', {\n keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\n\nsetDefaultAnimation('dialog.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;AA6DhC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAME,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAM+B,oBAAW;AAiD/E,SAAQ,wBAAwB,CAAC,UAAyB;AACxD,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,gBAAgB;AACtB,aAAK,aAAa,UAAU;AAAA,MAC9B;AAAA,IACF;AAAA;AAAA,EApDA,eAAe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S,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynIcon
3
- } from "./chunk.S6EDTNOJ.js";
3
+ } from "./chunk.KYEC6H3L.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.F4JB7NV4.js.map
12
+ //# sourceMappingURL=chunk.CPNKKDEZ.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.I4FIU7FA.js";
7
7
  import {
8
8
  Modal
9
- } from "./chunk.4WRP75PK.js";
9
+ } from "./chunk.2LYOMDFO.js";
10
10
  import {
11
11
  lockBodyScrolling,
12
12
  unlockBodyScrolling
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.WXVOTRW5.js";
17
17
  import {
18
18
  SynIconButton
19
- } from "./chunk.M2L5SZRH.js";
19
+ } from "./chunk.YOW5Z4LL.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.BHQ3CFBE.js";
45
+ } from "./chunk.6BIEV3ZF.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.ZT2BACAV.js.map
401
+ //# sourceMappingURL=chunk.CSAFPRPP.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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 { 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';\nimport { blurActiveElement } from '../../internal/closeActiveElement.js';\n\n/**\n * @summary Drawers slide in from a container to expose additional options and information.\n * @documentation https://synergy.style/components/drawer\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/synergy-design-system/synergy/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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;;;ACPzB,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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tC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,WAAW,QAAQ;AAAA,IACjC,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,EAC/B;AAAA,EACA,cAAc;AAAA,IACZ,EAAE,SAAS,GAAG,WAAW,OAAO;AAAA,IAChC,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,EAC/B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,IAC7B,EAAE,SAAS,GAAG,WAAW,QAAQ;AAAA,EACnC;AAAA,EACA,cAAc;AAAA,IACZ,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,IAC7B,EAAE,SAAS,GAAG,WAAW,OAAO;AAAA,EAClC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,oBAAoB;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,CAAC;AAAA,EACvD,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;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;",
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.style/components/drawer\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/synergy-design-system/synergy/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;AACr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;AAAA,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO,EAAE,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
6
  "names": []
7
7
  }
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.XAQKFEHH.js";
7
7
  import {
8
8
  SynDivider
9
- } from "./chunk.3FAWUMXX.js";
9
+ } from "./chunk.XC2X5ICO.js";
10
10
  import {
11
11
  defaultValue
12
12
  } from "./chunk.3NXKLKWH.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk.WVVQK5TE.js";
23
23
  import {
24
24
  SynIcon
25
- } from "./chunk.S6EDTNOJ.js";
25
+ } from "./chunk.KYEC6H3L.js";
26
26
  import {
27
27
  LocalizeController
28
28
  } from "./chunk.GIU3H3J3.js";
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk.NLYVOJGK.js";
38
38
  import {
39
39
  SynergyElement
40
- } from "./chunk.BHQ3CFBE.js";
40
+ } from "./chunk.6BIEV3ZF.js";
41
41
  import {
42
42
  __decorateClass,
43
43
  __spreadValues
@@ -653,4 +653,4 @@ SynInput = __decorateClass([
653
653
  export {
654
654
  SynInput
655
655
  };
656
- //# sourceMappingURL=chunk.3UJX6GHF.js.map
656
+ //# sourceMappingURL=chunk.CXQPOR5U.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.NLYVOJGK.js";
7
7
  import {
8
8
  SynergyElement
9
- } from "./chunk.BHQ3CFBE.js";
9
+ } from "./chunk.6BIEV3ZF.js";
10
10
  import {
11
11
  __decorateClass
12
12
  } from "./chunk.2GFK6XTO.js";
@@ -48,4 +48,4 @@ __decorateClass([
48
48
  export {
49
49
  SynRangeTick
50
50
  };
51
- //# sourceMappingURL=chunk.63VN66XO.js.map
51
+ //# sourceMappingURL=chunk.CYOJT2QI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynBreadcrumb
3
- } from "./chunk.IWJG5IRD.js";
3
+ } from "./chunk.F75RDT3G.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.N7ICTIY4.js.map
12
+ //# sourceMappingURL=chunk.D6LZPKMM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDropdown
3
- } from "./chunk.33ZUFWCT.js";
3
+ } from "./chunk.UDALFFTK.js";
4
4
 
5
5
  // src/components/dropdown/dropdown.ts
6
6
  var dropdown_default = SynDropdown;
@@ -9,4 +9,4 @@ SynDropdown.define("syn-dropdown");
9
9
  export {
10
10
  dropdown_default
11
11
  };
12
- //# sourceMappingURL=chunk.TGCNK3YN.js.map
12
+ //# sourceMappingURL=chunk.DIB763NK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenuItem
3
- } from "./chunk.XWLSLIKV.js";
3
+ } from "./chunk.5MA2AWXE.js";
4
4
 
5
5
  // src/components/menu-item/menu-item.ts
6
6
  var menu_item_default = SynMenuItem;
@@ -9,4 +9,4 @@ SynMenuItem.define("syn-menu-item");
9
9
  export {
10
10
  menu_item_default
11
11
  };
12
- //# sourceMappingURL=chunk.T65MXKCV.js.map
12
+ //# sourceMappingURL=chunk.DK7B62RH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynNavItem
3
- } from "./chunk.MCOYKGU6.js";
3
+ } from "./chunk.U7TGMJTF.js";
4
4
 
5
5
  // src/components/nav-item/nav-item.ts
6
6
  var nav_item_default = SynNavItem;
@@ -9,4 +9,4 @@ SynNavItem.define("syn-nav-item");
9
9
  export {
10
10
  nav_item_default
11
11
  };
12
- //# sourceMappingURL=chunk.F5FM5LJN.js.map
12
+ //# sourceMappingURL=chunk.DLVPJRV7.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.NLYVOJGK.js";
10
10
  import {
11
11
  SynergyElement
12
- } from "./chunk.BHQ3CFBE.js";
12
+ } from "./chunk.6BIEV3ZF.js";
13
13
  import {
14
14
  __decorateClass
15
15
  } from "./chunk.2GFK6XTO.js";
@@ -78,4 +78,4 @@ __decorateClass([
78
78
  export {
79
79
  SynResizeObserver
80
80
  };
81
- //# sourceMappingURL=chunk.JVASENKU.js.map
81
+ //# sourceMappingURL=chunk.DPZWEAAW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynRadioButton
3
- } from "./chunk.UTQUJC26.js";
3
+ } from "./chunk.JJ2AGCRG.js";
4
4
 
5
5
  // src/components/radio-button/radio-button.ts
6
6
  var radio_button_default = SynRadioButton;
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
9
9
  export {
10
10
  radio_button_default
11
11
  };
12
- //# sourceMappingURL=chunk.WNQ3CJAE.js.map
12
+ //# sourceMappingURL=chunk.DT4HPGOS.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.IVM3BGRH.js";
7
7
  import {
8
8
  SynIcon
9
- } from "./chunk.S6EDTNOJ.js";
9
+ } from "./chunk.KYEC6H3L.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.BHQ3CFBE.js";
21
+ } from "./chunk.6BIEV3ZF.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk.2GFK6XTO.js";
@@ -154,4 +154,4 @@ __decorateClass([
154
154
  export {
155
155
  SynOption
156
156
  };
157
- //# sourceMappingURL=chunk.KW23D2EZ.js.map
157
+ //# sourceMappingURL=chunk.E7EMXBQQ.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.S22BO5SF.js";
7
7
  import {
8
8
  SynIcon
9
- } from "./chunk.S6EDTNOJ.js";
9
+ } from "./chunk.KYEC6H3L.js";
10
10
  import {
11
11
  LocalizeController
12
12
  } from "./chunk.GIU3H3J3.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.NLYVOJGK.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.BHQ3CFBE.js";
18
+ } from "./chunk.6BIEV3ZF.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.2GFK6XTO.js";
@@ -91,4 +91,4 @@ __decorateClass([
91
91
  export {
92
92
  SynBreadcrumb
93
93
  };
94
- //# sourceMappingURL=chunk.IWJG5IRD.js.map
94
+ //# sourceMappingURL=chunk.F75RDT3G.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.5T3OGIGW.js";
4
4
  import {
5
5
  icon_default
6
- } from "./chunk.F4JB7NV4.js";
6
+ } from "./chunk.CPNKKDEZ.js";
7
7
  import {
8
8
  HasSlotController
9
9
  } from "./chunk.WVVQK5TE.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk.NLYVOJGK.js";
19
19
  import {
20
20
  SynergyElement
21
- } from "./chunk.BHQ3CFBE.js";
21
+ } from "./chunk.6BIEV3ZF.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk.2GFK6XTO.js";
@@ -184,4 +184,4 @@ __decorateClass([
184
184
  export {
185
185
  SynHeader
186
186
  };
187
- //# sourceMappingURL=chunk.A2X3TLOJ.js.map
187
+ //# sourceMappingURL=chunk.FEQA6RB5.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.6EPU7YUS.js";
7
7
  import {
8
8
  SynIconButton
9
- } from "./chunk.M2L5SZRH.js";
9
+ } from "./chunk.YOW5Z4LL.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.BHQ3CFBE.js";
21
+ } from "./chunk.6BIEV3ZF.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.6Y3A6TVH.js.map
87
+ //# sourceMappingURL=chunk.G5KHYL4R.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynBadge
3
- } from "./chunk.Y7VVMUQB.js";
3
+ } from "./chunk.RA75SKST.js";
4
4
 
5
5
  // src/components/badge/badge.ts
6
6
  var badge_default = SynBadge;
@@ -9,4 +9,4 @@ SynBadge.define("syn-badge");
9
9
  export {
10
10
  badge_default
11
11
  };
12
- //# sourceMappingURL=chunk.UIWD3IUJ.js.map
12
+ //# sourceMappingURL=chunk.G65DXQNJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDetails
3
- } from "./chunk.JQ5SNHTM.js";
3
+ } from "./chunk.A3QOZO4K.js";
4
4
 
5
5
  // src/components/details/details.ts
6
6
  var details_default = SynDetails;
@@ -9,4 +9,4 @@ SynDetails.define("syn-details");
9
9
  export {
10
10
  details_default
11
11
  };
12
- //# sourceMappingURL=chunk.R57GDDLN.js.map
12
+ //# sourceMappingURL=chunk.HJC2NUOQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenuLabel
3
- } from "./chunk.4BRHW6CU.js";
3
+ } from "./chunk.YLLDZCXR.js";
4
4
 
5
5
  // src/components/menu-label/menu-label.ts
6
6
  var menu_label_default = SynMenuLabel;
@@ -9,4 +9,4 @@ SynMenuLabel.define("syn-menu-label");
9
9
  export {
10
10
  menu_label_default
11
11
  };
12
- //# sourceMappingURL=chunk.JQ6ZF473.js.map
12
+ //# sourceMappingURL=chunk.HM2CFDQD.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.FKKJBKYL.js";
11
11
  import {
12
12
  SynButtonGroup
13
- } from "./chunk.CE2OPZJB.js";
13
+ } from "./chunk.7LAT6LLA.js";
14
14
  import {
15
15
  FormControlController,
16
16
  customErrorValidityState,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk.NLYVOJGK.js";
32
32
  import {
33
33
  SynergyElement
34
- } from "./chunk.BHQ3CFBE.js";
34
+ } from "./chunk.6BIEV3ZF.js";
35
35
  import {
36
36
  __decorateClass
37
37
  } from "./chunk.2GFK6XTO.js";
@@ -369,4 +369,4 @@ SynRadioGroup = __decorateClass([
369
369
  export {
370
370
  SynRadioGroup
371
371
  };
372
- //# sourceMappingURL=chunk.QWVKUGLD.js.map
372
+ //# sourceMappingURL=chunk.HPXLGI6G.js.map