@synergy-design-system/components 2.19.3 → 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.Z463JNSB.js → chunk.24C4XJAI.js} +9 -3
  2. package/dist/chunks/chunk.24C4XJAI.js.map +7 -0
  3. package/dist/chunks/{chunk.ZJF7NESZ.js → chunk.24DN2XDS.js} +13 -7
  4. package/dist/chunks/chunk.24DN2XDS.js.map +7 -0
  5. package/dist/chunks/{chunk.M4CVCPA7.js → chunk.2QFNK7XL.js} +2 -2
  6. package/dist/chunks/{chunk.T2TZJ6RL.js → chunk.3HW4J22U.js} +5 -5
  7. package/dist/chunks/{chunk.O353RCGZ.js → chunk.4AKA2QRO.js} +2 -2
  8. package/dist/chunks/{chunk.2Z4KRXQR.js → chunk.4ZPJSGD5.js} +2 -2
  9. package/dist/chunks/{chunk.KUHEM2HU.js → chunk.53THUSDO.js} +2 -2
  10. package/dist/chunks/{chunk.JZ54BAZN.js → chunk.742PBV5R.js} +13 -7
  11. package/dist/chunks/chunk.742PBV5R.js.map +7 -0
  12. package/dist/chunks/{chunk.JXFOMI34.js → chunk.7467Z6PG.js} +2 -2
  13. package/dist/chunks/{chunk.FDXNWNID.js → chunk.7EYHNKMM.js} +3 -3
  14. package/dist/chunks/{chunk.3CBZSMFD.js → chunk.7LASULTQ.js} +2 -2
  15. package/dist/chunks/{chunk.BJI3TUDD.js → chunk.7NZ7JAEV.js} +2 -2
  16. package/dist/chunks/{chunk.A5SZJGAY.js → chunk.7XMTQ7P7.js} +3 -3
  17. package/dist/chunks/{chunk.WMWANLUG.js → chunk.7Y7O45CM.js} +8 -2
  18. package/dist/chunks/chunk.7Y7O45CM.js.map +7 -0
  19. package/dist/chunks/{chunk.5BPFEOW3.js → chunk.A2JLMFJ4.js} +2 -2
  20. package/dist/chunks/{chunk.WCA3YMN7.js → chunk.AIQ3EJZY.js} +8 -2
  21. package/dist/chunks/chunk.AIQ3EJZY.js.map +7 -0
  22. package/dist/chunks/{chunk.GSWYXK3F.js → chunk.AQS4YK7Q.js} +2 -2
  23. package/dist/chunks/{chunk.CKX7E6DW.js → chunk.AS3TB27D.js} +6 -6
  24. package/dist/chunks/{chunk.E6TS35BF.js → chunk.B2WOBIWW.js} +2 -2
  25. package/dist/chunks/{chunk.RJTTUG4P.js → chunk.BA7XLIED.js} +9 -3
  26. package/dist/chunks/{chunk.RJTTUG4P.js.map → chunk.BA7XLIED.js.map} +2 -2
  27. package/dist/chunks/{chunk.KCEUZKGJ.js → chunk.BJTRYICX.js} +2 -2
  28. package/dist/chunks/{chunk.CHXBQL3V.js → chunk.BO7VIZR3.js} +14 -8
  29. package/dist/chunks/chunk.BO7VIZR3.js.map +7 -0
  30. package/dist/chunks/{chunk.UD2SVXHT.js → chunk.BPZOCAHJ.js} +2 -2
  31. package/dist/chunks/{chunk.CMORZHVE.js → chunk.BWESHYBN.js} +2 -2
  32. package/dist/chunks/{chunk.Y5LNS47Z.js → chunk.DERBT2MN.js} +14 -8
  33. package/dist/chunks/chunk.DERBT2MN.js.map +7 -0
  34. package/dist/chunks/{chunk.R7UQZGOB.js → chunk.DYUCTKM6.js} +2 -2
  35. package/dist/chunks/{chunk.AVEHVAVI.js → chunk.E72GLNXI.js} +2 -2
  36. package/dist/chunks/{chunk.442H67H2.js → chunk.EBYGA33B.js} +2 -2
  37. package/dist/chunks/{chunk.KYW2PJQJ.js → chunk.EMGPXY5T.js} +2 -2
  38. package/dist/chunks/{chunk.TATHCQUC.js → chunk.EMU2E2VE.js} +9 -3
  39. package/dist/chunks/{chunk.TATHCQUC.js.map → chunk.EMU2E2VE.js.map} +2 -2
  40. package/dist/chunks/{chunk.MPJHH2MY.js → chunk.EVECGQOP.js} +10 -4
  41. package/dist/chunks/chunk.EVECGQOP.js.map +7 -0
  42. package/dist/chunks/{chunk.KQKYLYB5.js → chunk.FAREQGAK.js} +2 -2
  43. package/dist/chunks/{chunk.WQTGLVFD.js → chunk.FLB37Q2Y.js} +6 -6
  44. package/dist/chunks/{chunk.7C65TMZT.js → chunk.HCMNEIRN.js} +6 -6
  45. package/dist/chunks/{chunk.XWYGFKWO.js → chunk.HNVPPNYZ.js} +2 -2
  46. package/dist/chunks/{chunk.F7L6D6XY.js → chunk.HPQBH3O2.js} +2 -2
  47. package/dist/chunks/{chunk.DYAGSNTK.js → chunk.HZ3S4J3T.js} +2 -2
  48. package/dist/chunks/{chunk.NM5ZFEE5.js → chunk.IBQDKFYH.js} +7 -7
  49. package/dist/chunks/{chunk.Z4WZ7MIE.js → chunk.IFWSRMUK.js} +2 -2
  50. package/dist/chunks/{chunk.TVERPVR4.js → chunk.J53UXHXV.js} +2 -2
  51. package/dist/chunks/{chunk.S3JJZL3O.js → chunk.JBLFNOCX.js} +16 -10
  52. package/dist/chunks/chunk.JBLFNOCX.js.map +7 -0
  53. package/dist/chunks/{chunk.WSJXYSXY.js → chunk.JHPSR3AP.js} +2 -2
  54. package/dist/chunks/{chunk.SAH3XRAD.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.6WYS7WDW.js → chunk.LHNUNBCA.js} +2 -2
  58. package/dist/chunks/{chunk.YA4ZNSNS.js → chunk.LYMHXGME.js} +2 -2
  59. package/dist/chunks/{chunk.SMRWRBBB.js → chunk.LYNLLR54.js} +9 -9
  60. package/dist/chunks/{chunk.JGZ2DM63.js → chunk.LZ27X5R6.js} +2 -2
  61. package/dist/chunks/{chunk.O3D7AIEY.js → chunk.MDG7KZFO.js} +2 -2
  62. package/dist/chunks/{chunk.AEYAHBYW.js → chunk.MGET4VXP.js} +2 -2
  63. package/dist/chunks/{chunk.UUSZZYBI.js → chunk.MKQXTHWU.js} +2 -2
  64. package/dist/chunks/{chunk.UUSZZYBI.js.map → chunk.MKQXTHWU.js.map} +1 -1
  65. package/dist/chunks/{chunk.CZDXNQOI.js → chunk.N54SVWTA.js} +2 -2
  66. package/dist/chunks/{chunk.4SALHO5R.js → chunk.NL4FKYIJ.js} +2 -2
  67. package/dist/chunks/{chunk.WJWII3OP.js → chunk.NM5EI7ZH.js} +2 -2
  68. package/dist/chunks/{chunk.3CZBIEJQ.js → chunk.NN73HBIU.js} +6 -6
  69. package/dist/chunks/{chunk.DRWE6CQ2.js → chunk.NUCBTPTS.js} +14 -8
  70. package/dist/chunks/chunk.NUCBTPTS.js.map +7 -0
  71. package/dist/chunks/{chunk.O45X5N4K.js → chunk.O7JPMKUW.js} +14 -8
  72. package/dist/chunks/chunk.O7JPMKUW.js.map +7 -0
  73. package/dist/chunks/{chunk.54OV4Y3P.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.ZA44ZRKT.js → chunk.P5XIUYNV.js} +2 -2
  77. package/dist/chunks/{chunk.762BUPQP.js → chunk.PDAOZ7HN.js} +2 -2
  78. package/dist/chunks/{chunk.ODBT7EDN.js → chunk.PLSOGFSX.js} +2 -2
  79. package/dist/chunks/{chunk.RR3NOQXW.js → chunk.Q33XUREM.js} +2 -2
  80. package/dist/chunks/{chunk.EFBKBI5I.js → chunk.QMVBPAZF.js} +2 -2
  81. package/dist/chunks/{chunk.T2IZ4JC5.js → chunk.QWMAKCAT.js} +2 -2
  82. package/dist/chunks/{chunk.OH3XIKJC.js → chunk.R2HFUCJI.js} +24 -18
  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.26PAD6S5.js → chunk.S7PAQRVY.js} +7 -7
  87. package/dist/chunks/{chunk.3GWNIY5V.js → chunk.SKA5Y7HA.js} +3 -3
  88. package/dist/chunks/{chunk.VKKATLHB.js → chunk.SNHVIH7F.js} +2 -2
  89. package/dist/chunks/{chunk.U627OKOV.js → chunk.ST3V3ZVP.js} +2 -2
  90. package/dist/chunks/{chunk.JM2MZ7RR.js → chunk.SWUXKALS.js} +2 -2
  91. package/dist/chunks/{chunk.HTQBFNY7.js → chunk.SXFIFBVM.js} +10 -4
  92. package/dist/chunks/chunk.SXFIFBVM.js.map +7 -0
  93. package/dist/chunks/{chunk.IMPVWVTM.js → chunk.SYWSXUHZ.js} +2 -2
  94. package/dist/chunks/{chunk.IOTPBNBD.js → chunk.T53XYA43.js} +8 -2
  95. package/dist/chunks/chunk.T53XYA43.js.map +7 -0
  96. package/dist/chunks/{chunk.4QCEBUCC.js → chunk.TL5RQ2KH.js} +2 -2
  97. package/dist/chunks/{chunk.E44AHYCS.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.YADYVOVB.js → chunk.UXHC3W5U.js} +6 -6
  102. package/dist/chunks/{chunk.Z6ZZHCIT.js → chunk.UY5AOQHP.js} +2 -2
  103. package/dist/chunks/{chunk.EPPQVZQW.js → chunk.UYGCYMDS.js} +2 -2
  104. package/dist/chunks/{chunk.II2KA3OR.js → chunk.VKRMYKYH.js} +4 -10
  105. package/dist/chunks/chunk.VKRMYKYH.js.map +7 -0
  106. package/dist/chunks/{chunk.XNZSIB7Q.js → chunk.VL74BJLP.js} +2 -2
  107. package/dist/chunks/{chunk.WGTTDIKF.js → chunk.VLE3Q74Y.js} +2 -2
  108. package/dist/chunks/{chunk.3DYXH3I6.js → chunk.VOOMTA4X.js} +2 -2
  109. package/dist/chunks/{chunk.OLTMUBJR.js → chunk.WLHRVKAR.js} +2 -2
  110. package/dist/chunks/{chunk.JZC3FVVX.js → chunk.WLYLSH3H.js} +2 -2
  111. package/dist/chunks/{chunk.TMJ25O52.js → chunk.WMUMEYQJ.js} +6 -6
  112. package/dist/chunks/{chunk.ZX5CHJI2.js → chunk.XCILIICJ.js} +14 -8
  113. package/dist/chunks/chunk.XCILIICJ.js.map +7 -0
  114. package/dist/chunks/{chunk.GOLBL7J7.js → chunk.XMSHEZ3R.js} +2 -2
  115. package/dist/chunks/{chunk.C2IY7RL4.js → chunk.XP47Y2SU.js} +2 -2
  116. package/dist/chunks/{chunk.5OUUMC6G.js → chunk.XSS62TBI.js} +2 -2
  117. package/dist/chunks/{chunk.PHUCYRO7.js → chunk.XY3WHMD7.js} +2 -2
  118. package/dist/chunks/{chunk.CIHRDJFX.js → chunk.Y334QFFZ.js} +6 -6
  119. package/dist/chunks/{chunk.QSA255YJ.js → chunk.Y4EGILWE.js} +2 -2
  120. package/dist/chunks/{chunk.5IR2ODKZ.js → chunk.YQLTFWYX.js} +2 -2
  121. package/dist/chunks/{chunk.OX7ASSRL.js → chunk.YTMSHKEA.js} +9 -9
  122. package/dist/chunks/{chunk.ZXZA6GQW.js → chunk.Z2PVOPJK.js} +9 -3
  123. package/dist/chunks/chunk.Z2PVOPJK.js.map +7 -0
  124. package/dist/chunks/{chunk.FLSPWXQV.js → chunk.Z4OFLKEQ.js} +2 -2
  125. package/dist/chunks/{chunk.SS6UWTDZ.js → chunk.ZDIDYG6H.js} +2 -2
  126. package/dist/components/accordion/accordion.component.js +6 -3
  127. package/dist/components/accordion/accordion.js +7 -4
  128. package/dist/components/alert/alert.component.js +12 -9
  129. package/dist/components/alert/alert.js +13 -10
  130. package/dist/components/badge/badge.component.js +7 -4
  131. package/dist/components/badge/badge.js +8 -5
  132. package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
  133. package/dist/components/breadcrumb/breadcrumb.js +8 -8
  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 +10 -7
  137. package/dist/components/button/button.js +11 -8
  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 +13 -10
  145. package/dist/components/combobox/combobox.js +14 -11
  146. package/dist/components/details/details.component.js +9 -6
  147. package/dist/components/details/details.js +10 -7
  148. package/dist/components/dialog/dialog.component.js +11 -8
  149. package/dist/components/dialog/dialog.js +12 -9
  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 +10 -7
  153. package/dist/components/drawer/drawer.js +11 -8
  154. package/dist/components/dropdown/dropdown.component.js +4 -4
  155. package/dist/components/dropdown/dropdown.js +5 -5
  156. package/dist/components/file/file.component.js +11 -8
  157. package/dist/components/file/file.js +12 -9
  158. package/dist/components/header/header.component.js +7 -7
  159. package/dist/components/header/header.js +8 -8
  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 +11 -8
  165. package/dist/components/input/input.custom.styles.js +1 -1
  166. package/dist/components/input/input.js +12 -9
  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 +8 -8
  170. package/dist/components/menu-item/menu-item.js +9 -9
  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 +5 -5
  178. package/dist/components/option/option.js +6 -6
  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 +11 -11
  182. package/dist/components/prio-nav/prio-nav.js +12 -12
  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 +8 -5
  194. package/dist/components/range/range.js +9 -6
  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 +12 -9
  199. package/dist/components/select/select.js +13 -10
  200. package/dist/components/side-nav/side-nav.component.js +12 -9
  201. package/dist/components/side-nav/side-nav.js +13 -10
  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 +9 -6
  207. package/dist/components/tab/tab.js +10 -7
  208. package/dist/components/tab-group/tab-group.component.js +10 -7
  209. package/dist/components/tab-group/tab-group.js +11 -8
  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 +9 -6
  213. package/dist/components/tag/tag.js +10 -7
  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 +4 -4
  217. package/dist/components/tooltip/tooltip.js +5 -5
  218. package/dist/components/validate/utility.js +2 -2
  219. package/dist/components/validate/validate.component.js +14 -11
  220. package/dist/components/validate/validate.js +15 -12
  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 +142 -126
  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.CHXBQL3V.js.map +0 -7
  243. package/dist/chunks/chunk.DRWE6CQ2.js.map +0 -7
  244. package/dist/chunks/chunk.E44AHYCS.js.map +0 -7
  245. package/dist/chunks/chunk.HTQBFNY7.js.map +0 -7
  246. package/dist/chunks/chunk.II2KA3OR.js.map +0 -7
  247. package/dist/chunks/chunk.IOTPBNBD.js.map +0 -7
  248. package/dist/chunks/chunk.JZ54BAZN.js.map +0 -7
  249. package/dist/chunks/chunk.MPJHH2MY.js.map +0 -7
  250. package/dist/chunks/chunk.O45X5N4K.js.map +0 -7
  251. package/dist/chunks/chunk.OH3XIKJC.js.map +0 -7
  252. package/dist/chunks/chunk.S3JJZL3O.js.map +0 -7
  253. package/dist/chunks/chunk.WCA3YMN7.js.map +0 -7
  254. package/dist/chunks/chunk.WMWANLUG.js.map +0 -7
  255. package/dist/chunks/chunk.Y5LNS47Z.js.map +0 -7
  256. package/dist/chunks/chunk.Z463JNSB.js.map +0 -7
  257. package/dist/chunks/chunk.ZJF7NESZ.js.map +0 -7
  258. package/dist/chunks/chunk.ZX5CHJI2.js.map +0 -7
  259. package/dist/chunks/chunk.ZXZA6GQW.js.map +0 -7
  260. /package/dist/chunks/{chunk.M4CVCPA7.js.map → chunk.2QFNK7XL.js.map} +0 -0
  261. /package/dist/chunks/{chunk.T2TZJ6RL.js.map → chunk.3HW4J22U.js.map} +0 -0
  262. /package/dist/chunks/{chunk.O353RCGZ.js.map → chunk.4AKA2QRO.js.map} +0 -0
  263. /package/dist/chunks/{chunk.2Z4KRXQR.js.map → chunk.4ZPJSGD5.js.map} +0 -0
  264. /package/dist/chunks/{chunk.KUHEM2HU.js.map → chunk.53THUSDO.js.map} +0 -0
  265. /package/dist/chunks/{chunk.JXFOMI34.js.map → chunk.7467Z6PG.js.map} +0 -0
  266. /package/dist/chunks/{chunk.FDXNWNID.js.map → chunk.7EYHNKMM.js.map} +0 -0
  267. /package/dist/chunks/{chunk.3CBZSMFD.js.map → chunk.7LASULTQ.js.map} +0 -0
  268. /package/dist/chunks/{chunk.BJI3TUDD.js.map → chunk.7NZ7JAEV.js.map} +0 -0
  269. /package/dist/chunks/{chunk.A5SZJGAY.js.map → chunk.7XMTQ7P7.js.map} +0 -0
  270. /package/dist/chunks/{chunk.5BPFEOW3.js.map → chunk.A2JLMFJ4.js.map} +0 -0
  271. /package/dist/chunks/{chunk.GSWYXK3F.js.map → chunk.AQS4YK7Q.js.map} +0 -0
  272. /package/dist/chunks/{chunk.CKX7E6DW.js.map → chunk.AS3TB27D.js.map} +0 -0
  273. /package/dist/chunks/{chunk.E6TS35BF.js.map → chunk.B2WOBIWW.js.map} +0 -0
  274. /package/dist/chunks/{chunk.KCEUZKGJ.js.map → chunk.BJTRYICX.js.map} +0 -0
  275. /package/dist/chunks/{chunk.UD2SVXHT.js.map → chunk.BPZOCAHJ.js.map} +0 -0
  276. /package/dist/chunks/{chunk.CMORZHVE.js.map → chunk.BWESHYBN.js.map} +0 -0
  277. /package/dist/chunks/{chunk.R7UQZGOB.js.map → chunk.DYUCTKM6.js.map} +0 -0
  278. /package/dist/chunks/{chunk.AVEHVAVI.js.map → chunk.E72GLNXI.js.map} +0 -0
  279. /package/dist/chunks/{chunk.442H67H2.js.map → chunk.EBYGA33B.js.map} +0 -0
  280. /package/dist/chunks/{chunk.KYW2PJQJ.js.map → chunk.EMGPXY5T.js.map} +0 -0
  281. /package/dist/chunks/{chunk.KQKYLYB5.js.map → chunk.FAREQGAK.js.map} +0 -0
  282. /package/dist/chunks/{chunk.WQTGLVFD.js.map → chunk.FLB37Q2Y.js.map} +0 -0
  283. /package/dist/chunks/{chunk.7C65TMZT.js.map → chunk.HCMNEIRN.js.map} +0 -0
  284. /package/dist/chunks/{chunk.XWYGFKWO.js.map → chunk.HNVPPNYZ.js.map} +0 -0
  285. /package/dist/chunks/{chunk.F7L6D6XY.js.map → chunk.HPQBH3O2.js.map} +0 -0
  286. /package/dist/chunks/{chunk.DYAGSNTK.js.map → chunk.HZ3S4J3T.js.map} +0 -0
  287. /package/dist/chunks/{chunk.NM5ZFEE5.js.map → chunk.IBQDKFYH.js.map} +0 -0
  288. /package/dist/chunks/{chunk.Z4WZ7MIE.js.map → chunk.IFWSRMUK.js.map} +0 -0
  289. /package/dist/chunks/{chunk.TVERPVR4.js.map → chunk.J53UXHXV.js.map} +0 -0
  290. /package/dist/chunks/{chunk.WSJXYSXY.js.map → chunk.JHPSR3AP.js.map} +0 -0
  291. /package/dist/chunks/{chunk.SAH3XRAD.js.map → chunk.JNAG6IBY.js.map} +0 -0
  292. /package/dist/chunks/{chunk.6WYS7WDW.js.map → chunk.LHNUNBCA.js.map} +0 -0
  293. /package/dist/chunks/{chunk.YA4ZNSNS.js.map → chunk.LYMHXGME.js.map} +0 -0
  294. /package/dist/chunks/{chunk.SMRWRBBB.js.map → chunk.LYNLLR54.js.map} +0 -0
  295. /package/dist/chunks/{chunk.JGZ2DM63.js.map → chunk.LZ27X5R6.js.map} +0 -0
  296. /package/dist/chunks/{chunk.O3D7AIEY.js.map → chunk.MDG7KZFO.js.map} +0 -0
  297. /package/dist/chunks/{chunk.AEYAHBYW.js.map → chunk.MGET4VXP.js.map} +0 -0
  298. /package/dist/chunks/{chunk.CZDXNQOI.js.map → chunk.N54SVWTA.js.map} +0 -0
  299. /package/dist/chunks/{chunk.4SALHO5R.js.map → chunk.NL4FKYIJ.js.map} +0 -0
  300. /package/dist/chunks/{chunk.WJWII3OP.js.map → chunk.NM5EI7ZH.js.map} +0 -0
  301. /package/dist/chunks/{chunk.3CZBIEJQ.js.map → chunk.NN73HBIU.js.map} +0 -0
  302. /package/dist/chunks/{chunk.54OV4Y3P.js.map → chunk.OFA3YJLS.js.map} +0 -0
  303. /package/dist/chunks/{chunk.ZA44ZRKT.js.map → chunk.P5XIUYNV.js.map} +0 -0
  304. /package/dist/chunks/{chunk.762BUPQP.js.map → chunk.PDAOZ7HN.js.map} +0 -0
  305. /package/dist/chunks/{chunk.ODBT7EDN.js.map → chunk.PLSOGFSX.js.map} +0 -0
  306. /package/dist/chunks/{chunk.RR3NOQXW.js.map → chunk.Q33XUREM.js.map} +0 -0
  307. /package/dist/chunks/{chunk.EFBKBI5I.js.map → chunk.QMVBPAZF.js.map} +0 -0
  308. /package/dist/chunks/{chunk.T2IZ4JC5.js.map → chunk.QWMAKCAT.js.map} +0 -0
  309. /package/dist/chunks/{chunk.26PAD6S5.js.map → chunk.S7PAQRVY.js.map} +0 -0
  310. /package/dist/chunks/{chunk.3GWNIY5V.js.map → chunk.SKA5Y7HA.js.map} +0 -0
  311. /package/dist/chunks/{chunk.VKKATLHB.js.map → chunk.SNHVIH7F.js.map} +0 -0
  312. /package/dist/chunks/{chunk.U627OKOV.js.map → chunk.ST3V3ZVP.js.map} +0 -0
  313. /package/dist/chunks/{chunk.JM2MZ7RR.js.map → chunk.SWUXKALS.js.map} +0 -0
  314. /package/dist/chunks/{chunk.IMPVWVTM.js.map → chunk.SYWSXUHZ.js.map} +0 -0
  315. /package/dist/chunks/{chunk.4QCEBUCC.js.map → chunk.TL5RQ2KH.js.map} +0 -0
  316. /package/dist/chunks/{chunk.YADYVOVB.js.map → chunk.UXHC3W5U.js.map} +0 -0
  317. /package/dist/chunks/{chunk.Z6ZZHCIT.js.map → chunk.UY5AOQHP.js.map} +0 -0
  318. /package/dist/chunks/{chunk.EPPQVZQW.js.map → chunk.UYGCYMDS.js.map} +0 -0
  319. /package/dist/chunks/{chunk.XNZSIB7Q.js.map → chunk.VL74BJLP.js.map} +0 -0
  320. /package/dist/chunks/{chunk.WGTTDIKF.js.map → chunk.VLE3Q74Y.js.map} +0 -0
  321. /package/dist/chunks/{chunk.3DYXH3I6.js.map → chunk.VOOMTA4X.js.map} +0 -0
  322. /package/dist/chunks/{chunk.OLTMUBJR.js.map → chunk.WLHRVKAR.js.map} +0 -0
  323. /package/dist/chunks/{chunk.JZC3FVVX.js.map → chunk.WLYLSH3H.js.map} +0 -0
  324. /package/dist/chunks/{chunk.TMJ25O52.js.map → chunk.WMUMEYQJ.js.map} +0 -0
  325. /package/dist/chunks/{chunk.GOLBL7J7.js.map → chunk.XMSHEZ3R.js.map} +0 -0
  326. /package/dist/chunks/{chunk.C2IY7RL4.js.map → chunk.XP47Y2SU.js.map} +0 -0
  327. /package/dist/chunks/{chunk.5OUUMC6G.js.map → chunk.XSS62TBI.js.map} +0 -0
  328. /package/dist/chunks/{chunk.PHUCYRO7.js.map → chunk.XY3WHMD7.js.map} +0 -0
  329. /package/dist/chunks/{chunk.CIHRDJFX.js.map → chunk.Y334QFFZ.js.map} +0 -0
  330. /package/dist/chunks/{chunk.QSA255YJ.js.map → chunk.Y4EGILWE.js.map} +0 -0
  331. /package/dist/chunks/{chunk.5IR2ODKZ.js.map → chunk.YQLTFWYX.js.map} +0 -0
  332. /package/dist/chunks/{chunk.OX7ASSRL.js.map → chunk.YTMSHKEA.js.map} +0 -0
  333. /package/dist/chunks/{chunk.FLSPWXQV.js.map → chunk.Z4OFLKEQ.js.map} +0 -0
  334. /package/dist/chunks/{chunk.SS6UWTDZ.js.map → chunk.ZDIDYG6H.js.map} +0 -0
