@synergy-design-system/components 1.14.0 → 1.16.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 (269) hide show
  1. package/dist/chunks/{chunk.525LGYB4.js → chunk.2URWP5LD.js} +10 -4
  2. package/dist/chunks/chunk.2URWP5LD.js.map +7 -0
  3. package/dist/chunks/{chunk.DXL3JN6D.js → chunk.3EONOQ2P.js} +2 -2
  4. package/dist/chunks/{chunk.COFVSXEF.js → chunk.3M6IVPMZ.js} +6 -6
  5. package/dist/chunks/{chunk.YRMXDJFM.js → chunk.4MBMY5UE.js} +2 -2
  6. package/dist/chunks/{chunk.GDHER3FZ.js → chunk.4RMP4EST.js} +2 -2
  7. package/dist/chunks/{chunk.UEQDHG7J.js → chunk.5I7DR4UT.js} +2 -2
  8. package/dist/chunks/{chunk.MEDX62IL.js → chunk.5OV7FNMN.js} +3 -3
  9. package/dist/chunks/{chunk.7UVCYUNR.js → chunk.66MOXMDP.js} +2 -2
  10. package/dist/chunks/{chunk.QQB6JCQY.js → chunk.6V72DOSV.js} +16 -17
  11. package/dist/chunks/chunk.6V72DOSV.js.map +7 -0
  12. package/dist/chunks/chunk.74N5WLM5.js +53 -0
  13. package/dist/chunks/chunk.74N5WLM5.js.map +7 -0
  14. package/dist/chunks/{chunk.A6S4OYWD.js → chunk.7NH6SYGG.js} +21 -17
  15. package/dist/chunks/chunk.7NH6SYGG.js.map +7 -0
  16. package/dist/chunks/{chunk.VSEAHAW7.js → chunk.7PYQKCMR.js} +3 -3
  17. package/dist/chunks/{chunk.B57ZVQ2Q.js → chunk.ABSGP4AA.js} +2 -2
  18. package/dist/chunks/{chunk.JDXKGJ63.js → chunk.AOKNP4QD.js} +42 -2
  19. package/dist/chunks/{chunk.JDXKGJ63.js.map → chunk.AOKNP4QD.js.map} +2 -2
  20. package/dist/chunks/{chunk.4QS5IWYB.js → chunk.AW2HNLNP.js} +1 -9
  21. package/dist/chunks/{chunk.4QS5IWYB.js.map → chunk.AW2HNLNP.js.map} +2 -2
  22. package/dist/chunks/{chunk.PAK472WN.js → chunk.BKRTJVKH.js} +2 -2
  23. package/dist/chunks/{chunk.QFMUPETV.js → chunk.BQ3U6CVQ.js} +3 -3
  24. package/dist/chunks/{chunk.H33SDUY3.js → chunk.CCITL3IY.js} +14 -11
  25. package/dist/chunks/chunk.CCITL3IY.js.map +7 -0
  26. package/dist/chunks/{chunk.SRZMRKLQ.js → chunk.CNKXQN5I.js} +4 -4
  27. package/dist/chunks/{chunk.PSTO5STZ.js → chunk.CXLJMDBV.js} +2 -2
  28. package/dist/chunks/{chunk.4MRXASVT.js → chunk.D63XRN3X.js} +2 -2
  29. package/dist/chunks/{chunk.2NRG7KJT.js → chunk.E3MWAHV4.js} +2 -2
  30. package/dist/chunks/{chunk.EZE5M5XB.js → chunk.EHMIJIZ2.js} +2 -2
  31. package/dist/chunks/{chunk.2SLHEFOH.js → chunk.ENAW6YL5.js} +7 -7
  32. package/dist/chunks/chunk.EQ2W2Z5B.js +12 -0
  33. package/dist/chunks/chunk.EQ2W2Z5B.js.map +7 -0
  34. package/dist/chunks/{chunk.KUO3KJOC.js → chunk.GBARDV25.js} +2 -2
  35. package/dist/chunks/{chunk.RK7OBPZ5.js → chunk.GEHO4WRP.js} +2 -2
  36. package/dist/chunks/{chunk.RK7OBPZ5.js.map → chunk.GEHO4WRP.js.map} +1 -1
  37. package/dist/chunks/chunk.GO3CCKC3.js +96 -0
  38. package/dist/chunks/chunk.GO3CCKC3.js.map +7 -0
  39. package/dist/chunks/{chunk.64MHCKTF.js → chunk.H3GKRGN6.js} +7 -7
  40. package/dist/chunks/{chunk.CSOIUDS4.js → chunk.HZTZOBNJ.js} +2 -2
  41. package/dist/chunks/{chunk.4LMFTSOM.js → chunk.I3SSNN7J.js} +10 -4
  42. package/dist/chunks/chunk.I3SSNN7J.js.map +7 -0
  43. package/dist/chunks/{chunk.BUIBP2TA.js → chunk.INLTRHSF.js} +2 -2
  44. package/dist/chunks/{chunk.GGY5VQYA.js → chunk.IVHB4EQ6.js} +3 -3
  45. package/dist/chunks/chunk.IVHB4EQ6.js.map +7 -0
  46. package/dist/chunks/{chunk.2ZEMD2N7.js → chunk.J3HTR5NX.js} +2 -2
  47. package/dist/chunks/{chunk.RRWSXFQ5.js → chunk.JDBDBGQP.js} +3 -2
  48. package/dist/chunks/{chunk.RRWSXFQ5.js.map → chunk.JDBDBGQP.js.map} +2 -2
  49. package/dist/chunks/{chunk.Q4CT57M2.js → chunk.JJZKPNJZ.js} +2 -2
  50. package/dist/chunks/{chunk.SZCGMXW5.js → chunk.JUJZBRXD.js} +2 -2
  51. package/dist/chunks/chunk.JUJZBRXD.js.map +7 -0
  52. package/dist/chunks/{chunk.722JR5BD.js → chunk.K2H37OYP.js} +6 -6
  53. package/dist/chunks/{chunk.722JR5BD.js.map → chunk.K2H37OYP.js.map} +2 -2
  54. package/dist/chunks/chunk.K6AHAO25.js +166 -0
  55. package/dist/chunks/chunk.K6AHAO25.js.map +7 -0
  56. package/dist/chunks/{chunk.2OLQHFOR.js → chunk.KJ7V3TWI.js} +3 -3
  57. package/dist/chunks/{chunk.UYD2OVFV.js → chunk.KZMWNTUS.js} +2 -2
  58. package/dist/chunks/chunk.KZMWNTUS.js.map +7 -0
  59. package/dist/chunks/chunk.L4UUXVRZ.js +312 -0
  60. package/dist/chunks/chunk.L4UUXVRZ.js.map +7 -0
  61. package/dist/chunks/{chunk.ETREUSYO.js → chunk.LFNAPJXT.js} +4 -4
  62. package/dist/chunks/{chunk.H7XP6JAS.js → chunk.LOUVN7OA.js} +3 -3
  63. package/dist/chunks/{chunk.3STW62TA.js → chunk.NIYKFSPR.js} +2 -1
  64. package/dist/chunks/{chunk.3STW62TA.js.map → chunk.NIYKFSPR.js.map} +2 -2
  65. package/dist/chunks/{chunk.34NAFEQ7.js → chunk.NLWT6VZN.js} +2 -2
  66. package/dist/chunks/{chunk.ZLEQ5DOF.js → chunk.NOB4TQLJ.js} +2 -2
  67. package/dist/chunks/{chunk.7UUZ5ISH.js → chunk.O3AC2EVL.js} +3 -3
  68. package/dist/chunks/chunk.OCH36GVS.js +12 -0
  69. package/dist/chunks/chunk.OCH36GVS.js.map +7 -0
  70. package/dist/chunks/{chunk.OLM7IVHA.js → chunk.OEMIM5RD.js} +6 -6
  71. package/dist/chunks/chunk.ONVWJKVD.js +318 -0
  72. package/dist/chunks/chunk.ONVWJKVD.js.map +7 -0
  73. package/dist/chunks/{chunk.ITUSK365.js → chunk.PCI22DJU.js} +2 -2
  74. package/dist/chunks/{chunk.3HTXK6WY.js → chunk.PGM6WEYY.js} +2 -2
  75. package/dist/chunks/{chunk.SJMMPKWP.js → chunk.Q4CRAGN3.js} +11 -11
  76. package/dist/chunks/{chunk.SJMMPKWP.js.map → chunk.Q4CRAGN3.js.map} +1 -1
  77. package/dist/chunks/{chunk.CG753OYA.js → chunk.Q7WVOJG4.js} +2 -2
  78. package/dist/chunks/{chunk.ZIQXX272.js → chunk.QPK7SLOE.js} +2 -2
  79. package/dist/chunks/{chunk.V53WYKEU.js → chunk.QY3GFWGZ.js} +6 -1
  80. package/dist/chunks/{chunk.V53WYKEU.js.map → chunk.QY3GFWGZ.js.map} +2 -2
  81. package/dist/chunks/{chunk.2QYALZBT.js → chunk.RIJKFEYZ.js} +14 -7
  82. package/dist/chunks/chunk.RIJKFEYZ.js.map +7 -0
  83. package/dist/chunks/{chunk.MQCFDVLW.js → chunk.SAHA7Z3T.js} +2 -2
  84. package/dist/chunks/chunk.SHOXPF5L.js +12 -0
  85. package/dist/chunks/chunk.SHOXPF5L.js.map +7 -0
  86. package/dist/chunks/{chunk.VDYPXC2H.js → chunk.SOAZXMVH.js} +2 -2
  87. package/dist/chunks/{chunk.ADRKUQGR.js → chunk.TAO5QIIQ.js} +2 -1
  88. package/dist/chunks/{chunk.ADRKUQGR.js.map → chunk.TAO5QIIQ.js.map} +2 -2
  89. package/dist/chunks/{chunk.5HAKNNIR.js → chunk.TUFBQA52.js} +2 -2
  90. package/dist/chunks/{chunk.P2D7PUR2.js → chunk.TWZC4LT2.js} +4 -4
  91. package/dist/chunks/chunk.U2H36O5J.js +208 -0
  92. package/dist/chunks/chunk.U2H36O5J.js.map +7 -0
  93. package/dist/chunks/chunk.UHVHULGW.js +286 -0
  94. package/dist/chunks/chunk.UHVHULGW.js.map +7 -0
  95. package/dist/chunks/{chunk.5TOD3QS2.js → chunk.VCFVQ6KS.js} +2 -2
  96. package/dist/chunks/{chunk.5TOD3QS2.js.map → chunk.VCFVQ6KS.js.map} +1 -1
  97. package/dist/chunks/{chunk.N4VSEIRQ.js → chunk.VTKIDI7N.js} +7 -1
  98. package/dist/chunks/{chunk.N4VSEIRQ.js.map → chunk.VTKIDI7N.js.map} +2 -2
  99. package/dist/chunks/{chunk.PEMSU7RY.js → chunk.WM7IMLTR.js} +2 -2
  100. package/dist/chunks/{chunk.2KV3G5JF.js → chunk.WMYFFFHI.js} +2 -2
  101. package/dist/chunks/{chunk.VCXIV7H4.js → chunk.WPAPTZLW.js} +3 -3
  102. package/dist/chunks/{chunk.EWGDHM27.js → chunk.WZWI3VYU.js} +2 -2
  103. package/dist/chunks/{chunk.NXX572OD.js → chunk.XADGSL34.js} +2 -2
  104. package/dist/chunks/chunk.XNP4OTUB.js +16 -0
  105. package/dist/chunks/chunk.XNP4OTUB.js.map +7 -0
  106. package/dist/chunks/{chunk.KEEDSK2V.js → chunk.ZM72G6GO.js} +4 -4
  107. package/dist/components/badge/badge.component.js +4 -4
  108. package/dist/components/badge/badge.js +5 -5
  109. package/dist/components/button/button.component.js +10 -10
  110. package/dist/components/button/button.js +11 -11
  111. package/dist/components/button/button.styles.js +1 -1
  112. package/dist/components/button-group/button-group.component.js +2 -2
  113. package/dist/components/button-group/button-group.js +3 -3
  114. package/dist/components/checkbox/checkbox.component.js +7 -7
  115. package/dist/components/checkbox/checkbox.js +8 -8
  116. package/dist/components/checkbox/checkbox.styles.js +1 -1
  117. package/dist/components/divider/divider.component.js +2 -2
  118. package/dist/components/divider/divider.js +3 -3
  119. package/dist/components/drawer/drawer.component.js +10 -10
  120. package/dist/components/drawer/drawer.custom.styles.js +1 -1
  121. package/dist/components/drawer/drawer.js +11 -11
  122. package/dist/components/dropdown/dropdown.component.d.ts +4 -0
  123. package/dist/components/dropdown/dropdown.component.js +5 -5
  124. package/dist/components/dropdown/dropdown.js +6 -6
  125. package/dist/components/header/header.component.d.ts +42 -1
  126. package/dist/components/header/header.component.js +9 -7
  127. package/dist/components/header/header.js +10 -8
  128. package/dist/components/header/header.styles.js +1 -1
  129. package/dist/components/icon/icon.component.js +4 -4
  130. package/dist/components/icon/icon.js +5 -5
  131. package/dist/components/icon/library.js +2 -2
  132. package/dist/components/icon/library.system.js +1 -1
  133. package/dist/components/icon-button/icon-button.component.js +5 -5
  134. package/dist/components/icon-button/icon-button.js +6 -6
  135. package/dist/components/input/input.component.js +10 -10
  136. package/dist/components/input/input.js +11 -11
  137. package/dist/components/input/input.styles.js +1 -1
  138. package/dist/components/menu/menu.component.js +2 -2
  139. package/dist/components/menu/menu.js +3 -3
  140. package/dist/components/menu-item/menu-item.component.js +10 -10
  141. package/dist/components/menu-item/menu-item.js +11 -11
  142. package/dist/components/menu-item/submenu-controller.js +3 -3
  143. package/dist/components/menu-label/menu-label.component.js +3 -3
  144. package/dist/components/menu-label/menu-label.js +4 -4
  145. package/dist/components/nav-item/nav-item.component.d.ts +145 -0
  146. package/dist/components/nav-item/nav-item.component.js +15 -0
  147. package/dist/components/nav-item/nav-item.component.js.map +7 -0
  148. package/dist/components/nav-item/nav-item.d.ts +8 -0
  149. package/dist/components/nav-item/nav-item.js +16 -0
  150. package/dist/components/nav-item/nav-item.js.map +7 -0
  151. package/dist/components/nav-item/nav-item.styles.d.ts +2 -0
  152. package/dist/components/nav-item/nav-item.styles.js +8 -0
  153. package/dist/components/nav-item/nav-item.styles.js.map +7 -0
  154. package/dist/components/optgroup/optgroup.component.js +3 -3
  155. package/dist/components/optgroup/optgroup.js +4 -4
  156. package/dist/components/option/option.component.js +7 -7
  157. package/dist/components/option/option.js +8 -8
  158. package/dist/components/popup/popup.component.d.ts +1 -0
  159. package/dist/components/popup/popup.component.js +2 -2
  160. package/dist/components/popup/popup.js +3 -3
  161. package/dist/components/prio-nav/prio-nav.component.d.ts +110 -0
  162. package/dist/components/prio-nav/prio-nav.component.js +38 -0
  163. package/dist/components/prio-nav/prio-nav.component.js.map +7 -0
  164. package/dist/components/prio-nav/prio-nav.d.ts +8 -0
  165. package/dist/components/prio-nav/prio-nav.js +39 -0
  166. package/dist/components/prio-nav/prio-nav.js.map +7 -0
  167. package/dist/components/prio-nav/prio-nav.styles.d.ts +2 -0
  168. package/dist/components/prio-nav/prio-nav.styles.js +8 -0
  169. package/dist/components/prio-nav/prio-nav.styles.js.map +7 -0
  170. package/dist/components/prio-nav/utils.d.ts +20 -0
  171. package/dist/components/prio-nav/utils.js +12 -0
  172. package/dist/components/prio-nav/utils.js.map +7 -0
  173. package/dist/components/radio/radio.component.js +6 -6
  174. package/dist/components/radio/radio.js +7 -7
  175. package/dist/components/radio-button/radio-button.component.js +4 -4
  176. package/dist/components/radio-button/radio-button.js +5 -5
  177. package/dist/components/radio-button/radio-button.styles.js +2 -2
  178. package/dist/components/radio-group/radio-group.component.js +4 -4
  179. package/dist/components/radio-group/radio-group.js +5 -5
  180. package/dist/components/select/select.component.js +12 -12
  181. package/dist/components/select/select.js +13 -13
  182. package/dist/components/side-nav/side-nav.component.d.ts +122 -0
  183. package/dist/components/side-nav/side-nav.component.js +34 -0
  184. package/dist/components/side-nav/side-nav.component.js.map +7 -0
  185. package/dist/components/side-nav/side-nav.d.ts +8 -0
  186. package/dist/components/side-nav/side-nav.js +35 -0
  187. package/dist/components/side-nav/side-nav.js.map +7 -0
  188. package/dist/components/side-nav/side-nav.styles.d.ts +2 -0
  189. package/dist/components/side-nav/side-nav.styles.js +8 -0
  190. package/dist/components/side-nav/side-nav.styles.js.map +7 -0
  191. package/dist/components/spinner/spinner.component.js +4 -4
  192. package/dist/components/switch/switch.component.js +4 -4
  193. package/dist/components/switch/switch.js +5 -5
  194. package/dist/components/switch/switch.styles.js +1 -1
  195. package/dist/components/tag/tag.component.js +8 -8
  196. package/dist/components/tag/tag.js +9 -9
  197. package/dist/components/textarea/textarea.component.js +3 -3
  198. package/dist/components/textarea/textarea.js +4 -4
  199. package/dist/custom-elements.json +2086 -860
  200. package/dist/events/events.d.ts +2 -0
  201. package/dist/events/syn-burger-menu-hide.d.ts +6 -0
  202. package/dist/events/syn-burger-menu-show.d.ts +6 -0
  203. package/dist/synergy.d.ts +3 -0
  204. package/dist/synergy.js +97 -78
  205. package/dist/themes/utility.css +2 -1
  206. package/dist/translations/de.js +7 -2
  207. package/dist/translations/de.js.map +2 -2
  208. package/dist/translations/en.js +1 -1
  209. package/dist/utilities/form.js +2 -2
  210. package/dist/utilities/icon-library.js +2 -2
  211. package/dist/utilities/localize.d.ts +3 -0
  212. package/dist/utilities/localize.js +2 -2
  213. package/dist/vscode.html-custom-data.json +125 -19
  214. package/package.json +5 -4
  215. package/dist/chunks/chunk.2QYALZBT.js.map +0 -7
  216. package/dist/chunks/chunk.4LMFTSOM.js.map +0 -7
  217. package/dist/chunks/chunk.525LGYB4.js.map +0 -7
  218. package/dist/chunks/chunk.A6S4OYWD.js.map +0 -7
  219. package/dist/chunks/chunk.GGY5VQYA.js.map +0 -7
  220. package/dist/chunks/chunk.H33SDUY3.js.map +0 -7
  221. package/dist/chunks/chunk.L6ZUZPOW.js +0 -80
  222. package/dist/chunks/chunk.L6ZUZPOW.js.map +0 -7
  223. package/dist/chunks/chunk.QQB6JCQY.js.map +0 -7
  224. package/dist/chunks/chunk.SZCGMXW5.js.map +0 -7
  225. package/dist/chunks/chunk.UYD2OVFV.js.map +0 -7
  226. /package/dist/chunks/{chunk.DXL3JN6D.js.map → chunk.3EONOQ2P.js.map} +0 -0
  227. /package/dist/chunks/{chunk.COFVSXEF.js.map → chunk.3M6IVPMZ.js.map} +0 -0
  228. /package/dist/chunks/{chunk.YRMXDJFM.js.map → chunk.4MBMY5UE.js.map} +0 -0
  229. /package/dist/chunks/{chunk.GDHER3FZ.js.map → chunk.4RMP4EST.js.map} +0 -0
  230. /package/dist/chunks/{chunk.UEQDHG7J.js.map → chunk.5I7DR4UT.js.map} +0 -0
  231. /package/dist/chunks/{chunk.MEDX62IL.js.map → chunk.5OV7FNMN.js.map} +0 -0
  232. /package/dist/chunks/{chunk.7UVCYUNR.js.map → chunk.66MOXMDP.js.map} +0 -0
  233. /package/dist/chunks/{chunk.VSEAHAW7.js.map → chunk.7PYQKCMR.js.map} +0 -0
  234. /package/dist/chunks/{chunk.B57ZVQ2Q.js.map → chunk.ABSGP4AA.js.map} +0 -0
  235. /package/dist/chunks/{chunk.PAK472WN.js.map → chunk.BKRTJVKH.js.map} +0 -0
  236. /package/dist/chunks/{chunk.QFMUPETV.js.map → chunk.BQ3U6CVQ.js.map} +0 -0
  237. /package/dist/chunks/{chunk.SRZMRKLQ.js.map → chunk.CNKXQN5I.js.map} +0 -0
  238. /package/dist/chunks/{chunk.PSTO5STZ.js.map → chunk.CXLJMDBV.js.map} +0 -0
  239. /package/dist/chunks/{chunk.4MRXASVT.js.map → chunk.D63XRN3X.js.map} +0 -0
  240. /package/dist/chunks/{chunk.2NRG7KJT.js.map → chunk.E3MWAHV4.js.map} +0 -0
  241. /package/dist/chunks/{chunk.EZE5M5XB.js.map → chunk.EHMIJIZ2.js.map} +0 -0
  242. /package/dist/chunks/{chunk.2SLHEFOH.js.map → chunk.ENAW6YL5.js.map} +0 -0
  243. /package/dist/chunks/{chunk.KUO3KJOC.js.map → chunk.GBARDV25.js.map} +0 -0
  244. /package/dist/chunks/{chunk.64MHCKTF.js.map → chunk.H3GKRGN6.js.map} +0 -0
  245. /package/dist/chunks/{chunk.CSOIUDS4.js.map → chunk.HZTZOBNJ.js.map} +0 -0
  246. /package/dist/chunks/{chunk.BUIBP2TA.js.map → chunk.INLTRHSF.js.map} +0 -0
  247. /package/dist/chunks/{chunk.2ZEMD2N7.js.map → chunk.J3HTR5NX.js.map} +0 -0
  248. /package/dist/chunks/{chunk.Q4CT57M2.js.map → chunk.JJZKPNJZ.js.map} +0 -0
  249. /package/dist/chunks/{chunk.2OLQHFOR.js.map → chunk.KJ7V3TWI.js.map} +0 -0
  250. /package/dist/chunks/{chunk.ETREUSYO.js.map → chunk.LFNAPJXT.js.map} +0 -0
  251. /package/dist/chunks/{chunk.H7XP6JAS.js.map → chunk.LOUVN7OA.js.map} +0 -0
  252. /package/dist/chunks/{chunk.34NAFEQ7.js.map → chunk.NLWT6VZN.js.map} +0 -0
  253. /package/dist/chunks/{chunk.ZLEQ5DOF.js.map → chunk.NOB4TQLJ.js.map} +0 -0
  254. /package/dist/chunks/{chunk.7UUZ5ISH.js.map → chunk.O3AC2EVL.js.map} +0 -0
  255. /package/dist/chunks/{chunk.OLM7IVHA.js.map → chunk.OEMIM5RD.js.map} +0 -0
  256. /package/dist/chunks/{chunk.ITUSK365.js.map → chunk.PCI22DJU.js.map} +0 -0
  257. /package/dist/chunks/{chunk.3HTXK6WY.js.map → chunk.PGM6WEYY.js.map} +0 -0
  258. /package/dist/chunks/{chunk.CG753OYA.js.map → chunk.Q7WVOJG4.js.map} +0 -0
  259. /package/dist/chunks/{chunk.ZIQXX272.js.map → chunk.QPK7SLOE.js.map} +0 -0
  260. /package/dist/chunks/{chunk.MQCFDVLW.js.map → chunk.SAHA7Z3T.js.map} +0 -0
  261. /package/dist/chunks/{chunk.VDYPXC2H.js.map → chunk.SOAZXMVH.js.map} +0 -0
  262. /package/dist/chunks/{chunk.5HAKNNIR.js.map → chunk.TUFBQA52.js.map} +0 -0
  263. /package/dist/chunks/{chunk.P2D7PUR2.js.map → chunk.TWZC4LT2.js.map} +0 -0
  264. /package/dist/chunks/{chunk.PEMSU7RY.js.map → chunk.WM7IMLTR.js.map} +0 -0
  265. /package/dist/chunks/{chunk.2KV3G5JF.js.map → chunk.WMYFFFHI.js.map} +0 -0
  266. /package/dist/chunks/{chunk.VCXIV7H4.js.map → chunk.WPAPTZLW.js.map} +0 -0
  267. /package/dist/chunks/{chunk.EWGDHM27.js.map → chunk.WZWI3VYU.js.map} +0 -0
  268. /package/dist/chunks/{chunk.NXX572OD.js.map → chunk.XADGSL34.js.map} +0 -0
  269. /package/dist/chunks/{chunk.KEEDSK2V.js.map → chunk.ZM72G6GO.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynPopup
3
- } from "./chunk.GGY5VQYA.js";
3
+ } from "./chunk.IVHB4EQ6.js";
4
4
  import {
5
5
  dropdown_custom_styles_default
6
6
  } from "./chunk.2KYFCKCK.js";
