@ds-autonomie/web-components 2.0.1 → 2.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 (327) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/cdn/chunks/{chunk.ZDLDKWEM.js → chunk.2APAO2OW.js} +1 -1
  3. package/cdn/chunks/{chunk.QPY2AEFG.js → chunk.2DJERWBI.js} +14 -10
  4. package/cdn/chunks/{chunk.QCSRN6TI.js → chunk.3JMBGIZN.js} +1 -1
  5. package/cdn/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
  6. package/cdn/chunks/{chunk.2SEDRBTZ.js → chunk.4NC4QO64.js} +4 -1
  7. package/cdn/chunks/{chunk.ZC2YWJX5.js → chunk.5BF76EO7.js} +1 -1
  8. package/cdn/chunks/{chunk.HRSNXHEG.js → chunk.5BL6KECM.js} +31 -5
  9. package/cdn/chunks/{chunk.OZEY33RC.js → chunk.5LXQ3RKQ.js} +2 -22
  10. package/cdn/chunks/{chunk.GDKBZ2H6.js → chunk.6CF6SXDF.js} +1 -2
  11. package/cdn/chunks/{chunk.SRCH73UW.js → chunk.6QTMZJGH.js} +25 -2
  12. package/cdn/chunks/{chunk.Z326Q4YW.js → chunk.6V2FRFCB.js} +1 -1
  13. package/cdn/chunks/{chunk.KQ5BQRHA.js → chunk.77CWRZEL.js} +6 -0
  14. package/cdn/chunks/{chunk.6E6G25TQ.js → chunk.A33BZOMA.js} +1 -1
  15. package/cdn/chunks/{chunk.GLQFV66F.js → chunk.ATHAYO6A.js} +177 -12
  16. package/cdn/chunks/{chunk.VIT6ZMSL.js → chunk.BCLU5KXE.js} +4 -5
  17. package/cdn/chunks/{chunk.5UR3I4O7.js → chunk.BE7PKTJW.js} +1 -1
  18. package/cdn/chunks/chunk.BNPGOQZ2.js +223 -0
  19. package/cdn/chunks/{chunk.PS3BQQBO.js → chunk.C62MMBV4.js} +17 -3
  20. package/cdn/chunks/{chunk.VR6U4JFG.js → chunk.CUCCBQJX.js} +11 -2
  21. package/cdn/chunks/{chunk.Q2IGBG6C.js → chunk.CVV4WLBC.js} +16 -8
  22. package/cdn/chunks/{chunk.5AFQZ4HE.js → chunk.CYMM2ZAV.js} +6 -0
  23. package/cdn/chunks/{chunk.2GCON4UO.js → chunk.DSKRAAOI.js} +3 -4
  24. package/cdn/chunks/{chunk.454LK2SB.js → chunk.E6VF2I6I.js} +9 -4
  25. package/cdn/chunks/{chunk.JYYFSSR2.js → chunk.EARU4CHS.js} +1 -1
  26. package/cdn/chunks/chunk.F7NUIVDV.js +10 -0
  27. package/cdn/chunks/{chunk.OVD3Q2LV.js → chunk.FHOCNAJ4.js} +5 -2
  28. package/cdn/chunks/{chunk.PLPMNDIZ.js → chunk.HYTYRM6S.js} +1 -1
  29. package/cdn/chunks/{chunk.DTZ62PPT.js → chunk.IGA57P5N.js} +13 -22
  30. package/cdn/chunks/{chunk.YTHFESMA.js → chunk.J73YJOU4.js} +6 -2
  31. package/cdn/chunks/chunk.KELDA33H.js +198 -0
  32. package/cdn/chunks/{chunk.3NTS3AEA.js → chunk.LFCUNNYV.js} +34 -30
  33. package/cdn/chunks/{chunk.R6BGXKHX.js → chunk.LNBAAP45.js} +1 -1
  34. package/cdn/chunks/{chunk.MEYHIAQ5.js → chunk.M7QHADJH.js} +5 -1
  35. package/cdn/chunks/chunk.MJLKYERJ.js +348 -0
  36. package/cdn/chunks/{chunk.3E6XVTWL.js → chunk.P45DWAWT.js} +1 -1
  37. package/cdn/chunks/chunk.PWL7QCVG.js +9 -0
  38. package/cdn/chunks/chunk.RJXLIOW7.js +28 -0
  39. package/cdn/chunks/{chunk.Y5CXRULD.js → chunk.UAQ7MMLI.js} +1 -1
  40. package/cdn/chunks/{chunk.PAGENBUA.js → chunk.UR6UOSYK.js} +10 -12
  41. package/cdn/chunks/{chunk.JY6ROHQN.js → chunk.WOONNSQ2.js} +14 -20
  42. package/cdn/chunks/{chunk.F2LQ5OCB.js → chunk.XD7G7WIJ.js} +6 -2
  43. package/cdn/chunks/chunk.XIX7XP2G.js +91 -0
  44. package/cdn/chunks/{chunk.CSDIRQFE.js → chunk.XLX7QTXT.js} +9 -1
  45. package/cdn/chunks/{chunk.BTTFPDXL.js → chunk.XPL6N3OJ.js} +3 -2
  46. package/cdn/chunks/{chunk.PMMQ5QVY.js → chunk.XQAKSW3W.js} +12 -1
  47. package/cdn/chunks/{chunk.NW4AAKGG.js → chunk.YQQNMFZF.js} +42 -93
  48. package/cdn/chunks/{chunk.E4GNTJPS.js → chunk.YS6XV3LD.js} +1 -1
  49. package/cdn/chunks/{chunk.FGSGBIL3.js → chunk.ZKPOAPR2.js} +0 -4
  50. package/cdn/components/accordion/accordion.js +3 -3
  51. package/cdn/components/alert/alert.js +4 -4
  52. package/cdn/components/avatar/avatar.js +4 -4
  53. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  54. package/cdn/components/button/button.d.ts +4 -1
  55. package/cdn/components/button/button.js +4 -4
  56. package/cdn/components/callout/callout.d.ts +3 -1
  57. package/cdn/components/callout/callout.js +4 -4
  58. package/cdn/components/checkbox/checkbox.d.ts +5 -1
  59. package/cdn/components/checkbox/checkbox.js +9 -4
  60. package/cdn/components/checkbox-button/checkbox-button.d.ts +1 -0
  61. package/cdn/components/checkbox-button/checkbox-button.js +4 -4
  62. package/cdn/components/checkbox-group/checkbox-group.d.ts +9 -8
  63. package/cdn/components/checkbox-group/checkbox-group.js +8 -8
  64. package/cdn/components/checkbox-group/checkbox-group.styles.js +1 -1
  65. package/cdn/components/combobox/combobox.d.ts +3 -2
  66. package/cdn/components/combobox/combobox.js +6 -5
  67. package/cdn/components/dialog/dialog.d.ts +5 -1
  68. package/cdn/components/dialog/dialog.js +5 -5
  69. package/cdn/components/dialog/dialog.styles.js +1 -1
  70. package/cdn/components/download-card/download-card.js +5 -5
  71. package/cdn/components/download-card/download-card.styles.js +1 -1
  72. package/cdn/components/download-link/download-link.js +5 -5
  73. package/cdn/components/download-link/download-link.styles.js +1 -1
  74. package/cdn/components/drawer/drawer.js +3 -3
  75. package/cdn/components/error-text/error-text.js +3 -3
  76. package/cdn/components/file-upload/file-upload.d.ts +3 -2
  77. package/cdn/components/file-upload/file-upload.js +3 -3
  78. package/cdn/components/file-upload-item/file-upload-item.js +3 -3
  79. package/cdn/components/filter-base/filter-base-stories.js +1 -1
  80. package/cdn/components/filter-base/filter-base.js +3 -3
  81. package/cdn/components/filter-button/filter-button.js +3 -3
  82. package/cdn/components/filter-counter/filter-counter.js +9 -8
  83. package/cdn/components/filter-date/filter-date.js +4 -4
  84. package/cdn/components/filter-range/filter-range.js +10 -9
  85. package/cdn/components/filter-select/filter-select.d.ts +6 -3
  86. package/cdn/components/filter-select/filter-select.js +14 -13
  87. package/cdn/components/header/header.d.ts +5 -1
  88. package/cdn/components/header/header.js +2 -2
  89. package/cdn/components/header/header.styles.js +1 -1
  90. package/cdn/components/header-search/header-search.d.ts +6 -0
  91. package/cdn/components/header-search/header-search.js +11 -5
  92. package/cdn/components/header-search/header-search.styles.js +1 -1
  93. package/cdn/components/icon/icon.js +3 -3
  94. package/cdn/components/icon/library.js +2 -2
  95. package/cdn/components/icon/library.system.js +1 -1
  96. package/cdn/components/icon-button/icon-button.js +3 -3
  97. package/cdn/components/input/input.js +8 -7
  98. package/cdn/components/input-date/input-date.js +7 -6
  99. package/cdn/components/input-mask/input-mask.js +6 -5
  100. package/cdn/components/input-otp/input-otp.d.ts +90 -0
  101. package/cdn/components/input-otp/input-otp.js +38 -0
  102. package/cdn/components/input-otp/input-otp.styles.d.ts +2 -0
  103. package/cdn/components/input-otp/input-otp.styles.js +11 -0
  104. package/cdn/components/input-otp/input-otp.utils.d.ts +3 -0
  105. package/cdn/components/input-otp/input-otp.utils.js +11 -0
  106. package/cdn/components/input-phone/input-phone.d.ts +3 -3
  107. package/cdn/components/input-phone/input-phone.js +14 -19
  108. package/cdn/components/input-phone/input-phone.styles.js +1 -1
  109. package/cdn/components/input-phone/input-phone.utils.d.ts +0 -2
  110. package/cdn/components/input-phone/input-phone.utils.js +1 -7
  111. package/cdn/components/menu-accordion/menu-accordion.js +3 -3
  112. package/cdn/components/menu-item/menu-item.js +3 -3
  113. package/cdn/components/menu-navigation/menu-navigation.js +1 -1
  114. package/cdn/components/navbar-link/navbar-link.js +5 -5
  115. package/cdn/components/navbar-menu/navbar-menu.js +4 -4
  116. package/cdn/components/option/option.js +5 -5
  117. package/cdn/components/option/option.styles.js +1 -1
  118. package/cdn/components/pagination/pagination.js +11 -10
  119. package/cdn/components/profile-button/profile-button.js +4 -4
  120. package/cdn/components/quote/quote.js +3 -3
  121. package/cdn/components/radio/radio.js +3 -3
  122. package/cdn/components/radio-button/radio-button.js +9 -7
  123. package/cdn/components/radio-group/radio-group.d.ts +7 -2
  124. package/cdn/components/radio-group/radio-group.js +8 -6
  125. package/cdn/components/range-slider/range-slider.d.ts +0 -2
  126. package/cdn/components/range-slider/range-slider.js +1 -1
  127. package/cdn/components/select/select.d.ts +4 -2
  128. package/cdn/components/select/select.js +6 -5
  129. package/cdn/components/split-panel/split-panel.js +3 -3
  130. package/cdn/components/step/step.js +5 -4
  131. package/cdn/components/tab/tab.d.ts +2 -0
  132. package/cdn/components/tab/tab.js +4 -4
  133. package/cdn/components/tab-group/tab-group.js +3 -3
  134. package/cdn/components/table-body/table-body.js +2 -2
  135. package/cdn/components/table-header-cell/table-header-cell.js +3 -3
  136. package/cdn/components/table-header-row/table-header-row.js +12 -9
  137. package/cdn/components/table-row/table-row.js +10 -5
  138. package/cdn/components/tag/tag.js +3 -3
  139. package/cdn/components/textarea/textarea.js +6 -5
  140. package/cdn/components/tree/tree.js +11 -6
  141. package/cdn/components/tree-item/tree-item.js +9 -4
  142. package/cdn/custom-elements.json +815 -184
  143. package/cdn/design-system.d.ts +2 -0
  144. package/cdn/design-system.js +129 -116
  145. package/cdn/events/events.d.ts +7 -7
  146. package/cdn/internal/a11y-warning.d.ts +2 -0
  147. package/cdn/internal/a11y-warning.js +4 -0
  148. package/cdn/internal/components/date-field/date-field.js +6 -1
  149. package/cdn/internal/components/form-control/form-control-layout.js +6 -1
  150. package/cdn/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
  151. package/cdn/themes/dsa-wc-theme.css +19 -0
  152. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  153. package/cdn/themes/dsa-wc-theme.styles.js +19 -0
  154. package/cdn/utilities/icon-library.js +2 -2
  155. package/cdn/utilities/storybook.d.ts +1 -0
  156. package/cdn/utilities/storybook.js +3 -1
  157. package/cdn/vscode.html-custom-data.json +140 -18
  158. package/cdn/web-types.json +472 -69
  159. package/dist/chunks/{chunk.N5DO55QO.js → chunk.2EDNCADP.js} +9 -1
  160. package/dist/chunks/{chunk.YDXAC3AX.js → chunk.2VH3OZ2T.js} +1 -1
  161. package/dist/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
  162. package/dist/chunks/{chunk.VC2F6FEI.js → chunk.4WSA3PVB.js} +1 -1
  163. package/dist/chunks/chunk.5P2EEOC5.js +196 -0
  164. package/dist/chunks/{chunk.VOOE2BQV.js → chunk.6HR34L7E.js} +2 -22
  165. package/dist/chunks/{chunk.Y72CHU6D.js → chunk.6JHM36KH.js} +5 -1
  166. package/dist/chunks/{chunk.TB3WT3D4.js → chunk.6QAB5TYJ.js} +6 -0
  167. package/dist/chunks/{chunk.LKCPAJMF.js → chunk.B6LMEZTV.js} +5 -2
  168. package/dist/chunks/{chunk.JUPNFWMF.js → chunk.DDDHV2NU.js} +14 -10
  169. package/dist/chunks/{chunk.P4HRQ2D7.js → chunk.DHDRABMZ.js} +1 -1
  170. package/dist/chunks/{chunk.X6V74J4Y.js → chunk.DUTPVTUZ.js} +4 -5
  171. package/dist/chunks/{chunk.JDG6WH3B.js → chunk.EQZ4YFRU.js} +94 -54
  172. package/dist/chunks/chunk.F7NUIVDV.js +10 -0
  173. package/dist/chunks/{chunk.CWVZX3HL.js → chunk.FKXOTDTY.js} +1 -1
  174. package/dist/chunks/{chunk.D3SHMAJT.js → chunk.H3FSR35C.js} +1 -1
  175. package/dist/chunks/chunk.HRIAHWFV.js +89 -0
  176. package/dist/chunks/{chunk.T4BUHP4L.js → chunk.I5HR7JYK.js} +10 -1
  177. package/dist/chunks/{chunk.4FP4K3F5.js → chunk.JDIBYGPL.js} +11 -2
  178. package/dist/chunks/{chunk.QEFQHCEK.js → chunk.KFRR2I2P.js} +3 -4
  179. package/dist/chunks/{chunk.RPZWIHKX.js → chunk.KN6RQWYN.js} +1 -1
  180. package/dist/chunks/{chunk.2DJFK3E6.js → chunk.KUYI27GJ.js} +204 -34
  181. package/dist/chunks/{chunk.ZGQUBAEK.js → chunk.L3LZ4MKX.js} +1 -1
  182. package/dist/chunks/{chunk.5LBJAKDG.js → chunk.LB54GRRB.js} +31 -5
  183. package/dist/chunks/{chunk.CQG7MKTO.js → chunk.LDXGSIJP.js} +6 -2
  184. package/dist/chunks/{chunk.BXOGG3JO.js → chunk.LTCZARVI.js} +1 -1
  185. package/dist/chunks/{chunk.ARYKCY32.js → chunk.MBRRLF6D.js} +34 -30
  186. package/dist/chunks/{chunk.R426GAXO.js → chunk.MJKJSMQX.js} +3 -2
  187. package/dist/chunks/{chunk.IAL72I44.js → chunk.MYSJOWY5.js} +6 -2
  188. package/dist/chunks/{chunk.3E6XVTWL.js → chunk.P45DWAWT.js} +1 -1
  189. package/dist/chunks/chunk.PWL7QCVG.js +9 -0
  190. package/dist/chunks/{chunk.7NPJ25LI.js → chunk.PZXD4VTO.js} +14 -20
  191. package/dist/chunks/chunk.RJXLIOW7.js +28 -0
  192. package/dist/chunks/{chunk.35URRZJ2.js → chunk.SYVX56PU.js} +1 -2
  193. package/dist/chunks/chunk.UDJJFUZ3.js +335 -0
  194. package/dist/chunks/{chunk.YXXLXJPE.js → chunk.UEWG3G4R.js} +6 -0
  195. package/dist/chunks/{chunk.K6FDIYMY.js → chunk.UVN7RIEO.js} +0 -4
  196. package/dist/chunks/{chunk.WWANVBI5.js → chunk.UWGAOHHQ.js} +1 -1
  197. package/dist/chunks/{chunk.6RJLT24F.js → chunk.VBW5RZBM.js} +4 -1
  198. package/dist/chunks/{chunk.LWFWCZIX.js → chunk.WQYBYKZ2.js} +9 -4
  199. package/dist/chunks/{chunk.XWFZLRHU.js → chunk.WRPRKCVY.js} +25 -2
  200. package/dist/chunks/{chunk.35M6DDPF.js → chunk.WUOMKASN.js} +17 -3
  201. package/dist/chunks/{chunk.GBRTFFMV.js → chunk.XJMGXWLM.js} +42 -93
  202. package/dist/chunks/{chunk.GOMVXZ72.js → chunk.XRZGSSHY.js} +1 -1
  203. package/dist/chunks/{chunk.Z2SRVRIK.js → chunk.XXN6UBL4.js} +10 -12
  204. package/dist/chunks/{chunk.6GN2WDDT.js → chunk.Y52TCF24.js} +1 -1
  205. package/dist/chunks/{chunk.DY2W3WPP.js → chunk.Z7DBDDCZ.js} +16 -8
  206. package/dist/chunks/{chunk.WI3DWLXW.js → chunk.ZTGPYOYG.js} +13 -22
  207. package/dist/components/accordion/accordion.js +3 -3
  208. package/dist/components/alert/alert.js +4 -4
  209. package/dist/components/avatar/avatar.js +4 -4
  210. package/dist/components/breadcrumb/breadcrumb.js +3 -3
  211. package/dist/components/button/button.d.ts +4 -1
  212. package/dist/components/button/button.js +4 -4
  213. package/dist/components/callout/callout.d.ts +3 -1
  214. package/dist/components/callout/callout.js +4 -4
  215. package/dist/components/checkbox/checkbox.d.ts +5 -1
  216. package/dist/components/checkbox/checkbox.js +9 -4
  217. package/dist/components/checkbox-button/checkbox-button.d.ts +1 -0
  218. package/dist/components/checkbox-button/checkbox-button.js +4 -4
  219. package/dist/components/checkbox-group/checkbox-group.d.ts +9 -8
  220. package/dist/components/checkbox-group/checkbox-group.js +8 -7
  221. package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
  222. package/dist/components/combobox/combobox.d.ts +3 -2
  223. package/dist/components/combobox/combobox.js +6 -5
  224. package/dist/components/dialog/dialog.d.ts +5 -1
  225. package/dist/components/dialog/dialog.js +5 -5
  226. package/dist/components/dialog/dialog.styles.js +1 -1
  227. package/dist/components/download-card/download-card.js +5 -5
  228. package/dist/components/download-card/download-card.styles.js +1 -1
  229. package/dist/components/download-link/download-link.js +5 -5
  230. package/dist/components/download-link/download-link.styles.js +1 -1
  231. package/dist/components/drawer/drawer.js +3 -3
  232. package/dist/components/error-text/error-text.js +3 -3
  233. package/dist/components/file-upload/file-upload.d.ts +3 -2
  234. package/dist/components/file-upload/file-upload.js +3 -3
  235. package/dist/components/file-upload-item/file-upload-item.js +3 -3
  236. package/dist/components/filter-base/filter-base-stories.js +1 -1
  237. package/dist/components/filter-base/filter-base.js +3 -3
  238. package/dist/components/filter-button/filter-button.js +3 -3
  239. package/dist/components/filter-counter/filter-counter.js +9 -8
  240. package/dist/components/filter-date/filter-date.js +4 -4
  241. package/dist/components/filter-range/filter-range.js +10 -9
  242. package/dist/components/filter-select/filter-select.d.ts +6 -3
  243. package/dist/components/filter-select/filter-select.js +14 -13
  244. package/dist/components/header/header.d.ts +5 -1
  245. package/dist/components/header/header.js +2 -2
  246. package/dist/components/header/header.styles.js +1 -1
  247. package/dist/components/header-search/header-search.d.ts +6 -0
  248. package/dist/components/header-search/header-search.js +11 -5
  249. package/dist/components/header-search/header-search.styles.js +1 -1
  250. package/dist/components/icon/icon.js +3 -3
  251. package/dist/components/icon/library.js +2 -2
  252. package/dist/components/icon/library.system.js +1 -1
  253. package/dist/components/icon-button/icon-button.js +3 -3
  254. package/dist/components/input/input.js +8 -7
  255. package/dist/components/input-date/input-date.js +7 -6
  256. package/dist/components/input-mask/input-mask.js +6 -5
  257. package/dist/components/input-otp/input-otp.d.ts +90 -0
  258. package/dist/components/input-otp/input-otp.js +31 -0
  259. package/dist/components/input-otp/input-otp.styles.d.ts +2 -0
  260. package/dist/components/input-otp/input-otp.styles.js +9 -0
  261. package/dist/components/input-otp/input-otp.utils.d.ts +3 -0
  262. package/dist/components/input-otp/input-otp.utils.js +11 -0
  263. package/dist/components/input-phone/input-phone.d.ts +3 -3
  264. package/dist/components/input-phone/input-phone.js +14 -19
  265. package/dist/components/input-phone/input-phone.styles.js +1 -1
  266. package/dist/components/input-phone/input-phone.utils.d.ts +0 -2
  267. package/dist/components/input-phone/input-phone.utils.js +1 -5
  268. package/dist/components/menu-accordion/menu-accordion.js +3 -3
  269. package/dist/components/menu-item/menu-item.js +3 -3
  270. package/dist/components/menu-navigation/menu-navigation.js +1 -1
  271. package/dist/components/navbar-link/navbar-link.js +5 -5
  272. package/dist/components/navbar-menu/navbar-menu.js +4 -4
  273. package/dist/components/option/option.js +5 -5
  274. package/dist/components/option/option.styles.js +1 -1
  275. package/dist/components/pagination/pagination.js +11 -10
  276. package/dist/components/profile-button/profile-button.js +4 -4
  277. package/dist/components/quote/quote.js +3 -3
  278. package/dist/components/radio/radio.js +3 -3
  279. package/dist/components/radio-button/radio-button.js +9 -7
  280. package/dist/components/radio-group/radio-group.d.ts +7 -2
  281. package/dist/components/radio-group/radio-group.js +8 -6
  282. package/dist/components/range-slider/range-slider.d.ts +0 -2
  283. package/dist/components/range-slider/range-slider.js +1 -1
  284. package/dist/components/select/select.d.ts +4 -2
  285. package/dist/components/select/select.js +6 -5
  286. package/dist/components/split-panel/split-panel.js +3 -3
  287. package/dist/components/step/step.js +5 -4
  288. package/dist/components/tab/tab.d.ts +2 -0
  289. package/dist/components/tab/tab.js +4 -4
  290. package/dist/components/tab-group/tab-group.js +3 -3
  291. package/dist/components/table-body/table-body.js +2 -2
  292. package/dist/components/table-header-cell/table-header-cell.js +3 -3
  293. package/dist/components/table-header-row/table-header-row.js +11 -8
  294. package/dist/components/table-row/table-row.js +10 -5
  295. package/dist/components/tag/tag.js +3 -3
  296. package/dist/components/textarea/textarea.js +6 -5
  297. package/dist/components/tree/tree.js +11 -6
  298. package/dist/components/tree-item/tree-item.js +9 -4
  299. package/dist/custom-elements.json +815 -184
  300. package/dist/design-system.d.ts +2 -0
  301. package/dist/design-system.js +129 -116
  302. package/dist/events/events.d.ts +7 -7
  303. package/dist/internal/a11y-warning.d.ts +2 -0
  304. package/dist/internal/a11y-warning.js +4 -0
  305. package/dist/internal/components/date-field/date-field.js +6 -1
  306. package/dist/internal/components/form-control/form-control-layout.js +6 -1
  307. package/dist/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
  308. package/dist/themes/dsa-wc-theme.css +19 -0
  309. package/dist/themes/dsa-wc-theme.min.css +1 -1
  310. package/dist/themes/dsa-wc-theme.styles.js +19 -0
  311. package/dist/utilities/icon-library.js +2 -2
  312. package/dist/utilities/storybook.d.ts +1 -0
  313. package/dist/utilities/storybook.js +3 -1
  314. package/dist/vscode.html-custom-data.json +140 -18
  315. package/dist/web-types.json +472 -69
  316. package/package.json +3 -1
  317. package/cdn/chunks/chunk.CCL2RZON.js +0 -132
  318. package/cdn/chunks/chunk.DIF52FDQ.js +0 -183
  319. package/cdn/chunks/chunk.GVVML3JJ.js +0 -272
  320. package/cdn/chunks/chunk.PS4PM6DJ.js +0 -164
  321. package/dist/chunks/chunk.2T66U3QC.js +0 -270
  322. package/dist/chunks/chunk.AYDVF4T3.js +0 -157
  323. package/dist/chunks/chunk.ESYJVRG3.js +0 -129
  324. package/cdn/chunks/{chunk.COR7P3QG.js → chunk.NSE76EM5.js} +3 -3
  325. package/cdn/chunks/{chunk.P33HFS7T.js → chunk.V2UYRTUC.js} +3 -3
  326. package/dist/chunks/{chunk.WOV5QN3O.js → chunk.3OHVWJYG.js} +3 -3
  327. package/dist/chunks/{chunk.7BFH35RV.js → chunk.63MNXWSY.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @ds-autonomie/web-components
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 647d6c9: `input-otp` : ajout de l'élément One Time Password
8
+
9
+ ### Patch Changes
10
+
11
+ - 3ba5fee: `checkbox-group` : correction de la largeur maximale en mode horizontal
12
+ - 1643cca: `checkbox-group': changement du timing de l'initialisation
13
+ - 8503289: `input` : correction de la réinitialisation programmatique du type "date"
14
+ - aad602d: `checkbox-group` : amélioration de la structure interne
15
+
16
+ ## 2.1.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 8dbb5e8: `download-card`: déplacement des attributs annexes dans le lien pour les lecteurs d'écran
21
+ `download-link`: déplacement des attributs annexes dans le lien pour les lecteurs d'écran
22
+ - 2a6ce52: `callout` : remplacement de l'attribut `title` (déprécié) par `callout-title`; `button`, `checkbox` : remplacement des attributs `title` et `aria-label` (dépréciés) par `accessible-name`
23
+ - 11314ee: `header`: ajout d'un attribut permettant de choisir la taille du logo
24
+ `header-search`: ajout d'un attribut permettant de rendre le composant dans un état ouvert permanent
25
+ - 5f6d3f2: `header-search` : ajout d'un attribut `mobile`
26
+ - ffea5ba: `tab` : ajout de l'attribut close-button-label
27
+ - 2bc49cb: `header` : ajout d'un slot pour le premier logo
28
+ - 151414f: `dialog`: ajout d'un attribut permettant de cacher le titre du header
29
+
30
+ ### Patch Changes
31
+
32
+ - 5045b7d: `alert`: changement de l'attribut aria-live vers "polite"
33
+ - ba1513b: `input-phone`: ajustement espaces
34
+ - f2e90b5: Adaptation des stories pour améliorer les tests Chromatic
35
+ - ba7b276: `menu-navigation`, `filter-select` : retouches a11y
36
+ - c2407d7: `filter-select` : possibilité de changer d'option avec les flèches du clavier
37
+ - 44be976: `radio-group`, `checkbox-group` : permettre de cacher le label (si redondant)
38
+
3
39
  ## 2.0.1
4
40
 
5
41
  ### Patch Changes
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.LCUVJAUT.js";
4
4
  import {
5
5
  FormControlLayout
6
- } from "./chunk.PMMQ5QVY.js";
6
+ } from "./chunk.XQAKSW3W.js";
7
7
  import {
8
8
  getDateFromISO,
9
9
  getISOFormattedDate
@@ -1,25 +1,24 @@
1
1
  import {
2
2
  DSASelect
3
- } from "./chunk.R6BGXKHX.js";
3
+ } from "./chunk.LNBAAP45.js";
4
+ import {
5
+ getPhoneConfig
6
+ } from "./chunk.65HTBW2L.js";
4
7
  import {
5
8
  input_phone_styles_default
6
- } from "./chunk.KQ5BQRHA.js";
9
+ } from "./chunk.77CWRZEL.js";
7
10
  import {
8
- frenchFlagOption,
9
11
  frenchNumberPrefix,
10
12
  phonePrefixOptions
11
- } from "./chunk.CCL2RZON.js";
13
+ } from "./chunk.RJXLIOW7.js";
12
14
  import {
13
15
  maskedValueToRawValue,
14
16
  rawValueToMaskedValue,
15
17
  stripSpecialChars
16
18
  } from "./chunk.7OLEA3GQ.js";
17
- import {
18
- getPhoneConfig
19
- } from "./chunk.65HTBW2L.js";
20
19
  import {
21
20
  FormControlLayout
22
- } from "./chunk.PMMQ5QVY.js";
21
+ } from "./chunk.XQAKSW3W.js";
23
22
  import {
24
23
  l
25
24
  } from "./chunk.7PPSHHT2.js";
@@ -323,10 +322,15 @@ var DSAInputPhone = class extends FormControlLayout {
323
322
  display-value
324
323
  no-sync-width
325
324
  >
326
- ${phonePrefixOptions.map((option, index) => {
325
+ ${phonePrefixOptions.map((option) => {
327
326
  return x`
328
327
  <dsa-option value=${option.value} .size=${this.size}>
329
- ${frenchFlagOption(`option_${index}`)}
328
+ <dsa-icon
329
+ slot="prefix"
330
+ name="french_flag"
331
+ library="system"
332
+ class="input-phone__flag"
333
+ ></dsa-icon>
330
334
  ${this.localize.term(option.label)} (${option.value})
331
335
  </dsa-option>
332
336
  `;
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.QVX3F6W3.js";
13
13
  import {
14
14
  FormControlLayout
15
- } from "./chunk.PMMQ5QVY.js";
15
+ } from "./chunk.XQAKSW3W.js";
16
16
  import {
17
17
  l
18
18
  } from "./chunk.7PPSHHT2.js";
@@ -4,6 +4,7 @@ var icons = {
4
4
  add_box: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"/></svg>`,
5
5
  arrow_upward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>`,
6
6
  calendar_today: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z"/></svg>`,
7
+ cancel: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"/></svg>`,
7
8
  check: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>`,
8
9
  chevron_left: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></svg>`,
9
10
  chevron_right: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></svg>`,
@@ -24,6 +25,23 @@ var icons = {
24
25
  error_outline: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg>`,
25
26
  expand_more: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"/></svg>`,
26
27
  filter_list: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>`,
28
+ french_flag: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
29
+ <g clip-path="url(#clip0_24022_31892)">
30
+ <rect x="0.25" y="0.25" width="23.5" height="23.5" rx="1.75" fill="white" stroke="#F5F5F5" stroke-width="0.5"/>
31
+ <mask id="mask0_24022_31892" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
32
+ <rect x="0.25" y="0.25" width="23.5" height="23.5" rx="1.75" fill="white" stroke="white" stroke-width="0.5"/>
33
+ </mask>
34
+ <g mask="url(#mask0_24022_31892)">
35
+ <rect x="16" width="8" height="24" fill="#F44653"/>
36
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0 24H8V0H0V24Z" fill="#1035BB"/>
37
+ </g>
38
+ </g>
39
+ <defs>
40
+ <clipPath id="clip0_24022_31892">
41
+ <rect width="24" height="24" fill="white"/>
42
+ </clipPath>
43
+ </defs>
44
+ </svg>`,
27
45
  horizontal_rule: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 11h16v2H4z"/></svg>`,
28
46
  indeterminate_check_box: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 11h10v2H7z"/></svg>`,
29
47
  info: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>`,
@@ -89,7 +89,7 @@ var DSATab = class extends ShoelaceElement {
89
89
  part="close-button"
90
90
  exportparts="base:close-button__base"
91
91
  name="close"
92
- label=${this.localize.term("close")}
92
+ label=${this.closeButtonLabel && this.closeButtonLabel !== "" ? this.closeButtonLabel : this.localize.term("close")}
93
93
  class="tab__close-button"
94
94
  @click=${this.handleCloseClick}
95
95
  library="system"
@@ -118,6 +118,9 @@ __decorateClass([
118
118
  __decorateClass([
119
119
  n({ type: Boolean })
120
120
  ], DSATab.prototype, "closable", 2);
121
+ __decorateClass([
122
+ n({ attribute: "close-button-label" })
123
+ ], DSATab.prototype, "closeButtonLabel", 2);
121
124
  __decorateClass([
122
125
  n({ type: Boolean, reflect: true })
123
126
  ], DSATab.prototype, "disabled", 2);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  option_styles_default
3
- } from "./chunk.VR6U4JFG.js";
3
+ } from "./chunk.CUCCBQJX.js";
4
4
  import {
5
5
  LocalizeController
6
6
  } from "./chunk.ZLWLHLBC.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.3BJMFOLF.js";
5
5
  import {
6
6
  header_styles_default
7
- } from "./chunk.CSDIRQFE.js";
7
+ } from "./chunk.XLX7QTXT.js";
8
8
  import {
9
9
  HasSlotController
10
10
  } from "./chunk.YIY5RM53.js";
@@ -45,6 +45,7 @@ var DSAHeader = class extends ShoelaceElement {
45
45
  this.localize = new LocalizeController(this);
46
46
  this.firstLogo = "public";
47
47
  this.logoHref = "/";
48
+ this.logoSize = "default";
48
49
  this.searchExpanded = false;
49
50
  this.mobile = false;
50
51
  }
@@ -74,6 +75,14 @@ var DSAHeader = class extends ShoelaceElement {
74
75
  }
75
76
  }
76
77
  }
78
+ handleMobile() {
79
+ if (this.hasSlotController.test("search")) {
80
+ const search = this.querySelector("dsa-header-search");
81
+ if (search !== null && this.mobile !== void 0) {
82
+ search.mobile = this.mobile;
83
+ }
84
+ }
85
+ }
77
86
  render() {
78
87
  const hasBrand = this.hasSlotController.test("second-logo") || this.hasSlotController.test("site-name");
79
88
  return x`
@@ -98,11 +107,22 @@ var DSAHeader = class extends ShoelaceElement {
98
107
  "header--search-expanded": this.hasSlotController.test("search") && this.searchExpanded
99
108
  })}