@@ -1,18 +1,21 @@
1
+ import {
2
+ badge_custom_styles_default
3
+ } from "./chunk.J6CGTLVH.js";
4
+ import {
5
+ badge_styles_default
6
+ } from "./chunk.Y5TMYX2L.js";
1
7
  import {
2
8
  LocalizeController
3
9
  } from "./chunk.GIU3H3J3.js";
10
+ import {
11
+ enableDefaultSettings
12
+ } from "./chunk.OLCT57R5.js";
4
13
  import {
5
14
  component_styles_default
6
15
  } from "./chunk.NLYVOJGK.js";
7
16
  import {
8
17
  SynergyElement
9
- } from "./chunk.UUSZZYBI.js";
10
- import {
11
- badge_custom_styles_default
12
- } from "./chunk.J6CGTLVH.js";
13
- import {
14
- badge_styles_default
15
- } from "./chunk.Y5TMYX2L.js";
18
+ } from "./chunk.MKQXTHWU.js";
16
19
  import {
17
20
  __decorateClass
18
21
  } from "./chunk.2GFK6XTO.js";
@@ -56,8 +59,11 @@ SynBadge.styles = [component_styles_default, badge_styles_default, badge_custom_
56
59
  __decorateClass([
57
60
  property({ reflect: true })
58
61
  ], SynBadge.prototype, "variant", 2);
62
+ SynBadge = __decorateClass([
63
+ enableDefaultSettings("SynBadge")
64
+ ], SynBadge);
59
65
 
60
66
  export {
61
67
  SynBadge
62
68
  };
63
- //# sourceMappingURL=chunk.O45X5N4K.js.map
69
+ //# sourceMappingURL=chunk.O7JPMKUW.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/badge/badge.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 { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport styles from './badge.styles.js';\nimport customStyles from './badge.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Badges are used to draw attention and display statuses or counts.\n * @documentation https://synergy.style/components/badge\n * @status stable\n * @since 2.0\n *\n * @slot - The badge's content.\n *\n * @csspart base - The component's base wrapper.\n */\n@enableDefaultSettings('SynBadge')\nexport default class SynBadge extends SynergyElement {\n \n private readonly localize = new LocalizeController(this);\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n /** The badge's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n badge: true,\n 'badge--primary': this.variant === 'primary',\n 'badge--success': this.variant === 'success',\n 'badge--neutral': this.variant === 'neutral',\n 'badge--warning': this.variant === 'warning',\n 'badge--danger': this.variant === 'danger',\n })}\n role=\"status\"\n >\n <slot>\n <span class=\"visually-hidden\">\n ${this.localize.term(\n (this.variant === 'primary' || this.variant === 'neutral')\n ? 'notification'\n : this.variant\n )}\n </span>\n </slot>\n </span>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAoBzB,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAArD;AAAA;AAEE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAI1B,mBAAoE;AAAA;AAAA,EAEjG,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,OAAO;AAAA,MACP,kBAAkB,KAAK,YAAY;AAAA,MACnC,kBAAkB,KAAK,YAAY;AAAA,MACnC,kBAAkB,KAAK,YAAY;AAAA,MACnC,kBAAkB,KAAK,YAAY;AAAA,MACnC,iBAAiB,KAAK,YAAY;AAAA,IACpC,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,cAKI,KAAK,SAAS;AAAA,MACb,KAAK,YAAY,aAAa,KAAK,YAAY,YAC5C,iBACA,KAAK;AAAA,IACT,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKb;AACF;AAlCqB,SAGZ,SAAyB,CAAC,0BAAiB,sBAAQ,2BAAY;AAGzC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GANR,SAMU;AANV,WAArB;AAAA,EADC,sBAAsB,UAAU;AAAA,GACZ;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynHeader
3
- } from "./chunk.YADYVOVB.js";
3
+ } from "./chunk.UXHC3W5U.js";
4
4
 
