@synergy-design-system/components 1.22.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/chunks/{chunk.MUOLOUGJ.js → chunk.4IHZCJIO.js} +2 -2
  2. package/dist/chunks/{chunk.6CKZ6DXB.js → chunk.6C4OKY3S.js} +3 -3
  3. package/dist/chunks/{chunk.AD6PNEAS.js → chunk.6QLGO6B7.js} +2 -2
  4. package/dist/chunks/{chunk.O6P2C7TM.js → chunk.75HTBJG2.js} +9 -9
  5. package/dist/chunks/{chunk.WFEAPO2Z.js → chunk.BDH3MNEZ.js} +2 -2
  6. package/dist/chunks/{chunk.RUOP7EQ3.js → chunk.BLANRU2O.js} +2 -2
  7. package/dist/chunks/chunk.C4ZZOCEG.js +288 -0
  8. package/dist/chunks/chunk.C4ZZOCEG.js.map +7 -0
  9. package/dist/chunks/{chunk.JDG6T7O5.js → chunk.C6ZQAYEH.js} +4 -4
  10. package/dist/chunks/{chunk.7J62WTZF.js → chunk.CFFSAE7R.js} +2 -2
  11. package/dist/chunks/{chunk.DXWXCO6V.js → chunk.CJSER4UW.js} +2 -2
  12. package/dist/chunks/{chunk.UTV5OFQL.js → chunk.CWA6YXHF.js} +2 -2
  13. package/dist/chunks/{chunk.ZS6PNXWP.js → chunk.DH7ZOX4L.js} +2 -2
  14. package/dist/chunks/{chunk.XQIMTGR7.js → chunk.ER5OH7PE.js} +2 -2
  15. package/dist/chunks/{chunk.M3E6TOQK.js → chunk.EV3VRCZO.js} +2 -2
  16. package/dist/chunks/{chunk.QM7VXUFB.js → chunk.F4PCHWCA.js} +2 -2
  17. package/dist/chunks/{chunk.WKNDIKFR.js → chunk.FP5U5XKU.js} +3 -3
  18. package/dist/chunks/{chunk.2OABF2SJ.js → chunk.FQMRWJFJ.js} +5 -5
  19. package/dist/chunks/{chunk.V3VCKE3S.js → chunk.FQZVX543.js} +2 -2
  20. package/dist/chunks/{chunk.PGRSZANJ.js → chunk.G5IZQ6S2.js} +2 -2
  21. package/dist/chunks/{chunk.OMNF6AAJ.js → chunk.GAOGMXIA.js} +2 -2
  22. package/dist/chunks/{chunk.4RE2XOHB.js → chunk.HGPR3DSR.js} +6 -6
  23. package/dist/chunks/{chunk.YRD4XV5H.js → chunk.HJ2BLED6.js} +3 -3
  24. package/dist/chunks/{chunk.NWA3JG2W.js → chunk.HJS2XO3E.js} +6 -6
  25. package/dist/chunks/{chunk.6SEZAKT6.js → chunk.HVRGKMS2.js} +3 -3
  26. package/dist/chunks/{chunk.KZMWNTUS.js → chunk.I4FIU7FA.js} +6 -6
  27. package/dist/chunks/chunk.I4FIU7FA.js.map +7 -0
  28. package/dist/chunks/{chunk.34B3X4BC.js → chunk.IGMLSPCX.js} +3 -3
  29. package/dist/chunks/{chunk.LJDKT3WV.js → chunk.IKY4SF3U.js} +2 -2
  30. package/dist/chunks/chunk.ITXLZUTJ.js +137 -0
  31. package/dist/chunks/chunk.ITXLZUTJ.js.map +7 -0
  32. package/dist/chunks/chunk.IU3SSJZE.js +59 -0
  33. package/dist/chunks/chunk.IU3SSJZE.js.map +7 -0
  34. package/dist/chunks/{chunk.KJSP6UU7.js → chunk.JURUVJDH.js} +2 -2
  35. package/dist/chunks/{chunk.TU7JCURI.js → chunk.JURXXFAS.js} +2 -2
  36. package/dist/chunks/{chunk.F5YARVPW.js → chunk.KVDQTSR6.js} +2 -2
  37. package/dist/chunks/{chunk.BDXKKIGY.js → chunk.KXABXUHF.js} +2 -2
  38. package/dist/chunks/{chunk.LZTZI755.js → chunk.LESYB3C2.js} +2 -2
  39. package/dist/chunks/{chunk.36RX5N27.js → chunk.LF2WINIA.js} +2 -2
  40. package/dist/chunks/chunk.MDZPTRJA.js +12 -0
  41. package/dist/chunks/chunk.MDZPTRJA.js.map +7 -0
  42. package/dist/chunks/{chunk.2SD2EQGI.js → chunk.MHNU5B6B.js} +2 -2
  43. package/dist/chunks/{chunk.BVTKQLIH.js → chunk.MLLOIKFT.js} +8 -8
  44. package/dist/chunks/{chunk.5SY25ST7.js → chunk.MRDYD2EO.js} +2 -2
  45. package/dist/chunks/{chunk.ICZ4XHFM.js → chunk.MWCHWWA6.js} +3 -3
  46. package/dist/chunks/{chunk.SV4C44N2.js → chunk.NRNCS4W7.js} +11 -138
  47. package/dist/chunks/{chunk.SV4C44N2.js.map → chunk.NRNCS4W7.js.map} +3 -3
  48. package/dist/chunks/{chunk.JG3VWKCQ.js → chunk.O5RLTXZV.js} +2 -2
  49. package/dist/chunks/{chunk.R5B6AH26.js → chunk.ONP567RL.js} +2 -2
  50. package/dist/chunks/{chunk.HSGDEWPR.js → chunk.OX77MJOD.js} +3 -3
  51. package/dist/chunks/{chunk.LC2HUSJU.js → chunk.P36SH35P.js} +3 -3
  52. package/dist/chunks/{chunk.CFRF4L43.js → chunk.P3JNSYA3.js} +6 -6
  53. package/dist/chunks/{chunk.65XESUR4.js → chunk.P7BWMA4R.js} +2 -2
  54. package/dist/chunks/{chunk.AFIABGBZ.js → chunk.PLU22FYW.js} +2 -2
  55. package/dist/chunks/{chunk.JNKPCBRN.js → chunk.POS3ORCG.js} +2 -2
  56. package/dist/chunks/{chunk.KNVQPHZG.js → chunk.PTRBWSST.js} +5 -5
  57. package/dist/chunks/{chunk.LTCBRJXS.js → chunk.Q4FDYSK4.js} +2 -2
  58. package/dist/chunks/{chunk.6T5ZLDVO.js → chunk.QEWKO72D.js} +2 -2
  59. package/dist/chunks/{chunk.632BCT5Q.js → chunk.QLHK2UIO.js} +2 -2
  60. package/dist/chunks/{chunk.RB53OKJP.js → chunk.QO424EZG.js} +2 -2
  61. package/dist/chunks/{chunk.W3AKVJZS.js → chunk.R47GARB7.js} +2 -2
  62. package/dist/chunks/{chunk.W3AKVJZS.js.map → chunk.R47GARB7.js.map} +1 -1
  63. package/dist/chunks/{chunk.PSKG77JT.js → chunk.RE3DUPRU.js} +2 -2
  64. package/dist/chunks/{chunk.IIUHOC6Y.js → chunk.S64FWPC4.js} +2 -2
  65. package/dist/chunks/{chunk.VFJ7WM77.js → chunk.SV7SO2W7.js} +2 -2
  66. package/dist/chunks/{chunk.USAMRUVZ.js → chunk.TAQALRJR.js} +2 -2
  67. package/dist/chunks/{chunk.MMWXEAUD.js → chunk.TPGEIEV4.js} +2 -2
  68. package/dist/chunks/{chunk.6XCVG5NN.js → chunk.TU2TR3D6.js} +3 -3
  69. package/dist/chunks/{chunk.RII6V5PK.js → chunk.UFUG4PUS.js} +2 -2
  70. package/dist/chunks/{chunk.IAVZUZCD.js → chunk.VHPGEUHA.js} +7 -7
  71. package/dist/chunks/{chunk.KDLLV322.js → chunk.WB4KEXYB.js} +2 -2
  72. package/dist/chunks/{chunk.H4IU2YYT.js → chunk.WXINI2LT.js} +2 -2
  73. package/dist/chunks/{chunk.CYRZCQZW.js → chunk.XAC2JLED.js} +2 -2
  74. package/dist/chunks/chunk.YMICCSK6.js +126 -0
  75. package/dist/chunks/chunk.YMICCSK6.js.map +7 -0
  76. package/dist/chunks/{chunk.5RX2EHTU.js → chunk.YN5JT7NN.js} +2 -2
  77. package/dist/chunks/{chunk.HRI37GM2.js → chunk.ZCKMBPFC.js} +3 -3
  78. package/dist/chunks/{chunk.YCTQAHOK.js → chunk.ZFFSP55G.js} +6 -6
  79. package/dist/chunks/{chunk.5BZABGLE.js → chunk.ZTCTJE62.js} +2 -2
  80. package/dist/components/alert/alert.component.js +6 -6
  81. package/dist/components/alert/alert.js +7 -7
  82. package/dist/components/badge/badge.component.js +2 -2
  83. package/dist/components/badge/badge.js +3 -3
  84. package/dist/components/button/button.component.js +6 -6
  85. package/dist/components/button/button.js +7 -7
  86. package/dist/components/button-group/button-group.component.js +2 -2
  87. package/dist/components/button-group/button-group.js +3 -3
  88. package/dist/components/checkbox/checkbox.component.js +5 -5
  89. package/dist/components/checkbox/checkbox.js +6 -6
  90. package/dist/components/dialog/dialog.component.d.ts +95 -0
  91. package/dist/components/dialog/dialog.component.js +30 -0
  92. package/dist/components/dialog/dialog.component.js.map +7 -0
  93. package/dist/components/dialog/dialog.custom.styles.d.ts +2 -0
  94. package/dist/components/dialog/dialog.custom.styles.js +8 -0
  95. package/dist/components/dialog/dialog.custom.styles.js.map +7 -0
  96. package/dist/components/dialog/dialog.d.ts +8 -0
  97. package/dist/components/dialog/dialog.js +31 -0
  98. package/dist/components/dialog/dialog.js.map +7 -0
  99. package/dist/components/dialog/dialog.styles.d.ts +2 -0
  100. package/dist/components/dialog/dialog.styles.js +8 -0
  101. package/dist/components/dialog/dialog.styles.js.map +7 -0
  102. package/dist/components/divider/divider.component.js +2 -2
  103. package/dist/components/divider/divider.js +3 -3
  104. package/dist/components/drawer/drawer.component.js +9 -8
  105. package/dist/components/drawer/drawer.custom.styles.js +1 -1
  106. package/dist/components/drawer/drawer.js +10 -9
  107. package/dist/components/dropdown/dropdown.component.js +4 -4
  108. package/dist/components/dropdown/dropdown.js +5 -5
  109. package/dist/components/header/header.component.js +6 -6
  110. package/dist/components/header/header.js +7 -7
  111. package/dist/components/icon/icon.component.js +4 -4
  112. package/dist/components/icon/icon.js +5 -5
  113. package/dist/components/icon-button/icon-button.component.js +5 -5
  114. package/dist/components/icon-button/icon-button.js +6 -6
  115. package/dist/components/input/input.component.js +8 -8
  116. package/dist/components/input/input.js +9 -9
  117. package/dist/components/menu/menu.component.js +2 -2
  118. package/dist/components/menu/menu.js +3 -3
  119. package/dist/components/menu-item/menu-item.component.js +7 -7
  120. package/dist/components/menu-item/menu-item.js +8 -8
  121. package/dist/components/menu-label/menu-label.component.js +3 -3
  122. package/dist/components/menu-label/menu-label.js +4 -4
  123. package/dist/components/nav-item/nav-item.component.js +3 -3
  124. package/dist/components/nav-item/nav-item.js +4 -4
  125. package/dist/components/optgroup/optgroup.component.js +3 -3
  126. package/dist/components/optgroup/optgroup.js +4 -4
  127. package/dist/components/option/option.component.js +6 -6
  128. package/dist/components/option/option.js +7 -7
  129. package/dist/components/popup/popup.component.js +2 -2
  130. package/dist/components/popup/popup.js +3 -3
  131. package/dist/components/prio-nav/prio-nav.component.js +12 -12
  132. package/dist/components/prio-nav/prio-nav.js +13 -13
  133. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  134. package/dist/components/progress-bar/progress-bar.js +3 -3
  135. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  136. package/dist/components/progress-ring/progress-ring.js +3 -3
  137. package/dist/components/radio/radio.component.js +5 -5
  138. package/dist/components/radio/radio.js +6 -6
  139. package/dist/components/radio-button/radio-button.component.js +2 -2
  140. package/dist/components/radio-button/radio-button.js +3 -3
  141. package/dist/components/radio-group/radio-group.component.js +3 -3
  142. package/dist/components/radio-group/radio-group.js +4 -4
  143. package/dist/components/select/select.component.js +9 -9
  144. package/dist/components/select/select.js +10 -10
  145. package/dist/components/side-nav/side-nav.component.js +13 -12
  146. package/dist/components/side-nav/side-nav.js +14 -13
  147. package/dist/components/spinner/spinner.component.js +2 -2
  148. package/dist/components/spinner/spinner.js +3 -3
  149. package/dist/components/switch/switch.component.js +2 -2
  150. package/dist/components/switch/switch.js +3 -3
  151. package/dist/components/tag/tag.component.js +6 -6
  152. package/dist/components/tag/tag.js +7 -7
  153. package/dist/components/textarea/textarea.component.js +2 -2
  154. package/dist/components/textarea/textarea.js +3 -3
  155. package/dist/components/tooltip/tooltip.component.js +3 -3
  156. package/dist/components/tooltip/tooltip.js +4 -4
  157. package/dist/custom-elements.json +427 -77
  158. package/dist/synergy.d.ts +1 -0
  159. package/dist/synergy.js +120 -112
  160. package/dist/vscode.html-custom-data.json +50 -23
  161. package/package.json +4 -4
  162. package/dist/chunks/chunk.KZMWNTUS.js.map +0 -7
  163. /package/dist/chunks/{chunk.MUOLOUGJ.js.map → chunk.4IHZCJIO.js.map} +0 -0
  164. /package/dist/chunks/{chunk.6CKZ6DXB.js.map → chunk.6C4OKY3S.js.map} +0 -0
  165. /package/dist/chunks/{chunk.AD6PNEAS.js.map → chunk.6QLGO6B7.js.map} +0 -0
  166. /package/dist/chunks/{chunk.O6P2C7TM.js.map → chunk.75HTBJG2.js.map} +0 -0
  167. /package/dist/chunks/{chunk.WFEAPO2Z.js.map → chunk.BDH3MNEZ.js.map} +0 -0
  168. /package/dist/chunks/{chunk.RUOP7EQ3.js.map → chunk.BLANRU2O.js.map} +0 -0
  169. /package/dist/chunks/{chunk.JDG6T7O5.js.map → chunk.C6ZQAYEH.js.map} +0 -0
  170. /package/dist/chunks/{chunk.7J62WTZF.js.map → chunk.CFFSAE7R.js.map} +0 -0
  171. /package/dist/chunks/{chunk.DXWXCO6V.js.map → chunk.CJSER4UW.js.map} +0 -0
  172. /package/dist/chunks/{chunk.UTV5OFQL.js.map → chunk.CWA6YXHF.js.map} +0 -0
  173. /package/dist/chunks/{chunk.ZS6PNXWP.js.map → chunk.DH7ZOX4L.js.map} +0 -0
  174. /package/dist/chunks/{chunk.XQIMTGR7.js.map → chunk.ER5OH7PE.js.map} +0 -0
  175. /package/dist/chunks/{chunk.M3E6TOQK.js.map → chunk.EV3VRCZO.js.map} +0 -0
  176. /package/dist/chunks/{chunk.QM7VXUFB.js.map → chunk.F4PCHWCA.js.map} +0 -0
  177. /package/dist/chunks/{chunk.WKNDIKFR.js.map → chunk.FP5U5XKU.js.map} +0 -0
  178. /package/dist/chunks/{chunk.2OABF2SJ.js.map → chunk.FQMRWJFJ.js.map} +0 -0
  179. /package/dist/chunks/{chunk.V3VCKE3S.js.map → chunk.FQZVX543.js.map} +0 -0
  180. /package/dist/chunks/{chunk.PGRSZANJ.js.map → chunk.G5IZQ6S2.js.map} +0 -0
  181. /package/dist/chunks/{chunk.OMNF6AAJ.js.map → chunk.GAOGMXIA.js.map} +0 -0
  182. /package/dist/chunks/{chunk.4RE2XOHB.js.map → chunk.HGPR3DSR.js.map} +0 -0
  183. /package/dist/chunks/{chunk.YRD4XV5H.js.map → chunk.HJ2BLED6.js.map} +0 -0
  184. /package/dist/chunks/{chunk.NWA3JG2W.js.map → chunk.HJS2XO3E.js.map} +0 -0
  185. /package/dist/chunks/{chunk.6SEZAKT6.js.map → chunk.HVRGKMS2.js.map} +0 -0
  186. /package/dist/chunks/{chunk.34B3X4BC.js.map → chunk.IGMLSPCX.js.map} +0 -0
  187. /package/dist/chunks/{chunk.LJDKT3WV.js.map → chunk.IKY4SF3U.js.map} +0 -0
  188. /package/dist/chunks/{chunk.KJSP6UU7.js.map → chunk.JURUVJDH.js.map} +0 -0
  189. /package/dist/chunks/{chunk.TU7JCURI.js.map → chunk.JURXXFAS.js.map} +0 -0
  190. /package/dist/chunks/{chunk.F5YARVPW.js.map → chunk.KVDQTSR6.js.map} +0 -0
  191. /package/dist/chunks/{chunk.BDXKKIGY.js.map → chunk.KXABXUHF.js.map} +0 -0
  192. /package/dist/chunks/{chunk.LZTZI755.js.map → chunk.LESYB3C2.js.map} +0 -0
  193. /package/dist/chunks/{chunk.36RX5N27.js.map → chunk.LF2WINIA.js.map} +0 -0
  194. /package/dist/chunks/{chunk.2SD2EQGI.js.map → chunk.MHNU5B6B.js.map} +0 -0
  195. /package/dist/chunks/{chunk.BVTKQLIH.js.map → chunk.MLLOIKFT.js.map} +0 -0
  196. /package/dist/chunks/{chunk.5SY25ST7.js.map → chunk.MRDYD2EO.js.map} +0 -0
  197. /package/dist/chunks/{chunk.ICZ4XHFM.js.map → chunk.MWCHWWA6.js.map} +0 -0
  198. /package/dist/chunks/{chunk.JG3VWKCQ.js.map → chunk.O5RLTXZV.js.map} +0 -0
  199. /package/dist/chunks/{chunk.R5B6AH26.js.map → chunk.ONP567RL.js.map} +0 -0
  200. /package/dist/chunks/{chunk.HSGDEWPR.js.map → chunk.OX77MJOD.js.map} +0 -0
  201. /package/dist/chunks/{chunk.LC2HUSJU.js.map → chunk.P36SH35P.js.map} +0 -0
  202. /package/dist/chunks/{chunk.CFRF4L43.js.map → chunk.P3JNSYA3.js.map} +0 -0
  203. /package/dist/chunks/{chunk.65XESUR4.js.map → chunk.P7BWMA4R.js.map} +0 -0
  204. /package/dist/chunks/{chunk.AFIABGBZ.js.map → chunk.PLU22FYW.js.map} +0 -0
  205. /package/dist/chunks/{chunk.JNKPCBRN.js.map → chunk.POS3ORCG.js.map} +0 -0
  206. /package/dist/chunks/{chunk.KNVQPHZG.js.map → chunk.PTRBWSST.js.map} +0 -0
  207. /package/dist/chunks/{chunk.LTCBRJXS.js.map → chunk.Q4FDYSK4.js.map} +0 -0
  208. /package/dist/chunks/{chunk.6T5ZLDVO.js.map → chunk.QEWKO72D.js.map} +0 -0
  209. /package/dist/chunks/{chunk.632BCT5Q.js.map → chunk.QLHK2UIO.js.map} +0 -0
  210. /package/dist/chunks/{chunk.RB53OKJP.js.map → chunk.QO424EZG.js.map} +0 -0
  211. /package/dist/chunks/{chunk.PSKG77JT.js.map → chunk.RE3DUPRU.js.map} +0 -0
  212. /package/dist/chunks/{chunk.IIUHOC6Y.js.map → chunk.S64FWPC4.js.map} +0 -0
  213. /package/dist/chunks/{chunk.VFJ7WM77.js.map → chunk.SV7SO2W7.js.map} +0 -0
  214. /package/dist/chunks/{chunk.USAMRUVZ.js.map → chunk.TAQALRJR.js.map} +0 -0
  215. /package/dist/chunks/{chunk.MMWXEAUD.js.map → chunk.TPGEIEV4.js.map} +0 -0
  216. /package/dist/chunks/{chunk.6XCVG5NN.js.map → chunk.TU2TR3D6.js.map} +0 -0
  217. /package/dist/chunks/{chunk.RII6V5PK.js.map → chunk.UFUG4PUS.js.map} +0 -0
  218. /package/dist/chunks/{chunk.IAVZUZCD.js.map → chunk.VHPGEUHA.js.map} +0 -0
  219. /package/dist/chunks/{chunk.KDLLV322.js.map → chunk.WB4KEXYB.js.map} +0 -0
  220. /package/dist/chunks/{chunk.H4IU2YYT.js.map → chunk.WXINI2LT.js.map} +0 -0
  221. /package/dist/chunks/{chunk.CYRZCQZW.js.map → chunk.XAC2JLED.js.map} +0 -0
  222. /package/dist/chunks/{chunk.5RX2EHTU.js.map → chunk.YN5JT7NN.js.map} +0 -0
  223. /package/dist/chunks/{chunk.HRI37GM2.js.map → chunk.ZCKMBPFC.js.map} +0 -0
  224. /package/dist/chunks/{chunk.YCTQAHOK.js.map → chunk.ZFFSP55G.js.map} +0 -0
  225. /package/dist/chunks/{chunk.5BZABGLE.js.map → chunk.ZTCTJE62.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  SynergyElement,
9
9
  component_styles_default
10
- } from "./chunk.W3AKVJZS.js";
10
+ } from "./chunk.R47GARB7.js";
11
11
  import {
12
12
  badge_custom_styles_default
13
13
  } from "./chunk.WQJRBFZA.js";