100
109
  >
101
- <a href=${this.logoHref} part="first-logo" class="logo dsa-link">
102
- ${this.firstLogo === "public" ? dsaLogoSvg(this.localize.term("dsaGoToHomepage")) : cnsaLogoSvg(this.localize.term("cnsaGoToHomepage"))}
103
- </a>
110
+ <slot
111
+ name="first-logo"
112
+ part="first-logo"
113
+ class="logo ${this.logoSize === "large" && "logo-large"}"
114
+ >
115
+ <a href=${this.logoHref} class="logo-link">
116
+ ${this.firstLogo === "public" ? dsaLogoSvg(this.localize.term("dsaGoToHomepage")) : cnsaLogoSvg(this.localize.term("cnsaGoToHomepage"))}
117
+ </a>
118
+ </slot>
104
119
  <div part="brand">
105
- ${this.hasSlotController.test("second-logo") ? x` <slot name="second-logo" class="logo"></slot> ` : ""}
120
+ ${this.hasSlotController.test("second-logo") ? x`
121
+ <slot
122
+ name="second-logo"
123
+ class="logo ${this.logoSize === "large" && "logo-large"}"
124
+ ></slot>
125
+ ` : ""}
106
126
  ${this.hasSlotController.test("site-name") || this.hasSlotController.test("baseline") ? x`
107
127
  <div class="site-info">
108
128
  <slot name="site-name" part="site-name"></slot>
@@ -130,6 +150,9 @@ __decorateClass([
130
150
  __decorateClass([
131
151
  n({ reflect: true, attribute: "logo-href" })
132
152
  ], DSAHeader.prototype, "logoHref", 2);
153
+ __decorateClass([
154
+ n({ attribute: "logo-size" })
155
+ ], DSAHeader.prototype, "logoSize", 2);
133
156
  __decorateClass([
134
157
  n({ reflect: true, type: Boolean, attribute: "search-expanded" })
135
158
  ], DSAHeader.prototype, "searchExpanded", 2);
@@ -139,6 +162,9 @@ __decorateClass([
139
162
  __decorateClass([
140
163
  watch("searchExpanded")
141
164
  ], DSAHeader.prototype, "handleSearchExpanded", 1);
165
+ __decorateClass([
166
+ watch("mobile")
167
+ ], DSAHeader.prototype, "handleMobile", 1);
142
168
  DSAHeader = __decorateClass([
143
169
  t("dsa-header")
144
170
  ], DSAHeader);
@@ -17,22 +17,6 @@ var checkbox_group_styles_default = i`
17
17
  display: block;
18
18
  }