5
5
  // src/components/header/header.ts
6
6
  var header_default = SynHeader;
@@ -9,4 +9,4 @@ SynHeader.define("syn-header");
9
9
  export {
10
10
  header_default
11
11
  };
12
- //# sourceMappingURL=chunk.54OV4Y3P.js.map
12
+ //# sourceMappingURL=chunk.OFA3YJLS.js.map
@@ -0,0 +1,69 @@
1
+ import {
2
+ addGlobalEventNotification,
3
+ extractDefaultSettingsForElement,
4
+ removeGlobalEventNotification
5
+ } from "./chunk.JSEL4YPW.js";
6
+ import {
7
+ __privateAdd,
8
+ __privateGet,
9
+ __privateSet
10
+ } from "./chunk.2GFK6XTO.js";
11
+
12
+ // src/utilities/defaultSettings/decorator.ts
13
+ function enableDefaultSettings(name) {
14
+ return (Proto) => {
15
+ var _globalSettingsSetupComplete, _initialGlobalSettingEmptyProperties, _a;
16
+ return _a = class extends Proto {
17
+ constructor() {
18
+ super(...arguments);
19
+ __privateAdd(this, _globalSettingsSetupComplete, false);
20
+ __privateAdd(this, _initialGlobalSettingEmptyProperties, /* @__PURE__ */ new Map());
21
+ }
22
+ // eslint-disable-next-line class-methods-use-this
23
+ get __originalDecoratedClassName() {
24
+ return name;
25
+ }
26
+ /**
27
+ * Override the global settings for the element
28
+ * Called from the global settings event
29
+ * @param changedProperties The properties that have changed
30
+ */
31
+ overrideGlobalSettings(changedProperties) {
32
+ changedProperties.forEach((prop) => {
33
+ if (__privateGet(this, _initialGlobalSettingEmptyProperties).has(prop.attribute)) {
34
+ this[prop.attribute] = prop.newValue;
35
+ }
36
+ });
37
+ }
38
+ disconnectedCallback() {
39
+ super.disconnectedCallback();
40
+ removeGlobalEventNotification(this);
41
+ }
42
+ willUpdate(changedProps) {
43
+ super.willUpdate(changedProps);
44
+ if (__privateGet(this, _globalSettingsSetupComplete)) {
45
+ return;
46
+ }
47
+ __privateSet(this, _globalSettingsSetupComplete, true);
48
+ const defaults = extractDefaultSettingsForElement(name);
49
+ const systemDefaults = extractDefaultSettingsForElement(name, "initial");
50
+ Object.entries(defaults).forEach(([key, value]) => {
51
+ const currentProp = this[key];
52
+ const originalDefaultSetting = systemDefaults[key];
53
+ if (currentProp === originalDefaultSetting) {
54
+ __privateGet(this, _initialGlobalSettingEmptyProperties).set(key, currentProp);
55
+ this[key] = value;
56
+ }
57
+ });
58
+ if (__privateGet(this, _initialGlobalSettingEmptyProperties).size > 0) {
59
+ addGlobalEventNotification(this);
60
+ }
61
+ }
62
+ }, _globalSettingsSetupComplete = new WeakMap(), _initialGlobalSettingEmptyProperties = new WeakMap(), _a;
63
+ };
64
+ }
65
+
66
+ export {
67
+ enableDefaultSettings
68
+ };
69
+ //# sourceMappingURL=chunk.OLCT57R5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utilities/defaultSettings/decorator.ts"],
4
+ "sourcesContent": ["/* eslint-disable no-underscore-dangle */\nimport type { PropertyValues } from 'lit';\nimport type SynergyElement from '../../internal/synergy-element.js';\nimport { type ComponentNamesWithDefaultValues } from './base.js';\nimport {\n addGlobalEventNotification,\n extractDefaultSettingsForElement,\n removeGlobalEventNotification,\n} from './functions.js';\nimport type { SynDefaultChangedAttribute } from '../../events/events.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T = object> = new (...args: any[]) => T;\n\n/**\n * Global settings decorator for a synergy component\n * Used in conjunction with the global settings event\n *\n * @param name The components name. This is used to get the default values for the component\n * @returns Decorated class for usage with synergy components\n */\nexport function enableDefaultSettings(name: ComponentNamesWithDefaultValues) {\n return <T extends Constructor<SynergyElement>>(Proto: T): T => class extends Proto {\n #globalSettingsSetupComplete = false;\n\n #initialGlobalSettingEmptyProperties = new Map<string, unknown>();\n\n // eslint-disable-next-line class-methods-use-this\n get __originalDecoratedClassName() {\n return name;\n }\n\n /**\n * Override the global settings for the element\n * Called from the global settings event\n * @param changedProperties The properties that have changed\n */\n overrideGlobalSettings(changedProperties: SynDefaultChangedAttribute[]) {\n // Adjust the attribute if they where not initially set on the element\n changedProperties.forEach((prop) => {\n if (this.#initialGlobalSettingEmptyProperties.has(prop.attribute)) {\n // @ts-expect-error We don\u00B4t know the type of the key,\n // but are pretty sure it exists on the element\n this[prop.attribute as keyof this] = prop.newValue;\n }\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n // Always remove the component from the global notification list\n removeGlobalEventNotification(this);\n }\n\n protected willUpdate(changedProps: PropertyValues): void {\n super.willUpdate(changedProps);\n\n // Skip after the first run\n if (this.#globalSettingsSetupComplete) {\n return;\n }\n\n this.#globalSettingsSetupComplete = true;\n\n // Get the default settings\n const defaults = extractDefaultSettingsForElement(name);\n\n const systemDefaults = extractDefaultSettingsForElement(name, 'initial');\n\n // Set the default values for all items that have no current value set\n Object\n .entries(defaults)\n .forEach(([key, value]) => {\n const currentProp = this[key as keyof this];\n const originalDefaultSetting = systemDefaults[key];\n\n // On initial load, the attribute is not set, but the property is.\n // We have to check if the current PROPERTY is the same as the default value\n // If it is, we set the attribute to the default value and add a notification item\n // to the initialGlobalSettingEmptyProperties map\n if (currentProp === originalDefaultSetting) {\n this.#initialGlobalSettingEmptyProperties.set(key, currentProp);\n // @ts-expect-error We don\u00B4t know the type of the key,\n // but are pretty sure it exists on the element\n this[key] = value;\n }\n });\n\n // If there where any values, add the item to the global notification list\n if (this.#initialGlobalSettingEmptyProperties.size > 0) {\n addGlobalEventNotification(this);\n }\n }\n };\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAqBO,SAAS,sBAAsB,MAAuC;AAC3E,SAAO,CAAwC,UAAa;AAtB9D;AAsBiE,8BAAc,MAAM;AAAA,MAApB;AAAA;AAC7D,yDAA+B;AAE/B,iEAAuC,oBAAI,IAAqB;AAAA;AAAA;AAAA,MAGhE,IAAI,+BAA+B;AACjC,eAAO;AAAA,MACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOA,uBAAuB,mBAAiD;AAEtE,0BAAkB,QAAQ,CAAC,SAAS;AAClC,cAAI,mBAAK,sCAAqC,IAAI,KAAK,SAAS,GAAG;AAGjE,iBAAK,KAAK,SAAuB,IAAI,KAAK;AAAA,UAC5C;AAAA,QACF,CAAC;AAAA,MACH;AAAA,MAEA,uBAAuB;AACrB,cAAM,qBAAqB;AAE3B,sCAA8B,IAAI;AAAA,MACpC;AAAA,MAEU,WAAW,cAAoC;AACvD,cAAM,WAAW,YAAY;AAG7B,YAAI,mBAAK,+BAA8B;AACrC;AAAA,QACF;AAEA,2BAAK,8BAA+B;AAGpC,cAAM,WAAW,iCAAiC,IAAI;AAEtD,cAAM,iBAAiB,iCAAiC,MAAM,SAAS;AAGvE,eACG,QAAQ,QAAQ,EAChB,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACzB,gBAAM,cAAc,KAAK,GAAiB;AAC1C,gBAAM,yBAAyB,eAAe,GAAG;AAMjD,cAAI,gBAAgB,wBAAwB;AAC1C,+BAAK,sCAAqC,IAAI,KAAK,WAAW;AAG9D,iBAAK,GAAG,IAAI;AAAA,UACd;AAAA,QACF,CAAC;AAGH,YAAI,mBAAK,sCAAqC,OAAO,GAAG;AACtD,qCAA2B,IAAI;AAAA,QACjC;AAAA,MACF;AAAA,IACF,GAtEE,8CAEA,sDAH6D;AAAA;AAwEjE;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynButtonGroup
3
- } from "./chunk.KQKYLYB5.js";
3
+ } from "./chunk.FAREQGAK.js";
4
4
 