@@ -58,4 +58,4 @@ __decorateClass([
58
58
  export {
59
59
  SynBadge
60
60
  };
61
- //# sourceMappingURL=chunk.MUOLOUGJ.js.map
61
+ //# sourceMappingURL=chunk.4IHZCJIO.js.map
@@ -6,11 +6,11 @@ import {
6
6
  } from "./chunk.LJQ7LEPV.js";
7
7
  import {
8
8
  SynIcon
9
- } from "./chunk.IAVZUZCD.js";
9
+ } from "./chunk.VHPGEUHA.js";
10
10
  import {
11
11
  SynergyElement,
12
12
  component_styles_default
13
- } from "./chunk.W3AKVJZS.js";
13
+ } from "./chunk.R47GARB7.js";
14
14
  import {
15
15
  __decorateClass
16
16
  } from "./chunk.QNDC5KWA.js";
@@ -138,4 +138,4 @@ __decorateClass([
138
138
  export {
139
139
  SynIconButton
140
140
  };
141
- //# sourceMappingURL=chunk.6CKZ6DXB.js.map
141
+ //# sourceMappingURL=chunk.6C4OKY3S.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynBadge
3
- } from "./chunk.MUOLOUGJ.js";
3
+ } from "./chunk.4IHZCJIO.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.AD6PNEAS.js.map
12
+ //# sourceMappingURL=chunk.6QLGO6B7.js.map
@@ -1,26 +1,26 @@
1
+ import {
2
+ prio_nav_styles_default
3
+ } from "./chunk.74N5WLM5.js";
1
4
  import {
2
5
  filterOnlyNavItems,
3
6
  getAssignedElementsForSlot
4
7
  } from "./chunk.XNP4OTUB.js";