19
19
 
20
- .visually-hidden {
21
- position: absolute;
22
- width: 1px;
23
- height: 1px;
24
- padding: 0;
25
- margin: -1px;
26
- overflow: hidden;
27
- clip: rect(0, 0, 0, 0);
28
- white-space: nowrap;
29
- border: 0;
30
- }
31
-
32
- .checkbox-group__default-slot {
33
- display: none;
34
- }
35
-
36
20
  .checkbox-group__list-container {
37
21
  display: inline-block;
38
22
  }
@@ -40,18 +24,14 @@ var checkbox_group_styles_default = i`
40
24
  gap: var(--dsa-spacing-8);
41
25
  }
42
26
 
43
- :not(.form-control--options-horizontal)
27
+ .form-control:not(.form-control--options-horizontal)
44
28
  .checkbox-group__list--checkbox-buttons {
45
29
  flex-wrap: wrap;
46
30
  min-width: 120px;
47
31
  max-width: 400px;
48
32
  }
49
33
 
50
- .checkbox-group__listitem {
51
- display: contents;
52
- }
53
-
54
- :not(form-control--options-horizontal) dsa-checkbox-button {
34
+ .form-control:not(.form-control--options-horizontal) dsa-checkbox-button {
55
35
  max-width: 400px;
56
36
  }
57
37
  `;