@@ -24,11 +24,11 @@ import {
24
24
  } from "./chunk.AVTU2BGE.js";
25
25
  import {
26
26
  LocalizeController
27
- } from "./chunk.RK7OBPZ5.js";
27
+ } from "./chunk.GEHO4WRP.js";
28
28
  import {
29
29
  SynergyElement,
30
30
  component_styles_default
31
- } from "./chunk.5TOD3QS2.js";
31
+ } from "./chunk.VCFVQ6KS.js";
32
32
  import {
33
33
  __decorateClass
34
34
  } from "./chunk.QNDC5KWA.js";
@@ -36,6 +36,7 @@ import {
36
36
  // src/components/dropdown/dropdown.component.ts
37
37
  import { classMap } from "lit/directives/class-map.js";
38
38
  import { html } from "lit";
39
+ import { ifDefined } from "lit/directives/if-defined.js";
39
40
  import { property, query } from "lit/decorators.js";
40
41
  var SynDropdown = class extends SynergyElement {
41
42
  constructor() {
@@ -48,6 +49,7 @@ var SynDropdown = class extends SynergyElement {
48
49
  this.distance = 0;
49
50
  this.skidding = 0;
50
51
  this.hoist = false;
52
+ this.sync = void 0;
51
53
  this.handleKeyDown = (event) => {
52
54
  if (this.open && event.key === "Escape") {
53
55
  event.stopPropagation();
@@ -283,6 +285,7 @@ var SynDropdown = class extends SynergyElement {
283
285
  shift
284
286
  auto-size="vertical"
285
287
  auto-size-padding="10"
288
+ sync=${ifDefined(this.sync ? this.sync : void 0)}
286
289
  class=${classMap({
287
290
  dropdown: true,
288
291
  "dropdown--open": this.open
@@ -341,6 +344,9 @@ __decorateClass([
341
344
  __decorateClass([
342
345
  property({ type: Boolean })
343
346
  ], SynDropdown.prototype, "hoist", 2);
347
+ __decorateClass([
348
+ property({ reflect: true })
349
+ ], SynDropdown.prototype, "sync", 2);
344
350
  __decorateClass([
345
351
  watch("open", { waitUntilFirstUpdate: true })
346
352
  ], SynDropdown.prototype, "handleOpenChange", 1);
@@ -362,4 +368,4 @@ setDefaultAnimation("dropdown.hide", {
362
368
  export {
363
369
  SynDropdown
364
370
  };
365
- //# sourceMappingURL=chunk.525LGYB4.js.map
371
+ //# sourceMappingURL=chunk.2URWP5LD.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/dropdown/dropdown.component.ts"],
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { getTabbableBoundary } from '../../internal/tabbable.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynPopup from '../popup/popup.component.js';\nimport styles from './dropdown.styles.js';\nimport customStyles from './dropdown.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynSelectEvent } from '../../events/syn-select.js';\nimport type SynButton from '../button/button.js';\nimport type SynIconButton from '../icon-button/icon-button.js';\nimport type SynMenu from '../menu/menu.js';\n\n/**\n * @summary Dropdowns expose additional content that \"drops down\" in a panel.\n * @documentation https://synergy.style/components/dropdown\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The dropdown's main content.\n * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.\n *\n * @event syn-show - Emitted when the dropdown opens.\n * @event syn-after-show - Emitted after the dropdown opens and all animations are complete.\n * @event syn-hide - Emitted when the dropdown closes.\n * @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart trigger - The container that wraps the trigger.\n * @csspart panel - The panel that gets shown when the dropdown is open.\n *\n * @animation dropdown.show - The animation to use when showing the dropdown.\n * @animation dropdown.hide - The animation to use when hiding the dropdown.\n */\nexport default class SynDropdown extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-popup': SynPopup };\n\n @query('.dropdown') popup: SynPopup;\n @query('.dropdown__trigger') trigger: HTMLSlotElement;\n @query('.dropdown__panel') panel: HTMLSlotElement;\n\n private readonly localize = new LocalizeController(this);\n private closeWatcher: CloseWatcher | null;\n\n /**\n * Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\n * 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' = 'bottom-start';\n\n /** Disables the dropdown so the panel will not open. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\n * dropdowns that allow for multiple interactions.\n */\n @property({ attribute: 'stay-open-on-select', type: Boolean, reflect: true }) stayOpenOnSelect = false;\n\n /**\n * The dropdown will close when the user interacts outside of this element (e.g. clicking). Useful for composing other\n * components that use a dropdown internally.\n */\n @property({ attribute: false }) containingElement?: HTMLElement;\n\n /** The distance in pixels from which to offset the panel away from its trigger. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its trigger. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n */\n @property({ type: Boolean }) hoist = false;\n\n /**\n * Syncs the popup width or height to that of the trigger element.\n */\n @property({ reflect: true }) sync: 'width' | 'height' | 'both' | undefined = undefined;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (!this.containingElement) {\n this.containingElement = this;\n }\n }\n\n firstUpdated() {\n this.panel.hidden = !this.open;\n\n // If the dropdown is visible on init, update its position\n if (this.open) {\n this.addOpenListeners();\n this.popup.active = true;\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeOpenListeners();\n this.hide();\n }\n\n focusOnTrigger() {\n const trigger = this.trigger.assignedElements({ flatten: true })[0] as HTMLElement | undefined;\n if (typeof trigger?.focus === 'function') {\n trigger.focus();\n }\n }\n\n getMenu() {\n return this.panel.assignedElements({ flatten: true }).find(el => el.tagName.toLowerCase() === 'syn-menu') as\n | SynMenu\n | undefined;\n }\n\n private handleKeyDown = (event: KeyboardEvent) => {\n // Close when escape is pressed inside an open dropdown. We need to listen on the panel itself and stop propagation\n // in case any ancestors are also listening for this key.\n if (this.open && event.key === 'Escape') {\n event.stopPropagation();\n this.hide();\n this.focusOnTrigger();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Close when escape or tab is pressed\n if (event.key === 'Escape' && this.open && !this.closeWatcher) {\n event.stopPropagation();\n this.focusOnTrigger();\n this.hide();\n return;\n }\n\n // Handle tabbing\n if (event.key === 'Tab') {\n // Tabbing within an open menu should close the dropdown and refocus the trigger\n if (this.open && document.activeElement?.tagName.toLowerCase() === 'syn-menu-item') {\n event.preventDefault();\n this.hide();\n this.focusOnTrigger();\n return;\n }\n\n // Tabbing outside of the containing element closes the panel\n //\n // If the dropdown is used within a shadow DOM, we need to obtain the activeElement within that shadowRoot,\n // otherwise `document.activeElement` will only return the name of the parent shadow DOM element.\n setTimeout(() => {\n const activeElement =\n this.containingElement?.getRootNode() instanceof ShadowRoot\n ? document.activeElement?.shadowRoot?.activeElement\n : document.activeElement;\n\n if (\n !this.containingElement ||\n activeElement?.closest(this.containingElement.tagName.toLowerCase()) !== this.containingElement\n ) {\n this.hide();\n }\n });\n }\n };\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the containing element\n const path = event.composedPath();\n if (this.containingElement && !path.includes(this.containingElement)) {\n this.hide();\n }\n };\n\n private handlePanelSelect = (event: SynSelectEvent) => {\n const target = event.target as HTMLElement;\n\n // Hide the dropdown when a menu item is selected\n if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === 'syn-menu') {\n this.hide();\n this.focusOnTrigger();\n }\n };\n\n handleTriggerClick() {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n this.focusOnTrigger();\n }\n }\n\n async handleTriggerKeyDown(event: KeyboardEvent) {\n // When spacebar/enter is pressed, show the panel but don't focus on the menu. This let's the user press the same\n // key again to hide the menu in case they don't want to make a selection.\n if ([' ', 'Enter'].includes(event.key)) {\n event.preventDefault();\n this.handleTriggerClick();\n return;\n }\n\n const menu = this.getMenu();\n\n if (menu) {\n const menuItems = menu.getAllItems();\n const firstMenuItem = menuItems[0];\n const lastMenuItem = menuItems[menuItems.length - 1];\n\n // When up/down is pressed, we make the assumption that the user is familiar with the menu and plans to make a\n // selection. Rather than toggle the panel, we focus on the menu (if one exists) and activate the first item for\n // faster navigation.\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n event.preventDefault();\n\n // Show the menu if it's not already open\n if (!this.open) {\n this.show();\n\n // Wait for the dropdown to open before focusing, but not the animation\n await this.updateComplete;\n }\n\n if (menuItems.length > 0) {\n // Focus on the first/last menu item after showing\n this.updateComplete.then(() => {\n if (event.key === 'ArrowDown' || event.key === 'Home') {\n menu.setCurrentItem(firstMenuItem);\n firstMenuItem.focus();\n }\n\n if (event.key === 'ArrowUp' || event.key === 'End') {\n menu.setCurrentItem(lastMenuItem);\n lastMenuItem.focus();\n }\n });\n }\n }\n }\n }\n\n handleTriggerKeyUp(event: KeyboardEvent) {\n // Prevent space from triggering a click event in Firefox\n if (event.key === ' ') {\n event.preventDefault();\n }\n }\n\n handleTriggerSlotChange() {\n this.updateAccessibleTrigger();\n }\n\n //\n // Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and\n // `aria-expanded`. These must be applied to the \"accessible trigger\" (the tabbable portion of the trigger element\n // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,\n // a child of the slotted element, or an element in the slotted element's shadow root.\n //\n // For example, the accessible trigger of an <syn-button> is a <button> located inside its shadow root.\n //\n // To determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n //\n updateAccessibleTrigger() {\n const assignedElements = this.trigger.assignedElements({ flatten: true }) as HTMLElement[];\n const accessibleTrigger = assignedElements.find(el => getTabbableBoundary(el).start);\n let target: HTMLElement;\n\n if (accessibleTrigger) {\n switch (accessibleTrigger.tagName.toLowerCase()) {\n // Synergy buttons have to update the internal button so it's announced correctly by screen readers\n case 'syn-button':\n case 'syn-icon-button':\n target = (accessibleTrigger as SynButton | SynIconButton).button;\n break;\n\n default:\n target = accessibleTrigger;\n }\n\n target.setAttribute('aria-haspopup', 'true');\n target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n }\n\n /** Shows the dropdown panel. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the dropdown panel */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\n * is activated.\n */\n reposition() {\n this.popup.reposition();\n }\n\n addOpenListeners() {\n this.panel.addEventListener('syn-select', this.handlePanelSelect);\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n this.hide();\n this.focusOnTrigger();\n };\n } else {\n this.panel.addEventListener('keydown', this.handleKeyDown);\n }\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n }\n\n removeOpenListeners() {\n if (this.panel) {\n this.panel.removeEventListener('syn-select', this.handlePanelSelect);\n this.panel.removeEventListener('keydown', this.handleKeyDown);\n }\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n this.closeWatcher?.destroy();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.disabled) {\n this.open = false;\n return;\n }\n\n this.updateAccessibleTrigger();\n\n if (this.open) {\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.panel.hidden = false;\n this.popup.active = true;\n const { keyframes, options } = getAnimation(this, 'dropdown.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n await stopAnimations(this);\n const { keyframes, options } = getAnimation(this, 'dropdown.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.panel.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n }\n\n render() {\n return html`\n <syn-popup\n part=\"base\"\n id=\"dropdown\"\n placement=${this.placement}\n distance=${this.distance}\n skidding=${this.skidding}\n strategy=${this.hoist ? 'fixed' : 'absolute'}\n flip\n shift\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n sync=${ifDefined(this.sync ? this.sync : undefined)}\n class=${classMap({\n dropdown: true,\n 'dropdown--open': this.open\n })}\n >\n <slot\n name=\"trigger\"\n slot=\"anchor\"\n part=\"trigger\"\n class=\"dropdown__trigger\"\n @click=${this.handleTriggerClick}\n @keydown=${this.handleTriggerKeyDown}\n @keyup=${this.handleTriggerKeyUp}\n @slotchange=${this.handleTriggerSlotChange}\n ></slot>\n\n <div aria-hidden=${this.open ? 'false' : 'true'} aria-labelledby=\"dropdown\">\n <slot part=\"panel\" class=\"dropdown__panel\"></slot>\n </div>\n </syn-popup>\n `;\n }\n}\n\nsetDefaultAnimation('dropdown.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n\nsetDefaultAnimation('dropdown.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.9 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAE1B,SAAS,UAAU,aAAa;AAqChC,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAQE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAOX,gBAAO;AAMtB,qBAYZ;AAG2B,oBAAW;AAMuB,4BAAmB;AASrE,oBAAW;AAGX,oBAAW;AAMV,iBAAQ;AAKR,gBAAgD;AAuC7E,SAAQ,gBAAgB,CAAC,UAAyB;AAGhD,UAAI,KAAK,QAAQ,MAAM,QAAQ,UAAU;AACvC,cAAM,gBAAgB;AACtB,aAAK,KAAK;AACV,aAAK,eAAe;AAAA,MACtB;AAAA,IACF;AAEA,SAAQ,wBAAwB,CAAC,UAAyB;AApK5D;AAsKI,UAAI,MAAM,QAAQ,YAAY,KAAK,QAAQ,CAAC,KAAK,cAAc;AAC7D,cAAM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,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GAhDX,YAgDa;AAGJ;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAnDP,YAmDS;AAGA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAtDP,YAsDS;AAMC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GA5DR,YA4DU;AAKA;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAjER,YAiEU;AAqQvB;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GArU1B,YAsUb;AAyER,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
6
+ "names": ["_a"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynButton
3
- } from "./chunk.2SLHEFOH.js";
3
+ } from "./chunk.ENAW6YL5.js";
4
4
 
5
5
  // src/components/button/button.ts
6
6
  var button_default = SynButton;
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
9
9
  export {
10
10
  button_default
11
11
  };
12
- //# sourceMappingURL=chunk.DXL3JN6D.js.map
12
+ //# sourceMappingURL=chunk.3EONOQ2P.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  lockBodyScrolling,
3
3
  unlockBodyScrolling
4
- } from "./chunk.2QYALZBT.js";
4
+ } from "./chunk.RIJKFEYZ.js";
5
5
  import {
6
6
  SynIconButton
7
- } from "./chunk.7UUZ5ISH.js";
7
+ } from "./chunk.O3AC2EVL.js";
8
8
  import {
9
9
  getTabbableElements
10
10
  } from "./chunk.2QOQY4ZG.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk.QAUTITK3.js";
20
20
  import {
21
21
  drawer_custom_styles_default
22
- } from "./chunk.UYD2OVFV.js";
22
+ } from "./chunk.KZMWNTUS.js";
23
23
  import {
24
24
  drawer_styles_default
25
25
  } from "./chunk.PHSJD47V.js";
@@ -31,11 +31,11 @@ import {
31
31
  } from "./chunk.AVTU2BGE.js";
32
32
  import {
33
33
  LocalizeController
34
- } from "./chunk.RK7OBPZ5.js";
34
+ } from "./chunk.GEHO4WRP.js";
35
35
  import {
36
36
  SynergyElement,
37
37
  component_styles_default
38
- } from "./chunk.5TOD3QS2.js";
38
+ } from "./chunk.VCFVQ6KS.js";
39
39
  import {
40
40
  __decorateClass,
41
41
  __yieldStar
@@ -518,4 +518,4 @@ setDefaultAnimation("drawer.overlay.hide", {
518
518
  export {
519
519
  SynDrawer
520
520
  };
521
- //# sourceMappingURL=chunk.COFVSXEF.js.map
521
+ //# sourceMappingURL=chunk.3M6IVPMZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenu
3
- } from "./chunk.ITUSK365.js";
3
+ } from "./chunk.PCI22DJU.js";
4
4
 
5
5
  // src/components/menu/menu.ts
6
6
  var menu_default = SynMenu;
@@ -9,4 +9,4 @@ SynMenu.define("syn-menu");
9
9
  export {
10
10
  menu_default
11
11
  };
12
- //# sourceMappingURL=chunk.YRMXDJFM.js.map
12
+ //# sourceMappingURL=chunk.4MBMY5UE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynOptgroup
3
- } from "./chunk.QFMUPETV.js";
3
+ } from "./chunk.BQ3U6CVQ.js";
4
4
 
5
5
  // src/components/optgroup/optgroup.ts
6
6
  var optgroup_default = SynOptgroup;
@@ -9,4 +9,4 @@ SynOptgroup.define("syn-optgroup");
9
9
  export {
10
10
  optgroup_default
11
11
  };
12
- //# sourceMappingURL=chunk.GDHER3FZ.js.map
12
+ //# sourceMappingURL=chunk.4RMP4EST.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenuItem
3
- } from "./chunk.64MHCKTF.js";
3
+ } from "./chunk.H3GKRGN6.js";
4
4
 
5
5
  // src/components/menu-item/menu-item.ts
6
6
  var menu_item_default = SynMenuItem;
@@ -9,4 +9,4 @@ SynMenuItem.define("syn-menu-item");
9
9
  export {
10
10
  menu_item_default
11
11
  };
12
- //# sourceMappingURL=chunk.UEQDHG7J.js.map
12
+ //# sourceMappingURL=chunk.5I7DR4UT.js.map
@@ -6,11 +6,11 @@ import {
6
6
  } from "./chunk.3FOVDOJX.js";
7
7
  import {
8
8
  SynDivider
9
- } from "./chunk.5HAKNNIR.js";
9
+ } from "./chunk.TUFBQA52.js";
10
10
  import {
11
11
  SynergyElement,
12
12
  component_styles_default
13
- } from "./chunk.5TOD3QS2.js";
13
+ } from "./chunk.VCFVQ6KS.js";
14
14
 
15
15
  // src/components/menu-label/menu-label.component.ts
16
16
  import { html } from "lit";
@@ -32,4 +32,4 @@ SynMenuLabel.dependencies = {
32
32
  export {
33
33
  SynMenuLabel
34
34
  };
35
- //# sourceMappingURL=chunk.MEDX62IL.js.map
35
+ //# sourceMappingURL=chunk.5OV7FNMN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6C4JXZZN.js";
4
4
  import {
5
5
  library_system_default
6
- } from "./chunk.N4VSEIRQ.js";
6
+ } from "./chunk.VTKIDI7N.js";
7
7
 
8
8
  // src/components/icon/library.ts
9
9
  var registry = [library_default_default, library_system_default];
@@ -42,4 +42,4 @@ export {
42
42
  registerIconLibrary,
43
43
  unregisterIconLibrary
44
44
  };
45
- //# sourceMappingURL=chunk.7UVCYUNR.js.map
45
+ //# sourceMappingURL=chunk.66MOXMDP.js.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk.3A65FBTX.js";
4
4
  import {
5
5
  input_styles_default
6
- } from "./chunk.4QS5IWYB.js";
6
+ } from "./chunk.AW2HNLNP.js";
7
7
  import {
8
8
  SynDivider
9
- } from "./chunk.5HAKNNIR.js";
9
+ } from "./chunk.TUFBQA52.js";
10
10
  import {
11
11
  defaultValue
12
12
  } from "./chunk.WFAJR3FN.js";