5
- import {
6
- prio_nav_styles_default
7
- } from "./chunk.74N5WLM5.js";
8
8
  import {
9
9
  SynNavItem
10
- } from "./chunk.HSGDEWPR.js";
10
+ } from "./chunk.OX77MJOD.js";
11
11
  import {
12
12
  SynMenu
13
- } from "./chunk.PSKG77JT.js";
13
+ } from "./chunk.RE3DUPRU.js";
14
14
  import {
15
15
  SynDropdown
16
- } from "./chunk.CFRF4L43.js";
16
+ } from "./chunk.P3JNSYA3.js";
17
17
  import {
18
18
  SynIcon
19
- } from "./chunk.IAVZUZCD.js";
19
+ } from "./chunk.VHPGEUHA.js";
20
20
  import {
21
21
  SynergyElement,
22
22
  component_styles_default
23
- } from "./chunk.W3AKVJZS.js";
23
+ } from "./chunk.R47GARB7.js";
24
24
  import {
25
25
  __decorateClass
26
26
  } from "./chunk.QNDC5KWA.js";
@@ -205,4 +205,4 @@ __decorateClass([
205
205
  export {
206
206
  SynPrioNav
207
207
  };
208
- //# sourceMappingURL=chunk.O6P2C7TM.js.map
208
+ //# sourceMappingURL=chunk.75HTBJG2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTextarea
3
- } from "./chunk.2SD2EQGI.js";
3
+ } from "./chunk.MHNU5B6B.js";
4
4
 