5
5
  // src/components/button-group/button-group.ts
6
6
  var button_group_default = SynButtonGroup;
@@ -9,4 +9,4 @@ SynButtonGroup.define("syn-button-group");
9
9
  export {
10
10
  button_group_default
11
11
  };
12
- //# sourceMappingURL=chunk.ZA44ZRKT.js.map
12
+ //# sourceMappingURL=chunk.P5XIUYNV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTabGroup
3
- } from "./chunk.NM5ZFEE5.js";
3
+ } from "./chunk.IBQDKFYH.js";
4
4
 
5
5
  // src/components/tab-group/tab-group.ts
6
6
  var tab_group_default = SynTabGroup;
@@ -9,4 +9,4 @@ SynTabGroup.define("syn-tab-group");
9
9
  export {
10
10
  tab_group_default
11
11
  };
12
- //# sourceMappingURL=chunk.762BUPQP.js.map
12
+ //# sourceMappingURL=chunk.PDAOZ7HN.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.NLYVOJGK.js";
10
10
  import {
11
11
  SynergyElement
12
- } from "./chunk.UUSZZYBI.js";
12
+ } from "./chunk.MKQXTHWU.js";
13
13
  import {
14
14
  __decorateClass,
15
15
  __spreadProps,
@@ -415,4 +415,4 @@ __decorateClass([
415
415
  export {
416
416
  SynPopup
417
417
  };
418
- //# sourceMappingURL=chunk.ODBT7EDN.js.map
418
+ //# sourceMappingURL=chunk.PLSOGFSX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynFile
3
- } from "./chunk.ZJF7NESZ.js";
3
+ } from "./chunk.24DN2XDS.js";
4
4
 
5
5
  // src/components/file/file.ts
6
6
  var file_default = SynFile;
@@ -9,4 +9,4 @@ SynFile.define("syn-file");
9
9
  export {
10
10
  file_default
11
11
  };
12
- //# sourceMappingURL=chunk.RR3NOQXW.js.map
12
+ //# sourceMappingURL=chunk.Q33XUREM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDrawer
3
- } from "./chunk.CKX7E6DW.js";
3
+ } from "./chunk.AS3TB27D.js";
4
4
 