@@ -71,8 +71,7 @@ var DSATableRow = class extends ShoelaceElement {
71
71
  class="checkbox"
72
72
  size="small"
73
73
  name=${this.selectionName}
74
- title=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
75
- aria-label=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
74
+ accessible-name=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
76
75
  value=${this.selectionValue}
77
76
  ?checked=${this.selected}
78
77
  @click=${(e3) => e3.stopPropagation()}
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DSAOption
3
- } from "./chunk.ZC2YWJX5.js";
3
+ } from "./chunk.5BF76EO7.js";
4
4
  import {
5
5
  filter_select_styles_default
6
6
  } from "./chunk.57V66KCM.js";
7
7
  import {
8
8
  DSAInput
9
- } from "./chunk.QCSRN6TI.js";
9
+ } from "./chunk.3JMBGIZN.js";
10
10
  import {
11
11
  FilterBase
12
12
  } from "./chunk.SW4US4PJ.js";
@@ -82,6 +82,23 @@ var DSAFilterSelect = class extends FilterBase {
82
82
  this.filterTrigger.focus({ preventScroll: true });
83
83
  }
84
84
  }
85
+ if (!this.multiple && isOption && ["ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
86
+ const currentIndex = this.displayedOptions.indexOf(this.currentOption);
87
+ let newIndex = Math.max(0, currentIndex);
88
+ if (!(currentIndex === 0 && event.key === "ArrowUp") && !(currentIndex === this.displayedOptions.length - 1 && event.key === "ArrowDown")) {
89
+ event.preventDefault();
90
+ }
91
+ if (event.key === "ArrowDown" && currentIndex < this.displayedOptions.length - 1) {
92
+ newIndex = currentIndex + 1;
93
+ } else if (event.key === "ArrowUp" && currentIndex > 0) {
94
+ newIndex = currentIndex - 1;
95
+ } else if (event.key === "Home") {
96
+ newIndex = 0;
97
+ } else if (event.key === "End") {
98
+ newIndex = this.displayedOptions.length - 1;
99
+ }
100
+ this.setCurrentOption(this.displayedOptions[newIndex]);
101
+ }
85
102
  if (isSearchInput) {
86
103
  event.stopPropagation();
87
104
  }
@@ -300,6 +317,9 @@ var DSAFilterSelect = class extends FilterBase {
300
317
  );
301
318
  }