5
5
  // src/components/textarea/textarea.ts
6
6
  var textarea_default = SynTextarea;
@@ -9,4 +9,4 @@ SynTextarea.define("syn-textarea");
9
9
  export {
10
10
  textarea_default
11
11
  };
12
- //# sourceMappingURL=chunk.WFEAPO2Z.js.map
12
+ //# sourceMappingURL=chunk.BDH3MNEZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynButtonGroup
3
- } from "./chunk.MMWXEAUD.js";
3
+ } from "./chunk.TPGEIEV4.js";
4
4
 
5
5
  // src/components/button-group/button-group.ts
6
6
  var button_group_default = SynButtonGroup;
@@ -9,4 +9,4 @@ SynButtonGroup.define("syn-button-group");
9
9
  export {
10
10
  button_group_default
11
11
  };
12
- //# sourceMappingURL=chunk.RUOP7EQ3.js.map
12
+ //# sourceMappingURL=chunk.BLANRU2O.js.map
@@ -0,0 +1,288 @@
1
+ import {
2
+ Modal
3
+ } from "./chunk.ITXLZUTJ.js";
4
+ import {
5
+ lockBodyScrolling,
6
+ unlockBodyScrolling
7
+ } from "./chunk.RIJKFEYZ.js";
8
+ import {
9
+ dialog_custom_styles_default
10
+ } from "./chunk.IU3SSJZE.js";
11
+ import {
12
+ dialog_styles_default
13
+ } from "./chunk.YMICCSK6.js";
14
+ import {
15
+ SynIconButton
16
+ } from "./chunk.6C4OKY3S.js";
17
+ import {
18
+ animateTo,
19
+ stopAnimations,
20
+ waitForEvent
21
+ } from "./chunk.UMKKOHXB.js";
22
+ import {
23
+ getAnimation,
24
+ setDefaultAnimation
25
+ } from "./chunk.QAUTITK3.js";
26
+ import {
27
+ HasSlotController
28
+ } from "./chunk.66WXVGAW.js";
29
+ import {
30
+ watch
31
+ } from "./chunk.AVTU2BGE.js";
32
+ import {
33
+ LocalizeController
34
+ } from "./chunk.GEHO4WRP.js";
35
+ import {
36
+ SynergyElement,
37
+ component_styles_default
38
+ } from "./chunk.R47GARB7.js";
39
+ import {
40
+ __decorateClass
41
+ } from "./chunk.QNDC5KWA.js";
42
+
43
+ // src/components/dialog/dialog.component.ts
44
+ import { classMap } from "lit/directives/class-map.js";
45
+ import { html } from "lit";
46
+ import { ifDefined } from "lit/directives/if-defined.js";
47
+ import { property, query } from "lit/decorators.js";
48
+ var SynDialog = class extends SynergyElement {
49
+ constructor() {
50
+ super(...arguments);
51
+ this.hasSlotController = new HasSlotController(this, "footer");
52
+ this.localize = new LocalizeController(this);
53
+ this.modal = new Modal(this);
54
+ this.open = false;
55
+ this.label = "";
56
+ this.noHeader = false;
57
+ this.handleDocumentKeyDown = (event) => {
58
+ if (event.key === "Escape" && this.modal.isActive() && this.open) {
59
+ event.stopPropagation();
60
+ this.requestClose("keyboard");
61
+ }
62
+ };
63
+ }
64
+ firstUpdated() {
65
+ this.dialog.hidden = !this.open;
66
+ if (this.open) {
67
+ this.addOpenListeners();
68
+ this.modal.activate();
69
+ lockBodyScrolling(this);
70
+ }
71
+ }
72
+ disconnectedCallback() {
73
+ var _a;
74
+ super.disconnectedCallback();
75
+ this.modal.deactivate();
76
+ unlockBodyScrolling(this);
77
+ (_a = this.closeWatcher) == null ? void 0 : _a.destroy();
78
+ }
79
+ requestClose(source) {
80
+ const slRequestClose = this.emit("syn-request-close", {
81
+ cancelable: true,
82
+ detail: { source }
83
+ });
84
+ if (slRequestClose.defaultPrevented) {
85
+ const animation = getAnimation(this, "dialog.denyClose", { dir: this.localize.dir() });
86
+ animateTo(this.panel, animation.keyframes, animation.options);
87
+ return;
88
+ }
89
+ this.hide();
90
+ }
91
+ addOpenListeners() {
92
+ var _a;
93
+ if ("CloseWatcher" in window) {
94
+ (_a = this.closeWatcher) == null ? void 0 : _a.destroy();
95
+ this.closeWatcher = new CloseWatcher();
96
+ this.closeWatcher.onclose = () => this.requestClose("keyboard");
97
+ } else {
98
+ document.addEventListener("keydown", this.handleDocumentKeyDown);
99
+ }
100
+ }
101
+ removeOpenListeners() {
102
+ var _a;
103
+ (_a = this.closeWatcher) == null ? void 0 : _a.destroy();
104
+ document.removeEventListener("keydown", this.handleDocumentKeyDown);
105
+ }
106
+ async handleOpenChange() {
107
+ if (this.open) {
108
+ this.emit("syn-show");
109
+ this.addOpenListeners();
110
+ this.originalTrigger = document.activeElement;
111
+ this.modal.activate();
112
+ lockBodyScrolling(this);
113
+ const autoFocusTarget = this.querySelector("[autofocus]");
114
+ if (autoFocusTarget) {
115
+ autoFocusTarget.removeAttribute("autofocus");
116
+ }
117
+ await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);
118
+ this.dialog.hidden = false;
119
+ requestAnimationFrame(() => {
120
+ const slInitialFocus = this.emit("syn-initial-focus", { cancelable: true });
121
+ if (!slInitialFocus.defaultPrevented) {
122
+ if (autoFocusTarget) {
123
+ autoFocusTarget.focus({ preventScroll: true });
124
+ } else {
125
+ this.panel.focus({ preventScroll: true });
126
+ }
127
+ }
128
+ if (autoFocusTarget) {
129
+ autoFocusTarget.setAttribute("autofocus", "");
130
+ }
131
+ });
132
+ const panelAnimation = getAnimation(this, "dialog.show", { dir: this.localize.dir() });
133
+ const overlayAnimation = getAnimation(this, "dialog.overlay.show", { dir: this.localize.dir() });
134
+ await Promise.all([
135
+ animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),
136
+ animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options)
137
+ ]);
138
+ this.emit("syn-after-show");
139
+ } else {
140
+ this.emit("syn-hide");
141
+ this.removeOpenListeners();
142
+ this.modal.deactivate();
143
+ await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);
144
+ const panelAnimation = getAnimation(this, "dialog.hide", { dir: this.localize.dir() });
145
+ const overlayAnimation = getAnimation(this, "dialog.overlay.hide", { dir: this.localize.dir() });
146
+ await Promise.all([
147
+ animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options).then(() => {
148
+ this.overlay.hidden = true;
149
+ }),
150
+ animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options).then(() => {
151
+ this.panel.hidden = true;
152
+ })
153
+ ]);
154
+ this.dialog.hidden = true;
155
+ this.overlay.hidden = false;
156
+ this.panel.hidden = false;
157
+ unlockBodyScrolling(this);
158
+ const trigger = this.originalTrigger;
159
+ if (typeof (trigger == null ? void 0 : trigger.focus) === "function") {
160
+ setTimeout(() => trigger.focus());
161
+ }
162
+ this.emit("syn-after-hide");
163
+ }
164
+ }
165
+ /** Shows the dialog. */
166
+ async show() {
167
+ if (this.open) {
168
+ return void 0;
169
+ }
170
+ this.open = true;
171
+ return waitForEvent(this, "syn-after-show");
172
+ }
173
+ /** Hides the dialog */
174
+ async hide() {
175
+ if (!this.open) {
176
+ return void 0;
177
+ }
178
+ this.open = false;
179
+ return waitForEvent(this, "syn-after-hide");
180
+ }
181
+ render() {
182
+ return html`
183
+ <div
184
+ part="base"
185
+ class=${classMap({
186
+ dialog: true,
187
+ "dialog--open": this.open,
188
+ "dialog--has-footer": this.hasSlotController.test("footer")
189
+ })}
190
+ >
191
+ <div part="overlay" class="dialog__overlay" @click=${() => this.requestClose("overlay")} tabindex="-1"></div>
192
+
193
+ <div
194
+ part="panel"
195
+ class="dialog__panel"
196
+ role="dialog"
197
+ aria-modal="true"
198
+ aria-hidden=${this.open ? "false" : "true"}
199
+ aria-label=${ifDefined(this.noHeader ? this.label : void 0)}
200
+ aria-labelledby=${ifDefined(!this.noHeader ? "title" : void 0)}
201
+ tabindex="-1"
202
+ >
203
+ ${!this.noHeader ? html`
204
+ <header part="header" class="dialog__header">
205
+ <h2 part="title" class="dialog__title" id="title">
206
+ <slot name="label"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>
207
+ </h2>
208
+ <div part="header-actions" class="dialog__header-actions">
209
+ <slot name="header-actions"></slot>
210
+ <syn-icon-button
211
+ part="close-button"
212
+ exportparts="base:close-button__base"
213
+ class="dialog__close"
214
+ name="x-lg"
215
+ label=${this.localize.term("close")}
216
+ library="system"
217
+ @click="${() => this.requestClose("close-button")}"
218
+ ></syn-icon-button>
219
+ </div>
220
+ </header>
221
+ ` : ""}
222
+ ${""}
223
+ <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>
224
+
225
+ <footer part="footer" class="dialog__footer">
226
+ <slot name="footer"></slot>
227
+ </footer>
228
+ </div>
229
+ </div>
230
+ `;
231
+ }
232
+ };
233
+ SynDialog.styles = [component_styles_default, dialog_styles_default, dialog_custom_styles_default];
234
+ SynDialog.dependencies = {
235
+ "syn-icon-button": SynIconButton
236
+ };
237
+ __decorateClass([
238
+ query(".dialog")
239
+ ], SynDialog.prototype, "dialog", 2);
240
+ __decorateClass([
241
+ query(".dialog__panel")
242
+ ], SynDialog.prototype, "panel", 2);
243
+ __decorateClass([
244
+ query(".dialog__overlay")
245
+ ], SynDialog.prototype, "overlay", 2);
246
+ __decorateClass([
247
+ property({ type: Boolean, reflect: true })
248
+ ], SynDialog.prototype, "open", 2);
249
+ __decorateClass([
250
+ property({ reflect: true })
251
+ ], SynDialog.prototype, "label", 2);
252
+ __decorateClass([
253
+ property({ attribute: "no-header", type: Boolean, reflect: true })
254
+ ], SynDialog.prototype, "noHeader", 2);
255
+ __decorateClass([
256
+ watch("open", { waitUntilFirstUpdate: true })
257
+ ], SynDialog.prototype, "handleOpenChange", 1);
258
+ setDefaultAnimation("dialog.show", {
259
+ keyframes: [
260
+ { opacity: 0, scale: 0.8 },
261
+ { opacity: 1, scale: 1 }
262
+ ],
263
+ options: { duration: 250, easing: "ease" }
264
+ });
265
+ setDefaultAnimation("dialog.hide", {
266
+ keyframes: [
267
+ { opacity: 1, scale: 1 },
268
+ { opacity: 0, scale: 0.8 }
269
+ ],
270
+ options: { duration: 250, easing: "ease" }
271
+ });
272
+ setDefaultAnimation("dialog.denyClose", {
273
+ keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],
274
+ options: { duration: 250 }
275
+ });
276
+ setDefaultAnimation("dialog.overlay.show", {
277
+ keyframes: [{ opacity: 0 }, { opacity: 1 }],
278
+ options: { duration: 250 }
279
+ });
280
+ setDefaultAnimation("dialog.overlay.hide", {
281
+ keyframes: [{ opacity: 1 }, { opacity: 0 }],
282
+ options: { duration: 250 }
283
+ });
284
+
285
+ export {
286
+ SynDialog
287
+ };
288
+ //# sourceMappingURL=chunk.C4ZZOCEG.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/dialog/dialog.component.ts"],
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\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';\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.closeWatcher?.destroy();\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 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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAG1B,SAAS,UAAU,aAAa;AA6DhC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAME,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,QAAQ;AACzE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAEvD,SAAO,QAAQ,IAAI,MAAM,IAAI;AAWe,gBAAO;AAMtB,iBAAQ;AAM+B,oBAAW;AAiD/E,SAAQ,wBAAwB,CAAC,UAAyB;AACxD,UAAI,MAAM,QAAQ,YAAY,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM;AAChE,cAAM,gBAAgB;AACtB,aAAK,aAAa,UAAU;AAAA,MAC9B;AAAA,IACF;AAAA;AAAA,EApDA,eAAe;AACb,SAAK,OAAO,SAAS,CAAC,KAAK;AAE3B,QAAI,KAAK,MAAM;AACb,WAAK,iBAA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C3C,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
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSpinner
3
- } from "./chunk.USAMRUVZ.js";
3
+ } from "./chunk.TAQALRJR.js";
4
4
  import {
5
5
  FormControlController,
6
6
  validValidityState
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.66WXVGAW.js";
17
17
  import {
18
18
  SynIcon
19
- } from "./chunk.IAVZUZCD.js";
19
+ } from "./chunk.VHPGEUHA.js";
20
20
  import {
21
21
  watch
22
22
  } from "./chunk.AVTU2BGE.js";
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  SynergyElement,
28
28
  component_styles_default
