@synergy-design-system/components 2.38.0 → 2.39.1

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 (310) hide show
  1. package/dist/chunks/{chunk.TGTBQ4IM.js → chunk.27QKGT7Z.js} +2 -2
  2. package/dist/chunks/{chunk.UCSHSJ4O.js → chunk.2MPYW4KR.js} +2 -2
  3. package/dist/chunks/{chunk.R5TLCNTQ.js → chunk.2RFBAORE.js} +13 -13
  4. package/dist/chunks/{chunk.BUJP5DRA.js → chunk.2UBCKAEP.js} +2 -2
  5. package/dist/chunks/{chunk.C3JZ7U42.js → chunk.327MCHUH.js} +3 -3
  6. package/dist/chunks/{chunk.WYXYVCH7.js → chunk.3FUL5ELY.js} +2 -2
  7. package/dist/chunks/{chunk.2DQRZRQ6.js → chunk.3H45IGHS.js} +2 -2
  8. package/dist/chunks/{chunk.SUY5M3RG.js → chunk.3O3Z2PSK.js} +2 -2
  9. package/dist/chunks/{chunk.ID5SEGIH.js → chunk.44PYB6W7.js} +2 -2
  10. package/dist/chunks/{chunk.Y3EZT342.js → chunk.4BEDB2IH.js} +6 -6
  11. package/dist/chunks/{chunk.LQOWFD6C.js → chunk.4DIFKO2U.js} +10 -10
  12. package/dist/chunks/{chunk.VKT6ZB2C.js → chunk.4ODI3ZT3.js} +4 -4
  13. package/dist/chunks/{chunk.TMCD74QL.js → chunk.4R4MHKFS.js} +3 -3
  14. package/dist/chunks/{chunk.5JXXAGAU.js → chunk.4WBY7LKD.js} +2 -2
  15. package/dist/chunks/{chunk.A2KMZMAB.js → chunk.5CKDKGVN.js} +8 -8
  16. package/dist/chunks/{chunk.26EDWFCV.js → chunk.5D42PP2O.js} +2 -2
  17. package/dist/chunks/{chunk.TXB6TDIY.js → chunk.5LHPMJJQ.js} +8 -8
  18. package/dist/chunks/{chunk.ID7Q4VEW.js → chunk.5V3EAJDO.js} +6 -6
  19. package/dist/chunks/{chunk.55JHXA7H.js → chunk.6TVA3W47.js} +2 -2
  20. package/dist/chunks/{chunk.5XWBSIVC.js → chunk.6U2NV7JW.js} +2 -2
  21. package/dist/chunks/{chunk.5XWBSIVC.js.map → chunk.6U2NV7JW.js.map} +1 -1
  22. package/dist/chunks/{chunk.4FP2PNRY.js → chunk.7LNEMOPT.js} +6 -6
  23. package/dist/chunks/{chunk.DKRN47E6.js → chunk.7URJKAE6.js} +2 -2
  24. package/dist/chunks/{chunk.3QXSI7KM.js → chunk.A4TSILZP.js} +6 -6
  25. package/dist/chunks/{chunk.R2SH6MUK.js → chunk.AM3PSWK5.js} +2 -2
  26. package/dist/chunks/{chunk.B45CSS6Y.js → chunk.AQDHOVZ7.js} +2 -2
  27. package/dist/chunks/{chunk.2QC354TL.js → chunk.ATR7YYM2.js} +6 -6
  28. package/dist/chunks/{chunk.CNJVVYBI.js → chunk.AUMWX2PM.js} +11 -8
  29. package/dist/chunks/chunk.AUMWX2PM.js.map +7 -0
  30. package/dist/chunks/{chunk.AXYY34SI.js → chunk.BD5PWQB5.js} +2 -2
  31. package/dist/chunks/{chunk.G35QA4D4.js → chunk.BDM4OYEL.js} +2 -2
  32. package/dist/chunks/{chunk.S6AC4UW6.js → chunk.BWTMFHNM.js} +19 -2
  33. package/dist/chunks/{chunk.S6AC4UW6.js.map → chunk.BWTMFHNM.js.map} +2 -2
  34. package/dist/chunks/{chunk.RVDN7WZQ.js → chunk.BZ7XWSKK.js} +5 -5
  35. package/dist/chunks/{chunk.BFTZGROX.js → chunk.C5ZT3KT6.js} +9 -9
  36. package/dist/chunks/{chunk.7GZQ3UZC.js → chunk.CLUIPDLM.js} +2 -2
  37. package/dist/chunks/{chunk.P2I4RAXI.js → chunk.COJWYUPQ.js} +6 -6
  38. package/dist/chunks/{chunk.EMJQCAY3.js → chunk.CVAPRF6I.js} +2 -2
  39. package/dist/chunks/{chunk.AT4MJHYI.js → chunk.D6NQIETR.js} +116 -40
  40. package/dist/chunks/chunk.D6NQIETR.js.map +7 -0
  41. package/dist/chunks/{chunk.5OQNPDRJ.js → chunk.DKS67M2O.js} +7 -7
  42. package/dist/chunks/{chunk.7F2RAQHO.js → chunk.E2MK3B3P.js} +2 -2
  43. package/dist/chunks/{chunk.ZPLFXP6G.js → chunk.ELMS2CDY.js} +5 -5
  44. package/dist/chunks/{chunk.HXVBYE7Y.js → chunk.GAXM4AJI.js} +2 -2
  45. package/dist/chunks/{chunk.OG7V6X2V.js → chunk.GFBC6OK2.js} +2 -2
  46. package/dist/chunks/{chunk.FBGQKUVB.js → chunk.GJ6RRIHU.js} +6 -6
  47. package/dist/chunks/{chunk.OWM2CP4X.js → chunk.HD2WHJPQ.js} +2 -2
  48. package/dist/chunks/{chunk.P4DQ5SFK.js → chunk.HJXBKRZ7.js} +9 -9
  49. package/dist/chunks/{chunk.KLTROMHV.js → chunk.IA3Y3D5X.js} +2 -2
  50. package/dist/chunks/chunk.IEVIYOID.js +43 -0
  51. package/dist/chunks/chunk.IEVIYOID.js.map +7 -0
  52. package/dist/chunks/{chunk.PRRBWUVY.js → chunk.J2S2W2NM.js} +2 -2
  53. package/dist/chunks/{chunk.C5UBBJBC.js → chunk.J4P3SKI5.js} +2 -2
  54. package/dist/chunks/{chunk.VDOSIXCX.js → chunk.JDMIUAJT.js} +2 -2
  55. package/dist/chunks/{chunk.X7LW7D2H.js → chunk.K4JPC3EC.js} +2 -2
  56. package/dist/chunks/{chunk.3YJY6GOI.js → chunk.KITZ3J6H.js} +4 -4
  57. package/dist/chunks/{chunk.I2ABM6VP.js → chunk.KY5QEOVM.js} +4 -4
  58. package/dist/chunks/{chunk.AMHJPJM5.js → chunk.LDS7PGVP.js} +6 -6
  59. package/dist/chunks/{chunk.PNVNVPL7.js → chunk.LTTM2XEY.js} +2 -2
  60. package/dist/chunks/{chunk.ZER7O6EO.js → chunk.M7CX4YZE.js} +3 -3
  61. package/dist/chunks/{chunk.7PX24DLU.js → chunk.MGUQXODX.js} +2 -2
  62. package/dist/chunks/{chunk.I5JLFISR.js → chunk.NDMRGRCX.js} +8 -8
  63. package/dist/chunks/{chunk.GXBKB36O.js → chunk.NLQ2WOOE.js} +2 -2
  64. package/dist/chunks/{chunk.ZTCNB6XE.js → chunk.NVMNFCD2.js} +2 -2
  65. package/dist/chunks/{chunk.EXKWQRSD.js → chunk.O27KWL6S.js} +2 -2
  66. package/dist/chunks/{chunk.IPGLY3H4.js → chunk.OAQRCZOO.js} +2 -2
  67. package/dist/chunks/{chunk.IPGLY3H4.js.map → chunk.OAQRCZOO.js.map} +1 -1
  68. package/dist/chunks/{chunk.PZP7UYHA.js → chunk.OEO3G3TO.js} +2 -2
  69. package/dist/chunks/{chunk.MTGTBMYT.js → chunk.OTMWOZCW.js} +2 -2
  70. package/dist/chunks/{chunk.M2VJDHVU.js → chunk.OU7HABHG.js} +2 -2
  71. package/dist/chunks/{chunk.PW4YIOAV.js → chunk.PEDMX34K.js} +2 -2
  72. package/dist/chunks/{chunk.DX6MXCZZ.js → chunk.PLCZPI6F.js} +2 -2
  73. package/dist/chunks/{chunk.6XDFV4GS.js → chunk.PNB4HK4G.js} +6 -6
  74. package/dist/chunks/{chunk.E5QK5KIF.js → chunk.Q7O642EW.js} +7 -7
  75. package/dist/chunks/{chunk.AWSKILKM.js → chunk.R7CGZ7KZ.js} +2 -2
  76. package/dist/chunks/{chunk.7CKKHWYW.js → chunk.SBTPSKS7.js} +2 -2
  77. package/dist/chunks/{chunk.F5KRWWBX.js → chunk.SDLYKCEX.js} +2 -2
  78. package/dist/chunks/{chunk.6T5B2HGH.js → chunk.TG2DEEYH.js} +6 -6
  79. package/dist/chunks/{chunk.VKQ2H4X2.js → chunk.TW73EQBX.js} +2 -2
  80. package/dist/chunks/{chunk.55Z3OY26.js → chunk.U2TGIJAL.js} +8 -8
  81. package/dist/chunks/{chunk.VYJOUM2X.js → chunk.UG4IR5RT.js} +3 -3
  82. package/dist/chunks/{chunk.PQSFE6MX.js → chunk.UJQQ35B3.js} +3 -3
  83. package/dist/chunks/{chunk.NMINQQWF.js → chunk.UTLAZG5Z.js} +2 -2
  84. package/dist/chunks/{chunk.T7BSVIY6.js → chunk.UX3MWDKX.js} +2 -2
  85. package/dist/chunks/{chunk.I5SV53XR.js → chunk.V56T7UVP.js} +2 -2
  86. package/dist/chunks/{chunk.NKMV47EW.js → chunk.V7DFLZXB.js} +6 -6
  87. package/dist/chunks/{chunk.QY4CARXK.js → chunk.V7HJRESY.js} +2 -2
  88. package/dist/chunks/{chunk.GJDE6WOG.js → chunk.VDOP22HP.js} +2 -2
  89. package/dist/chunks/{chunk.6OA3HDMH.js → chunk.W2VQB6JD.js} +2 -2
  90. package/dist/chunks/{chunk.S66RRRZ5.js → chunk.W7UGIK2A.js} +3 -3
  91. package/dist/chunks/{chunk.GOEVVSZH.js → chunk.WA573FG5.js} +3 -3
  92. package/dist/chunks/{chunk.CS5JGPTS.js → chunk.WD744DTY.js} +2 -2
  93. package/dist/chunks/{chunk.MPHPTI5L.js → chunk.X27B475F.js} +2 -2
  94. package/dist/chunks/{chunk.6DYKE5RE.js → chunk.X7XPEYAM.js} +3 -2
  95. package/dist/chunks/{chunk.6DYKE5RE.js.map → chunk.X7XPEYAM.js.map} +2 -2
  96. package/dist/chunks/{chunk.VUOJZU64.js → chunk.XFEFQYPO.js} +2 -2
  97. package/dist/chunks/{chunk.I3JJFWI7.js → chunk.XORPVB4J.js} +2 -2
  98. package/dist/chunks/{chunk.2N5DGFNL.js → chunk.Y7KM3L6W.js} +2 -2
  99. package/dist/chunks/{chunk.CEUMBXY2.js → chunk.Y7LU4Q7U.js} +2 -2
  100. package/dist/chunks/{chunk.AKQ6NHAA.js → chunk.YX6HZW4C.js} +2 -2
  101. package/dist/chunks/{chunk.RVUFUF75.js → chunk.YYOO7G3C.js} +2 -2
  102. package/dist/chunks/{chunk.UDRNJOX5.js → chunk.Z7XH5MW3.js} +2 -2
  103. package/dist/chunks/{chunk.G3UNUDBV.js → chunk.ZKMTXMHC.js} +5 -5
  104. package/dist/chunks/{chunk.TKFDJB5Z.js → chunk.ZLPG3PXK.js} +5 -5
  105. package/dist/chunks/{chunk.4R32N3GQ.js → chunk.ZMO6E7DS.js} +2 -2
  106. package/dist/chunks/{chunk.5EVBVED5.js → chunk.ZUKGJ44H.js} +7 -7
  107. package/dist/components/accordion/accordion.component.js +3 -3
  108. package/dist/components/accordion/accordion.js +4 -4
  109. package/dist/components/alert/alert.component.js +9 -9
  110. package/dist/components/alert/alert.js +10 -10
  111. package/dist/components/badge/badge.component.js +6 -6
  112. package/dist/components/badge/badge.js +7 -7
  113. package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
  114. package/dist/components/breadcrumb/breadcrumb.js +8 -8
  115. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  116. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  117. package/dist/components/button/button.component.js +7 -7
  118. package/dist/components/button/button.js +8 -8
  119. package/dist/components/button-group/button-group.component.js +2 -2
  120. package/dist/components/button-group/button-group.js +3 -3
  121. package/dist/components/card/card.component.js +2 -2
  122. package/dist/components/card/card.js +3 -3
  123. package/dist/components/checkbox/checkbox.component.js +4 -4
  124. package/dist/components/checkbox/checkbox.js +5 -5
  125. package/dist/components/combobox/combobox.component.d.ts +24 -3
  126. package/dist/components/combobox/combobox.component.js +10 -10
  127. package/dist/components/combobox/combobox.custom.styles.js +1 -1
  128. package/dist/components/combobox/combobox.js +11 -11
  129. package/dist/components/combobox/utils.d.ts +13 -0
  130. package/dist/components/combobox/utils.js +5 -1
  131. package/dist/components/details/details.component.js +6 -6
  132. package/dist/components/details/details.js +7 -7
  133. package/dist/components/dialog/dialog.component.js +7 -7
  134. package/dist/components/dialog/dialog.js +8 -8
  135. package/dist/components/divider/divider.component.js +2 -2
  136. package/dist/components/divider/divider.js +3 -3
  137. package/dist/components/drawer/drawer.component.js +7 -7
  138. package/dist/components/drawer/drawer.js +8 -8
  139. package/dist/components/dropdown/dropdown.component.js +5 -5
  140. package/dist/components/dropdown/dropdown.js +6 -6
  141. package/dist/components/file/file.component.js +8 -8
  142. package/dist/components/file/file.js +9 -9
  143. package/dist/components/header/header.component.js +6 -6
  144. package/dist/components/header/header.js +7 -7
  145. package/dist/components/icon/icon.component.js +2 -2
  146. package/dist/components/icon/icon.js +3 -3
  147. package/dist/components/icon-button/icon-button.component.js +4 -4
  148. package/dist/components/icon-button/icon-button.js +5 -5
  149. package/dist/components/input/input.component.js +7 -7
  150. package/dist/components/input/input.js +8 -8
  151. package/dist/components/menu/menu.component.js +2 -2
  152. package/dist/components/menu/menu.js +3 -3
  153. package/dist/components/menu-item/menu-item.component.js +7 -7
  154. package/dist/components/menu-item/menu-item.js +8 -8
  155. package/dist/components/menu-label/menu-label.component.js +3 -3
  156. package/dist/components/menu-label/menu-label.js +4 -4
  157. package/dist/components/nav-item/nav-item.component.js +4 -4
  158. package/dist/components/nav-item/nav-item.js +5 -5
  159. package/dist/components/optgroup/optgroup.component.js +3 -3
  160. package/dist/components/optgroup/optgroup.js +4 -4
  161. package/dist/components/option/option.component.js +5 -5
  162. package/dist/components/option/option.js +6 -6
  163. package/dist/components/popup/popup.component.js +4 -4
  164. package/dist/components/popup/popup.js +5 -5
  165. package/dist/components/prio-nav/prio-nav.component.js +10 -10
  166. package/dist/components/prio-nav/prio-nav.js +11 -11
  167. package/dist/components/progress-bar/progress-bar.component.js +4 -4
  168. package/dist/components/progress-bar/progress-bar.js +5 -5
  169. package/dist/components/progress-ring/progress-ring.component.js +4 -4
  170. package/dist/components/progress-ring/progress-ring.js +5 -5
  171. package/dist/components/radio/radio.component.js +4 -4
  172. package/dist/components/radio/radio.js +5 -5
  173. package/dist/components/radio-button/radio-button.component.js +3 -3
  174. package/dist/components/radio-button/radio-button.js +4 -4
  175. package/dist/components/radio-group/radio-group.component.js +4 -4
  176. package/dist/components/radio-group/radio-group.js +5 -5
  177. package/dist/components/range/range.component.js +7 -7
  178. package/dist/components/range/range.js +8 -8
  179. package/dist/components/range-tick/range-tick.component.js +2 -2
  180. package/dist/components/range-tick/range-tick.js +3 -3
  181. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  182. package/dist/components/select/select.component.js +9 -9
  183. package/dist/components/select/select.js +10 -10
  184. package/dist/components/side-nav/side-nav.component.js +10 -10
  185. package/dist/components/side-nav/side-nav.js +11 -11
  186. package/dist/components/spinner/spinner.component.js +4 -4
  187. package/dist/components/spinner/spinner.js +5 -5
  188. package/dist/components/switch/switch.component.js +3 -3
  189. package/dist/components/switch/switch.js +4 -4
  190. package/dist/components/tab/tab.component.js +7 -7
  191. package/dist/components/tab/tab.js +8 -8
  192. package/dist/components/tab-group/tab-group.component.js +8 -8
  193. package/dist/components/tab-group/tab-group.js +9 -9
  194. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  195. package/dist/components/tab-panel/tab-panel.js +3 -3
  196. package/dist/components/tag/tag.component.js +7 -7
  197. package/dist/components/tag/tag.js +8 -8
  198. package/dist/components/textarea/textarea.component.js +3 -3
  199. package/dist/components/textarea/textarea.js +4 -4
  200. package/dist/components/tooltip/tooltip.component.js +5 -5
  201. package/dist/components/tooltip/tooltip.js +6 -6
  202. package/dist/components/validate/utility.js +2 -2
  203. package/dist/components/validate/validate.component.js +11 -11
  204. package/dist/components/validate/validate.js +12 -12
  205. package/dist/custom-elements.json +71 -7
  206. package/dist/styles/index.css +1 -1
  207. package/dist/synergy.js +110 -110
  208. package/dist/translations/de.js +4 -3
  209. package/dist/translations/de.js.map +2 -2
  210. package/dist/translations/en.js +1 -1
  211. package/dist/utilities/localize.d.ts +1 -0
  212. package/dist/utilities/localize.js +2 -2
  213. package/dist/vscode.html-custom-data.json +6 -1
  214. package/package.json +3 -3
  215. package/dist/chunks/chunk.AT4MJHYI.js.map +0 -7
  216. package/dist/chunks/chunk.CNJVVYBI.js.map +0 -7
  217. package/dist/chunks/chunk.EWVMF6KH.js +0 -23
  218. package/dist/chunks/chunk.EWVMF6KH.js.map +0 -7
  219. /package/dist/chunks/{chunk.TGTBQ4IM.js.map → chunk.27QKGT7Z.js.map} +0 -0
  220. /package/dist/chunks/{chunk.UCSHSJ4O.js.map → chunk.2MPYW4KR.js.map} +0 -0
  221. /package/dist/chunks/{chunk.R5TLCNTQ.js.map → chunk.2RFBAORE.js.map} +0 -0
  222. /package/dist/chunks/{chunk.BUJP5DRA.js.map → chunk.2UBCKAEP.js.map} +0 -0
  223. /package/dist/chunks/{chunk.C3JZ7U42.js.map → chunk.327MCHUH.js.map} +0 -0
  224. /package/dist/chunks/{chunk.WYXYVCH7.js.map → chunk.3FUL5ELY.js.map} +0 -0
  225. /package/dist/chunks/{chunk.2DQRZRQ6.js.map → chunk.3H45IGHS.js.map} +0 -0
  226. /package/dist/chunks/{chunk.SUY5M3RG.js.map → chunk.3O3Z2PSK.js.map} +0 -0
  227. /package/dist/chunks/{chunk.ID5SEGIH.js.map → chunk.44PYB6W7.js.map} +0 -0
  228. /package/dist/chunks/{chunk.Y3EZT342.js.map → chunk.4BEDB2IH.js.map} +0 -0
  229. /package/dist/chunks/{chunk.LQOWFD6C.js.map → chunk.4DIFKO2U.js.map} +0 -0
  230. /package/dist/chunks/{chunk.VKT6ZB2C.js.map → chunk.4ODI3ZT3.js.map} +0 -0
  231. /package/dist/chunks/{chunk.TMCD74QL.js.map → chunk.4R4MHKFS.js.map} +0 -0
  232. /package/dist/chunks/{chunk.5JXXAGAU.js.map → chunk.4WBY7LKD.js.map} +0 -0
  233. /package/dist/chunks/{chunk.A2KMZMAB.js.map → chunk.5CKDKGVN.js.map} +0 -0
  234. /package/dist/chunks/{chunk.26EDWFCV.js.map → chunk.5D42PP2O.js.map} +0 -0
  235. /package/dist/chunks/{chunk.TXB6TDIY.js.map → chunk.5LHPMJJQ.js.map} +0 -0
  236. /package/dist/chunks/{chunk.ID7Q4VEW.js.map → chunk.5V3EAJDO.js.map} +0 -0
  237. /package/dist/chunks/{chunk.55JHXA7H.js.map → chunk.6TVA3W47.js.map} +0 -0
  238. /package/dist/chunks/{chunk.4FP2PNRY.js.map → chunk.7LNEMOPT.js.map} +0 -0
  239. /package/dist/chunks/{chunk.DKRN47E6.js.map → chunk.7URJKAE6.js.map} +0 -0
  240. /package/dist/chunks/{chunk.3QXSI7KM.js.map → chunk.A4TSILZP.js.map} +0 -0
  241. /package/dist/chunks/{chunk.R2SH6MUK.js.map → chunk.AM3PSWK5.js.map} +0 -0
  242. /package/dist/chunks/{chunk.B45CSS6Y.js.map → chunk.AQDHOVZ7.js.map} +0 -0
  243. /package/dist/chunks/{chunk.2QC354TL.js.map → chunk.ATR7YYM2.js.map} +0 -0
  244. /package/dist/chunks/{chunk.AXYY34SI.js.map → chunk.BD5PWQB5.js.map} +0 -0
  245. /package/dist/chunks/{chunk.G35QA4D4.js.map → chunk.BDM4OYEL.js.map} +0 -0
  246. /package/dist/chunks/{chunk.RVDN7WZQ.js.map → chunk.BZ7XWSKK.js.map} +0 -0
  247. /package/dist/chunks/{chunk.BFTZGROX.js.map → chunk.C5ZT3KT6.js.map} +0 -0
  248. /package/dist/chunks/{chunk.7GZQ3UZC.js.map → chunk.CLUIPDLM.js.map} +0 -0
  249. /package/dist/chunks/{chunk.P2I4RAXI.js.map → chunk.COJWYUPQ.js.map} +0 -0
  250. /package/dist/chunks/{chunk.EMJQCAY3.js.map → chunk.CVAPRF6I.js.map} +0 -0
  251. /package/dist/chunks/{chunk.5OQNPDRJ.js.map → chunk.DKS67M2O.js.map} +0 -0
  252. /package/dist/chunks/{chunk.7F2RAQHO.js.map → chunk.E2MK3B3P.js.map} +0 -0
  253. /package/dist/chunks/{chunk.ZPLFXP6G.js.map → chunk.ELMS2CDY.js.map} +0 -0
  254. /package/dist/chunks/{chunk.HXVBYE7Y.js.map → chunk.GAXM4AJI.js.map} +0 -0
  255. /package/dist/chunks/{chunk.OG7V6X2V.js.map → chunk.GFBC6OK2.js.map} +0 -0
  256. /package/dist/chunks/{chunk.FBGQKUVB.js.map → chunk.GJ6RRIHU.js.map} +0 -0
  257. /package/dist/chunks/{chunk.OWM2CP4X.js.map → chunk.HD2WHJPQ.js.map} +0 -0
  258. /package/dist/chunks/{chunk.P4DQ5SFK.js.map → chunk.HJXBKRZ7.js.map} +0 -0
  259. /package/dist/chunks/{chunk.KLTROMHV.js.map → chunk.IA3Y3D5X.js.map} +0 -0
  260. /package/dist/chunks/{chunk.PRRBWUVY.js.map → chunk.J2S2W2NM.js.map} +0 -0
  261. /package/dist/chunks/{chunk.C5UBBJBC.js.map → chunk.J4P3SKI5.js.map} +0 -0
  262. /package/dist/chunks/{chunk.VDOSIXCX.js.map → chunk.JDMIUAJT.js.map} +0 -0
  263. /package/dist/chunks/{chunk.X7LW7D2H.js.map → chunk.K4JPC3EC.js.map} +0 -0
  264. /package/dist/chunks/{chunk.3YJY6GOI.js.map → chunk.KITZ3J6H.js.map} +0 -0
  265. /package/dist/chunks/{chunk.I2ABM6VP.js.map → chunk.KY5QEOVM.js.map} +0 -0
  266. /package/dist/chunks/{chunk.AMHJPJM5.js.map → chunk.LDS7PGVP.js.map} +0 -0
  267. /package/dist/chunks/{chunk.PNVNVPL7.js.map → chunk.LTTM2XEY.js.map} +0 -0
  268. /package/dist/chunks/{chunk.ZER7O6EO.js.map → chunk.M7CX4YZE.js.map} +0 -0
  269. /package/dist/chunks/{chunk.7PX24DLU.js.map → chunk.MGUQXODX.js.map} +0 -0
  270. /package/dist/chunks/{chunk.I5JLFISR.js.map → chunk.NDMRGRCX.js.map} +0 -0
  271. /package/dist/chunks/{chunk.GXBKB36O.js.map → chunk.NLQ2WOOE.js.map} +0 -0
  272. /package/dist/chunks/{chunk.ZTCNB6XE.js.map → chunk.NVMNFCD2.js.map} +0 -0
  273. /package/dist/chunks/{chunk.EXKWQRSD.js.map → chunk.O27KWL6S.js.map} +0 -0
  274. /package/dist/chunks/{chunk.PZP7UYHA.js.map → chunk.OEO3G3TO.js.map} +0 -0
  275. /package/dist/chunks/{chunk.MTGTBMYT.js.map → chunk.OTMWOZCW.js.map} +0 -0
  276. /package/dist/chunks/{chunk.M2VJDHVU.js.map → chunk.OU7HABHG.js.map} +0 -0
  277. /package/dist/chunks/{chunk.PW4YIOAV.js.map → chunk.PEDMX34K.js.map} +0 -0
  278. /package/dist/chunks/{chunk.DX6MXCZZ.js.map → chunk.PLCZPI6F.js.map} +0 -0
  279. /package/dist/chunks/{chunk.6XDFV4GS.js.map → chunk.PNB4HK4G.js.map} +0 -0
  280. /package/dist/chunks/{chunk.E5QK5KIF.js.map → chunk.Q7O642EW.js.map} +0 -0
  281. /package/dist/chunks/{chunk.AWSKILKM.js.map → chunk.R7CGZ7KZ.js.map} +0 -0
  282. /package/dist/chunks/{chunk.7CKKHWYW.js.map → chunk.SBTPSKS7.js.map} +0 -0
  283. /package/dist/chunks/{chunk.F5KRWWBX.js.map → chunk.SDLYKCEX.js.map} +0 -0
  284. /package/dist/chunks/{chunk.6T5B2HGH.js.map → chunk.TG2DEEYH.js.map} +0 -0
  285. /package/dist/chunks/{chunk.VKQ2H4X2.js.map → chunk.TW73EQBX.js.map} +0 -0
  286. /package/dist/chunks/{chunk.55Z3OY26.js.map → chunk.U2TGIJAL.js.map} +0 -0
  287. /package/dist/chunks/{chunk.VYJOUM2X.js.map → chunk.UG4IR5RT.js.map} +0 -0
  288. /package/dist/chunks/{chunk.PQSFE6MX.js.map → chunk.UJQQ35B3.js.map} +0 -0
  289. /package/dist/chunks/{chunk.NMINQQWF.js.map → chunk.UTLAZG5Z.js.map} +0 -0
  290. /package/dist/chunks/{chunk.T7BSVIY6.js.map → chunk.UX3MWDKX.js.map} +0 -0
  291. /package/dist/chunks/{chunk.I5SV53XR.js.map → chunk.V56T7UVP.js.map} +0 -0
  292. /package/dist/chunks/{chunk.NKMV47EW.js.map → chunk.V7DFLZXB.js.map} +0 -0
  293. /package/dist/chunks/{chunk.QY4CARXK.js.map → chunk.V7HJRESY.js.map} +0 -0
  294. /package/dist/chunks/{chunk.GJDE6WOG.js.map → chunk.VDOP22HP.js.map} +0 -0
  295. /package/dist/chunks/{chunk.6OA3HDMH.js.map → chunk.W2VQB6JD.js.map} +0 -0
  296. /package/dist/chunks/{chunk.S66RRRZ5.js.map → chunk.W7UGIK2A.js.map} +0 -0
  297. /package/dist/chunks/{chunk.GOEVVSZH.js.map → chunk.WA573FG5.js.map} +0 -0
  298. /package/dist/chunks/{chunk.CS5JGPTS.js.map → chunk.WD744DTY.js.map} +0 -0
  299. /package/dist/chunks/{chunk.MPHPTI5L.js.map → chunk.X27B475F.js.map} +0 -0
  300. /package/dist/chunks/{chunk.VUOJZU64.js.map → chunk.XFEFQYPO.js.map} +0 -0
  301. /package/dist/chunks/{chunk.I3JJFWI7.js.map → chunk.XORPVB4J.js.map} +0 -0
  302. /package/dist/chunks/{chunk.2N5DGFNL.js.map → chunk.Y7KM3L6W.js.map} +0 -0
  303. /package/dist/chunks/{chunk.CEUMBXY2.js.map → chunk.Y7LU4Q7U.js.map} +0 -0
  304. /package/dist/chunks/{chunk.AKQ6NHAA.js.map → chunk.YX6HZW4C.js.map} +0 -0
  305. /package/dist/chunks/{chunk.RVUFUF75.js.map → chunk.YYOO7G3C.js.map} +0 -0
  306. /package/dist/chunks/{chunk.UDRNJOX5.js.map → chunk.Z7XH5MW3.js.map} +0 -0
  307. /package/dist/chunks/{chunk.G3UNUDBV.js.map → chunk.ZKMTXMHC.js.map} +0 -0
  308. /package/dist/chunks/{chunk.TKFDJB5Z.js.map → chunk.ZLPG3PXK.js.map} +0 -0
  309. /package/dist/chunks/{chunk.4R32N3GQ.js.map → chunk.ZMO6E7DS.js.map} +0 -0
  310. /package/dist/chunks/{chunk.5EVBVED5.js.map → chunk.ZUKGJ44H.js.map} +0 -0