302
319
  }
320
+ handleMultipleChange() {
321
+ this.handleDefaultSlotChange();
322
+ }
303
323
  /** Hides the listbox. */
304
324
  async hide() {
305
325
  await super.hide();
@@ -526,6 +546,9 @@ __decorateClass([
526
546
  __decorateClass([
527
547
  watch("seeAll")
528
548
  ], DSAFilterSelect.prototype, "handleSeeAllChange", 1);
549
+ __decorateClass([
550
+ watch("multiple")
551
+ ], DSAFilterSelect.prototype, "handleMultipleChange", 1);
529
552
  DSAFilterSelect = __decorateClass([
530
553
  t("dsa-filter-select")
531
554
  ], DSAFilterSelect);
@@ -37,7 +37,7 @@ var DSAMenuNavigation = class extends ShoelaceElement {
37
37
  }
38
38
  // A change of attributes on the slotted elements does not trigger the "slotchange" event, so we add an observer
39
39
  render() {
40
- return x`<slot role="list" @keydown=${this.handleKeyDown}></slot>`;
40
+ return x`<slot @keydown=${this.handleKeyDown}></slot>`;
41
41
  }
42
42
  };
43
43
  DSAMenuNavigation.styles = menu_navigation_styles_default;
@@ -300,6 +300,9 @@ var input_phone_styles_default = i`
300
300
  var(--dsa-wc-input-phone-height) - var(--dsa-wc-input-border-width) * 2
301
301
  );
302
302
  }
303
+ .form-control--medium .input-phone__flag {
304
+ width: 1.25rem;
305
+ }
303
306
 
304
307
  .form-control--large {
305
308
  --input-phone__select__min-width: 68px;
@@ -316,6 +319,9 @@ var input_phone_styles_default = i`
316
319
  2
317
320
  );
318
321
  }