@@ -16,23 +16,23 @@ import {
16
16
  } from "./chunk.TTL762VF.js";
17
17
  import {
18
18
  FormControlController
19
- } from "./chunk.SZCGMXW5.js";
19
+ } from "./chunk.JUJZBRXD.js";
20
20
  import {
21
21
  HasSlotController
22
22
  } from "./chunk.66WXVGAW.js";
23
23
  import {
24
24
  SynIcon
25
- } from "./chunk.4LMFTSOM.js";
25
+ } from "./chunk.I3SSNN7J.js";
26
26
  import {
27
27
  watch
28
28
  } from "./chunk.AVTU2BGE.js";
29
29
  import {
30
30
  LocalizeController
31
- } from "./chunk.RK7OBPZ5.js";
31
+ } from "./chunk.GEHO4WRP.js";
32
32
  import {
33
33
  SynergyElement,
34
34
  component_styles_default
35
- } from "./chunk.5TOD3QS2.js";
35
+ } from "./chunk.VCFVQ6KS.js";
36
36
  import {
37
37
  __decorateClass,
38
38
  __spreadValues
@@ -240,12 +240,14 @@ var SynInput = class extends SynergyElement {
240
240
  this.emit("syn-change");
241
241
  }
242
242
  handleClearClick(event) {
243
- this.value = "";
244
- this.emit("syn-clear");
245
- this.emit("syn-input");
246
- this.emit("syn-change");
243
+ event.preventDefault();
244
+ if (this.value !== "") {
245
+ this.value = "";
246
+ this.emit("syn-clear");
247
+ this.emit("syn-input");
248
+ this.emit("syn-change");
249
+ }
247
250
  this.input.focus();
248
- event.stopPropagation();
249
251
  }
250
252
  handleFocus() {
251
253
  this.hasFocus = true;
@@ -434,13 +436,10 @@ var SynInput = class extends SynergyElement {
434
436
  @blur=${this.handleBlur}
435
437
  />
436
438
 
437
- ${hasClearIcon ? html`
439
+ ${isClearIconVisible ? html`
438
440
  <button
439
441
  part="clear-button"
440
- class=${classMap({
441
- input__clear: true,
442
- "input__clear--visible": isClearIconVisible
443
- })}
442
+ class="input__clear"
444
443
  type="button"
445
444
  aria-label=${this.localize.term("clearEntry")}
446
445
  @click=${this.handleClearClick}
@@ -643,4 +642,4 @@ __decorateClass([
643
642
  export {
644
643
  SynInput
645
644
  };
646
- //# sourceMappingURL=chunk.QQB6JCQY.js.map
645
+ //# sourceMappingURL=chunk.6V72DOSV.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/input/input.component.ts", "../../src/internal/longpress.ts"],
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { 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';\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.style/components/input\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 *\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 */\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() 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() autocorrect: 'off' | 'on';\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 // 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 || this.disabled) {\n return false;\n }\n\n const min = typeof this.min === 'string' ? parseFloat(this.min) : this.min\n return this.valueAsNumber <= 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 return this.valueAsNumber >= max;\n }\n\n private handleChange() {\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 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/synergy-design-system/synergy/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 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 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 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 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.step as number)}\n .value=${live(this.value)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocomplete=${ifDefined(this.autocomplete)}\n autocorrect=${ifDefined(this.autocorrect)}\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 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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;ACdvC,SAA2B,UAAU,eAAe;AACpD;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AAmBP,IAAM,qBAAN,cAAiC,eAAe;AAAA,EAW9C,YAAY,MAAY;AACtB,UAAM,IAAI;AA4BZ,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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FS;AAGhB;AAAA,EAAX,SAAS;AAAA,GAhGS,SAgGP;AAGA;AAAA,EAAX,SAAS;AAAA,GAnGS,SAmGP;AAMA;AAAA,EAAX,SAAS;AAAA,GAzGS,SAyGP;AAGA;AAAA,EAAX,SAAS;AAAA,GA5GS,SA4GP;AAGA;AAAA,EAAX,SAAS;AAAA,GA/GS,SA+GP;AAMA;AAAA,EAAX,SAAS;AAAA,GArHS,SAqHP;AAGiB;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAxHR,SAwHU;AAGjB;AAAA,EAAX,SAAS;AAAA,GA3HS,SA2HP;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,GArIkB,SAsInB;AAMY;AAAA,EAAX,SAAS;AAAA,GA5IS,SA4IP;AAwJZ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAnS9B,SAoSnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAzS1B,SA0SnB;AAQM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAjT3B,SAkTb;",
6
+ "names": []
7
+ }
@@ -0,0 +1,53 @@
1
+ // src/components/prio-nav/prio-nav.styles.ts
2
+ import { css } from "lit";
3
+ var prio_nav_styles_default = css`
4
+ :host {
5
+ display: block;
6
+
7
+ /**
8
+ * Needed because the positioning of the priority menu is absolute
9
+ */
10
+ position: relative !important;
11
+ }
12
+
13
+ .horizontal-nav {
14
+ display: flex;
15
+ flex: 1;
16
+ gap: var(--syn-spacing-large);
17
+ }
18
+
19
+ /**
20
+ * Priority Menu adjustments
21
+ */
22
+ .priority-menu--hidden {
23
+ visibility: hidden;
24
+ }
25
+
26
+ .priority-menu__label {
27
+ display: none;
28
+ }
29
+
30
+ .priority-menu__label--visible {
31
+ display: block;
32
+ }
33
+
34
+ /**
35
+ * Make the available small click area accessible by adding paddings
36
+ */
37
+ .priority-menu--has-visible-items .priority-menu__icon {
38
+ padding-left: var(--syn-spacing-small);
39
+ padding-right: var(--syn-spacing-small);
40
+ }
41
+
42
+ /**
43
+ * Remove the margin from the content container if it is not visible
44
+ */
45
+ .priority-menu--has-visible-items .priority-menu__nav-item::part(content-container) {
46
+ margin-inline-start: 0;
47
+ }
48
+ `;
49
+
50
+ export {
51
+ prio_nav_styles_default
52
+ };
53
+ //# sourceMappingURL=chunk.74N5WLM5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/prio-nav/prio-nav.styles.ts"],
4
+ "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n display: block;\n\n /**\n * Needed because the positioning of the priority menu is absolute\n */\n position: relative !important;\n }\n\n .horizontal-nav {\n display: flex;\n flex: 1;\n gap: var(--syn-spacing-large);\n }\n\n /**\n * Priority Menu adjustments\n */\n .priority-menu--hidden {\n visibility: hidden;\n }\n\n .priority-menu__label {\n display: none;\n }\n\n .priority-menu__label--visible {\n display: block;\n }\n\n /**\n * Make the available small click area accessible by adding paddings\n */\n .priority-menu--has-visible-items .priority-menu__icon {\n padding-left: var(--syn-spacing-small);\n padding-right: var(--syn-spacing-small);\n }\n\n /**\n * Remove the margin from the content container if it is not visible\n */\n .priority-menu--has-visible-items .priority-menu__nav-item::part(content-container) {\n margin-inline-start: 0;\n }\n`;\n"],
5
+ "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTag
3
- } from "./chunk.KEEDSK2V.js";
3
+ } from "./chunk.ZM72G6GO.js";
4
4
  import {
5
5
  select_custom_styles_default
6
6
  } from "./chunk.OWMT6OL2.js";
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk.QNQNR3RY.js";
10
10
  import {
11
11
  SynPopup
12
- } from "./chunk.GGY5VQYA.js";
12
+ } from "./chunk.IVHB4EQ6.js";
13
13
  import {
14
14
  scrollIntoView
15
- } from "./chunk.2QYALZBT.js";
15
+ } from "./chunk.RIJKFEYZ.js";
16
16
  import {
17
17
  animateTo,
18
18
  stopAnimations,
@@ -31,23 +31,23 @@ import {
31
31
  } from "./chunk.TTL762VF.js";
32
32
  import {
33
33
  FormControlController
34
- } from "./chunk.SZCGMXW5.js";
34
+ } from "./chunk.JUJZBRXD.js";
35
35
  import {
36
36
  HasSlotController
37
37
  } from "./chunk.66WXVGAW.js";
38
38
  import {
39
39
  SynIcon
40
- } from "./chunk.4LMFTSOM.js";
40
+ } from "./chunk.I3SSNN7J.js";
41
41
  import {
42
42
  watch
43
43
  } from "./chunk.AVTU2BGE.js";