5
5
  // src/components/drawer/drawer.ts
6
6
  var drawer_default = SynDrawer;
@@ -9,4 +9,4 @@ SynDrawer.define("syn-drawer");
9
9
  export {
10
10
  drawer_default
11
11
  };
12
- //# sourceMappingURL=chunk.EFBKBI5I.js.map
12
+ //# sourceMappingURL=chunk.QMVBPAZF.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.NLYVOJGK.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.UUSZZYBI.js";
18
+ } from "./chunk.MKQXTHWU.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.2GFK6XTO.js";
@@ -120,4 +120,4 @@ __decorateClass([
120
120
  export {
121
121
  SynBreadcrumbItem
122
122
  };
123
- //# sourceMappingURL=chunk.T2IZ4JC5.js.map
123
+ //# sourceMappingURL=chunk.QWMAKCAT.js.map
@@ -1,19 +1,9 @@
1
1
  import {
2
2
  SynOption
3
- } from "./chunk.3CZBIEJQ.js";
3
+ } from "./chunk.NN73HBIU.js";
4
4
  import {
5
5
  SynPopup
6
- } from "./chunk.ODBT7EDN.js";
7
- import {
8
- defaultOptionRenderer
9
- } from "./chunk.HVVPX2VA.js";
10
- import {
11
- createOptionFromDifferentTypes,
12
- filterOnlyOptgroups,
13
- getAllOptions,
14
- getAssignedElementsForSlot,
15
- normalizeString
16
- } from "./chunk.S6AC4UW6.js";
6
+ } from "./chunk.PLSOGFSX.js";
17
7
  import {
18
8
  scrollIntoView
19
9
  } from "./chunk.5732DMBC.js";
@@ -30,6 +20,16 @@ import {
30
20
  import {
31
21
  combobox_styles_default
32
22
  } from "./chunk.V4SIKF4X.js";
23
+ import {
24
+ defaultOptionRenderer
25
+ } from "./chunk.HVVPX2VA.js";
26
+ import {
27
+ createOptionFromDifferentTypes,
28
+ filterOnlyOptgroups,
29
+ getAllOptions,
30
+ getAssignedElementsForSlot,
31
+ normalizeString
32
+ } from "./chunk.S6AC4UW6.js";
33
33
  import {
34
34
  FormControlController
35
35
  } from "./chunk.AMIQC3O7.js";
@@ -44,24 +44,27 @@ import {
44
44
  getAnimation,
45
45
  setDefaultAnimation
46
46
  } from "./chunk.HQ6QUSK7.js";
47
+ import {
48
+ SynIcon
49
+ } from "./chunk.SWUXKALS.js";
47
50
  import {
48
51
  HasSlotController
49
52
  } from "./chunk.WVVQK5TE.js";
50
53
  import {
51
- SynIcon
52
- } from "./chunk.JM2MZ7RR.js";
54
+ LocalizeController
55
+ } from "./chunk.GIU3H3J3.js";
53
56
  import {
54
57
  watch
55
58
  } from "./chunk.74IOULXM.js";
56
59
  import {
57
- LocalizeController
58
- } from "./chunk.GIU3H3J3.js";
60
+ enableDefaultSettings
61
+ } from "./chunk.OLCT57R5.js";
59
62
  import {
60
63
  component_styles_default
61
64
  } from "./chunk.NLYVOJGK.js";
62
65
  import {
63
66
  SynergyElement
64
- } from "./chunk.UUSZZYBI.js";
67
+ } from "./chunk.MKQXTHWU.js";
65
68
  import {
66
69
  __decorateClass
67
70
  } from "./chunk.2GFK6XTO.js";
