@synergy-design-system/components 2.19.2 → 2.20.0-settings.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 (334) hide show
  1. package/dist/chunks/{chunk.LYPAFIHE.js → chunk.24C4XJAI.js} +9 -3
  2. package/dist/chunks/chunk.24C4XJAI.js.map +7 -0
  3. package/dist/chunks/{chunk.ZM743PSM.js → chunk.24DN2XDS.js} +12 -6
  4. package/dist/chunks/chunk.24DN2XDS.js.map +7 -0
  5. package/dist/chunks/{chunk.TRYGLZCA.js → chunk.2QFNK7XL.js} +2 -2
  6. package/dist/chunks/{chunk.HG3UJ6TA.js → chunk.3HW4J22U.js} +3 -3
  7. package/dist/chunks/{chunk.FRULQ4M2.js → chunk.4AKA2QRO.js} +2 -2
  8. package/dist/chunks/{chunk.6ELPWAC5.js → chunk.4ZPJSGD5.js} +2 -2
  9. package/dist/chunks/{chunk.I4NXMNXP.js → chunk.53THUSDO.js} +2 -2
  10. package/dist/chunks/{chunk.45VS7G6N.js → chunk.742PBV5R.js} +12 -6
  11. package/dist/chunks/chunk.742PBV5R.js.map +7 -0
  12. package/dist/chunks/{chunk.WQADR5LA.js → chunk.7467Z6PG.js} +2 -2
  13. package/dist/chunks/{chunk.R4SPHKG6.js → chunk.7EYHNKMM.js} +3 -3
  14. package/dist/chunks/{chunk.VIJSD5A4.js → chunk.7LASULTQ.js} +2 -2
  15. package/dist/chunks/{chunk.ACZ5UOJQ.js → chunk.7NZ7JAEV.js} +2 -2
  16. package/dist/chunks/{chunk.R2KVUFIA.js → chunk.7XMTQ7P7.js} +3 -3
  17. package/dist/chunks/{chunk.4SHUJVES.js → chunk.7Y7O45CM.js} +8 -2
  18. package/dist/chunks/chunk.7Y7O45CM.js.map +7 -0
  19. package/dist/chunks/{chunk.44VIQGKB.js → chunk.A2JLMFJ4.js} +2 -2
  20. package/dist/chunks/{chunk.ZJD5LI5N.js → chunk.AIQ3EJZY.js} +8 -2
  21. package/dist/chunks/chunk.AIQ3EJZY.js.map +7 -0
  22. package/dist/chunks/{chunk.2OVDL3Y6.js → chunk.AQS4YK7Q.js} +2 -2
  23. package/dist/chunks/{chunk.G5CMX6IN.js → chunk.AS3TB27D.js} +3 -3
  24. package/dist/chunks/{chunk.OXQEMOQS.js → chunk.B2WOBIWW.js} +2 -2
  25. package/dist/chunks/{chunk.YCRUDIHZ.js → chunk.BA7XLIED.js} +9 -3
  26. package/dist/chunks/{chunk.YCRUDIHZ.js.map → chunk.BA7XLIED.js.map} +2 -2
  27. package/dist/chunks/{chunk.JP7TALDT.js → chunk.BJTRYICX.js} +2 -2
  28. package/dist/chunks/{chunk.SDS7TB3N.js → chunk.BO7VIZR3.js} +13 -7
  29. package/dist/chunks/chunk.BO7VIZR3.js.map +7 -0
  30. package/dist/chunks/{chunk.P6V4BX6E.js → chunk.BPZOCAHJ.js} +2 -2
  31. package/dist/chunks/{chunk.XSJOHCE2.js → chunk.BWESHYBN.js} +2 -2
  32. package/dist/chunks/{chunk.4EBKOLKZ.js → chunk.DERBT2MN.js} +14 -8
  33. package/dist/chunks/chunk.DERBT2MN.js.map +7 -0
  34. package/dist/chunks/{chunk.EF4WRUUC.js → chunk.DYUCTKM6.js} +2 -2
  35. package/dist/chunks/{chunk.NOCY4662.js → chunk.E72GLNXI.js} +2 -2
  36. package/dist/chunks/{chunk.233Z3OOY.js → chunk.EBYGA33B.js} +2 -2
  37. package/dist/chunks/{chunk.UHJAGFMF.js → chunk.EMGPXY5T.js} +2 -2
  38. package/dist/chunks/{chunk.4GO3CKSX.js → chunk.EMU2E2VE.js} +9 -3
  39. package/dist/chunks/{chunk.4GO3CKSX.js.map → chunk.EMU2E2VE.js.map} +2 -2
  40. package/dist/chunks/{chunk.DU6DOKUS.js → chunk.EVECGQOP.js} +10 -4
  41. package/dist/chunks/chunk.EVECGQOP.js.map +7 -0
  42. package/dist/chunks/{chunk.H3CAF3V4.js → chunk.FAREQGAK.js} +2 -2
  43. package/dist/chunks/{chunk.33Q2FW7X.js → chunk.FLB37Q2Y.js} +6 -6
  44. package/dist/chunks/{chunk.T554U5RP.js → chunk.HCMNEIRN.js} +3 -3
  45. package/dist/chunks/{chunk.XBB2QM7V.js → chunk.HNVPPNYZ.js} +2 -2
  46. package/dist/chunks/{chunk.HABSH3A6.js → chunk.HPQBH3O2.js} +2 -2
  47. package/dist/chunks/{chunk.C6RJP2S7.js → chunk.HZ3S4J3T.js} +2 -2
  48. package/dist/chunks/{chunk.7X3KN2T4.js → chunk.IBQDKFYH.js} +4 -4
  49. package/dist/chunks/{chunk.6HDB5KR7.js → chunk.IFWSRMUK.js} +2 -2
  50. package/dist/chunks/{chunk.7QJJK6PH.js → chunk.J53UXHXV.js} +2 -2
  51. package/dist/chunks/{chunk.GLG4ABEU.js → chunk.JBLFNOCX.js} +9 -3
  52. package/dist/chunks/chunk.JBLFNOCX.js.map +7 -0
  53. package/dist/chunks/{chunk.MDBUQ4E3.js → chunk.JHPSR3AP.js} +2 -2
  54. package/dist/chunks/{chunk.PLBJHKBZ.js → chunk.JNAG6IBY.js} +2 -2
  55. package/dist/chunks/chunk.JSEL4YPW.js +147 -0
  56. package/dist/chunks/chunk.JSEL4YPW.js.map +7 -0
  57. package/dist/chunks/{chunk.6HMXZF2N.js → chunk.LHNUNBCA.js} +2 -2
  58. package/dist/chunks/{chunk.WD6VJJO7.js → chunk.LYMHXGME.js} +2 -2
  59. package/dist/chunks/{chunk.QFFFOALX.js → chunk.LYNLLR54.js} +7 -7
  60. package/dist/chunks/{chunk.3YDFOIXK.js → chunk.LZ27X5R6.js} +2 -2
  61. package/dist/chunks/{chunk.L4AD5A4C.js → chunk.MDG7KZFO.js} +2 -2
  62. package/dist/chunks/{chunk.HMCIVHWX.js → chunk.MGET4VXP.js} +2 -2
  63. package/dist/chunks/{chunk.F5WZD5MH.js → chunk.MKQXTHWU.js} +2 -2
  64. package/dist/chunks/{chunk.F5WZD5MH.js.map → chunk.MKQXTHWU.js.map} +1 -1
  65. package/dist/chunks/{chunk.U2LQ5THB.js → chunk.N54SVWTA.js} +2 -2
  66. package/dist/chunks/{chunk.T6VDAQ7G.js → chunk.NL4FKYIJ.js} +2 -2
  67. package/dist/chunks/{chunk.5COQCPSY.js → chunk.NM5EI7ZH.js} +2 -2
  68. package/dist/chunks/{chunk.5FHF6YUU.js → chunk.NN73HBIU.js} +3 -3
  69. package/dist/chunks/{chunk.XUIOTO7U.js → chunk.NUCBTPTS.js} +13 -7
  70. package/dist/chunks/chunk.NUCBTPTS.js.map +7 -0
  71. package/dist/chunks/{chunk.DFUGHKWB.js → chunk.O7JPMKUW.js} +8 -2
  72. package/dist/chunks/chunk.O7JPMKUW.js.map +7 -0
  73. package/dist/chunks/{chunk.3I2D4ZPV.js → chunk.OFA3YJLS.js} +2 -2
  74. package/dist/chunks/chunk.OLCT57R5.js +69 -0
  75. package/dist/chunks/chunk.OLCT57R5.js.map +7 -0
  76. package/dist/chunks/{chunk.7W7NJO3L.js → chunk.P5XIUYNV.js} +2 -2
  77. package/dist/chunks/{chunk.VMZ262R4.js → chunk.PDAOZ7HN.js} +2 -2
  78. package/dist/chunks/{chunk.EO34ZPKP.js → chunk.PLSOGFSX.js} +2 -2
  79. package/dist/chunks/{chunk.VKRIF7NX.js → chunk.Q33XUREM.js} +2 -2
  80. package/dist/chunks/{chunk.N7WGPTHM.js → chunk.QMVBPAZF.js} +2 -2
  81. package/dist/chunks/{chunk.637ZXJXD.js → chunk.QWMAKCAT.js} +2 -2
  82. package/dist/chunks/{chunk.FVH4EUEE.js → chunk.R2HFUCJI.js} +23 -17
  83. package/dist/chunks/chunk.R2HFUCJI.js.map +7 -0
  84. package/dist/chunks/chunk.RSCUHBW3.js +1 -0
  85. package/dist/chunks/chunk.RSCUHBW3.js.map +7 -0
  86. package/dist/chunks/{chunk.SKHIPO4W.js → chunk.S7PAQRVY.js} +4 -4
  87. package/dist/chunks/{chunk.4BAYNG44.js → chunk.SKA5Y7HA.js} +3 -3
  88. package/dist/chunks/{chunk.ZMRGWQV5.js → chunk.SNHVIH7F.js} +2 -2
  89. package/dist/chunks/{chunk.CLRSMKCD.js → chunk.ST3V3ZVP.js} +2 -2
  90. package/dist/chunks/{chunk.CYLL2VNN.js → chunk.SWUXKALS.js} +2 -2
  91. package/dist/chunks/{chunk.WDZPER7K.js → chunk.SXFIFBVM.js} +8 -2
  92. package/dist/chunks/chunk.SXFIFBVM.js.map +7 -0
  93. package/dist/chunks/{chunk.72XXOEIM.js → chunk.SYWSXUHZ.js} +2 -2
  94. package/dist/chunks/{chunk.VUSZ5XCI.js → chunk.T53XYA43.js} +8 -2
  95. package/dist/chunks/chunk.T53XYA43.js.map +7 -0
  96. package/dist/chunks/{chunk.TNZTUW3T.js → chunk.TL5RQ2KH.js} +2 -2
  97. package/dist/chunks/{chunk.6KFAPM72.js → chunk.TXQLKFUU.js} +9 -3
  98. package/dist/chunks/chunk.TXQLKFUU.js.map +7 -0
  99. package/dist/chunks/chunk.UPDPVGHT.js +59 -0
  100. package/dist/chunks/chunk.UPDPVGHT.js.map +7 -0
  101. package/dist/chunks/{chunk.AVJKQVRU.js → chunk.UXHC3W5U.js} +3 -3
  102. package/dist/chunks/{chunk.3D5RCWDS.js → chunk.UY5AOQHP.js} +2 -2
  103. package/dist/chunks/{chunk.AEWACDJI.js → chunk.UYGCYMDS.js} +2 -2
  104. package/dist/chunks/{chunk.VKR4ZN4R.js → chunk.VKRMYKYH.js} +4 -4
  105. package/dist/chunks/chunk.VKRMYKYH.js.map +7 -0
  106. package/dist/chunks/{chunk.B5VVYG2U.js → chunk.VL74BJLP.js} +2 -2
  107. package/dist/chunks/{chunk.RDAG7DOB.js → chunk.VLE3Q74Y.js} +2 -2
  108. package/dist/chunks/{chunk.CNVLE2H3.js → chunk.VOOMTA4X.js} +2 -2
  109. package/dist/chunks/{chunk.GGWEYQGY.js → chunk.WLHRVKAR.js} +2 -2
  110. package/dist/chunks/{chunk.X4OJX53W.js → chunk.WLYLSH3H.js} +2 -2
  111. package/dist/chunks/{chunk.I6K7CRPD.js → chunk.WMUMEYQJ.js} +3 -3
  112. package/dist/chunks/{chunk.N4LCQIX6.js → chunk.XCILIICJ.js} +12 -6
  113. package/dist/chunks/chunk.XCILIICJ.js.map +7 -0
  114. package/dist/chunks/{chunk.PGGPSI2F.js → chunk.XMSHEZ3R.js} +2 -2
  115. package/dist/chunks/{chunk.THUW5NBM.js → chunk.XP47Y2SU.js} +2 -2
  116. package/dist/chunks/{chunk.4BKHKTOP.js → chunk.XSS62TBI.js} +2 -2
  117. package/dist/chunks/{chunk.M2DLGA7J.js → chunk.XY3WHMD7.js} +2 -2
  118. package/dist/chunks/{chunk.HO4NBJ5H.js → chunk.Y334QFFZ.js} +3 -3
  119. package/dist/chunks/{chunk.HL4IA5WH.js → chunk.Y4EGILWE.js} +2 -2
  120. package/dist/chunks/{chunk.E3X6KDQE.js → chunk.YQLTFWYX.js} +2 -2
  121. package/dist/chunks/{chunk.LJVBQDPO.js → chunk.YTMSHKEA.js} +6 -6
  122. package/dist/chunks/{chunk.7N2AQ6HR.js → chunk.Z2PVOPJK.js} +9 -3
  123. package/dist/chunks/chunk.Z2PVOPJK.js.map +7 -0
  124. package/dist/chunks/{chunk.7T6CRR4L.js → chunk.Z4OFLKEQ.js} +2 -2
  125. package/dist/chunks/{chunk.7HL5WCLT.js → chunk.ZDIDYG6H.js} +2 -2
  126. package/dist/components/accordion/accordion.component.js +5 -2
  127. package/dist/components/accordion/accordion.js +6 -3
  128. package/dist/components/alert/alert.component.js +8 -5
  129. package/dist/components/alert/alert.js +9 -6
  130. package/dist/components/badge/badge.component.js +5 -2
  131. package/dist/components/badge/badge.js +6 -3
  132. package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
  133. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  134. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  135. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  136. package/dist/components/button/button.component.js +8 -5
  137. package/dist/components/button/button.js +9 -6
  138. package/dist/components/button-group/button-group.component.js +2 -2
  139. package/dist/components/button-group/button-group.js +3 -3
  140. package/dist/components/card/card.component.js +2 -2
  141. package/dist/components/card/card.js +3 -3
  142. package/dist/components/checkbox/checkbox.component.js +8 -5
  143. package/dist/components/checkbox/checkbox.js +9 -6
  144. package/dist/components/combobox/combobox.component.js +11 -8
  145. package/dist/components/combobox/combobox.js +12 -9
  146. package/dist/components/details/details.component.js +7 -4
  147. package/dist/components/details/details.js +8 -5
  148. package/dist/components/dialog/dialog.component.js +9 -6
  149. package/dist/components/dialog/dialog.js +10 -7
  150. package/dist/components/divider/divider.component.js +2 -2
  151. package/dist/components/divider/divider.js +3 -3
  152. package/dist/components/drawer/drawer.component.js +8 -5
  153. package/dist/components/drawer/drawer.js +9 -6
  154. package/dist/components/dropdown/dropdown.component.js +3 -3
  155. package/dist/components/dropdown/dropdown.js +4 -4
  156. package/dist/components/file/file.component.js +9 -6
  157. package/dist/components/file/file.js +10 -7
  158. package/dist/components/header/header.component.js +5 -5
  159. package/dist/components/header/header.js +6 -6
  160. package/dist/components/icon/icon.component.js +2 -2
  161. package/dist/components/icon/icon.js +3 -3
  162. package/dist/components/icon-button/icon-button.component.js +6 -3
  163. package/dist/components/icon-button/icon-button.js +7 -4
  164. package/dist/components/input/input.component.js +9 -6
  165. package/dist/components/input/input.custom.styles.js +1 -1
  166. package/dist/components/input/input.js +10 -7
  167. package/dist/components/menu/menu.component.js +2 -2
  168. package/dist/components/menu/menu.js +3 -3
  169. package/dist/components/menu-item/menu-item.component.js +6 -6
  170. package/dist/components/menu-item/menu-item.js +7 -7
  171. package/dist/components/menu-label/menu-label.component.js +3 -3
  172. package/dist/components/menu-label/menu-label.js +4 -4
  173. package/dist/components/nav-item/nav-item.component.js +3 -3
  174. package/dist/components/nav-item/nav-item.js +4 -4
  175. package/dist/components/optgroup/optgroup.component.js +3 -3
  176. package/dist/components/optgroup/optgroup.js +4 -4
  177. package/dist/components/option/option.component.js +3 -3
  178. package/dist/components/option/option.js +4 -4
  179. package/dist/components/popup/popup.component.js +2 -2
  180. package/dist/components/popup/popup.js +3 -3
  181. package/dist/components/prio-nav/prio-nav.component.js +9 -9
  182. package/dist/components/prio-nav/prio-nav.js +10 -10
  183. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  184. package/dist/components/progress-bar/progress-bar.js +3 -3
  185. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  186. package/dist/components/progress-ring/progress-ring.js +3 -3
  187. package/dist/components/radio/radio.component.js +6 -3
  188. package/dist/components/radio/radio.js +7 -4
  189. package/dist/components/radio-button/radio-button.component.js +5 -2
  190. package/dist/components/radio-button/radio-button.js +6 -3
  191. package/dist/components/radio-group/radio-group.component.js +6 -3
  192. package/dist/components/radio-group/radio-group.js +7 -4
  193. package/dist/components/range/range.component.js +7 -4
  194. package/dist/components/range/range.js +8 -5
  195. package/dist/components/range-tick/range-tick.component.js +2 -2
  196. package/dist/components/range-tick/range-tick.js +3 -3
  197. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  198. package/dist/components/select/select.component.js +10 -7
  199. package/dist/components/select/select.js +11 -8
  200. package/dist/components/side-nav/side-nav.component.js +10 -7
  201. package/dist/components/side-nav/side-nav.js +11 -8
  202. package/dist/components/spinner/spinner.component.js +2 -2
  203. package/dist/components/spinner/spinner.js +3 -3
  204. package/dist/components/switch/switch.component.js +5 -2
  205. package/dist/components/switch/switch.js +6 -3
  206. package/dist/components/tab/tab.component.js +7 -4
  207. package/dist/components/tab/tab.js +8 -5
  208. package/dist/components/tab-group/tab-group.component.js +8 -5
  209. package/dist/components/tab-group/tab-group.js +9 -6
  210. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  211. package/dist/components/tab-panel/tab-panel.js +3 -3
  212. package/dist/components/tag/tag.component.js +7 -4
  213. package/dist/components/tag/tag.js +8 -5
  214. package/dist/components/textarea/textarea.component.js +5 -2
  215. package/dist/components/textarea/textarea.js +6 -3
  216. package/dist/components/tooltip/tooltip.component.js +3 -3
  217. package/dist/components/tooltip/tooltip.js +4 -4
  218. package/dist/components/validate/utility.js +2 -2
  219. package/dist/components/validate/validate.component.js +10 -7
  220. package/dist/components/validate/validate.js +11 -8
  221. package/dist/custom-elements.json +233 -233
  222. package/dist/events/events.d.ts +1 -0
  223. package/dist/events/syn-default-settings-changed.d.ts +16 -0
  224. package/dist/styles/index.css +1 -1
  225. package/dist/synergy.d.ts +1 -0
  226. package/dist/synergy.js +135 -119
  227. package/dist/utilities/defaultSettings/base.d.ts +87 -0
  228. package/dist/utilities/defaultSettings/base.js +10 -0
  229. package/dist/utilities/defaultSettings/base.js.map +7 -0
  230. package/dist/utilities/defaultSettings/decorator.d.ts +12 -0
  231. package/dist/utilities/defaultSettings/decorator.js +10 -0
  232. package/dist/utilities/defaultSettings/decorator.js.map +7 -0
  233. package/dist/utilities/defaultSettings/functions.d.ts +41 -0
  234. package/dist/utilities/defaultSettings/functions.js +21 -0
  235. package/dist/utilities/defaultSettings/functions.js.map +7 -0
  236. package/dist/utilities/defaultSettings/index.d.ts +3 -0
  237. package/dist/utilities/defaultSettings/index.js +20 -0
  238. package/dist/utilities/defaultSettings/index.js.map +7 -0
  239. package/dist/vscode.html-custom-data.json +49 -49
  240. package/package.json +25 -25
  241. package/LICENSE +0 -9
  242. package/dist/chunks/chunk.45VS7G6N.js.map +0 -7
  243. package/dist/chunks/chunk.4EBKOLKZ.js.map +0 -7
  244. package/dist/chunks/chunk.4SHUJVES.js.map +0 -7
  245. package/dist/chunks/chunk.6KFAPM72.js.map +0 -7
  246. package/dist/chunks/chunk.7N2AQ6HR.js.map +0 -7
  247. package/dist/chunks/chunk.DFUGHKWB.js.map +0 -7
  248. package/dist/chunks/chunk.DU6DOKUS.js.map +0 -7
  249. package/dist/chunks/chunk.FVH4EUEE.js.map +0 -7
  250. package/dist/chunks/chunk.GLG4ABEU.js.map +0 -7
  251. package/dist/chunks/chunk.LYPAFIHE.js.map +0 -7
  252. package/dist/chunks/chunk.N4LCQIX6.js.map +0 -7
  253. package/dist/chunks/chunk.SDS7TB3N.js.map +0 -7
  254. package/dist/chunks/chunk.VKR4ZN4R.js.map +0 -7
  255. package/dist/chunks/chunk.VUSZ5XCI.js.map +0 -7
  256. package/dist/chunks/chunk.WDZPER7K.js.map +0 -7
  257. package/dist/chunks/chunk.XUIOTO7U.js.map +0 -7
  258. package/dist/chunks/chunk.ZJD5LI5N.js.map +0 -7
  259. package/dist/chunks/chunk.ZM743PSM.js.map +0 -7
  260. /package/dist/chunks/{chunk.TRYGLZCA.js.map → chunk.2QFNK7XL.js.map} +0 -0
  261. /package/dist/chunks/{chunk.HG3UJ6TA.js.map → chunk.3HW4J22U.js.map} +0 -0
  262. /package/dist/chunks/{chunk.FRULQ4M2.js.map → chunk.4AKA2QRO.js.map} +0 -0
  263. /package/dist/chunks/{chunk.6ELPWAC5.js.map → chunk.4ZPJSGD5.js.map} +0 -0
  264. /package/dist/chunks/{chunk.I4NXMNXP.js.map → chunk.53THUSDO.js.map} +0 -0
  265. /package/dist/chunks/{chunk.WQADR5LA.js.map → chunk.7467Z6PG.js.map} +0 -0
  266. /package/dist/chunks/{chunk.R4SPHKG6.js.map → chunk.7EYHNKMM.js.map} +0 -0
  267. /package/dist/chunks/{chunk.VIJSD5A4.js.map → chunk.7LASULTQ.js.map} +0 -0
  268. /package/dist/chunks/{chunk.ACZ5UOJQ.js.map → chunk.7NZ7JAEV.js.map} +0 -0
  269. /package/dist/chunks/{chunk.R2KVUFIA.js.map → chunk.7XMTQ7P7.js.map} +0 -0
  270. /package/dist/chunks/{chunk.44VIQGKB.js.map → chunk.A2JLMFJ4.js.map} +0 -0
  271. /package/dist/chunks/{chunk.2OVDL3Y6.js.map → chunk.AQS4YK7Q.js.map} +0 -0
  272. /package/dist/chunks/{chunk.G5CMX6IN.js.map → chunk.AS3TB27D.js.map} +0 -0
  273. /package/dist/chunks/{chunk.OXQEMOQS.js.map → chunk.B2WOBIWW.js.map} +0 -0
  274. /package/dist/chunks/{chunk.JP7TALDT.js.map → chunk.BJTRYICX.js.map} +0 -0
  275. /package/dist/chunks/{chunk.P6V4BX6E.js.map → chunk.BPZOCAHJ.js.map} +0 -0
  276. /package/dist/chunks/{chunk.XSJOHCE2.js.map → chunk.BWESHYBN.js.map} +0 -0
  277. /package/dist/chunks/{chunk.EF4WRUUC.js.map → chunk.DYUCTKM6.js.map} +0 -0
  278. /package/dist/chunks/{chunk.NOCY4662.js.map → chunk.E72GLNXI.js.map} +0 -0
  279. /package/dist/chunks/{chunk.233Z3OOY.js.map → chunk.EBYGA33B.js.map} +0 -0
  280. /package/dist/chunks/{chunk.UHJAGFMF.js.map → chunk.EMGPXY5T.js.map} +0 -0
  281. /package/dist/chunks/{chunk.H3CAF3V4.js.map → chunk.FAREQGAK.js.map} +0 -0
  282. /package/dist/chunks/{chunk.33Q2FW7X.js.map → chunk.FLB37Q2Y.js.map} +0 -0
  283. /package/dist/chunks/{chunk.T554U5RP.js.map → chunk.HCMNEIRN.js.map} +0 -0
  284. /package/dist/chunks/{chunk.XBB2QM7V.js.map → chunk.HNVPPNYZ.js.map} +0 -0
  285. /package/dist/chunks/{chunk.HABSH3A6.js.map → chunk.HPQBH3O2.js.map} +0 -0
  286. /package/dist/chunks/{chunk.C6RJP2S7.js.map → chunk.HZ3S4J3T.js.map} +0 -0
  287. /package/dist/chunks/{chunk.7X3KN2T4.js.map → chunk.IBQDKFYH.js.map} +0 -0
  288. /package/dist/chunks/{chunk.6HDB5KR7.js.map → chunk.IFWSRMUK.js.map} +0 -0
  289. /package/dist/chunks/{chunk.7QJJK6PH.js.map → chunk.J53UXHXV.js.map} +0 -0
  290. /package/dist/chunks/{chunk.MDBUQ4E3.js.map → chunk.JHPSR3AP.js.map} +0 -0
  291. /package/dist/chunks/{chunk.PLBJHKBZ.js.map → chunk.JNAG6IBY.js.map} +0 -0
  292. /package/dist/chunks/{chunk.6HMXZF2N.js.map → chunk.LHNUNBCA.js.map} +0 -0
  293. /package/dist/chunks/{chunk.WD6VJJO7.js.map → chunk.LYMHXGME.js.map} +0 -0
  294. /package/dist/chunks/{chunk.QFFFOALX.js.map → chunk.LYNLLR54.js.map} +0 -0
  295. /package/dist/chunks/{chunk.3YDFOIXK.js.map → chunk.LZ27X5R6.js.map} +0 -0
  296. /package/dist/chunks/{chunk.L4AD5A4C.js.map → chunk.MDG7KZFO.js.map} +0 -0
  297. /package/dist/chunks/{chunk.HMCIVHWX.js.map → chunk.MGET4VXP.js.map} +0 -0
  298. /package/dist/chunks/{chunk.U2LQ5THB.js.map → chunk.N54SVWTA.js.map} +0 -0
  299. /package/dist/chunks/{chunk.T6VDAQ7G.js.map → chunk.NL4FKYIJ.js.map} +0 -0
  300. /package/dist/chunks/{chunk.5COQCPSY.js.map → chunk.NM5EI7ZH.js.map} +0 -0
  301. /package/dist/chunks/{chunk.5FHF6YUU.js.map → chunk.NN73HBIU.js.map} +0 -0
  302. /package/dist/chunks/{chunk.3I2D4ZPV.js.map → chunk.OFA3YJLS.js.map} +0 -0
  303. /package/dist/chunks/{chunk.7W7NJO3L.js.map → chunk.P5XIUYNV.js.map} +0 -0
  304. /package/dist/chunks/{chunk.VMZ262R4.js.map → chunk.PDAOZ7HN.js.map} +0 -0
  305. /package/dist/chunks/{chunk.EO34ZPKP.js.map → chunk.PLSOGFSX.js.map} +0 -0
  306. /package/dist/chunks/{chunk.VKRIF7NX.js.map → chunk.Q33XUREM.js.map} +0 -0
  307. /package/dist/chunks/{chunk.N7WGPTHM.js.map → chunk.QMVBPAZF.js.map} +0 -0
  308. /package/dist/chunks/{chunk.637ZXJXD.js.map → chunk.QWMAKCAT.js.map} +0 -0
  309. /package/dist/chunks/{chunk.SKHIPO4W.js.map → chunk.S7PAQRVY.js.map} +0 -0
  310. /package/dist/chunks/{chunk.4BAYNG44.js.map → chunk.SKA5Y7HA.js.map} +0 -0
  311. /package/dist/chunks/{chunk.ZMRGWQV5.js.map → chunk.SNHVIH7F.js.map} +0 -0
  312. /package/dist/chunks/{chunk.CLRSMKCD.js.map → chunk.ST3V3ZVP.js.map} +0 -0
  313. /package/dist/chunks/{chunk.CYLL2VNN.js.map → chunk.SWUXKALS.js.map} +0 -0
  314. /package/dist/chunks/{chunk.72XXOEIM.js.map → chunk.SYWSXUHZ.js.map} +0 -0
  315. /package/dist/chunks/{chunk.TNZTUW3T.js.map → chunk.TL5RQ2KH.js.map} +0 -0
  316. /package/dist/chunks/{chunk.AVJKQVRU.js.map → chunk.UXHC3W5U.js.map} +0 -0
  317. /package/dist/chunks/{chunk.3D5RCWDS.js.map → chunk.UY5AOQHP.js.map} +0 -0
  318. /package/dist/chunks/{chunk.AEWACDJI.js.map → chunk.UYGCYMDS.js.map} +0 -0
  319. /package/dist/chunks/{chunk.B5VVYG2U.js.map → chunk.VL74BJLP.js.map} +0 -0
  320. /package/dist/chunks/{chunk.RDAG7DOB.js.map → chunk.VLE3Q74Y.js.map} +0 -0
  321. /package/dist/chunks/{chunk.CNVLE2H3.js.map → chunk.VOOMTA4X.js.map} +0 -0
  322. /package/dist/chunks/{chunk.GGWEYQGY.js.map → chunk.WLHRVKAR.js.map} +0 -0
  323. /package/dist/chunks/{chunk.X4OJX53W.js.map → chunk.WLYLSH3H.js.map} +0 -0
  324. /package/dist/chunks/{chunk.I6K7CRPD.js.map → chunk.WMUMEYQJ.js.map} +0 -0
  325. /package/dist/chunks/{chunk.PGGPSI2F.js.map → chunk.XMSHEZ3R.js.map} +0 -0
  326. /package/dist/chunks/{chunk.THUW5NBM.js.map → chunk.XP47Y2SU.js.map} +0 -0
  327. /package/dist/chunks/{chunk.4BKHKTOP.js.map → chunk.XSS62TBI.js.map} +0 -0
  328. /package/dist/chunks/{chunk.M2DLGA7J.js.map → chunk.XY3WHMD7.js.map} +0 -0
  329. /package/dist/chunks/{chunk.HO4NBJ5H.js.map → chunk.Y334QFFZ.js.map} +0 -0
  330. /package/dist/chunks/{chunk.HL4IA5WH.js.map → chunk.Y4EGILWE.js.map} +0 -0
  331. /package/dist/chunks/{chunk.E3X6KDQE.js.map → chunk.YQLTFWYX.js.map} +0 -0
  332. /package/dist/chunks/{chunk.LJVBQDPO.js.map → chunk.YTMSHKEA.js.map} +0 -0
  333. /package/dist/chunks/{chunk.7T6CRR4L.js.map → chunk.Z4OFLKEQ.js.map} +0 -0
  334. /package/dist/chunks/{chunk.7HL5WCLT.js.map → chunk.ZDIDYG6H.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/input/input.component.ts", "../../src/internal/longpress.ts"],
4
- "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { longPress } from '../../internal/longpress.js';\nimport styles from './input.styles.js';\nimport customStyles from './input.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;AChBvC,SAA2B,UAAU,eAAe;AACpD;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AAmBP,IAAM,qBAAN,cAAiC,eAAe;AAAA,EAW9C,YAAY,MAAY;AACtB,UAAM,IAAI;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,6CAAW;AACX,6CAAW;AAGX,UAAI,KAAK,SAAS;AAChB,aAAK,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AAA,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
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/switch/switch.component.ts"],
4
- "sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { 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 './switch.styles.js';\nimport customStyles from './switch.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Switches allow the user to toggle an option on or off.\n * @documentation https://synergy.style/components/switch\n * @status stable\n * @since 2.0\n *\n * @slot - The switch's label.\n * @slot help-text - Text that describes how to use the switch. 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 the control's checked state changes.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The control that houses the switch's thumb.\n * @csspart thumb - The switch's thumb.\n * @csspart label - The switch's label.\n * @csspart form-control-help-text - The help text's wrapper.\n *\n * @cssproperty --width - The width of the switch.\n * @cssproperty --height - The height of the switch.\n * @cssproperty --thumb-size - The size of the thumb.\n */\nexport default class SynSwitch extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n\n private readonly formControlController = new FormControlController(this, {\n value: (control: SynSwitch) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynSwitch) => control.defaultChecked,\n setValue: (control: SynSwitch, checked: boolean) => (control.checked = checked)\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n @property() title = ''; // make reactive to pass through\n\n /** The name of the switch, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the switch, submitted as a name/value pair with form data. */\n @property() value: string;\n\n /** The switch's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the switch. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the switch in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue('checked') defaultChecked = 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 switch a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The switch's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\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 handleInput() {\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 handleClick() {\n this.checked = !this.checked;\n this.emit('syn-change');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.checked = false;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.checked = true;\n this.emit('syn-change');\n this.emit('syn-input');\n }\n }\n\n @watch('checked', { waitUntilFirstUpdate: true })\n handleCheckedChange() {\n this.input.checked = this.checked; // force a sync update\n this.formControlController.updateValidity();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(true);\n }\n\n /** Simulates a click on the switch. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the switch. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the switch. */\n blur() {\n this.input.blur();\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 hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n return html`\n <div\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-help-text': hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n switch: true,\n 'switch--checked': this.checked,\n 'switch--disabled': this.disabled,\n 'switch--focused': this.hasFocus,\n 'switch--small': this.size === 'small',\n 'switch--medium': this.size === 'medium',\n 'switch--large': this.size === 'large'\n })}\n >\n <input\n class=\"switch__input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this.value)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n role=\"switch\"\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @keydown=${this.handleKeyDown}\n />\n\n <span part=\"control\" class=\"switch__control\">\n <span part=\"thumb\" class=\"switch__thumb\"></span>\n </span>\n\n <div part=\"label\" class=\"switch__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-switch': SynSwitch;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAoCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAGE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,OAAO,CAAC,YAAwB,QAAQ,UAAU,QAAQ,SAAS,OAAO;AAAA,MAC1E,cAAc,CAAC,YAAuB,QAAQ;AAAA,MAC9C,UAAU,CAAC,SAAoB,YAAsB,QAAQ,UAAU;AAAA,IACzE,CAAC;AACD,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,WAAW;AAInE,SAAQ,WAAW;AAChB,iBAAQ;AAGR,gBAAO;AAMU,gBAAqC;AAGtB,oBAAW;AAGX,mBAAU;AAG7B,0BAAiB;AAOb,gBAAO;AAGQ,oBAAW;AAGjB,oBAAW;AAAA;AAAA;AAAA,EAGjD,IAAI,WAAW;AACb,WAAO,KAAK,MAAM;AAAA,EACpB;AAAA;AAAA,EAGA,IAAI,oBAAoB;AACtB,WAAO,KAAK,MAAM;AAAA,EACpB;AAAA,EAEA,eAAe;AACb,SAAK,sBAAsB,eAAe;AAAA,EAC5C;AAAA,EAEQ,aAAa;AACnB,SAAK,WAAW;AAChB,SAAK,KAAK,UAAU;AAAA,EACtB;AAAA,EAEQ,cAAc;AACpB,SAAK,KAAK,WAAW;AAAA,EACvB;AAAA,EAEQ,cAAc,OAAc;AAClC,SAA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,UAUc;AAEhB;AAAA,EAAhB,MAAM;AAAA,GAZY,UAYF;AACL;AAAA,EAAX,SAAS;AAAA,GAbS,UAaP;AAGA;AAAA,EAAX,SAAS;AAAA,GAhBS,UAgBP;AAGA;AAAA,EAAX,SAAS;AAAA,GAnBS,UAmBP;AAGiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAtBR,UAsBU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAzBvB,UAyByB;AAGA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA5BvB,UA4ByB;AAGnB;AAAA,EAAxB,aAAa,SAAS;AAAA,GA/BJ,UA+BM;AAOI;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAtCR,UAsCU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAzCvB,UAyCyB;AAGN;AAAA,EAArC,SAAS,EAAE,WAAW,YAAY,CAAC;AAAA,GA5CjB,UA4CmB;AAyDtC;AAAA,EADC,MAAM,WAAW,EAAE,sBAAsB,KAAK,CAAC;AAAA,GApG7B,UAqGnB;AAMA;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA1G9B,UA2GnB;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/file/file.component.ts"],
4
- "sourcesContent": ["import { classMap } from 'lit/directives/class-map.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { watch } from '../../internal/watch.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.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 SynButton from '../button/button.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './file.styles.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { animateTo } from '../../internal/animate.js';\n\n/**\n * @summary File controls allow selecting an arbitrary number of files for uploading.\n * @status stable\n *\n * @dependency syn-button\n * @dependency syn-icon\n *\n * @slot label - The file control's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the file control.\n * Alternatively, you can use the `help-text` attribute.\n * @slot droparea-icon - Optional droparea icon to use instead of the default.\n * Works best with `<syn-icon>`.\n * @slot trigger - Optional content to be used as trigger instead of the default content.\n * Opening the file dialog on click and as well as drag and drop will work for this content.\n * Following attributes will no longer work: *label*, *droparea*, *help-text*, *size*,\n * *hide-value*. Also if using the disabled attribute, the disabled styling will not be\n * applied and must be taken care of yourself.\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-error - Emitted when multiple files are selected via drag and drop, without\n * the `multiple` property being set.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\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-wrapper - The wrapper around the button and text value.\n * @csspart button - The syn-button acting as a file input.\n * @csspart button__base - The syn-button's exported `base` part.\n * @csspart value - The chosen files or placeholder text for the file input.\n * @csspart droparea - The element wrapping the drop zone.\n * @csspart droparea-background - The background of the drop zone.\n * @csspart droparea-icon - The container that wraps the icon for the drop zone.\n * @csspart droparea-value - The text for the drop zone.\n * @csspart trigger - The container that wraps the trigger.\n *\n * @animation file.iconDrop - The animation to use for the file icon\n * when a file is dropped\n * @animation file.text.disappear - The disappear animation to use for the file placeholder text\n * when a file is dropped\n * @animation file.text.appear - The appear animation to use for the file placeholder text\n * when a file is dropped\n */\nexport default class SynFile extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n formControlCustomStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-button': SynButton,\n 'syn-icon': SynIcon,\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-change'],\n // This makes sure the value sent in formdata events is always the files object\n // @see internals/form.ts #handleFormData for more information\n value: (el: SynFile) => el.files,\n });\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n\n private readonly localize = new LocalizeController(this);\n\n @state() private userIsDragging = false;\n\n /**\n * The selected files as a FileList object containing a list of File objects.\n * The FileList behaves like an array, so you can get the number of selected files\n * via its length property.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files\n */\n @property({ type: Object })\n set files(v: FileList | null) {\n if (this.input) {\n this.input.files = v;\n }\n }\n\n get files() {\n return this.input?.files;\n }\n\n /** The name of the file control, submitted as a name/value pair with form data. */\n @property({ type: String }) name = '';\n\n /**\n * The current value of the input, submitted as a name/value pair with form data.\n * Beware that the only valid value when setting a file input is an empty string!\n */\n\n /**\n * The value of the file control contains a string that represents the path of the selected file.\n * If multiple files are selected, the value represents the first file in the list.\n * If no file is selected, the value is an empty string.\n * Beware that the only valid value when setting a file control is an empty string!\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value\n */\n @property({ type: String })\n set value(v: string) {\n if (this.input) {\n this.input.value = v;\n }\n }\n\n get value() {\n return this.input?.value;\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The file control's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The file control's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The file control's help text.\n * If you need to display HTML, use the `help-text` slot instead.\n */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Disables the file control. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** Draw the file control as a drop area */\n @property({ type: Boolean }) droparea = false;\n\n /**\n * Comma separated list of supported file types\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n * @example <syn-file accept=\".jpg,.jpeg,.png,.gif,text/plain,image/*\"></syn-file>\n */\n @property({ type: String }) accept = '';\n\n /**\n * Specifies the types of files that the server accepts.\n * Can be set either to user or environment.\n * Works only when not using a droparea!\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture\n */\n @property({ type: String }) capture: 'user' | 'environment';\n\n /**\n * Indicates whether the user can select more than one file.\n * Has no effect if webkitdirectory is set.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple\n */\n @property({ reflect: true, type: Boolean }) multiple = false;\n\n /**\n * Indicates that the file control should let the user select directories instead of files.\n * When a directory is selected, the directory and its entire hierarchy of contents are included\n * in the set of selected items.\n * Note: This is a non-standard attribute but is supported in the major browsers.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory\n */\n @property({ reflect: true, type: Boolean }) webkitdirectory = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element.\n * This attribute allows you to place the form control outside of a form and associate it\n * with the form that has this `id`. The form must be in the same document\n * or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the input a required field. */\n @property({ reflect: true, type: Boolean }) required = false;\n\n /** Suppress the value from being displayed in the file control */\n @property({ attribute: 'hide-value', type: Boolean }) hideValue = false;\n\n @query('.input__control') input: HTMLInputElement;\n\n @query('.button') button: SynButton;\n\n @query('.droparea') dropareaWrapper: HTMLDivElement;\n\n @query('.droparea__icon') dropareaIcon: HTMLSpanElement;\n\n @query('.input__value') inputChosen: HTMLSpanElement;\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 /**\n * Checks for validity but does not show a validation message.\n * Returns `true` when valid and `false` when invalid.\n */\n checkValidity() {\n return this.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 @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\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 button or droparea. */\n focus(options?: FocusOptions) {\n if (this.droparea) {\n this.dropareaWrapper?.focus(options);\n return;\n }\n\n this.button?.focus(options);\n }\n\n /** Removes focus from the button or droparea. */\n blur() {\n if (this.droparea) {\n this.dropareaWrapper?.blur();\n return;\n }\n\n this.button?.blur();\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleFiles(files: FileList | null) {\n if (!files) {\n this.value = '';\n return;\n }\n this.files = files;\n }\n\n private async handleTransferItems(items: DataTransferItemList | null): Promise<FileList> {\n if (!items) {\n this.value = '';\n return new Promise((_resolve, reject) => { reject(new Error('No proper items found')); });\n }\n\n const entries = Array\n .from(items)\n .map(item => item.webkitGetAsEntry());\n\n const filesPromises = entries.map(entry => this.getFilesFromEntry(entry));\n const filesArray = await Promise.all(filesPromises);\n const files = filesArray.flat();\n\n const dataTransfer = new DataTransfer();\n Array.from(files).forEach(f => dataTransfer.items.add(f));\n return dataTransfer.files;\n }\n\n private async getFilesFromEntry(entry: FileSystemEntry | null): Promise<File[]> {\n if (!entry) {\n return [];\n }\n if (entry.isFile) {\n return new Promise<File[]>((resolve, reject) => {\n (entry as FileSystemFileEntry).file(file => resolve([file]), reject);\n });\n }\n if (entry.isDirectory) {\n return new Promise<File[]>((resolve, reject) => {\n const dirReader = (entry as FileSystemDirectoryEntry).createReader();\n dirReader.readEntries((entries) => {\n Promise.all(entries.map(e => this.getFilesFromEntry(e)))\n .then((files) => { resolve(files.flat()); })\n .catch(reject);\n });\n });\n }\n return [];\n }\n\n private handleClick(e: Event) {\n e.preventDefault();\n this.input.click();\n }\n\n /** Handles the change event of the native input */\n private handleChange(e: Event) {\n e.preventDefault();\n e.stopPropagation();\n\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n private handleDragOver(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n this.userIsDragging = true;\n }\n\n private handleDragLeave(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n this.userIsDragging = false;\n }\n\n // eslint-disable-next-line complexity\n private async handleDrop(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n\n if (!e.dataTransfer) {\n return;\n }\n\n const files = await this.handleTransferItems(e.dataTransfer?.items);\n\n this.userIsDragging = false;\n\n if (!files) {\n return;\n }\n\n // webkitdirectory also allows multiple files\n if (!this.multiple && !this.webkitdirectory && files.length > 1) {\n this.emit('syn-error');\n return;\n }\n\n // Use the transferred file list from the drag drop interface\n const hasTrigger = this.hasSlotController.test('trigger');\n if (!hasTrigger) {\n const disappearAnimation = getAnimation(this.inputChosen, 'file.text.disappear', { dir: this.localize.dir() });\n const appearAnimation = getAnimation(this.inputChosen, 'file.text.appear', { dir: this.localize.dir() });\n\n if (this.droparea) {\n const dropIconAnimation = getAnimation(this.dropareaIcon, 'file.iconDrop', { dir: this.localize.dir() });\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n animateTo(this.dropareaIcon, dropIconAnimation.keyframes, dropIconAnimation.options);\n }\n // eslint-disable-next-line max-len\n await animateTo(this.inputChosen, disappearAnimation.keyframes, disappearAnimation.options);\n this.handleFiles(files);\n await animateTo(this.inputChosen, appearAnimation.keyframes, appearAnimation.options);\n } else {\n this.handleFiles(files);\n }\n\n this.input.dispatchEvent(new Event('change'));\n }\n\n /**\n * Handle the focus of the droparea and emit focus event\n */\n private handleFocus() {\n this.emit('syn-focus');\n }\n\n /**\n * Handle the blur of the droparea and emit blur event\n */\n private handleBlur() {\n this.emit('syn-blur');\n }\n\n private renderValue() {\n let hasFiles = false;\n let fileChosenLabel = this.localize.term('numFilesSelected', 0, this.webkitdirectory);\n\n if (this.files && this.files?.length > 0) {\n hasFiles = true;\n fileChosenLabel = this.files.length === 1\n ? this.files[0].name\n : this.localize.term('numFilesSelected', this.files.length, this.webkitdirectory);\n }\n\n return html`\n <span\n class=${classMap({\n input__value: true,\n 'input__value--hidden': this.hideValue,\n 'input__value--placeholder': !hasFiles,\n })}\n part=\"value\"\n >\n ${fileChosenLabel}\n </span>\n `;\n }\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderDroparea() {\n return html`\n <div\n class=\"droparea\"\n @click=${this.handleClick}\n @keypress=${this.handleClick}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n tabindex=${this.disabled ? -1 : 0}\n part=\"droparea\"\n >\n <div\n class=\"droparea__background\"\n part=\"droparea-background\"\n >\n <span part=\"droparea-icon\" class=\"droparea__icon\">\n <slot name=\"droparea-icon\">\n <syn-icon name=\"upload-file\" library=\"system\" ></syn-icon>\n </slot>\n </span>\n <p\n class=\"droparea__text\"\n part=\"droparea-value\"\n >\n <strong>${this.localize.term(this.webkitdirectory ? 'folderDragDrop' : 'fileDragDrop')}</strong>\n ${this.renderValue()}\n </p>\n </div>\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderButton() {\n let buttonText = this.localize.term('fileButtonText');\n if (this.multiple) {\n buttonText = this.localize.term('fileButtonTextMultiple');\n }\n if (this.webkitdirectory) {\n buttonText = this.localize.term('folderButtonText');\n }\n\n return html`\n <div\n class=\"button__wrapper\"\n part=\"button-wrapper\"\n >\n <syn-button\n class=\"button\"\n @click=${this.handleClick}\n ?disabled=${this.disabled}\n exportparts=\"base:button__base\"\n part=\"button\"\n size=${this.size}\n variant=\"outline\"\n >\n ${buttonText}\n </syn-button>\n ${this.renderValue()}\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n // eslint-disable-next-line complexity\n render() {\n const hasLabel = this.label || !!this.hasSlotController.test('label');\n const hasHelpText = this.helpText ? true : !!this.hasSlotController.test('help-text');\n const hasTrigger = !!this.hasSlotController.test('trigger');\n\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--droparea': this.droparea,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-label': hasLabel,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n 'form-control--user-dragging': this.userIsDragging,\n })}\n @dragenter=${this.handleDragOver}\n @dragleave=${this.handleDragLeave}\n @dragover=${this.handleDragOver}\n @drop=${this.handleDrop}\n part=\"form-control\"\n >\n ${\n hasTrigger\n ? html`\n <slot \n @click=${this.handleClick}\n @keypress=${this.handleClick}\n name=\"trigger\"\n part=\"trigger\"\n ></slot>\n `\n : html`\n <label\n aria-hidden=${hasLabel ? 'false' : 'true'}\n class=\"form-control__label\"\n for=\"input\"\n part=\"form-control-label\"\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div\n class=\"form-control-input\"\n part=\"form-control-input\"\n >\n\n ${this.droparea ? this.renderDroparea() : this.renderButton()}\n </div>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n `\n }\n <input\n accept=${this.accept}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n class=\"input__control\"\n ?disabled=${this.disabled}\n id=\"input\"\n @invalid=${this.handleInvalid}\n ?multiple=${this.multiple}\n name=${ifDefined(this.name)}\n ?required=${this.required}\n type=\"file\"\n tabindex=\"-1\"\n ?webkitdirectory=${this.webkitdirectory}\n >\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n\nsetDefaultAnimation('file.iconDrop', {\n keyframes: [\n { scale: 1 },\n { scale: 0.7 },\n { scale: 1 },\n ],\n options: { duration: 600, easing: 'ease-out' },\n});\n\nsetDefaultAnimation('file.text.disappear', {\n keyframes: [\n { opacity: 1 },\n { opacity: 0, transform: 'translateY(-40%)' },\n ],\n options: { duration: 300, easing: 'cubic-bezier(0.45, 1.45, 0.8, 1)' },\n});\n\nsetDefaultAnimation('file.text.appear', {\n keyframes: [\n { opacity: 0, transform: 'translateY(40%)' },\n { opacity: 1 },\n ],\n options: { duration: 300, easing: 'cubic-bezier(0.45, 1.45, 0.8, 1)' },\n});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,gBAAgB;AACzB,SAAS,UAAU,OAAO,aAAa;AAEvC,SAAS,YAAY;AACrB,SAAS,iBAAiB;AA+D1B,IAAqB,UAArB,cAAqC,eAA6C;AAAA,EAAlF;AAA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