@solid-design-system/components 4.1.2 → 4.2.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 (611) hide show
  1. package/cdn/chunks/{chunk.WMCAUVW6.js → chunk.23IKXZVG.js} +1 -1
  2. package/cdn/chunks/{chunk.BMK7S33Z.js → chunk.2BWXU745.js} +1 -1
  3. package/cdn/chunks/{chunk.NVTRGUUN.js → chunk.2PA3FZXS.js} +1 -1
  4. package/cdn/chunks/chunk.4IFORLFN.js +11 -0
  5. package/cdn/chunks/{chunk.6XHUCAAC.js → chunk.6AT7QBRE.js} +1 -1
  6. package/cdn/chunks/{chunk.XV2WIQSV.js → chunk.6ZV2UB2R.js} +1 -1
  7. package/cdn/chunks/{chunk.V7YY3FWK.js → chunk.7CKFXHTE.js} +1 -1
  8. package/cdn/chunks/{chunk.HOPUF2NO.js → chunk.7SQQCKX5.js} +1 -1
  9. package/cdn/chunks/{chunk.WADGCWRK.js → chunk.7UYAPC2H.js} +1 -1
  10. package/cdn/chunks/{chunk.TET3RDMC.js → chunk.AURWAJH2.js} +1 -1
  11. package/cdn/chunks/{chunk.QJVFSDOZ.js → chunk.AXTP2V5W.js} +1 -1
  12. package/cdn/chunks/chunk.AZ5UMKBM.js +1 -0
  13. package/cdn/chunks/{chunk.YUUAUQGB.js → chunk.B4OSWTH3.js} +1 -1
  14. package/cdn/chunks/chunk.CAWYHBD5.js +1 -0
  15. package/cdn/chunks/{chunk.2F2YU5TY.js → chunk.CBUVQPJ2.js} +1 -1
  16. package/cdn/chunks/{chunk.HUSKVVWH.js → chunk.CJNJKNFE.js} +1 -1
  17. package/cdn/chunks/chunk.CNK4EWSD.js +1 -0
  18. package/cdn/chunks/{chunk.HKKRMPWF.js → chunk.CSTIFOAP.js} +1 -1
  19. package/cdn/chunks/chunk.CYH3PCNG.js +1 -0
  20. package/cdn/chunks/{chunk.6DTJTQ5Z.js → chunk.D6M4QQEX.js} +1 -1
  21. package/cdn/chunks/chunk.FG4AYCVI.js +1 -0
  22. package/cdn/chunks/{chunk.VYV6SKST.js → chunk.FKNSLPX6.js} +1 -1
  23. package/cdn/chunks/{chunk.DOH6WUNR.js → chunk.GS3QL2OV.js} +1 -1
  24. package/cdn/chunks/{chunk.SJ2JO4KS.js → chunk.IEPFDM4R.js} +1 -1
  25. package/cdn/chunks/{chunk.G7CN4YKD.js → chunk.IHS6YCNW.js} +1 -1
  26. package/cdn/chunks/{chunk.MBU5RGYE.js → chunk.KME2AZKV.js} +1 -1
  27. package/cdn/chunks/chunk.LRCDXHQL.js +10 -0
  28. package/cdn/chunks/chunk.LS53PDIU.js +11 -0
  29. package/cdn/chunks/{chunk.PHRAQBQ7.js → chunk.M37NO2OL.js} +1 -1
  30. package/cdn/chunks/{chunk.UBO6O4CS.js → chunk.M56AX2NQ.js} +1 -1
  31. package/cdn/chunks/{chunk.C7OWRPK7.js → chunk.NMHMV2IL.js} +1 -1
  32. package/cdn/chunks/chunk.PGNO6HV2.js +1 -0
  33. package/cdn/chunks/{chunk.YFWVU3XM.js → chunk.Q5XVXRF6.js} +1 -1
  34. package/cdn/chunks/{chunk.3EINSGT6.js → chunk.QB6ZZCNC.js} +1 -1
  35. package/cdn/chunks/{chunk.ZYWB4GHH.js → chunk.QC2KZSKL.js} +1 -1
  36. package/cdn/chunks/{chunk.AWKHYUIP.js → chunk.QQCSHGCT.js} +1 -1
  37. package/cdn/chunks/{chunk.EJKLI2Q4.js → chunk.SLT75PJ7.js} +1 -1
  38. package/cdn/chunks/chunk.SRHKA7HE.js +1 -0
  39. package/cdn/chunks/{chunk.PMI5K2Z2.js → chunk.SZMORTHB.js} +1 -1
  40. package/cdn/chunks/{chunk.26YUWEYR.js → chunk.TNPIUMKG.js} +1 -1
  41. package/cdn/chunks/{chunk.QWPCVRMH.js → chunk.TW2X7LLC.js} +1 -1
  42. package/cdn/chunks/{chunk.KW5L4FQ6.js → chunk.UI7L6PX5.js} +1 -1
  43. package/cdn/chunks/{chunk.HRNG2LIX.js → chunk.UNKFWGH5.js} +1 -1
  44. package/cdn/chunks/chunk.UXYQTHQP.js +1 -0
  45. package/cdn/chunks/chunk.VOS6ZTYL.js +1 -0
  46. package/cdn/chunks/{chunk.GQU4LYQ6.js → chunk.VVV2SCQ6.js} +1 -1
  47. package/cdn/chunks/chunk.W6PPVJGK.js +1 -0
  48. package/cdn/chunks/{chunk.BU5EDIFK.js → chunk.W72MLMOE.js} +1 -1
  49. package/cdn/chunks/{chunk.SWUGEKNC.js → chunk.X77YGX4O.js} +1 -1
  50. package/cdn/chunks/{chunk.GQIUJUD4.js → chunk.XL3BUCUU.js} +1 -1
  51. package/cdn/chunks/chunk.YEIAYEJG.js +11 -0
  52. package/cdn/chunks/{chunk.LRINU3JN.js → chunk.ZIQIZBTD.js} +1 -1
  53. package/cdn/chunks/{chunk.SNCCOKIM.js → chunk.ZZFQQH27.js} +1 -1
  54. package/cdn/components/accordion/accordion.js +1 -1
  55. package/cdn/components/accordion-group/accordion-group.js +1 -1
  56. package/cdn/components/animation/animation.js +1 -1
  57. package/cdn/components/audio/audio.js +1 -1
  58. package/cdn/components/badge/badge.js +1 -1
  59. package/cdn/components/brandshape/brandshape.js +1 -1
  60. package/cdn/components/button/button.d.ts +1 -0
  61. package/cdn/components/button/button.js +1 -1
  62. package/cdn/components/button-group/button-group.js +1 -1
  63. package/cdn/components/carousel/carousel.js +1 -1
  64. package/cdn/components/carousel-item/carousel-item.js +1 -1
  65. package/cdn/components/checkbox/checkbox.d.ts +1 -0
  66. package/cdn/components/checkbox/checkbox.js +1 -1
  67. package/cdn/components/checkbox-group/checkbox-group.d.ts +1 -0
  68. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  69. package/cdn/components/combobox/combobox.d.ts +1 -0
  70. package/cdn/components/combobox/combobox.js +1 -1
  71. package/cdn/components/dialog/dialog.js +1 -1
  72. package/cdn/components/divider/divider.js +1 -1
  73. package/cdn/components/drawer/drawer.js +1 -1
  74. package/cdn/components/dropdown/dropdown.js +1 -1
  75. package/cdn/components/expandable/expandable.js +1 -1
  76. package/cdn/components/flipcard/flipcard.js +1 -1
  77. package/cdn/components/header/header.js +1 -1
  78. package/cdn/components/icon/icon.js +1 -1
  79. package/cdn/components/include/include.js +1 -1
  80. package/cdn/components/input/input.d.ts +1 -0
  81. package/cdn/components/input/input.js +1 -1
  82. package/cdn/components/link/link.d.ts +2 -0
  83. package/cdn/components/link/link.js +1 -1
  84. package/cdn/components/map-marker/map-marker.js +1 -1
  85. package/cdn/components/navigation-item/navigation-item.js +1 -1
  86. package/cdn/components/notification/notification.d.ts +9 -0
  87. package/cdn/components/notification/notification.js +1 -1
  88. package/cdn/components/optgroup/optgroup.js +1 -1
  89. package/cdn/components/option/option.js +1 -1
  90. package/cdn/components/popup/popup.js +1 -1
  91. package/cdn/components/quickfact/quickfact.js +1 -1
  92. package/cdn/components/radio/radio.d.ts +1 -0
  93. package/cdn/components/radio/radio.js +1 -1
  94. package/cdn/components/radio-button/radio-button.d.ts +1 -0
  95. package/cdn/components/radio-button/radio-button.js +1 -1
  96. package/cdn/components/radio-group/radio-group.d.ts +1 -0
  97. package/cdn/components/radio-group/radio-group.js +1 -1
  98. package/cdn/components/scrollable/scrollable.js +1 -1
  99. package/cdn/components/select/select.d.ts +1 -0
  100. package/cdn/components/select/select.js +1 -1
  101. package/cdn/components/spinner/spinner.js +1 -1
  102. package/cdn/components/step/step.js +1 -1
  103. package/cdn/components/step-group/step-group.js +1 -1
  104. package/cdn/components/switch/switch.js +1 -1
  105. package/cdn/components/tab/tab.js +1 -1
  106. package/cdn/components/tab-group/tab-group.js +1 -1
  107. package/cdn/components/tab-panel/tab-panel.js +1 -1
  108. package/cdn/components/tag/tag.js +1 -1
  109. package/cdn/components/teaser/teaser.js +1 -1
  110. package/cdn/components/teaser-media/teaser-media.js +1 -1
  111. package/cdn/components/textarea/textarea.d.ts +1 -0
  112. package/cdn/components/textarea/textarea.js +1 -1
  113. package/cdn/components/tooltip/tooltip.js +1 -1
  114. package/cdn/components/video/video.js +1 -1
  115. package/cdn/custom-elements.json +228 -3
  116. package/cdn/solid-components.bundle.js +27 -43
  117. package/cdn/solid-components.iife.js +27 -43
  118. package/cdn/solid-components.js +1 -1
  119. package/cdn/translations/de.js +1 -1
  120. package/cdn/translations/en.js +1 -1
  121. package/cdn/utilities/autocomplete-config.js +1 -1
  122. package/cdn/utilities/localize.d.ts +1 -0
  123. package/cdn/utilities/localize.js +1 -1
  124. package/cdn/vscode.html-custom-data.json +58 -3
  125. package/cdn/web-types.json +123 -5
  126. package/cdn-versioned/_components/menu/menu.js +1 -1
  127. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  128. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  129. package/cdn-versioned/chunks/{chunk.WMCAUVW6.js → chunk.23IKXZVG.js} +1 -1
  130. package/cdn-versioned/chunks/{chunk.BMK7S33Z.js → chunk.2BWXU745.js} +1 -1
  131. package/cdn-versioned/chunks/{chunk.NVTRGUUN.js → chunk.2PA3FZXS.js} +1 -1
  132. package/cdn-versioned/chunks/chunk.4IFORLFN.js +11 -0
  133. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  134. package/cdn-versioned/chunks/{chunk.6XHUCAAC.js → chunk.6AT7QBRE.js} +1 -1
  135. package/cdn-versioned/chunks/{chunk.XV2WIQSV.js → chunk.6ZV2UB2R.js} +1 -1
  136. package/cdn-versioned/chunks/{chunk.V7YY3FWK.js → chunk.7CKFXHTE.js} +4 -4
  137. package/cdn-versioned/chunks/{chunk.HOPUF2NO.js → chunk.7SQQCKX5.js} +1 -1
  138. package/cdn-versioned/chunks/{chunk.WADGCWRK.js → chunk.7UYAPC2H.js} +1 -1
  139. package/cdn-versioned/chunks/{chunk.TET3RDMC.js → chunk.AURWAJH2.js} +1 -1
  140. package/cdn-versioned/chunks/{chunk.QJVFSDOZ.js → chunk.AXTP2V5W.js} +1 -1
  141. package/cdn-versioned/chunks/chunk.AZ5UMKBM.js +1 -0
  142. package/cdn-versioned/chunks/{chunk.YUUAUQGB.js → chunk.B4OSWTH3.js} +1 -1
  143. package/cdn-versioned/chunks/chunk.CAWYHBD5.js +1 -0
  144. package/cdn-versioned/chunks/{chunk.2F2YU5TY.js → chunk.CBUVQPJ2.js} +1 -1
  145. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  146. package/cdn-versioned/chunks/{chunk.HUSKVVWH.js → chunk.CJNJKNFE.js} +1 -1
  147. package/cdn-versioned/chunks/chunk.CNK4EWSD.js +1 -0
  148. package/cdn-versioned/chunks/{chunk.HKKRMPWF.js → chunk.CSTIFOAP.js} +1 -1
  149. package/cdn-versioned/chunks/chunk.CYH3PCNG.js +1 -0
  150. package/cdn-versioned/chunks/{chunk.6DTJTQ5Z.js → chunk.D6M4QQEX.js} +1 -1
  151. package/cdn-versioned/chunks/chunk.FG4AYCVI.js +1 -0
  152. package/cdn-versioned/chunks/{chunk.VYV6SKST.js → chunk.FKNSLPX6.js} +1 -1
  153. package/cdn-versioned/chunks/{chunk.DOH6WUNR.js → chunk.GS3QL2OV.js} +1 -1
  154. package/cdn-versioned/chunks/{chunk.SJ2JO4KS.js → chunk.IEPFDM4R.js} +1 -1
  155. package/cdn-versioned/chunks/{chunk.G7CN4YKD.js → chunk.IHS6YCNW.js} +1 -1
  156. package/cdn-versioned/chunks/{chunk.MBU5RGYE.js → chunk.KME2AZKV.js} +1 -1
  157. package/cdn-versioned/chunks/chunk.LRCDXHQL.js +10 -0
  158. package/cdn-versioned/chunks/chunk.LS53PDIU.js +11 -0
  159. package/cdn-versioned/chunks/{chunk.PHRAQBQ7.js → chunk.M37NO2OL.js} +1 -1
  160. package/cdn-versioned/chunks/{chunk.UBO6O4CS.js → chunk.M56AX2NQ.js} +1 -1
  161. package/cdn-versioned/chunks/{chunk.C7OWRPK7.js → chunk.NMHMV2IL.js} +2 -2
  162. package/cdn-versioned/chunks/chunk.PGNO6HV2.js +1 -0
  163. package/cdn-versioned/chunks/{chunk.YFWVU3XM.js → chunk.Q5XVXRF6.js} +1 -1
  164. package/cdn-versioned/chunks/{chunk.3EINSGT6.js → chunk.QB6ZZCNC.js} +1 -1
  165. package/cdn-versioned/chunks/{chunk.ZYWB4GHH.js → chunk.QC2KZSKL.js} +1 -1
  166. package/cdn-versioned/chunks/{chunk.AWKHYUIP.js → chunk.QQCSHGCT.js} +2 -2
  167. package/cdn-versioned/chunks/{chunk.EJKLI2Q4.js → chunk.SLT75PJ7.js} +1 -1
  168. package/cdn-versioned/chunks/chunk.SRHKA7HE.js +1 -0
  169. package/cdn-versioned/chunks/{chunk.PMI5K2Z2.js → chunk.SZMORTHB.js} +1 -1
  170. package/cdn-versioned/chunks/{chunk.26YUWEYR.js → chunk.TNPIUMKG.js} +1 -1
  171. package/cdn-versioned/chunks/{chunk.QWPCVRMH.js → chunk.TW2X7LLC.js} +1 -1
  172. package/cdn-versioned/chunks/{chunk.KW5L4FQ6.js → chunk.UI7L6PX5.js} +2 -2
  173. package/cdn-versioned/chunks/{chunk.HRNG2LIX.js → chunk.UNKFWGH5.js} +1 -1
  174. package/cdn-versioned/chunks/chunk.UXYQTHQP.js +1 -0
  175. package/cdn-versioned/chunks/chunk.VOS6ZTYL.js +1 -0
  176. package/cdn-versioned/chunks/chunk.VVV2SCQ6.js +73 -0
  177. package/cdn-versioned/chunks/chunk.W6PPVJGK.js +1 -0
  178. package/cdn-versioned/chunks/{chunk.BU5EDIFK.js → chunk.W72MLMOE.js} +1 -1
  179. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  180. package/cdn-versioned/chunks/{chunk.SWUGEKNC.js → chunk.X77YGX4O.js} +1 -1
  181. package/cdn-versioned/chunks/{chunk.GQIUJUD4.js → chunk.XL3BUCUU.js} +1 -1
  182. package/cdn-versioned/chunks/chunk.YEIAYEJG.js +11 -0
  183. package/cdn-versioned/chunks/{chunk.LRINU3JN.js → chunk.ZIQIZBTD.js} +1 -1
  184. package/cdn-versioned/chunks/{chunk.SNCCOKIM.js → chunk.ZZFQQH27.js} +1 -1
  185. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  186. package/cdn-versioned/components/accordion/accordion.js +1 -1
  187. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  188. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  189. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  190. package/cdn-versioned/components/animation/animation.js +1 -1
  191. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  192. package/cdn-versioned/components/audio/audio.js +1 -1
  193. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  194. package/cdn-versioned/components/badge/badge.js +1 -1
  195. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  196. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  197. package/cdn-versioned/components/button/button.d.ts +2 -1
  198. package/cdn-versioned/components/button/button.js +1 -1
  199. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  200. package/cdn-versioned/components/button-group/button-group.js +1 -1
  201. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  202. package/cdn-versioned/components/carousel/carousel.js +1 -1
  203. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  204. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  205. package/cdn-versioned/components/checkbox/checkbox.d.ts +2 -1
  206. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  207. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +2 -1
  208. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  209. package/cdn-versioned/components/combobox/combobox.d.ts +5 -4
  210. package/cdn-versioned/components/combobox/combobox.js +1 -1
  211. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  212. package/cdn-versioned/components/dialog/dialog.js +1 -1
  213. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  214. package/cdn-versioned/components/divider/divider.js +1 -1
  215. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  216. package/cdn-versioned/components/drawer/drawer.js +1 -1
  217. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  218. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  219. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  220. package/cdn-versioned/components/expandable/expandable.js +1 -1
  221. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  222. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  223. package/cdn-versioned/components/header/header.d.ts +1 -1
  224. package/cdn-versioned/components/header/header.js +1 -1
  225. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  226. package/cdn-versioned/components/icon/icon.js +1 -1
  227. package/cdn-versioned/components/include/include.d.ts +1 -1
  228. package/cdn-versioned/components/include/include.js +1 -1
  229. package/cdn-versioned/components/input/input.d.ts +2 -1
  230. package/cdn-versioned/components/input/input.js +1 -1
  231. package/cdn-versioned/components/link/link.d.ts +3 -1
  232. package/cdn-versioned/components/link/link.js +1 -1
  233. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  234. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  235. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  236. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  237. package/cdn-versioned/components/notification/notification.d.ts +10 -1
  238. package/cdn-versioned/components/notification/notification.js +1 -1
  239. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  240. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  241. package/cdn-versioned/components/option/option.d.ts +1 -1
  242. package/cdn-versioned/components/option/option.js +1 -1
  243. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  244. package/cdn-versioned/components/popup/popup.js +1 -1
  245. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  246. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  247. package/cdn-versioned/components/radio/radio.d.ts +2 -1
  248. package/cdn-versioned/components/radio/radio.js +1 -1
  249. package/cdn-versioned/components/radio-button/radio-button.d.ts +2 -1
  250. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  251. package/cdn-versioned/components/radio-group/radio-group.d.ts +3 -2
  252. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  253. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  254. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  255. package/cdn-versioned/components/select/select.d.ts +5 -4
  256. package/cdn-versioned/components/select/select.js +1 -1
  257. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  258. package/cdn-versioned/components/spinner/spinner.js +1 -1
  259. package/cdn-versioned/components/step/step.d.ts +1 -1
  260. package/cdn-versioned/components/step/step.js +1 -1
  261. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  262. package/cdn-versioned/components/step-group/step-group.js +1 -1
  263. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  264. package/cdn-versioned/components/switch/switch.js +1 -1
  265. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  266. package/cdn-versioned/components/tab/tab.js +1 -1
  267. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  268. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  269. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  270. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  271. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  272. package/cdn-versioned/components/tag/tag.js +1 -1
  273. package/cdn-versioned/components/teaser/teaser.js +1 -1
  274. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  275. package/cdn-versioned/components/textarea/textarea.d.ts +2 -1
  276. package/cdn-versioned/components/textarea/textarea.js +1 -1
  277. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  278. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  279. package/cdn-versioned/components/video/video.d.ts +1 -1
  280. package/cdn-versioned/components/video/video.js +1 -1
  281. package/cdn-versioned/custom-elements.json +429 -204
  282. package/cdn-versioned/internal/form.js +3 -3
  283. package/cdn-versioned/solid-components.bundle.js +29 -45
  284. package/cdn-versioned/solid-components.css +2 -2
  285. package/cdn-versioned/solid-components.iife.js +29 -45
  286. package/cdn-versioned/solid-components.js +1 -1
  287. package/cdn-versioned/translations/de.js +1 -1
  288. package/cdn-versioned/translations/en.js +1 -1
  289. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  290. package/cdn-versioned/utilities/localize.d.ts +1 -0
  291. package/cdn-versioned/utilities/localize.js +1 -1
  292. package/cdn-versioned/vscode.html-custom-data.json +136 -81
  293. package/cdn-versioned/web-types.json +257 -139
  294. package/dist/chunks/{chunk.UZKLVMCI.js → chunk.33QCSKQD.js} +1 -1
  295. package/dist/chunks/{chunk.ACST636J.js → chunk.5U42A4N2.js} +1 -1
  296. package/dist/chunks/{chunk.CCQCEONR.js → chunk.632H2QDY.js} +1 -1
  297. package/dist/chunks/{chunk.H5ARRBLT.js → chunk.65GBG62N.js} +1 -1
  298. package/dist/chunks/{chunk.4SBQOWLU.js → chunk.6Q2FPQCD.js} +9 -3
  299. package/{dist-versioned/chunks/chunk.RSPK767T.js → dist/chunks/chunk.AEYAUOW5.js} +16 -7
  300. package/dist/chunks/{chunk.7E7C4YEQ.js → chunk.AQOV7CSX.js} +2 -2
  301. package/dist/chunks/{chunk.DPY2TYIS.js → chunk.DKDBS6OJ.js} +1 -1
  302. package/dist/chunks/{chunk.F63YFNZS.js → chunk.DQPMDZDZ.js} +1 -1
  303. package/dist/chunks/{chunk.MNYQWRJE.js → chunk.EJ6ZLEEW.js} +1 -0
  304. package/dist/chunks/{chunk.KPA6BEFU.js → chunk.F27JSEQZ.js} +52 -3
  305. package/dist/chunks/{chunk.BTJACUD5.js → chunk.F2TZ6DNQ.js} +20 -15
  306. package/dist/chunks/{chunk.SNCHAQYL.js → chunk.FG4KLSVA.js} +16 -25
  307. package/dist/chunks/{chunk.EH2FHVPN.js → chunk.GEIIXN6O.js} +1 -1
  308. package/dist/chunks/{chunk.PRXP5CUW.js → chunk.GXOBJN4Z.js} +2 -2
  309. package/dist/chunks/{chunk.AKF4KQEW.js → chunk.I44BFH6N.js} +1 -1
  310. package/dist/chunks/{chunk.5PTDC66T.js → chunk.I6LLIF3A.js} +1 -1
  311. package/dist/chunks/{chunk.4Q7KKH5Z.js → chunk.IHJUIKE5.js} +1 -1
  312. package/dist/chunks/{chunk.OR7JTZLE.js → chunk.IHKHCZDI.js} +12 -6
  313. package/dist/chunks/{chunk.QUYKT56M.js → chunk.JCZYHLLG.js} +1 -1
  314. package/dist/chunks/{chunk.I5ZJV32M.js → chunk.LM7G2MP2.js} +1 -1
  315. package/dist/chunks/{chunk.FTXUZOXH.js → chunk.LT6DJYQW.js} +1 -1
  316. package/dist/chunks/{chunk.XKJR2XUZ.js → chunk.LTMUP2IF.js} +1 -1
  317. package/dist/chunks/{chunk.HFHUY7YD.js → chunk.M4CPDAKC.js} +1 -1
  318. package/dist/chunks/{chunk.AQZSZKBJ.js → chunk.MM7UZ56N.js} +1 -1
  319. package/dist/chunks/{chunk.FFKZQXJ2.js → chunk.MPC4NJ7T.js} +1 -1
  320. package/dist/chunks/{chunk.DU3O42BH.js → chunk.MUTJR3Y5.js} +1 -1
  321. package/dist/chunks/{chunk.OMBVLHXJ.js → chunk.NKQ5TMZU.js} +1 -1
  322. package/dist/chunks/{chunk.5FOKRIWL.js → chunk.NVGI6WK4.js} +19 -9
  323. package/dist/chunks/{chunk.D3I3AZEX.js → chunk.NXMLWQ4F.js} +13 -7
  324. package/dist/chunks/{chunk.XOL74PNU.js → chunk.OED6NJWG.js} +34 -16
  325. package/dist/chunks/{chunk.JZB2D4IZ.js → chunk.OVXTOIRH.js} +1 -1
  326. package/dist/chunks/{chunk.2FXKQI26.js → chunk.PHOL2FZ7.js} +1 -1
  327. package/dist/chunks/{chunk.VTUCPGYW.js → chunk.PY2NXO6G.js} +1 -1
  328. package/dist/chunks/{chunk.KH4M6HPE.js → chunk.Q2OO67VT.js} +1 -1
  329. package/dist/chunks/{chunk.274HT4QS.js → chunk.QINFB4CI.js} +1 -1
  330. package/dist/chunks/{chunk.D26WCHLT.js → chunk.SL7UXNEP.js} +2 -2
  331. package/dist/chunks/{chunk.AJ7V76EG.js → chunk.SUVILVZH.js} +1 -1
  332. package/dist/chunks/{chunk.674S2Z6M.js → chunk.TA2OGXIC.js} +1 -1
  333. package/dist/chunks/{chunk.NUIZDE7R.js → chunk.THT3CJM5.js} +1 -1
  334. package/dist/chunks/{chunk.TGJ2SBPH.js → chunk.TLTEUGRS.js} +1 -1
  335. package/dist/chunks/{chunk.A625ONY2.js → chunk.UEKILTQF.js} +13 -9
  336. package/dist/chunks/{chunk.JIWTAZZS.js → chunk.UGILZRQF.js} +1 -1
  337. package/dist/chunks/{chunk.A5S7GZJI.js → chunk.UWKWJ6WX.js} +22 -12
  338. package/dist/chunks/{chunk.OBWOMZNU.js → chunk.V27Y42MG.js} +17 -5
  339. package/dist/chunks/{chunk.OZU372TI.js → chunk.VAA7NUXP.js} +1 -1
  340. package/dist/chunks/{chunk.QTFIZJGB.js → chunk.VYPTEJCW.js} +1 -1
  341. package/dist/chunks/{chunk.H5BDO4H5.js → chunk.WZK6B3UV.js} +1 -1
  342. package/dist/chunks/{chunk.PT7MDSWH.js → chunk.X27M4U7I.js} +1 -1
  343. package/dist/chunks/{chunk.XL2PSGM5.js → chunk.XS43N4DL.js} +1 -1
  344. package/dist/chunks/{chunk.LZA2QYUU.js → chunk.YHVAW367.js} +1 -1
  345. package/dist/chunks/{chunk.2S2CNWKY.js → chunk.ZXR3YX6W.js} +1 -0
  346. package/dist/components/accordion/accordion.js +5 -5
  347. package/dist/components/accordion-group/accordion-group.js +6 -6
  348. package/dist/components/animation/animation.js +2 -2
  349. package/dist/components/audio/audio.js +4 -4
  350. package/dist/components/badge/badge.js +2 -2
  351. package/dist/components/brandshape/brandshape.js +2 -2
  352. package/dist/components/button/button.d.ts +1 -0
  353. package/dist/components/button/button.js +5 -5
  354. package/dist/components/button-group/button-group.js +2 -2
  355. package/dist/components/carousel/carousel.js +6 -6
  356. package/dist/components/carousel-item/carousel-item.js +2 -2
  357. package/dist/components/checkbox/checkbox.d.ts +1 -0
  358. package/dist/components/checkbox/checkbox.js +3 -3
  359. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -0
  360. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  361. package/dist/components/combobox/combobox.d.ts +1 -0
  362. package/dist/components/combobox/combobox.js +7 -7
  363. package/dist/components/dialog/dialog.js +7 -7
  364. package/dist/components/divider/divider.js +2 -2
  365. package/dist/components/drawer/drawer.js +7 -7
  366. package/dist/components/dropdown/dropdown.js +5 -5
  367. package/dist/components/expandable/expandable.js +4 -4
  368. package/dist/components/flipcard/flipcard.js +7 -7
  369. package/dist/components/header/header.js +2 -2
  370. package/dist/components/icon/icon.js +2 -2
  371. package/dist/components/include/include.js +2 -2
  372. package/dist/components/input/input.d.ts +1 -0
  373. package/dist/components/input/input.js +5 -5
  374. package/dist/components/link/link.d.ts +2 -0
  375. package/dist/components/link/link.js +2 -2
  376. package/dist/components/map-marker/map-marker.js +2 -2
  377. package/dist/components/navigation-item/navigation-item.js +2 -2
  378. package/dist/components/notification/notification.d.ts +9 -0
  379. package/dist/components/notification/notification.js +4 -4
  380. package/dist/components/optgroup/optgroup.js +3 -3
  381. package/dist/components/option/option.js +3 -3
  382. package/dist/components/popup/popup.js +2 -2
  383. package/dist/components/quickfact/quickfact.js +6 -6
  384. package/dist/components/radio/radio.d.ts +1 -0
  385. package/dist/components/radio/radio.js +3 -3
  386. package/dist/components/radio-button/radio-button.d.ts +1 -0
  387. package/dist/components/radio-button/radio-button.js +2 -2
  388. package/dist/components/radio-group/radio-group.d.ts +1 -0
  389. package/dist/components/radio-group/radio-group.js +5 -5
  390. package/dist/components/scrollable/scrollable.js +4 -4
  391. package/dist/components/select/select.d.ts +1 -0
  392. package/dist/components/select/select.js +7 -7
  393. package/dist/components/spinner/spinner.js +4 -4
  394. package/dist/components/step/step.js +2 -2
  395. package/dist/components/step-group/step-group.js +2 -2
  396. package/dist/components/switch/switch.js +2 -2
  397. package/dist/components/tab/tab.js +2 -2
  398. package/dist/components/tab-group/tab-group.js +4 -4
  399. package/dist/components/tab-panel/tab-panel.js +2 -2
  400. package/dist/components/tag/tag.js +2 -2
  401. package/dist/components/teaser/teaser.js +2 -2
  402. package/dist/components/teaser-media/teaser-media.js +2 -2
  403. package/dist/components/textarea/textarea.d.ts +1 -0
  404. package/dist/components/textarea/textarea.js +2 -2
  405. package/dist/components/tooltip/tooltip.js +5 -5
  406. package/dist/components/video/video.js +2 -2
  407. package/dist/custom-elements.json +228 -3
  408. package/dist/solid-components.js +52 -52
  409. package/dist/translations/de.js +1 -1
  410. package/dist/translations/en.js +1 -1
  411. package/dist/utilities/autocomplete-config.js +2 -2
  412. package/dist/utilities/localize.d.ts +1 -0
  413. package/dist/utilities/localize.js +2 -2
  414. package/dist/vscode.html-custom-data.json +58 -3
  415. package/dist/web-types.json +123 -5
  416. package/dist-versioned/_components/menu/menu.js +1 -1
  417. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  418. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  419. package/dist-versioned/chunks/{chunk.UZKLVMCI.js → chunk.33QCSKQD.js} +2 -2
  420. package/dist-versioned/chunks/{chunk.ACST636J.js → chunk.5U42A4N2.js} +2 -2
  421. package/dist-versioned/chunks/{chunk.CCQCEONR.js → chunk.632H2QDY.js} +3 -3
  422. package/dist-versioned/chunks/{chunk.H5ARRBLT.js → chunk.65GBG62N.js} +3 -3
  423. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  424. package/dist-versioned/chunks/{chunk.4SBQOWLU.js → chunk.6Q2FPQCD.js} +14 -8
  425. package/{dist/chunks/chunk.RSPK767T.js → dist-versioned/chunks/chunk.AEYAUOW5.js} +16 -7
  426. package/dist-versioned/chunks/{chunk.7E7C4YEQ.js → chunk.AQOV7CSX.js} +5 -5
  427. package/dist-versioned/chunks/{chunk.DPY2TYIS.js → chunk.DKDBS6OJ.js} +10 -10
  428. package/dist-versioned/chunks/{chunk.F63YFNZS.js → chunk.DQPMDZDZ.js} +6 -6
  429. package/dist-versioned/chunks/{chunk.MNYQWRJE.js → chunk.EJ6ZLEEW.js} +1 -0
  430. package/dist-versioned/chunks/{chunk.KPA6BEFU.js → chunk.F27JSEQZ.js} +56 -7
  431. package/dist-versioned/chunks/{chunk.BTJACUD5.js → chunk.F2TZ6DNQ.js} +48 -43
  432. package/dist-versioned/chunks/{chunk.SNCHAQYL.js → chunk.FG4KLSVA.js} +20 -29
  433. package/dist-versioned/chunks/{chunk.EH2FHVPN.js → chunk.GEIIXN6O.js} +4 -4
  434. package/dist-versioned/chunks/{chunk.PRXP5CUW.js → chunk.GXOBJN4Z.js} +7 -7
  435. package/dist-versioned/chunks/{chunk.AKF4KQEW.js → chunk.I44BFH6N.js} +3 -3
  436. package/dist-versioned/chunks/{chunk.5PTDC66T.js → chunk.I6LLIF3A.js} +6 -6
  437. package/dist-versioned/chunks/{chunk.4Q7KKH5Z.js → chunk.IHJUIKE5.js} +3 -3
  438. package/dist-versioned/chunks/{chunk.OR7JTZLE.js → chunk.IHKHCZDI.js} +14 -8
  439. package/dist-versioned/chunks/{chunk.QUYKT56M.js → chunk.JCZYHLLG.js} +2 -2
  440. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  441. package/dist-versioned/chunks/{chunk.I5ZJV32M.js → chunk.LM7G2MP2.js} +2 -2
  442. package/dist-versioned/chunks/{chunk.FTXUZOXH.js → chunk.LT6DJYQW.js} +3 -3
  443. package/dist-versioned/chunks/{chunk.XKJR2XUZ.js → chunk.LTMUP2IF.js} +2 -2
  444. package/dist-versioned/chunks/chunk.M4CPDAKC.js +65 -0
  445. package/dist-versioned/chunks/{chunk.AQZSZKBJ.js → chunk.MM7UZ56N.js} +14 -14
  446. package/dist-versioned/chunks/{chunk.FFKZQXJ2.js → chunk.MPC4NJ7T.js} +3 -3
  447. package/dist-versioned/chunks/{chunk.DU3O42BH.js → chunk.MUTJR3Y5.js} +3 -3
  448. package/dist-versioned/chunks/{chunk.OMBVLHXJ.js → chunk.NKQ5TMZU.js} +2 -2
  449. package/dist-versioned/chunks/{chunk.5FOKRIWL.js → chunk.NVGI6WK4.js} +20 -10
  450. package/dist-versioned/chunks/{chunk.D3I3AZEX.js → chunk.NXMLWQ4F.js} +25 -19
  451. package/dist-versioned/chunks/{chunk.XOL74PNU.js → chunk.OED6NJWG.js} +59 -41
  452. package/dist-versioned/chunks/{chunk.JZB2D4IZ.js → chunk.OVXTOIRH.js} +2 -2
  453. package/dist-versioned/chunks/{chunk.2FXKQI26.js → chunk.PHOL2FZ7.js} +3 -3
  454. package/dist-versioned/chunks/{chunk.VTUCPGYW.js → chunk.PY2NXO6G.js} +2 -2
  455. package/dist-versioned/chunks/{chunk.KH4M6HPE.js → chunk.Q2OO67VT.js} +3 -3
  456. package/dist-versioned/chunks/{chunk.274HT4QS.js → chunk.QINFB4CI.js} +4 -4
  457. package/dist-versioned/chunks/{chunk.D26WCHLT.js → chunk.SL7UXNEP.js} +8 -8
  458. package/dist-versioned/chunks/{chunk.AJ7V76EG.js → chunk.SUVILVZH.js} +2 -2
  459. package/dist-versioned/chunks/{chunk.674S2Z6M.js → chunk.TA2OGXIC.js} +2 -2
  460. package/dist-versioned/chunks/{chunk.NUIZDE7R.js → chunk.THT3CJM5.js} +2 -2
  461. package/dist-versioned/chunks/{chunk.TGJ2SBPH.js → chunk.TLTEUGRS.js} +7 -7
  462. package/dist-versioned/chunks/{chunk.A625ONY2.js → chunk.UEKILTQF.js} +15 -11
  463. package/dist-versioned/chunks/{chunk.JIWTAZZS.js → chunk.UGILZRQF.js} +6 -6
  464. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  465. package/dist-versioned/chunks/{chunk.A5S7GZJI.js → chunk.UWKWJ6WX.js} +25 -15
  466. package/dist-versioned/chunks/{chunk.OBWOMZNU.js → chunk.V27Y42MG.js} +19 -7
  467. package/dist-versioned/chunks/{chunk.OZU372TI.js → chunk.VAA7NUXP.js} +3 -3
  468. package/dist-versioned/chunks/{chunk.QTFIZJGB.js → chunk.VYPTEJCW.js} +3 -3
  469. package/dist-versioned/chunks/{chunk.H5BDO4H5.js → chunk.WZK6B3UV.js} +12 -12
  470. package/dist-versioned/chunks/{chunk.PT7MDSWH.js → chunk.X27M4U7I.js} +2 -2
  471. package/dist-versioned/chunks/{chunk.XL2PSGM5.js → chunk.XS43N4DL.js} +3 -3
  472. package/dist-versioned/chunks/{chunk.LZA2QYUU.js → chunk.YHVAW367.js} +2 -2
  473. package/dist-versioned/chunks/{chunk.2S2CNWKY.js → chunk.ZXR3YX6W.js} +1 -0
  474. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  475. package/dist-versioned/components/accordion/accordion.js +5 -5
  476. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  477. package/dist-versioned/components/accordion-group/accordion-group.js +6 -6
  478. package/dist-versioned/components/animation/animation.d.ts +1 -1
  479. package/dist-versioned/components/animation/animation.js +2 -2
  480. package/dist-versioned/components/audio/audio.d.ts +1 -1
  481. package/dist-versioned/components/audio/audio.js +4 -4
  482. package/dist-versioned/components/badge/badge.d.ts +1 -1
  483. package/dist-versioned/components/badge/badge.js +2 -2
  484. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  485. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  486. package/dist-versioned/components/button/button.d.ts +2 -1
  487. package/dist-versioned/components/button/button.js +5 -5
  488. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  489. package/dist-versioned/components/button-group/button-group.js +2 -2
  490. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  491. package/dist-versioned/components/carousel/carousel.js +6 -6
  492. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  493. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  494. package/dist-versioned/components/checkbox/checkbox.d.ts +2 -1
  495. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  496. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +2 -1
  497. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  498. package/dist-versioned/components/combobox/combobox.d.ts +5 -4
  499. package/dist-versioned/components/combobox/combobox.js +7 -7
  500. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  501. package/dist-versioned/components/dialog/dialog.js +7 -7
  502. package/dist-versioned/components/divider/divider.d.ts +1 -1
  503. package/dist-versioned/components/divider/divider.js +2 -2
  504. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  505. package/dist-versioned/components/drawer/drawer.js +7 -7
  506. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  507. package/dist-versioned/components/dropdown/dropdown.js +5 -5
  508. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  509. package/dist-versioned/components/expandable/expandable.js +4 -4
  510. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  511. package/dist-versioned/components/flipcard/flipcard.js +7 -7
  512. package/dist-versioned/components/header/header.d.ts +1 -1
  513. package/dist-versioned/components/header/header.js +2 -2
  514. package/dist-versioned/components/icon/icon.d.ts +1 -1
  515. package/dist-versioned/components/icon/icon.js +2 -2
  516. package/dist-versioned/components/include/include.d.ts +1 -1
  517. package/dist-versioned/components/include/include.js +2 -2
  518. package/dist-versioned/components/input/input.d.ts +2 -1
  519. package/dist-versioned/components/input/input.js +5 -5
  520. package/dist-versioned/components/link/link.d.ts +3 -1
  521. package/dist-versioned/components/link/link.js +2 -2
  522. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  523. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  524. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  525. package/dist-versioned/components/navigation-item/navigation-item.js +2 -2
  526. package/dist-versioned/components/notification/notification.d.ts +10 -1
  527. package/dist-versioned/components/notification/notification.js +4 -4
  528. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  529. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  530. package/dist-versioned/components/option/option.d.ts +1 -1
  531. package/dist-versioned/components/option/option.js +3 -3
  532. package/dist-versioned/components/popup/popup.d.ts +1 -1
  533. package/dist-versioned/components/popup/popup.js +2 -2
  534. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  535. package/dist-versioned/components/quickfact/quickfact.js +6 -6
  536. package/dist-versioned/components/radio/radio.d.ts +2 -1
  537. package/dist-versioned/components/radio/radio.js +3 -3
  538. package/dist-versioned/components/radio-button/radio-button.d.ts +2 -1
  539. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  540. package/dist-versioned/components/radio-group/radio-group.d.ts +3 -2
  541. package/dist-versioned/components/radio-group/radio-group.js +5 -5
  542. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  543. package/dist-versioned/components/scrollable/scrollable.js +4 -4
  544. package/dist-versioned/components/select/select.d.ts +5 -4
  545. package/dist-versioned/components/select/select.js +7 -7
  546. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  547. package/dist-versioned/components/spinner/spinner.js +4 -4
  548. package/dist-versioned/components/step/step.d.ts +1 -1
  549. package/dist-versioned/components/step/step.js +2 -2
  550. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  551. package/dist-versioned/components/step-group/step-group.js +2 -2
  552. package/dist-versioned/components/switch/switch.d.ts +1 -1
  553. package/dist-versioned/components/switch/switch.js +2 -2
  554. package/dist-versioned/components/tab/tab.d.ts +1 -1
  555. package/dist-versioned/components/tab/tab.js +2 -2
  556. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  557. package/dist-versioned/components/tab-group/tab-group.js +4 -4
  558. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  559. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  560. package/dist-versioned/components/tag/tag.d.ts +1 -1
  561. package/dist-versioned/components/tag/tag.js +2 -2
  562. package/dist-versioned/components/teaser/teaser.js +2 -2
  563. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  564. package/dist-versioned/components/textarea/textarea.d.ts +2 -1
  565. package/dist-versioned/components/textarea/textarea.js +2 -2
  566. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  567. package/dist-versioned/components/tooltip/tooltip.js +5 -5
  568. package/dist-versioned/components/video/video.d.ts +1 -1
  569. package/dist-versioned/components/video/video.js +2 -2
  570. package/dist-versioned/custom-elements.json +429 -204
  571. package/dist-versioned/internal/form.js +3 -3
  572. package/dist-versioned/solid-components.css +2 -2
  573. package/dist-versioned/solid-components.js +52 -52
  574. package/dist-versioned/translations/de.js +1 -1
  575. package/dist-versioned/translations/en.js +1 -1
  576. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  577. package/dist-versioned/utilities/localize.d.ts +1 -0
  578. package/dist-versioned/utilities/localize.js +2 -2
  579. package/dist-versioned/vscode.html-custom-data.json +136 -81
  580. package/dist-versioned/web-types.json +257 -139
  581. package/package.json +8 -8
  582. package/cdn/chunks/chunk.2POHB7E4.js +0 -1
  583. package/cdn/chunks/chunk.7KT5V5SZ.js +0 -11
  584. package/cdn/chunks/chunk.DW5QL76L.js +0 -3
  585. package/cdn/chunks/chunk.HQYSQRUN.js +0 -1
  586. package/cdn/chunks/chunk.K4WR4LYF.js +0 -11
  587. package/cdn/chunks/chunk.LI5H3QYB.js +0 -1
  588. package/cdn/chunks/chunk.NQZZHVDV.js +0 -10
  589. package/cdn/chunks/chunk.OPMM2RN5.js +0 -1
  590. package/cdn/chunks/chunk.OY3MT73P.js +0 -25
  591. package/cdn/chunks/chunk.SIC7OWQL.js +0 -1
  592. package/cdn/chunks/chunk.SXH5LQRL.js +0 -1
  593. package/cdn/chunks/chunk.TJ6RGDHH.js +0 -1
  594. package/cdn/chunks/chunk.VOX6F6LP.js +0 -1
  595. package/cdn/chunks/chunk.YN6CIEPP.js +0 -1
  596. package/cdn-versioned/chunks/chunk.2POHB7E4.js +0 -1
  597. package/cdn-versioned/chunks/chunk.7KT5V5SZ.js +0 -11
  598. package/cdn-versioned/chunks/chunk.DW5QL76L.js +0 -3
  599. package/cdn-versioned/chunks/chunk.GQU4LYQ6.js +0 -73
  600. package/cdn-versioned/chunks/chunk.HQYSQRUN.js +0 -1
  601. package/cdn-versioned/chunks/chunk.K4WR4LYF.js +0 -11
  602. package/cdn-versioned/chunks/chunk.LI5H3QYB.js +0 -1
  603. package/cdn-versioned/chunks/chunk.NQZZHVDV.js +0 -10
  604. package/cdn-versioned/chunks/chunk.OPMM2RN5.js +0 -1
  605. package/cdn-versioned/chunks/chunk.OY3MT73P.js +0 -25
  606. package/cdn-versioned/chunks/chunk.SIC7OWQL.js +0 -1
  607. package/cdn-versioned/chunks/chunk.SXH5LQRL.js +0 -1
  608. package/cdn-versioned/chunks/chunk.TJ6RGDHH.js +0 -1
  609. package/cdn-versioned/chunks/chunk.VOX6F6LP.js +0 -1
  610. package/cdn-versioned/chunks/chunk.YN6CIEPP.js +0 -1
  611. package/dist-versioned/chunks/chunk.HFHUY7YD.js +0 -65
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solid-design-system/components",
3
3
  "description": "Solid Design System: Components",