44
44
  import {
45
45
  LocalizeController
46
- } from "./chunk.RK7OBPZ5.js";
46
+ } from "./chunk.GEHO4WRP.js";
47
47
  import {
48
48
  SynergyElement,
49
49
  component_styles_default
50
- } from "./chunk.5TOD3QS2.js";
50
+ } from "./chunk.VCFVQ6KS.js";
51
51
  import {
52
52
  __decorateClass
53
53
  } from "./chunk.QNDC5KWA.js";
@@ -222,7 +222,12 @@ var SynSelect = class extends SynergyElement {
222
222
  }
223
223
  addOpenListeners() {
224
224
  var _a;
225
- const root = this.getRootNode();
225
+ document.addEventListener("focusin", this.handleDocumentFocusIn);
226
+ document.addEventListener("keydown", this.handleDocumentKeyDown);
227
+ document.addEventListener("mousedown", this.handleDocumentMouseDown);
228
+ if (this.getRootNode() !== document) {
229
+ this.getRootNode().addEventListener("focusin", this.handleDocumentFocusIn);
230
+ }
226
231
  if ("CloseWatcher" in window) {
227
232
  (_a = this.closeWatcher) == null ? void 0 : _a.destroy();
228
233
  this.closeWatcher = new CloseWatcher();
@@ -233,16 +238,15 @@ var SynSelect = class extends SynergyElement {
233
238
  }
234
239
  };
235
240
  }