322
+ .form-control--large .input-phone__flag {
323
+ width: 1.5rem;
324
+ }
319
325
 
320
326
  /*
321
327
  * Clearable
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.3CJGMKTJ.js";
4
4
  import {
5
5
  FormControlLayout
6
- } from "./chunk.PMMQ5QVY.js";
6
+ } from "./chunk.XQAKSW3W.js";
7
7
  import {
8
8
  l
9
9
  } from "./chunk.7PPSHHT2.js";
@@ -1,9 +1,12 @@
1
+ import {
2
+ radio_group_styles_default
3
+ } from "./chunk.27YR5DC6.js";
1
4
  import {
2
5
  wrapIndex
3
6
  } from "./chunk.HV63L5BF.js";
4
7
  import {
5
- radio_group_styles_default
6
- } from "./chunk.27YR5DC6.js";
8
+ a11yWarning
9
+ } from "./chunk.PWL7QCVG.js";
7
10
  import {
8
11
  renderFormElementErrors
9
12
  } from "./chunk.EY4WUNAJ.js";
@@ -19,6 +22,9 @@ import {
19
22
  import {
20
23
  watch
21
24
  } from "./chunk.4FQJ3QJK.js";
25
+ import {
26
+ ifDefinedAndNotEmpty
27
+ } from "./chunk.B6GVVW66.js";
22
28
  import {
23
29
  e as e2
24
30
  } from "./chunk.IKHG7XGO.js";
@@ -29,6 +35,12 @@ import {
29
35
  r,
30
36
  t
31
37
  } from "./chunk.DZB6XUZ7.js";
38
+ import {
39
+ component_styles_default
40
+ } from "./chunk.PSQJDSB2.js";
41
+ import {
42
+ i
43
+ } from "./chunk.4KHZQZ3M.js";
32
44
  import {
33
45
  x
34
46
  } from "./chunk.7HUC6BF3.js";
@@ -36,6 +48,145 @@ import {
36
48
  __decorateClass
37
49
  } from "./chunk.4ZGVANML.js";
38
50
 
51
+ // src/internal/components/button-group/button-group.styles.ts
52
+ var button_group_styles_default = i`
53
+ ${component_styles_default}
54
+
55
+ :host {
56
+ display: inline-block;
57
+ }
58
+
59
+ .button-group {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ gap: var(--dsa-spacing-8);
63
+ }
64
+
65
+ .button-group--squeezed {
66
+ gap: 0;
67
+ }
68
+
69
+ .button-group--vertical {
70
+ flex-direction: column;
71
+ min-width: 120px;
72
+ max-width: 400px;
73
+ }
74
+
75
+ .button-group--horizontal {
76
+ flex-direction: row;
77
+ }
78
+ `;
79
+
80
+ // src/internal/components/button-group/button-group.ts
81
+ var DSAInternalButtonGroup = class extends ShoelaceElement {
82
+ constructor() {
83
+ super(...arguments);
84
+ this.disableRole = false;
85
+ this.label = "";
86
+ this.squeezed = false;
87
+ this.horizontal = false;
88
+ }
89
+ handleFocus(event) {
90
+ const button = findButton(event.target);
91
+ button == null ? void 0 : button.classList.add("dsa-button-group__button--focus");
92
+ }
93
+ handleBlur(event) {
94
+ const button = findButton(event.target);
95
+ button == null ? void 0 : button.classList.remove("dsa-button-group__button--focus");
96
+ }
97
+ handleMouseOver(event) {
98
+ const button = findButton(event.target);
99
+ button == null ? void 0 : button.classList.add("dsa-button-group__button--hover");
100
+ }
101
+ handleMouseOut(event) {
102
+ const button = findButton(event.target);
103
+ button == null ? void 0 : button.classList.remove("dsa-button-group__button--hover");
104
+ }
105
+ handleSlotChange() {
106
+ const slottedElements = [
107
+ ...this.defaultSlot.assignedElements({ flatten: true })
108
+ ];
109
+ slottedElements.forEach((el) => {
110
+ const index = slottedElements.indexOf(el);
111
+ const button = findButton(el);
112
+ if (button !== null) {
113
+ button.classList.add("dsa-button-group__button");
114
+ if (this.squeezed) {
115
+ button.classList.toggle(
116
+ "dsa-button-group__button--first",
117
+ index === 0
118
+ );
119
+ button.classList.toggle(
120
+ "dsa-button-group__button--inner",
121
+ index > 0 && index < slottedElements.length - 1
122
+ );
123
+ button.classList.toggle(
124
+ "dsa-button-group__button--last",
125
+ index === slottedElements.length - 1
126
+ );
127
+ }
128
+ button.classList.toggle(
129
+ "dsa-button-group__button--radio",
130
+ button.tagName.toLowerCase() === "dsa-radio-button"
131
+ );
132
+ button.classList.toggle(
133
+ "dsa-button-group__button--checkbox",
134
+ button.tagName.toLowerCase() === "dsa-checkbox-button"
135
+ );
136
+ button.classList.toggle(
137
+ "dsa-button-group__button--vertical",
138
+ !this.horizontal
139
+ );
140
+ }
141
+ });
142
+ }
143
+ render() {
144
+ return x`
145
+ <div
146
+ part="base"
147
+ class=${e2({
148
+ "button-group": true,
149
+ "button-group--squeezed": this.squeezed,
150
+ "button-group--vertical": !this.horizontal,
151
+ "button-group--horizontal": this.horizontal
152
+ })}
153
+ role="${this.disableRole ? "presentation" : "group"}"
154
+ aria-label=${ifDefinedAndNotEmpty(this.label)}
155
+ @focusout=${this.handleBlur}
156
+ @focusin=${this.handleFocus}
157
+ @mouseover=${this.handleMouseOver}
158
+ @mouseout=${this.handleMouseOut}
159
+ >
160
+ <slot @slotchange=${this.handleSlotChange}></slot>
161
+ </div>
162
+ `;
163
+ }
164
+ };
165
+ DSAInternalButtonGroup.styles = button_group_styles_default;
166
+ __decorateClass([
167
+ e("slot")
168
+ ], DSAInternalButtonGroup.prototype, "defaultSlot", 2);
169
+ __decorateClass([
170
+ r()
171
+ ], DSAInternalButtonGroup.prototype, "disableRole", 2);
172
+ __decorateClass([
173
+ n()
174
+ ], DSAInternalButtonGroup.prototype, "label", 2);
175
+ __decorateClass([
176
+ n({ type: Boolean })
177
+ ], DSAInternalButtonGroup.prototype, "squeezed", 2);
178
+ __decorateClass([
179
+ n({ type: Boolean })
180
+ ], DSAInternalButtonGroup.prototype, "horizontal", 2);
181
+ DSAInternalButtonGroup = __decorateClass([
182
+ t("dsa-internal-button-group")
183
+ ], DSAInternalButtonGroup);
184
+ function findButton(el) {
185
+ var _a;
186
+ const selector = "dsa-button, dsa-radio-button, dsa-checkbox-button, dsa-pagination-button";
187
+ return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
188
+ }
189
+
39
190
  // src/components/radio-group/radio-group.ts
40
191
  var DSARadioGroup = class extends ShoelaceElement {
41
192
  constructor() {
@@ -63,6 +214,7 @@ var DSARadioGroup = class extends ShoelaceElement {
63
214
  this.horizontal = false;
64
215
  this.error = false;
65
216
  this.errorMessage = "";
217
+ this.hideLabel = false;
66
218
  }
67
219
  /** Gets the validity state object */