4
- "version": "4.1.2",
4
+ "version": "4.2.0",
5
5
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
6
6
  "author": "Union Investment",
7
7
  "license": "MIT",
@@ -87,20 +87,20 @@
87
87
  "custom-element-jet-brains-integration": "^1.6.2",
88
88
  "custom-element-vs-code-integration": "^1.4.1",
89
89
  "del": "^8.0.0",
90
- "esbuild": "^0.24.2",
90
+ "esbuild": "^0.25.0",
91
91
  "esbuild-plugin-replace": "^1.4.0",
92
92
  "globby": "^14.0.2",
93
93
  "gzip-size": "^7.0.0",
94
94
  "jsonata": "^2.0.6",
95
95
  "lit-html": "^3.2.1",
96
96
  "minify-html-literals": "^1.3.5",
97
- "ora": "^8.1.1",
97
+ "ora": "^8.2.0",
98
98
  "picocolors": "^1.1.1",
99
- "playwright": "^1.49.1",
99
+ "playwright": "^1.50.1",
100
100
  "plop": "^4.0.1",
101
- "postcss": "^8.5.1",
101
+ "postcss": "^8.5.2",
102
102
  "postcss-import": "^16.1.0",
103
- "prettier": "^3.4.2",
103
+ "prettier": "^3.5.1",
104
104
  "recursive-copy": "^2.0.14",