236
- root.addEventListener("focusin", this.handleDocumentFocusIn);
237
- root.addEventListener("keydown", this.handleDocumentKeyDown);
238
- root.addEventListener("mousedown", this.handleDocumentMouseDown);
239
241
  }
240
242
  removeOpenListeners() {
241
243
  var _a;
242
- const root = this.getRootNode();
243
- root.removeEventListener("focusin", this.handleDocumentFocusIn);
244
- root.removeEventListener("keydown", this.handleDocumentKeyDown);
245
- root.removeEventListener("mousedown", this.handleDocumentMouseDown);
244
+ document.removeEventListener("focusin", this.handleDocumentFocusIn);
245
+ document.removeEventListener("keydown", this.handleDocumentKeyDown);
246
+ document.removeEventListener("mousedown", this.handleDocumentMouseDown);
247
+ if (this.getRootNode() !== document) {
248
+ this.getRootNode().removeEventListener("focusin", this.handleDocumentFocusIn);
249
+ }
246
250
  (_a = this.closeWatcher) == null ? void 0 : _a.destroy();
247
251
  }
248
252
  handleFocus() {
@@ -404,7 +408,7 @@ var SynSelect = class extends SynergyElement {
404
408
  ${typeof tag === "string" ? unsafeHTML(tag) : tag}
405
409
  </div>`;
406
410
  } else if (index === this.maxOptionsVisible) {
407
- return html`<syn-tag>+${this.selectedOptions.length - index}</syn-tag>`;
411
+ return html`<syn-tag size=${this.size}>+${this.selectedOptions.length - index}</syn-tag>`;
408
412
  }
409
413
  return html``;
410
414
  });
@@ -760,4 +764,4 @@ setDefaultAnimation("select.hide", {
760
764
  export {
761
765
  SynSelect
762
766
  };
763
- //# sourceMappingURL=chunk.A6S4OYWD.js.map
767
+ //# sourceMappingURL=chunk.7NH6SYGG.js.map