@@ -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 createOptionFromDifferentTypes,\n filterOnlyOptgroups, getAllOptions, getAssignedElementsForSlot, 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 *\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 value of a syn-option, that was selected by click or via keyboard navigation */\n private lastOptionValue = '';\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() 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 */\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 * 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.lastOptionValue;\n this.setSelectedOption(currentOption);\n\n if (this.value !== oldValue) {\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.lastOptionValue = '';\n this.setSelectedOption(undefined);\n this.displayInput.focus({ preventScroll: true });\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.lastOptionValue;\n if (option && !option.disabled) {\n this.setSelectedOption(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 // 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 private setSelectedOption(option: SynOption | undefined) {\n this.selectedOption = option;\n\n // Check if the selected option has a value,\n // if not take the text content of the option otherwise the input text\n let optionValue;\n if (this.selectedOption?.value) {\n optionValue = String(this.selectedOption.value);\n } else {\n optionValue = this.selectedOption?.getTextLabel();\n }\n\n if (option) {\n this.lastOptionValue = optionValue || '';\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 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) {\n // Don't open the listbox if there are no options\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 this.value = inputValue;\n await this.updateComplete;\n this.open = this.numberFilteredOptions > 0;\n this.setSelectedOption(undefined);\n\n this.formControlController.updateValidity();\n this.emit('syn-input');\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 this.value = this.displayInput.value;\n // Update validity\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.formControlController.updateValidity();\n });\n this.emit('syn-change');\n }\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.cachedOptions\n .find(o => (o.value !== '' && o.value === this.value) || (o.getTextLabel() === this.value));\n\n if (!option) {\n this.displayInput.value = this.value;\n }\n\n this.setSelectedOption(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 <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;AAiFvC,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,IAAI,kBAAkB,MAAM,aAAa,OAAO;AAErF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAKvD;AAAA,SAAQ,kBAAkB;AAE1B,SAAQ,4BAA4B;AAEpC,SAAQ,gBAAyB;AAcxB,SAAQ,WAAW;AAEnB,wBAAe;AAIf,iCAAwB;AAExB,yBAA8B,CAAC;AAG5B,gBAAO;AAKP,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AE,sBAAsB,KAAK,CAAC;AAAA,GAxgB9B,YAygBnB;AAaA;AAAA,EADC,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArhB3B,YAshBnB;AAMM;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA3hB1B,YA4hBb;AA5hBa,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;AA+6BrB,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
6
- "names": ["_a", "_b", "keyframes", "options"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/validate/validate.component.ts"],
4
- "sourcesContent": ["import type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit';\nimport { property, queryAssignedElements, state } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { watch } from '../../internal/watch.js';\nimport SynAlert from '../alert/alert.component.js';\nimport {\n getEventNameForElement,\n isBlurEvent,\n isInvalidEvent,\n normalizeEventAttribute,\n} from './utility.js';\nimport styles from './validate.styles.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs\n * @dependency syn-alert\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n */\n@enableDefaultSettings('SynValidate')\nexport default class SynValidate extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-alert': SynAlert,\n };\n\n controller = new AbortController();\n\n observer: MutationObserver;\n\n @queryAssignedElements() private slottedChildren: HTMLElement[];\n\n @state() validationMessage = '';\n\n @state() eagerFirstMount = true;\n\n @state() isInternalTriggeredInvalid = false;\n\n @state() isValid = true;\n\n /**\n * The variant that should be used to show validation alerts.\n *\n * The following variants are supported:\n * - **native** (default): Uses the native browser validation, usually a browser tooltip.\n * - **inline**: Show the validation message underneath the element, using a `<syn-alert>`\n */\n @property({ reflect: true }) variant: 'native' | 'inline' = 'native';\n\n /** Do not show the error icon when using the inline variant validation */\n @property({ attribute: 'hide-icon', reflect: true, type: Boolean }) hideIcon = false;\n\n /**\n * Defines the events that trigger the validation.\n * `invalid` will always automatically be included.\n * You may also use the `live` keyword to validate on every input change.\n * `live` will make sure to listen to the `invalid`, `input` and `blur` events.\n *\n * Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.\n *\n * @example ```html\n * <!-- Validate on invalid and change events (invalid, change) -->\n * <syn-validate on=\"invalid change\"></syn-validate>\n *\n * <!-- Validate on live events (invalid, blur, input)-->\n * <syn-validate on=\"live\"></syn-validate>\n *\n * <!-- Validate on live and custom events (invalid, blur, input, focus, change) -->\n * <syn-validate on=\"live focus change\"></syn-validate>\n * ```\n */\n @property({ reflect: true }) on: string = '';\n\n /**\n * Custom validation message to be displayed when the input is invalid.\n * Will override the default browser validation message.\n * Set to an empty string to reset the validation message.\n */\n @property({ attribute: 'custom-validation-message', type: String }) customValidationMessage = '';\n\n /**\n * Set this to true to validate the input immediately when it is rendered.\n * Best used with a `variant` of `inline`.\n * When setting eager, the input will not be focused automatically.\n *\n * When using a `variant` of `native` the browser will focus\n * the last eager field as it is using a tooltip.\n * In this case it is better to just provide one eager field.\n */\n @property({ type: Boolean }) eager = false;\n\n // Automatically refresh all event listeners when the on property changes.\n @watch('on', { waitUntilFirstUpdate: true })\n handleListenerChange() {\n this.updateEvents();\n }\n\n @watch('eager', { waitUntilFirstUpdate: false })\n async handleEagerChange() {\n if (this.eager) {\n const input = this.getInput();\n await this.updateComplete;\n input?.reportValidity();\n this.eagerFirstMount = true;\n } else {\n this.eagerFirstMount = false;\n }\n }\n\n // Synchronize the validation message on the wrapped input with the custom message\n @watch('customValidationMessage', { waitUntilFirstUpdate: true })\n handleCustomValidationMessageChange() {\n const input = this.getInput();\n if (input) {\n this.setCustomValidationMessage(input);\n this.setValidationMessage(input);\n }\n }\n\n /**\n * Returns the validity state of the input component.\n * `true` for valid and `false` for invalid.\n */\n getValidity() {\n return this.isValid;\n }\n\n /**\n * Get the input element to validate. Defined as the first slotted element\n * @returns The input element or undefined if not found\n */\n private getInput() {\n const input = this.slottedChildren[0];\n return input ? input as HTMLInputElement : undefined;\n }\n\n /**\n * Get the event names to listen for.\n * If the input is a synergy element, will use syn- prefixes.\n * @returns The event names to listen for\n */\n // eslint-disable-next-line complexity\n private getUsedEventNames() {\n const input = this.getInput();\n\n // If there is no input, skip before doing any harm\n if (!input) {\n return [];\n }\n\n // Make sure to always use an array of events\n // This is needed because on may be a special value like \"live\"\n const on = normalizeEventAttribute(this.on);\n\n // Filter makes sure to remove empty values, e.g.\n // <syn-validate on=\"\"></syn-validate>\n const [...events] = on.filter(Boolean);\n\n // Make sure to always have an invalid event\n if (!events.includes('invalid')) {\n events.push('invalid');\n }\n\n // Special handling for the live keyword:\n // live always means on input and blur\n if (events.includes('live')) {\n events.push('input');\n events.push('blur');\n }\n\n // Make sure to remove duplicated events and the live property\n // and map the events to the correct event names\n return Array.from(new Set(\n events\n .filter(e => e !== 'live')\n .map(e => getEventNameForElement(input, e)),\n ));\n }\n\n /**\n * Update the events on the input element.\n */\n private updateEvents() {\n this.controller.abort();\n this.controller = new AbortController();\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const events = this.getUsedEventNames();\n events.forEach(eventName => {\n input.addEventListener(eventName, this.validate, {\n capture: isInvalidEvent(eventName),\n signal: this.controller.signal,\n });\n });\n\n // If the change event is not included,\n // make sure to attach a custom listener that resets the validation message\n // This is needed as the custom message may be set on change\n const usedChangeEvent = getEventNameForElement(input, 'change');\n if (!events.includes(usedChangeEvent)) {\n input.addEventListener(usedChangeEvent, this.internalRevalidate, {\n signal: this.controller.signal,\n });\n }\n }\n\n private setValidationMessage(input: HTMLInputElement) {\n const { customValidationMessage } = this;\n const validationMessage = customValidationMessage || input.validationMessage;\n this.validationMessage = validationMessage;\n }\n\n /**\n * Set the custom validation message to the input. This will make sure to either:\n * - use the custom message if one is set or\n * - use the default message if the custom message is empty\n */\n private setCustomValidationMessage(input: HTMLInputElement) {\n // Set the custom validation message on the input only once, when the customValidationMessage\n // is changed. Otherwise there could be problems with `variant=\"native\"` and `on=\"live\"` or\n // `on=\"blur\"`, because the browser popup will never disappear even if clicking somewhere else.\n input.setCustomValidity(this.customValidationMessage);\n }\n\n /**\n * Set the validation message from the input element\n * @param e The event that was received\n */\n private internalRevalidate = (e: Event) => {\n const input = e.currentTarget as HTMLInputElement;\n if (input.validity?.valid) {\n this.validationMessage = '';\n }\n };\n\n /**\n * Handle the blur event during validation\n */\n // eslint-disable-next-line class-methods-use-this\n private handleFocus(input: HTMLInputElement) {\n const activeElement = document.activeElement! as HTMLInputElement;\n const activeElementIsWrapped = activeElement.closest('syn-validate');\n\n if (!activeElement.validity?.valid && activeElementIsWrapped) {\n // The active element is invalid do not scroll\n return;\n }\n\n input.scrollIntoView({ block: 'nearest' });\n input.focus();\n }\n\n /**\n * Triggers a validation run, showing the validation message if needed.\n */\n // eslint-disable-next-line complexity\n private validate = (e: Event) => {\n // Make sure to stop the validate component from going into an endless cycle of triggering\n if (isInvalidEvent(e.type) && this.variant === 'native' && this.isInternalTriggeredInvalid === true) {\n this.isInternalTriggeredInvalid = false;\n return;\n }\n\n // Make sure to always prevent the invalid event when not using native validation\n if (isInvalidEvent(e.type) && this.variant !== 'native') {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const input = e.currentTarget as HTMLInputElement;\n this.isValid = input.validity?.valid;\n\n // When we are using eager, make sure to skip focus on the first mount\n if (this.eager && this.eagerFirstMount) {\n this.eagerFirstMount = false;\n this.setValidationMessage(input);\n return;\n }\n\n // If the active element that has focus is placed in a validate component,\n // make sure to not loose focus.\n if (!this.isValid && !isBlurEvent(e.type)) {\n this.handleFocus(input);\n }\n\n this.setValidationMessage(input);\n\n // Trigger reportValidity when using native validation, so the browser popup is also shown\n // for other events than `invalid`. All events except the blur event, should trigger this.\n if (!isBlurEvent(e.type) && this.variant === 'native') {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.isInternalTriggeredInvalid = true;\n input.reportValidity();\n });\n }\n };\n\n async firstUpdated(changedProperties: PropertyValues) {\n super.firstUpdated(changedProperties);\n this.updateEvents();\n\n // #713: Make sure to set the custom validation message on mount\n // When we have a custom element, we need to wait for it to be ready!\n const input = this.getInput();\n\n if (this.customValidationMessage) {\n if (input instanceof SynergyElement) {\n await input.updateComplete;\n }\n input?.setCustomValidity(this.customValidationMessage);\n }\n\n // Make sure to run validation on mount if eager is set\n if (this.eager) {\n await this.updateComplete;\n this.isValid = input?.validity?.valid ?? false;\n input?.reportValidity();\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // #717: Make sure to remove to rerun validation when\n // disabled or readonly properties change on the input\n this.observer = new MutationObserver(entries => {\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const hasDisabledOrReadonly = entries\n // Only check for changes on the input element\n .filter(({ target }) => target === input)\n // Check if the input is disabled or readonly\n .every(entry => {\n const target = entry.target as HTMLInputElement;\n return target.hasAttribute('disabled') || target.hasAttribute('readonly');\n });\n\n if (hasDisabledOrReadonly) {\n this.isValid = true;\n this.validationMessage = '';\n } else {\n // When using a synergy element, we need to check the validity after the element is updated,\n // as we cannot rely on the validity state of the element itself.\n // Unfortunately, this depends on used browser :(.\n const waitForPromise = input instanceof SynergyElement\n ? input.updateComplete\n : Promise.resolve();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForPromise.then(() => {\n this.isValid = input?.validity?.valid ?? false;\n this.validationMessage = input?.validationMessage ?? '';\n });\n }\n });\n\n this.observer.observe(this, {\n attributeFilter: ['disabled', 'readonly'],\n attributes: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.controller.abort();\n this?.observer?.disconnect();\n }\n\n private renderInlineValidation() {\n if (this.variant !== 'inline' || !this.validationMessage) {\n return '';\n }\n\n return html`\n <syn-alert\n open\n exportparts=\"base:alert__base,message:alert__message,icon:alert__icon\"\n part=\"alert\"\n variant=\"danger\"\n >\n ${!this.hideIcon\n ? html`<syn-icon slot=\"icon\" name=\"error\" library=\"system\"></syn-icon>`\n : ''\n }\n ${this.validationMessage}\n </syn-alert>\n `;\n }\n\n render() {\n return html`\n <div\n class=\"validate\"\n part=\"base\"\n >\n <slot\n class=\"validate__input-wrapper\"\n part=\"input-wrapper\"\n ></slot>\n \n ${this.renderInlineValidation()}\n </div>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY;AACrB,SAAS,UAAU,uBAAuB,aAAa;AAgCvD,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAA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uBAAuB,CAAC;AAAA;AAAA;AAAA,EAGrC;AACF;AA5YqB,YACZ,SAAyB,CAAC,0BAAiB,uBAAM;AADrC,YAGZ,eAAe;AAAA,EACpB,aAAa;AACf;AAMiC;AAAA,EAAhC,sBAAsB;AAAA,GAXJ,YAWc;AAExB;AAAA,EAAR,MAAM;AAAA,GAbY,YAaV;AAEA;AAAA,EAAR,MAAM;AAAA,GAfY,YAeV;AAEA;AAAA,EAAR,MAAM;AAAA,GAjBY,YAiBV;AAEA;AAAA,EAAR,MAAM;AAAA,GAnBY,YAmBV;AASoB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA5BR,YA4BU;AAGuC;AAAA,EAAnE,SAAS,EAAE,WAAW,aAAa,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GA/B/C,YA+BiD;AAsBvC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GArDR,YAqDU;AAOuC;AAAA,EAAnE,SAAS,EAAE,WAAW,6BAA6B,MAAM,OAAO,CAAC;AAAA,GA5D/C,YA4DiD;AAWvC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAvER,YAuEU;AAI7B;AAAA,EADC,MAAM,MAAM,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1ExB,YA2EnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,MAAM,CAAC;AAAA,GA/E5B,YAgFb;AAaN;AAAA,EADC,MAAM,2BAA2B,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA5F7C,YA6FnB;AA7FmB,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;",
6
- "names": []
7
- }
@@ -1,23 +0,0 @@
1
- import {
2
- option_size_styles_default
3
- } from "./chunk.QC7X32ZP.js";
4
-
5
- // src/components/combobox/combobox.custom.styles.ts
6
- import { css } from "lit";
7
- var combobox_custom_styles_default = css`
8
- .combobox:not(.combobox--disabled) .combobox__display-input {
9
- cursor: text;
10
- }
11
-
12
- .listbox__options ::slotted(syn-option[hidden]),
13
- .listbox__options ::slotted(syn-optgroup[hidden]) {
14
- display: none;
15
- }
16
-
17
- ${option_size_styles_default}
18
- `;
19
-
20
- export {
21
- combobox_custom_styles_default
22
- };
23
- //# sourceMappingURL=chunk.EWVMF6KH.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/combobox/combobox.custom.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\nimport sharedOptionSize from '../option/option-size.styles.js';\n\nexport default css`\n .combobox:not(.combobox--disabled) .combobox__display-input {\n cursor: text;\n }\n\n .listbox__options ::slotted(syn-option[hidden]), \n .listbox__options ::slotted(syn-optgroup[hidden]) {\n display: none;\n }\n\n ${sharedOptionSize}\n`;\n"],
5
- "mappings": ";;;;;AAAA,SAAS,WAAW;AAGpB,IAAO,iCAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUX,0BAAgB;AAAA;",
6
- "names": []
7
- }