29
- } from "./chunk.W3AKVJZS.js";
29
+ } from "./chunk.R47GARB7.js";
30
30
  import {
31
31
  __decorateClass
32
32
  } from "./chunk.QNDC5KWA.js";
@@ -273,4 +273,4 @@ __decorateClass([
273
273
  export {
274
274
  SynButton
275
275
  };
276
- //# sourceMappingURL=chunk.JDG6T7O5.js.map
276
+ //# sourceMappingURL=chunk.C6ZQAYEH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynRadio
3
- } from "./chunk.WKNDIKFR.js";
3
+ } from "./chunk.FP5U5XKU.js";
4
4
 
5
5
  // src/components/radio/radio.ts
6
6
  var radio_default = SynRadio;
@@ -9,4 +9,4 @@ SynRadio.define("syn-radio");
9
9
  export {
10
10
  radio_default
11
11
  };
12
- //# sourceMappingURL=chunk.7J62WTZF.js.map
12
+ //# sourceMappingURL=chunk.CFFSAE7R.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenuItem
3
- } from "./chunk.2OABF2SJ.js";
3
+ } from "./chunk.FQMRWJFJ.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.DXWXCO6V.js.map
12
+ //# sourceMappingURL=chunk.CJSER4UW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynHeader
3
- } from "./chunk.KNVQPHZG.js";
3
+ } from "./chunk.PTRBWSST.js";
4
4
 