@@ -811,6 +814,9 @@ __decorateClass([
811
814
  __decorateClass([
812
815
  watch("open", { waitUntilFirstUpdate: true })
813
816
  ], SynCombobox.prototype, "handleOpenChange", 1);
817
+ SynCombobox = __decorateClass([
818
+ enableDefaultSettings("SynCombobox")
819
+ ], SynCombobox);
814
820
  setDefaultAnimation("combobox.show", {
815
821
  keyframes: [
816
822
  { opacity: 0, scale: 0.9 },
@@ -829,4 +835,4 @@ setDefaultAnimation("combobox.hide", {
829
835
  export {
830
836
  SynCombobox
831
837
  };
832
- //# sourceMappingURL=chunk.OH3XIKJC.js.map
838
+ //# sourceMappingURL=chunk.R2HFUCJI.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/combobox/combobox.component.ts"],
4
+ "sourcesContent": ["import type { CSSResultGroup } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynPopup from '../popup/popup.component.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport SynOption from '../option/option.component.js';\nimport type SynOptGroup from '../optgroup/optgroup.js';\nimport styles from './combobox.styles.js';\nimport customStyles from './combobox.custom.styles.js';\nimport {\n createOptionFromDifferentTypes,\n filterOnlyOptgroups, getAllOptions, getAssignedElementsForSlot, normalizeString,\n} from './utils.js';\nimport { scrollIntoView } from '../../internal/scroll.js';\nimport { type OptionRenderer, defaultOptionRenderer } from './option-renderer.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Comboboxes allow you to choose items from a menu of predefined options.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-combobox--docs\n * @status stable\n *\n * @dependency syn-icon\n * @dependency syn-popup\n *\n * @slot - The listbox options. Must be `<syn-option>` elements.\n * You can use `<syn-optgroup>`'s to group items visually.\n * @slot label - The combobox's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.\n * @slot suffix - Used to append a presentational icon or similar element to the combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed.\n * Rotates on open and close.\n * @slot help-text - Text that describes how to use the combobox.\n * Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the combobox's menu opens.\n * @event syn-after-show - Emitted after the combobox's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the combobox's menu closes.\n * @event syn-after-hide - Emitted after the combobox's menu closes and all animations are complete.\n * @event syn-invalid - Emitted when the form control has been checked for validity\n * and its constraints aren't satisfied.\n * @event syn-error - Emitted when the combobox menu fails to open.\n *\n * @csspart form-control - The form control that wraps the label, combobox, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The combobox's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart suffix - The container that wraps the suffix slot.\n * @csspart display-input - The element that displays the selected option's label,\n * an `<input>` element.\n * @csspart listbox - The listbox container where the options are slotted\n * and the filtered options list exists.\n * @csspart filtered-listbox - The container that wraps the filtered options.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n *\n * @animation combobox.show - The animation to use when showing the combobox.\n * @animation combobox.hide - The animation to use when hiding the combobox.\n */\n@enableDefaultSettings('SynCombobox')\nexport default class SynCombobox extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n styles,\n formControlCustomStyles,\n customStyles,\n ];\n\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-popup': SynPopup,\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input'],\n });\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n\n private readonly localize = new LocalizeController(this);\n\n private closeWatcher: CloseWatcher | null;\n\n /** The last value of a syn-option, that was selected by click or via keyboard navigation */\n private lastOptionValue = '';\n\n private isOptionRendererTriggered = false;\n\n @query('.combobox') popup: SynPopup;\n\n @query('.combobox__inputs') combobox: HTMLSlotElement;\n\n @query('.combobox__display-input') displayInput: HTMLInputElement;\n\n @query('.combobox__value-input') valueInput: HTMLInputElement;\n\n @query('.combobox__listbox') listbox: HTMLSlotElement;\n\n @query('slot:not([name])') private defaultSlot: HTMLSlotElement;\n\n @state() private hasFocus = false;\n\n @state() displayLabel = '';\n\n @state() selectedOption: SynOption | undefined;\n\n @state() numberFilteredOptions = 0;\n\n @state() cachedOptions: SynOption [] = [];\n\n /** The name of the combobox, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /**\n * The current value of the combobox, submitted as a name/value pair with form data.\n */\n @property() value = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The combobox's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Placeholder text to show as a hint when the combobox is empty. */\n @property() placeholder = '';\n\n /** Disables the combobox control. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** Adds a clear button when the combobox is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /**\n * Indicates whether or not the combobox is open.\n * You can toggle this attribute to show and hide the listbox, or you can use the `show()`\n * and `hide()` methods and this attribute will reflect the combobox's open state.\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Enable this option to prevent the listbox from being clipped,\n * when the component is placed inside a container with `overflow: auto|scroll`.\n * Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n */\n @property({ type: Boolean }) hoist = false;\n\n /** The combobox's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The preferred placement of the combobox's menu.\n * Note that the actual placement may vary as needed to keep the listbox inside of the viewport.\n */\n @property({ reflect: true }) placement: 'top' | 'bottom' = 'bottom';\n\n /** The combobox's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element.\n * This attribute allows you to place the form control outside of a form and associate it\n * with the form that has this `id`.\n * The form must be in the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** The combobox's required attribute. */\n @property({ reflect: true, type: Boolean }) required = false;\n\n /**\n * A function that customizes the rendered option. The first argument is the option, the second\n * is the query string, which is typed into the combobox.\n * The function should return either a Lit TemplateResult or a string containing trusted HTML\n * to render in the shown list of filtered options.\n * If the query string should be highlighted use the `highlightOptionRenderer` function.\n */\n @property() getOption: OptionRenderer = defaultOptionRenderer;\n\n /**\n * A function used to filter options in the combobox component.\n * The default filter method is a case- and diacritic-insensitive string comparison.\n *\n * @param option - The option to be filtered.\n * @param queryString - The query string used for filtering.\n * @returns A boolean indicating whether the option should be included in the filtered results.\n */\n // eslint-disable-next-line class-methods-use-this\n @property() filter: (option: SynOption, queryString: string) => boolean = (option, queryStr) => {\n let content = option?.textContent || '';\n if (option instanceof SynOption) {\n content = option.getTextLabel();\n }\n const normalizedOption = normalizeString(content);\n const normalizedQuery = normalizeString(queryStr);\n return normalizedOption.includes(normalizedQuery);\n };\n\n /** Gets the validity state object */\n get validity() {\n return this.valueInput.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.valueInput.validationMessage;\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // Because this is a form control, it shouldn't be opened initially\n this.open = false;\n }\n\n firstUpdated() {\n // initially set the displayLabel if the value was set via property initially\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.displayLabel = this.value;\n });\n this.formControlController.updateValidity();\n }\n\n private addOpenListeners() {\n //\n // Listen on the root node instead of the document in case the elements are inside a shadow root\n //\n // https://github.com/synergy-design-system/synergy/issues/1763\n //\n document.addEventListener('focusin', this.handleDocumentFocusIn);\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n\n // If the component is rendered in a shadow root,\n // we need to attach the focusin listener there too\n if (this.getRootNode() !== document) {\n this.getRootNode().addEventListener('focusin', this.handleDocumentFocusIn);\n }\n\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n if (this.open) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n };\n }\n }\n\n private removeOpenListeners() {\n document.removeEventListener('focusin', this.handleDocumentFocusIn);\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n\n if (this.getRootNode() !== document) {\n this.getRootNode().removeEventListener('focusin', this.handleDocumentFocusIn);\n }\n\n this.closeWatcher?.destroy();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleDocumentFocusIn = (event: KeyboardEvent) => {\n // Close when focusing out of the combobox\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide();\n }\n };\n\n /* eslint-disable @typescript-eslint/no-floating-promises */\n // eslint-disable-next-line complexity\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n const target = event.target as HTMLElement;\n const isClearButton = target.closest('.combobox__clear') !== null;\n\n if (isClearButton) {\n return;\n }\n\n // Close when pressing escape and open / clear input if not open\n if (event.key === 'Escape') {\n if (this.open && !this.closeWatcher) {\n event.preventDefault();\n event.stopPropagation();\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n } else if (!this.open) {\n this.clearCombobox();\n }\n }\n\n // Handle enter.\n if (event.key === 'Enter') {\n const currentOption = this.getCurrentOption();\n\n // Pressing enter when focused on an input should submit the form like a native input, but\n // we wait a tick before submitting to allow users to cancel the keydown event if they need to\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n if (!this.open && !hasModifier) {\n setTimeout(() => {\n if (!event.defaultPrevented) {\n this.formControlController.submit();\n }\n });\n return;\n }\n\n if (!this.open || (currentOption && currentOption.disabled)) {\n return;\n }\n\n // Update the value based on the current selection and close it\n if (currentOption) {\n const oldValue = this.lastOptionValue;\n this.setSelectedOption(currentOption);\n\n if (this.value !== oldValue) {\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n return;\n }\n\n // Navigate options\n if (['ArrowUp', 'ArrowDown'].includes(event.key)) {\n // Prevent scrolling\n event.preventDefault();\n event.stopPropagation();\n // Open it\n if (!this.open) {\n this.show();\n }\n\n this.selectNextOption(event.key === 'ArrowDown');\n }\n\n // Move cursor\n if (['Home', 'End'].includes(event.key)) {\n // Prevent scrolling\n event.preventDefault();\n event.stopPropagation();\n if (event.key === 'Home') {\n this.displayInput.setSelectionRange(0, 0);\n } else if (event.key === 'End') {\n this.displayInput.setSelectionRange(\n this.displayInput.value.length,\n this.displayInput.value.length,\n );\n }\n }\n };\n /* eslint-enable @typescript-eslint/no-floating-promises */\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the combobox\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide();\n }\n };\n\n private handleLabelClick() {\n this.displayInput.focus();\n }\n\n private handleComboboxMouseDown(event: MouseEvent) {\n // Ignore disabled controls\n if (this.disabled) {\n return;\n }\n\n const toggleListboxOpen = () => (this.open ? this.hide() : this.show());\n event.preventDefault();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n toggleListboxOpen().then(() => {\n setTimeout(() => this.displayInput.focus({ preventScroll: true }));\n });\n }\n\n private handleComboboxKeyDown(event: KeyboardEvent) {\n if (event.key === 'Tab') {\n return;\n }\n\n this.handleDocumentKeyDown(event);\n }\n\n private handleClearClick(event: MouseEvent) {\n event.stopPropagation();\n this.clearCombobox();\n }\n\n private clearCombobox() {\n if (this.value !== '') {\n this.value = '';\n this.displayInput.value = '';\n this.lastOptionValue = '';\n this.setSelectedOption(undefined);\n this.displayInput.focus({ preventScroll: true });\n\n // Emit after update\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n // eslint-disable-next-line class-methods-use-this\n private preventLoosingFocus(event: MouseEvent) {\n // Don't lose focus of the input or propagate events\n event.stopPropagation();\n event.preventDefault();\n }\n\n /* eslint-disable @typescript-eslint/no-floating-promises */\n private handleOptionClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const option = target.closest('syn-option');\n const oldValue = this.lastOptionValue;\n if (option && !option.disabled) {\n this.setSelectedOption(option);\n\n // Set focus after updating so the value is announced by screen readers\n this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));\n\n if (this.value !== oldValue) {\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n }\n /* eslint-enable @typescript-eslint/no-floating-promises */\n\n /**\n * Selects the following or previous option.\n *\n * @param isNext - A boolean indicating whether to select the following option (true)\n * or the previous option (false).\n */\n private selectNextOption(isNext: boolean) {\n const filteredOptions = this.getAllFilteredOptions();\n\n if (filteredOptions.length === 0) {\n return;\n }\n\n const currentOption = this.getCurrentOption();\n const currentIndex = filteredOptions.indexOf(currentOption!);\n let newIndex = Math.max(0, currentIndex);\n\n if (isNext) {\n const nextIndex = currentIndex + 1;\n newIndex = (nextIndex > filteredOptions.length - 1) ? 0 : nextIndex;\n } else {\n const previousIndex = currentIndex - 1;\n newIndex = previousIndex < 0 ? filteredOptions.length - 1 : previousIndex;\n }\n this.setCurrentOption(filteredOptions[newIndex]);\n scrollIntoView(this.getCurrentOption()!, this.listbox, 'vertical', 'auto');\n }\n\n private getAllFilteredOptions() {\n return this.getSlottedOptions().filter(option => !option.hidden);\n }\n\n private getCurrentOption() {\n return this.getAllFilteredOptions().find(option => option.current);\n }\n\n // Sets the current option, which is the option the user is currently interacting with\n // (e.g. via keyboard). Only one option may be \"current\" at a time.\n private setCurrentOption(option: SynOption | null) {\n const allOptions = this.getAllFilteredOptions();\n\n // Clear selection\n this.displayInput.removeAttribute('aria-activedescendant');\n\n allOptions.forEach(el => {\n // eslint-disable-next-line no-param-reassign\n el.current = false;\n el.setAttribute('aria-selected', 'false');\n });\n\n // Select the target option\n if (option) {\n // eslint-disable-next-line no-param-reassign\n option.current = true;\n option.setAttribute('aria-selected', 'true');\n this.displayInput.setAttribute('aria-activedescendant', option.id);\n }\n }\n\n /**\n * Updates the selected options cache, the current value, and the display value\n */\n private setSelectedOption(option: SynOption | undefined) {\n this.selectedOption = option;\n\n // Check if the selected option has a value,\n // if not take the text content of the option otherwise the input text\n const optionValue = this.selectedOption?.value || this.selectedOption?.getTextLabel();\n\n if (option) {\n this.lastOptionValue = optionValue || '';\n }\n\n // Update the value\n this.value = optionValue ?? this.displayInput.value;\n\n // Update validity and display label\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.displayLabel = this.selectedOption?.getTextLabel() ?? this.displayInput.value;\n this.formControlController.updateValidity();\n });\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n @watch(['filter', 'getOption'], { waitUntilFirstUpdate: true })\n handlePropertiesChange() {\n this.createComboboxOptionsFromQuery(this.value);\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n\n // Close the listbox when the control is disabled\n if (this.disabled) {\n this.open = false;\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.handleOpenChange();\n }\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n handleValueChange() {\n // set the display label here in case of the value was set via property only\n this.displayLabel = this.value;\n this.createComboboxOptionsFromQuery(this.value);\n this.setCurrentOption(null);\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open && !this.disabled) {\n if (this.numberFilteredOptions === 0) {\n // Don't open the listbox if there are no options\n this.open = false;\n this.emit('syn-error');\n return;\n }\n\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.listbox.hidden = false;\n this.popup.active = true;\n\n const { keyframes, options } = getAnimation(this, 'combobox.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n this.emit('syn-after-show');\n return;\n }\n\n this.setCurrentOption(null);\n this.displayInput.removeAttribute('aria-activedescendant');\n // Hide\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n await stopAnimations(this);\n const { keyframes, options } = getAnimation(this, 'combobox.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.listbox.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n\n /**\n * Shows the listbox. If it is not possible to open the listbox, because there are no\n * appropriate filtered options, a syn-error is emitted and the listbox stays closed.\n */\n async show() {\n if (this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = true;\n return Promise.race([waitForEvent(this, 'syn-after-show'), waitForEvent(this, 'syn-error')]);\n }\n\n /** Hides the listbox. */\n async hide() {\n if (!this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Checks for validity but does not show a validation message.\n * Returns `true` when valid and `false` when invalid.\n */\n checkValidity() {\n return this.valueInput.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.valueInput.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.valueInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the control. */\n focus(options?: FocusOptions) {\n this.displayInput.focus(options);\n }\n\n /** Removes focus from the control. */\n blur() {\n this.displayInput.blur();\n }\n\n /* eslint-disable no-param-reassign, @typescript-eslint/no-floating-promises */\n private createComboboxOptionsFromQuery(queryString: string) {\n this.numberFilteredOptions = 0;\n this.isOptionRendererTriggered = true;\n\n // This is needed for angular. For some reason the handleDefaultSlotChange is not triggered\n // initially and therefore the cachedOptions are not set.\n if (this.cachedOptions.length === 0) {\n this.cacheSlottedOptionsAndOptgroups();\n }\n\n // Update the syn-option's based on the query string and getOption\n this.getSlottedOptions()\n .forEach(option => {\n // Use the original cached option, to do changes on it\n const cachedOption = this.cachedOptions.find(o => o.id === option.id) || option;\n const optionResult = this.getOption(cachedOption, queryString);\n let updatedOption = createOptionFromDifferentTypes(optionResult);\n\n // The type of the getOption function is incorrect, therefore use the original option\n if (!updatedOption) {\n updatedOption = cachedOption;\n }\n\n const hideOption = !(this.filter(updatedOption, queryString) || queryString === '');\n updatedOption.hidden = hideOption;\n option.replaceWith(updatedOption);\n\n if (!hideOption) {\n this.numberFilteredOptions += 1;\n }\n });\n\n // Update the syn-optgroup's if available\n const visibleOptgroups = this.getSlottedOptGroups().filter(optgroup => {\n const options = getAllOptions(Array.from(optgroup.children) as HTMLElement[]).flat();\n const isVisible = options.some(option => !option.hidden);\n optgroup.hidden = !isVisible;\n return isVisible;\n });\n\n // Hide the divider of the first visible optgroup, as it can unfortunately not be hidden via css\n visibleOptgroups[0]?.style.setProperty('--display-divider', 'none');\n\n // This is needed so the component does not endlessly rerender,\n // because the slot change event is endlessly retriggered otherwise.\n setTimeout(() => {\n this.isOptionRendererTriggered = false;\n }, 0);\n }\n /* eslint-enable no-param-reassign, @typescript-eslint/no-floating-promises */\n\n private async handleInput() {\n const inputValue = this.displayInput.value;\n this.value = inputValue;\n await this.updateComplete;\n this.open = this.numberFilteredOptions > 0;\n this.setSelectedOption(undefined);\n\n this.formControlController.updateValidity();\n this.emit('syn-input');\n }\n\n private handleChange() {\n // Only update the value and emit the event, if the change event occurred by\n // the user typing something in and removing focus of the combobox\n if (!this.selectedOption) {\n this.value = this.displayInput.value;\n // Update validity\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.formControlController.updateValidity();\n });\n this.emit('syn-change');\n }\n }\n\n private getSlottedOptions() {\n return getAllOptions(getAssignedElementsForSlot(this.defaultSlot)).flat();\n }\n\n private getSlottedOptGroups(): SynOptGroup[] {\n return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));\n }\n\n /* eslint-disable no-param-reassign */\n private cacheSlottedOptionsAndOptgroups() {\n const slottedOptions = this.getSlottedOptions();\n const slottedOptgroups = this.getSlottedOptGroups();\n\n slottedOptions.forEach((option, index) => {\n option.id = option.id || `syn-combobox-option-${index}`;\n });\n\n slottedOptgroups.forEach((optgroup, index) => {\n optgroup.id = optgroup.id || `syn-combobox-optgroup-${index}`;\n });\n\n // Cache the slotted options\n this.cachedOptions = [...slottedOptions];\n }\n /* eslint-enable no-param-reassign */\n\n /* eslint-disable @typescript-eslint/no-floating-promises, complexity */\n /* @internal - used by options to update labels */\n public handleDefaultSlotChange() {\n if (!this.isOptionRendererTriggered) {\n // Rerun this handler when <syn-option> is registered\n if (!customElements.get('syn-option')) {\n customElements.whenDefined('syn-option').then(() => this.handleDefaultSlotChange());\n return;\n }\n\n this.cacheSlottedOptionsAndOptgroups();\n\n this.createComboboxOptionsFromQuery(this.value);\n\n if (this.hasFocus && this.value.length > 0 && !this.open) {\n this.show();\n }\n }\n }\n /* eslint-enable @typescript-eslint/no-floating-promises, complexity */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n // eslint-disable-next-line complexity\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;\n const isPlaceholderVisible = this.placeholder && this.value.length === 0;\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-label': hasLabel,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n })}\n >\n <label\n id=\"label\"\n part=\"form-control-label\"\n class=\"form-control__label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.handleLabelClick}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <syn-popup\n class=${classMap({\n combobox: true,\n 'combobox--bottom': this.placement === 'bottom',\n 'combobox--disabled': this.disabled,\n 'combobox--focused': this.hasFocus,\n 'combobox--large': this.size === 'large',\n 'combobox--medium': this.size === 'medium',\n 'combobox--open': this.open,\n 'combobox--placeholder-visible': isPlaceholderVisible,\n 'combobox--small': this.size === 'small',\n 'combobox--standard': true,\n 'combobox--top': this.placement === 'top',\n })}\n placement=${this.placement}\n strategy=${this.hoist ? 'fixed' : 'absolute'}\n flip\n shift\n sync=\"width\"\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n >\n <div\n part=\"combobox\"\n class=\"combobox__inputs\"\n slot=\"anchor\"\n @keydown=${this.handleComboboxKeyDown}\n @mousedown=${this.handleComboboxMouseDown}\n >\n <slot part=\"prefix\" name=\"prefix\" class=\"combobox__prefix\"></slot>\n\n <input\n part=\"display-input\"\n class=\"combobox__display-input\"\n type=\"text\"\n placeholder=${this.placeholder}\n .disabled=${this.disabled}\n .value=${this.displayLabel}\n autocomplete=\"off\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n aria-controls=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-haspopup=\"listbox\"\n aria-labelledby=\"label\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n role=\"combobox\"\n tabindex=\"0\"\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n\n aria-autocomplete=\"list\"\n aria-owns=\"listbox\"\n @input=${this.handleInput}\n @change=${this.handleChange}\n />\n\n <input\n class=\"combobox__value-input\"\n type=\"text\"\n ?disabled=${this.disabled}\n ?required=${this.required}\n .value=${this.value}\n tabindex=\"-1\"\n aria-hidden=\"true\"\n @focus=${() => this.focus()}\n @invalid=${this.handleInvalid}\n />\n \n ${hasClearIcon\n ? html`\n <button\n part=\"clear-button\"\n class=\"combobox__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @mousedown=${this.preventLoosingFocus}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n\n <slot name=\"suffix\" part=\"suffix\" class=\"combobox__suffix\"></slot>\n\n <slot name=\"expand-icon\" part=\"expand-icon\" class=\"combobox__expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </div>\n\n <div\n id=\"listbox\"\n role=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-labelledby=\"label\"\n part=\"listbox\"\n class=\"combobox__listbox\"\n tabindex=\"-1\"\n @mousedown=${this.preventLoosingFocus}\n @mouseup=${this.handleOptionClick}\n >\n <div class=\"listbox__options\" part=\"filtered-listbox\">\n <slot @slotchange=${this.handleDefaultSlotChange}></slot> \n </div>\n </div>\n </syn-popup>\n </div>\n \n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n\nsetDefaultAnimation('combobox.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 },\n ],\n options: { duration: 100, easing: 'ease' },\n});\n\nsetDefaultAnimation('combobox.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.9 },\n ],\n options: { duration: 100, easing: 'ease' },\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AA+EvC,IAAqB,cAArB,cAAyC,eAA6C;AAAA,EAAtF;AAAA;AAcE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,YAAY,WAAW;AAAA,IAC/C,CAAC;AAED,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,OAAO;AAErF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAKvD;AAAA,SAAQ,kBAAkB;AAE1B,SAAQ,4BAA4B;AAc3B,SAAQ,WAAW;AAEnB,wBAAe;AAIf,iCAAwB;AAExB,yBAA8B,CAAC;AAG5B,gBAAO;AAKP,iBAAQ;AAGJ,wBAAe;AAGF,gBAAqC;AAGtD,uBAAc;AAGkB,oBAAW;AAG1B,qBAAY;AAOG,gBAAO;AAOtB,iBAAQ;AAGzB,iBAAQ;AAMS,qBAA8B;AAGrB,oBAAW;AAQpB,gBAAO;AAGQ,oBAAW;AAS3C,qBAA4B;AAW5B,kBAA8D,CAAC,QAAQ,aAAa;AAC9F,UAAI,WAAU,iCAAQ,gBAAe;AACrC,UAAI,kBAAkB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C;AAAA,GA1GR,YA0GU;AAGe;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GA7GvB,YA6GyB;AAShC;AAAA,EAAX,SAAS;AAAA,GAtHS,YAsHP;AAWA;AAAA,EAAX,SAAS;AAAA,GAjIS,YAiIP;AAiXZ;AAAA,EADC,MAAM,CAAC,UAAU,WAAW,GAAG,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAjf3C,YAkfnB;AAKA;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAtf9B,YAufnB;AAaA;AAAA,EADC,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAngB3B,YAogBnB;AAQM;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA3gB1B,YA4gBb;AA5gBa,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;AA04BrB,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
6
+ "names": ["_a", "_b", "keyframes", "options"]
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk.RSCUHBW3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk.H3HTSQKK.js";
4
4
  import {
5
5
  SynDivider
6
- } from "./chunk.KYW2PJQJ.js";
6
+ } from "./chunk.EMGPXY5T.js";
7
7
  import {
8
8
  SynDrawer
9
- } from "./chunk.CKX7E6DW.js";
9
+ } from "./chunk.AS3TB27D.js";
10
10
  import {
11
11
  unlockBodyScrolling
12
12
  } from "./chunk.5732DMBC.js";
@@ -21,18 +21,18 @@ import {
21
21
  import {
22
22
  HasSlotController
23
23
  } from "./chunk.WVVQK5TE.js";
24
- import {
25
- watch
26
- } from "./chunk.74IOULXM.js";
27
24
  import {
28
25
  LocalizeController
29
26
  } from "./chunk.GIU3H3J3.js";
27
+ import {
28
+ watch
29
+ } from "./chunk.74IOULXM.js";
30
30
  import {
31
31
  component_styles_default
32
32
  } from "./chunk.NLYVOJGK.js";
33
33
  import {
34
34
  SynergyElement
35
- } from "./chunk.UUSZZYBI.js";
35
+ } from "./chunk.MKQXTHWU.js";
36
36
  import {
37
37
  __decorateClass
38
38
  } from "./chunk.2GFK6XTO.js";
@@ -315,4 +315,4 @@ setDefaultAnimation("sideNav.overlay.hide", {
315
315
  export {
316
316
  SynSideNav
317
317
  };
318
- //# sourceMappingURL=chunk.26PAD6S5.js.map
318
+ //# sourceMappingURL=chunk.S7PAQRVY.js.map
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk.RAOPZXJL.js";
7
7
  import {
8
8
  SynDivider
9
- } from "./chunk.KYW2PJQJ.js";
9
+ } from "./chunk.EMGPXY5T.js";
10
10
  import {
11
11
  component_styles_default
12
12
  } from "./chunk.NLYVOJGK.js";
13
13
  import {
14
14
  SynergyElement
15
- } from "./chunk.UUSZZYBI.js";
15
+ } from "./chunk.MKQXTHWU.js";
16
16
 
17
17
  // src/components/menu-label/menu-label.component.ts
18
18
  import { html } from "lit";
@@ -34,4 +34,4 @@ SynMenuLabel.dependencies = {
34
34
  export {
35
35
  SynMenuLabel
36
36
  };
37
- //# sourceMappingURL=chunk.3GWNIY5V.js.map
37
+ //# sourceMappingURL=chunk.SKA5Y7HA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynInput
3
- } from "./chunk.DRWE6CQ2.js";
3
+ } from "./chunk.NUCBTPTS.js";
4
4
 
5
5
  // src/components/input/input.ts
6
6
  var input_default = SynInput;
@@ -9,4 +9,4 @@ SynInput.define("syn-input");
9
9
  export {
10
10
  input_default
11
11
  };
12
- //# sourceMappingURL=chunk.VKKATLHB.js.map
12
+ //# sourceMappingURL=chunk.SNHVIH7F.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynRadioButton
3
- } from "./chunk.WMWANLUG.js";
3
+ } from "./chunk.7Y7O45CM.js";
4
4
 
5
5
  // src/components/radio-button/radio-button.ts
6
6
  var radio_button_default = SynRadioButton;
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
9
9
  export {
10
10
  radio_button_default
11
11
  };
12
- //# sourceMappingURL=chunk.U627OKOV.js.map
12
+ //# sourceMappingURL=chunk.ST3V3ZVP.js.map
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk.NLYVOJGK.js";
18
18
  import {
19
19
  SynergyElement
20
- } from "./chunk.UUSZZYBI.js";
20
+ } from "./chunk.MKQXTHWU.js";
21
21
  import {
22
22
  __decorateClass
23
23
  } from "./chunk.2GFK6XTO.js";
@@ -182,4 +182,4 @@ __decorateClass([
182
182
  export {
183
183
  SynIcon
184
184
  };
185
- //# sourceMappingURL=chunk.JM2MZ7RR.js.map
185
+ //# sourceMappingURL=chunk.SWUXKALS.js.map
@@ -1,15 +1,18 @@
1
+ import {
2
+ accordion_styles_default
3
+ } from "./chunk.WNUZ6LH4.js";
1
4
  import {
2
5
  watch
3
6
  } from "./chunk.74IOULXM.js";
4
7
  import {
5
- accordion_styles_default
6
- } from "./chunk.WNUZ6LH4.js";
8
+ enableDefaultSettings
9
+ } from "./chunk.OLCT57R5.js";
7
10
  import {
8
11
  component_styles_default
9
12
  } from "./chunk.NLYVOJGK.js";
10
13
  import {
11
14
  SynergyElement
12
- } from "./chunk.UUSZZYBI.js";
15
+ } from "./chunk.MKQXTHWU.js";
13
16
  import {
14
17
  __decorateClass
15
18
  } from "./chunk.2GFK6XTO.js";
@@ -101,8 +104,11 @@ __decorateClass([
101
104
  __decorateClass([
102
105
  watch("contained", { waitUntilFirstUpdate: true })
103
106
  ], SynAccordion.prototype, "handleContainedChange", 1);
107
+ SynAccordion = __decorateClass([
108
+ enableDefaultSettings("SynAccordion")
109
+ ], SynAccordion);
104
110
 
105
111
  export {
106
112
  SynAccordion
107
113
  };
108
- //# sourceMappingURL=chunk.HTQBFNY7.js.map
114
+ //# sourceMappingURL=chunk.SXFIFBVM.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/accordion/accordion.component.ts"],
4
+ "sourcesContent": ["import { html } from 'lit';\nimport { property, queryAssignedElements } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './accordion.styles.js';\nimport type SynDetails from '../details/details.component.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * @summary Accordions provide the ability to group a list of `<syn-details>`.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-accordion--docs\n * @status stable\n * @since 1.23.0\n *\n * @slot - The accordion's main content. Must be `<syn-details />` elements.\n *\n * @csspart base - The component's base wrapper.\n */\n@enableDefaultSettings('SynAccordion')\nexport default class SynAccordion extends SynergyElement {\n static styles: CSSResultGroup = [\n componentStyles,\n styles,\n ];\n\n @queryAssignedElements({ selector: 'syn-details' }) detailsInDefaultSlot!: SynDetails[];\n\n /**\n * Indicates whether or not multiple `<syn-detail>` elements can be open at the same time.\n */\n @property({ attribute: 'close-others', type: Boolean }) closeOthers = false;\n\n /** Draws the accordion and the slotted `<syn-details>` as contained elements. */\n @property({ reflect: true, type: Boolean }) contained = false;\n\n /** The size that should be applied to all slotted `<syn-details>` elements */\n @property({ reflect: true }) size: 'medium' | 'large' = 'medium';\n\n private adjustDetailsSize() {\n this.detailsInDefaultSlot.forEach(detail => {\n detail.setAttribute('size', this.size);\n });\n }\n\n private adjustDetailsContained() {\n this.detailsInDefaultSlot.forEach(detail => {\n // eslint-disable-next-line no-param-reassign\n detail.contained = this.contained;\n });\n }\n\n @watch('size', { waitUntilFirstUpdate: true })\n handleSizeChange() {\n this.adjustDetailsSize();\n }\n\n @watch('contained', { waitUntilFirstUpdate: true })\n handleContainedChange() {\n this.adjustDetailsContained();\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('syn-show', this.handleAccordionShow);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('syn-show', this.handleAccordionShow);\n }\n\n handleSlotChange() {\n this.adjustDetailsSize();\n this.adjustDetailsContained();\n }\n\n private handleAccordionShow = (event: Event) => {\n if (this.closeOthers) {\n this.detailsInDefaultSlot.forEach(detailsElement => {\n // Break if detailsElement sent the event\n if (detailsElement === event.target) {\n return;\n }\n // Break if detailsElement is outside this group\n if (detailsElement.parentNode !== (event.target as HTMLUnknownElement).parentNode) {\n return;\n }\n detailsElement.removeAttribute('open');\n });\n }\n };\n\n render() {\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <div \n part=\"base\"\n class=${classMap({\n accordion: true,\n 'accordion--contained': this.contained,\n })}>\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `;\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,UAAU,6BAA6B;AAEhD,SAAS,gBAAgB;AAoBzB,IAAqB,eAArB,cAA0C,eAAe;AAAA,EAAzD;AAAA;AAW0D,uBAAc;AAG1B,qBAAY;AAG3B,gBAA2B;AAwCxD,SAAQ,sBAAsB,CAAC,U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