68
220
  get validity() {
@@ -312,6 +464,11 @@ var DSARadioGroup = class extends ShoelaceElement {
312
464
  const hasHelpTextSlot = this.hasSlotController.test("help-text");
313
465
  const hasLabel = this.label ? true : !!hasLabelSlot;
314
466
  const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
467
+ if (!hasLabel) {
468
+ a11yWarning(
469
+ "<dsa-radio-group> requires a label attribute or a label slot for accessibility"
470
+ );
471
+ }
315
472
  return x`
316
473
  <fieldset
317
474
  part="form-control"
@@ -330,16 +487,21 @@ var DSARadioGroup = class extends ShoelaceElement {
330
487
  aria-describedby=${this.error ? "error-text help-text" : "help-text"}
331
488
  aria-invalid=${this.error}
332
489
  >
333
- <span
334
- part="form-control-label"
335
- id="label"
336
- class="form-control__label"
337
- aria-hidden=${hasLabel ? "false" : "true"}
338
- @click=${this.handleLabelClick}
339
- >
340
- ${this.required ? x`<span class="form-control__label-required">*</span>` : ""}
341
- <slot name="label">${this.label}</slot>
342
- </span>
490
+ ${this.hideLabel ? x`<dsa-visually-hidden id="label"
491
+ ><slot name="label">${this.label}</slot></dsa-visually-hidden
492
+ >` : x`
493
+ <span
494
+ part="form-control-label"
495
+ id="label"
496
+ class="form-control__label"
497
+ aria-hidden=${hasLabel ? "false" : "true"}
498
+ @click=${this.handleLabelClick}
499
+ >
500
+ ${this.required ? x`<span class="form-control__label-required">*</span>` : ""}
501
+ <slot name="label">${this.label}</slot>
502
+ </span>
503
+ `}
504
+
343
505
  <slot name="tooltip" class="form-control__tooltip"></slot>
344
506
 
345
507
  <div
@@ -462,6 +624,9 @@ __decorateClass([
462
624
  }
463
625
  })
464
626
  ], DSARadioGroup.prototype, "errorMessage", 2);
627
+ __decorateClass([
628
+ n({ type: Boolean, attribute: "hide-label" })
629
+ ], DSARadioGroup.prototype, "hideLabel", 2);
465
630
  __decorateClass([
466
631
  watch("value")
467
632
  ], DSARadioGroup.prototype, "handleValueChange", 1);
@@ -1,9 +1,9 @@
1
+ import {
2
+ DSATableRow
3
+ } from "./chunk.6CF6SXDF.js";
1
4
  import {
2
5
  table_header_row_styles_default
3
6
  } from "./chunk.JEWSMUZM.js";
4
- import {
5
- DSATableRow
6
- } from "./chunk.GDKBZ2H6.js";
7
7
  import {
8
8
  t
9
9
  } from "./chunk.DZB6XUZ7.js";
@@ -31,8 +31,7 @@ var DSATableHeaderRow = class extends DSATableRow {
31
31
  class="checkbox"
32
32
  size="small"
33
33
  name=${this.selectionName}
34
- title=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectAllTableRows")}
35
- aria-label=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectAllTableRows")}
34
+ accessible-name=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectAllTableRows")}
36
35
  value=${this.selectionValue}
37
36
  ?checked=${this.selected}
38
37
  @click=${(e) => e.stopPropagation()}