5
5
  // src/components/header/header.ts
6
6
  var header_default = SynHeader;
@@ -9,4 +9,4 @@ SynHeader.define("syn-header");
9
9
  export {
10
10
  header_default
11
11
  };
12
- //# sourceMappingURL=chunk.UTV5OFQL.js.map
12
+ //# sourceMappingURL=chunk.CWA6YXHF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynCheckbox
3
- } from "./chunk.6SEZAKT6.js";
3
+ } from "./chunk.HVRGKMS2.js";
4
4
 
5
5
  // src/components/checkbox/checkbox.ts
6
6
  var checkbox_default = SynCheckbox;
@@ -9,4 +9,4 @@ SynCheckbox.define("syn-checkbox");
9
9
  export {
10
10
  checkbox_default
11
11
  };
12
- //# sourceMappingURL=chunk.ZS6PNXWP.js.map
12
+ //# sourceMappingURL=chunk.DH7ZOX4L.js.map
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  SynergyElement,
25
25
  component_styles_default
26
- } from "./chunk.W3AKVJZS.js";
26
+ } from "./chunk.R47GARB7.js";
27
27
  import {
28
28
  __decorateClass
29
29
  } from "./chunk.QNDC5KWA.js";
@@ -247,4 +247,4 @@ __decorateClass([
247
247
  export {
248
248
  SynSwitch
249
249
  };
250
- //# sourceMappingURL=chunk.XQIMTGR7.js.map
250
+ //# sourceMappingURL=chunk.ER5OH7PE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynProgressRing
3
- } from "./chunk.H4IU2YYT.js";
3
+ } from "./chunk.WXINI2LT.js";
4
4
 