105
105
  "sinon": "^19.0.2",
106
106
  "tailwindcss": "^3.4.17",
@@ -111,8 +111,8 @@
111
111
  "readme": "README.md",
112
112
  "meta": {
113
113
  "bundleSizeInKb": {
114
- "uncompressed": 403,
115
- "gzip": 95
114
+ "uncompressed": 411,
115
+ "gzip": 97
116
116
  }
117
117
  },
118
118
  "scripts": {
@@ -1 +0,0 @@
1
- import{a as w}from"./chunk.SXH5LQRL.js";import{b as C,c as E,d as V,e as k}from"./chunk.65NSSTJE.js";import{a as M}from"./chunk.EJKLI2Q4.js";import{a as m}from"./chunk.E2DRD2OX.js";import{a as b}from"./chunk.6HO6CE4A.js";import{a as f}from"./chunk.TWQVHGYD.js";import{a as y,b as n,c as u,d as c,h as p}from"./chunk.GQU4LYQ6.js";import{b as g,e as d}from"./chunk.IRWHG2Q4.js";import{e as o}from"./chunk.TJOCV4DC.js";var s=class extends p{constructor(){super(...arguments);this.formControlController=new C(this);this.hasSlotController=new b(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?k:t?V:E}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-radio, sd-radio-button"),l=this.getAllRadios(),i=this.value;e.disabled||(this.value=e.value,l.forEach(h=>h.checked=h===e),this.value!==i&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var v;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(r=>!r.disabled),l=(v=e.find(r=>r.checked))!=null?v:e[0],i=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,h=this.value,a=e.indexOf(l)+i;a<0&&(a=e.length-1),a>e.length-1&&(a=0),this.getAllRadios().forEach(r=>{r.checked=!1,this.hasButtonGroup||(r.tabIndex=-1)}),this.value=e[a].value,e[a].checked=!0,this.hasButtonGroup?e[a].shadowRoot.querySelector("button").focus():(e[a].tabIndex=0,e[a].focus()),this.value!==h&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),l=t.find(i=>i.checked)||t[0];l&&l.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,l;let t=this.getAllRadios();if(await Promise.all(t.map(async i=>{await i.updateComplete,i.checked=i.value===this.value,i.size=this.size,i instanceof w&&(i.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(i=>i.tagName.toLowerCase()==="sd-radio-button"),!t.some(i=>i.checked))if(this.hasButtonGroup){let i=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");i&&(i.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let i=(l=this.shadowRoot)==null?void 0:l.querySelector("sd-button-group");i&&(i.disableRole=!0)}}syncRadios(){if(customElements.get("sd-radio")&&customElements.get("sd-radio-button")){this.syncRadioElements();return}customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then(()=>this.syncRadios()),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:!!t,l=this.hasSlotController.test("tooltip"),i=d`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return d`<fieldset part="form-control" class="${f("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message">${t||l?d`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${f("p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${l?d`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${f("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?d`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-button-group":M},s.styles=[...p.styles,g`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([c("slot:not([name])")],s.prototype,"defaultSlot",2),o([c("#validation-input")],s.prototype,"validationInput",2),o([c("#invalid-message")],s.prototype,"invalidMessage",2),o([u()],s.prototype,"hasButtonGroup",2),o([u()],s.prototype,"defaultValue",2),o([u()],s.prototype,"showInvalidStyle",2),o([n({reflect:!0})],s.prototype,"size",2),o([n({type:Boolean,reflect:!0})],s.prototype,"required",2),o([n({reflect:!0})],s.prototype,"orientation",2),o([n()],s.prototype,"label",2),o([n({type:Boolean,reflect:!0})],s.prototype,"boldLabel",2),o([n()],s.prototype,"name",2),o([n({reflect:!0})],s.prototype,"value",2),o([n({reflect:!0})],s.prototype,"form",2),o([m("size",{waitUntilFirstUpdate:!0})],s.prototype,"handleSizeChange",1),o([m("showInvalidStyle",{waitUntilFirstUpdate:!0})],s.prototype,"handleInvalidChange",1),o([m("value")],s.prototype,"handleValueChange",1),s=o([y("sd-radio-group")],s);export{s as a};
@@ -1,11 +0,0 @@
1
- import{a as V}from"./chunk.6DTJTQ5Z.js";import{a as F}from"./chunk.BMK7S33Z.js";import{a as A}from"./chunk.D7TMPF3D.js";import{c as z}from"./chunk.3L472FD4.js";import{b as M}from"./chunk.65NSSTJE.js";import{a as O,c as w}from"./chunk.A3DKF5BY.js";import{a as k,b as I}from"./chunk.SNCCOKIM.js";import{a as y,d as x}from"./chunk.RQYP7MH5.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as L}from"./chunk.6HO6CE4A.js";import{a as D}from"./chunk.26YUWEYR.js";import{a as p}from"./chunk.TWQVHGYD.js";import{a as $,b as n,c as u,d as c,g as E,h as g}from"./chunk.GQU4LYQ6.js";import{b as T,e as d}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var s=class extends g{constructor(){super(...arguments);this.formControlController=new M(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new L(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=e=>d`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
2
- base:tag__base,
3
- content:tag__content,
4
- removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagKeyDown(t,e)}" @sd-remove="${t=>this.handleTagRemove(t,e)}">${e.getTextLabel()}</sd-tag>`;this.handleDocumentFocusIn=e=>{let t=e.composedPath();this&&!t.includes(this)&&this.hide()};this.handleDocumentKeyDown=e=>{let t=e.target,l=t.closest(".select__clear")!==null,a=t.closest("sd-icon-button")!==null;if(!(l||a)){if(e.key==="Escape"&&this.open&&(e.preventDefault(),e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),e.key==="Enter"||e.key===" "&&this.typeToSelectString===""){if(e.preventDefault(),e.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let h=this.getAllOptions(),o=h.indexOf(this.currentOption),r=Math.max(0,o);if(e.preventDefault(),!this.open&&(this.show(),this.currentOption))return;e.key==="ArrowDown"?(r=o+1,r>h.length-1&&(r=0)):e.key==="ArrowUp"?(r=o-1,r<0&&(r=h.length-1)):e.key==="Home"?r=0:e.key==="End"&&(r=h.length-1),this.setCurrentOption(h[r])}if(e.key.length===1||e.key==="Backspace"){let h=this.getAllOptions();if(e.metaKey||e.ctrlKey||e.altKey)return;if(!this.open){if(e.key==="Backspace")return;this.show()}e.stopPropagation(),e.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),e.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=e.key.toLowerCase();for(let o of h)if(o.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(o);break}}}};this.handleDocumentMouseDown=e=>{let t=e.composedPath();this&&!t.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(e,t){var l,a,h;if(e.key==="Backspace"&&this.multiple){e.preventDefault(),e.stopPropagation();let o=(l=e.currentTarget)==null?void 0:l.parentElement,r=(a=o==null?void 0:o.previousElementSibling)==null?void 0:a.querySelector("sd-tag"),m=(h=o==null?void 0:o.nextElementSibling)==null?void 0:h.querySelector("sd-tag");this.handleTagRemove(new CustomEvent("sd-remove"),t),this.updateComplete.then(()=>{m?m.focus():r?r.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(e){e.key==="Backspace"&&this.multiple&&(e.preventDefault(),e.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelectorAll("sd-tag");t&&t.length>0?t==null||t[(t==null?void 0:t.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(e){let l=e.composedPath().some(a=>a instanceof HTMLSlotElement&&a.name==="removable-indicator");this.disabled||l||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(e){e.stopPropagation(),this.handleDocumentKeyDown(e)}handleClearClick(e){e.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}handleOptionClick(e){let l=e.target.closest("sd-option"),a=this.value;l&&!l.disabled&&(this.multiple?this.toggleOptionSelection(l):this.setSelectedOptions(l),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==a&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){let e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value],l=[];customElements.get("sd-option")?(e.forEach(a=>{this.multiple&&(a.checkbox=!0),l.push(a.value)}),this.setSelectedOptions(e.filter(a=>t.includes(a.value)))):customElements.whenDefined("sd-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(e,t){e.stopPropagation(),t||this.clearSelect(),t&&!this.disabled&&(this.toggleOptionSelection(t,!1),this.deletedTagLabel=this.localize.term("removed",t.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(e){this.getAllOptions().forEach(l=>{l.current=!1,l.tabIndex=-1}),e&&(this.currentOption=e,e.current=!0,e.tabIndex=0,e.focus())}setSelectedOptions(e){let t=this.getAllOptions(),l=Array.isArray(e)?e:[e];t.forEach(a=>a.selected=!1),l.length&&l.forEach(a=>a.selected=!0),Array.isArray(e)?this.selectionChanged():this.selectionChanged(e)}toggleOptionSelection(e,t){t===!0||t===!1?e.selected=t:e.selected=!e.selected,Array.isArray(e)?this.selectionChanged():this.selectionChanged(e)}selectionChanged(e){var t,l,a,h;e&&this.multiple?this.selectedOptions.find(o=>o.value===e.value)?this.selectedOptions=this.selectedOptions.filter(o=>o.value!==e.value):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=this.getAllOptions().filter(o=>o.selected),this.multiple?(this.value=this.selectedOptions.map(o=>o.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(l=(t=this.selectedOptions[0])==null?void 0:t.value)!=null?l:"",this.displayLabel=(h=(a=this.selectedOptions[0])==null?void 0:a.getTextLabel())!=null?h:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((e,t)=>{if(t<this.maxOptionsVisible||this.maxOptionsVisible<=0){let l=this.getTag(e,t);return d`<div @sd-remove="${a=>this.handleTagRemove(a,e)}">${typeof l=="string"?k(l):l}</div>`}return[d``]}):[d`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
6
- base:tag__base,
7
- content:tag__content,
8
- removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagMaxOptionsKeyDown(e)}" @sd-remove="${e=>this.handleTagRemove(e)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(e){let t=e.detail;t&&(this.currentPlacement=t)}handleUseTagsChange(){let e=this.getAllOptions();customElements.get("sd-option")&&e.forEach(t=>{t.checkbox=this.multiple})}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await x(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:e,options:t}=w(this,"select.show",{dir:this.localize.dir()});await y(this.popup.popup,e,t),this.currentOption&&z(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await x(this);let{keyframes:e,options:t}=w(this,"select.hide",{dir:this.localize.dir()});await y(this.popup.popup,e,t),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(e=>{e.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(e.filter(l=>t.includes(l.value)))}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var e;return(e=this.valueInput)==null?void 0:e.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.displayInput.focus(e)}blur(){this.displayInput.blur()}render(){let e={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},t=this.label?!0:!!e.label,l=this.helpText?!0:!!e.helpText,a=this.clearable&&!this.disabled,h=!!e.tooltip,o=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",r=this.disabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return d`<div part="form-control" class="${p("relative text-left",r,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span> ${t||h?d`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${t&&"inline-block"}" aria-hidden="${t?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${e.tooltip?d`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${p("relative w-full bg-white",o==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${p("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[o],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${p("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
- popup:popup__content,
11
- "><div part="combobox" class="${p("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${p("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",r,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?d`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(v=>v==null?void 0:v.getTextLabel()).join(", ")}</div><input class="${p("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",r)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?d`<button part="clear-button" class="${p("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${p("text-icon-fill-neutral-800",b)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?d`<sd-icon part="invalid-icon" class="${p(m,b,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?d`<sd-icon part="valid-icon" class="${p("flex-shrink-0 text-success",m,b)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${p("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",b)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${p("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${l?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-icon":I,"sd-popup":F,"sd-tag":V},s.styles=[...g.styles,T`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],i([E({selector:"sd-option"})],s.prototype,"_optionsInDefaultSlot",2),i([c("sd-popup")],s.prototype,"popup",2),i([c('[part="combobox"]')],s.prototype,"combobox",2),i([c('[part="display-input"]')],s.prototype,"displayInput",2),i([c(".value-input")],s.prototype,"valueInput",2),i([c('[part="listbox"]')],s.prototype,"listbox",2),i([c("#invalid-message")],s.prototype,"invalidMessage",2),i([u()],s.prototype,"hasHover",2),i([u()],s.prototype,"displayLabel",2),i([u()],s.prototype,"deletedTagLabel",2),i([u()],s.prototype,"hasFocus",2),i([u()],s.prototype,"currentOption",2),i([u()],s.prototype,"selectedOptions",2),i([u()],s.prototype,"showValidStyle",2),i([u()],s.prototype,"showInvalidStyle",2),i([A()],s.prototype,"defaultValue",2),i([n({type:Boolean,reflect:!0})],s.prototype,"open",2),i([n({reflect:!0})],s.prototype,"size",2),i([n({reflect:!0})],s.prototype,"placement",2),i([n()],s.prototype,"label",2),i([n()],s.prototype,"placeholder",2),i([n({attribute:"max-options-tag-label"})],s.prototype,"maxOptionsTagLabel",2),i([n({type:Boolean,reflect:!0})],s.prototype,"disabled",2),i([n({attribute:"help-text"})],s.prototype,"helpText",2),i([u()],s.prototype,"currentPlacement",2),i([n({type:Boolean})],s.prototype,"clearable",2),i([n({type:Boolean,reflect:!0})],s.prototype,"multiple",2),i([n({type:Boolean,reflect:!0})],s.prototype,"useTags",2),i([n({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),i([n({reflect:!0})],s.prototype,"form",2),i([n()],s.prototype,"name",2),i([n({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>e.join(" ")}})],s.prototype,"value",2),i([n({type:Boolean,reflect:!0})],s.prototype,"required",2),i([n({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),i([n({type:Boolean})],s.prototype,"hoist",2),i([n()],s.prototype,"getTag",2),i([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),i([f("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),i([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),i([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),i([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),s=i([$("sd-select")],s);O("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});O("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
@@ -1,3 +0,0 @@
1
- import{b as d}from"./chunk.5CK64GWQ.js";import{a as f}from"./chunk.D7TMPF3D.js";import{b as m}from"./chunk.65NSSTJE.js";import{a as p}from"./chunk.HE2LNCWW.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as s}from"./chunk.TWQVHGYD.js";import{a as c,b as r,c as u,d as a,h as o}from"./chunk.GQU4LYQ6.js";import{b as h,e as l}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:i=>i.checked?i.value||"on":void 0,defaultValue:i=>i.defaultChecked,setValue:(i,b)=>i.checked=b});this.title="";this.name="";this.size="lg";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i),this.invalidMessage.textContent=i.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(i){this.input.focus(i)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this.formControlController.updateValidity()}render(){let i=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return l`<label part="base" class="${s("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${s(`relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4
2
- peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
3
- peer-focus-visible:outline-primary`,{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[i])}">${this.checked?l`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?l`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${s("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...o.styles,h`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],t([a('input[type="checkbox"]')],e.prototype,"input",2),t([a("#invalid-message")],e.prototype,"invalidMessage",2),t([r()],e.prototype,"title",2),t([r()],e.prototype,"name",2),t([r()],e.prototype,"value",2),t([r({reflect:!0})],e.prototype,"size",2),t([r({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([r({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([r({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),t([f("checked")],e.prototype,"defaultChecked",2),t([r({reflect:!0})],e.prototype,"form",2),t([r({type:Boolean,reflect:!0})],e.prototype,"required",2),t([u()],e.prototype,"showInvalidStyle",2),t([n("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([c("sd-checkbox")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a as i}from"./chunk.HE2LNCWW.js";import{a as f}from"./chunk.6HO6CE4A.js";import{a as l}from"./chunk.TWQVHGYD.js";import{a as h,b as s,d as m,h as o}from"./chunk.GQU4LYQ6.js";import{b as n,e as a}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new f(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(r){this.button.focus(r)}blur(){this.button.blur()}render(){let r={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return a`<a part="base" class="${l("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${i(this.href||void 0)}" target="${i(this.target||void 0)}" download="${i(this.download)}" rel="${i(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${l("inline",r["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${l("inline",r["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};t.styles=[...o.styles,n`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],e([m("a")],t.prototype,"button",2),e([s({type:Boolean,reflect:!0})],t.prototype,"standalone",2),e([s({reflect:!0})],t.prototype,"size",2),e([s({type:Boolean,reflect:!0})],t.prototype,"inverted",2),e([s()],t.prototype,"href",2),e([s()],t.prototype,"target",2),e([s()],t.prototype,"download",2),t=e([h("sd-link")],t);export{t as a};
@@ -1,11 +0,0 @@
1
- import{a as U}from"./chunk.6DTJTQ5Z.js";import{a as K}from"./chunk.BMK7S33Z.js";import{a as A}from"./chunk.D7TMPF3D.js";import{a as H}from"./chunk.X2GM34WQ.js";import{a as L,d as P,e as R,f as w}from"./chunk.W7A3TU2Z.js";import{c as B}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.65NSSTJE.js";import{a as T,c as E}from"./chunk.A3DKF5BY.js";import{a as $,b as F}from"./chunk.SNCCOKIM.js";import{a as S,d as C}from"./chunk.RQYP7MH5.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as D}from"./chunk.6HO6CE4A.js";import{a as M}from"./chunk.26YUWEYR.js";import{a as r}from"./chunk.TWQVHGYD.js";import{a as k,b as o,c as h,d as c,h as I}from"./chunk.GQU4LYQ6.js";import{b as V,e as d}from"./chunk.IRWHG2Q4.js";import{e as a}from"./chunk.TJOCV4DC.js";var s=class extends I{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new M(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=H;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),l=w(t.getTextLabel()),n=w(e);return i.includes(n)||l.includes(n)};this.getTag=t=>d`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
2
- base:tag__base,
3
- content:tag__content,
4
- removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{if(t.target.closest(".combobox__clear")===null){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(t.key==="Enter"){let l=this.getCurrentOption(),n=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!n){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||l!=null&&l.disabled)return;if(l&&!l.disabled){let p=this.value;this.multiple?(this.toggleOptionSelection(l),this.lastOption=l,this.setOrderedSelectedOptions(l),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(l),this.setSelectedOptions(l)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==p&&(this.emit("sd-input"),this.emit("sd-change"))})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let i=this.displayInput.value,l=this.getOption(e,i);return d`${typeof l=="string"?$(l):l}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-option"&&t(i)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let i=this.getTag(t,e);return d`<div @sd-remove="${l=>this.handleTagRemove(l,t)}">${typeof i=="string"?$(i):i}</div>`}return[d``]}):[d`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
6
- base:tag__base,
7
- content:tag__content,
8
- removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){let i=t.composedPath().some(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-option"),l=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==l&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),l=e.indexOf(i),n=Math.max(0,l);if(t){let p=l+1;n=p>e.length-1?0:p}else{let p=l-1;n=p<0?e.length-1:p}this.setCurrentOption(e[n]),B(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t){let e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach(i=>{i.current=!1,i.setAttribute("aria-selected","false")}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){let l=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());l&&(l.selected=e!=null?e:!l.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,l;let t=this.selectedOptions.some(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((l=this.selectedOptions[0])==null?void 0:l.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var y,O,m;let l=i.cloneNode(!0);if(l.current=l.value===((y=this.lastOption)==null?void 0:y.value),l.selected=i.selected,l.checkbox=i.checkbox,l.size=i.size,!(((O=i.parentElement)==null?void 0:O.tagName.toLowerCase())==="sd-optgroup"))return l;let p=i.parentElement,g=(m=p.querySelector('[slot="label"]'))==null?void 0:m.cloneNode(!0),u=e.find(b=>b.id===p.id);if(u){u==null||u.appendChild(l),g&&(u==null||u.appendChild(g));return}let v=p.cloneNode();return v.appendChild(l),g&&v.appendChild(g),e.push(v),v}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&!this.disabled){this.emit("sd-show"),this.addOpenListeners(),await C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:l}=E(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,l),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await C(this);let{keyframes:t,options:e}=E(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,Promise.race([x(this,"sd-after-show"),x(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,x(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return P(L(this.defaultSlot)).flat()}getSlottedOptGroups(){return R(L(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((l,n)=>{this.multiple&&(l.checkbox=!0),l.id=l.id||`sd-combobox-option-${n}`}),e.forEach((l,n)=>{l.id=l.id||`sd-combobox-optgroup-${n}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),l=this.label?!0:!!e,n=this.helpText?!0:!!i,p=this.clearable&&!this.disabled,g=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",u=this.disabled?"cursor-not-allowed":"cursor-pointer",v=this.disabled?"text-neutral-500":"text-primary",y={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],O={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return d`<div part="form-control" class="${r("relative text-left",u,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${l&&"inline-block mb-2"}" aria-hidden="${!l}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${r("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[g],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${r("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
- popup:popup__content,
11
- "><div part="combobox" class="${r("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}">${t.left?d`<slot part="left" name="left" class="${r("inline-flex",O,v,m)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?d`<div part="tags" class="${r("flex items-center gap-1",O)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${r("appearance-none outline-none bg-transparent flex-auto min-w-0",u,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(b=>b==null?void 0:b.getTextLabel()).join(", ")}</div><input class="${r("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",u)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${p?d`<button part="clear-button" class="${r("flex justify-center",y,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${r("text-icon-fill-neutral-800",m)}" name="closing-round" library="system"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?d`<sd-icon part="invalid-icon" class="${r(y,m,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?d`<sd-icon part="valid-icon" class="${r("flex-shrink-0 text-success",y,m)}" library="system" name="status-check"></sd-icon>`:""}<slot name="right" part="right" class="${r("inline-flex ml-2 leading-[0]",this.disabled?"text-neutral-500":"text-primary",m)}"><sd-icon class="${r("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${r("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?d`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-icon":F,"sd-popup":K,"sd-tag":U},s.styles=[...I.styles,V`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],a([c("sd-popup")],s.prototype,"popup",2),a([c('[part="combobox"]')],s.prototype,"combobox",2),a([c('[part="display-input"]')],s.prototype,"displayInput",2),a([c(".value-input")],s.prototype,"valueInput",2),a([c('[part="listbox"]')],s.prototype,"listbox",2),a([c('[part="tags"]')],s.prototype,"tagWrapper",2),a([c('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),a([c("slot:not([name])")],s.prototype,"defaultSlot",2),a([c("#invalid-message")],s.prototype,"invalidMessage",2),a([h()],s.prototype,"hasHover",2),a([h()],s.prototype,"hasFocus",2),a([h()],s.prototype,"displayInputValue",2),a([h()],s.prototype,"selectedTextLabel",2),a([h()],s.prototype,"selectedOptions",2),a([h()],s.prototype,"filteredOptions",2),a([h()],s.prototype,"allOptions",2),a([h()],s.prototype,"lastOption",2),a([h()],s.prototype,"showValidStyle",2),a([h()],s.prototype,"showInvalidStyle",2),a([o()],s.prototype,"name",2),a([o({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),a([A()],s.prototype,"defaultValue",2),a([o({reflect:!0})],s.prototype,"size",2),a([o()],s.prototype,"placeholder",2),a([o({attribute:"max-options-tag-label"})],s.prototype,"maxOptionsTagLabel",2),a([o({reflect:!0,type:Boolean})],s.prototype,"disabled",2),a([o({type:Boolean})],s.prototype,"clearable",2),a([o({reflect:!0,type:Boolean})],s.prototype,"open",2),a([o({type:Boolean})],s.prototype,"hoist",2),a([o()],s.prototype,"label",2),a([o({reflect:!0})],s.prototype,"placement",2),a([o({attribute:"help-text"})],s.prototype,"helpText",2),a([o({reflect:!0})],s.prototype,"form",2),a([o({reflect:!0,type:Boolean})],s.prototype,"required",2),a([h()],s.prototype,"currentPlacement",2),a([o()],s.prototype,"getOption",2),a([o({type:Boolean,reflect:!0})],s.prototype,"multiple",2),a([o({type:Boolean,reflect:!0})],s.prototype,"useTags",2),a([o({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),a([o({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),a([o()],s.prototype,"filter",2),a([o()],s.prototype,"getTag",2),a([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),a([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),a([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),a([f("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),a([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),a([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),a([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),s=a([k("sd-combobox")],s);T("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});T("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk.HJGLYEWV.js";var n={$code:"de",$name:"Deutsch",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio-Player",carousel:"Karussell",clearEntry:"Eingabe l\xF6schen",close:"Schlie\xDFen",comboboxDefaultPlaceholder:"Bitte suchen und ausw\xE4hlen",copy:"Kopieren",currentValue:"Aktueller Wert",goToSlide:(e,o)=>`Zu Folie ${e} von ${o} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",mute:"Stummschalten",nextSlide:"N\xE4chste Folie",noResults:"Keine Ergebnisse gefunden",numOptionsSelected:e=>e===0?"":`Optionen ausgew\xE4hlt (${e})`,pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",previousSlide:"Vorherige Folie",progress:"Fortschritt",remove:"Entfernen",removed:e=>`${e} entfernt`,resize:"Gr\xF6\xDFe \xE4ndern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm ausw\xE4hlen",selectDefaultPlaceholder:"Bitte ausw\xE4hlen",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(e,o)=>`Folie ${e} von ${o}`,tagsSelected:"Optionen ausgew\xE4hlt",toggleColorFormat:"Farbformat umschalten",unmute:"Unmute"};r(n);var t=n;export{t as a};
@@ -1,10 +0,0 @@
1
- import{a as H,b as U}from"./chunk.5CK64GWQ.js";import{a as B}from"./chunk.D7TMPF3D.js";import{b as N}from"./chunk.65NSSTJE.js";import{a as d}from"./chunk.HE2LNCWW.js";import{a as v,b as x,c as F}from"./chunk.SPDB3L7V.js";import{a as y}from"./chunk.E2DRD2OX.js";import{a as z}from"./chunk.6HO6CE4A.js";import{a as L}from"./chunk.26YUWEYR.js";import{a as n}from"./chunk.TWQVHGYD.js";import{a as M,b as a,c as f,d as w,h as C}from"./chunk.GQU4LYQ6.js";import{b as T,e as h,h as V,i as _}from"./chunk.IRWHG2Q4.js";import{a as E,e as i}from"./chunk.TJOCV4DC.js";var b=(r,l)=>{var s;let e=r._$AN;if(e===void 0)return!1;for(let o of e)(s=o._$AO)==null||s.call(o,l,!1),b(o,l);return!0},g=r=>{let l,e;do{if((l=r._$AM)===void 0)break;e=l._$AN,e.delete(r),r=l}while((e==null?void 0:e.size)===0)},O=r=>{for(let l;l=r._$AM;r=l){let e=l._$AN;if(e===void 0)l._$AN=e=new Set;else if(e.has(r))break;e.add(r),Q(l)}};function J(r){this._$AN!==void 0?(g(this),this._$AM=r,O(this)):this._$AM=r}function j(r,l=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(l)if(Array.isArray(s))for(let p=e;p<s.length;p++)b(s[p],!1),g(s[p]);else s!=null&&(b(s,!1),g(s));else b(this,r)}var Q=r=>{var l,e;r.type==v.CHILD&&((l=r._$AP)!=null||(r._$AP=j),(e=r._$AQ)!=null||(r._$AQ=J))},$=class extends F{constructor(){super(...arguments),this._$AN=void 0}_$AT(l,e,s){super._$AT(l,e,s),O(this),this.isConnected=l._$AU}_$AO(l,e=!0){var s,o;l!==this.isConnected&&(this.isConnected=l,l?(s=this.reconnected)==null||s.call(this):(o=this.disconnected)==null||o.call(this)),e&&(b(this,l),g(this))}setValue(l){if(H(this._$Ct))this._$Ct._$AI(l,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=l,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var k=class extends ${constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==v.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return _}update(e,[s]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=E({},s),this.host.addEventListener("pointerdown",this.handlePointerDown)),V}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var s;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(s=this.observer)==null||s.disconnect(),this.observer=new MutationObserver(o=>{o.forEach(p=>{p.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},A=x(k);var K,G=(K=navigator.userAgentData)==null?void 0:K.brands.some(r=>r.brand.includes("Chromium")),W=G?!1:navigator.userAgent.includes("Firefox"),t=class extends C{constructor(){super(...arguments);this.formControlController=new N(this);this.hasSlotController=new z(this,"help-text","label","left","right","message","placeholder");this.localize=new L(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,s;return(s=(e=this.input)==null?void 0:e.valueAsDate)!=null?s:null}set valueAsDate(e){let s=document.createElement("input");s.type="date",s.valueAsDate=e,this.value=s.value}get valueAsNumber(){var e,s;return(s=(e=this.input)==null?void 0:e.valueAsNumber)!=null?s:parseFloat(this.value)}set valueAsNumber(e){let s=document.createElement("input");s.type="number",s.valueAsNumber=e,this.value=s.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let s=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!s&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,s,o="none"){this.input.setSelectionRange(e,s,o)}setRangeText(e,s,o,p){this.input.setRangeText(e,s,o,p),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},s=this.label?!0:!!e.label,o=this.helpText?!0:!!e.helpText,p=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),q=!!e.tooltip,D=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",P=this.size==="sm"?"text-sm":"text-base",R={disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[D],m=this.disabled?"text-neutral-500":"text-primary",u={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],c={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return h`<div part="form-control" class="${n(this.disabled&&"pointer-events-none")}">${s||q?h`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${n(s?"inline-block":"hidden",P)}" for="input" aria-hidden="${s?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?h`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="relative w-full"><div part="border" class="${n("absolute w-full h-full pointer-events-none border rounded-default",R)}"></div><div part="base" class="${n("px-4 flex flex-row items-center rounded-default transition-all",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",D==="disabled"?"text-neutral-500":"text-black")}">${e.left?h`<slot name="left" part="left" class="${n("inline-flex",this.size==="sm"?"mr-1":"mr-2",m,c)}"></slot>`:""} <input part="input" id="input" class="${n("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",this.size==="sm"?"h-6":"h-8",P)}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${d(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${d(this.placeholder)}" minlength="${d(this.minlength)}" maxlength="${d(this.maxlength)}" min="${d(this.min)}" max="${d(this.max)}" step="${d(this.step)}" .value="${U(this.value)}" autocapitalize="${d(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${d(this.type==="password"?"off":this.autocomplete)}" autocorrect="${d(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${d(this.pattern)}" enterkeyhint="${d(this.enterkeyhint)}" inputmode="${d(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${p?h`<button part="clear-button" class="${n("flex justify-center ",u)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${n("icon-fill-neutral-800",c)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?h`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?h`<slot name="show-password-icon"><sd-icon class="${n(m,u,c)}" library="system" name="eye"></sd-icon></slot>`:h`<slot name="hide-password-icon"><sd-icon class="${n(m,u,c)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!W?h`<sd-icon class="${n(m,u,c)}" library="system" name="calendar"></sd-icon>`:""} ${this.type==="time"?h`<sd-icon class="${n(m,u,c)}" library="system" name="clock"></sd-icon>`:""} ${this.type==="search"?h`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${n(m,u,c)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?h`<sd-icon part="invalid-icon" class="${n("text-error",u,c)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?h`<sd-icon class="${n("text-success flex-shrink-0",u,c)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${e.right?h`<slot name="right" part="right" class="${n("inline-flex",m,u,c)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?h`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${A({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${n(m,u,c)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${A({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${n(m,u,c)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${n("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};t.styles=[...C.styles,T`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`],i([w("#input")],t.prototype,"input",2),i([w("#invalid-message")],t.prototype,"invalidMessage",2),i([f()],t.prototype,"hasFocus",2),i([f()],t.prototype,"showValidStyle",2),i([f()],t.prototype,"showInvalidStyle",2),i([a({reflect:!0})],t.prototype,"type",2),i([a({reflect:!0})],t.prototype,"size",2),i([a()],t.prototype,"inputmode",2),i([a()],t.prototype,"value",2),i([B()],t.prototype,"defaultValue",2),i([a()],t.prototype,"placeholder",2),i([a()],t.prototype,"label",2),i([a({attribute:"help-text"})],t.prototype,"helpText",2),i([a({type:Boolean})],t.prototype,"clearable",2),i([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([a({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([a({attribute:"password-toggle",type:Boolean})],t.prototype,"passwordToggle",2),i([a({attribute:"password-visible",type:Boolean})],t.prototype,"passwordVisible",2),i([a({attribute:"spin-buttons",type:Boolean})],t.prototype,"spinButtons",2),i([a({type:Number})],t.prototype,"minlength",2),i([a({type:Number})],t.prototype,"maxlength",2),i([a()],t.prototype,"min",2),i([a()],t.prototype,"max",2),i([a({reflect:!0})],t.prototype,"form",2),i([a()],t.prototype,"name",2),i([a()],t.prototype,"title",2),i([a({type:Boolean,reflect:!0})],t.prototype,"required",2),i([a()],t.prototype,"pattern",2),i([a()],t.prototype,"step",2),i([a()],t.prototype,"autocapitalize",2),i([a()],t.prototype,"autocorrect",2),i([a()],t.prototype,"autocomplete",2),i([a({type:Boolean})],t.prototype,"autofocus",2),i([a()],t.prototype,"enterkeyhint",2),i([a({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([a({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([y("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([y("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([y("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=i([M("sd-input")],t);export{t as a};
2
- /*! Bundled license information:
3
-
4
- lit-html/async-directive.js:
5
- (**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- *)
10
- */
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk.E2DRD2OX.js";import{a as d}from"./chunk.6HO6CE4A.js";import{a}from"./chunk.TWQVHGYD.js";import{a as m,b as o,h as n}from"./chunk.GQU4LYQ6.js";import{b as h,e as l}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new d(this,"label");this.size="lg";this.orientation="vertical";this.label=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async s=>{await s.updateComplete,s.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let i=this.hasSlotController.test("label"),s=this.label?!0:i,b=l`<slot @slotchange="${this.syncCheckboxes}"></slot>`,c=this.hasSlotController.test("tooltip");return l`<fieldset part="form-control" class="${a("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${s||c?l`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a("p-0 font-bold leading-normal text-black",s?"flex":"hidden")}" aria-hidden="${s?"false":"true"}"><slot name="label">${this.label}</slot></label> ${c?l`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${b}</div></fieldset>`}};t.styles=[...n.styles,h`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],e([o({reflect:!0})],t.prototype,"size",2),e([o({reflect:!0})],t.prototype,"orientation",2),e([o()],t.prototype,"label",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([m("sd-checkbox-group")],t);export{t as a};
@@ -1,25 +0,0 @@
1
- import{b as y,c as g}from"./chunk.65NSSTJE.js";import{a}from"./chunk.HE2LNCWW.js";import{a as d,b as m}from"./chunk.5ZILM4TA.js";import{a as b}from"./chunk.E2DRD2OX.js";import{a as v}from"./chunk.6HO6CE4A.js";import{a as n}from"./chunk.TWQVHGYD.js";import{a as h,b as i,c as p,d as f,g as u,h as l}from"./chunk.GQU4LYQ6.js";import{b as c}from"./chunk.IRWHG2Q4.js";import{e as r}from"./chunk.TJOCV4DC.js";var t=class extends l{constructor(){super(...arguments);this.formControlController=new y(this,{form:e=>{if(e.hasAttribute("form")){let s=e.getRootNode(),o=e.getAttribute("form");return s.getElementById(o)}return e.closest("form")}});this.hasSlotController=new v(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:g}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(e){if(this.disabled||this.loading){e.preventDefault(),e.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),s=e?d`a`:d`button`,o={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return m`<${s} part="base" class="${n(`font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline
2
- w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center
3
- border transition-colors duration-200 ease-in-out rounded-default
4
- select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",o["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?`text-primary bg-white border-transparent
5
- hover:text-primary-500 hover:bg-primary-100
6
- active:text-primary-800 active:bg-primary-200
7
- disabled:bg-neutral-600 disabled:text-white`:`text-white bg-primary border-transparent
8
- hover:text-primary-100 hover:bg-primary-500
9
- active:text-primary-200 active:bg-primary-800
10
- disabled:bg-neutral-500`,secondary:this.inverted?`text-white border-white
11
- hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100
12
- active:text-primary-200 active:bg-primary-800 active:border-primary-200
13
- disabled:text-neutral-600 disabled:border-neutral-600`:`text-primary border-primary
14
- hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100
15
- active:text-primary-800 active:border-primary-800 active:bg-primary-200
16
- disabled:text-neutral-500 disabled:border-neutral-500`,tertiary:this.inverted?`text-white border-transparent
17
- hover:text-primary-100 hover:bg-primary-500
18
- active:text-primary-200 active:bg-primary-800
19
- disabled:text-neutral-600`:`text-primary border-transparent
20
- hover:text-primary-500 hover:bg-primary-100
21
- active:text-primary-800 active:bg-primary-200
22
- disabled:text-neutral-500`,cta:`text-white bg-accent-500 border-transparent
23
- hover:bg-accent-550
24
- active:bg-accent-700
25
- ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${a(e?void 0:this.disabled)}" type="${a(e?void 0:this.type)}" title="${this.title}" name="${a(e?void 0:this.name)}" value="${a(e?void 0:this.value)}" href="${a(e?this.href:void 0)}" target="${a(e?this.target:void 0)}" download="${a(e?this.download:void 0)}" rel="${a(e&&this.target?"noreferrer noopener":void 0)}" role="${a(e?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${n("flex flex-auto items-center pointer-events-none",o["icon-only"]&&"hidden",this.loading&&"invisible",o["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${n(o["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${n("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",o["icon-only"]&&"hidden",o["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?m`<sd-spinner class="${n("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${s}>`}};t.styles=[...l.styles,c`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/2)}`],r([f("a, button")],t.prototype,"button",2),r([u({selector:"sd-icon"})],t.prototype,"_iconsInDefaultSlot",2),r([p()],t.prototype,"invalid",2),r([i()],t.prototype,"title",2),r([i({reflect:!0})],t.prototype,"variant",2),r([i({type:Boolean,reflect:!0})],t.prototype,"inverted",2),r([i({reflect:!0})],t.prototype,"size",2),r([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),r([i({type:Boolean,reflect:!0})],t.prototype,"loading",2),r([i()],t.prototype,"type",2),r([i()],t.prototype,"name",2),r([i()],t.prototype,"value",2),r([i()],t.prototype,"href",2),r([i()],t.prototype,"target",2),r([i()],t.prototype,"download",2),r([i()],t.prototype,"form",2),r([i({attribute:"formaction"})],t.prototype,"formAction",2),r([i({attribute:"formenctype"})],t.prototype,"formEnctype",2),r([i({attribute:"formmethod"})],t.prototype,"formMethod",2),r([i({attribute:"formnovalidate",type:Boolean})],t.prototype,"formNoValidate",2),r([i({attribute:"formtarget"})],t.prototype,"formTarget",2),r([b("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=r([h("sd-button")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{b as $}from"./chunk.5CK64GWQ.js";import{a as C}from"./chunk.D7TMPF3D.js";import{b as x}from"./chunk.65NSSTJE.js";import{a as s}from"./chunk.HE2LNCWW.js";import{a as d}from"./chunk.E2DRD2OX.js";import{a as g}from"./chunk.6HO6CE4A.js";import{a as r}from"./chunk.TWQVHGYD.js";import{a as y,b as i,c as h,d as c,h as m}from"./chunk.GQU4LYQ6.js";import{b as v,e as n}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new x(this);this.hasSlotController=new g(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.readonly=!1;this.form="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,a,o="none"){this.textarea.setSelectionRange(l,a,o)}setRangeText(l,a,o,u){this.textarea.setRangeText(l,a,o,u),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},a=this.label?!0:!!l.label,o=this.helpText?!0:!!l.helpText,u=!!l.tooltip,p=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",b={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return n`<div part="form-control" class="flex flex-col h-full text-left">${a||u?n`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${r(a?"inline-block":"hidden",f)}" for="input" aria-hidden="${a?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?n`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${r("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${r("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[p])}"></div><div part="base" class="${r("textarea h-full px-4 flex items-top rounded-default group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],!this.disabled&&!this.readonly?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",p==="disabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${r("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${s(this.name)}" .value="${$(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${s(this.placeholder)}" minlength="${s(this.minlength)}" maxlength="${s(this.maxlength)}" rows="${s(this.rows)}" autocapitalize="${s(this.autocapitalize)}" autocorrect="${s(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${s(this.spellcheck)}" enterkeyhint="${s(this.enterkeyhint)}" inputmode="${s(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?n`<sd-icon class="${r("text-error absolute right-4 bg-white group-hover:bg-neutral-200",b)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?n`<sd-icon class="${r("text-success absolute right-4 bg-white group-hover:bg-neutral-200",b)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${r("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};t.styles=[...m.styles,v`:host{display:block;height:100%}:host([required]) #label:after{content:" *"}.no-scrollbar::-webkit-scrollbar{display:none}`],e([c("#input")],t.prototype,"textarea",2),e([c("#invalid-message")],t.prototype,"invalidMessage",2),e([h()],t.prototype,"hasFocus",2),e([h()],t.prototype,"showValidStyle",2),e([h()],t.prototype,"showInvalidStyle",2),e([i()],t.prototype,"title",2),e([i()],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({reflect:!0})],t.prototype,"size",2),e([i()],t.prototype,"label",2),e([i({attribute:"help-text"})],t.prototype,"helpText",2),e([i()],t.prototype,"placeholder",2),e([i({type:Number})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({type:Number})],t.prototype,"minlength",2),e([i({type:Number})],t.prototype,"maxlength",2),e([i()],t.prototype,"autocapitalize",2),e([i()],t.prototype,"autocorrect",2),e([i()],t.prototype,"autocomplete",2),e([i({type:Boolean})],t.prototype,"autofocus",2),e([i()],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i()],t.prototype,"inputmode",2),e([C()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=e([y("sd-textarea")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a}from"./chunk.E2DRD2OX.js";import{a as r}from"./chunk.TWQVHGYD.js";import{a as o,b as s,c as l,h as n}from"./chunk.GQU4LYQ6.js";import{b as h,e as i}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return i`<span part="base" class="${r("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${r("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?i`<span part="checked" class="${r("rounded-full inline-flex text-white bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${r("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};e.styles=[...n.styles,h`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],t([l()],e.prototype,"checked",2),t([l()],e.prototype,"hasFocus",2),t([s({reflect:!0})],e.prototype,"size",2),t([s({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([s()],e.prototype,"value",2),t([s({type:Boolean,reflect:!0})],e.prototype,"invalid",2),t([a("checked")],e.prototype,"handleCheckedChange",1),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([o("sd-radio")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk.HJGLYEWV.js";var l={$code:"en",$name:"English",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio Player",clearEntry:"Clear entry",close:"Close",comboboxDefaultPlaceholder:"Please search and select",copy:"Copy",carousel:"Carousel",currentValue:"Current value",goToSlide:(e,r)=>`Go to slide ${e} of ${r}`,hidePassword:"Hide password",loading:"Loading",mute:"Mute",nextSlide:"Next slide",noResults:"No results found",numOptionsSelected:e=>e===0?"":`Options Selected (${e})`,pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",removed:e=>`${e} removed`,resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:e=>`Slide ${e}`,tagsSelected:"Options selected",toggleColorFormat:"Toggle color format",unmute:"Unmute"};o(l);var t=l;export{t as a};
@@ -1 +0,0 @@
1
- import{a as h,c as m}from"./chunk.A3DKF5BY.js";import{a as d,d as c}from"./chunk.RQYP7MH5.js";import{a as u}from"./chunk.KLRPP4NQ.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as w}from"./chunk.26YUWEYR.js";import{a as o}from"./chunk.TWQVHGYD.js";import{a as f,b as s,d as b,h as l}from"./chunk.GQU4LYQ6.js";import{b as p,e as r}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var y=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),v=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"}),t=class extends l{constructor(){super(...arguments);this.localize=new w(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await c(this.base),this.base.hidden=!1;let{keyframes:a,options:i}=m(this,"notification.show",{dir:this.localize.dir()});await d(this.base,a,i),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await c(this.base);let{keyframes:a,options:i}=m(this,"notification.hide",{dir:this.localize.dir()});await d(this.base,a,i),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,u(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,u(this,"sd-after-hide")}async toast(){return new Promise(a=>{let i=this.toastStack==="bottom-center"?v:y;i.parentElement===null&&document.body.append(i),i.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{i.removeChild(this),a(),i.querySelector("sd-notification")===null&&i.remove()},{once:!0})})}render(){return r`<div part="base" class="${o("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${o("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${o("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?r`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?r`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${o("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};t.styles=[...l.styles,p`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],e([b('[part~="base"]')],t.prototype,"base",2),e([s({reflect:!0})],t.prototype,"variant",2),e([s({type:Boolean,reflect:!0})],t.prototype,"open",2),e([s({type:Boolean,reflect:!0})],t.prototype,"closable",2),e([s({type:Number})],t.prototype,"duration",2),e([s({type:Boolean,reflect:!0,attribute:"duration-indicator"})],t.prototype,"durationIndicator",2),e([s({reflect:!0,attribute:"toast-stack"})],t.prototype,"toastStack",2),e([n("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),e([n("duration")],t.prototype,"handleDurationChange",1),t=e([f("sd-notification")],t);h("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});h("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});export{t as a};
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk.HE2LNCWW.js";import{a as h}from"./chunk.E2DRD2OX.js";import{a as c}from"./chunk.6HO6CE4A.js";import{a as n}from"./chunk.TWQVHGYD.js";import{a as u,b as s,c as b,d as a,h as l}from"./chunk.GQU4LYQ6.js";import{b as d,e as i}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends l{constructor(){super(...arguments);this.hasSlotController=new c(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(r){if(this.disabled){r.preventDefault(),r.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(r){this.input.focus(r)}blur(){this.input.blur()}render(){let r=this.hasSlotController.test("[default]"),o=this.hasSlotController.test("icon"),m=`${this.size}-${r?"label":"no-label"}`;return i`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${n("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 border-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",r&&"px-4",this.hasFocus&&"focused-class",r&&"button--has-label",o&&"button--has-icon flex gap-2",m)}" aria-disabled="${this.disabled}" type="button" value="${p(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${n(o&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!o}"></slot>${r?i`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};t.styles=[...l.styles,d`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],e([a(".button")],t.prototype,"input",2),e([a(".hidden-input")],t.prototype,"hiddenInput",2),e([b()],t.prototype,"hasFocus",2),e([s({reflect:!0})],t.prototype,"size",2),e([s({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([s({type:Boolean,reflect:!0})],t.prototype,"checked",2),e([s()],t.prototype,"value",2),e([h("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=e([u("sd-radio-button")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as w}from"./chunk.SXH5LQRL.js";import{b as C,c as E,d as V,e as k}from"./chunk.65NSSTJE.js";import{a as M}from"./chunk.EJKLI2Q4.js";import{a as m}from"./chunk.E2DRD2OX.js";import{a as b}from"./chunk.6HO6CE4A.js";import{a as f}from"./chunk.TWQVHGYD.js";import{a as y,b as n,c as u,d as c,h as p}from"./chunk.GQU4LYQ6.js";import{b as g,e as d}from"./chunk.IRWHG2Q4.js";import{e as o}from"./chunk.TJOCV4DC.js";var s=class extends p{constructor(){super(...arguments);this.formControlController=new C(this);this.hasSlotController=new b(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?k:t?V:E}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-4-1-2-radio, sd-4-1-2-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-4-1-2-radio, sd-4-1-2-radio-button"),l=this.getAllRadios(),i=this.value;e.disabled||(this.value=e.value,l.forEach(h=>h.checked=h===e),this.value!==i&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var v;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(r=>!r.disabled),l=(v=e.find(r=>r.checked))!=null?v:e[0],i=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,h=this.value,a=e.indexOf(l)+i;a<0&&(a=e.length-1),a>e.length-1&&(a=0),this.getAllRadios().forEach(r=>{r.checked=!1,this.hasButtonGroup||(r.tabIndex=-1)}),this.value=e[a].value,e[a].checked=!0,this.hasButtonGroup?e[a].shadowRoot.querySelector("button").focus():(e[a].tabIndex=0,e[a].focus()),this.value!==h&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),l=t.find(i=>i.checked)||t[0];l&&l.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,l;let t=this.getAllRadios();if(await Promise.all(t.map(async i=>{await i.updateComplete,i.checked=i.value===this.value,i.size=this.size,i instanceof w&&(i.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(i=>i.tagName.toLowerCase()==="sd-4-1-2-radio-button"),!t.some(i=>i.checked))if(this.hasButtonGroup){let i=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");i&&(i.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let i=(l=this.shadowRoot)==null?void 0:l.querySelector("sd-4-1-2-button-group");i&&(i.disableRole=!0)}}syncRadios(){if(customElements.get("sd-4-1-2-radio")&&customElements.get("sd-4-1-2-radio-button")){this.syncRadioElements();return}customElements.get("sd-4-1-2-radio")?this.syncRadioElements():customElements.whenDefined("sd-4-1-2-radio").then(()=>this.syncRadios()),customElements.get("sd-4-1-2-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-4-1-2-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:!!t,l=this.hasSlotController.test("tooltip"),i=d`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return d`<fieldset part="form-control" class="${f("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message">${t||l?d`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${f("p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${l?d`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${f("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?d`<sd-4-1-2-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-4-1-2-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-4-1-2-button-group":M},s.styles=[...p.styles,g`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-1-2-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-1-2-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-1-2-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-1-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-1-2-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-1-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([c("slot:not([name])")],s.prototype,"defaultSlot",2),o([c("#validation-input")],s.prototype,"validationInput",2),o([c("#invalid-message")],s.prototype,"invalidMessage",2),o([u()],s.prototype,"hasButtonGroup",2),o([u()],s.prototype,"defaultValue",2),o([u()],s.prototype,"showInvalidStyle",2),o([n({reflect:!0})],s.prototype,"size",2),o([n({type:Boolean,reflect:!0})],s.prototype,"required",2),o([n({reflect:!0})],s.prototype,"orientation",2),o([n()],s.prototype,"label",2),o([n({type:Boolean,reflect:!0})],s.prototype,"boldLabel",2),o([n()],s.prototype,"name",2),o([n({reflect:!0})],s.prototype,"value",2),o([n({reflect:!0})],s.prototype,"form",2),o([m("size",{waitUntilFirstUpdate:!0})],s.prototype,"handleSizeChange",1),o([m("showInvalidStyle",{waitUntilFirstUpdate:!0})],s.prototype,"handleInvalidChange",1),o([m("value")],s.prototype,"handleValueChange",1),s=o([y("sd-4-1-2-radio-group")],s);export{s as a};
@@ -1,11 +0,0 @@
1
- import{a as V}from"./chunk.6DTJTQ5Z.js";import{a as F}from"./chunk.BMK7S33Z.js";import{a as A}from"./chunk.D7TMPF3D.js";import{c as z}from"./chunk.3L472FD4.js";import{b as M}from"./chunk.65NSSTJE.js";import{a as O,c as w}from"./chunk.A3DKF5BY.js";import{a as k,b as I}from"./chunk.SNCCOKIM.js";import{a as y,d as x}from"./chunk.RQYP7MH5.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as L}from"./chunk.6HO6CE4A.js";import{a as D}from"./chunk.26YUWEYR.js";import{a as p}from"./chunk.TWQVHGYD.js";import{a as $,b as n,c as u,d as c,g as E,h as g}from"./chunk.GQU4LYQ6.js";import{b as T,e as d}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var s=class extends g{constructor(){super(...arguments);this.formControlController=new M(this,{assumeInteractionOn:["sd-blur","sd-4-1-2-input"]});this.hasSlotController=new L(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=e=>d`<sd-4-1-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
2
- base:tag__base,
3
- content:tag__content,
4
- removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagKeyDown(t,e)}" @sd-remove="${t=>this.handleTagRemove(t,e)}">${e.getTextLabel()}</sd-4-1-2-tag>`;this.handleDocumentFocusIn=e=>{let t=e.composedPath();this&&!t.includes(this)&&this.hide()};this.handleDocumentKeyDown=e=>{let t=e.target,l=t.closest(".select__clear")!==null,a=t.closest("sd-4-1-2-icon-button")!==null;if(!(l||a)){if(e.key==="Escape"&&this.open&&(e.preventDefault(),e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),e.key==="Enter"||e.key===" "&&this.typeToSelectString===""){if(e.preventDefault(),e.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let h=this.getAllOptions(),o=h.indexOf(this.currentOption),r=Math.max(0,o);if(e.preventDefault(),!this.open&&(this.show(),this.currentOption))return;e.key==="ArrowDown"?(r=o+1,r>h.length-1&&(r=0)):e.key==="ArrowUp"?(r=o-1,r<0&&(r=h.length-1)):e.key==="Home"?r=0:e.key==="End"&&(r=h.length-1),this.setCurrentOption(h[r])}if(e.key.length===1||e.key==="Backspace"){let h=this.getAllOptions();if(e.metaKey||e.ctrlKey||e.altKey)return;if(!this.open){if(e.key==="Backspace")return;this.show()}e.stopPropagation(),e.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),e.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=e.key.toLowerCase();for(let o of h)if(o.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(o);break}}}};this.handleDocumentMouseDown=e=>{let t=e.composedPath();this&&!t.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(e,t){var l,a,h;if(e.key==="Backspace"&&this.multiple){e.preventDefault(),e.stopPropagation();let o=(l=e.currentTarget)==null?void 0:l.parentElement,r=(a=o==null?void 0:o.previousElementSibling)==null?void 0:a.querySelector("sd-4-1-2-tag"),m=(h=o==null?void 0:o.nextElementSibling)==null?void 0:h.querySelector("sd-4-1-2-tag");this.handleTagRemove(new CustomEvent("sd-remove"),t),this.updateComplete.then(()=>{m?m.focus():r?r.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(e){e.key==="Backspace"&&this.multiple&&(e.preventDefault(),e.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelectorAll("sd-4-1-2-tag");t&&t.length>0?t==null||t[(t==null?void 0:t.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(e){let l=e.composedPath().some(a=>a instanceof HTMLSlotElement&&a.name==="removable-indicator");this.disabled||l||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(e){e.stopPropagation(),this.handleDocumentKeyDown(e)}handleClearClick(e){e.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}handleOptionClick(e){let l=e.target.closest("sd-4-1-2-option"),a=this.value;l&&!l.disabled&&(this.multiple?this.toggleOptionSelection(l):this.setSelectedOptions(l),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==a&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){let e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value],l=[];customElements.get("sd-4-1-2-option")?(e.forEach(a=>{this.multiple&&(a.checkbox=!0),l.push(a.value)}),this.setSelectedOptions(e.filter(a=>t.includes(a.value)))):customElements.whenDefined("sd-4-1-2-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(e,t){e.stopPropagation(),t||this.clearSelect(),t&&!this.disabled&&(this.toggleOptionSelection(t,!1),this.deletedTagLabel=this.localize.term("removed",t.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-4-1-2-option")]}getFirstOption(){return this.querySelector("sd-4-1-2-option")}setCurrentOption(e){this.getAllOptions().forEach(l=>{l.current=!1,l.tabIndex=-1}),e&&(this.currentOption=e,e.current=!0,e.tabIndex=0,e.focus())}setSelectedOptions(e){let t=this.getAllOptions(),l=Array.isArray(e)?e:[e];t.forEach(a=>a.selected=!1),l.length&&l.forEach(a=>a.selected=!0),Array.isArray(e)?this.selectionChanged():this.selectionChanged(e)}toggleOptionSelection(e,t){t===!0||t===!1?e.selected=t:e.selected=!e.selected,Array.isArray(e)?this.selectionChanged():this.selectionChanged(e)}selectionChanged(e){var t,l,a,h;e&&this.multiple?this.selectedOptions.find(o=>o.value===e.value)?this.selectedOptions=this.selectedOptions.filter(o=>o.value!==e.value):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=this.getAllOptions().filter(o=>o.selected),this.multiple?(this.value=this.selectedOptions.map(o=>o.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(l=(t=this.selectedOptions[0])==null?void 0:t.value)!=null?l:"",this.displayLabel=(h=(a=this.selectedOptions[0])==null?void 0:a.getTextLabel())!=null?h:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((e,t)=>{if(t<this.maxOptionsVisible||this.maxOptionsVisible<=0){let l=this.getTag(e,t);return d`<div @sd-remove="${a=>this.handleTagRemove(a,e)}">${typeof l=="string"?k(l):l}</div>`}return[d``]}):[d`<sd-4-1-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
6
- base:tag__base,
7
- content:tag__content,
8
- removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagMaxOptionsKeyDown(e)}" @sd-remove="${e=>this.handleTagRemove(e)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-1-2-tag>`]}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(e){let t=e.detail;t&&(this.currentPlacement=t)}handleUseTagsChange(){let e=this.getAllOptions();customElements.get("sd-4-1-2-option")&&e.forEach(t=>{t.checkbox=this.multiple})}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await x(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:e,options:t}=w(this,"select.show",{dir:this.localize.dir()});await y(this.popup.popup,e,t),this.currentOption&&z(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await x(this);let{keyframes:e,options:t}=w(this,"select.hide",{dir:this.localize.dir()});await y(this.popup.popup,e,t),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(e=>{e.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let e=this.getAllOptions(),t=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(e.filter(l=>t.includes(l.value)))}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var e;return(e=this.valueInput)==null?void 0:e.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.displayInput.focus(e)}blur(){this.displayInput.blur()}render(){let e={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},t=this.label?!0:!!e.label,l=this.helpText?!0:!!e.helpText,a=this.clearable&&!this.disabled,h=!!e.tooltip,o=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",r=this.disabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return d`<div part="form-control" class="${p("relative text-left",r,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span> ${t||h?d`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${t&&"inline-block"}" aria-hidden="${t?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${e.tooltip?d`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${p("relative w-full bg-white",o==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${p("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[o],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-1-2-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${p("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
- popup:popup__content,
11
- "><div part="combobox" class="${p("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${p("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",r,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?d`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(v=>v==null?void 0:v.getTextLabel()).join(", ")}</div><input class="${p("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",r)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?d`<button part="clear-button" class="${p("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-1-2-icon class="${p("text-icon-fill-neutral-800",b)}" library="system" name="closing-round"></sd-4-1-2-icon></slot></button>`:""} ${this.showInvalidStyle?d`<sd-4-1-2-icon part="invalid-icon" class="${p(m,b,"text-error")}" library="system" name="risk"></sd-4-1-2-icon>`:""} ${this.styleOnValid&&this.showValidStyle?d`<sd-4-1-2-icon part="valid-icon" class="${p("flex-shrink-0 text-success",m,b)}" library="system" name="status-check"></sd-4-1-2-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${p("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",b)}"><sd-4-1-2-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-1-2-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${p("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-1-2-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${l?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-4-1-2-icon":I,"sd-4-1-2-popup":F,"sd-4-1-2-tag":V},s.styles=[...g.styles,T`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-1-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-1-2-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-1-2-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-1-2-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-1-2-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],i([E({selector:"sd-4-1-2-option"})],s.prototype,"_optionsInDefaultSlot",2),i([c("sd-4-1-2-popup")],s.prototype,"popup",2),i([c('[part="combobox"]')],s.prototype,"combobox",2),i([c('[part="display-input"]')],s.prototype,"displayInput",2),i([c(".value-input")],s.prototype,"valueInput",2),i([c('[part="listbox"]')],s.prototype,"listbox",2),i([c("#invalid-message")],s.prototype,"invalidMessage",2),i([u()],s.prototype,"hasHover",2),i([u()],s.prototype,"displayLabel",2),i([u()],s.prototype,"deletedTagLabel",2),i([u()],s.prototype,"hasFocus",2),i([u()],s.prototype,"currentOption",2),i([u()],s.prototype,"selectedOptions",2),i([u()],s.prototype,"showValidStyle",2),i([u()],s.prototype,"showInvalidStyle",2),i([A()],s.prototype,"defaultValue",2),i([n({type:Boolean,reflect:!0})],s.prototype,"open",2),i([n({reflect:!0})],s.prototype,"size",2),i([n({reflect:!0})],s.prototype,"placement",2),i([n()],s.prototype,"label",2),i([n()],s.prototype,"placeholder",2),i([n({attribute:"max-options-tag-label"})],s.prototype,"maxOptionsTagLabel",2),i([n({type:Boolean,reflect:!0})],s.prototype,"disabled",2),i([n({attribute:"help-text"})],s.prototype,"helpText",2),i([u()],s.prototype,"currentPlacement",2),i([n({type:Boolean})],s.prototype,"clearable",2),i([n({type:Boolean,reflect:!0})],s.prototype,"multiple",2),i([n({type:Boolean,reflect:!0})],s.prototype,"useTags",2),i([n({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),i([n({reflect:!0})],s.prototype,"form",2),i([n()],s.prototype,"name",2),i([n({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>e.join(" ")}})],s.prototype,"value",2),i([n({type:Boolean,reflect:!0})],s.prototype,"required",2),i([n({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),i([n({type:Boolean})],s.prototype,"hoist",2),i([n()],s.prototype,"getTag",2),i([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),i([f("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),i([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),i([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),i([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),s=i([$("sd-4-1-2-select")],s);O("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});O("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
@@ -1,3 +0,0 @@
1
- import{b as d}from"./chunk.5CK64GWQ.js";import{a as f}from"./chunk.D7TMPF3D.js";import{b as m}from"./chunk.65NSSTJE.js";import{a as p}from"./chunk.HE2LNCWW.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as s}from"./chunk.TWQVHGYD.js";import{a as c,b as r,c as u,d as a,h as o}from"./chunk.GQU4LYQ6.js";import{b as h,e as l}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:i=>i.checked?i.value||"on":void 0,defaultValue:i=>i.defaultChecked,setValue:(i,b)=>i.checked=b});this.title="";this.name="";this.size="lg";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i),this.invalidMessage.textContent=i.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(i){this.input.focus(i)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this.formControlController.updateValidity()}render(){let i=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return l`<label part="base" class="${s("sd-4-1-2-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${s(`relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4
2
- peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
3
- peer-focus-visible:outline-primary`,{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[i])}">${this.checked?l`<sd-4-1-2-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-1-2-icon>`:""} ${!this.checked&&this.indeterminate?l`<sd-4-1-2-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-1-2-icon>`:""} </span><span part="label" id="label" class="${s("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...o.styles,h`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],t([a('input[type="checkbox"]')],e.prototype,"input",2),t([a("#invalid-message")],e.prototype,"invalidMessage",2),t([r()],e.prototype,"title",2),t([r()],e.prototype,"name",2),t([r()],e.prototype,"value",2),t([r({reflect:!0})],e.prototype,"size",2),t([r({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([r({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([r({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),t([f("checked")],e.prototype,"defaultChecked",2),t([r({reflect:!0})],e.prototype,"form",2),t([r({type:Boolean,reflect:!0})],e.prototype,"required",2),t([u()],e.prototype,"showInvalidStyle",2),t([n("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([c("sd-4-1-2-checkbox")],e);export{e as a};