@synergy-design-system/components 3.4.1 → 3.6.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 (431) hide show
  1. package/dist/chunks/{chunk.HYDHTZQK.js → chunk.2DWIAD22.js} +3 -3
  2. package/dist/chunks/{chunk.CDOWFAH2.js → chunk.2ECWEEUO.js} +21 -4
  3. package/dist/chunks/{chunk.CDOWFAH2.js.map → chunk.2ECWEEUO.js.map} +2 -2
  4. package/dist/chunks/{chunk.FXJLG622.js → chunk.2NT3B5WJ.js} +1 -2
  5. package/dist/chunks/chunk.2NT3B5WJ.js.map +7 -0
  6. package/dist/chunks/chunk.32WNHWXJ.js +256 -0
  7. package/dist/chunks/chunk.32WNHWXJ.js.map +7 -0
  8. package/dist/chunks/{chunk.DEJAPNIZ.js → chunk.3334XOIY.js} +25 -17
  9. package/dist/chunks/chunk.3334XOIY.js.map +7 -0
  10. package/dist/chunks/{chunk.ZJIPUBF4.js → chunk.34I3S3Q5.js} +2 -2
  11. package/dist/chunks/{chunk.PTRCO527.js → chunk.34WYIU4C.js} +11 -36
  12. package/dist/chunks/chunk.34WYIU4C.js.map +7 -0
  13. package/dist/chunks/{chunk.LYR5DVRN.js → chunk.3UJMEQUN.js} +81 -15
  14. package/dist/chunks/chunk.3UJMEQUN.js.map +7 -0
  15. package/dist/chunks/chunk.432DTUIX.js +184 -0
  16. package/dist/chunks/chunk.432DTUIX.js.map +7 -0
  17. package/dist/chunks/{chunk.O2SN266T.js → chunk.44VIEEDD.js} +7 -7
  18. package/dist/chunks/{chunk.6USNG4EL.js → chunk.45MATNO2.js} +39 -6
  19. package/dist/chunks/chunk.45MATNO2.js.map +7 -0
  20. package/dist/chunks/{chunk.YACUYJZN.js → chunk.4BEGBAQD.js} +2 -2
  21. package/dist/chunks/{chunk.TBWTMCIZ.js → chunk.4OMS443H.js} +8 -8
  22. package/dist/chunks/chunk.4P4UJDDZ.js +401 -0
  23. package/dist/chunks/chunk.4P4UJDDZ.js.map +7 -0
  24. package/dist/chunks/{chunk.FBCN4FKK.js → chunk.4Y6OKSYI.js} +2 -2
  25. package/dist/chunks/{chunk.F3ISPVCF.js → chunk.5WQAKFFK.js} +2 -2
  26. package/dist/chunks/{chunk.FXBKSVUT.js → chunk.5YRNPDSI.js} +2 -2
  27. package/dist/chunks/{chunk.K6ZF6MXW.js → chunk.63IQVXUD.js} +2 -2
  28. package/dist/chunks/{chunk.XRABXAPU.js → chunk.6EHTMWUQ.js} +2 -2
  29. package/dist/chunks/{chunk.T5IJK23O.js → chunk.6EWCMDOQ.js} +55 -37
  30. package/dist/chunks/chunk.6EWCMDOQ.js.map +7 -0
  31. package/dist/chunks/{chunk.3BNYHBTW.js → chunk.6GMIINJO.js} +8 -8
  32. package/dist/chunks/{chunk.TCIRIOFE.js → chunk.6VYVMXVV.js} +2 -2
  33. package/dist/chunks/chunk.7DRFKCFD.js +388 -0
  34. package/dist/chunks/chunk.7DRFKCFD.js.map +7 -0
  35. package/dist/chunks/{chunk.QZ3BISVP.js → chunk.7GX46BNP.js} +2 -2
  36. package/dist/chunks/{chunk.6BKPVIJB.js → chunk.7WQVBHRS.js} +2 -2
  37. package/dist/chunks/{chunk.JUL2CRYY.js → chunk.A7YINQHA.js} +2 -2
  38. package/dist/chunks/{chunk.D74ABFPR.js → chunk.AD4WKLKY.js} +2 -2
  39. package/dist/chunks/{chunk.GIRTTUXE.js → chunk.B4UA7LU7.js} +4 -4
  40. package/dist/chunks/{chunk.SQ5WOO45.js → chunk.BIGAPOOQ.js} +2 -2
  41. package/dist/chunks/{chunk.I4H7DRDG.js → chunk.BLS5NMGM.js} +2 -2
  42. package/dist/chunks/{chunk.7J4L4QJD.js → chunk.BWNWEGKQ.js} +2 -2
  43. package/dist/chunks/{chunk.WYNTVNZN.js → chunk.BYGCAEBC.js} +3 -3
  44. package/dist/chunks/{chunk.TJGW3F7V.js → chunk.DHCEQX56.js} +3 -3
  45. package/dist/chunks/{chunk.A2WIAKI6.js → chunk.DQIPVU4J.js} +3 -3
  46. package/dist/chunks/{chunk.BLXDFVSN.js → chunk.E3J4FZS3.js} +2 -2
  47. package/dist/chunks/{chunk.OLGJ7TFN.js → chunk.EEVLMRYA.js} +2 -2
  48. package/dist/chunks/{chunk.YOFWLXEH.js → chunk.EQUDFX74.js} +16 -10
  49. package/dist/chunks/chunk.EQUDFX74.js.map +7 -0
  50. package/dist/chunks/{chunk.WBNYPYL7.js → chunk.ESXNQJQU.js} +2 -2
  51. package/dist/chunks/{chunk.5OM5JMIS.js → chunk.EX2D55AB.js} +2 -2
  52. package/dist/chunks/{chunk.IPCLZSAG.js → chunk.FGF4ENWR.js} +10 -10
  53. package/dist/chunks/{chunk.RY3ZM7MQ.js → chunk.FQ6KKYNN.js} +4 -4
  54. package/dist/chunks/{chunk.BYE5W5XF.js → chunk.FUWJV6FF.js} +2 -2
  55. package/dist/chunks/{chunk.BYE5W5XF.js.map → chunk.FUWJV6FF.js.map} +1 -1
  56. package/dist/chunks/{chunk.XSGOTME6.js → chunk.GI3MHRT5.js} +22 -23
  57. package/dist/chunks/chunk.GI3MHRT5.js.map +7 -0
  58. package/dist/chunks/{chunk.ENOYY3IT.js → chunk.GKWU7STM.js} +5 -5
  59. package/dist/chunks/{chunk.M56PSVI2.js → chunk.HQQFUCQ6.js} +2 -2
  60. package/dist/chunks/{chunk.CZ37RPEW.js → chunk.HXZVWZL3.js} +2 -2
  61. package/dist/chunks/{chunk.S4VV4PW6.js → chunk.IPLC773L.js} +2 -2
  62. package/dist/chunks/{chunk.RFZFX5DB.js → chunk.IR3P3QGG.js} +44 -36
  63. package/dist/chunks/chunk.IR3P3QGG.js.map +7 -0
  64. package/dist/chunks/{chunk.UHLDAGGC.js → chunk.IV3FR4CG.js} +26 -16
  65. package/dist/chunks/chunk.IV3FR4CG.js.map +7 -0
  66. package/dist/chunks/{chunk.NG6MPQXW.js → chunk.JBNR3EZZ.js} +5 -8
  67. package/dist/chunks/chunk.JBNR3EZZ.js.map +7 -0
  68. package/dist/chunks/{chunk.SFAXS422.js → chunk.JXCCMLXD.js} +2 -2
  69. package/dist/chunks/{chunk.ZZPMWJEV.js → chunk.K7FUMJK2.js} +3 -3
  70. package/dist/chunks/{chunk.SJKOVTL7.js → chunk.KD57IQV6.js} +24 -14
  71. package/dist/chunks/chunk.KD57IQV6.js.map +7 -0
  72. package/dist/chunks/{chunk.IM54DI3K.js → chunk.KEO5PHF2.js} +28 -4
  73. package/dist/chunks/{chunk.IM54DI3K.js.map → chunk.KEO5PHF2.js.map} +2 -2
  74. package/dist/chunks/{chunk.6AGTA23Z.js → chunk.KHL5C52A.js} +2 -2
  75. package/dist/chunks/{chunk.Q52OTVVQ.js → chunk.KO63GPHO.js} +14 -15
  76. package/dist/chunks/chunk.KO63GPHO.js.map +7 -0
  77. package/dist/chunks/{chunk.GDUWM3IU.js → chunk.KOYEOD56.js} +2 -2
  78. package/dist/chunks/{chunk.5SCUGJ6B.js → chunk.KXTBRSLW.js} +2 -2
  79. package/dist/chunks/{chunk.X64WPXGV.js → chunk.KZJR6HZD.js} +13 -13
  80. package/dist/chunks/{chunk.UJJS5NUR.js → chunk.LA2QMOXI.js} +2 -2
  81. package/dist/chunks/{chunk.DEBFHR7L.js → chunk.LGSQ6DML.js} +8 -8
  82. package/dist/chunks/{chunk.4KKHRDXV.js → chunk.LJYCM7V2.js} +9 -9
  83. package/dist/chunks/{chunk.XCIMZW5A.js → chunk.LYQYSN3L.js} +11 -11
  84. package/dist/chunks/{chunk.PJSYITAJ.js → chunk.M4LSKQMC.js} +2 -2
  85. package/dist/chunks/{chunk.5KP4LNRA.js → chunk.MHSMXQPS.js} +10 -10
  86. package/dist/chunks/{chunk.PMUJUBRK.js → chunk.MNS3RHQ3.js} +10 -10
  87. package/dist/chunks/{chunk.OVW5OJ5D.js → chunk.MOGC7VFU.js} +3 -3
  88. package/dist/chunks/{chunk.FIRUUZ72.js → chunk.MTRKCZX4.js} +16 -14
  89. package/dist/chunks/chunk.MTRKCZX4.js.map +7 -0
  90. package/dist/chunks/{chunk.SK3OOBSU.js → chunk.N25AMXDL.js} +2 -2
  91. package/dist/chunks/{chunk.LAS6ZMG3.js → chunk.N2YN3NX6.js} +12 -15
  92. package/dist/chunks/chunk.N2YN3NX6.js.map +7 -0
  93. package/dist/chunks/{chunk.ZWIJDTHA.js → chunk.NB2UOW3O.js} +9 -9
  94. package/dist/chunks/{chunk.KPHDBL43.js → chunk.NDJJVGQL.js} +56 -27
  95. package/dist/chunks/chunk.NDJJVGQL.js.map +7 -0
  96. package/dist/chunks/{chunk.Q7TVQOF4.js → chunk.NIQMC4FW.js} +7 -7
  97. package/dist/chunks/{chunk.LCFMN5P6.js → chunk.O34OXLGO.js} +2 -2
  98. package/dist/chunks/{chunk.YAKMH4QL.js → chunk.OF4BZKDQ.js} +5 -5
  99. package/dist/chunks/{chunk.REYQATVI.js → chunk.OK2D4PQ6.js} +9 -13
  100. package/dist/chunks/chunk.OK2D4PQ6.js.map +7 -0
  101. package/dist/chunks/{chunk.2BNFOMES.js → chunk.OK2D5LNY.js} +24 -18
  102. package/dist/chunks/chunk.OK2D5LNY.js.map +7 -0
  103. package/dist/chunks/{chunk.RQW6TIU3.js → chunk.P7LAZVIX.js} +2 -2
  104. package/dist/chunks/{chunk.WB7AZHAU.js → chunk.PMRBUT43.js} +2 -2
  105. package/dist/chunks/{chunk.RE6C7TN4.js → chunk.POUKY545.js} +10 -10
  106. package/dist/chunks/{chunk.KY4TLUU7.js → chunk.PQDMVEQ5.js} +2 -2
  107. package/dist/chunks/{chunk.Z624JZ3J.js → chunk.Q2K7NQCB.js} +3 -3
  108. package/dist/chunks/{chunk.YDGDQPP5.js → chunk.SEGXW66J.js} +7 -7
  109. package/dist/chunks/{chunk.CU6PP445.js → chunk.SRVAU77I.js} +12 -12
  110. package/dist/chunks/{chunk.VRADHZYJ.js → chunk.SSFAGBRV.js} +8 -8
  111. package/dist/chunks/{chunk.E7XVQIGU.js → chunk.STXZTZMY.js} +2 -2
  112. package/dist/chunks/{chunk.ZB5HHICG.js → chunk.SUFEDTS2.js} +2 -2
  113. package/dist/chunks/{chunk.FYMB6WRK.js → chunk.T7XTHFR7.js} +2 -2
  114. package/dist/chunks/{chunk.HKAVJBBB.js → chunk.TGTVJBXC.js} +2 -2
  115. package/dist/chunks/{chunk.UDN55TWV.js → chunk.TPS2SF3S.js} +37 -27
  116. package/dist/chunks/chunk.TPS2SF3S.js.map +7 -0
  117. package/dist/chunks/{chunk.NQ4QB2MM.js → chunk.TSRZZOKK.js} +2 -2
  118. package/dist/chunks/{chunk.HMHNDXAC.js → chunk.U6SWVYGR.js} +7 -7
  119. package/dist/chunks/{chunk.TSWB7UFK.js → chunk.UA5B6CPN.js} +82 -15
  120. package/dist/chunks/chunk.UA5B6CPN.js.map +7 -0
  121. package/dist/chunks/{chunk.KRFWZXI7.js → chunk.VLCNIRQP.js} +6 -6
  122. package/dist/chunks/{chunk.FESJPZKL.js → chunk.VO4T33T2.js} +2 -2
  123. package/dist/chunks/chunk.VOUZJK5T.js +187 -0
  124. package/dist/chunks/chunk.VOUZJK5T.js.map +7 -0
  125. package/dist/chunks/{chunk.CKCAQK4L.js → chunk.W4UYS7NY.js} +2 -2
  126. package/dist/chunks/{chunk.3XGSZICI.js → chunk.WAFGHUVD.js} +2 -2
  127. package/dist/chunks/{chunk.XJTZAA2Z.js → chunk.WDW65L3W.js} +2 -2
  128. package/dist/chunks/{chunk.CRK3CDIA.js → chunk.WVO75K4L.js} +3 -3
  129. package/dist/chunks/{chunk.FAHK4E5U.js → chunk.XHZZLHOD.js} +2 -2
  130. package/dist/chunks/{chunk.NK4LRKZH.js → chunk.XJSWRSR5.js} +2 -2
  131. package/dist/chunks/{chunk.JRG45QJG.js → chunk.YFDRVJUV.js} +3 -3
  132. package/dist/chunks/{chunk.LWPDGLHA.js → chunk.YFETCWLT.js} +6 -6
  133. package/dist/chunks/{chunk.TMIMLIC2.js → chunk.ZBHF3VT7.js} +2 -2
  134. package/dist/chunks/{chunk.YWLPEZQC.js → chunk.ZCUQMK2T.js} +2 -2
  135. package/dist/chunks/{chunk.MCD4BAD3.js → chunk.ZEBIZ2UZ.js} +6 -6
  136. package/dist/chunks/{chunk.VTL7TKW3.js → chunk.ZKCT75DI.js} +3 -3
  137. package/dist/chunks/{chunk.XEWNW7X7.js → chunk.ZNEQLWGZ.js} +37 -3
  138. package/dist/chunks/chunk.ZNEQLWGZ.js.map +7 -0
  139. package/dist/chunks/{chunk.Y5CDCBLE.js → chunk.ZRA73PRW.js} +2 -2
  140. package/dist/chunks/{chunk.V4C7IECK.js → chunk.ZZAW2A7F.js} +23 -14
  141. package/dist/chunks/chunk.ZZAW2A7F.js.map +7 -0
  142. package/dist/components/accordion/accordion.component.js +7 -7
  143. package/dist/components/accordion/accordion.js +8 -8
  144. package/dist/components/alert/alert.component.js +14 -15
  145. package/dist/components/alert/alert.js +15 -16
  146. package/dist/components/alert/alert.styles.js +1 -1
  147. package/dist/components/badge/badge.component.js +8 -8
  148. package/dist/components/badge/badge.js +9 -9
  149. package/dist/components/breadcrumb/breadcrumb.component.js +10 -10
  150. package/dist/components/breadcrumb/breadcrumb.js +11 -11
  151. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +3 -3
  152. package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -4
  153. package/dist/components/button/button.component.js +13 -13
  154. package/dist/components/button/button.js +14 -14
  155. package/dist/components/button-group/button-group.component.js +6 -6
  156. package/dist/components/button-group/button-group.js +7 -7
  157. package/dist/components/card/card.component.js +3 -3
  158. package/dist/components/card/card.js +4 -4
  159. package/dist/components/checkbox/checkbox.component.d.ts +2 -1
  160. package/dist/components/checkbox/checkbox.component.js +12 -13
  161. package/dist/components/checkbox/checkbox.js +13 -14
  162. package/dist/components/checkbox/checkbox.styles.js +1 -1
  163. package/dist/components/combobox/combobox.component.d.ts +3 -0
  164. package/dist/components/combobox/combobox.component.js +22 -24
  165. package/dist/components/combobox/combobox.js +23 -25
  166. package/dist/components/combobox/combobox.styles.js +2 -1
  167. package/dist/components/details/details.component.js +11 -11
  168. package/dist/components/details/details.js +12 -12
  169. package/dist/components/dialog/dialog.component.js +14 -14
  170. package/dist/components/dialog/dialog.js +15 -15
  171. package/dist/components/divider/divider.component.js +3 -3
  172. package/dist/components/divider/divider.js +4 -4
  173. package/dist/components/drawer/drawer.component.js +14 -14
  174. package/dist/components/drawer/drawer.js +15 -15
  175. package/dist/components/dropdown/dropdown.component.js +6 -7
  176. package/dist/components/dropdown/dropdown.js +7 -8
  177. package/dist/components/file/file.component.d.ts +2 -0
  178. package/dist/components/file/file.component.js +16 -16
  179. package/dist/components/file/file.js +17 -17
  180. package/dist/components/file/file.styles.js +1 -1
  181. package/dist/components/header/header.component.js +9 -9
  182. package/dist/components/header/header.js +10 -10
  183. package/dist/components/icon/icon.component.js +5 -5
  184. package/dist/components/icon/icon.js +6 -6
  185. package/dist/components/icon-button/icon-button.component.js +11 -11
  186. package/dist/components/icon-button/icon-button.js +12 -12
  187. package/dist/components/input/input.component.js +14 -14
  188. package/dist/components/input/input.js +15 -15
  189. package/dist/components/menu/menu.component.js +3 -3
  190. package/dist/components/menu/menu.js +4 -4
  191. package/dist/components/menu-item/menu-item.component.js +13 -14
  192. package/dist/components/menu-item/menu-item.js +14 -15
  193. package/dist/components/menu-label/menu-label.component.js +5 -5
  194. package/dist/components/menu-label/menu-label.js +6 -6
  195. package/dist/components/nav-item/nav-item.component.js +7 -7
  196. package/dist/components/nav-item/nav-item.js +8 -8
  197. package/dist/components/optgroup/optgroup.component.js +4 -4
  198. package/dist/components/optgroup/optgroup.js +5 -5
  199. package/dist/components/option/option.component.js +12 -12
  200. package/dist/components/option/option.js +13 -13
  201. package/dist/components/popup/popup.component.js +4 -5
  202. package/dist/components/popup/popup.js +5 -6
  203. package/dist/components/popup/popup.styles.js +1 -1
  204. package/dist/components/prio-nav/prio-nav.component.js +16 -17
  205. package/dist/components/prio-nav/prio-nav.js +17 -18
  206. package/dist/components/progress-bar/progress-bar.component.js +3 -3
  207. package/dist/components/progress-bar/progress-bar.js +4 -4
  208. package/dist/components/progress-ring/progress-ring.component.js +3 -3
  209. package/dist/components/progress-ring/progress-ring.js +4 -4
  210. package/dist/components/radio/radio.component.d.ts +3 -1
  211. package/dist/components/radio/radio.component.js +11 -12
  212. package/dist/components/radio/radio.js +12 -13
  213. package/dist/components/radio/radio.styles.js +1 -1
  214. package/dist/components/radio-button/radio-button.component.js +7 -7
  215. package/dist/components/radio-button/radio-button.js +8 -8
  216. package/dist/components/radio-group/radio-group.component.d.ts +1 -1
  217. package/dist/components/radio-group/radio-group.component.js +10 -11
  218. package/dist/components/radio-group/radio-group.js +11 -12
  219. package/dist/components/radio-group/radio-group.styles.js +1 -1
  220. package/dist/components/range/range.component.d.ts +2 -0
  221. package/dist/components/range/range.component.js +13 -15
  222. package/dist/components/range/range.js +14 -16
  223. package/dist/components/range/range.styles.js +1 -1
  224. package/dist/components/range-tick/range-tick.component.js +3 -3
  225. package/dist/components/range-tick/range-tick.js +4 -4
  226. package/dist/components/resize-observer/resize-observer.component.js +3 -3
  227. package/dist/components/select/select.component.d.ts +3 -0
  228. package/dist/components/select/select.component.js +18 -20
  229. package/dist/components/select/select.js +19 -21
  230. package/dist/components/select/select.styles.js +2 -1
  231. package/dist/components/side-nav/side-nav.component.js +19 -19
  232. package/dist/components/side-nav/side-nav.js +20 -20
  233. package/dist/components/spinner/spinner.component.js +4 -4
  234. package/dist/components/spinner/spinner.js +5 -5
  235. package/dist/components/switch/switch.component.d.ts +2 -0
  236. package/dist/components/switch/switch.component.js +9 -10
  237. package/dist/components/switch/switch.js +10 -11
  238. package/dist/components/switch/switch.styles.js +1 -1
  239. package/dist/components/tab/tab.component.js +13 -13
  240. package/dist/components/tab/tab.js +14 -14
  241. package/dist/components/tab-group/tab-group.component.js +14 -14
  242. package/dist/components/tab-group/tab-group.js +15 -15
  243. package/dist/components/tab-panel/tab-panel.component.js +3 -3
  244. package/dist/components/tab-panel/tab-panel.js +4 -4
  245. package/dist/components/tag/tag.component.js +13 -13
  246. package/dist/components/tag/tag.js +14 -14
  247. package/dist/components/textarea/textarea.component.js +9 -10
  248. package/dist/components/textarea/textarea.js +10 -11
  249. package/dist/components/textarea/textarea.styles.js +1 -1
  250. package/dist/components/tooltip/tooltip.component.d.ts +6 -0
  251. package/dist/components/tooltip/tooltip.component.js +7 -9
  252. package/dist/components/tooltip/tooltip.js +8 -10
  253. package/dist/components/tooltip/tooltip.styles.js +1 -1
  254. package/dist/components/validate/utility.d.ts +11 -0
  255. package/dist/components/validate/utility.js +4 -2
  256. package/dist/components/validate/validate.component.d.ts +21 -2
  257. package/dist/components/validate/validate.component.js +20 -17
  258. package/dist/components/validate/validate.js +21 -18
  259. package/dist/custom-elements.json +234 -19
  260. package/dist/styles/index.css +8 -10
  261. package/dist/styles/utility.css +6 -11
  262. package/dist/synergy.js +177 -187
  263. package/dist/utilities/defaultSettings/decorator.js +3 -3
  264. package/dist/utilities/defaultSettings/functions.js +2 -2
  265. package/dist/utilities/defaultSettings/index.js +3 -3
  266. package/dist/vscode.html-custom-data.json +42 -3
  267. package/package.json +3 -3
  268. package/dist/chunks/chunk.2BNFOMES.js.map +0 -7
  269. package/dist/chunks/chunk.2IL4PA6Q.js +0 -130
  270. package/dist/chunks/chunk.2IL4PA6Q.js.map +0 -7
  271. package/dist/chunks/chunk.36EHOOOO.js +0 -23
  272. package/dist/chunks/chunk.36EHOOOO.js.map +0 -7
  273. package/dist/chunks/chunk.6AT5JL7A.js +0 -374
  274. package/dist/chunks/chunk.6AT5JL7A.js.map +0 -7
  275. package/dist/chunks/chunk.6USNG4EL.js.map +0 -7
  276. package/dist/chunks/chunk.CCY6IYFD.js +0 -107
  277. package/dist/chunks/chunk.CCY6IYFD.js.map +0 -7
  278. package/dist/chunks/chunk.DEJAPNIZ.js.map +0 -7
  279. package/dist/chunks/chunk.E7LBPRDC.js +0 -18
  280. package/dist/chunks/chunk.E7LBPRDC.js.map +0 -7
  281. package/dist/chunks/chunk.F7LCJU4M.js +0 -183
  282. package/dist/chunks/chunk.F7LCJU4M.js.map +0 -7
  283. package/dist/chunks/chunk.FIRUUZ72.js.map +0 -7
  284. package/dist/chunks/chunk.FXJLG622.js.map +0 -7
  285. package/dist/chunks/chunk.GPP4D4HH.js +0 -313
  286. package/dist/chunks/chunk.GPP4D4HH.js.map +0 -7
  287. package/dist/chunks/chunk.IZRTF5EM.js +0 -91
  288. package/dist/chunks/chunk.IZRTF5EM.js.map +0 -7
  289. package/dist/chunks/chunk.KPHDBL43.js.map +0 -7
  290. package/dist/chunks/chunk.LAS6ZMG3.js.map +0 -7
  291. package/dist/chunks/chunk.LYR5DVRN.js.map +0 -7
  292. package/dist/chunks/chunk.NG6MPQXW.js.map +0 -7
  293. package/dist/chunks/chunk.PTRCO527.js.map +0 -7
  294. package/dist/chunks/chunk.Q52OTVVQ.js.map +0 -7
  295. package/dist/chunks/chunk.REYQATVI.js.map +0 -7
  296. package/dist/chunks/chunk.RFZFX5DB.js.map +0 -7
  297. package/dist/chunks/chunk.SHIPVO7H.js +0 -53
  298. package/dist/chunks/chunk.SHIPVO7H.js.map +0 -7
  299. package/dist/chunks/chunk.SJKOVTL7.js.map +0 -7
  300. package/dist/chunks/chunk.SLDFB2O3.js +0 -146
  301. package/dist/chunks/chunk.SLDFB2O3.js.map +0 -7
  302. package/dist/chunks/chunk.T5IJK23O.js.map +0 -7
  303. package/dist/chunks/chunk.TSWB7UFK.js.map +0 -7
  304. package/dist/chunks/chunk.UDN55TWV.js.map +0 -7
  305. package/dist/chunks/chunk.UHLDAGGC.js.map +0 -7
  306. package/dist/chunks/chunk.V4C7IECK.js.map +0 -7
  307. package/dist/chunks/chunk.X323W6VB.js +0 -174
  308. package/dist/chunks/chunk.X323W6VB.js.map +0 -7
  309. package/dist/chunks/chunk.XEWNW7X7.js.map +0 -7
  310. package/dist/chunks/chunk.XSGOTME6.js.map +0 -7
  311. package/dist/chunks/chunk.YITQ6NLI.js +0 -121
  312. package/dist/chunks/chunk.YITQ6NLI.js.map +0 -7
  313. package/dist/chunks/chunk.YOFWLXEH.js.map +0 -7
  314. package/dist/chunks/chunk.YOJL35VB.js +0 -91
  315. package/dist/chunks/chunk.YOJL35VB.js.map +0 -7
  316. package/dist/chunks/chunk.YPYFEST2.js +0 -41
  317. package/dist/chunks/chunk.YPYFEST2.js.map +0 -7
  318. package/dist/chunks/chunk.ZC3GXTWV.js +0 -127
  319. package/dist/chunks/chunk.ZC3GXTWV.js.map +0 -7
  320. package/dist/components/alert/alert.custom.styles.d.ts +0 -2
  321. package/dist/components/alert/alert.custom.styles.js +0 -8
  322. package/dist/components/alert/alert.custom.styles.js.map +0 -7
  323. package/dist/components/checkbox/checkbox.custom.styles.d.ts +0 -2
  324. package/dist/components/checkbox/checkbox.custom.styles.js +0 -8
  325. package/dist/components/checkbox/checkbox.custom.styles.js.map +0 -7
  326. package/dist/components/combobox/combobox.custom.styles.d.ts +0 -2
  327. package/dist/components/combobox/combobox.custom.styles.js +0 -9
  328. package/dist/components/combobox/combobox.custom.styles.js.map +0 -7
  329. package/dist/components/popup/popup.custom.styles.d.ts +0 -2
  330. package/dist/components/popup/popup.custom.styles.js +0 -8
  331. package/dist/components/popup/popup.custom.styles.js.map +0 -7
  332. package/dist/components/radio/radio.custom.styles.d.ts +0 -2
  333. package/dist/components/radio/radio.custom.styles.js +0 -8
  334. package/dist/components/radio/radio.custom.styles.js.map +0 -7
  335. package/dist/components/radio-group/radio-group.custom.styles.d.ts +0 -2
  336. package/dist/components/radio-group/radio-group.custom.styles.js +0 -8
  337. package/dist/components/radio-group/radio-group.custom.styles.js.map +0 -7
  338. package/dist/components/select/select.custom.styles.d.ts +0 -2
  339. package/dist/components/select/select.custom.styles.js +0 -9
  340. package/dist/components/select/select.custom.styles.js.map +0 -7
  341. package/dist/components/switch/switch.custom.styles.d.ts +0 -2
  342. package/dist/components/switch/switch.custom.styles.js +0 -8
  343. package/dist/components/switch/switch.custom.styles.js.map +0 -7
  344. package/dist/components/textarea/textarea.custom.styles.d.ts +0 -2
  345. package/dist/components/textarea/textarea.custom.styles.js +0 -8
  346. package/dist/components/textarea/textarea.custom.styles.js.map +0 -7
  347. package/dist/components/tooltip/tooltip.custom.styles.d.ts +0 -2
  348. package/dist/components/tooltip/tooltip.custom.styles.js +0 -8
  349. package/dist/components/tooltip/tooltip.custom.styles.js.map +0 -7
  350. package/dist/styles/form-control.custom.styles.d.ts +0 -2
  351. /package/dist/chunks/{chunk.HYDHTZQK.js.map → chunk.2DWIAD22.js.map} +0 -0
  352. /package/dist/chunks/{chunk.ZJIPUBF4.js.map → chunk.34I3S3Q5.js.map} +0 -0
  353. /package/dist/chunks/{chunk.O2SN266T.js.map → chunk.44VIEEDD.js.map} +0 -0
  354. /package/dist/chunks/{chunk.YACUYJZN.js.map → chunk.4BEGBAQD.js.map} +0 -0
  355. /package/dist/chunks/{chunk.TBWTMCIZ.js.map → chunk.4OMS443H.js.map} +0 -0
  356. /package/dist/chunks/{chunk.FBCN4FKK.js.map → chunk.4Y6OKSYI.js.map} +0 -0
  357. /package/dist/chunks/{chunk.F3ISPVCF.js.map → chunk.5WQAKFFK.js.map} +0 -0
  358. /package/dist/chunks/{chunk.FXBKSVUT.js.map → chunk.5YRNPDSI.js.map} +0 -0
  359. /package/dist/chunks/{chunk.K6ZF6MXW.js.map → chunk.63IQVXUD.js.map} +0 -0
  360. /package/dist/chunks/{chunk.XRABXAPU.js.map → chunk.6EHTMWUQ.js.map} +0 -0
  361. /package/dist/chunks/{chunk.3BNYHBTW.js.map → chunk.6GMIINJO.js.map} +0 -0
  362. /package/dist/chunks/{chunk.TCIRIOFE.js.map → chunk.6VYVMXVV.js.map} +0 -0
  363. /package/dist/chunks/{chunk.QZ3BISVP.js.map → chunk.7GX46BNP.js.map} +0 -0
  364. /package/dist/chunks/{chunk.6BKPVIJB.js.map → chunk.7WQVBHRS.js.map} +0 -0
  365. /package/dist/chunks/{chunk.JUL2CRYY.js.map → chunk.A7YINQHA.js.map} +0 -0
  366. /package/dist/chunks/{chunk.D74ABFPR.js.map → chunk.AD4WKLKY.js.map} +0 -0
  367. /package/dist/chunks/{chunk.GIRTTUXE.js.map → chunk.B4UA7LU7.js.map} +0 -0
  368. /package/dist/chunks/{chunk.SQ5WOO45.js.map → chunk.BIGAPOOQ.js.map} +0 -0
  369. /package/dist/chunks/{chunk.I4H7DRDG.js.map → chunk.BLS5NMGM.js.map} +0 -0
  370. /package/dist/chunks/{chunk.7J4L4QJD.js.map → chunk.BWNWEGKQ.js.map} +0 -0
  371. /package/dist/chunks/{chunk.WYNTVNZN.js.map → chunk.BYGCAEBC.js.map} +0 -0
  372. /package/dist/chunks/{chunk.TJGW3F7V.js.map → chunk.DHCEQX56.js.map} +0 -0
  373. /package/dist/chunks/{chunk.A2WIAKI6.js.map → chunk.DQIPVU4J.js.map} +0 -0
  374. /package/dist/chunks/{chunk.BLXDFVSN.js.map → chunk.E3J4FZS3.js.map} +0 -0
  375. /package/dist/chunks/{chunk.OLGJ7TFN.js.map → chunk.EEVLMRYA.js.map} +0 -0
  376. /package/dist/chunks/{chunk.WBNYPYL7.js.map → chunk.ESXNQJQU.js.map} +0 -0
  377. /package/dist/chunks/{chunk.5OM5JMIS.js.map → chunk.EX2D55AB.js.map} +0 -0
  378. /package/dist/chunks/{chunk.IPCLZSAG.js.map → chunk.FGF4ENWR.js.map} +0 -0
  379. /package/dist/chunks/{chunk.RY3ZM7MQ.js.map → chunk.FQ6KKYNN.js.map} +0 -0
  380. /package/dist/chunks/{chunk.ENOYY3IT.js.map → chunk.GKWU7STM.js.map} +0 -0
  381. /package/dist/chunks/{chunk.M56PSVI2.js.map → chunk.HQQFUCQ6.js.map} +0 -0
  382. /package/dist/chunks/{chunk.CZ37RPEW.js.map → chunk.HXZVWZL3.js.map} +0 -0
  383. /package/dist/chunks/{chunk.S4VV4PW6.js.map → chunk.IPLC773L.js.map} +0 -0
  384. /package/dist/chunks/{chunk.SFAXS422.js.map → chunk.JXCCMLXD.js.map} +0 -0
  385. /package/dist/chunks/{chunk.ZZPMWJEV.js.map → chunk.K7FUMJK2.js.map} +0 -0
  386. /package/dist/chunks/{chunk.6AGTA23Z.js.map → chunk.KHL5C52A.js.map} +0 -0
  387. /package/dist/chunks/{chunk.GDUWM3IU.js.map → chunk.KOYEOD56.js.map} +0 -0
  388. /package/dist/chunks/{chunk.5SCUGJ6B.js.map → chunk.KXTBRSLW.js.map} +0 -0
  389. /package/dist/chunks/{chunk.X64WPXGV.js.map → chunk.KZJR6HZD.js.map} +0 -0
  390. /package/dist/chunks/{chunk.UJJS5NUR.js.map → chunk.LA2QMOXI.js.map} +0 -0
  391. /package/dist/chunks/{chunk.DEBFHR7L.js.map → chunk.LGSQ6DML.js.map} +0 -0
  392. /package/dist/chunks/{chunk.4KKHRDXV.js.map → chunk.LJYCM7V2.js.map} +0 -0
  393. /package/dist/chunks/{chunk.XCIMZW5A.js.map → chunk.LYQYSN3L.js.map} +0 -0
  394. /package/dist/chunks/{chunk.PJSYITAJ.js.map → chunk.M4LSKQMC.js.map} +0 -0
  395. /package/dist/chunks/{chunk.5KP4LNRA.js.map → chunk.MHSMXQPS.js.map} +0 -0
  396. /package/dist/chunks/{chunk.PMUJUBRK.js.map → chunk.MNS3RHQ3.js.map} +0 -0
  397. /package/dist/chunks/{chunk.OVW5OJ5D.js.map → chunk.MOGC7VFU.js.map} +0 -0
  398. /package/dist/chunks/{chunk.SK3OOBSU.js.map → chunk.N25AMXDL.js.map} +0 -0
  399. /package/dist/chunks/{chunk.ZWIJDTHA.js.map → chunk.NB2UOW3O.js.map} +0 -0
  400. /package/dist/chunks/{chunk.Q7TVQOF4.js.map → chunk.NIQMC4FW.js.map} +0 -0
  401. /package/dist/chunks/{chunk.LCFMN5P6.js.map → chunk.O34OXLGO.js.map} +0 -0
  402. /package/dist/chunks/{chunk.YAKMH4QL.js.map → chunk.OF4BZKDQ.js.map} +0 -0
  403. /package/dist/chunks/{chunk.RQW6TIU3.js.map → chunk.P7LAZVIX.js.map} +0 -0
  404. /package/dist/chunks/{chunk.WB7AZHAU.js.map → chunk.PMRBUT43.js.map} +0 -0
  405. /package/dist/chunks/{chunk.RE6C7TN4.js.map → chunk.POUKY545.js.map} +0 -0
  406. /package/dist/chunks/{chunk.KY4TLUU7.js.map → chunk.PQDMVEQ5.js.map} +0 -0
  407. /package/dist/chunks/{chunk.Z624JZ3J.js.map → chunk.Q2K7NQCB.js.map} +0 -0
  408. /package/dist/chunks/{chunk.YDGDQPP5.js.map → chunk.SEGXW66J.js.map} +0 -0
  409. /package/dist/chunks/{chunk.CU6PP445.js.map → chunk.SRVAU77I.js.map} +0 -0
  410. /package/dist/chunks/{chunk.VRADHZYJ.js.map → chunk.SSFAGBRV.js.map} +0 -0
  411. /package/dist/chunks/{chunk.E7XVQIGU.js.map → chunk.STXZTZMY.js.map} +0 -0
  412. /package/dist/chunks/{chunk.ZB5HHICG.js.map → chunk.SUFEDTS2.js.map} +0 -0
  413. /package/dist/chunks/{chunk.FYMB6WRK.js.map → chunk.T7XTHFR7.js.map} +0 -0
  414. /package/dist/chunks/{chunk.HKAVJBBB.js.map → chunk.TGTVJBXC.js.map} +0 -0
  415. /package/dist/chunks/{chunk.NQ4QB2MM.js.map → chunk.TSRZZOKK.js.map} +0 -0
  416. /package/dist/chunks/{chunk.HMHNDXAC.js.map → chunk.U6SWVYGR.js.map} +0 -0
  417. /package/dist/chunks/{chunk.KRFWZXI7.js.map → chunk.VLCNIRQP.js.map} +0 -0
  418. /package/dist/chunks/{chunk.FESJPZKL.js.map → chunk.VO4T33T2.js.map} +0 -0
  419. /package/dist/chunks/{chunk.CKCAQK4L.js.map → chunk.W4UYS7NY.js.map} +0 -0
  420. /package/dist/chunks/{chunk.3XGSZICI.js.map → chunk.WAFGHUVD.js.map} +0 -0
  421. /package/dist/chunks/{chunk.XJTZAA2Z.js.map → chunk.WDW65L3W.js.map} +0 -0
  422. /package/dist/chunks/{chunk.CRK3CDIA.js.map → chunk.WVO75K4L.js.map} +0 -0
  423. /package/dist/chunks/{chunk.FAHK4E5U.js.map → chunk.XHZZLHOD.js.map} +0 -0
  424. /package/dist/chunks/{chunk.NK4LRKZH.js.map → chunk.XJSWRSR5.js.map} +0 -0
  425. /package/dist/chunks/{chunk.JRG45QJG.js.map → chunk.YFDRVJUV.js.map} +0 -0
  426. /package/dist/chunks/{chunk.LWPDGLHA.js.map → chunk.YFETCWLT.js.map} +0 -0
  427. /package/dist/chunks/{chunk.TMIMLIC2.js.map → chunk.ZBHF3VT7.js.map} +0 -0
  428. /package/dist/chunks/{chunk.YWLPEZQC.js.map → chunk.ZCUQMK2T.js.map} +0 -0
  429. /package/dist/chunks/{chunk.MCD4BAD3.js.map → chunk.ZEBIZ2UZ.js.map} +0 -0
  430. /package/dist/chunks/{chunk.VTL7TKW3.js.map → chunk.ZKCT75DI.js.map} +0 -0
  431. /package/dist/chunks/{chunk.Y5CDCBLE.js.map → chunk.ZRA73PRW.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/popup/popup.component.ts"],
4
- "sourcesContent": ["/* eslint-disable */\nimport { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from '@floating-ui/dom';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { offsetParent } from 'composed-offset-position';\nimport { property, query } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './popup.styles.js';\nimport customStyles from './popup.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\nconst SUPPORTS_POPOVER = globalThis?.HTMLElement?.prototype.hasOwnProperty('popover');\n\nexport interface VirtualElement {\n getBoundingClientRect: () => DOMRect;\n contextElement?: Element;\n}\n\nfunction isVirtualElement(e: unknown): e is VirtualElement {\n return (\n e !== null &&\n typeof e === 'object' &&\n 'getBoundingClientRect' in e &&\n ('contextElement' in e ? e.contextElement instanceof Element : true)\n );\n}\n\n/**\n * @summary Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-popup--docs\n * @status stable\n * @since 2.0\n *\n * @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive\n * operations in your listener or consider debouncing it.\n *\n * @slot - The popup's content.\n * @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the\n * `anchor` attribute or property instead.\n *\n * @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are\n * assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and\n * maybe a border or box shadow.\n * @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.\n * @csspart hover-bridge - The hover bridge element. Only available when the `hover-bridge` option is enabled.\n *\n * @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`\n * attribute is used.\n * @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.\n * @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n * @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n */\nexport default class SynPopup extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private anchorEl: Element | VirtualElement | null;\n private cleanup: ReturnType<typeof autoUpdate> | undefined;\n private readonly localize = new LocalizeController(this);\n\n /** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */\n @query('.popup') popup: HTMLElement;\n @query('.popup__arrow') private arrowEl: HTMLElement;\n\n /**\n * The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor\n * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the\n * `anchor` slot instead.\n */\n @property() anchor: Element | string | VirtualElement;\n\n /**\n * Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\n * down and the popup will be hidden.\n */\n @property({ type: Boolean, reflect: true }) active = false;\n\n /**\n * The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\n * panel inside of the viewport.\n */\n @property({ reflect: true }) placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /** The distance in pixels from which to offset the panel away from its anchor. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its anchor. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n * `--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n * `::part(arrow)` in your stylesheet.\n */\n @property({ type: Boolean }) arrow = false;\n\n /**\n * The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\n * anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\n * align the arrow to the start, end, or center of the popover instead.\n */\n @property({ attribute: 'arrow-placement' }) arrowPlacement: 'start' | 'end' | 'center' | 'anchor' = 'anchor';\n\n /**\n * The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\n * this will prevent it from overflowing the corners.\n */\n @property({ attribute: 'arrow-padding', type: Number }) arrowPadding = 10;\n\n /**\n * When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n * `flipFallbackPlacements` to further configure how the fallback placement is determined.\n */\n @property({ type: Boolean }) flip = false;\n\n /**\n * If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\n * string of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\n * fallback strategy will be used instead.\n * */\n @property({\n attribute: 'flip-fallback-placements',\n converter: {\n fromAttribute: (value: string) => {\n return value\n .split(' ')\n .map(p => p.trim())\n .filter(p => p !== '');\n },\n toAttribute: (value: []) => {\n return value.join(' ');\n }\n }\n })\n flipFallbackPlacements = '';\n\n /**\n * When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\n * the popup should be positioned using the best available fit based on available space or as it was initially\n * preferred.\n */\n @property({ attribute: 'flip-fallback-strategy' }) flipFallbackStrategy: 'best-fit' | 'initial' = 'best-fit';\n\n /**\n * The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) flipBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the flip behavior will occur. */\n @property({ attribute: 'flip-padding', type: Number }) flipPadding = 0;\n\n /** Moves the popup along the axis to keep it in view when clipped. */\n @property({ type: Boolean }) shift = false;\n\n /**\n * The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) shiftBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the shift behavior will occur. */\n @property({ attribute: 'shift-padding', type: Number }) shiftPadding = 0;\n\n /** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */\n @property({ attribute: 'auto-size' }) autoSize: 'horizontal' | 'vertical' | 'both';\n\n /** Syncs the popup's width or height to that of the anchor element. */\n @property() sync: 'width' | 'height' | 'both';\n\n /**\n * The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\n * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\n * change the boundary by passing a reference to one or more elements to this property.\n */\n @property({ type: Object }) autoSizeBoundary: Element | Element[];\n\n /** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */\n @property({ attribute: 'auto-size-padding', type: Number }) autoSizePadding = 0;\n\n /**\n * When a gap exists between the anchor and the popup element, this option will add a \"hover bridge\" that fills the\n * gap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane\n * because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is\n * active.\n */\n @property({ attribute: 'hover-bridge', type: Boolean }) hoverBridge = false;\n\n async connectedCallback() {\n super.connectedCallback();\n\n // Start the positioner after the first update\n await this.updateComplete;\n this.start();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.stop();\n }\n\n async updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n // Start or stop the positioner when active changes\n if (changedProps.has('active')) {\n if (this.active) {\n this.start();\n } else {\n this.stop();\n }\n }\n\n // Update the anchor when anchor changes\n if (changedProps.has('anchor')) {\n this.handleAnchorChange();\n }\n\n // All other properties will trigger a reposition when active\n if (this.active) {\n await this.updateComplete;\n this.reposition();\n }\n }\n\n private async handleAnchorChange() {\n await this.stop();\n\n if (this.anchor && typeof this.anchor === 'string') {\n // Locate the anchor by id\n const root = this.getRootNode() as Document | ShadowRoot;\n this.anchorEl = root.getElementById(this.anchor);\n } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {\n // Use the anchor's reference\n this.anchorEl = this.anchor;\n } else {\n // Look for a slotted anchor\n this.anchorEl = this.querySelector<HTMLElement>('[slot=\"anchor\"]');\n }\n\n // If the anchor is a <slot>, we'll use the first assigned element as the target since slots use `display: contents`\n // and positioning can't be calculated on them\n if (this.anchorEl instanceof HTMLSlotElement) {\n this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0] as HTMLElement;\n }\n\n // If the anchor is valid, start it up\n if (this.anchorEl && this.active) {\n this.start();\n }\n }\n\n private start() {\n // We can't start the positioner without an anchor or when the popup is inactive\n if (!this.anchorEl || !this.active) {\n return;\n }\n\n if (SUPPORTS_POPOVER) {\n this.popup.showPopover?.();\n }\n\n this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n this.reposition();\n });\n }\n\n private async stop(): Promise<void> {\n return new Promise(resolve => {\n if (SUPPORTS_POPOVER) {\n // #1041 In some testing frameworks the disconnectedCallback is called too early so this.popup is not yet available\n this.popup?.hidePopover?.();\n }\n if (this.cleanup) {\n this.cleanup();\n this.cleanup = undefined;\n this.removeAttribute('data-current-placement');\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n requestAnimationFrame(() => resolve());\n } else {\n resolve();\n }\n });\n }\n\n /** Forces the popup to recalculate and reposition itself. */\n reposition() {\n // Nothing to do if the popup is inactive or the anchor doesn't exist\n if (!this.active || !this.anchorEl) {\n return;\n }\n\n //\n // NOTE: Floating UI middlewares are order dependent: https://floating-ui.com/docs/middleware\n //\n const middleware = [\n // The offset middleware goes first\n offset({ mainAxis: this.distance, crossAxis: this.skidding })\n ];\n\n // First we sync width/height\n if (this.sync) {\n middleware.push(\n size({\n apply: ({ rects }) => {\n const syncWidth = this.sync === 'width' || this.sync === 'both';\n const syncHeight = this.sync === 'height' || this.sync === 'both';\n this.popup.style.width = syncWidth ? `${rects.reference.width}px` : '';\n this.popup.style.height = syncHeight ? `${rects.reference.height}px` : '';\n }\n })\n );\n } else {\n // Cleanup styles if we're not matching width/height\n this.popup.style.width = '';\n this.popup.style.height = '';\n }\n\n // Then we flip\n if (this.flip) {\n middleware.push(\n flip({\n boundary: this.flipBoundary,\n // @ts-expect-error - We're converting a string attribute to an array here\n fallbackPlacements: this.flipFallbackPlacements,\n fallbackStrategy: this.flipFallbackStrategy === 'best-fit' ? 'bestFit' : 'initialPlacement',\n padding: this.flipPadding\n })\n );\n }\n\n // Then we shift\n if (this.shift) {\n middleware.push(\n shift({\n boundary: this.shiftBoundary,\n padding: this.shiftPadding\n })\n );\n }\n\n // Now we adjust the size as needed\n if (this.autoSize) {\n middleware.push(\n size({\n boundary: this.autoSizeBoundary,\n padding: this.autoSizePadding,\n apply: ({ availableWidth, availableHeight }) => {\n if (this.autoSize === 'vertical' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-height', `${availableHeight}px`);\n } else {\n this.style.removeProperty('--auto-size-available-height');\n }\n\n if (this.autoSize === 'horizontal' || this.autoSize === 'both') {\n this.style.setProperty('--auto-size-available-width', `${availableWidth}px`);\n } else {\n this.style.removeProperty('--auto-size-available-width');\n }\n }\n })\n );\n } else {\n // Cleanup styles if we're no longer using auto-size\n this.style.removeProperty('--auto-size-available-width');\n this.style.removeProperty('--auto-size-available-height');\n }\n\n // Finally, we add an arrow\n if (this.arrow) {\n middleware.push(\n arrow({\n element: this.arrowEl,\n padding: this.arrowPadding\n })\n );\n }\n\n //\n // Use custom positioning logic if the strategy is absolute. Otherwise, fall back to the default logic.\n //\n // More info: https://github.com/shoelace-style/shoelace/issues/1135\n //\n const getOffsetParent =\n SUPPORTS_POPOVER\n ? (element: Element) => platform.getOffsetParent(element, offsetParent)\n : platform.getOffsetParent;\n\n computePosition(this.anchorEl, this.popup, {\n placement: this.placement,\n middleware,\n strategy: SUPPORTS_POPOVER ? 'absolute' : 'fixed',\n platform: {\n ...platform,\n getOffsetParent\n }\n }).then(({ x, y, middlewareData, placement }) => {\n //\n // Even though we have our own localization utility, it uses different heuristics to determine RTL. Because of\n // that, we'll use the same approach that Floating UI uses.\n //\n // Source: https://github.com/floating-ui/floating-ui/blob/cb3b6ab07f95275730d3e6e46c702f8d4908b55c/packages/dom/src/utils/getDocumentRect.ts#L31\n //\n const isRtl = this.localize.dir() === 'rtl';\n const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[placement.split('-')[0]]!;\n\n this.setAttribute('data-current-placement', placement);\n\n Object.assign(this.popup.style, {\n left: `${x}px`,\n top: `${y}px`\n });\n\n if (this.arrow) {\n const arrowX = middlewareData.arrow!.x;\n const arrowY = middlewareData.arrow!.y;\n let top = '';\n let right = '';\n let bottom = '';\n let left = '';\n\n if (this.arrowPlacement === 'start') {\n // Start\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n top = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? value : '';\n left = isRtl ? '' : value;\n } else if (this.arrowPlacement === 'end') {\n // End\n const value = typeof arrowX === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n right = isRtl ? '' : value;\n left = isRtl ? value : '';\n bottom = typeof arrowY === 'number' ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : '';\n } else if (this.arrowPlacement === 'center') {\n // Center\n left = typeof arrowX === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n top = typeof arrowY === 'number' ? `calc(50% - var(--arrow-size-diagonal))` : '';\n } else {\n // Anchor (default)\n left = typeof arrowX === 'number' ? `${arrowX}px` : '';\n top = typeof arrowY === 'number' ? `${arrowY}px` : '';\n }\n\n Object.assign(this.arrowEl.style, {\n top,\n right,\n bottom,\n left,\n [staticSide]: 'calc(var(--arrow-size-diagonal) * -1)'\n });\n }\n });\n\n // Wait until the new position is drawn before updating the hover bridge, otherwise it can get out of sync\n requestAnimationFrame(() => this.updateHoverBridge());\n\n this.emit('syn-reposition');\n }\n\n private updateHoverBridge = () => {\n if (this.hoverBridge && this.anchorEl) {\n const anchorRect = this.anchorEl.getBoundingClientRect();\n const popupRect = this.popup.getBoundingClientRect();\n const isVertical = this.placement.includes('top') || this.placement.includes('bottom');\n let topLeftX = 0;\n let topLeftY = 0;\n let topRightX = 0;\n let topRightY = 0;\n let bottomLeftX = 0;\n let bottomLeftY = 0;\n let bottomRightX = 0;\n let bottomRightY = 0;\n\n if (isVertical) {\n if (anchorRect.top < popupRect.top) {\n // Anchor is above\n topLeftX = anchorRect.left;\n topLeftY = anchorRect.bottom;\n topRightX = anchorRect.right;\n topRightY = anchorRect.bottom;\n\n bottomLeftX = popupRect.left;\n bottomLeftY = popupRect.top;\n bottomRightX = popupRect.right;\n bottomRightY = popupRect.top;\n } else {\n // Anchor is below\n topLeftX = popupRect.left;\n topLeftY = popupRect.bottom;\n topRightX = popupRect.right;\n topRightY = popupRect.bottom;\n\n bottomLeftX = anchorRect.left;\n bottomLeftY = anchorRect.top;\n bottomRightX = anchorRect.right;\n bottomRightY = anchorRect.top;\n }\n } else {\n if (anchorRect.left < popupRect.left) {\n // Anchor is on the left\n topLeftX = anchorRect.right;\n topLeftY = anchorRect.top;\n topRightX = popupRect.left;\n topRightY = popupRect.top;\n\n bottomLeftX = anchorRect.right;\n bottomLeftY = anchorRect.bottom;\n bottomRightX = popupRect.left;\n bottomRightY = popupRect.bottom;\n } else {\n // Anchor is on the right\n topLeftX = popupRect.right;\n topLeftY = popupRect.top;\n topRightX = anchorRect.left;\n topRightY = anchorRect.top;\n\n bottomLeftX = popupRect.right;\n bottomLeftY = popupRect.bottom;\n bottomRightX = anchorRect.left;\n bottomRightY = anchorRect.bottom;\n }\n }\n\n this.style.setProperty('--hover-bridge-top-left-x', `${topLeftX}px`);\n this.style.setProperty('--hover-bridge-top-left-y', `${topLeftY}px`);\n this.style.setProperty('--hover-bridge-top-right-x', `${topRightX}px`);\n this.style.setProperty('--hover-bridge-top-right-y', `${topRightY}px`);\n this.style.setProperty('--hover-bridge-bottom-left-x', `${bottomLeftX}px`);\n this.style.setProperty('--hover-bridge-bottom-left-y', `${bottomLeftY}px`);\n this.style.setProperty('--hover-bridge-bottom-right-x', `${bottomRightX}px`);\n this.style.setProperty('--hover-bridge-bottom-right-y', `${bottomRightY}px`);\n }\n };\n\n render() {\n return html`\n <slot name=\"anchor\" @slotchange=${this.handleAnchorChange}></slot>\n\n <span\n part=\"hover-bridge\"\n class=${classMap({\n 'popup-hover-bridge': true,\n 'popup-hover-bridge--visible': this.hoverBridge && this.active\n })}\n ></span>\n\n <div\n part=\"popup\"\n popover=${ifDefined(SUPPORTS_POPOVER ? 'manual' : undefined)}\n class=${classMap({\n popup: true,\n 'popup--active': this.active,\n 'popup--fixed': !SUPPORTS_POPOVER,\n 'popup--has-arrow': this.arrow\n })}\n >\n <slot></slot>\n ${this.arrow ? html`<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>` : ''}\n </div>\n `;\n }\n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;AAAA,GA3IvC,SA2IyC;AAQJ;AAAA,EAAvD,SAAS,EAAE,WAAW,gBAAgB,MAAM,QAAQ,CAAC;AAAA,GAnJnC,SAmJqC;",
6
- "names": ["_a"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/styles/form-control.styles.ts", "../../src/styles/form-control.custom.styles.ts"],
4
- "sourcesContent": ["/* eslint-disable */\nimport { css } from 'lit';\n\nexport default css`\n\t/* stylelint-disable */\n .form-control .form-control__label {\n display: none;\n }\n\n .form-control .form-control__help-text {\n display: none;\n }\n\n /* Label */\n .form-control--has-label .form-control__label {\n display: inline-block;\n color: var(--syn-input-label-color);\n margin-bottom: var(--syn-spacing-3x-small);\n }\n\n .form-control--has-label.form-control--small .form-control__label {\n font-size: var(--syn-input-label-font-size-small);\n }\n\n .form-control--has-label.form-control--medium .form-control__label {\n font-size: var(--syn-input-label-font-size-medium);\n }\n\n .form-control--has-label.form-control--large .form-control__label {\n font-size: var(--syn-input-label-font-size-large);\n }\n\n :host([required]) .form-control--has-label .form-control__label::after {\n content: var(--syn-input-required-content);\n margin-inline-start: var(--syn-input-required-content-offset);\n color: var(--syn-input-required-content-color);\n }\n\n /* Help text */\n .form-control--has-help-text .form-control__help-text {\n display: block;\n color: var(--syn-input-help-text-color);\n margin-top: var(--syn-spacing-3x-small);\n }\n\n .form-control--has-help-text.form-control--small .form-control__help-text {\n font-size: var(--syn-input-help-text-font-size-small);\n }\n\n .form-control--has-help-text.form-control--medium .form-control__help-text {\n font-size: var(--syn-input-help-text-font-size-medium);\n }\n\n .form-control--has-help-text.form-control--large .form-control__help-text {\n font-size: var(--syn-input-help-text-font-size-large);\n }\n\n .form-control--has-help-text.form-control--radio-group .form-control__help-text {\n margin-top: var(--syn-spacing-2x-small);\n }\n`;\n", "import { css } from 'lit';\n\nexport default css` \n\n /* Label */\n .form-control--has-label .form-control__label {\n font-weight: var(--syn-font-weight-semibold);\n }\n\n .form-control--has-label.form-control--small .form-control__label {\n margin-bottom: var(--syn-spacing-x-small);\n }\n \n .form-control--has-label.form-control--medium .form-control__label {\n margin-bottom: var(--syn-input-spacing-small);\n }\n\n .form-control--has-label.form-control--large .form-control__label {\n margin-bottom: var(--syn-input-spacing-medium);\n }\n\n /* Help text */\n .form-control--has-help-text .form-control__help-text {\n margin-top: var(--syn-spacing-x-small);\n }\n\n /* ERROR */\n :host([data-user-invalid]:not([disabled])) .form-control__help-text {\n color: var(--syn-input-help-text-color-error);\n }\n\n /* DISABLED */\n :host([disabled]) .form-control--has-label .form-control__label,\n :host([disabled]) .form-control--has-help-text .form-control__help-text {\n cursor: not-allowed;\n opacity: var(--syn-input-disabled-opacity);\n }\n`;\n"],
5
- "mappings": ";AACA,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;;;ACHf,SAAS,OAAAA,YAAW;AAEpB,IAAO,qCAAQA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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": ["css"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/input/input.component.ts", "../../src/internal/longpress.ts"],
4
- "sourcesContent": ["/* 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 = modernNumericStrategy;\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 modernNumericStrategy\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;ACTvC,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,I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IS,SAmIP;AAWZ;AAAA,EARC,SAAS;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,MAET,eAAe,WAAU,CAAC,SAAS,UAAU,UAAU,QAAQ;AAAA,MAC/D,aAAa,WAAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GA7IkB,SA8InB;AAMY;AAAA,EAAX,SAAS;AAAA,GApJS,SAoJP;AAWT;AAAA,EAJF,SAAS;AAAA,IACR,WAAW;AAAA,IACX,SAAS;AAAA,IACT,MAAM;AAAA,EACR,CAAC;AAAA,GA/JkB,SA+JhB;AASA;AAAA,EAHF,SAAS;AAAA,IACR,WAAW;AAAA,IACX,MAAM;AAAA,EACR,CAAC;AAAA,GAxKkB,SAwKhB;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;AA0QJ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA5d9B,SA6dnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAle1B,SAmenB;AAYM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA9e3B,SA+eb;AA/ea,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/textarea/textarea.component.ts"],
4
- "sourcesContent": ["/* 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 { 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 styles from './textarea.styles.js';\nimport customStyles from './textarea.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-textarea--docs\n * @status stable\n * @since 2.0\n *\n * @slot label - The textarea's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\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-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 *\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 textarea - The internal `<textarea>` control.\n */\n@enableDefaultSettings('SynTextarea')\nexport default class SynTextarea extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\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');\n private resizeObserver: ResizeObserver;\n\n @query('.textarea__control') input: HTMLTextAreaElement;\n @query('.textarea__size-adjuster') sizeAdjuster: HTMLTextAreaElement;\n\n @state() private hasFocus = false;\n @property({ reflect: true }) title = ''; // make reactive to pass through\n\n /** The name of the textarea, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the textarea, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The textarea's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The textarea's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The textarea's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** The number of rows to display by default. */\n @property({ type: Number }) rows = 4;\n\n /** Controls how the textarea can be resized. */\n @property() resize: 'none' | 'vertical' | 'auto' = 'vertical';\n\n /** Disables the textarea. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Makes the textarea readonly. */\n @property({ type: Boolean, reflect: true }) readonly = 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 textarea a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\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 /** 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 textarea. */\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 /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\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 connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.setTextareaHeight());\n\n this.updateComplete.then(() => {\n this.setTextareaHeight();\n this.resizeObserver.observe(this.input);\n });\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this.input) {\n this.resizeObserver?.unobserve(this.input);\n }\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleChange() {\n this.value = this.input.value;\n this.setTextareaHeight();\n this.emit('syn-change');\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.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private setTextareaHeight() {\n if (this.resize === 'auto') {\n // This prevents layout shifts. We use `clientHeight` instead of `scrollHeight` to account for if the `<textarea>` has a max-height set on it. In my tests, this has worked fine. Im not aware of any edge cases. [Konnor]\n this.sizeAdjuster.style.height = `${this.input.clientHeight}px`;\n this.input.style.height = 'auto';\n this.input.style.height = `${this.input.scrollHeight}px`;\n } else {\n this.input.style.height = '';\n }\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('rows', { waitUntilFirstUpdate: true })\n handleRowsChange() {\n this.setTextareaHeight();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n this.setTextareaHeight();\n }\n\n /** Sets focus on the textarea. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the textarea. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the textarea. */\n select() {\n this.input.select();\n }\n\n /** Gets or sets the textarea's scroll position. */\n scrollPosition(position?: { top?: number; left?: number }): { top: number; left: number } | undefined {\n if (position) {\n if (typeof position.top === 'number') this.input.scrollTop = position.top;\n if (typeof position.left === 'number') this.input.scrollLeft = position.left;\n return undefined;\n }\n\n return {\n top: this.input.scrollTop,\n left: this.input.scrollTop\n };\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 this.setTextareaHeight();\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 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\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 })}\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 textarea: true,\n 'textarea--small': this.size === 'small',\n 'textarea--medium': this.size === 'medium',\n 'textarea--large': this.size === 'large',\n 'textarea--standard': !this.readonly,\n 'textarea--readonly': this.readonly,\n 'textarea--disabled': this.disabled,\n 'textarea--focused': this.hasFocus,\n 'textarea--empty': !this.value,\n 'textarea--resize-none': this.resize === 'none',\n 'textarea--resize-vertical': this.resize === 'vertical',\n 'textarea--resize-auto': this.resize === 'auto'\n })}\n >\n <textarea\n part=\"textarea\"\n id=\"input\"\n class=\"textarea__control\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n .value=${live(this.value)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n rows=${ifDefined(this.rows)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocorrect=${ifDefined(this.autocorrect ? undefined : 'off')}\n ?autofocus=${this.autofocus}\n spellcheck=${ifDefined(this.spellcheck)}\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 @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n ></textarea>\n <!-- This \"adjuster\" exists to prevent layout shifting. https://github.com/shoelace-style/shoelace/issues/2180 -->\n <div part=\"textarea-adjuster\" class=\"textarea__size-adjuster\" ?hidden=${this.resize !== 'auto'}></div>\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"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAmCvC,IAAqB,cAArB,cAAyC,eAA6C;AAAA,EAAtF;AAAA;AAGE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,YAAY,WAAW;AAAA,IAC/C,CAAC;AACD,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,OAAO;AAM5E,SAAQ,WAAW;AACC,iBAAQ;AAGzB,gBAAO;AAGP,iBAAQ;AAGS,gBAAqC;AAGtD,iBAAQ;AAGkB,oBAAW;AAGrC,uBAAc;AAGE,gBAAO;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A/ES,YA+EP;AAGiB;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAlFR,YAkFU;AAGjB;AAAA,EAAX,SAAS;AAAA,GArFS,YAqFP;AAWZ;AAAA,EARC,SAAS;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,MAET,eAAe,WAAU,CAAC,SAAS,UAAU,UAAU,QAAQ;AAAA,MAC/D,aAAa,WAAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GA/FkB,YAgGnB;AAMY;AAAA,EAAX,SAAS;AAAA,GAtGS,YAsGP;AAGI;AAAA,EAAf,aAAa;AAAA,GAzGK,YAyGH;AAuEhB;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA/K9B,YAgLnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArL1B,YAsLnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1L3B,YA2Lb;AA3La,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/radio-group/radio-group.component.ts"],
4
- "sourcesContent": ["/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport {\n customErrorValidityState,\n FormControlController,\n validValidityState,\n valueMissingValidityState\n} from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\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 SynButtonGroup from '../button-group/button-group.component.js';\nimport styles from './radio-group.styles.js';\nimport customStyles from './radio-group.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport type SynRadio from '../radio/radio.js';\nimport type SynRadioButton from '../radio-button/radio-button.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-radio-group--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-button-group\n *\n * @slot - The default slot where `<syn-radio>` or `<syn-radio-button>` elements are placed.\n * @slot label - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`\n * attribute.\n * @slot help-text - Text that describes how to use the radio group. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the radio group's selected value changes.\n * @event syn-input - Emitted when the radio group receives user input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart button-group - The button group that wraps radio buttons.\n * @csspart button-group__base - The button group's `base` part.\n */\n@enableDefaultSettings('SynRadioGroup')\nexport default class SynRadioGroup extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = { 'syn-button-group': SynButtonGroup };\n\n protected readonly formControlController = new FormControlController(this);\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n private customValidityMessage = '';\n private validationTimeout: number;\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n @query('.radio-group__validation-input') validationInput: HTMLInputElement;\n\n @state() private hasButtonGroup = false;\n @state() private errorMessage = '';\n @state() defaultValue: string | number = '';\n\n /**\n * The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\n * instead.\n */\n @property() label = '';\n\n /** The radio groups's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** The name of the radio group, submitted as a name/value pair with form data. */\n @property() name = 'option';\n\n /** The current value of the radio group, submitted as a name/value pair with form data. */\n @property({ reflect: true }) value: string | number = '';\n\n /** The radio group's size. This size will be applied to all child radios and radio buttons. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\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 /** Ensures a child radio is checked before allowing the containing form to submit. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** Gets the validity state object */\n get validity() {\n const isRequiredAndEmpty = this.required && !this.value;\n const hasCustomValidityMessage = this.customValidityMessage !== '';\n\n if (hasCustomValidityMessage) {\n return customErrorValidityState;\n } else if (isRequiredAndEmpty) {\n return valueMissingValidityState;\n }\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n const isRequiredAndEmpty = this.required && !this.value;\n const hasCustomValidityMessage = this.customValidityMessage !== '';\n\n if (hasCustomValidityMessage) {\n return this.customValidityMessage;\n } else if (isRequiredAndEmpty) {\n return this.validationInput.validationMessage;\n }\n\n return '';\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.defaultValue = this.value;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private getAllRadios() {\n return [...this.querySelectorAll<SynRadio | SynRadioButton>('syn-radio, syn-radio-button')];\n }\n\n private handleRadioClick(event: MouseEvent) {\n const target = (event.target as HTMLElement).closest<SynRadio | SynRadioButton>('syn-radio, syn-radio-button')!;\n const radios = this.getAllRadios();\n const oldValue = this.value;\n\n if (!target || target.disabled) {\n return;\n }\n\n this.value = target.value;\n radios.forEach(radio => (radio.checked = radio === target));\n\n if (this.value !== oldValue) {\n this.emit('syn-change');\n this.emit('syn-input');\n }\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', ' '].includes(event.key)) {\n return;\n }\n\n const radios = this.getAllRadios().filter(radio => !radio.disabled);\n const checkedRadio = radios.find(radio => radio.checked) ?? radios[0];\n const incr = event.key === ' ' ? 0 : ['ArrowUp', 'ArrowLeft'].includes(event.key) ? -1 : 1;\n const oldValue = this.value;\n let index = radios.indexOf(checkedRadio) + incr;\n\n if (index < 0) {\n index = radios.length - 1;\n }\n\n if (index > radios.length - 1) {\n index = 0;\n }\n\n this.getAllRadios().forEach(radio => {\n radio.checked = false;\n\n if (!this.hasButtonGroup) {\n radio.setAttribute('tabindex', '-1');\n }\n });\n\n this.value = radios[index].value;\n radios[index].checked = true;\n\n if (!this.hasButtonGroup) {\n radios[index].setAttribute('tabindex', '0');\n radios[index].focus();\n } else {\n radios[index].shadowRoot!.querySelector('button')!.focus();\n }\n\n if (this.value !== oldValue) {\n this.emit('syn-change');\n this.emit('syn-input');\n }\n\n event.preventDefault();\n }\n\n private handleLabelClick() {\n this.focus();\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private async syncRadioElements() {\n const radios = this.getAllRadios();\n\n await Promise.all(\n // Sync the checked state and size\n radios.map(async radio => {\n await radio.updateComplete;\n radio.checked = radio.value === this.value;\n radio.size = this.size;\n })\n );\n\n this.hasButtonGroup = radios.some(radio => radio.tagName.toLowerCase() === 'syn-radio-button');\n\n if (radios.length > 0 && !radios.some(radio => radio.checked)) {\n if (this.hasButtonGroup) {\n const buttonRadio = radios[0].shadowRoot?.querySelector('button');\n\n if (buttonRadio) {\n buttonRadio.setAttribute('tabindex', '0');\n }\n } else {\n radios[0].setAttribute('tabindex', '0');\n }\n }\n\n if (this.hasButtonGroup) {\n const buttonGroup = this.shadowRoot?.querySelector('syn-button-group');\n\n if (buttonGroup) {\n buttonGroup.disableRole = true;\n }\n }\n }\n\n private syncRadios() {\n if (customElements.get('syn-radio') && customElements.get('syn-radio-button')) {\n this.syncRadioElements();\n return;\n }\n\n if (customElements.get('syn-radio')) {\n this.syncRadioElements();\n } else {\n customElements.whenDefined('syn-radio').then(() => this.syncRadios());\n }\n\n if (customElements.get('syn-radio-button')) {\n this.syncRadioElements();\n } else {\n // Rerun this handler when <syn-radio> or <syn-radio-button> is registered\n customElements.whenDefined('syn-radio-button').then(() => this.syncRadios());\n }\n }\n\n private updateCheckedRadio() {\n const radios = this.getAllRadios();\n radios.forEach(radio => (radio.checked = radio.value === this.value));\n this.formControlController.setValidity(this.validity.valid);\n }\n\n @watch('size', { waitUntilFirstUpdate: true })\n handleSizeChange() {\n this.syncRadios();\n }\n\n @watch('value')\n handleValueChange() {\n if (this.hasUpdated) {\n this.updateCheckedRadio();\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 const isRequiredAndEmpty = this.required && !this.value;\n const hasCustomValidityMessage = this.customValidityMessage !== '';\n\n if (isRequiredAndEmpty || hasCustomValidityMessage) {\n this.formControlController.emitInvalidEvent();\n return false;\n }\n\n return true;\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(): boolean {\n const isValid = this.validity.valid;\n\n this.errorMessage = this.customValidityMessage || isValid ? '' : this.validationInput.validationMessage;\n this.formControlController.setValidity(isValid);\n this.validationInput.hidden = true;\n clearTimeout(this.validationTimeout);\n\n if (!isValid) {\n // Show the browser's constraint validation message\n this.validationInput.hidden = false;\n this.validationInput.reportValidity();\n this.validationTimeout = setTimeout(() => (this.validationInput.hidden = true), 10000) as unknown as number;\n }\n\n return isValid;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message = '') {\n this.customValidityMessage = message;\n this.errorMessage = message;\n this.validationInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the radio-group. */\n public focus(options?: FocusOptions) {\n const radios = this.getAllRadios();\n const checked = radios.find(radio => radio.checked);\n const firstEnabledRadio = radios.find(radio => !radio.disabled);\n const radioToFocus = checked || firstEnabledRadio;\n\n // Call focus for the checked radio\n // If no radio is checked, focus the first one that is not disabled\n if (radioToFocus) {\n radioToFocus.focus(options);\n }\n }\n\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 defaultSlot = html`\n <slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>\n `;\n\n return html`\n <fieldset\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--radio-group': true,\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText\n })}\n role=\"radiogroup\"\n aria-labelledby=\"label\"\n aria-describedby=\"help-text\"\n aria-errormessage=\"error-message\"\n >\n <label\n part=\"form-control-label\"\n id=\"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 <div class=\"visually-hidden\">\n <div id=\"error-message\" aria-live=\"assertive\">${this.errorMessage}</div>\n <label class=\"radio-group__validation\">\n <input\n type=\"text\"\n class=\"radio-group__validation-input\"\n ?required=${this.required}\n tabindex=\"-1\"\n hidden\n @invalid=${this.handleInvalid}\n />\n </label>\n </div>\n\n ${this.hasButtonGroup\n ? html`\n <syn-button-group part=\"button-group\" exportparts=\"base:button-group__base\" role=\"presentation\">\n ${defaultSlot}\n </syn-button-group>\n `\n : defaultSlot}\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 </fieldset>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAQzB,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAwCvC,IAAqB,gBAArB,cAA2C,eAA6C;AAAA,EAAxF;AAAA;AAIE,SAAmB,wBAAwB,IAAI,sBAAsB,IAAI;AACzE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,OAAO;AACrF,SAAQ,wBAAwB;AAMvB,SAAQ,iBAAiB;AACzB,SAAQ,eAAe;AACvB,wBAAgC;AAM7B,iBAAQ;AAGkB,oBAAW;AAGrC,gBAAO;AAGU,iBAAyB;AAGzB,gBAAqC;AAOrC,gBAAO;AAGQ,oBAAW;AAAA;AAAA;AAAA,EAGvD,IAAI,WAAW;AACb,UAAM,qBAAqB,KAAK,YAAY,CAAC,KAAK;AAClD,UAAM,2BAA2B,KAAK,0BAA0B;AAEhE,QAAI,0BAA0B;AAC5B,aAAO;AAAA,IACT,WAAW,oBAAoB;AAC7B,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,oBAAoB;AACtB,UAAM,qBAAqB,KAAK,YAAY,CAAC,KAAK;AAClD,UAAM,2BAA2B,KAAK,0BAA0B;AAEhE,QAAI,0BAA0B;AAC5B,aAAO,KAAK;AAAA,IACd,WAAW,oBAAoB;AAC7B,aAAO,KAAK,gBAAgB;AAAA,IAC9B;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,eAAe,KAAK;AAAA,EAC3B;AAAA,EAEA,eAAe;AACb,SAAK,sBAAsB,eAAe;AAAA,EAC5C;AAAA,EAEQ,eAAe;AACrB,WAAO,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sBAAsB,KAAK,CAAC;AAAA,GA1N1B,cA2NnB;AAKA;AAAA,EADC,MAAM,OAAO;AAAA,GA/NK,cAgOnB;AAhOmB,gBAArB;AAAA,EADC,sBAAsB,eAAe;AAAA,GACjB;",
6
- "names": []
7
- }
@@ -1,53 +0,0 @@
1
- // src/components/textarea/textarea.custom.styles.ts
2
- import { css } from "lit";
3
- var textarea_custom_styles_default = css`
4
- :host([data-user-invalid]) .textarea--standard {
5
- border-color: var(--syn-input-border-color-focus-error);
6
- }
7
-
8
- :host([data-user-invalid]) .textarea--standard.textarea--focused:not(.textarea--disabled) {
9
- border-color: var(--syn-input-border-color-focus-error);
10
- box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);
11
- }
12
-
13
- /** #429: Use token for opacity */
14
- .textarea--readonly.textarea--disabled,
15
- .textarea--standard.textarea--disabled {
16
- opacity: var(--syn-input-disabled-opacity);
17
- }
18
-
19
- .textarea__control {
20
- /*
21
- Unfortunately we need to add a small margin to the textarea control. This is needed for the new sick 2025 theme,
22
- as because of the big border-radius the resize icon will otherwise overlap with the border
23
- This added margin needs to be subtracted from the padding of the textarea
24
- */
25
- margin: var(--syn-spacing-3x-small);
26
- }
27
-
28
- .textarea--small .textarea__control {
29
- /* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes,
30
- but we have different (coming from shoelace) */
31
-
32
- /* We need to subtract the added margin of the textarea control from the padding */
33
- padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-small) - var(--syn-spacing-3x-small));
34
- }
35
-
36
- .textarea--medium .textarea__control {
37
- /* We need to subtract the added margin of the textarea control from the padding */
38
- padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-medium) - var(--syn-spacing-3x-small));
39
- }
40
-
41
- .textarea--large .textarea__control {
42
- /* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes,
43
- but we have different (coming from shoelace) */
44
-
45
- /* We need to subtract the added margin of the textarea control from the padding */
46
- padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-large) - var(--syn-spacing-3x-small));
47
- }
48
- `;
49
-
50
- export {
51
- textarea_custom_styles_default
52
- };
53
- //# sourceMappingURL=chunk.SHIPVO7H.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/textarea/textarea.custom.styles.ts"],
4
- "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host([data-user-invalid]) .textarea--standard {\n border-color: var(--syn-input-border-color-focus-error);\n }\n\n :host([data-user-invalid]) .textarea--standard.textarea--focused:not(.textarea--disabled) {\n border-color: var(--syn-input-border-color-focus-error);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);\n }\n\n /** #429: Use token for opacity */\n .textarea--readonly.textarea--disabled,\n .textarea--standard.textarea--disabled {\n opacity: var(--syn-input-disabled-opacity);\n }\n\n .textarea__control {\n /*\n Unfortunately we need to add a small margin to the textarea control. This is needed for the new sick 2025 theme,\n as because of the big border-radius the resize icon will otherwise overlap with the border\n This added margin needs to be subtracted from the padding of the textarea\n */\n margin: var(--syn-spacing-3x-small);\n }\n\n .textarea--small .textarea__control {\n /* TODO: Wait for Design response, how to handle this left / right spacing. Design has \"--syn-input-spacing-medium\" for all sizes,\n but we have different (coming from shoelace) */\n\n /* We need to subtract the added margin of the textarea control from the padding */\n padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-small) - var(--syn-spacing-3x-small));\n }\n\n .textarea--medium .textarea__control {\n /* We need to subtract the added margin of the textarea control from the padding */\n padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-medium) - var(--syn-spacing-3x-small));\n }\n\n .textarea--large .textarea__control {\n /* TODO: Wait for Design response, how to handle this left / right spacing. Design has \"--syn-input-spacing-medium\" for all sizes,\n but we have different (coming from shoelace) */\n\n /* We need to subtract the added margin of the textarea control from the padding */\n padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-large) - var(--syn-spacing-3x-small));\n }\n`;\n"],
5
- "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,iCAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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/range/range.component.ts"],
4
- "sourcesContent": ["/* eslint-disable complexity */\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, queryAll } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController, customErrorValidityState, validValidityState } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { LocalizeController } from '../../utilities/localize.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 SynTooltip from '../tooltip/tooltip.component.js';\nimport {\n arraysDiffer,\n getNormalizedValueFromClientX,\n numericSort,\n} from './utility.js';\nimport styles from './range.styles.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Ranges allow the user to select values within a given range using one or two thumbs.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range--docs\n * @status stable\n *\n * @dependency syn-tooltip\n *\n * @slot label - The range's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the range.\n * @slot suffix - Used to append a presentational icon or similar element to the range.\n * @slot help-text - Text that describes how to use the range.\n * Alternatively, you can use the `help-text` attribute.\n * @slot ticks - Used to display tick marks at specific intervals along the range.\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-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\n * and its constraints aren't satisfied.\n * @event syn-move - Emitted when the user moves a thumb, either via touch or keyboard.\n * Use `Event.preventDefault()` to prevent movement.\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-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the input track and ticks.\n * @csspart track-wrapper - The wrapper for the track.\n * @csspart track - The inactive track.\n * @csspart active-track - The active track.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart ticks - The container that wraps the tick marks.\n * @csspart thumb - The thumb(s) that the user can drag to change the range.\n *\n * @csspart tooltip__base - The base of the tooltip\n * @csspart tooltip__arrow - The arrow of the tooltip\n * @csspart tooltip__popup - The popup of the tooltip\n * @csspart tooltip__body - The body of the tooltip\n *\n * @cssproperty --thumb-size - The size of a thumb.\n * @cssproperty --thumb-hit-area-size - The clickable area around the thumb.\n * Per default this is set to 140% of the thumb size. Must be a scale css value (defaults to 1.4).\n * @cssproperty --track-hit-area-size - The clickable area around the track (top and left).\n * @cssproperty --track-color-active - Color of the track representing the current value.\n * @cssproperty --track-color-inactive - Color of the track that represents the remaining value.\n * @cssproperty --track-height - The height of the track.\n * @cssproperty --track-active-offset - The point of origin of the active track,\n * starting at the left side of the range.\n */\n@enableDefaultSettings('SynRange')\nexport default class SynRange extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n formControlCustomStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-tooltip': SynTooltip,\n };\n\n /** The name of the range, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The range's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The range's help text. If you need to display HTML, use the help-text slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Disables the range. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** The minimum acceptable value of the range. */\n @property({ type: Number }) min = 0;\n\n /** The maximum acceptable value of the range. */\n @property({ type: Number }) max = 100;\n\n /** The interval at which the range will increase and decrease. */\n @property({ type: Number }) step = 1;\n\n /** The range's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The preferred placement of the range's tooltip. Use \"none\" to disable the tooltip */\n @property({ attribute: 'tooltip-placement', type: String }) tooltipPlacement: 'top' | 'bottom' | 'none' = 'top';\n\n /** The current values of the input (in ascending order) as a string of space separated values */\n @property({ type: String })\n set value(value: string | null) {\n this.#value = value\n ? value.split(' ').map(Number).sort(numericSort)\n : [];\n }\n\n get value() {\n return this.#value.slice().sort(numericSort).join(' ');\n }\n\n /**\n * Set to true to restrict the movement of a thumb to its next and previous thumb.\n * This only affects multi range components\n */\n @property({ attribute: 'restrict-movement', type: Boolean }) restrictMovement = false;\n\n /** Gets or sets the current values of the range as an array of numbers */\n set valueAsArray(value: readonly number[] | null) {\n const oldValue = this.#value;\n this.#value = Array.isArray(value) ? value.slice().sort(numericSort) : value || [];\n if (arraysDiffer(oldValue, this.#value)) {\n this.requestUpdate('value', oldValue.join(' '));\n }\n }\n\n get valueAsArray() {\n return [...this.#value].sort(numericSort);\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '0';\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\n * and associate it 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 /**\n * A function used to format the tooltip's value.\n * The value of the thumb is passed as the only argument.\n * The function should return a string to display in the tooltip.\n */\n @property({ attribute: false }) tooltipFormatter: (value: number) => string;\n\n @query('.input__wrapper') baseDiv: HTMLDivElement;\n\n @query('.active-track') activeTrack: HTMLDivElement;\n\n @query('.ticks') ticks: HTMLDivElement;\n\n @queryAll('.thumb') thumbs: NodeListOf<HTMLDivElement>;\n\n @query('.range__validation-input') validationInput: HTMLInputElement;\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix', 'ticks');\n\n private readonly formControlController = new FormControlController(this, { assumeInteractionOn: ['syn-change'] });\n\n private localize = new LocalizeController(this);\n\n private visibilityObserver: IntersectionObserver;\n\n #value: readonly number[] = [0];\n\n #rangeValues = new Map<number, number>();\n\n #hasFocus = false;\n\n #validationError = '';\n\n #validationTimeout: NodeJS.Timeout;\n\n #lastChangeValue: number [] = [];\n\n get #rtl() {\n return this.localize.dir() === 'rtl';\n }\n\n constructor() {\n super();\n this.tooltipFormatter = this.localize.number.bind(this.localize);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this?.visibilityObserver?.disconnect();\n }\n\n firstUpdated() {\n // #727: Check if the ticks are visible and update the prefix and suffix position when they are.\n this.visibilityObserver = new IntersectionObserver((entries) => {\n const entry = entries.at(0);\n if (entry && entry.isIntersecting && entry.target.checkVisibility()) {\n this.#updatePrefixSuffixPosition(entry.boundingClientRect.height);\n }\n }, {\n // We bind the root to the parent element of the ticks to make sure we are only called\n // when the ticks are visible, not when the ticks are scrolled out of the viewport.\n root: this.ticks.parentElement,\n });\n this.visibilityObserver.observe(this.ticks);\n\n this.formControlController.updateValidity();\n // initialize the lastChangeValue with the initial value\n this.#lastChangeValue = Array.from(this.#value);\n /**\n * Silence the screen reader for the tooltip.\n * Otherwise it will read the new value on change multiple times instead of just one time.\n * The aria-hidden needs to be set where the aria-live attribute is set, to silence it.\n */\n this.thumbs.forEach((thumb) => {\n const tooltip = thumb.parentElement as SynTooltip;\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n tooltip.updateComplete.then(() => {\n const tooltipBody = tooltip.shadowRoot!.querySelector('.tooltip__body');\n tooltipBody?.setAttribute('aria-hidden', 'true');\n });\n });\n }\n\n protected override willUpdate(changedProperties: PropertyValues) {\n super.willUpdate(changedProperties);\n\n // When the proposed min is bigger than the max value,\n // we need to swap the values to make sure the min is always smaller than the max\n // @example <syn-range min=\"50\" max=\"10\"> becomes <syn-range min=\"10\" max=\"50\">\n if (this.min > this.max) {\n [this.min, this.max] = [this.max, this.min];\n }\n\n if (this.step > this.max - this.min) {\n this.step = this.max - this.min;\n }\n\n if (this.step <= 0) {\n this.step = 1;\n }\n\n const adjustedValue = this.#value\n .map(value => {\n if (value <= this.min) return this.min;\n if (value >= this.max) return this.max;\n const nextValue = this.min + this.step * Math.round((value - this.min) / this.step);\n if (nextValue > this.max) return this.max;\n return nextValue;\n });\n\n if (arraysDiffer(this.#value, adjustedValue)) {\n this.#value = adjustedValue;\n }\n }\n\n protected override updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n // eslint-disable-next-line no-restricted-syntax\n for (const thumb of this.thumbs) {\n const rangeId = +thumb.dataset.rangeId!;\n // eslint-disable-next-line no-continue\n if (!this.#rangeValues.has(rangeId)) continue;\n this.#moveThumb(thumb, this.#rangeValues.get(rangeId)!);\n }\n this.#updateActiveTrack();\n }\n\n override focus(options?: FocusOptions) {\n const firstThumb = this.thumbs.item(0);\n if (firstThumb) {\n firstThumb.focus(options);\n } else {\n super.focus(options);\n }\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 public checkValidity() {\n if (this.disabled) return true;\n const isValid = !this.#validationError;\n\n if (!isValid) {\n this.formControlController.emitInvalidEvent();\n }\n\n return isValid;\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n public reportValidity() {\n if (this.disabled) return true;\n\n const isValid = this.validity.valid;\n\n this.formControlController.setValidity(isValid);\n this.validationInput.hidden = true;\n clearTimeout(this.#validationTimeout);\n\n if (!isValid) {\n // Show the browser's constraint validation message\n this.validationInput.hidden = false;\n this.validationInput.reportValidity();\n this.#validationTimeout = setTimeout(() => {\n this.validationInput.hidden = true;\n }, 10000);\n }\n\n return isValid;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n public setCustomValidity(message: string) {\n this.#validationError = message;\n this.validationInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Gets the associated form, if one exists. */\n public getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Gets the validity state object */\n public get validity(): ValidityState {\n if (this.#validationError) return customErrorValidityState;\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n public get validationMessage() {\n return this.#validationError;\n }\n\n #onClickTrack(event: PointerEvent, focusThumb = true) {\n if (this.disabled) return;\n const { clientX } = event;\n\n const thumbs = Array.from(this.thumbs);\n const pos = getNormalizedValueFromClientX(this.baseDiv, clientX, this.#rtl);\n const unit = this.step / (this.max - this.min);\n const nextValue = this.min + this.step * Math.round(pos / unit);\n\n // Get the thumb that is placed closest to the click position\n const thumb = thumbs.reduce((prev, curr) => {\n const currValue = this.#rangeValues.get(+curr.dataset.rangeId!)!;\n const prevValue = this.#rangeValues.get(+prev.dataset.rangeId!)!;\n\n const currDiff = Math.abs(currValue - nextValue);\n const prevDiff = Math.abs(prevValue - nextValue);\n\n if (currDiff === prevDiff) {\n // If the difference is the same, we use the thumb which has the correct order.\n // left track click --> prev, right track click --> curr\n return currValue < nextValue ? curr : prev;\n }\n\n return currDiff < prevDiff ? curr : prev;\n });\n\n const rangeId = +thumb.dataset.rangeId!;\n\n if (!rangeId) return;\n\n this.#rangeValues.set(rangeId, nextValue);\n this.#moveThumb(thumb, nextValue);\n\n const prevValue = this.#value;\n this.#value = Array.from(this.#rangeValues.values());\n this.#updateActiveTrack();\n\n if (arraysDiffer(prevValue, this.#value)) {\n this.#lastChangeValue = Array.from(this.#value);\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n // #595: Redispatch the original event to start dragging the thumb\n // whenever the user clicked on the track.\n // The check for focusThumb makes sure this does not happen when clicking on the track items\n const newEvt = new PointerEvent('pointerdown', event);\n if (focusThumb) {\n if (thumb.dispatchEvent(newEvt)) {\n this.#updateTooltip(thumb);\n }\n }\n }\n\n /**\n * Special method for handling clicks on track items\n * When clicking track items, we do not want the thumb to have focus\n */\n #onClickTrackItem(event: PointerEvent) {\n this.#onClickTrack(event, false);\n }\n\n /**\n * Get the boundaries of a given thumb\n * @param thumb The thumb element that was moved\n * @param value The current value of a thumb\n * @returns An object containing information about the current boundaries\n */\n #movementBoundariesForThumb(thumb: HTMLDivElement, value: number) {\n // If we are in restrict mode, we should not move the thumb\n // if it is smaller than the previous thumb or larger than the next thumb\n const values = this.valueAsArray!;\n const thumbs = Array.from(this.thumbs);\n const thumbIndex = thumbs.indexOf(thumb);\n\n // Get the previous and next thumb and see what are our valid ranges\n const prevValue = values[thumbIndex - 1] || this.min;\n const nextValue = values[thumbIndex + 1] || this.max;\n\n const isRestricted = value < prevValue || value > nextValue;\n const finalValue = Math.max(prevValue, Math.min(nextValue, value));\n\n return {\n finalValue,\n isRestricted,\n nextValue,\n prevValue,\n };\n }\n\n async #onClickThumb(event: PointerEvent) {\n if (this.disabled) return;\n\n const thumb = event.target as HTMLDivElement;\n this.#updateTooltip(thumb);\n\n if (thumb.dataset.pointerId) {\n thumb.releasePointerCapture(+thumb.dataset.pointerId);\n }\n\n thumb.dataset.pointerId = event.pointerId.toString();\n thumb.setPointerCapture(event.pointerId);\n thumb.classList.add('grabbed');\n\n await (thumb.parentElement as SynTooltip).show();\n }\n\n #onDragThumb(event: PointerEvent) {\n if (this.disabled) return;\n\n const thumb = event.target as HTMLDivElement;\n const rangeId = +thumb.dataset.rangeId!;\n if (!this.#rangeValues.has(rangeId)) return;\n\n const pointerId = thumb.dataset.pointerId ? +thumb.dataset.pointerId : null;\n if (pointerId !== event.pointerId) return;\n\n const pos = getNormalizedValueFromClientX(this.baseDiv, event.clientX, this.#rtl);\n const unit = this.step / (this.max - this.min);\n let value = this.min + this.step * Math.round(pos / unit);\n\n const synMove = this.emit('syn-move', {\n cancelable: true,\n detail: {\n element: thumb,\n value,\n },\n });\n\n if (synMove.defaultPrevented) {\n return;\n }\n\n if (this.restrictMovement) {\n const movementData = this.#movementBoundariesForThumb(thumb, value);\n if (movementData.isRestricted) {\n value = movementData.finalValue;\n // Make sure the thumb has the highest z-index of all thumbs\n thumb.style.zIndex = (3 + this.thumbs.length).toFixed(0);\n } else {\n thumb.style.zIndex = '3';\n }\n }\n\n this.#rangeValues.set(rangeId, value);\n this.#moveThumb(thumb, value);\n\n const prevValue = this.#value;\n this.#value = Array.from(this.#rangeValues.values());\n this.#updateActiveTrack();\n\n if (arraysDiffer(prevValue, this.#value)) {\n this.emit('syn-input');\n }\n }\n\n async #onReleaseThumb(event: PointerEvent) {\n const thumb = event.target as HTMLDivElement;\n if (!thumb.dataset.pointerId || event.pointerId !== +thumb.dataset.pointerId) return;\n\n thumb.classList.remove('grabbed');\n thumb.releasePointerCapture(event.pointerId);\n delete thumb.dataset.pointerId;\n\n if (arraysDiffer(this.#lastChangeValue, this.#value)) {\n this.#lastChangeValue = Array.from(this.#value);\n this.emit('syn-change');\n }\n\n await (thumb.parentElement as SynTooltip).hide();\n }\n\n #moveThumb(thumb: HTMLDivElement, value: number) {\n thumb.setAttribute('aria-valuenow', value.toString());\n thumb.setAttribute('aria-valuetext', this.tooltipFormatter(value));\n const pos = (value - this.min) / (this.max - this.min);\n // eslint-disable-next-line no-param-reassign\n thumb.style.insetInlineStart = `calc(${100 * pos}% - var(--half-thumb-size))`;\n this.#updateTooltip(thumb);\n }\n\n #updateActiveTrack() {\n const { activeTrack } = this;\n if (!activeTrack) return;\n\n // Special case: User set min and max to the same values.\n // To not show the active track in this case.\n if (this.min === this.max) {\n activeTrack.style.insetInlineStart = '0%';\n activeTrack.style.insetInlineEnd = '0%';\n return;\n }\n\n // If there is only one thumb, the active track should start at the beginning\n // and end at the thumb\n if (this.#value.length === 1) {\n const start = getComputedStyle(this).getPropertyValue('--track-active-offset') || '0%';\n const end = (100 * (this.#value[0] - this.min)) / (this.max - this.min);\n\n activeTrack.style.insetInlineStart = `min(${start}, ${end}%)`;\n activeTrack.style.insetInlineEnd = `min(calc(100% - ${start}), calc(100% - ${end}%))`;\n\n return;\n }\n\n // The render order of the thumbs is not guaranteed to be the same as the value order.\n const sortedValues = this.#value.slice().sort(numericSort);\n\n // Multi thumb: Place the active track between the first and last thumb\n const start = (100 * (sortedValues[0] - this.min)) / (this.max - this.min);\n const end = (100 * (sortedValues[sortedValues.length - 1] - this.min)) / (this.max - this.min);\n\n activeTrack.style.insetInlineStart = `${start}%`;\n activeTrack.style.insetInlineEnd = `calc(100% - ${end}%)`;\n }\n\n #onKeyPress(event: KeyboardEvent) {\n const thumb = event.target as HTMLDivElement;\n const rangeId = +thumb.dataset.rangeId!;\n\n const currentValue = this.#rangeValues.get(rangeId);\n if (currentValue === undefined) return;\n\n let value = currentValue;\n\n switch (event.key) {\n case 'ArrowUp':\n case 'Up':\n value = Math.min(currentValue + this.step, this.max);\n break;\n case 'ArrowDown':\n case 'Down':\n value = Math.max(currentValue - this.step, this.min);\n break;\n case 'ArrowLeft':\n case 'Left':\n value = this.#rtl\n ? Math.min(currentValue + this.step, this.max)\n : Math.max(currentValue - this.step, this.min);\n break;\n case 'ArrowRight':\n case 'Right':\n value = this.#rtl\n ? Math.max(currentValue - this.step, this.min)\n : Math.min(currentValue + this.step, this.max);\n break;\n case 'PageUp':\n value = Math.min(\n currentValue + ((this.max - this.min) / 5),\n this.max,\n );\n break;\n case 'PageDown':\n value = Math.max(\n (currentValue - (this.max - this.min) / 5),\n this.min,\n );\n break;\n case 'Home':\n value = this.min;\n break;\n case 'End':\n value = this.max;\n break;\n default:\n return;\n }\n\n if (value !== currentValue) {\n // Make sure the user is able to intercept movement\n const synMove = this.emit('syn-move', {\n cancelable: true,\n detail: {\n element: thumb,\n value,\n },\n });\n\n if (synMove.defaultPrevented) {\n return;\n }\n\n if (this.restrictMovement) {\n const movementData = this.#movementBoundariesForThumb(thumb, value);\n if (movementData.isRestricted) {\n value = movementData.finalValue;\n }\n }\n\n this.#moveThumb(thumb, value);\n\n this.#rangeValues.set(rangeId, value);\n this.#value = Array.from(this.#rangeValues.values());\n\n this.#updateActiveTrack();\n this.#updateTooltip(thumb);\n\n this.#lastChangeValue = Array.from(this.#value);\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n event.stopPropagation();\n event.preventDefault();\n }\n\n #onBlur(event: FocusEvent) {\n if (event.relatedTarget && this.shadowRoot?.contains(event.relatedTarget as Node)) return;\n this.emit('syn-blur');\n this.#hasFocus = false;\n }\n\n #updateTooltip(thumb: HTMLDivElement) {\n if (this.tooltipPlacement === 'none') return;\n const rangeId = +thumb.dataset.rangeId!;\n if (!this.#rangeValues.has(rangeId)) return;\n const value = this.#rangeValues.get(rangeId)!;\n const tooltip = thumb.parentElement as SynTooltip;\n tooltip.content = this.tooltipFormatter(value);\n }\n\n #onFocusThumb(event: FocusEvent) {\n if (this.disabled) return;\n if (!this.#hasFocus) {\n this.#hasFocus = true;\n this.emit('syn-focus');\n }\n const thumb = event.target as HTMLDivElement;\n if (!thumb?.dataset?.rangeId) return;\n this.#updateTooltip(thumb);\n }\n\n #handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n #updatePrefixSuffixPosition(height?: number) {\n const hasTicksSlot = this.hasSlotController.test('ticks');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n\n if (!hasTicksSlot) {\n return;\n }\n\n let ticksHeight = height || this.shadowRoot?.querySelector('.ticks')?.clientHeight;\n if (ticksHeight) {\n // Add two pixels as the 1px margin on top and bottom are not included in the clientHeight\n ticksHeight += 2;\n\n ticksHeight /= 2;\n\n if (hasPrefixSlot) {\n const prefix = this.shadowRoot?.querySelector('.input__prefix') as HTMLElement;\n prefix.style.transform = `translateY(-${ticksHeight}px)`;\n }\n\n if (hasSuffixSlot) {\n const suffix = this.shadowRoot?.querySelector('.input__suffix') as HTMLElement;\n suffix.style.transform = `translateY(-${ticksHeight}px)`;\n }\n }\n }\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderThumbs(hasLabel: boolean) {\n // Aria special handling:\n // 1. When there is only one label: Use the provided label as the aria-label for the thumb\n // 2. When we have multiple label: Set the label for the first and last item to itself\n const isMultiple = this.#value.length > 1;\n\n this.#rangeValues.clear();\n return this.#value.map((value, index) => {\n const rangeId = index + 1;\n this.#rangeValues.set(rangeId, value);\n\n const id = `thumb-${rangeId}`;\n\n let ariaLabel = '';\n let ariaLabeledBy = '';\n\n if (!isMultiple) {\n ariaLabeledBy = hasLabel ? 'label aria-label-hidden' : '';\n } else {\n ariaLabeledBy = hasLabel ? `label aria-label-hidden ${id}` : `aria-label-hidden ${id}`;\n\n if (index === 0) {\n ariaLabel = `${this.localize.term('rangeMin')} (${this.tooltipFormatter(value)})`;\n } else if (index === this.#value.length - 1) {\n ariaLabel = `${this.localize.term('rangeMax')} (${this.tooltipFormatter(value)})`;\n } else {\n ariaLabel = this.tooltipFormatter(value);\n }\n }\n\n return html`\n <syn-tooltip\n exportparts=\"base:tooltip__base, base__arrow:tooltip__arrow, base__popup:tooltip__popup, body:tooltip__body\"\n .disabled=${this.tooltipPlacement === 'none' || this.disabled}\n .placement=${this.tooltipPlacement as 'top' | 'bottom'}\n trigger=\"focus\"\n >\n <div\n aria-disabled=${ifDefined(this.disabled ? 'true' : undefined)}\n aria-labelledby=${ariaLabeledBy}\n aria-label=${ariaLabel}\n aria-valuemax=\"${this.max}\"\n aria-valuemin=\"${this.min}\"\n aria-valuenow=\"${value}\"\n aria-valuetext=\"${this.tooltipFormatter(value)}\"\n class=\"thumb\"\n data-range-id=\"${rangeId}\"\n id=${id}\n part=\"thumb\"\n role=\"slider\"\n tabindex=\"${this.disabled ? -1 : 0}\"\n @pointerdown=${this.#onClickThumb}\n @pointermove=${this.#onDragThumb}\n @pointerup=${this.#onReleaseThumb}\n @pointercancel=${this.#onReleaseThumb}\n @pointerleave=${this.#onReleaseThumb}\n @keydown=${this.#onKeyPress}\n @focus=${this.#onFocusThumb}\n ></div>\n </syn-tooltip>\n `;\n });\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n override 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\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--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot,\n 'form-control--is-disabled': this.disabled,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n })}\n @focusout=${this.#onBlur}\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.focus}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <label id=\"aria-label-hidden\" class=\"visually-hidden\">\n (${this.#value.map(this.tooltipFormatter).join(' - ')})\n </label>\n\n <div class=\"base input__control\" part=\"base\">\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n <div class=\"input__wrapper\" part=\"input-wrapper\">\n <input\n class=\"range__validation-input visually-hidden\"\n tabindex=\"-1\"\n hidden\n @invalid=${this.#handleInvalid}\n />\n\n <div\n class=\"track__wrapper\"\n @pointerdown=${this.#onClickTrack}\n part=\"track-wrapper\"\n role=\"presentation\"\n >\n <div class=\"track__click-helper\"></div>\n <div class=\"track\" part=\"track\"></div>\n <div class=\"active-track\" part=\"active-track\"></div>\n </div>\n\n ${this.renderThumbs(hasLabel)}\n\n <div\n class=\"ticks\"\n part=\"ticks\"\n @pointerdown=${this.#onClickTrackItem}\n role=\"presentation\"\n >\n <slot name=\"ticks\"></slot>\n </div>\n </div>\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n </div>\n\n <div\n part=\"form-control-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"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,gBAAgB;AAC1C,SAAS,gBAAgB;AALzB;AA4EA,IAAqB,WAArB,cAAsC,eAA6C;AAAA,EA0HjF,cAAc;AACZ,UAAM;AA3HV;AAac,gBAAO;AAGP,iBAAQ;AAGkB,oBAAW;AAGL,oBAAW;AAG3B,eAAM;AAGN,eAAM;AAGN,gBAAO;AAGN,gBAAqC;AAGN,4BAA8C;AAkB7C,4BAAmB;AAgBhE,wBAAe;AAQF,gBAAO;AAmBpC,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,SAAS,UAAU,UAAU,OAAO;AAElH,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM,EAAE,qBAAqB,CAAC,YAAY,EAAE,CAAC;AAEhH,SAAQ,WAAW,IAAI,mBAA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