5
5
  // src/components/progress-ring/progress-ring.ts
6
6
  var progress_ring_default = SynProgressRing;
@@ -9,4 +9,4 @@ SynProgressRing.define("syn-progress-ring");
9
9
  export {
10
10
  progress_ring_default
11
11
  };
12
- //# sourceMappingURL=chunk.M3E6TOQK.js.map
12
+ //# sourceMappingURL=chunk.EV3VRCZO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDropdown
3
- } from "./chunk.CFRF4L43.js";
3
+ } from "./chunk.P3JNSYA3.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.QM7VXUFB.js.map
12
+ //# sourceMappingURL=chunk.F4PCHWCA.js.map
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk.PKO6FEOM.js";
7
7
  import {
8
8
  SynIcon
9
- } from "./chunk.IAVZUZCD.js";
9
+ } from "./chunk.VHPGEUHA.js";
10
10
  import {
11
11
  watch
12
12
  } from "./chunk.AVTU2BGE.js";
13
13
  import {
14
14
  SynergyElement,
15
15
  component_styles_default
16
- } from "./chunk.W3AKVJZS.js";
16
+ } from "./chunk.R47GARB7.js";
17
17
  import {
18
18
  __decorateClass
19
19
  } from "./chunk.QNDC5KWA.js";
