@synergy-design-system/components 2.77.0 → 3.0.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 (532) hide show
  1. package/README.md +1 -1
  2. package/code-quality/html-validate/scripts/synergy-element-rules.js +24 -6
  3. package/dist/chunks/{chunk.OA6PFRQ2.js → chunk.2ACTZBEC.js} +9 -9
  4. package/dist/chunks/{chunk.RNNT7FDG.js → chunk.2GP2EYG4.js} +6 -6
  5. package/dist/chunks/{chunk.X7TMTE2R.js → chunk.2RSO2DKG.js} +2 -2
  6. package/dist/chunks/{chunk.DH3ESODU.js → chunk.2VDKBFQ7.js} +2 -2
  7. package/dist/chunks/{chunk.DH3ESODU.js.map → chunk.2VDKBFQ7.js.map} +1 -1
  8. package/dist/chunks/{chunk.ZUQ225FP.js → chunk.34V3QOIQ.js} +2 -2
  9. package/dist/chunks/{chunk.5EMELQSJ.js → chunk.36BZPB3H.js} +2 -2
  10. package/dist/chunks/{chunk.ANR7UJCM.js → chunk.3EJU447K.js} +3 -3
  11. package/dist/chunks/{chunk.PATEVJCK.js → chunk.3EQF2FRQ.js} +9 -9
  12. package/dist/chunks/{chunk.BNZ7BFBC.js → chunk.3FT4KLCP.js} +15 -16
  13. package/dist/chunks/chunk.3FT4KLCP.js.map +7 -0
  14. package/dist/chunks/{chunk.Y5IKF6ZC.js → chunk.3RR4RIR7.js} +7 -8
  15. package/dist/chunks/chunk.3RR4RIR7.js.map +7 -0
  16. package/dist/chunks/{chunk.M7U5QI74.js → chunk.3T6ULO23.js} +2 -2
  17. package/dist/chunks/{chunk.M7U5QI74.js.map → chunk.3T6ULO23.js.map} +1 -1
  18. package/dist/chunks/{chunk.A7LOAARY.js → chunk.3WVPUEAN.js} +3 -3
  19. package/dist/chunks/{chunk.A7LOAARY.js.map → chunk.3WVPUEAN.js.map} +1 -1
  20. package/dist/chunks/{chunk.UUK3IJ34.js → chunk.42F33KBM.js} +5 -5
  21. package/dist/chunks/{chunk.TZ3YUOLF.js → chunk.4ADVK4N5.js} +2 -2
  22. package/dist/chunks/{chunk.MAMYRDUG.js → chunk.4FRKK5XY.js} +4 -4
  23. package/dist/chunks/{chunk.56IT6U4Z.js → chunk.4I2C7KCE.js} +2 -2
  24. package/dist/chunks/{chunk.4ZZ27EU5.js → chunk.4T2NDUOQ.js} +2 -2
  25. package/dist/chunks/{chunk.2SOIXTV6.js → chunk.4URTG3MF.js} +4 -4
  26. package/dist/chunks/{chunk.M7H53KXO.js → chunk.4ZEHQOJ3.js} +2 -2
  27. package/dist/chunks/{chunk.WJXZPRL7.js → chunk.56BJYBST.js} +2 -2
  28. package/dist/chunks/{chunk.ENBJUBPD.js → chunk.5F5Y2RD6.js} +14 -19
  29. package/dist/chunks/chunk.5F5Y2RD6.js.map +7 -0
  30. package/dist/chunks/{chunk.EK4TK5MY.js → chunk.5OXFZJYX.js} +8 -8
  31. package/dist/chunks/chunk.5OXFZJYX.js.map +7 -0
  32. package/dist/chunks/{chunk.MGWPQRJ7.js → chunk.5QGW4QZT.js} +6 -10
  33. package/dist/chunks/chunk.5QGW4QZT.js.map +7 -0
  34. package/dist/chunks/{chunk.XPU5KLE5.js → chunk.5T3K7UXO.js} +2 -2
  35. package/dist/chunks/{chunk.MZRNJOUV.js → chunk.66HKI7Q7.js} +1 -1
  36. package/dist/chunks/chunk.66HKI7Q7.js.map +7 -0
  37. package/dist/chunks/{chunk.LYU2L254.js → chunk.67NOFASU.js} +2 -2
  38. package/dist/chunks/{chunk.LLOONJ33.js → chunk.6B7GMPMK.js} +16 -16
  39. package/dist/chunks/{chunk.YEANAJGY.js → chunk.6EK4W7PI.js} +13 -18
  40. package/dist/chunks/chunk.6EK4W7PI.js.map +7 -0
  41. package/dist/chunks/{chunk.G6ITZTTW.js → chunk.6EKUFYET.js} +2 -2
  42. package/dist/chunks/{chunk.SN4QLG4C.js → chunk.6KTVNSPY.js} +11 -11
  43. package/dist/chunks/{chunk.K2O55TNU.js → chunk.6P2XCD2Q.js} +4 -4
  44. package/dist/chunks/{chunk.K2O55TNU.js.map → chunk.6P2XCD2Q.js.map} +1 -1
  45. package/dist/chunks/{chunk.6E2MMRAE.js → chunk.6VA5V372.js} +2 -2
  46. package/dist/chunks/{chunk.NJP3ZX4E.js → chunk.7SIMUMVH.js} +4 -4
  47. package/dist/chunks/{chunk.7JGKUB4A.js → chunk.ADSEQZBF.js} +2 -2
  48. package/dist/chunks/{chunk.H6KRLHYP.js → chunk.AF4RYZHB.js} +2 -2
  49. package/dist/chunks/{chunk.L5NLWYJZ.js → chunk.ATT3RT4A.js} +10 -15
  50. package/dist/chunks/chunk.ATT3RT4A.js.map +7 -0
  51. package/dist/chunks/{chunk.5CNWQEKR.js → chunk.B3UAPU32.js} +10 -10
  52. package/dist/chunks/{chunk.ATSI7CIG.js → chunk.B56PMMC4.js} +8 -8
  53. package/dist/chunks/{chunk.S74CFZ4Z.js → chunk.BL5JW7YS.js} +14 -14
  54. package/dist/chunks/{chunk.S74CFZ4Z.js.map → chunk.BL5JW7YS.js.map} +1 -1
  55. package/dist/chunks/{chunk.6KN2JP2V.js → chunk.BNHQTT5B.js} +2 -2
  56. package/dist/chunks/{chunk.77CVXMWD.js → chunk.BVV2XKW3.js} +2 -2
  57. package/dist/chunks/chunk.BVV2XKW3.js.map +7 -0
  58. package/dist/chunks/{chunk.5C3IFF3A.js → chunk.CDOWFAH2.js} +7 -7
  59. package/dist/chunks/chunk.CDOWFAH2.js.map +7 -0
  60. package/dist/chunks/{chunk.GPST4OZW.js → chunk.D5GEYHUG.js} +3 -3
  61. package/dist/chunks/{chunk.6YNHGMLP.js → chunk.DHT3ZN7B.js} +11 -11
  62. package/dist/chunks/{chunk.G76BKD7B.js → chunk.DQKV5FSY.js} +2 -2
  63. package/dist/chunks/{chunk.W7AA6XGD.js → chunk.DRLFKWVC.js} +2 -2
  64. package/dist/chunks/{chunk.7KBMO52G.js → chunk.DXVTZKXX.js} +2 -2
  65. package/dist/chunks/{chunk.UCLYCASW.js → chunk.EHZBQTCT.js} +2 -2
  66. package/dist/chunks/{chunk.UCLYCASW.js.map → chunk.EHZBQTCT.js.map} +1 -1
  67. package/dist/chunks/{chunk.KTIGGH3P.js → chunk.EIJX4T2G.js} +9 -9
  68. package/dist/chunks/{chunk.5JCY4WWN.js → chunk.EMTWFPA4.js} +2 -2
  69. package/dist/chunks/{chunk.YOAPSA7L.js → chunk.F4TDCDGD.js} +4 -4
  70. package/dist/chunks/{chunk.LBUMVFCE.js → chunk.FHTQSNCX.js} +3 -3
  71. package/dist/chunks/chunk.FHTQSNCX.js.map +7 -0
  72. package/dist/chunks/{chunk.LVMHT5WF.js → chunk.FVYPYWJH.js} +7 -7
  73. package/dist/chunks/{chunk.5EC6B57G.js → chunk.GCTLPTMT.js} +3 -3
  74. package/dist/chunks/{chunk.5EC6B57G.js.map → chunk.GCTLPTMT.js.map} +1 -1
  75. package/dist/chunks/{chunk.2DGMS4FV.js → chunk.GFX23JLA.js} +2 -2
  76. package/dist/chunks/chunk.GFX23JLA.js.map +7 -0
  77. package/dist/chunks/{chunk.RCBSMXQH.js → chunk.GJIDYO3Z.js} +7 -7
  78. package/dist/chunks/{chunk.RCBSMXQH.js.map → chunk.GJIDYO3Z.js.map} +1 -1
  79. package/dist/chunks/{chunk.EO4UTDA2.js → chunk.HSQZ3ZWE.js} +12 -28
  80. package/dist/chunks/chunk.HSQZ3ZWE.js.map +7 -0
  81. package/dist/chunks/{chunk.2NIFD3YE.js → chunk.HU237XM2.js} +2 -2
  82. package/dist/chunks/{chunk.2NIFD3YE.js.map → chunk.HU237XM2.js.map} +1 -1
  83. package/dist/chunks/{chunk.7MJPWJQG.js → chunk.HW62YVCL.js} +4 -4
  84. package/dist/chunks/{chunk.6CTU4ASM.js → chunk.HXLRLIDZ.js} +7 -7
  85. package/dist/chunks/{chunk.CYF26JA4.js → chunk.I5R3PXG7.js} +2 -2
  86. package/dist/chunks/{chunk.HVVPX2VA.js → chunk.IAS6MLT6.js} +1 -1
  87. package/dist/chunks/chunk.IAS6MLT6.js.map +7 -0
  88. package/dist/chunks/{chunk.BXXVSZMC.js → chunk.IM54DI3K.js} +11 -10
  89. package/dist/chunks/chunk.IM54DI3K.js.map +7 -0
  90. package/dist/chunks/{chunk.LEORATQ3.js → chunk.IMZSPXJV.js} +2 -2
  91. package/dist/chunks/{chunk.M6JCEVSU.js → chunk.IOFVUQIY.js} +2 -2
  92. package/dist/chunks/{chunk.KFH4EMOH.js → chunk.IYB26JEV.js} +2 -2
  93. package/dist/chunks/{chunk.XWNOP753.js → chunk.IZRTF5EM.js} +8 -8
  94. package/dist/chunks/chunk.IZRTF5EM.js.map +7 -0
  95. package/dist/chunks/{chunk.BVZQ6QSY.js → chunk.JE5Y2YD7.js} +2 -2
  96. package/dist/chunks/{chunk.3THJTCRO.js → chunk.JG7YXWHG.js} +3 -3
  97. package/dist/chunks/{chunk.3THJTCRO.js.map → chunk.JG7YXWHG.js.map} +1 -1
  98. package/dist/chunks/{chunk.AYAX7BG7.js → chunk.JKSFECFA.js} +2 -2
  99. package/dist/chunks/{chunk.VI5FLXBL.js → chunk.JQ4NCOOB.js} +7 -7
  100. package/dist/chunks/{chunk.H4OK5O44.js → chunk.JX6C3ADT.js} +8 -8
  101. package/dist/chunks/{chunk.YDIPI5TK.js → chunk.JYLOZXGC.js} +13 -13
  102. package/dist/chunks/{chunk.FCYQT7CQ.js → chunk.K5MZVORR.js} +4 -4
  103. package/dist/chunks/chunk.K5MZVORR.js.map +7 -0
  104. package/dist/chunks/{chunk.RJPPRJP3.js → chunk.K5VB7VKA.js} +6 -6
  105. package/dist/chunks/{chunk.LHFBIW7M.js → chunk.KLUICBMV.js} +7 -5
  106. package/dist/chunks/chunk.KLUICBMV.js.map +7 -0
  107. package/dist/chunks/{chunk.RFDNFBHM.js → chunk.KPBZSLEA.js} +2 -2
  108. package/dist/chunks/{chunk.HYFCK7MM.js → chunk.KSWDM4HW.js} +3 -3
  109. package/dist/chunks/{chunk.NFXT5LNY.js → chunk.KVS7GBFQ.js} +2 -2
  110. package/dist/chunks/{chunk.V4HPWQE7.js → chunk.KW5TWA5Y.js} +1 -2
  111. package/dist/chunks/{chunk.V4HPWQE7.js.map → chunk.KW5TWA5Y.js.map} +2 -2
  112. package/dist/chunks/{chunk.XU73JYJI.js → chunk.LBN3HL2T.js} +11 -11
  113. package/dist/chunks/{chunk.7T7CWOUP.js → chunk.LJGUOWPM.js} +10 -15
  114. package/dist/chunks/chunk.LJGUOWPM.js.map +7 -0
  115. package/dist/chunks/{chunk.PCRVKQ5F.js → chunk.LVYJDZMX.js} +2 -2
  116. package/dist/chunks/{chunk.C4K3LJRD.js → chunk.M72HMQL6.js} +2 -2
  117. package/dist/chunks/{chunk.D4723XMI.js → chunk.MJ4Q6YEU.js} +2 -2
  118. package/dist/chunks/{chunk.PIMA7UA3.js → chunk.MM3NO6GS.js} +3 -3
  119. package/dist/chunks/{chunk.Z4XV3SMG.js → chunk.MO2GTRUM.js} +2 -2
  120. package/dist/chunks/{chunk.YBZFYBWC.js → chunk.N6C27EXQ.js} +5 -5
  121. package/dist/chunks/chunk.N6C27EXQ.js.map +7 -0
  122. package/dist/chunks/{chunk.X72WKEXZ.js → chunk.N7BCC4V5.js} +10 -10
  123. package/dist/chunks/{chunk.RRUXOF5F.js → chunk.N7LV5KRH.js} +8 -8
  124. package/dist/chunks/{chunk.2QT5YZOB.js → chunk.OBERL73O.js} +3 -3
  125. package/dist/chunks/{chunk.6HQPVW5L.js → chunk.OHDB73E6.js} +2 -2
  126. package/dist/chunks/{chunk.VJLU3JPP.js → chunk.OIB4NIRJ.js} +2 -2
  127. package/dist/chunks/{chunk.E3Z62YYT.js → chunk.OQUVO5QW.js} +9 -9
  128. package/dist/chunks/chunk.OQUVO5QW.js.map +7 -0
  129. package/dist/chunks/{chunk.3BZME6BG.js → chunk.P3JEES5B.js} +7 -8
  130. package/dist/chunks/{chunk.3BZME6BG.js.map → chunk.P3JEES5B.js.map} +2 -2
  131. package/dist/chunks/{chunk.2UFVMHUX.js → chunk.PGGH5VGL.js} +3 -3
  132. package/dist/chunks/{chunk.OB7RPCXI.js → chunk.PR7SSUOT.js} +2 -2
  133. package/dist/chunks/{chunk.GPOLJHN4.js → chunk.PWODN6WT.js} +2 -2
  134. package/dist/chunks/{chunk.6RYMIJZZ.js → chunk.Q3SJASPT.js} +2 -2
  135. package/dist/chunks/{chunk.KGSP7LN2.js → chunk.QACXXBE3.js} +8 -8
  136. package/dist/chunks/{chunk.RB2JR2ND.js → chunk.QDG5AJZX.js} +2 -2
  137. package/dist/chunks/{chunk.6RN6OQWB.js → chunk.QT47J2O6.js} +2 -2
  138. package/dist/chunks/{chunk.KBJQJUED.js → chunk.QXZFSE4T.js} +2 -2
  139. package/dist/chunks/{chunk.WGL2SPVZ.js → chunk.R4FCX5PU.js} +2 -2
  140. package/dist/chunks/{chunk.52VKGWG2.js → chunk.R5WFWL7W.js} +2 -2
  141. package/dist/chunks/{chunk.TEJQXPAY.js → chunk.RBOU3KVS.js} +6 -6
  142. package/dist/chunks/{chunk.734SILH2.js → chunk.RV5JERXK.js} +11 -11
  143. package/dist/chunks/{chunk.CCEFC33U.js → chunk.SA423NRC.js} +12 -11
  144. package/dist/chunks/chunk.SA423NRC.js.map +7 -0
  145. package/dist/chunks/{chunk.EWKVHJPJ.js → chunk.SEYI7UTA.js} +25 -25
  146. package/dist/chunks/chunk.SEYI7UTA.js.map +7 -0
  147. package/dist/chunks/{chunk.T7PPSROA.js → chunk.SLDFB2O3.js} +17 -17
  148. package/dist/chunks/chunk.SLDFB2O3.js.map +7 -0
  149. package/dist/chunks/{chunk.WHX74UIY.js → chunk.SLKJ2OJN.js} +7 -7
  150. package/dist/chunks/{chunk.IIHU63KV.js → chunk.SUH6DGJ5.js} +5 -5
  151. package/dist/chunks/{chunk.ZCUURSJU.js → chunk.TSWB7UFK.js} +21 -21
  152. package/dist/chunks/chunk.TSWB7UFK.js.map +7 -0
  153. package/dist/chunks/{chunk.HP2LEQRU.js → chunk.U5757NSE.js} +2 -2
  154. package/dist/chunks/{chunk.6DYTXZJA.js → chunk.U6VNE4JX.js} +2 -2
  155. package/dist/chunks/{chunk.OBI62PAK.js → chunk.UAUY6RVN.js} +2 -2
  156. package/dist/chunks/{chunk.LQX6W62K.js → chunk.UBGDTOZZ.js} +2 -2
  157. package/dist/chunks/{chunk.OAAB4YO4.js → chunk.UNYO3GI7.js} +12 -12
  158. package/dist/chunks/chunk.UNYO3GI7.js.map +7 -0
  159. package/dist/chunks/{chunk.2LRU3I3N.js → chunk.UPDHOWDW.js} +2 -2
  160. package/dist/chunks/{chunk.MTN5NM4A.js → chunk.UT3DWYFM.js} +2 -2
  161. package/dist/chunks/{chunk.WH5IZKFX.js → chunk.VBPHUZ5N.js} +10 -10
  162. package/dist/chunks/{chunk.4A6JD5B2.js → chunk.VBS3JEIP.js} +1 -1
  163. package/dist/chunks/chunk.VBS3JEIP.js.map +7 -0
  164. package/dist/chunks/{chunk.XIRK7QT7.js → chunk.VV3WAINT.js} +2 -2
  165. package/dist/chunks/{chunk.4RFP5BXR.js → chunk.VYQ53GHN.js} +9 -9
  166. package/dist/chunks/{chunk.DSV4ZUJU.js → chunk.WPVUSCH3.js} +2 -2
  167. package/dist/chunks/{chunk.4WQZFNSE.js → chunk.WQMTAEYE.js} +3 -3
  168. package/dist/chunks/chunk.WQMTAEYE.js.map +7 -0
  169. package/dist/chunks/{chunk.QLIYRJIM.js → chunk.X57JLQDS.js} +2 -2
  170. package/dist/chunks/{chunk.GCLDJQSX.js → chunk.X6HKBVIE.js} +2 -2
  171. package/dist/chunks/{chunk.NREI75V5.js → chunk.XC4GHHH2.js} +4 -4
  172. package/dist/chunks/{chunk.NREI75V5.js.map → chunk.XC4GHHH2.js.map} +1 -1
  173. package/dist/chunks/{chunk.QLG3DDKI.js → chunk.XDOZEDCW.js} +2 -2
  174. package/dist/chunks/{chunk.QYFODTOR.js → chunk.XKT2M3XA.js} +2 -2
  175. package/dist/chunks/{chunk.IDRBXAJB.js → chunk.XL2GZSHM.js} +4 -4
  176. package/dist/chunks/{chunk.HLSMCMJE.js → chunk.YBITSWNW.js} +2 -2
  177. package/dist/chunks/{chunk.BA4QMNTH.js → chunk.YIYXW5NV.js} +2 -2
  178. package/dist/chunks/{chunk.SAV6MIQK.js → chunk.YOJL35VB.js} +8 -8
  179. package/dist/chunks/chunk.YOJL35VB.js.map +7 -0
  180. package/dist/chunks/{chunk.SJX5NWKN.js → chunk.Z3SZOYBJ.js} +2 -2
  181. package/dist/chunks/{chunk.5MVDJQDM.js → chunk.ZNJG4EY4.js} +2 -2
  182. package/dist/chunks/{chunk.F3KGIXQV.js → chunk.ZPL7FJ2H.js} +10 -9
  183. package/dist/chunks/{chunk.F3KGIXQV.js.map → chunk.ZPL7FJ2H.js.map} +2 -2
  184. package/dist/chunks/{chunk.QNWL4GZB.js → chunk.ZR7J6ZEM.js} +2 -2
  185. package/dist/chunks/{chunk.C4JMEKUF.js → chunk.ZVOOP3PI.js} +12 -8
  186. package/dist/chunks/chunk.ZVOOP3PI.js.map +7 -0
  187. package/dist/components/accordion/accordion.component.js +8 -8
  188. package/dist/components/accordion/accordion.js +9 -9
  189. package/dist/components/accordion/accordion.styles.js +1 -1
  190. package/dist/components/alert/alert.component.js +20 -20
  191. package/dist/components/alert/alert.custom.styles.js +2 -2
  192. package/dist/components/alert/alert.js +21 -21
  193. package/dist/components/alert/alert.styles.js +1 -1
  194. package/dist/components/badge/badge.component.js +9 -9
  195. package/dist/components/badge/badge.custom.styles.js +2 -2
  196. package/dist/components/badge/badge.js +10 -10
  197. package/dist/components/badge/badge.styles.js +1 -1
  198. package/dist/components/breadcrumb/breadcrumb.component.js +12 -12
  199. package/dist/components/breadcrumb/breadcrumb.custom.styles.js +1 -1
  200. package/dist/components/breadcrumb/breadcrumb.js +13 -13
  201. package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
  202. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +5 -5
  203. package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.js +2 -2
  204. package/dist/components/breadcrumb-item/breadcrumb-item.js +6 -6
  205. package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
  206. package/dist/components/button/button.component.js +18 -18
  207. package/dist/components/button/button.custom.styles.js +2 -2
  208. package/dist/components/button/button.js +19 -19
  209. package/dist/components/button/button.styles.js +1 -1
  210. package/dist/components/button-group/button-group.component.js +3 -3
  211. package/dist/components/button-group/button-group.js +4 -4
  212. package/dist/components/button-group/button-group.styles.js +1 -1
  213. package/dist/components/card/card.component.js +3 -3
  214. package/dist/components/card/card.custom.styles.js +1 -1
  215. package/dist/components/card/card.js +4 -4
  216. package/dist/components/card/card.styles.js +1 -1
  217. package/dist/components/checkbox/checkbox.component.js +15 -15
  218. package/dist/components/checkbox/checkbox.custom.styles.js +2 -2
  219. package/dist/components/checkbox/checkbox.js +16 -16
  220. package/dist/components/checkbox/checkbox.styles.js +1 -1
  221. package/dist/components/combobox/combobox.component.d.ts +0 -7
  222. package/dist/components/combobox/combobox.component.js +21 -21
  223. package/dist/components/combobox/combobox.custom.styles.js +1 -1
  224. package/dist/components/combobox/combobox.js +22 -22
  225. package/dist/components/combobox/combobox.styles.js +1 -1
  226. package/dist/components/combobox/option-renderer.js +2 -2
  227. package/dist/components/combobox/utils.js +1 -1
  228. package/dist/components/details/details.component.js +17 -17
  229. package/dist/components/details/details.custom.styles.js +2 -2
  230. package/dist/components/details/details.js +18 -18
  231. package/dist/components/details/details.styles.js +1 -1
  232. package/dist/components/dialog/dialog.component.js +21 -21
  233. package/dist/components/dialog/dialog.custom.styles.js +2 -2
  234. package/dist/components/dialog/dialog.js +22 -22
  235. package/dist/components/dialog/dialog.styles.js +1 -1
  236. package/dist/components/divider/divider.component.js +4 -4
  237. package/dist/components/divider/divider.custom.styles.js +1 -1
  238. package/dist/components/divider/divider.js +5 -5
  239. package/dist/components/divider/divider.styles.js +1 -1
  240. package/dist/components/drawer/drawer.component.js +20 -20
  241. package/dist/components/drawer/drawer.custom.styles.js +1 -1
  242. package/dist/components/drawer/drawer.js +21 -21
  243. package/dist/components/drawer/drawer.styles.js +1 -1
  244. package/dist/components/dropdown/dropdown.component.d.ts +0 -6
  245. package/dist/components/dropdown/dropdown.component.js +8 -8
  246. package/dist/components/dropdown/dropdown.custom.styles.js +1 -1
  247. package/dist/components/dropdown/dropdown.js +9 -9
  248. package/dist/components/dropdown/dropdown.styles.js +1 -1
  249. package/dist/components/file/file.component.js +22 -22
  250. package/dist/components/file/file.js +23 -23
  251. package/dist/components/file/file.styles.js +2 -2
  252. package/dist/components/header/header.component.js +12 -12
  253. package/dist/components/header/header.js +13 -13
  254. package/dist/components/header/header.styles.js +2 -2
  255. package/dist/components/icon/icon.component.js +8 -8
  256. package/dist/components/icon/icon.custom.styles.js +1 -1
  257. package/dist/components/icon/icon.js +9 -9
  258. package/dist/components/icon/icon.styles.js +1 -1
  259. package/dist/components/icon/library.default.js +1 -1
  260. package/dist/components/icon/library.js +5 -5
  261. package/dist/components/icon/library.migration.d.ts +5 -0
  262. package/dist/components/icon/library.migration.js +6 -6
  263. package/dist/components/icon/library.system.js +4 -4
  264. package/dist/components/icon/sick2018-system-icons.d.ts +3 -0
  265. package/dist/components/icon/sick2018-system-icons.js +2 -2
  266. package/dist/components/icon/sick2025-system-icons.js +2 -2
  267. package/dist/components/icon-button/icon-button.component.js +14 -14
  268. package/dist/components/icon-button/icon-button.custom.styles.js +2 -2
  269. package/dist/components/icon-button/icon-button.js +15 -15
  270. package/dist/components/icon-button/icon-button.styles.js +1 -1
  271. package/dist/components/input/formatter.js +2 -2
  272. package/dist/components/input/input.component.d.ts +1 -2
  273. package/dist/components/input/input.component.js +18 -18
  274. package/dist/components/input/input.custom.styles.js +2 -2
  275. package/dist/components/input/input.js +19 -19
  276. package/dist/components/input/input.styles.js +1 -1
  277. package/dist/components/input/strategies.js +2 -2
  278. package/dist/components/menu/menu.component.js +3 -3
  279. package/dist/components/menu/menu.custom.styles.js +1 -1
  280. package/dist/components/menu/menu.js +4 -4
  281. package/dist/components/menu/menu.styles.js +1 -1
  282. package/dist/components/menu-item/menu-item.component.js +15 -15
  283. package/dist/components/menu-item/menu-item.custom.styles.js +2 -2
  284. package/dist/components/menu-item/menu-item.js +16 -16
  285. package/dist/components/menu-item/menu-item.styles.js +1 -1
  286. package/dist/components/menu-item/submenu-controller.js +2 -2
  287. package/dist/components/menu-label/menu-label.component.js +5 -5
  288. package/dist/components/menu-label/menu-label.custom.styles.js +1 -1
  289. package/dist/components/menu-label/menu-label.js +6 -6
  290. package/dist/components/menu-label/menu-label.styles.js +1 -1
  291. package/dist/components/nav-item/nav-item.component.js +11 -11
  292. package/dist/components/nav-item/nav-item.js +12 -12
  293. package/dist/components/nav-item/nav-item.styles.js +2 -2
  294. package/dist/components/optgroup/optgroup.component.js +6 -6
  295. package/dist/components/optgroup/optgroup.js +7 -7
  296. package/dist/components/optgroup/optgroup.styles.js +2 -2
  297. package/dist/components/option/option-size.styles.js +1 -1
  298. package/dist/components/option/option.component.js +11 -11
  299. package/dist/components/option/option.custom.styles.js +2 -2
  300. package/dist/components/option/option.js +12 -12
  301. package/dist/components/option/option.styles.js +1 -1
  302. package/dist/components/option/utility.js +1 -1
  303. package/dist/components/popup/popup.component.d.ts +0 -6
  304. package/dist/components/popup/popup.component.js +3 -3
  305. package/dist/components/popup/popup.custom.styles.js +1 -1
  306. package/dist/components/popup/popup.js +4 -4
  307. package/dist/components/popup/popup.styles.js +1 -1
  308. package/dist/components/prio-nav/prio-nav.component.js +19 -19
  309. package/dist/components/prio-nav/prio-nav.js +20 -20
  310. package/dist/components/prio-nav/prio-nav.styles.js +1 -1
  311. package/dist/components/prio-nav/utils.js +1 -1
  312. package/dist/components/progress-bar/progress-bar.component.js +4 -4
  313. package/dist/components/progress-bar/progress-bar.custom.styles.js +2 -2
  314. package/dist/components/progress-bar/progress-bar.js +5 -5
  315. package/dist/components/progress-bar/progress-bar.styles.js +1 -1
  316. package/dist/components/progress-ring/progress-ring.component.js +4 -4
  317. package/dist/components/progress-ring/progress-ring.custom.styles.js +2 -2
  318. package/dist/components/progress-ring/progress-ring.js +5 -5
  319. package/dist/components/progress-ring/progress-ring.styles.js +1 -1
  320. package/dist/components/radio/radio.component.js +14 -14
  321. package/dist/components/radio/radio.custom.styles.js +2 -2
  322. package/dist/components/radio/radio.js +15 -15
  323. package/dist/components/radio/radio.styles.js +1 -1
  324. package/dist/components/radio-button/radio-button.component.js +8 -8
  325. package/dist/components/radio-button/radio-button.js +9 -9
  326. package/dist/components/radio-button/radio-button.styles.js +1 -1
  327. package/dist/components/radio-group/radio-group.component.js +10 -10
  328. package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
  329. package/dist/components/radio-group/radio-group.js +11 -11
  330. package/dist/components/radio-group/radio-group.styles.js +1 -1
  331. package/dist/components/range/range.component.js +14 -14
  332. package/dist/components/range/range.js +15 -15
  333. package/dist/components/range/range.styles.js +2 -2
  334. package/dist/components/range/utility.js +1 -1
  335. package/dist/components/range-tick/range-tick.component.js +4 -4
  336. package/dist/components/range-tick/range-tick.js +5 -5
  337. package/dist/components/range-tick/range-tick.styles.js +2 -2
  338. package/dist/components/resize-observer/resize-observer.component.js +4 -4
  339. package/dist/components/resize-observer/resize-observer.styles.js +1 -1
  340. package/dist/components/select/select.component.d.ts +0 -6
  341. package/dist/components/select/select.component.js +22 -22
  342. package/dist/components/select/select.custom.styles.js +1 -1
  343. package/dist/components/select/select.js +23 -23
  344. package/dist/components/select/select.styles.js +1 -1
  345. package/dist/components/select/utility.js +1 -1
  346. package/dist/components/side-nav/side-nav.component.d.ts +1 -14
  347. package/dist/components/side-nav/side-nav.component.js +24 -24
  348. package/dist/components/side-nav/side-nav.js +25 -25
  349. package/dist/components/side-nav/side-nav.styles.js +1 -1
  350. package/dist/components/spinner/spinner.component.js +4 -4
  351. package/dist/components/spinner/spinner.custom.styles.js +2 -2
  352. package/dist/components/spinner/spinner.js +5 -5
  353. package/dist/components/spinner/spinner.styles.js +1 -1
  354. package/dist/components/switch/switch.component.js +10 -10
  355. package/dist/components/switch/switch.custom.styles.js +2 -2
  356. package/dist/components/switch/switch.js +11 -11
  357. package/dist/components/switch/switch.styles.js +1 -1
  358. package/dist/components/tab/tab.component.js +17 -17
  359. package/dist/components/tab/tab.custom.styles.js +2 -2
  360. package/dist/components/tab/tab.js +18 -18
  361. package/dist/components/tab/tab.styles.js +1 -1
  362. package/dist/components/tab-group/tab-group.component.js +18 -18
  363. package/dist/components/tab-group/tab-group.custom.styles.js +2 -2
  364. package/dist/components/tab-group/tab-group.js +19 -19
  365. package/dist/components/tab-group/tab-group.styles.js +1 -1
  366. package/dist/components/tab-panel/tab-panel.component.js +4 -4
  367. package/dist/components/tab-panel/tab-panel.custom.styles.js +1 -1
  368. package/dist/components/tab-panel/tab-panel.js +5 -5
  369. package/dist/components/tab-panel/tab-panel.styles.js +1 -1
  370. package/dist/components/tag/tag.component.js +17 -17
  371. package/dist/components/tag/tag.custom.styles.js +2 -2
  372. package/dist/components/tag/tag.js +18 -18
  373. package/dist/components/tag/tag.styles.js +1 -1
  374. package/dist/components/textarea/textarea.component.js +9 -9
  375. package/dist/components/textarea/textarea.custom.styles.js +1 -1
  376. package/dist/components/textarea/textarea.js +10 -10
  377. package/dist/components/textarea/textarea.styles.js +1 -1
  378. package/dist/components/tooltip/tooltip.component.d.ts +0 -7
  379. package/dist/components/tooltip/tooltip.component.js +7 -7
  380. package/dist/components/tooltip/tooltip.custom.styles.js +1 -1
  381. package/dist/components/tooltip/tooltip.js +8 -8
  382. package/dist/components/tooltip/tooltip.styles.js +1 -1
  383. package/dist/components/validate/utility.js +3 -3
  384. package/dist/components/validate/validate.component.js +22 -22
  385. package/dist/components/validate/validate.js +23 -23
  386. package/dist/components/validate/validate.styles.js +1 -1
  387. package/dist/custom-elements.json +80 -208
  388. package/dist/styles/index.css +1 -1
  389. package/dist/synergy-autoloader.js +1 -1
  390. package/dist/synergy.js +152 -150
  391. package/dist/translations/de.js +1 -1
  392. package/dist/translations/en.js +1 -1
  393. package/dist/utilities/animation-registry.js +2 -2
  394. package/dist/utilities/base-path.js +1 -1
  395. package/dist/utilities/defaultSettings/base.js +3 -3
  396. package/dist/utilities/defaultSettings/decorator.js +5 -5
  397. package/dist/utilities/defaultSettings/functions.d.ts +11 -4
  398. package/dist/utilities/defaultSettings/functions.js +6 -4
  399. package/dist/utilities/defaultSettings/index.d.ts +1 -1
  400. package/dist/utilities/defaultSettings/index.js +7 -5
  401. package/dist/utilities/form.js +3 -3
  402. package/dist/utilities/icon-library.js +5 -5
  403. package/dist/utilities/localize.js +1 -1
  404. package/dist/vscode.html-custom-data.json +23 -53
  405. package/package.json +29 -29
  406. package/code-quality/html-validate/.eslintrc.json +0 -3
  407. package/dist/chunks/chunk.2DGMS4FV.js.map +0 -7
  408. package/dist/chunks/chunk.4A6JD5B2.js.map +0 -7
  409. package/dist/chunks/chunk.4WQZFNSE.js.map +0 -7
  410. package/dist/chunks/chunk.5C3IFF3A.js.map +0 -7
  411. package/dist/chunks/chunk.77CVXMWD.js.map +0 -7
  412. package/dist/chunks/chunk.7T7CWOUP.js.map +0 -7
  413. package/dist/chunks/chunk.BNZ7BFBC.js.map +0 -7
  414. package/dist/chunks/chunk.BXXVSZMC.js.map +0 -7
  415. package/dist/chunks/chunk.C4JMEKUF.js.map +0 -7
  416. package/dist/chunks/chunk.CCEFC33U.js.map +0 -7
  417. package/dist/chunks/chunk.E3Z62YYT.js.map +0 -7
  418. package/dist/chunks/chunk.EK4TK5MY.js.map +0 -7
  419. package/dist/chunks/chunk.ENBJUBPD.js.map +0 -7
  420. package/dist/chunks/chunk.EO4UTDA2.js.map +0 -7
  421. package/dist/chunks/chunk.EWKVHJPJ.js.map +0 -7
  422. package/dist/chunks/chunk.FCYQT7CQ.js.map +0 -7
  423. package/dist/chunks/chunk.HVVPX2VA.js.map +0 -7
  424. package/dist/chunks/chunk.L5NLWYJZ.js.map +0 -7
  425. package/dist/chunks/chunk.LBUMVFCE.js.map +0 -7
  426. package/dist/chunks/chunk.LHFBIW7M.js.map +0 -7
  427. package/dist/chunks/chunk.MGWPQRJ7.js.map +0 -7
  428. package/dist/chunks/chunk.MZRNJOUV.js.map +0 -7
  429. package/dist/chunks/chunk.OAAB4YO4.js.map +0 -7
  430. package/dist/chunks/chunk.SAV6MIQK.js.map +0 -7
  431. package/dist/chunks/chunk.T7PPSROA.js.map +0 -7
  432. package/dist/chunks/chunk.XWNOP753.js.map +0 -7
  433. package/dist/chunks/chunk.Y5IKF6ZC.js.map +0 -7
  434. package/dist/chunks/chunk.YBZFYBWC.js.map +0 -7
  435. package/dist/chunks/chunk.YEANAJGY.js.map +0 -7
  436. package/dist/chunks/chunk.ZCUURSJU.js.map +0 -7
  437. /package/dist/chunks/{chunk.OA6PFRQ2.js.map → chunk.2ACTZBEC.js.map} +0 -0
  438. /package/dist/chunks/{chunk.RNNT7FDG.js.map → chunk.2GP2EYG4.js.map} +0 -0
  439. /package/dist/chunks/{chunk.X7TMTE2R.js.map → chunk.2RSO2DKG.js.map} +0 -0
  440. /package/dist/chunks/{chunk.ZUQ225FP.js.map → chunk.34V3QOIQ.js.map} +0 -0
  441. /package/dist/chunks/{chunk.5EMELQSJ.js.map → chunk.36BZPB3H.js.map} +0 -0
  442. /package/dist/chunks/{chunk.ANR7UJCM.js.map → chunk.3EJU447K.js.map} +0 -0
  443. /package/dist/chunks/{chunk.PATEVJCK.js.map → chunk.3EQF2FRQ.js.map} +0 -0
  444. /package/dist/chunks/{chunk.UUK3IJ34.js.map → chunk.42F33KBM.js.map} +0 -0
  445. /package/dist/chunks/{chunk.TZ3YUOLF.js.map → chunk.4ADVK4N5.js.map} +0 -0
  446. /package/dist/chunks/{chunk.MAMYRDUG.js.map → chunk.4FRKK5XY.js.map} +0 -0
  447. /package/dist/chunks/{chunk.56IT6U4Z.js.map → chunk.4I2C7KCE.js.map} +0 -0
  448. /package/dist/chunks/{chunk.4ZZ27EU5.js.map → chunk.4T2NDUOQ.js.map} +0 -0
  449. /package/dist/chunks/{chunk.2SOIXTV6.js.map → chunk.4URTG3MF.js.map} +0 -0
  450. /package/dist/chunks/{chunk.M7H53KXO.js.map → chunk.4ZEHQOJ3.js.map} +0 -0
  451. /package/dist/chunks/{chunk.WJXZPRL7.js.map → chunk.56BJYBST.js.map} +0 -0
  452. /package/dist/chunks/{chunk.XPU5KLE5.js.map → chunk.5T3K7UXO.js.map} +0 -0
  453. /package/dist/chunks/{chunk.LYU2L254.js.map → chunk.67NOFASU.js.map} +0 -0
  454. /package/dist/chunks/{chunk.LLOONJ33.js.map → chunk.6B7GMPMK.js.map} +0 -0
  455. /package/dist/chunks/{chunk.G6ITZTTW.js.map → chunk.6EKUFYET.js.map} +0 -0
  456. /package/dist/chunks/{chunk.SN4QLG4C.js.map → chunk.6KTVNSPY.js.map} +0 -0
  457. /package/dist/chunks/{chunk.6E2MMRAE.js.map → chunk.6VA5V372.js.map} +0 -0
  458. /package/dist/chunks/{chunk.NJP3ZX4E.js.map → chunk.7SIMUMVH.js.map} +0 -0
  459. /package/dist/chunks/{chunk.7JGKUB4A.js.map → chunk.ADSEQZBF.js.map} +0 -0
  460. /package/dist/chunks/{chunk.H6KRLHYP.js.map → chunk.AF4RYZHB.js.map} +0 -0
  461. /package/dist/chunks/{chunk.5CNWQEKR.js.map → chunk.B3UAPU32.js.map} +0 -0
  462. /package/dist/chunks/{chunk.ATSI7CIG.js.map → chunk.B56PMMC4.js.map} +0 -0
  463. /package/dist/chunks/{chunk.6KN2JP2V.js.map → chunk.BNHQTT5B.js.map} +0 -0
  464. /package/dist/chunks/{chunk.GPST4OZW.js.map → chunk.D5GEYHUG.js.map} +0 -0
  465. /package/dist/chunks/{chunk.6YNHGMLP.js.map → chunk.DHT3ZN7B.js.map} +0 -0
  466. /package/dist/chunks/{chunk.G76BKD7B.js.map → chunk.DQKV5FSY.js.map} +0 -0
  467. /package/dist/chunks/{chunk.W7AA6XGD.js.map → chunk.DRLFKWVC.js.map} +0 -0
  468. /package/dist/chunks/{chunk.7KBMO52G.js.map → chunk.DXVTZKXX.js.map} +0 -0
  469. /package/dist/chunks/{chunk.KTIGGH3P.js.map → chunk.EIJX4T2G.js.map} +0 -0
  470. /package/dist/chunks/{chunk.5JCY4WWN.js.map → chunk.EMTWFPA4.js.map} +0 -0
  471. /package/dist/chunks/{chunk.YOAPSA7L.js.map → chunk.F4TDCDGD.js.map} +0 -0
  472. /package/dist/chunks/{chunk.LVMHT5WF.js.map → chunk.FVYPYWJH.js.map} +0 -0
  473. /package/dist/chunks/{chunk.7MJPWJQG.js.map → chunk.HW62YVCL.js.map} +0 -0
  474. /package/dist/chunks/{chunk.6CTU4ASM.js.map → chunk.HXLRLIDZ.js.map} +0 -0
  475. /package/dist/chunks/{chunk.CYF26JA4.js.map → chunk.I5R3PXG7.js.map} +0 -0
  476. /package/dist/chunks/{chunk.LEORATQ3.js.map → chunk.IMZSPXJV.js.map} +0 -0
  477. /package/dist/chunks/{chunk.M6JCEVSU.js.map → chunk.IOFVUQIY.js.map} +0 -0
  478. /package/dist/chunks/{chunk.KFH4EMOH.js.map → chunk.IYB26JEV.js.map} +0 -0
  479. /package/dist/chunks/{chunk.BVZQ6QSY.js.map → chunk.JE5Y2YD7.js.map} +0 -0
  480. /package/dist/chunks/{chunk.AYAX7BG7.js.map → chunk.JKSFECFA.js.map} +0 -0
  481. /package/dist/chunks/{chunk.VI5FLXBL.js.map → chunk.JQ4NCOOB.js.map} +0 -0
  482. /package/dist/chunks/{chunk.H4OK5O44.js.map → chunk.JX6C3ADT.js.map} +0 -0
  483. /package/dist/chunks/{chunk.YDIPI5TK.js.map → chunk.JYLOZXGC.js.map} +0 -0
  484. /package/dist/chunks/{chunk.RJPPRJP3.js.map → chunk.K5VB7VKA.js.map} +0 -0
  485. /package/dist/chunks/{chunk.RFDNFBHM.js.map → chunk.KPBZSLEA.js.map} +0 -0
  486. /package/dist/chunks/{chunk.HYFCK7MM.js.map → chunk.KSWDM4HW.js.map} +0 -0
  487. /package/dist/chunks/{chunk.NFXT5LNY.js.map → chunk.KVS7GBFQ.js.map} +0 -0
  488. /package/dist/chunks/{chunk.XU73JYJI.js.map → chunk.LBN3HL2T.js.map} +0 -0
  489. /package/dist/chunks/{chunk.PCRVKQ5F.js.map → chunk.LVYJDZMX.js.map} +0 -0
  490. /package/dist/chunks/{chunk.C4K3LJRD.js.map → chunk.M72HMQL6.js.map} +0 -0
  491. /package/dist/chunks/{chunk.D4723XMI.js.map → chunk.MJ4Q6YEU.js.map} +0 -0
  492. /package/dist/chunks/{chunk.PIMA7UA3.js.map → chunk.MM3NO6GS.js.map} +0 -0
  493. /package/dist/chunks/{chunk.Z4XV3SMG.js.map → chunk.MO2GTRUM.js.map} +0 -0
  494. /package/dist/chunks/{chunk.X72WKEXZ.js.map → chunk.N7BCC4V5.js.map} +0 -0
  495. /package/dist/chunks/{chunk.RRUXOF5F.js.map → chunk.N7LV5KRH.js.map} +0 -0
  496. /package/dist/chunks/{chunk.2QT5YZOB.js.map → chunk.OBERL73O.js.map} +0 -0
  497. /package/dist/chunks/{chunk.6HQPVW5L.js.map → chunk.OHDB73E6.js.map} +0 -0
  498. /package/dist/chunks/{chunk.VJLU3JPP.js.map → chunk.OIB4NIRJ.js.map} +0 -0
  499. /package/dist/chunks/{chunk.2UFVMHUX.js.map → chunk.PGGH5VGL.js.map} +0 -0
  500. /package/dist/chunks/{chunk.OB7RPCXI.js.map → chunk.PR7SSUOT.js.map} +0 -0
  501. /package/dist/chunks/{chunk.GPOLJHN4.js.map → chunk.PWODN6WT.js.map} +0 -0
  502. /package/dist/chunks/{chunk.6RYMIJZZ.js.map → chunk.Q3SJASPT.js.map} +0 -0
  503. /package/dist/chunks/{chunk.KGSP7LN2.js.map → chunk.QACXXBE3.js.map} +0 -0
  504. /package/dist/chunks/{chunk.RB2JR2ND.js.map → chunk.QDG5AJZX.js.map} +0 -0
  505. /package/dist/chunks/{chunk.6RN6OQWB.js.map → chunk.QT47J2O6.js.map} +0 -0
  506. /package/dist/chunks/{chunk.KBJQJUED.js.map → chunk.QXZFSE4T.js.map} +0 -0
  507. /package/dist/chunks/{chunk.WGL2SPVZ.js.map → chunk.R4FCX5PU.js.map} +0 -0
  508. /package/dist/chunks/{chunk.52VKGWG2.js.map → chunk.R5WFWL7W.js.map} +0 -0
  509. /package/dist/chunks/{chunk.TEJQXPAY.js.map → chunk.RBOU3KVS.js.map} +0 -0
  510. /package/dist/chunks/{chunk.734SILH2.js.map → chunk.RV5JERXK.js.map} +0 -0
  511. /package/dist/chunks/{chunk.WHX74UIY.js.map → chunk.SLKJ2OJN.js.map} +0 -0
  512. /package/dist/chunks/{chunk.IIHU63KV.js.map → chunk.SUH6DGJ5.js.map} +0 -0
  513. /package/dist/chunks/{chunk.HP2LEQRU.js.map → chunk.U5757NSE.js.map} +0 -0
  514. /package/dist/chunks/{chunk.6DYTXZJA.js.map → chunk.U6VNE4JX.js.map} +0 -0
  515. /package/dist/chunks/{chunk.OBI62PAK.js.map → chunk.UAUY6RVN.js.map} +0 -0
  516. /package/dist/chunks/{chunk.LQX6W62K.js.map → chunk.UBGDTOZZ.js.map} +0 -0
  517. /package/dist/chunks/{chunk.2LRU3I3N.js.map → chunk.UPDHOWDW.js.map} +0 -0
  518. /package/dist/chunks/{chunk.MTN5NM4A.js.map → chunk.UT3DWYFM.js.map} +0 -0
  519. /package/dist/chunks/{chunk.WH5IZKFX.js.map → chunk.VBPHUZ5N.js.map} +0 -0
  520. /package/dist/chunks/{chunk.XIRK7QT7.js.map → chunk.VV3WAINT.js.map} +0 -0
  521. /package/dist/chunks/{chunk.4RFP5BXR.js.map → chunk.VYQ53GHN.js.map} +0 -0
  522. /package/dist/chunks/{chunk.DSV4ZUJU.js.map → chunk.WPVUSCH3.js.map} +0 -0
  523. /package/dist/chunks/{chunk.QLIYRJIM.js.map → chunk.X57JLQDS.js.map} +0 -0
  524. /package/dist/chunks/{chunk.GCLDJQSX.js.map → chunk.X6HKBVIE.js.map} +0 -0
  525. /package/dist/chunks/{chunk.QLG3DDKI.js.map → chunk.XDOZEDCW.js.map} +0 -0
  526. /package/dist/chunks/{chunk.QYFODTOR.js.map → chunk.XKT2M3XA.js.map} +0 -0
  527. /package/dist/chunks/{chunk.IDRBXAJB.js.map → chunk.XL2GZSHM.js.map} +0 -0
  528. /package/dist/chunks/{chunk.HLSMCMJE.js.map → chunk.YBITSWNW.js.map} +0 -0
  529. /package/dist/chunks/{chunk.BA4QMNTH.js.map → chunk.YIYXW5NV.js.map} +0 -0
  530. /package/dist/chunks/{chunk.SJX5NWKN.js.map → chunk.Z3SZOYBJ.js.map} +0 -0
  531. /package/dist/chunks/{chunk.5MVDJQDM.js.map → chunk.ZNJG4EY4.js.map} +0 -0
  532. /package/dist/chunks/{chunk.QNWL4GZB.js.map → chunk.ZR7J6ZEM.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/input/input.component.ts", "../../src/internal/longpress.ts"],
4
- "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { longPress } from '../../internal/longpress.js';\nimport styles from './input.styles.js';\nimport customStyles from './input.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport {\n type NumericStrategy,\n createNumericStrategy,\n nativeNumericStrategy,\n modernNumericStrategy,\n} from './strategies.js';\nimport { formatNumber } from './formatter.js';\nimport type { SynClampDetails } from '../../events/syn-clamp.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-input--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-divider\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot increment-number-stepper - An icon to use in lieu of the default increment number stepper icon.\n * @slot decrement-number-stepper - An icon to use in lieu of the default decrement number stepper icon.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n *\n * @cssproperty --syn-input-autofill-shadow - The shadow to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-readonly-shadow - The shadow to apply when the input is readonly and autofilled.\n * @cssproperty --syn-input-autofill-text-fill-color - The text fill color to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-caret-color - The caret color to apply when the input is autofilled.\n */\n@enableDefaultSettings('SynInput')\nexport default class SynInput extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = {\n\t\t'syn-icon': SynIcon,\n\t\t'syn-divider': SynDivider\n\t};\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.input__control') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property({ reflect: true }) title = ''; // make reactive to pass through\n\n private __numberInput = Object.assign(document.createElement('input'), { type: 'number' });\n private __dateInput = Object.assign(document.createElement('input'), { type: 'date' });\n\n /**\n * The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\n * to `text`.\n */\n @property({ reflect: true }) type:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url' = 'text';\n\n /** The name of the input, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the input, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The input's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The input's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The input's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Adds a clear button when the input is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /** Disables the input. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** Makes the input readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n\n /** Adds a button to toggle the password's visibility. Only applies to password types. */\n @property({ attribute: 'password-toggle', type: Boolean }) passwordToggle = false;\n\n /** Determines whether or not the password is currently visible. Only applies to password input types. */\n @property({ attribute: 'password-visible', type: Boolean }) passwordVisible = false;\n\n /** Hides the increment/decrement spin buttons for number inputs. */\n @property({ attribute: 'no-spin-buttons', type: Boolean }) noSpinButtons = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the input a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** A regular expression pattern to validate input against. */\n @property() pattern: string;\n\n /** The minimum length of input that will be considered valid. */\n @property({ type: Number }) minlength: number;\n\n /** The maximum length of input that will be considered valid. */\n @property({ type: Number }) maxlength: number;\n\n /** The input's minimum value. Only applies to date and number input types. */\n @property() min: number | string;\n\n /** The input's maximum value. Only applies to date and number input types. */\n @property() max: number | string;\n\n /**\n * Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is\n * implied, allowing any numeric value. Only applies to date and number input types.\n */\n @property() step: number | 'any';\n\n /** Controls whether and how text input is automatically capitalized as it is entered by the user. */\n @property() autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';\n\n /** Indicates whether the browser's autocorrect feature is on or off. */\n @property({\n attribute: 'autocorrect',\n reflect: true,\n converter: {\n fromAttribute: (value: string) => value === '' || value === 'on',\n toAttribute: (value: boolean) => (value ? 'on' : 'off')\n },\n type: Boolean,\n }) autocorrect: boolean;\n\n /**\n * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.\n */\n @property() autocomplete: string;\n\n /** Indicates that the input should receive focus on page load. */\n @property({ type: Boolean }) autofocus: boolean;\n\n /** Used to customize the label or icon of the Enter key on virtual keyboards. */\n @property() enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /** Enables spell checking on the input. */\n @property({\n type: Boolean,\n converter: {\n // Allow \"true|false\" attribute values but keep the property boolean\n fromAttribute: value => (!value || value === 'false' ? false : true),\n toAttribute: value => (value ? 'true' : 'false')\n }\n })\n spellcheck = true;\n\n /**\n * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\n * keyboard on supportive devices.\n */\n @property() inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n /**\n * Optional options that should be passed to the `NumberFormatter` when formatting the value.\n * This is used to format the number when the input type is `number`.\n * Note this can only be set via `property`, not as an `attribute`!\n */\n @property({\n attribute: false,\n reflect: false,\n type: Object,\n }) numberFormatterOptions: Intl.NumberFormatOptions;\n\n /**\n * The minimal amount of fraction digits to use for numeric values.\n * Used to format the number when the input type is `number`.\n */\n @property({\n attribute: 'min-fraction-digits',\n type: Number,\n }) minFractionDigits: number;\n\n /**\n * The maximal amount of fraction digits to use for numeric values.\n * Used to format the number when the input type is `number`.\n */\n @property({\n attribute: 'max-fraction-digits',\n type: Number,\n }) maxFractionDigits: number;\n\n #numericStrategy: NumericStrategy = nativeNumericStrategy;\n\n /**\n * Defines the strategy for handling numbers in the numeric input.\n * This is used to determine how the input behaves when the user interacts with it.\n *\n * Includes the following configuration options:\n *\n * - **autoClamp**: If true, the input will clamp the value to the min and max attributes.\n * - **noStepAlign**: If true, the input will not align the value to the step attribute.\n * - **noStepValidation**: If true, the input will not validate the value against the step attribute.\n * \n * You may provide this as one of the following values:\n *\n * - 'native': Uses the native browser implementation.\n * - 'modern': Uses a more intuitive implementation:\n * - Values are clamped to the nearest min or max value.\n * - Stepping is inclusive to the provided min and max values.\n * - Provided stepping is no longer used in validation.\n * - An object that matches the `NumericStrategy` type. Note this can only be set via `property`, not as an `attribute`!\n */\n @property({\n attribute: 'numeric-strategy',\n converter: {\n fromAttribute: (value) => {\n return value === 'modern'\n ? modernNumericStrategy\n : nativeNumericStrategy;\n },\n },\n type: Object,\n })\n set numericStrategy(value: 'native' | 'modern' | Partial<NumericStrategy>) {\n switch (typeof value) {\n case 'string': this.#numericStrategy = value === 'modern' ? modernNumericStrategy : nativeNumericStrategy; break;\n case 'object': this.#numericStrategy = createNumericStrategy(value); break;\n default: this.#numericStrategy = nativeNumericStrategy;\n }\n }\n\n /**\n * @default nativeNumericStrategy\n * @todo: This must be changed to \"modern\" in Synergy@3\n */\n get numericStrategy(): 'native' | 'modern' | Partial<NumericStrategy> {\n return this.#numericStrategy;\n }\n\n //\n // NOTE: We use an in-memory input for these getters/setters instead of the one in the template because the properties\n // can be set before the component is rendered.\n //\n\n /**\n * Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. This will use the native `<input type=\"{{type}}\">` implementation and may result in an error.\n */\n get valueAsDate() {\n this.__dateInput.type = this.type;\n this.__dateInput.value = this.value;\n return this.input?.valueAsDate || this.__dateInput.valueAsDate;\n }\n\n set valueAsDate(newValue: Date | null) {\n this.__dateInput.type = this.type;\n this.__dateInput.valueAsDate = newValue;\n this.value = this.__dateInput.value;\n }\n\n /** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */\n get valueAsNumber() {\n this.__numberInput.value = this.value;\n return this.input?.valueAsNumber || this.__numberInput.valueAsNumber;\n }\n\n set valueAsNumber(newValue: number) {\n this.__numberInput.valueAsNumber = newValue;\n this.value = this.__numberInput.value;\n }\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleStep(){\n this.handleInput();\n this.input.focus();\n }\n\n private handleStepUp() {\n this.stepUp();\n this.handleStep();\n }\n\n private handleStepDown() {\n this.stepDown();\n this.handleStep();\n }\n \n private isDecrementDisabled() {\n if(this.disabled || this.readonly) {\n return true;\n }\n\n if (this.min === undefined || this.min === null) {\n return false;\n }\n\n const min = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n\n // #872: Use value instead of valueAsNumber as valueAsNumber is drawn from the hidden input\n // that is not yet updated in the current render cycle.\n return parseFloat(this.value) <= min;\n }\n\n private isIncrementDisabled() {\n if(this.disabled || this.readonly) {\n return true;\n }\n\n if (this.max === undefined || this.max === null) {\n return false;\n }\n\n const max = typeof this.max === 'string' ? parseFloat(this.max) : this.max;\n\n // #872: Use value instead of valueAsNumber as valueAsNumber is drawn from the hidden input\n // that is not yet updated in the current render cycle.\n return parseFloat(this.value) >= max;\n }\n\n \n private handleNumericStrategyAutoClamp() {\n const {\n valueAsNumber,\n max: initialMax,\n min: initialMin,\n } = this;\n\n // Exit early if there should be no clamping\n if (!this.#numericStrategy.autoClamp) {\n return {\n eventObj: null,\n shouldClamp: false,\n nextValue: valueAsNumber,\n }\n }\n\n const min = typeof initialMin === 'string' ? parseFloat(initialMin) : initialMin;\n const max = typeof initialMax === 'string' ? parseFloat(initialMax) : initialMax;\n\n let nextValue = valueAsNumber;\n let clampEvent = '';\n if (nextValue < min) {\n nextValue = min;\n clampEvent = 'min';\n } else if (nextValue > max) {\n nextValue = max;\n clampEvent = 'max';\n }\n\n const eventObj = clampEvent ? {\n detail: {\n clampedTo: clampEvent as SynClampDetails['clampedTo'],\n lastUserValue: valueAsNumber,\n },\n } : null;\n\n return {\n eventObj,\n shouldClamp: !!eventObj,\n nextValue,\n };\n }\n\n private handleChange() {\n if (this.type === 'number' && (this.#isNumberFormattingEnabled() || this.#numericStrategy.autoClamp)) {\n const { eventObj, shouldClamp, nextValue } = this.handleNumericStrategyAutoClamp();\n let initialNextValue = this.#numericStrategy.autoClamp ? nextValue : this.valueAsNumber;\n\n // Make sure to flag non numeric values as invalid\n if (isNaN(initialNextValue)) {\n // Make sure to set the value to the min or max value if the input is empty\n // If neither min nor max are set, we set the value to 0\n const { max, min } = this;\n\n if (max !== undefined && max !== null) {\n initialNextValue = typeof max === 'string' ? parseFloat(max) : +max;\n } else if (min !== undefined && min !== null) {\n initialNextValue = typeof min === 'string' ? parseFloat(min) : +min;\n } else {\n initialNextValue = 0;\n }\n }\n\n this.value = this.#isNumberFormattingEnabled()\n ? this.#formatNumber(initialNextValue)\n : initialNextValue.toString();\n\n // Make sure to wait for the updateComplete to be done before updating the validity\n // and firing events. This is needed because valueAsNumber is not updated yet when the event is fired\n this.updateComplete.then(() => {\n\n if (shouldClamp && eventObj) {\n this.emit('syn-clamp', eventObj);\n }\n\n this.formControlController.updateValidity();\n this.emit('syn-change');\n });\n return;\n }\n this.value = this.input.value;\n this.emit('syn-change');\n }\n\n private handleClearClick(event: MouseEvent) {\n event.preventDefault();\n\n if (this.value !== '') {\n this.value = '';\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n this.input.focus();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.formControlController.updateValidity();\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.#numericStrategy.noStepAlign && this.type === 'number') {\n const { key } = event;\n if (key === 'ArrowUp' || key === 'ArrowDown') {\n event.preventDefault();\n event.stopPropagation();\n\n if (key === 'ArrowUp') {\n this.handleStepUp();\n } else if (key === 'ArrowDown') {\n this.handleStepDown();\n }\n this.handleChange();\n return;\n }\n }\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n\n // Pressing enter when focused on an input should submit the form like a native input, but we wait a tick before\n // submitting to allow users to cancel the keydown event if they need to\n if (event.key === 'Enter' && !hasModifier) {\n setTimeout(() => {\n //\n // When using an Input Method Editor (IME), pressing enter will cause the form to submit unexpectedly. One way\n // to check for this is to look at event.isComposing, which will be true when the IME is open.\n //\n // See https://github.com/shoelace-style/shoelace/pull/988\n //\n if (!event.defaultPrevented && !event.isComposing) {\n this.formControlController.submit();\n }\n });\n }\n }\n\n private handlePasswordToggle() {\n this.passwordVisible = !this.passwordVisible;\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('step', { waitUntilFirstUpdate: true })\n handleStepChange() {\n // If the numericStrategy has noStepValidation set, skip this as the inputs step will always set to \"any\".\n if (this.#numericStrategy.noStepValidation) {\n return;\n }\n // If step changes, the value may become invalid so we need to recheck after the update. We set the new step\n // imperatively so we don't have to wait for the next render to report the updated validity.\n this.input.step = String(this.step);\n this.formControlController.updateValidity();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the input. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the input. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the input. */\n select() {\n this.input.select();\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: 'forward' | 'backward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Replaces a range of text with a new string. */\n setRangeText(\n replacement: string,\n start?: number,\n end?: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n const selectionStart = start ?? this.input.selectionStart!;\n const selectionEnd = end ?? this.input.selectionEnd!;\n\n this.input.setRangeText(replacement, selectionStart, selectionEnd, selectMode);\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Displays the browser picker for an input element (only works if the browser supports it for the input type). */\n showPicker() {\n if ('showPicker' in HTMLInputElement.prototype) {\n this.input.showPicker();\n }\n }\n\n /** Increments the value of a numeric input type by the value of the step attribute. */\n stepUp() {\n if (this.#numericStrategy.noStepAlign) {\n const { max, step, valueAsNumber } = this;\n\n // Needed because the input could be empty. In this case, valueAsNumber is NaN\n const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;\n const usedMin = typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n const usedMax = typeof max === 'string' ? parseFloat(max) : max;\n const usedStep = (typeof step === 'undefined' || step === null || step === 'any') ? 1 : typeof step === 'number' ? step : parseFloat(step);\n\n let wantedNextValue = usedInitialValue + usedStep;\n\n if (typeof usedMax === 'number' && usedMax < wantedNextValue) {\n wantedNextValue = usedMax;\n } else if (typeof usedMin === 'number' && usedMin > wantedNextValue) {\n wantedNextValue = usedMin;\n }\n\n const finalStringValue = this.#isNumberFormattingEnabled()\n ? this.#formatNumber(wantedNextValue)\n : wantedNextValue.toString();\n\n this.input.value = finalStringValue;\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n return;\n }\n this.input.stepUp();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Decrements the value of a numeric input type by the value of the step attribute. */\n stepDown() {\n if (this.#numericStrategy.noStepAlign) {\n const { min, max, step, valueAsNumber } = this;\n\n // Needed because the input could be empty. In this case, valueAsNumber is NaN\n const usedInitialValue = Number.isNaN(valueAsNumber) ? 0 : valueAsNumber;\n const usedMin = typeof min === 'string' ? parseFloat(min) : min;\n const usedMax = typeof max === 'string' ? parseFloat(max) : max;\n const usedStep = (typeof step === 'undefined' || step === null || step === 'any') ? 1 : typeof step === 'number' ? step : parseFloat(step);\n\n let wantedNextValue = usedInitialValue - usedStep;\n \n if (typeof usedMin === 'number' && usedMin > wantedNextValue) {\n wantedNextValue = usedMin;\n } else if (typeof usedMax === 'number' && usedMax < wantedNextValue) {\n wantedNextValue = usedMax;\n }\n\n const finalStringValue = this.#isNumberFormattingEnabled()\n ? this.#formatNumber(wantedNextValue)\n : wantedNextValue.toString();\n\n this.input.value = finalStringValue;\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n return;\n }\n this.input.stepDown();\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n #formatNumber(value: number) {\n return formatNumber(value, this.step, {\n maximumFractionDigits: this.maxFractionDigits,\n minimumFractionDigits: this.minFractionDigits,\n ...this.numberFormatterOptions,\n });\n }\n\n #isNumberFormattingEnabled() {\n const {\n numberFormatterOptions,\n maxFractionDigits,\n minFractionDigits,\n step,\n } = this;\n\n const hasMaxFractionDigits = typeof maxFractionDigits !== 'undefined' && !Number.isNaN(maxFractionDigits);\n const hasMinFractionDigits = typeof minFractionDigits !== 'undefined' && !Number.isNaN(minFractionDigits);\n\n // Easy checks first: If we have a min or max fraction digit, proceed\n if (hasMaxFractionDigits || hasMinFractionDigits) {\n return true;\n }\n \n // Check if there are any options that where provided via formatter options\n if (typeof numberFormatterOptions === 'object') {\n return true;\n }\n\n // As a last fallback, see if the step has a decimal value\n // If it has, we should format according to the steps amount of fraction digits\n const stepToUse = step === 'any' || !step ? 1 : +step;\n const stepFractionDigits = stepToUse.toString().split('.')[1]?.length || 0;\n\n return stepFractionDigits > 0;\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && !this.readonly;\n const isClearIconVisible = hasClearIcon && (typeof this.value === 'number' || this.value.length > 0);\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot\n })}\n >\n <label\n part=\"form-control-label\"\n class=\"form-control__label\"\n for=\"input\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <div\n part=\"base\"\n class=${classMap({\n input: true,\n\n // Sizes\n 'input--small': this.size === 'small',\n 'input--medium': this.size === 'medium',\n 'input--large': this.size === 'large',\n\n // States\n 'input--standard': !this.readonly,\n 'input--readonly': this.readonly,\n 'input--disabled': this.disabled,\n 'input--focused': this.hasFocus,\n 'input--empty': !this.value,\n 'input--no-spin-buttons': this.noSpinButtons\n })}\n >\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n <input\n part=\"input\"\n id=\"input\"\n class=\"input__control\"\n type=${this.type === 'password' && this.passwordVisible ? 'text' : this.type}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n min=${ifDefined(this.min)}\n max=${ifDefined(this.max)}\n step=${ifDefined(!this.#numericStrategy.noStepValidation ? this.step as number : 'any')}\n .value=${live(this.value)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocomplete=${ifDefined(this.autocomplete)}\n autocorrect=${ifDefined(this.autocorrect ? undefined : 'off')}\n ?autofocus=${this.autofocus}\n spellcheck=${this.spellcheck}\n pattern=${ifDefined(this.pattern)}\n enterkeyhint=${ifDefined(this.enterkeyhint)}\n inputmode=${ifDefined(this.inputmode)}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n />\n\n ${isClearIconVisible\n ? html`\n <button\n part=\"clear-button\"\n class=\"input__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n ${this.passwordToggle && !this.disabled\n ? html`\n <button\n part=\"password-toggle-button\"\n class=\"input__password-toggle\"\n type=\"button\"\n aria-label=${this.localize.term(this.passwordVisible ? 'hidePassword' : 'showPassword')}\n @click=${this.handlePasswordToggle}\n tabindex=\"-1\"\n >\n ${this.passwordVisible\n ? html`\n <slot name=\"show-password-icon\">\n <syn-icon name=\"eye-slash\" library=\"system\"></syn-icon>\n </slot>\n `\n : html`\n <slot name=\"hide-password-icon\">\n <syn-icon name=\"eye\" library=\"system\"></syn-icon>\n </slot>\n `}\n </button>\n `\n : ''}\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n\n ${this.type === 'number' && !this.noSpinButtons\n ? html`\n <div part=\"stepper\" class=\"input__number-stepper\">\n <button\n part=\"decrement-number-stepper\"\n class=\"input__number-stepper-button\"\n type=\"button\"\n ?disabled=${this.isDecrementDisabled()}\n aria-hidden=\"true\"\n ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange()})}\n tabindex=\"-1\"\n >\n <slot name=\"decrement-number-stepper\">\n <syn-icon name=\"indeterminate\" library=\"system\"></syn-icon>\n </slot>\n </button>\n <syn-divider class=\"input__number-divider\" part=\"divider\" vertical></syn-divider>\n <button\n part=\"increment-number-stepper\"\n class=\"input__number-stepper-button\"\n type=\"button\"\n ?disabled=${this.isIncrementDisabled()}\n aria-hidden=\"true\"\n ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}\n tabindex=\"-1\"\n >\n <slot name=\"increment-number-stepper\">\n <syn-icon name=\"add\" library=\"system\"></syn-icon>\n </slot>\n </button>\n </div>\n `\n : ''}\n </div>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n", "import { type ElementPart, noChange, nothing } from 'lit';\nimport {\n AsyncDirective,\n type DirectiveParameters,\n type Part,\n PartType,\n directive,\n} from 'lit/async-directive.js';\n\ntype Callbacks = {\n start: () => void;\n end: () => void;\n};\n\n/**\n * A directive that determines,if a HTMLButtonElement is long pressed or only clicked.\n * Depending on the state it executes the callback once or repeating.\n *\n * Usage:\n *\n * <button\n * ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}\n * >\n * my button\n * </button>\n */\nclass LongPressDirective extends AsyncDirective {\n host: HTMLButtonElement;\n\n observer: MutationObserver;\n\n callbacks: Callbacks;\n\n interval: NodeJS.Timeout;\n\n timeout: NodeJS.Timeout;\n\n constructor(part: Part) {\n super(part);\n if (part.type !== PartType.ELEMENT || !(part.element instanceof HTMLButtonElement)) {\n throw new Error('The `longPress` directive must be used on an HTMLButtonElement.');\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, class-methods-use-this\n render(_callback: Callbacks): typeof nothing {\n return nothing;\n }\n\n update(part: ElementPart, [callbacks]: DirectiveParameters<this>): typeof noChange {\n // initial call\n if (this.callbacks === undefined && this.host === undefined) {\n this.host = part.element as HTMLButtonElement;\n this.callbacks = { ...callbacks };\n this.host.addEventListener('pointerdown', this.handlePointerDown);\n }\n\n return noChange;\n }\n\n reconnected(): void {\n this.host.addEventListener('pointerdown', this.handlePointerDown);\n }\n\n protected disconnected(): void {\n this.stopSpinningAndCleanUp();\n this.host.removeEventListener('pointerdown', this.handlePointerDown);\n document.removeEventListener('pointerup', this.handlePointerUp);\n }\n\n private handlePointerDown = (event: PointerEvent) => {\n // do nothing if the click was not done from the left mouse button or if the button is disabled\n if (event.button !== 0 || this.host.disabled) {\n return;\n }\n this.spinOnLongPressCallback(event);\n };\n\n /**\n * Start spinning on long press clicks otherwise handle as single click event\n */\n private spinOnLongPressCallback(event: PointerEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n // Start spinning only on long press\n this.timeout = setTimeout(() => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.timeout = undefined;\n this.interval = setInterval(() => {\n this.callbacks.start();\n }, 50);\n }, 500);\n\n document.addEventListener('pointerup', this.handlePointerUp);\n\n // when buttons becoming disabled during long-press\n this.observer?.disconnect();\n this.observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.attributeName === 'disabled') {\n this.stopSpinningAndCleanUp();\n }\n });\n });\n this.observer.observe(this.host, { attributes: true });\n }\n\n private handlePointerUp = (pointerUp?: PointerEvent) => {\n pointerUp?.preventDefault();\n pointerUp?.stopPropagation();\n\n // we did not start to spin\n if (this.timeout) {\n this.callbacks.start();\n }\n\n this.stopSpinningAndCleanUp();\n\n this.callbacks.end();\n document.removeEventListener('pointerup', this.handlePointerUp);\n };\n\n /**\n * Stop the spinning and clean up all timer and observer\n */\n private stopSpinningAndCleanUp() {\n // stop spinning\n clearInterval(this.interval);\n\n clearTimeout(this.timeout);\n this.observer?.disconnect();\n }\n}\n\nexport const longPress = directive(LongPressDirective);\n\nexport type { LongPressDirective };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;AChBvC,SAA2B,UAAU,eAAe;AACpD;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AAmBP,IAAM,qBAAN,cAAiC,eAAe;AAAA,EAW9C,YAAY,MAAY;AACtB,UAAM,IAAI;AAgCZ,SAAQ,oBAAoB,CAAC,UAAwB;AAEnD,UAAI,MAAM,WAAW,KAAK,KAAK,KAAK,UAAU;AAC5C;AAAA,MACF;AACA,WAAK,wBAAwB,KAAK;AAAA,IACpC;AAiCA,SAAQ,kBAAkB,CAAC,cAA6B;AACtD,6CAAW;AACX,6CAAW;AAGX,UAAI,KAAK,SAAS;AAChB,aAAK,UAAU,MAAM;AAAA,MACvB;AAEA,WAAK,uBAAuB;AAE5B,WAAK,UAAU,IAAI;AACnB,eAAS,oBAAoB,aAAa,KAAK,eAAe;AAAA,IAChE;AAnFE,QAAI,KAAK,SAAS,SAAS,WAAW,EAAE,KAAK,mBAAmB,oBAAoB;AAClF,YAAM,IAAI,MAAM,iEAAiE;AAAA,IACnF;AAAA,EACF;AAAA;AAAA,EAGA,OAAO,WAAsC;AAC3C,WAAO;AAAA,EACT;AAAA,EAEA,OAAO,MAAmB,CAAC,SAAS,GAA+C;AAEjF,QAAI,KAAK,cAAc,UAAa,KAAK,SAAS,QAAW;AAC3D,WAAK,OAAO,KAAK;AACjB,WAAK,YAAY,mBAAK;AACtB,WAAK,KAAK,iBAAiB,eAAe,KAAK,iBAAiB;AAAA,IAClE;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,cAAoB;AACl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AASA;AAAA,EAHF,SAAS;AAAA,IACR,WAAW;AAAA,IACX,MAAM;AAAA,EACR,CAAC;AAAA,GAjLkB,SAiLhB;AAkCC;AAAA,EAXH,SAAS;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,MACT,eAAe,CAAC,UAAU;AACxB,eAAO,UAAU,WACb,wBACA;AAAA,MACN;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR,CAAC;AAAA,GAlNkB,SAmNf;AA2QJ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7d9B,SA8dnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAne1B,SAoenB;AAYM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA/e3B,SAgfb;AAhfa,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/range/range.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n /*\n * Values here apply for the default size of \"medium\"\n * For other sizes, see below\n */\n --thumb-size: var(--syn-spacing-medium);\n --thumb-hit-area-size: 1.4;\n --track-hit-area-size: var(--syn-spacing-medium);\n --track-active-offset: 0px;\n --track-color-active: var(--syn-range-track-color-active,var(--syn-color-primary-600));\n --track-color-inactive: var(--syn-range-color-inactive, var(--syn-color-neutral-200));\n --track-height: var(--syn-spacing-2x-small);\n\n /* This is needed to get the full with of the element, including the border */\n --full-thumb-size: calc(var(--thumb-size) + (var(--syn-focus-ring-width) * 2));\n\n /*\n * There are multiple places where we need the half width of the thumb\n * This is needed for example to position the knob on the track or\n * provide the spacing to the left and right for the track to make it stand \"over\"\n */\n --half-thumb-size: calc(var(--full-thumb-size) / 2);\n }\n\n /* Sizes */\n :host([size='small']) {\n --thumb-size: var(--syn-spacing-small);\n }\n\n :host([size='large']) {\n --thumb-size: var(--syn-spacing-medium-large);\n }\n\n .form-control {\n align-items: stretch;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n writing-mode: horizontal-tb;\n }\n\n .base {\n align-items: center;\n cursor: text;\n display: inline-flex;\n flex: 1 1 auto;\n font-family: var(--syn-input-font-family);\n font-size: var(--syn-input-font-size-medium);\n font-weight: var(--syn-input-font-weight);\n justify-content: start;\n letter-spacing: var(--syn-input-letter-spacing);\n position: relative;\n /* stylelint-disable-next-line plugin/no-unsupported-browser-features */\n touch-action: none; /* Prevent misbehavior in mobile by disabling native touch */\n -webkit-touch-callout: none;\n transition: var(--syn-transition-fast) color, var(--syn-transition-fast) border, var(--syn-transition-fast) box-shadow, var(--syn-transition-fast) background-color;\n /* stylelint-disable-next-line property-no-vendor-prefix */\n -webkit-user-select: none;\n vertical-align: middle;\n width: 100%;\n }\n\n .input__wrapper {\n flex: 1 0 auto;\n margin: 0 var(--half-thumb-size);\n position: relative;\n }\n\n :host([disabled]) .base {\n opacity: var(--syn-input-disabled-opacity);\n }\n\n .input__prefix,\n .input__suffix {\n align-items: center;\n color: var(--syn-input-icon-color);\n cursor: default;\n display: inline-flex;\n flex: 0 0 auto;\n }\n\n /* Sizing for the prefix and suffix */\n .form-control--small .input__prefix ::slotted(*) {\n font-size: var(--syn-input-font-size-small);\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n .form-control--small .input__suffix ::slotted(*) {\n font-size: var(--syn-input-font-size-small);\n margin-inline-start: var(--syn-spacing-x-small);\n }\n\n .form-control--medium .input__prefix ::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-small);\n }\n\n .form-control--medium .input__suffix ::slotted(*) {\n margin-inline-start: var(--syn-input-spacing-small);\n }\n\n .form-control--large .input__prefix ::slotted(*) {\n font-size: var(--syn-input-font-size-large);\n margin-inline-end: var(--syn-input-spacing-medium);\n }\n\n .form-control--large .input__suffix ::slotted(*) {\n font-size: var(--syn-input-font-size-large);\n margin-inline-start: var(--syn-input-spacing-medium);\n }\n\n .form-control--small .input__prefix ::slotted(syn-icon),\n .form-control--small .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-medium);\n }\n\n .form-control--medium .input__prefix ::slotted(syn-icon),\n .form-control--medium .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-x-large);\n }\n \n .form-control--large .input__prefix ::slotted(syn-icon),\n .form-control--large .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-2x-large);\n }\n\n .track__wrapper {\n cursor: pointer;\n position: relative;\n }\n\n /* Internal helper for a better click surface on tracks */\n .track__click-helper {\n inset: calc(var(--track-hit-area-size) * -1) calc(var(--half-thumb-size) * -1);\n position: absolute;\n }\n\n .track {\n background-color: var(--track-color-inactive);\n border-radius: var(--syn-border-radius-pill);\n height: var(--track-height);\n margin: calc((var(--full-thumb-size) - var(--track-height)) / 2) calc(var(--half-thumb-size) * -1);\n }\n\n .active-track {\n background-color: var(--track-color-active);\n border-radius: var(--syn-border-radius-pill);\n height: var(--track-height);\n margin: 0 calc(var(--half-thumb-size) * -1);\n position: absolute;\n top: 0;\n z-index: 2;\n }\n\n .thumb {\n background-color: var(--syn-interactive-emphasis-color,var(--syn-color-primary-600));\n border: var(--syn-focus-ring-width) solid var(--syn-input-border-color-offset, var(--syn-color-neutral-0));\n border-radius: var(--syn-border-radius-circle);\n cursor: pointer;\n display: block;\n height: var(--full-thumb-size);\n position: absolute;\n top: 0;\n transition: transform var(--syn-transition-fast) ease-in-out, background-color var(--syn-transition-fast) ease-in-out, box-shadow var(--syn-transition-fast) ease-in-out;\n user-select: none;\n width: var(--full-thumb-size);\n z-index: 3;\n }\n\n /**\n * Adds some space to the thumb that makes it easier to click and drag\n */\n .thumb::after {\n background: transparent;\n border-radius: var(--syn-border-radius-circle);\n content: \"\";\n display: block;\n \n /* The --thumb-size needs to be used to subtract from, because the border of the thumb is not calculated into the inset */\n inset: calc((var(--thumb-size) - (var(--full-thumb-size) * var(--thumb-hit-area-size)) ) / 2);\n\n /* This is needed as we also attach a pointerleave listener that stops */\n pointer-events: none;\n position: absolute;\n }\n\n .thumb:hover {\n /* stylelint-disable-next-line plugin/no-unsupported-browser-features */\n cursor: grab;\n }\n\n .thumb.grabbed {\n background: var(--syn-interactive-emphasis-color-active, var(--syn-color-primary-950));\n /* stylelint-disable-next-line plugin/no-unsupported-browser-features */\n cursor: grabbing;\n }\n\n .thumb:focus-visible {\n outline: none;\n }\n\n .thumb:not(.grabbed):focus-visible {\n background: var(--syn-interactive-emphasis-color-hover,var(--syn-color-primary-900));\n outline: var(--syn-focus-ring);\n outline-offset: 0;\n }\n\n :host([disabled]) .track__wrapper,\n :host([disabled]) .thumb,\n :host([disabled]) .thumb.grabbed {\n cursor: not-allowed;\n }\n\n /*\n * Guard against mobile devices not removing the transform\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/any-hover\n */\n @media (any-hover: hover) {\n :host(:not([disabled])) .thumb:hover {\n transform: scale(var(--thumb-hit-area-size));\n }\n\n :host(:not([disabled])) .thumb:not(.grabbed):hover {\n background: var(--syn-interactive-emphasis-color-hover, var(--syn-color-primary-900));\n }\n \n :host(:not([disabled])) .thumb:hover::after {\n /* Unset the area of the thumb click and drag area space, so it does not scale with the hover */\n inset: unset;\n }\n }\n\n /* Ticks */\n .ticks {\n cursor: pointer;\n margin: 1px 0;\n position: relative;\n user-select: none;\n }\n\n .form-control--small .ticks ::slotted(*) {\n font-size: var(--syn-font-size-small);\n }\n\n .form-control--large .ticks ::slotted(*) {\n font-size: var(--syn-font-size-large);\n }\n\n /**\n * Visually hide elements without display:none to make aria and other accessibility stuff work correctly\n * This is necessary for accessibility reasons and e.g. for the native html input validation popup to be\n * shown.\n */\n .visually-hidden {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n\n /**\n * Position the validation input to the bottom and center of the range track\n */\n .range__validation-input {\n bottom: 0;\n left: 50%;\n }\n \n\n :host([data-user-invalid]) .active-track {\n --track-color-active: var(--syn-range-error-color ,var(--syn-input-border-color-focus-error));\n }\n\n :host([data-user-invalid]) .thumb {\n background-color: var(--syn-range-error-color ,var(--syn-input-border-color-focus-error));\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,uBAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utilities/defaultSettings/functions.ts"],
4
- "sourcesContent": ["/* eslint-disable no-underscore-dangle */\nimport type SynergyElement from '../../internal/synergy-element.js';\nimport {\n type AllowedValueForDefaultSetting,\n type ComponentNamesWithDefaultValues,\n type ExtractSettingsForElement,\n type GlobalSettingsEnabledElement,\n INITIAL_DEFAULT_SETTINGS,\n type RecursivePartial,\n type SynDefaultSettings,\n defaultSettings,\n} from './base.js';\nimport type { SynDefaultChangedAttribute, SynDefaultSettingsChangedEvent } from '../../events/events.js';\n\n/**\n * Whether to emit events when the default settings change\n */\nlet SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS = false;\n\n/**\n * Internal flag to check if the global event listeners have been set up\n */\nlet hasGlobalEventSetup = false;\n\n// Cache for speeding up lookups\nconst elementPropertyCache = new Map<ComponentNamesWithDefaultValues, Record<string, unknown>>();\n\n/**\n * List of all components that have default values\n */\nconst globalEventNotificationMap = new Set<GlobalSettingsEnabledElement>();\n\n/**\n * The default setting update handler that is bound to the global event\n * @param e The syn-default-settings-change-event emitted\n */\nfunction defaultSettingsHandler(e: SynDefaultSettingsChangedEvent) {\n const { detail } = e;\n Object.entries(detail).forEach(([componentName, changes]) => {\n globalEventNotificationMap.forEach(element => {\n if (\n element.__originalDecoratedClassName !== 'undefined'\n && element.__originalDecoratedClassName === componentName\n ) {\n element.overrideGlobalSettings(changes);\n }\n });\n });\n}\n\n/**\n * Enables or disables the experimental setting to emit events when the default settings change\n * @param enabled Whether to enable or disable the experimental setting\n */\nexport const enableExperimentalSettingEmitEvents = (enabled = true) => {\n SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS = enabled;\n\n if (!enabled) {\n // Make sure to always remove the old element cache\n // when the feature is disabled.\n // Otherwise, we could get a memory leak\n globalEventNotificationMap.clear();\n\n hasGlobalEventSetup = false;\n window.removeEventListener('syn-default-settings-changed', defaultSettingsHandler, {\n capture: true,\n });\n return;\n }\n\n if (enabled && !hasGlobalEventSetup) {\n hasGlobalEventSetup = true;\n window.addEventListener('syn-default-settings-changed', defaultSettingsHandler, {\n capture: true,\n });\n }\n};\n\n/**\n * Adds an element to the global event notification map\n * Does not have any effect when SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS is false\n * @param element The element to add\n */\nexport const addGlobalEventNotification = (\n element: GlobalSettingsEnabledElement,\n) => {\n if (\n SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS\n && !globalEventNotificationMap.has(element)\n ) {\n globalEventNotificationMap.add(element);\n }\n};\n\n/**\n * Removes an element from the global event notification map\n * Does not have any effect when SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS is false\n * @param element The element to remove\n */\nexport const removeGlobalEventNotification = (\n element: GlobalSettingsEnabledElement,\n) => {\n // Always try to remove the element from the map\n // This is done because the event support might have been disabled\n // between the time the element was added and removed\n if (globalEventNotificationMap.has(element)) {\n globalEventNotificationMap.delete(element);\n }\n};\n\n/**\n * Extracts all available default settings for a given component\n * @param component The name of the component to get the settings for\n * @param from The source to get the settings from\n * @returns key value pair of found settings for the given component\n */\nexport const extractDefaultSettingsForElement = (\n component: ComponentNamesWithDefaultValues,\n from: 'default' | 'initial' = 'default',\n) => {\n const store = from === 'default' ? defaultSettings : INITIAL_DEFAULT_SETTINGS;\n\n // When we have settings in the cache, make sure to use them to speed them up when possible.\n // This is only available when using the default source!\n if (from === 'default') {\n const cachedSettings = elementPropertyCache.get(component);\n if (typeof cachedSettings !== 'undefined') {\n return cachedSettings;\n }\n }\n\n const allElementSettings = Object.entries(store).reduce(\n (acc: Record<string, unknown>, [key, value]) => {\n const elementSetting = value[component as keyof SynDefaultSettings[keyof SynDefaultSettings]];\n if (elementSetting) {\n acc[key] = elementSetting;\n }\n return acc;\n },\n {},\n );\n\n // Set the cache item when we are using the default source\n if (from === 'default') {\n elementPropertyCache.set(component, allElementSettings);\n }\n\n return allElementSettings;\n};\n\n/**\n * Set the default values for a given component\n * @param component The component to set the defaults for\n * @param newValues Map of new values to set\n */\nexport const setDefaultSettingsForElement = <C extends SynergyElement>(\n component: ComponentNamesWithDefaultValues,\n newValues: Partial<ExtractSettingsForElement<C>>,\n) => {\n // List of all changes in the default settings\n const detail = {\n [component]: [] as SynDefaultChangedAttribute[],\n } as Record<string, SynDefaultChangedAttribute[]>;\n\n Object.entries(newValues).forEach(([key, value]) => {\n if (\n defaultSettings[key as keyof SynDefaultSettings]\n && typeof (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] !== 'undefined'\n ) {\n detail[component].push({\n attribute: key,\n newValue: value,\n oldValue:\n defaultSettings[key as keyof SynDefaultSettings][\n component as keyof SynDefaultSettings[keyof SynDefaultSettings]\n ],\n });\n\n (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] = value as AllowedValueForDefaultSetting<C, keyof C>;\n }\n });\n\n // Make sure to clean up the cache when we change the default settings\n const cachedItem = elementPropertyCache.get(component);\n if (typeof cachedItem !== 'undefined') {\n detail[component].forEach(change => {\n cachedItem[change.attribute] = change.newValue;\n });\n }\n\n // Fire the change event\n if (SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS) {\n const event = new CustomEvent<typeof detail>('syn-default-settings-changed', {\n bubbles: true,\n detail,\n });\n dispatchEvent(event);\n }\n\n return defaultSettings;\n};\n\n/**\n * Set the global default settings\n * @param newSettings The new settings to set\n */\nexport const setGlobalDefaultSettings = (\n newSettings: RecursivePartial<SynDefaultSettings>,\n): SynDefaultSettings => {\n // List of all changes in the default settings\n const detail = {} as Record<string, SynDefaultChangedAttribute[]>;\n\n Object.entries(newSettings).forEach(([key, value]) => {\n if (defaultSettings[key as keyof SynDefaultSettings]) {\n Object.entries(value).forEach(([component, newValue]) => {\n // Create the component part of details if it does not exist yet\n if (!detail[component]) {\n detail[component] = [];\n }\n\n // Add the changed attribute to the detail object\n detail[component].push({\n attribute: key,\n newValue: newValue as unknown,\n oldValue:\n defaultSettings[key as keyof SynDefaultSettings][\n component as keyof SynDefaultSettings[keyof SynDefaultSettings]\n ],\n });\n\n // Set the new value\n (\n defaultSettings[key as keyof SynDefaultSettings] as Record<string, unknown>\n )[component] = newValue;\n });\n }\n });\n\n // Make sure to update the cache when we change a default settings\n Object\n .entries(detail)\n .forEach(([component, changes]) => {\n const cachedItem = elementPropertyCache.get(component as ComponentNamesWithDefaultValues);\n if (typeof cachedItem !== 'undefined') {\n changes.forEach(change => {\n cachedItem[change.attribute] = change.newValue;\n });\n }\n });\n\n // Fire the change event\n if (SYNERGY_EXPERIMENTAL_SETTING_EMIT_EVENTS) {\n const event = new CustomEvent<typeof detail>('syn-default-settings-changed', {\n bubbles: true,\n detail,\n });\n dispatchEvent(event);\n }\n\n return defaultSettings;\n};\n\n/**\n * Reset the global default settings to synergies initial values\n */\n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AAC;AAEhB,SAAO,QAAQ,WAAW,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACpD,QAAI,gBAAgB,GAA+B,GAAG;AACpD,aAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,WAAW,QAAQ,MAAM;AAEvD,YAAI,CAAC,OAAO,SAAS,GAAG;AACtB,iBAAO,SAAS,IAAI,CAAC;AAAA,QACvB;AAGA,eAAO,SAAS,EAAE,KAAK;AAAA,UACrB,WAAW;AAAA,UACX;AAAA,UACA,UACE,gBAAgB,GAA+B,EAC7C,SACF;AAAA,QACJ,CAAC;AAGD,QACE,gBAAgB,GAA+B,EAC/C,SAAS,IAAI;AAAA,MACjB,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAGD,SACG,QAAQ,MAAM,EACd,QAAQ,CAAC,CAAC,WAAW,OAAO,MAAM;AACjC,UAAM,aAAa,qBAAqB,IAAI,SAA4C;AACxF,QAAI,OAAO,eAAe,aAAa;AACrC,cAAQ,QAAQ,YAAU;AACxB,mBAAW,OAAO,SAAS,IAAI,OAAO;AAAA,MACxC,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAGH,MAAI,0CAA0C;AAC5C,UAAM,QAAQ,IAAI,YAA2B,gCAAgC;AAAA,MAC3E,SAAS;AAAA,MACT;AAAA,IACF,CAAC;AACD,kBAAc,KAAK;AAAA,EACrB;AAEA,SAAO;AACT;AAKO,IAAM,6BAA6B,MAA0B;AAAA,EAClE;AACF;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/badge/badge.custom.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n .badge {\n border: none;\n border-radius: var(--syn-border-radius-pill);\n font: var(--syn-body-small-bold);\n height: var(--syn-spacing-large);\n line-height: var(--syn-spacing-large);\n min-width: var(--syn-spacing-large);\n padding: 0 var(--syn-spacing-x-small);\n }\n\n /* Variant modifiers */\n .badge--primary {\n background-color: var(--syn-badge-informative-color-background, var(--syn-color-primary-600));\n color: var(--syn-badge-informative-color-text, var(--syn-typography-color-text-inverted));\n }\n\n .badge--success {\n background-color: var(--syn-badge-success-color-background, var(--syn-color-success-500));\n color: var(--syn-badge-success-color-text, var(--syn-typography-color-text));\n }\n\n .badge--neutral {\n background-color: var(--syn-badge-neutral-color-background, var(--syn-color-neutral-800));\n color: var(--syn-badge-neutral-color-text, var(--syn-typography-color-text-inverted));\n }\n\n .badge--warning {\n background-color: var(--syn-badge-warning-color-background, var(--syn-color-warning-400));\n color: var(--syn-badge-warning-color-text, var(--syn-typography-color-text));\n }\n\n .badge--danger {\n background-color: var(--syn-badge-error-color-background, var(--syn-color-error-600));\n color: var(--syn-badge-error-color-text, var(--syn-typography-color-text-inverted));\n }\n\n /**\n * Special treatment: If the badge is empty, show it as a dot only\n */\n :host(:empty) .badge {\n height: var(--syn-spacing-x-small);\n min-width: initial;\n padding: 0;\n width: var(--syn-spacing-x-small);\n }\n\n .visually-hidden {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,8BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/icon-button/icon-button.custom.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n .icon-button {\n border-radius: 0;\n color: currentColor;\n font-size: inherit;\n }\n\n .icon-button--disabled {\n color: var(--syn-color-neutral-400);\n\n /** #429: Use token for opacity */\n opacity: var(--syn-input-disabled-opacity);\n }\n\n /* Remove round borders */\n .icon-button:focus-visible {\n border-radius: var(--syn-icon-button-focus-ring-border-radius, var(--syn-border-radius-none));\n }\n\n /* Colors */\n :host([color=\"currentColor\"]) {\n color: currentColor;\n }\n\n :host([color=\"primary\"]),\n :host([color=\"primary\"]) .icon-button:focus-visible:not(.icon-button--disabled) {\n color: var(--syn-interactive-emphasis-color, var(--syn-color-primary-600));\n }\n\n :host([color=\"primary\"]) .icon-button:hover:not(.icon-button--disabled) {\n color: var(--syn-interactive-emphasis-color-hover, var(--syn-color-primary-900));\n }\n\n :host([color=\"primary\"]) .icon-button:active:not(.icon-button--disabled) {\n color: var(--syn-interactive-emphasis-color-active, var(--syn-color-primary-950));\n }\n\n :host([color=\"neutral\"]) {\n color: var(--syn-interactive-quiet-color, var(--syn-typography-color-text));\n }\n\n :host([color=\"neutral\"]) .icon-button:hover:not(.icon-button--disabled) {\n color: var(--syn-interactive-quiet-color-hover, var(--syn-color-primary-600));\n }\n\n :host([color=\"neutral\"]) .icon-button:active:not(.icon-button--disabled) {\n color: var(--syn-interactive-quiet-color-active, var(--syn-color-primary-700));\n }\n\n :host([color=\"neutral\"]) .icon-button:focus-visible:not(.icon-button--disabled):not(:hover) {\n color: var(--syn-interactive-quiet-color, var(--syn-typography-color-text));\n }\n\n /* Sizes */\n .icon-button--small {\n font-size: var(--syn-font-size-medium);\n }\n\n .icon-button--medium {\n font-size: var(--syn-font-size-x-large);\n }\n\n .icon-button--large {\n font-size: var(--syn-font-size-2x-large);\n }\n\n /* Force user to set \"label\" prop */\n .icon-button[aria-label=\"\"] {\n border: var(--syn-border-width-large) var(--syn-color-error-600) solid;\n }\n\n .icon-button[aria-label=\"\"]::after {\n content: \"Set label prop for a11y to get rid of this text and border!\";\n font-size: var(--syn-font-size-2x-small);\n margin-left: var(--syn-spacing-2x-small);\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,oCAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/header/header.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n display: block;\n }\n\n .header {\n background: var(--syn-panel-background-color);\n box-shadow: inset 0 -1px 0 0 var(--syn-header-border-color, var(--syn-color-neutral-400));\n }\n\n /**\n * The primary content area displays one to many slotted items\n * and contains the following items:\n * - side nav state icon (OPTIONAL)\n * - company or application logo\n * - application name\n * - meta-navigation\n */\n .header__content {\n align-items: center;\n box-sizing: content-box;\n display: flex;\n min-height: 40px;\n padding: var(--syn-spacing-small) var(--syn-spacing-large);\n }\n\n /**\n * The logo slot includes the application or company logo\n */\n .header__logo ::slotted(*),\n .header__logo syn-icon {\n display: block;\n }\n\n /**\n * Make sure to use the correct color and outline for links\n */\n .header__logo ::slotted(a),\n .header__logo ::slotted(a:hover) {\n color: var(--syn-logo-color, var(--syn-color-primary-600));\n }\n\n .header__logo ::slotted(a:is(:focus-visible)) {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n /**\n * Styles for the default logo. This makes sure the default SICK logo has the correct size and color\n */\n .header__logo syn-icon,\n .header__logo syn-icon::part(svg) {\n color: var(--syn-logo-color, var(--syn-color-primary-600));\n height: 32px;\n width: auto;\n }\n\n /**\n * The label section hosts the application name\n */\n .header__label {\n color: var(--syn-typography-color-text);\n font: var(--syn-body-large-bold);\n padding: 0 var(--syn-spacing-2x-large);\n white-space: nowrap;\n }\n\n /**\n * The options menu holds an arbitrary list of <syn-icon-button />\n */\n .header__meta-navigation {\n display: flex;\n flex: 1;\n gap: var(--syn-spacing-x-small);\n justify-content: end;\n }\n\n .header__meta-navigation ::slotted(*) {\n color: var(--syn-interactive-quiet-color, var(--syn-color-neutral-950));\n display: contents;\n font-size: var(--syn-font-size-x-large);\n }\n\n /**\n * The horizontal top navigation section\n */\n .header__navigation {\n padding: 0 var(--syn-spacing-large);\n }\n\n /**\n * The burger menu icon styles\n */\n .header__burger-menu-toggle {\n align-items: center;\n background: none;\n border: none;\n color: var(--syn-interactive-quiet-color, var(--syn-color-neutral-950));\n cursor: pointer;\n display: flex;\n font-size: var(--syn-font-size-x-large);\n margin-right: calc(var(--syn-spacing-medium) + var(--syn-spacing-2x-small));\n padding: var(--syn-spacing-x-small);\n transition: var(--syn-transition-x-fast) color;\n }\n\n .header__burger-menu-toggle:hover {\n color: var(--syn-interactive-quiet-color-hover, var(--syn-color-primary-600));\n }\n\n .header__burger-menu-toggle:active {\n color: var(--syn-interactive-quiet-color-active, var(--syn-color-primary-700));\n }\n\n .header__burger-menu-toggle:focus-visible {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n /**\n * If the burger menu is provided, use a smaller spacing on the left side\n */\n .header--has-burger-menu .header__content {\n padding-left: var(--syn-spacing-medium);\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,wBAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/combobox/combobox.component.ts"],
4
- "sourcesContent": ["import type { CSSResultGroup, PropertyValues } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynPopup from '../popup/popup.component.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport SynOption from '../option/option.component.js';\nimport type SynOptGroup from '../optgroup/optgroup.js';\nimport styles from './combobox.styles.js';\nimport customStyles from './combobox.custom.styles.js';\nimport {\n checkValueBelongsToOption,\n createOptionFromDifferentTypes, filterOnlyOptgroups, getAllOptions, getAssignedElementsForSlot,\n getValueFromOption, normalizeString,\n} from './utils.js';\nimport { scrollIntoView } from '../../internal/scroll.js';\nimport { type OptionRenderer, defaultOptionRenderer } from './option-renderer.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Comboboxes allow you to choose items from a menu of predefined options.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-combobox--docs\n * @status stable\n *\n * @dependency syn-icon\n * @dependency syn-popup\n *\n * @slot - The listbox options. Must be `<syn-option>` elements.\n * You can use `<syn-optgroup>`'s to group items visually.\n * @slot label - The combobox's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.\n * @slot suffix - Used to append a presentational icon or similar element to the combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed.\n * Rotates on open and close.\n * @slot help-text - Text that describes how to use the combobox.\n * Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the combobox's menu opens.\n * @event syn-after-show - Emitted after the combobox's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the combobox's menu closes.\n * @event syn-after-hide - Emitted after the combobox's menu closes and all animations are complete.\n * @event syn-invalid - Emitted when the form control has been checked for validity\n * and its constraints aren't satisfied.\n * @event syn-error - Emitted when the combobox menu fails to open.\n *\n * @csspart form-control - The form control that wraps the label, combobox, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The combobox's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart suffix - The container that wraps the suffix slot.\n * @csspart display-input - The element that displays the selected option's label,\n * an `<input>` element.\n * @csspart listbox - The listbox container where the options are slotted\n * and the filtered options list exists.\n * @csspart filtered-listbox - The container that wraps the filtered options.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n * @csspart popup - The popup's exported `popup` part.\n * Use this to target the tooltip's popup container.\n * @csspart no-results - The container that wraps the \"no results\" message.\n *\n * @animation combobox.show - The animation to use when showing the combobox.\n * @animation combobox.hide - The animation to use when hiding the combobox.\n */\n@enableDefaultSettings('SynCombobox')\nexport default class SynCombobox extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n styles,\n formControlCustomStyles,\n customStyles,\n ];\n\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-popup': SynPopup,\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input'],\n });\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n\n private readonly localize = new LocalizeController(this);\n\n private closeWatcher: CloseWatcher | null;\n\n /** The last syn-option, that was selected by click or via keyboard navigation */\n private lastOption: SynOption | undefined;\n\n private isOptionRendererTriggered = false;\n\n private isInitialized: boolean = false;\n\n @query('.combobox') popup: SynPopup;\n\n @query('.combobox__inputs') combobox: HTMLSlotElement;\n\n @query('.combobox__display-input') displayInput: HTMLInputElement;\n\n @query('.combobox__value-input') valueInput: HTMLInputElement;\n\n @query('.combobox__listbox') listbox: HTMLSlotElement;\n\n @query('slot:not([name])') private defaultSlot: HTMLSlotElement;\n\n @state() private hasFocus = false;\n\n @state() private isUserInput = false;\n\n @state() displayLabel = '';\n\n @state() selectedOption: SynOption | undefined;\n\n @state() numberFilteredOptions = 0;\n\n @state() cachedOptions: SynOption [] = [];\n\n /** The name of the combobox, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /**\n * The current value of the combobox, submitted as a name/value pair with form data.\n */\n @property() value = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The combobox's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Placeholder text to show as a hint when the combobox is empty. */\n @property() placeholder = '';\n\n /** Disables the combobox control. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** Adds a clear button when the combobox is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /**\n * Indicates whether or not the combobox is open.\n * You can toggle this attribute to show and hide the listbox, or you can use the `show()`\n * and `hide()` methods and this attribute will reflect the combobox's open state.\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Enable this option to prevent the listbox from being clipped,\n * when the component is placed inside a container with `overflow: auto|scroll`.\n * Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n * @deprecated This property is deprecated and will be removed in the next major version.\n */\n @property({ type: Boolean }) hoist = false;\n\n /** The combobox's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The preferred placement of the combobox's menu.\n * Note that the actual placement may vary as needed to keep the listbox inside of the viewport.\n */\n @property({ reflect: true }) placement: 'top' | 'bottom' = 'bottom';\n\n /** The combobox's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element.\n * This attribute allows you to place the form control outside of a form and associate it\n * with the form that has this `id`.\n * The form must be in the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** The combobox's required attribute. */\n @property({ reflect: true, type: Boolean }) required = false;\n\n /**\n * When set to `true`, restricts the combobox to only allow selection from the available options.\n * Users will not be able to enter custom values that are not present in the list.\n */\n @property({ reflect: true, type: Boolean }) restricted = false;\n\n /**\n * A function that customizes the rendered option. The first argument is the option, the second\n * is the query string, which is typed into the combobox.\n * The function should return either a Lit TemplateResult or a string containing trusted HTML\n * to render in the shown list of filtered options.\n * If the query string should be highlighted use the `highlightOptionRenderer` function.\n */\n @property() getOption: OptionRenderer = defaultOptionRenderer;\n\n /**\n * A function used to filter options in the combobox component.\n * The default filter method is a case- and diacritic-insensitive string comparison.\n *\n * @param option - The option to be filtered.\n * @param queryString - The query string used for filtering.\n * @returns A boolean indicating whether the option should be included in the filtered results.\n */\n // eslint-disable-next-line class-methods-use-this\n @property() filter: (option: SynOption, queryString: string) => boolean = (option, queryStr) => {\n let content = option?.textContent || '';\n if (option instanceof SynOption) {\n content = option.getTextLabel();\n }\n const normalizedOption = normalizeString(content);\n const normalizedQuery = normalizeString(queryStr);\n\n if (normalizedOption.includes(normalizedQuery)) {\n return true;\n }\n\n return option?.value === queryStr;\n };\n\n /** Gets the validity state object */\n get validity() {\n return this.valueInput.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.valueInput.validationMessage;\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // Because this is a form control, it shouldn't be opened initially\n this.open = false;\n }\n\n firstUpdated() {\n this.isInitialized = true;\n this.formControlController.updateValidity();\n }\n\n protected override willUpdate(changedProperties: PropertyValues) {\n super.willUpdate(changedProperties);\n\n if (!this.isInitialized && !this.defaultValue && this.value) {\n // If the value was set initially via property binding instead of attribute, we need to set\n // the defaultValue manually to be able to reset forms and the dynamic loading of options\n // are working correctly.\n this.defaultValue = this.value;\n }\n }\n\n private addOpenListeners() {\n //\n // Listen on the root node instead of the document in case the elements are inside a shadow root\n //\n // https://github.com/synergy-design-system/synergy/issues/1763\n //\n document.addEventListener('focusin', this.handleDocumentFocusIn);\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n\n // If the component is rendered in a shadow root,\n // we need to attach the focusin listener there too\n if (this.getRootNode() !== document) {\n this.getRootNode().addEventListener('focusin', this.handleDocumentFocusIn);\n }\n\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n if (this.open) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n };\n }\n }\n\n private removeOpenListeners() {\n document.removeEventListener('focusin', this.handleDocumentFocusIn);\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n\n if (this.getRootNode() !== document) {\n this.getRootNode().removeEventListener('focusin', this.handleDocumentFocusIn);\n }\n\n this.closeWatcher?.destroy();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleDocumentFocusIn = (event: KeyboardEvent) => {\n // Close when focusing out of the combobox\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide();\n }\n };\n\n /* eslint-disable @typescript-eslint/no-floating-promises */\n // eslint-disable-next-line complexity\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n const target = event.target as HTMLElement;\n const isClearButton = target.closest('.combobox__clear') !== null;\n\n if (isClearButton) {\n return;\n }\n\n // Close when pressing escape and open / clear input if not open\n if (event.key === 'Escape') {\n if (this.open && !this.closeWatcher) {\n event.preventDefault();\n event.stopPropagation();\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n } else if (!this.open) {\n this.clearCombobox();\n }\n }\n\n // Handle enter.\n if (event.key === 'Enter') {\n const currentOption = this.getCurrentOption();\n\n // Pressing enter when focused on an input should submit the form like a native input, but\n // we wait a tick before submitting to allow users to cancel the keydown event if they need to\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n if (!this.open && !hasModifier) {\n setTimeout(() => {\n if (!event.defaultPrevented) {\n this.formControlController.submit();\n }\n });\n return;\n }\n\n if (!this.open || (currentOption && currentOption.disabled)) {\n return;\n }\n\n // Update the value based on the current selection and close it\n if (currentOption) {\n const oldValue = this.lastOption ? getValueFromOption(this.lastOption) : undefined;\n this.updateSelectedOptionsCacheAndValue(currentOption);\n\n if (this.value !== oldValue) {\n this.setSelectedOptionToSelected();\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n return;\n }\n\n // Navigate options\n if (['ArrowUp', 'ArrowDown'].includes(event.key)) {\n // Prevent scrolling\n event.preventDefault();\n event.stopPropagation();\n // Open it\n if (!this.open) {\n this.show();\n }\n\n this.selectNextOption(event.key === 'ArrowDown');\n }\n\n // Move cursor\n if (['Home', 'End'].includes(event.key)) {\n // Prevent scrolling\n event.preventDefault();\n event.stopPropagation();\n if (event.key === 'Home') {\n this.displayInput.setSelectionRange(0, 0);\n } else if (event.key === 'End') {\n this.displayInput.setSelectionRange(\n this.displayInput.value.length,\n this.displayInput.value.length,\n );\n }\n }\n };\n /* eslint-enable @typescript-eslint/no-floating-promises */\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the combobox\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide();\n }\n };\n\n private handleLabelClick() {\n this.displayInput.focus();\n }\n\n private handleComboboxMouseDown(event: MouseEvent) {\n // Ignore disabled controls\n if (this.disabled) {\n return;\n }\n\n const toggleListboxOpen = () => (this.open ? this.hide() : this.show());\n event.preventDefault();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n toggleListboxOpen().then(() => {\n setTimeout(() => this.displayInput.focus({ preventScroll: true }));\n });\n }\n\n private handleComboboxKeyDown(event: KeyboardEvent) {\n if (event.key === 'Tab') {\n return;\n }\n\n this.handleDocumentKeyDown(event);\n }\n\n private handleClearClick(event: MouseEvent) {\n event.stopPropagation();\n this.clearCombobox();\n }\n\n private clearCombobox() {\n if (this.value !== '') {\n this.value = '';\n this.displayInput.value = '';\n this.lastOption = undefined;\n this.updateSelectedOptionsCacheAndValue(undefined);\n this.displayInput.focus({ preventScroll: true });\n this.setSelectedOptionToSelected();\n\n // Emit after update\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n // eslint-disable-next-line class-methods-use-this\n private preventLoosingFocus(event: MouseEvent) {\n // Don't lose focus of the input or propagate events\n event.stopPropagation();\n event.preventDefault();\n }\n\n /* eslint-disable @typescript-eslint/no-floating-promises */\n private handleOptionClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const option = target.closest('syn-option');\n const oldValue = this.lastOption ? getValueFromOption(this.lastOption) : undefined;\n if (option && !option.disabled) {\n this.updateSelectedOptionsCacheAndValue(option);\n\n // Set focus after updating so the value is announced by screen readers\n this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));\n\n if (this.value !== oldValue) {\n this.setSelectedOptionToSelected();\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n }\n /* eslint-enable @typescript-eslint/no-floating-promises */\n\n /**\n * Selects the following or previous option.\n *\n * @param isNext - A boolean indicating whether to select the following option (true)\n * or the previous option (false).\n */\n private selectNextOption(isNext: boolean) {\n const filteredOptions = this.getAllFilteredOptions();\n\n if (filteredOptions.length === 0) {\n return;\n }\n\n const currentOption = this.getCurrentOption();\n const currentIndex = filteredOptions.indexOf(currentOption!);\n let newIndex = Math.max(0, currentIndex);\n\n if (isNext) {\n const nextIndex = currentIndex + 1;\n newIndex = (nextIndex > filteredOptions.length - 1) ? 0 : nextIndex;\n } else {\n const previousIndex = currentIndex - 1;\n newIndex = previousIndex < 0 ? filteredOptions.length - 1 : previousIndex;\n }\n this.setCurrentOption(filteredOptions[newIndex]);\n scrollIntoView(this.getCurrentOption()!, this.listbox, 'vertical', 'auto');\n }\n\n private getAllFilteredOptions() {\n return this.getSlottedOptions().filter(option => !option.hidden);\n }\n\n private getCurrentOption() {\n return this.getAllFilteredOptions().find(option => option.current);\n }\n\n // Sets the current option, which is the option the user is currently interacting with\n // (e.g. via keyboard). Only one option may be \"current\" at a time.\n private setCurrentOption(option: SynOption | null) {\n const allOptions = this.getAllFilteredOptions();\n\n // Clear selection\n this.displayInput.removeAttribute('aria-activedescendant');\n\n allOptions.forEach(el => {\n // eslint-disable-next-line no-param-reassign\n el.current = false;\n el.setAttribute('aria-selected', 'false');\n });\n\n // Select the target option\n if (option) {\n // eslint-disable-next-line no-param-reassign\n option.current = true;\n option.setAttribute('aria-selected', 'true');\n this.displayInput.setAttribute('aria-activedescendant', option.id);\n }\n }\n\n /**\n * Updates the selected options cache, the current value, and the display value\n */\n // eslint-disable-next-line complexity\n private updateSelectedOptionsCacheAndValue(option: SynOption | undefined) {\n this.selectedOption = option;\n\n let optionValue;\n\n if (option) {\n this.lastOption = option;\n optionValue = String(getValueFromOption(option));\n } else if (this.restricted && !this.isValidValue() && this.value !== '' && !this.isUserInput) {\n // if an invalid value was set via property binding for `restricted`comboboxes,\n // reset to last valid value\n this.resetToLastValidValue();\n return;\n }\n\n // Update the value\n this.value = optionValue ?? this.displayInput.value;\n\n // Update validity and display label\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.displayLabel = this.selectedOption?.getTextLabel() ?? this.displayInput.value;\n this.formControlController.updateValidity();\n });\n }\n\n private setSelectedOptionToSelected() {\n const slottedOptions = this.getSlottedOptions();\n slottedOptions.forEach((opt) => {\n // eslint-disable-next-line no-param-reassign\n opt.selected = false;\n });\n\n if (this.selectedOption) {\n this.selectedOption.selected = true;\n }\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n @watch(['filter', 'getOption'], { waitUntilFirstUpdate: true })\n handlePropertiesChange() {\n this.createComboboxOptionsFromQuery(this.value);\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n\n // Close the listbox when the control is disabled\n if (this.disabled) {\n this.open = false;\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.handleOpenChange();\n }\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n handleValueChange() {\n this.updateSelectedOptionFromValue();\n this.setCurrentOption(null);\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open && !this.disabled) {\n if (this.numberFilteredOptions === 0 && !this.restricted) {\n // Don't open the listbox if there are no options and it is not restricted\n this.open = false;\n this.emit('syn-error');\n return;\n }\n\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.listbox.hidden = false;\n this.popup.active = true;\n\n const { keyframes, options } = getAnimation(this, 'combobox.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n this.emit('syn-after-show');\n return;\n }\n\n this.setCurrentOption(null);\n this.displayInput.removeAttribute('aria-activedescendant');\n // Hide\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n await stopAnimations(this);\n const { keyframes, options } = getAnimation(this, 'combobox.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.listbox.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n\n /**\n * Shows the listbox. If it is not possible to open the listbox, because there are no\n * appropriate filtered options, a syn-error is emitted and the listbox stays closed.\n */\n async show() {\n if (this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = true;\n return Promise.race([waitForEvent(this, 'syn-after-show'), waitForEvent(this, 'syn-error')]);\n }\n\n /** Hides the listbox. */\n async hide() {\n if (!this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Checks for validity but does not show a validation message.\n * Returns `true` when valid and `false` when invalid.\n */\n checkValidity() {\n return this.valueInput.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.valueInput.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.valueInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the control. */\n focus(options?: FocusOptions) {\n this.displayInput.focus(options);\n }\n\n /** Removes focus from the control. */\n blur() {\n this.displayInput.blur();\n }\n\n /* eslint-disable no-param-reassign, @typescript-eslint/no-floating-promises */\n private createComboboxOptionsFromQuery(queryString: string) {\n this.numberFilteredOptions = 0;\n this.isOptionRendererTriggered = true;\n\n // This is needed for angular. For some reason the handleDefaultSlotChange is not triggered\n // initially and therefore the cachedOptions are not set.\n if (this.cachedOptions.length === 0) {\n this.cacheSlottedOptionsAndOptgroups();\n }\n\n // Update the syn-option's based on the query string and getOption\n this.getSlottedOptions()\n .forEach(option => {\n // Use the original cached option, to do changes on it\n const cachedOption = this.cachedOptions.find(o => o.id === option.id) || option;\n const optionResult = this.getOption(cachedOption, queryString);\n let updatedOption = createOptionFromDifferentTypes(optionResult);\n\n // The type of the getOption function is incorrect, therefore use the original option\n if (!updatedOption) {\n updatedOption = cachedOption;\n }\n\n const hideOption = !(this.filter(updatedOption, queryString) || queryString === '');\n updatedOption.hidden = hideOption;\n option.replaceWith(updatedOption);\n\n if (!hideOption) {\n this.numberFilteredOptions += 1;\n }\n });\n\n // Update the syn-optgroup's if available\n const visibleOptgroups = this.getSlottedOptGroups().filter(optgroup => {\n const options = getAllOptions(Array.from(optgroup.children) as HTMLElement[]).flat();\n const isVisible = options.some(option => !option.hidden);\n optgroup.hidden = !isVisible;\n return isVisible;\n });\n\n // Hide the divider of the first visible optgroup, as it can unfortunately not be hidden via css\n visibleOptgroups[0]?.style.setProperty('--display-divider', 'none');\n\n // This is needed so the component does not endlessly rerender,\n // because the slot change event is endlessly retriggered otherwise.\n setTimeout(() => {\n this.isOptionRendererTriggered = false;\n }, 0);\n }\n /* eslint-enable no-param-reassign, @typescript-eslint/no-floating-promises */\n\n private async handleInput() {\n const inputValue = this.displayInput.value;\n const cachedLastOption = this.lastOption;\n this.isUserInput = true;\n\n this.value = inputValue;\n await this.updateComplete;\n this.isUserInput = false;\n this.lastOption = cachedLastOption;\n this.open = this.restricted || this.numberFilteredOptions > 0;\n this.selectedOption = undefined;\n this.formControlController.updateValidity();\n this.emit('syn-input');\n }\n\n /**\n * Checks if the current value is available in the options list.\n * This is used to determine if the value is valid when the combobox is restricted.\n *\n * @returns `true` if the current value is available in the options list,\n * otherwise `false`.\n */\n private isValidValue(): boolean {\n const isValid = this.cachedOptions.some(\n option => getValueFromOption(option) === this.value,\n );\n return isValid;\n }\n\n private getOptionFromValue(): SynOption | undefined {\n return this.cachedOptions.find(option => checkValueBelongsToOption(this.value, option));\n }\n\n /**\n * Resets the value to the last valid value or to an empty string.\n */\n private resetToLastValidValue() {\n let label = '';\n let value = '';\n\n if (this.lastOption) {\n value = String(getValueFromOption(this.lastOption));\n label = this.lastOption.getTextLabel();\n }\n\n // Wait for the popup close animation to be finished before updating the value.\n // This is to prevent flickering of the listbox, as the value is potentially reset to empty\n // string and the whole options would be shown again.\n const popupAnimations = this.popup?.popup?.getAnimations?.() ?? [];\n const waitForAnimations = popupAnimations.length\n ? Promise.all(\n popupAnimations.map(animation => (animation.playState === 'finished'\n ? Promise.resolve()\n : new Promise<void>(resolve => { animation.addEventListener('finish', () => resolve(), { once: true }); }))),\n )\n : Promise.resolve();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForAnimations.then(() => {\n this.value = value;\n this.displayInput.value = label;\n this.formControlController.updateValidity();\n });\n }\n\n private handleChange() {\n // Only update the value and emit the event, if the change event occurred by\n // the user typing something in and removing focus of the combobox\n if (this.selectedOption) {\n return;\n }\n\n // If the value is not valid, we need to reset the value to the last valid value\n if (this.restricted && !this.isValidValue() && this.value !== '') {\n this.resetToLastValidValue();\n return;\n }\n\n // Otherwise, update value from input and emit change\n this.value = this.displayInput.value;\n this.lastOption = this.getOptionFromValue();\n this.selectedOption = this.getOptionFromValue();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.formControlController.updateValidity();\n });\n this.setSelectedOptionToSelected();\n this.emit('syn-change');\n }\n\n private getSlottedOptions() {\n return getAllOptions(getAssignedElementsForSlot(this.defaultSlot)).flat();\n }\n\n private getSlottedOptGroups(): SynOptGroup[] {\n return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));\n }\n\n /* eslint-disable no-param-reassign */\n private cacheSlottedOptionsAndOptgroups() {\n const slottedOptions = this.getSlottedOptions();\n const slottedOptgroups = this.getSlottedOptGroups();\n\n slottedOptions.forEach((option, index) => {\n option.id = option.id || `syn-combobox-option-${index}`;\n });\n\n slottedOptgroups.forEach((optgroup, index) => {\n optgroup.id = optgroup.id || `syn-combobox-optgroup-${index}`;\n });\n\n // Cache the slotted options\n this.cachedOptions = [...slottedOptions];\n }\n /* eslint-enable no-param-reassign */\n\n private updateSelectedOptionFromValue(): void {\n // check if the value has a corresponding option via value or text content\n // for empty values use the text content, as then the values of the option are not set\n const option = this.getOptionFromValue();\n\n if (!option) {\n this.displayInput.value = this.value;\n }\n\n this.updateSelectedOptionsCacheAndValue(option);\n this.createComboboxOptionsFromQuery(this.value);\n }\n\n /* eslint-disable @typescript-eslint/no-floating-promises, complexity */\n /* @internal - used by options to update labels */\n public handleDefaultSlotChange() {\n // We need to check if the slotChange is triggered by our own changes we do to the already\n // slotted options or because new options were slotted into the combobox\n const slottedOptions = this.getSlottedOptions();\n const optionsLength = slottedOptions.length;\n const cachedOptionsLength = this.cachedOptions.length;\n\n if (!this.isOptionRendererTriggered || cachedOptionsLength !== optionsLength) {\n // Rerun this handler when <syn-option> is registered\n if (!customElements.get('syn-option')) {\n customElements.whenDefined('syn-option').then(() => this.handleDefaultSlotChange());\n return;\n }\n\n this.cacheSlottedOptionsAndOptgroups();\n\n this.updateSelectedOptionFromValue();\n\n if (this.hasFocus && this.value.length > 0 && !this.open) {\n this.show();\n }\n }\n }\n /* eslint-enable @typescript-eslint/no-floating-promises, complexity */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n // eslint-disable-next-line complexity\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;\n const isPlaceholderVisible = this.placeholder && this.value.length === 0;\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-label': hasLabel,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n })}\n >\n <label\n id=\"label\"\n part=\"form-control-label\"\n class=\"form-control__label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.handleLabelClick}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <syn-popup\n class=${classMap({\n combobox: true,\n 'combobox--bottom': this.placement === 'bottom',\n 'combobox--disabled': this.disabled,\n 'combobox--focused': this.hasFocus,\n 'combobox--large': this.size === 'large',\n 'combobox--medium': this.size === 'medium',\n 'combobox--open': this.open,\n 'combobox--placeholder-visible': isPlaceholderVisible,\n 'combobox--small': this.size === 'small',\n 'combobox--standard': true,\n 'combobox--top': this.placement === 'top',\n })}\n placement=${`${this.placement}-start`}\n strategy=${this.hoist ? 'fixed' : 'absolute'}\n flip\n shift\n sync=\"width\"\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n exportparts=\"popup\"\n >\n <div\n part=\"combobox\"\n class=\"combobox__inputs\"\n slot=\"anchor\"\n @keydown=${this.handleComboboxKeyDown}\n @mousedown=${this.handleComboboxMouseDown}\n >\n <slot part=\"prefix\" name=\"prefix\" class=\"combobox__prefix\"></slot>\n\n <input\n part=\"display-input\"\n class=\"combobox__display-input\"\n type=\"text\"\n placeholder=${this.placeholder}\n .disabled=${this.disabled}\n .value=${this.displayLabel}\n autocomplete=\"off\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n aria-controls=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-haspopup=\"listbox\"\n aria-labelledby=\"label\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n role=\"combobox\"\n tabindex=\"0\"\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n\n aria-autocomplete=\"list\"\n aria-owns=\"listbox\"\n @input=${this.handleInput}\n @change=${this.handleChange}\n />\n\n <input\n class=\"combobox__value-input\"\n type=\"text\"\n ?disabled=${this.disabled}\n ?required=${this.required}\n .value=${this.value}\n tabindex=\"-1\"\n aria-hidden=\"true\"\n @focus=${() => this.focus()}\n @invalid=${this.handleInvalid}\n />\n \n ${hasClearIcon\n ? html`\n <button\n part=\"clear-button\"\n class=\"combobox__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @mousedown=${this.preventLoosingFocus}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n\n <slot name=\"suffix\" part=\"suffix\" class=\"combobox__suffix\"></slot>\n\n <slot name=\"expand-icon\" part=\"expand-icon\" class=\"combobox__expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </div>\n\n <div\n id=\"listbox\"\n role=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-labelledby=\"label\"\n part=\"listbox\"\n class=\"combobox__listbox\"\n tabindex=\"-1\"\n @mousedown=${this.preventLoosingFocus}\n @mouseup=${this.handleOptionClick}\n >\n <div class=\"listbox__options\" part=\"filtered-listbox\">\n ${this.numberFilteredOptions === 0\n ? html`<span\n class=\"listbox__no-results\"\n aria-hidden=\"true\"\n part=\"no-results\"\n >${this.localize.term('noResults')}</span\n >`\n : ''}\n <slot @slotchange=${this.handleDefaultSlotChange}></slot> \n </div>\n </div>\n </syn-popup>\n </div>\n \n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n\nsetDefaultAnimation('combobox.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 },\n ],\n options: { duration: 100, easing: 'ease' },\n});\n\nsetDefaultAnimation('combobox.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.9 },\n ],\n options: { duration: 100, easing: 'ease' },\n});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAmFvC,IAAqB,cAArB,cAAyC,eAA6C;AAAA,EAAtF;AAAA;AAcE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,YAAY,WAAW;AAAA,IAC/C,CAAC;AAED,SAAiB,oBAAoB,IA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SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
6
- "names": ["keyframes", "options"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/side-nav/side-nav.component.ts"],
4
- "sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './side-nav.styles.js';\nimport SynDrawer from '../drawer/drawer.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynNavItem from '../nav-item/nav-item.component.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport { getAnimation, setAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { unlockBodyScrolling } from '../../internal/scroll.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n * @dependency syn-icon\n * @dependency syn-nav-item\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n * @slot toggle-label - The label of the toggle nav-item for variant=\"sticky\".\n * @slot toggle-icon - An icon to use in lieu of the default icon for the toggle nav-item\n * for variant=\"sticky\".\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n (where the footer slot content is rendered)\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n * @csspart panel - The side-nav's panel (where the whole content is rendered).\n * @csspart body - The side-nav's body (where the default slot content is rendered)\n * @csspart drawer__base - The drawer's base wrapper\n * @csspart toggle-nav-item - The nav-item to toggle open state for variant=\"sticky\"\n * @csspart toggle-icon - The icon of the toggle nav-item for variant=\"sticky\"\n * @csspart toggle-label - The label of the toggle nav-item for variant=\"sticky\".\n\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav\n * in variant=\"default\".\n * @animation sideNav.showRail - The animation to use when showing the side-nav in variant=\"rail\"\n * and variant=\"sticky\".\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav\n * in variant=\"default\".\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in variant=\"rail\"\n * and variant=\"sticky\".\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\n@enableDefaultSettings('SynSideNav')\nexport default class SynSideNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n 'syn-drawer': SynDrawer,\n 'syn-icon': SynIcon,\n 'syn-nav-item': SynNavItem,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'footer');\n\n private readonly localize = new LocalizeController(this);\n\n private timeout: NodeJS.Timeout;\n\n /**\n * Current animation active state\n */\n @state() private isAnimationActive = false;\n\n /**\n * Reference to the drawer\n */\n @query('.side-nav__drawer') private drawer: SynDrawer;\n\n /**\n * Indicates whether or not the side-nav is open.\n * You can toggle this attribute to show and hide the side-nav, or you can use the `show()` and\n * `hide()` methods and this attribute will reflect the side-nav's open state.\n *\n * Depending on the \"variant\" attribute, the behavior will differ.\n *\n * __Default__:\n * With `open` will show the side-nav with an overlay.\n * Without `open`, the side-nav will be hidden.\n *\n * __Rail__:\n * With `open` will show the whole side-nav with an overlay for touch devices\n * or without an overlay for non-touch devices.\n * Without `open`, the side-nav will only show the prefix of nav-item's.\n *\n * __Sticky__:\n * With `open` will show the whole side-nav with an overlay for touch devices\n * or without an overlay for non-touch devices.\n * Without `open`, the side-nav will only show the prefix of nav-item's.\n *\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Use the rail attribute to only show the prefix of navigation items in closed state.\n * This will open on hover on the rail navigation.\n * On touch devices the navigation opens on click and shows an overlay.\n *\n * Note: The Rail is only an option if all Navigation Items on the first level have an Icon.\n * If this is not the case you should use a burger navigation.\n *\n * @deprecated Use the `variant` attribute with `rail` instead.\n * Will be removed in synergy version 3.0\n */\n @property({ reflect: true, type: Boolean }) rail = false;\n\n /**\n * The variant that should be used to show the side navigation.\n *\n * The following variants are supported:\n * - **default** (default): Always shows the whole content and additionally an overlay.\n * This makes especially sense for applications, where you navigate to a place and stay\n * there for a longer time.\n * - **rail**: Only show the prefix of navigation items in closed state.\n * This will open on hover on the rail navigation.\n * On touch devices the navigation opens on click and shows an overlay.\n * Note: The rail variant is only an option if all Navigation Items on the first level\n * have an Icon.\n * If this is not the case you should use a burger navigation.\n * - **sticky**: The side-nav has a pin button to show the side-nav in small (icon only)\n * and full width. This variant is only possible for non-nested navigation items.\n * Note: The sticky variant is only an option if all Navigation Items on the first level\n * have an Icon and if there are only \"first level\" items.\n */\n @property({ reflect: true }) variant: 'default' | 'rail' | 'sticky' = 'default';\n\n /**\n * By default, the side-nav traps the focus if in variant=\"default\" and open.\n * To disable the focus trapping, set this attribute.\n */\n @property({ attribute: 'no-focus-trapping', reflect: true, type: Boolean }) noFocusTrapping = false;\n\n private setDelayedCallback(callback: () => void) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(callback, 100);\n }\n\n private handleMouseEnter() {\n // Debounce mouse events, to avoid infinite loop of open / closing in variant=\"rail\"\n this.setDelayedCallback(() => {\n this.open = true;\n });\n }\n\n private handleMouseLeave() {\n // Debounce mouse events, to avoid infinite loop of open / closing in variant=\"rail\"\n this.setDelayedCallback(() => {\n this.open = false;\n });\n }\n\n private handleRequestClose() {\n if (this.open) {\n this.open = false;\n }\n }\n\n private addMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private removeMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private setDrawerAnimations() {\n const showAnimation = getAnimation(this, `sideNav.show${this.variant === 'default' ? 'NonRail' : 'Rail'}`, { dir: this.localize.dir() });\n const hideAnimation = getAnimation(this, `sideNav.hide${this.variant === 'default' ? 'NonRail' : 'Rail'}`, { dir: this.localize.dir() });\n const hideOverlay = getAnimation(this, 'sideNav.overlay.hide', { dir: this.localize.dir() });\n const showOverlay = getAnimation(this, 'sideNav.overlay.show', { dir: this.localize.dir() });\n\n setAnimation(this.drawer, 'drawer.showStart', showAnimation);\n setAnimation(this.drawer, 'drawer.hideStart', hideAnimation);\n setAnimation(this.drawer, 'drawer.overlay.hide', hideOverlay);\n setAnimation(this.drawer, 'drawer.overlay.show', showOverlay);\n }\n\n @watch('variant', { waitUntilFirstUpdate: true })\n handleVariantChange() {\n this.setDrawerAnimations();\n this.drawer.forceVisibility(this.variant !== 'default');\n\n switch (this.variant) {\n case 'rail':\n // For hover handling\n this.addMouseListener();\n break;\n case 'sticky':\n case 'default':\n default:\n this.removeMouseListener();\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n handleOpenChange() {\n if (this.variant === 'default') {\n return;\n }\n\n this.isAnimationActive = true;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForEvent(this.drawer, `syn-after-${this.open ? 'show' : 'hide'}`).then(() => {\n this.isAnimationActive = false;\n });\n }\n\n @watch('noFocusTrapping', { waitUntilFirstUpdate: true })\n handleFocusTrapping() {\n if (this.variant === 'default') {\n if (this.noFocusTrapping) {\n this.drawer.modal.activateExternal();\n } else {\n this.drawer.modal.deactivateExternal();\n }\n }\n }\n\n /** Shows the side-nav. */\n async show() {\n if (this.open) {\n return undefined;\n }\n this.open = true;\n\n return waitForEvent(this.drawer, 'syn-after-show');\n }\n\n /** Hides the side-nav */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n\n return waitForEvent(this.drawer, 'syn-after-hide');\n }\n\n constructor() {\n super();\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.addEventListener('syn-initial-focus', (event) => {\n if (this.variant !== 'default') {\n // We need to do this, to stop the drawer from giving focus to the panel\n event.preventDefault();\n\n // The originalTrigger needs to be removed, otherwise when closing the drawer,\n // the first focused nav-item is focused again...\n // eslint-disable-next-line @typescript-eslint/dot-notation\n this.drawer['originalTrigger'] = null;\n }\n });\n\n this.addEventListener('focusin', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n // Open the side-nav if it`s in variant=\"rail\", closed and the focused element is a nav-item\n if (targetTag === 'syn-nav-item' && this.variant === 'rail' && !this.open) {\n this.open = true;\n }\n });\n\n this.addEventListener('focusout', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n const relatedTargetTag = (event.relatedTarget as HTMLElement)?.tagName.toLowerCase();\n\n // Close the side-nav, if it`s in variant=\"rail\", open and the next focused element\n // is no longer a nav-item\n if (targetTag === 'syn-nav-item' && relatedTargetTag !== 'syn-nav-item' && this.variant === 'rail' && this.open) {\n this.open = false;\n }\n });\n }\n\n /**\n * Initial setup for first render like special variant=\"rail\" and variant=\"sticky\" handling\n * and drawer animations.\n * */\n firstUpdated() {\n this.setDrawerAnimations();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n this.drawer.forceVisibility(this.variant !== 'default');\n // change tabindex of drawer to make only nav-items focusable and not the panel of the drawer\n (this.drawer.shadowRoot!.querySelector('.drawer__panel') as HTMLElement).tabIndex = -1;\n });\n\n switch (this.variant) {\n case 'rail':\n // Wait for the drawer`s update to be completed\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n this.addMouseListener();\n });\n break;\n case 'sticky': break;\n case 'default':\n default:\n if (this.noFocusTrapping) {\n // Disable the focus trapping of the modal\n this.drawer.modal.activateExternal();\n }\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove modal listeners\n if (this.drawer) {\n unlockBodyScrolling(this.drawer);\n this.drawer.modal.deactivate();\n }\n }\n\n // eslint-disable-next-line complexity\n protected override willUpdate(changedProperties: PropertyValues) {\n super.willUpdate(changedProperties);\n\n // TODO: this can be removed in synergy version 3.0\n if (changedProperties.has('rail')) {\n if (this.rail) {\n // Add deprecation console warning for stakeholder, which do not use linting\n // to get their attention\n console.warn('<syn-side-nav/>: The `rail` attribute is deprecated. Please use the `variant` attribute with `rail` instead. It will be removed in synergy version 3.0');\n }\n\n // The `variant` should be adapted to the `rail` attribute,\n // if it was explicitly set or unset by the user.\n // This is needed to be backwards compatible with the `rail` attribute\n if (!changedProperties.has('variant') || this.rail) {\n this.variant = this.rail ? 'rail' : 'default';\n }\n }\n }\n\n private toggleOpenState() {\n this.open = !this.open;\n }\n\n // eslint-disable-next-line complexity\n render() {\n const isTouch = window.navigator.maxTouchPoints > 0 || !!('ontouchstart' in window);\n const hasFooter = this.hasSlotController.test('footer');\n const showFooterDivider = hasFooter || this.variant === 'sticky';\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav\n class=${classMap({\n 'side-nav': true,\n 'side-nav--animation': this.isAnimationActive,\n 'side-nav--fix': this.variant === 'default',\n 'side-nav--has-footer': hasFooter,\n 'side-nav--open': this.open,\n 'side-nav--rail': this.variant === 'rail',\n 'side-nav--sticky': this.variant === 'sticky',\n 'side-nav--touch': isTouch,\n })}\n part=\"base\"\n >\n \n <syn-drawer\n class=\"side-nav__drawer\"\n ?contained=${this.variant !== 'default'}\n exportparts=\"overlay,panel,body,base:drawer__base\"\n label=${this.localize.term('sideNav')}\n no-header\n ?open=${this.open}\n part=\"drawer\"\n placement=\"start\"\n @syn-request-close=${this.handleRequestClose} \n >\n <div part=\"content-container\" class=\"side-nav__content-container\">\n <slot part=\"content\"></slot>\n </div>\n \n <footer class=\"side-nav__footer\" part=\"footer-container\" slot=\"footer\"> \n\n ${showFooterDivider ? html`<syn-divider part=\"footer-divider\" class=\"side-nav__footer-divider\"></syn-divider>` : ''}\n <slot name=\"footer\" part=\"footer\" ></slot>\n ${this.variant === 'sticky'\n ? html`<syn-nav-item part=\"toggle-nav-item\" class=\"side-nav__toggle-nav-item\" @click=${this.toggleOpenState} ?divider=${hasFooter}>\n <slot name=\"toggle-icon\" slot=\"prefix\" class=\"side-nav__toggle-icon\">\n <syn-icon library=\"system\" name=\"sticky_sidebar\" part=\"toggle-icon\"></syn-icon>\n </slot>\n <slot name=\"toggle-label\" part=\"toggle-label\">\n ${(!this.open && !this.isAnimationActive) ? this.localize.term('sideNavShow') : this.localize.term('sideNavHide')}\n </slot>\n </syn-nav-item>`\n : ''\n }\n \n </footer>\n\n </syn-drawer>\n\n </nav>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n\n// Show animations\nsetDefaultAnimation('sideNav.showRail', {\n keyframes: [\n { width: 'var(--side-nav-rail-width)' },\n { width: 'var(--side-nav-open-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.showNonRail', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Hide animations\nsetDefaultAnimation('sideNav.hideNonRail', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.hideRail', {\n keyframes: [\n { width: 'var(--side-nav-open-width)' },\n { width: 'var(--side-nav-rail-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Overlay animations\nsetDefaultAnimation('sideNav.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 },\n});\n\nsetDefaultAnimation('sideNav.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 },\n});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AA6EvC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAuMrD,cAAc;AACZ,UAAM;AA9LR,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,QAAQ;AAEtF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAO9C,SAAQ,oBAAoB;AA6BO,gBAAO;AAaP,gBAAO;AAoBtB,mBAAyC;AAMM,2BA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,GAAG,WAAW,QAAQ;AAAA,IACjC,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,EAC/B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,uBAAuB;AAAA,EACzC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,IAC7B,EAAE,SAAS,GAAG,WAAW,QAAQ;AAAA,EACnC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW;AAAA,IACT,EAAE,OAAO,6BAA6B;AAAA,IACtC,EAAE,OAAO,6BAA6B;AAAA,EACxC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,wBAAwB;AAAA,EAC1C,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,wBAAwB;AAAA,EAC1C,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/button/button.custom.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n .button {\n font-weight: var(--syn-font-weight-bold);\n }\n\n .button:focus-visible {\n outline: var(--syn-focus-ring-color) solid var(--syn-focus-ring-width);\n outline-offset: var(--syn-focus-ring-width);\n }\n\n /** #429: Use token for opacity */\n .button--disabled {\n opacity: var(--syn-input-disabled-opacity);\n }\n\n /*\n * Adjustments for button label paddings\n * @see https://github.com/synergy-design-system/synergy-design-system/issues/243\n */\n .button--has-prefix.button--small .button__label {\n padding-inline-start: var(--syn-spacing-2x-small);\n }\n\n .button--has-suffix.button--small .button__label,\n .button--caret.button--small .button__label {\n padding-inline-end: var(--syn-spacing-2x-small);\n }\n\n .button--has-prefix.button--medium .button__label {\n padding-inline-start: var(--syn-spacing-x-small);\n }\n\n .button--has-suffix.button--medium .button__label,\n .button--caret.button--medium .button__label {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n /**\n * Icon-only buttons\n */\n .button--small .button__label.button__icon-only {\n padding: 0 calc(var(--syn-spacing-x-small) + var(--syn-spacing-4x-small));\n }\n\n .button--small .button__label::slotted(syn-icon) {\n font-size: var(--syn-font-size-medium);\n vertical-align: -3px;\n }\n\n .button--medium .button__label.button__icon-only {\n padding: 0 calc(var(--syn-spacing-small) - var(--syn-spacing-4x-small));\n }\n\n .button--medium .button__label::slotted(syn-icon) {\n font-size: var(--syn-font-size-x-large);\n vertical-align: -6px;\n }\n\n .button--large .button__label.button__icon-only {\n padding: 0 calc(var(--syn-spacing-medium) - var(--syn-spacing-4x-small));\n }\n\n .button--large .button__label::slotted(syn-icon) {\n font-size: var(--syn-font-size-2x-large);\n vertical-align: -8px;\n }\n\n /**\n * Size modifiers\n */\n .button--small {\n border-radius: var(--syn-button-border-radius-small, var(--syn-input-border-radius-small));\n }\n\n .button--medium {\n border-radius: var(--syn-button-border-radius-medium, var(--syn-input-border-radius-medium));\n }\n\n .button--large {\n border-radius: var(--syn-button-border-radius-large, var(--syn-input-border-radius-large));\n }\n\n /*\n * Standard buttons\n */\n .button--filled.button--primary {\n background: var(--syn-button-color, var(--syn-color-primary-600));\n border-color: var(--syn-button-color, var(--syn-color-primary-600));\n color: var(--syn-button-filled-color-text, var(--syn-color-neutral-0));\n }\n\n .button--filled.button--primary.button--disabled {\n background-color: var(--syn-color-neutral-600);\n border-color: var(--syn-color-neutral-600);\n color: var(--syn-typography-color-text-inverted);\n }\n\n .button--filled.button--primary:hover:not(.button--disabled) {\n background-color: var(--syn-button-color-hover, var(--syn-color-primary-900));\n border-color: var(--syn-button-color-hover, var(--syn-color-primary-900));\n color: var(--syn-button-filled-color-text-hover, var(--syn-color-neutral-0));\n }\n\n .button--filled.button--primary:active:not(.button--disabled) {\n background-color: var(--syn-button-color-active, var(--syn-color-primary-900));\n border-color: var(--syn-button-color-active, var(--syn-color-primary-900));\n color: var(--syn-button-filled-color-text-active, var(--syn-color-neutral-0));\n }\n\n /*\n * Outline buttons\n */\n .button--outline {\n /** #901: Use token for border width */\n border-width: var(--syn-input-border-width);\n }\n\n .button--outline.button--primary {\n border-color: var(--syn-button-color, var(--syn-color-primary-600));\n color: var(--syn-button-outline-color-text, var(--syn-color-primary-600));\n }\n\n .button--outline.button--primary.button--disabled {\n background: none;\n border-color: var(--syn-color-neutral-600);\n color: var(--syn-color-neutral-600);\n }\n\n .button--outline.button--primary:hover:not(.button--disabled),\n .button--outline.button--primary.button--checked:not(.button--disabled) {\n background-color: var(--syn-button-outline-color-hover, var(--syn-color-primary-900));\n border-color: var(--syn-button-outline-color-hover, var(--syn-color-primary-900));\n color: var(--syn-button-outline-color-text-hover, var(--syn-color-neutral-0));\n }\n\n .button--outline.button--primary:active:not(.button--disabled) {\n background-color: var(--syn-button-outline-color-active, var(--syn-color-primary-950));\n border-color: var(--syn-button-outline-color-active, var(--syn-color-primary-950));\n color: var(--syn-button-outline-color-text-active, var(--syn-color-neutral-0));\n }\n\n /*\n * Text buttons\n */\n .button--text {\n color: var(--syn-button-text-color-text, var(--syn-color-primary-600));\n }\n\n .button--text:hover:not(.button--disabled) {\n color: var(--syn-button-text-color-text-hover, var(--syn-color-primary-900));\n }\n\n .button--text:focus-visible:not(.button--disabled) {\n color: var(--syn-button-color, var(--syn-color-primary-500));\n }\n\n .button--text.button--primary:active:not(.button--disabled) {\n color: var(--syn-button-text-color-text-active, var(--syn-color-primary-950));\n }\n\n .button--text.button--primary.button--disabled {\n color: var(--syn-color-neutral-600);\n }\n\n /**\n * Button spacing\n */\n .button.button--small.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button.button--small.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button.button--small.button--has-prefix .button__prefix, \n .button.button--small.button--has-suffix .button__suffix {\n font-size: var(--syn-spacing-medium);\n }\n\n .button.button--medium.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-medium);\n } \n\n .button.button--medium.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-medium);\n }\n\n .button.button--medium.button--has-prefix .button__prefix, \n .button.button--medium.button--has-suffix .button__suffix {\n font-size: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-prefix .button__label {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button.button--large.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-suffix .button__label {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button.button--large.button--has-prefix .button__prefix, \n .button.button--large.button--has-suffix .button__suffix {\n font-size: var(--syn-font-size-2x-large);\n }\n\n /*\n * Caret modifier\n */\n .button--caret.button--small .button__caret{\n font-size: var(--syn-font-size-medium);\n }\n\n .button--caret.button--medium .button__caret{\n font-size: var(--syn-font-size-x-large);\n }\n\n .button--caret.button--large .button__caret{\n font-size: var(--syn-font-size-2x-large);\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/nav-item/nav-item.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /**\n * Default alignment is inline block when we are in horizontal mode\n */\n :host {\n /**\n * The indentation property defines the current \"level\" the component is on\n * It may be set per hand, but is normally set during the render phase\n * of a <syn-nav-item /> for slotted children\n */\n --indentation: 0;\n\n /**\n * Defines the amount of pixels each indentation level will shift the content to the left\n */\n --indentation-stepping: var(--syn-spacing-x-large);\n\n /**\n * Display property of the children. Defaults to \"contents\"\n */\n --display-children: contents;\n\n display: block;\n }\n\n /**\n * Switch alignment to inline-block when we are in horizontal mode\n */\n :host([horizontal]) {\n display: inline-block;\n }\n\n /**\n * Core nav item wrapper\n */\n .nav-item {\n align-items: center;\n background: transparent;\n border: none;\n box-shadow: inset 0 -1px 0 0 transparent;\n box-sizing: border-box;\n color: var(--syn-typography-color-text);\n cursor: pointer;\n display: inline-flex;\n font: var(--syn-font-sans);\n font-size: var(--syn-font-size-small);\n min-height: var(--syn-spacing-2x-large);\n padding: var(--syn-spacing-small) var(--syn-spacing-large);\n position: relative;\n text-align: left;\n text-decoration: none;\n transition: background-color var(--syn-transition-fast) ease-in-out, box-shadow var(--syn-transition-fast) ease-in-out;\n width: 100%;\n z-index: 0;\n }\n\n .nav-item:focus-visible {\n outline: none;\n }\n\n .nav-item:focus-visible::after {\n content: '';\n display: block;\n height: 100%;\n left: calc(var(--syn-spacing-x-small) * -1);\n outline: var(--syn-focus-ring);\n outline-offset: -2px;\n position: absolute;\n top: 0;\n width: calc(100% + 2 * var(--syn-spacing-x-small));\n }\n\n .nav-item--vertical:focus-visible::after {\n left: 0;\n width: 100%;\n }\n\n /**\n * Horizontal nav items use narrower paddings\n */\n .nav-item--horizontal {\n padding: var(--syn-spacing-small) 0;\n }\n\n /**\n * Nav Items acting as accordion use a slightly narrower padding on the right side\n */\n .nav-item.nav-item-is-accordion {\n padding-right: var(--syn-spacing-medium);\n }\n\n .nav-item--disabled {\n cursor: not-allowed;\n }\n\n .nav-item--current {\n font-weight: var(--syn-font-weight-bold);\n }\n\n /**\n * Basic set up for the nav item prefix.\n */\n .nav-item:not(.nav-item--disabled)::before {\n background: var(--syn-interactive-background-color-hover, var(--syn-color-neutral-50));\n content: '';\n display: block;\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n width: 100%;\n z-index: -1;\n }\n\n /**\n * Hover effect for the nav item.\n * We use opacity to make sure the border-bottom is visible if used in the prio-nav in header\n */\n .nav-item:not(.nav-item--disabled):hover::before {\n opacity: 1;\n }\n\n /**\n * #443: Add support for active state\n */\n .nav-item:not(.nav-item--disabled):active::before {\n background: var(--syn-interactive-background-color-active, var(--syn-color-neutral-50));\n opacity: 1;\n }\n\n /**\n * When using horizontal, the background should extend the element\n * on the left and right so the animation for the indicator can be seen\n */\n .nav-item--horizontal:not(.nav-item--disabled)::before {\n left: calc(var(--syn-spacing-x-small) * -1);\n width: calc(100% + 2 * var(--syn-spacing-x-small));\n }\n\n /**\n * The content wrapper is needed to get the disabled state right\n * and also sets the left padding, according to the given indentation level.\n *\n * Normally, we would just use opacity directly on the button.\n * However, when using the divider prop, this leads to problems\n * as the divider itself will also get opaque.\n */\n .nav-item__content {\n align-items: center;\n display: flex;\n padding-inline-start: calc(var(--indentation) * var(--indentation-stepping));\n width: 100%;\n }\n\n .nav-item--disabled .nav-item__content {\n opacity: var(--syn-opacity-50);\n }\n\n /**\n * Slotted icons should use a default font size of large\n */\n .nav-item--has-prefix ::slotted(syn-icon),\n .nav-item--has-suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-x-large);\n min-width: var(--syn-font-size-x-large);\n }\n\n /**\n * The chevron indicates the use as a <details /> element OR a link\n */\n .nav-item__chevron {\n color: var(--syn-interactive-quiet-color);\n font-size: var(--syn-font-size-x-large);\n margin-inline-start: var(--syn-spacing-x-small);\n rotate: 0deg;\n transition: var(--syn-transition-medium) rotate ease;\n }\n\n .nav-item__chevron-open {\n rotate: -180deg;\n }\n\n /**\n * Items that have the chevron attribute set and are NOT accordions should always show a chevron pointing to the right\n */\n .nav-item:not(.nav-item-is-accordion) .nav-item__chevron {\n rotate: -90deg;\n }\n\n /**\n * Make the primary content container fill all available space\n */\n .nav-item__content-container {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /**\n * Horizontal navigation items should not break words\n */\n .nav-item--horizontal .nav-item__content-container {\n font-weight: var(--syn-font-weight-bold);\n white-space: nowrap;\n }\n\n /**\n * Show prefix only\n */\n /* stylelint-disable no-descending-specificity */\n .nav-item--show-prefix-only .nav-item__content-container,\n .nav-item--show-prefix-only .nav-item__suffix,\n .nav-item--show-prefix-only .nav-item__chevron {\n height: var(--syn-spacing-large);\n }\n /* stylelint-enable no-descending-specificity */\n\n /**\n * Adjust the paddings for the label, depending if there is a pre- and/or suffix available.\n * But only if the there is a main content or additionally a prefix / suffix\n */\n .nav-item--has-prefix.nav-item--has-content .nav-item__content-container,\n .nav-item--has-prefix.nav-item--has-suffix .nav-item__content-container {\n margin-inline-start: var(--syn-spacing-x-small);\n }\n\n .nav-item--has-suffix.nav-item--has-content .nav-item__content-container,\n .nav-item--has-suffix.nav-item--has-prefix .nav-item__content-container {\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n /**\n * Multi line content\n */\n /* stylelint-disable no-descending-specificity */\n .nav-item--multi-line .nav-item__suffix,\n .nav-item--multi-line .nav-item__prefix,\n .nav-item--multi-line .nav-item__chevron {\n align-self: flex-start;\n }\n /* stylelint-enable no-descending-specificity */\n\n /* stylelint-disable no-descending-specificity */\n .nav-item--multi-line .nav-item__suffix::slotted(syn-icon),\n :not(.nav-item--show-prefix-only).nav-item--multi-line .nav-item__prefix::slotted(syn-icon),\n .nav-item--multi-line .nav-item__chevron {\n align-self: flex-start;\n }\n /* stylelint-enable no-descending-specificity */\n\n /**\n * The current indicator tells the user that the nav-item is the active one\n */\n .current-indicator {\n background: transparent;\n border: none;\n margin: 0;\n position: absolute;\n transition: var(--syn-transition-medium) top ease,\n var(--syn-transition-medium) right ease,\n var(--syn-transition-medium) bottom ease,\n var(--syn-transition-medium) left ease;\n z-index: 1;\n }\n\n .current-indicator--visible {\n background: var(--syn-interactive-emphasis-color, var(--syn-color-primary-600));\n }\n\n .nav-item--horizontal .current-indicator {\n bottom: 0;\n height: var(--syn-spacing-2x-small);\n left: 0;\n right: 0;\n }\n\n .nav-item--horizontal:hover .current-indicator--visible,\n .nav-item--horizontal:focus-visible .current-indicator--visible {\n left: calc(var(--syn-spacing-x-small) * -1);\n right: calc(var(--syn-spacing-x-small) * -1);\n }\n\n .nav-item--vertical .current-indicator {\n bottom: var(--syn-spacing-x-small);\n left: 0;\n top: var(--syn-spacing-x-small);\n width: var(--syn-spacing-2x-small);\n }\n\n .nav-item--vertical:hover .current-indicator--visible,\n .nav-item--vertical:focus-visible .current-indicator--visible {\n bottom: 0;\n top: 0;\n }\n\n /**\n * Dividers are optionally displayed in horizontal nav items\n */\n .divider {\n left: var(--syn-spacing-medium);\n margin: 0;\n position: absolute;\n right: var(--syn-spacing-medium);\n top: 0;\n }\n\n /**\n * Make sure the divider blends into the background on hover\n * for items that are NOT disabled.\n */\n .nav-item--vertical:not(.nav-item--disabled):hover .divider {\n --color: var(--syn-interactive-background-color-hover);\n }\n\n /**\n * Sub menu styling\n */\n summary.nav-item {\n box-sizing: border-box;\n display: flex;\n }\n\n details summary::-webkit-details-marker {\n visibility: hidden;\n }\n\n .children {\n display: var(--display-children)\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/combobox/option-renderer.ts"],
4
- "sourcesContent": ["import { type TemplateResult } from 'lit';\nimport type SynOption from '../option/option.component.js';\n\n/**\n * A type definition for a function that renders an option.\n *\n * @param option - The option to be rendered.\n * @param query - The current query string used for filtering options.\n * @returns - The changed option to render\n */\nexport type OptionRenderer = (\n option: SynOption,\n query?: string\n) => TemplateResult | string | HTMLElement;\n\n/**\n * The default option renderer, which does not change the option.\n */\nexport const defaultOptionRenderer: OptionRenderer = (option: SynOption) => option;\n\n/**\n * A function that highlights the query string with a mark element in the option.\n */\nexport const highlightOptionRenderer: OptionRenderer = (option: SynOption, query: string) => {\n if (!query) {\n return option;\n }\n\n const clonedOption = option.cloneNode(true) as SynOption;\n const optionLabel = clonedOption.getTextLabel();\n const queryIndex = optionLabel.toLowerCase().indexOf(query.toLowerCase());\n const indexLabel = clonedOption.innerHTML.indexOf(optionLabel);\n\n const mark = document.createElement('mark');\n mark.textContent = optionLabel.slice(queryIndex, queryIndex + query.length);\n mark.classList.add('syn-highlight-style');\n\n const exchangedText = optionLabel.replace(new RegExp(query, 'i'), mark.outerHTML);\n const previousContent = clonedOption.innerHTML.slice(0, indexLabel);\n const followingContent = clonedOption.innerHTML.slice(indexLabel + optionLabel.length);\n // eslint-disable-next-line no-param-reassign\n clonedOption.innerHTML = previousContent.concat(exchangedText, followingContent);\n return clonedOption;\n};\n"],
5
- "mappings": ";AAAA,OAAoC;AAkB7B,IAAM,wBAAwC,CAAC,WAAsB;AAKrE,IAAM,0BAA0C,CAAC,QAAmB,UAAkB;AAC3F,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,OAAO,UAAU,IAAI;AAC1C,QAAM,cAAc,aAAa,aAAa;AAC9C,QAAM,aAAa,YAAY,YAAY,EAAE,QAAQ,MAAM,YAAY,CAAC;AACxE,QAAM,aAAa,aAAa,UAAU,QAAQ,WAAW;AAE7D,QAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,OAAK,cAAc,YAAY,MAAM,YAAY,aAAa,MAAM,MAAM;AAC1E,OAAK,UAAU,IAAI,qBAAqB;AAExC,QAAM,gBAAgB,YAAY,QAAQ,IAAI,OAAO,OAAO,GAAG,GAAG,KAAK,SAAS;AAChF,QAAM,kBAAkB,aAAa,UAAU,MAAM,GAAG,UAAU;AAClE,QAAM,mBAAmB,aAAa,UAAU,MAAM,aAAa,YAAY,MAAM;AAErF,eAAa,YAAY,gBAAgB,OAAO,eAAe,gBAAgB;AAC/E,SAAO;AACT;",
6
- "names": []
7
- }