@@ -112,4 +112,4 @@ __decorateClass([
112
112
  export {
113
113
  SynRadio
114
114
  };
115
- //# sourceMappingURL=chunk.WKNDIKFR.js.map
115
+ //# sourceMappingURL=chunk.FP5U5XKU.js.map
@@ -9,17 +9,17 @@ import {
9
9
  } from "./chunk.JDBDBGQP.js";
10
10
  import {
11
11
  SynPopup
12
- } from "./chunk.6T5ZLDVO.js";
12
+ } from "./chunk.QEWKO72D.js";
13
13
  import {
14
14
  SynSpinner
15
- } from "./chunk.USAMRUVZ.js";
15
+ } from "./chunk.TAQALRJR.js";
16
16
  import {
17
17
  HasSlotController,
18
18
  getTextContent
19
19
  } from "./chunk.66WXVGAW.js";
20
20
  import {
21
21
  SynIcon
22
- } from "./chunk.IAVZUZCD.js";
22
+ } from "./chunk.VHPGEUHA.js";
23
23
  import {
24
24
  watch
25
25
  } from "./chunk.AVTU2BGE.js";
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  SynergyElement,
31
31
  component_styles_default
32
- } from "./chunk.W3AKVJZS.js";
32
+ } from "./chunk.R47GARB7.js";
33
33
  import {
34
34
  __decorateClass
35
35
  } from "./chunk.QNDC5KWA.js";
@@ -191,4 +191,4 @@ __decorateClass([
191
191
  export {
192
192
  SynMenuItem
193
193
  };
194
- //# sourceMappingURL=chunk.2OABF2SJ.js.map
194
+ //# sourceMappingURL=chunk.FQMRWJFJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDrawer
3
- } from "./chunk.SV4C44N2.js";
3
+ } from "./chunk.NRNCS4W7.js";
4
4
 
5
5
  // src/components/drawer/drawer.ts
6
6
  var drawer_default = SynDrawer;
@@ -9,4 +9,4 @@ SynDrawer.define("syn-drawer");
9
9
  export {
10
10
  drawer_default
11
11
  };
12
- //# sourceMappingURL=chunk.V3VCKE3S.js.map
12
+ //# sourceMappingURL=chunk.FQZVX543.js.map