@ds-autonomie/web-components 2.2.0 → 2.3.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 (510) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/cdn/chunks/{chunk.CZHOLGSR.js → chunk.27YOIDOY.js} +1 -1
  3. package/cdn/chunks/{chunk.YD6XEMWC.js → chunk.2Q6V7LT2.js} +1 -1
  4. package/cdn/chunks/{chunk.UAQ7MMLI.js → chunk.2QGLZHHF.js} +3 -3
  5. package/cdn/chunks/{chunk.MJLKYERJ.js → chunk.2T2ABKP4.js} +2 -2
  6. package/cdn/chunks/chunk.35PPY25N.js +92 -0
  7. package/cdn/chunks/{chunk.EARU4CHS.js → chunk.3AT66TOX.js} +1 -1
  8. package/cdn/chunks/{chunk.WJ2QJ5NF.js → chunk.3CRRJ74Q.js} +4 -4
  9. package/cdn/chunks/{chunk.SW4US4PJ.js → chunk.4AMHKT45.js} +1 -1
  10. package/cdn/chunks/{chunk.BCLU5KXE.js → chunk.4VWDJUDJ.js} +1 -1
  11. package/cdn/chunks/{chunk.6H5KLQNT.js → chunk.57JBB4UL.js} +1 -1
  12. package/cdn/chunks/{chunk.THD27VRI.js → chunk.57UCUSPU.js} +1 -1
  13. package/cdn/chunks/{chunk.YS6XV3LD.js → chunk.5AKIIMXP.js} +3 -3
  14. package/cdn/chunks/{chunk.7CIXFYLV.js → chunk.5EYEXU6M.js} +1 -1
  15. package/cdn/chunks/chunk.5IFHMXXG.js +229 -0
  16. package/cdn/chunks/chunk.6BPVPY42.js +318 -0
  17. package/cdn/chunks/{chunk.IPZC55RV.js → chunk.6BXZEG5L.js} +3 -0
  18. package/cdn/chunks/{chunk.C62MMBV4.js → chunk.6NFWRZM6.js} +43 -53
  19. package/cdn/chunks/{chunk.RPRWT2IH.js → chunk.74QWC4UR.js} +2 -2
  20. package/cdn/chunks/{chunk.I7XP2UMV.js → chunk.7FRA5H32.js} +1 -1
  21. package/cdn/chunks/{chunk.5BL6KECM.js → chunk.7KCIFACP.js} +2 -2
  22. package/cdn/chunks/{chunk.27YR5DC6.js → chunk.7S74KUA4.js} +1 -13
  23. package/cdn/chunks/{chunk.E6VF2I6I.js → chunk.7VDWWPRU.js} +4 -3
  24. package/cdn/chunks/chunk.7WXOGHV7.js +46 -0
  25. package/cdn/chunks/{chunk.L7BI7NJL.js → chunk.7ZBG7ZQG.js} +1 -1
  26. package/cdn/chunks/{chunk.WO2QCEF7.js → chunk.BLLAYNRQ.js} +1 -1
  27. package/cdn/chunks/{chunk.Y3OADZB3.js → chunk.BPP37CID.js} +32 -32
  28. package/cdn/chunks/{chunk.P45DWAWT.js → chunk.CAYHSQZJ.js} +1 -1
  29. package/cdn/chunks/{chunk.2APAO2OW.js → chunk.CKDGFB52.js} +9 -6
  30. package/cdn/chunks/{chunk.OP36PAMU.js → chunk.CL4C4BFH.js} +2 -2
  31. package/cdn/chunks/chunk.D2LMY47K.js +154 -0
  32. package/cdn/chunks/{chunk.BE7PKTJW.js → chunk.D5IL5KN6.js} +5 -5
  33. package/cdn/chunks/{chunk.LCUVJAUT.js → chunk.DDRUVCZW.js} +1 -1
  34. package/cdn/chunks/{chunk.J3A7VDK5.js → chunk.EKKWPXJL.js} +32 -12
  35. package/cdn/chunks/{chunk.HYTYRM6S.js → chunk.ER5ZWWSU.js} +10 -5
  36. package/cdn/chunks/{chunk.2DJERWBI.js → chunk.ERQYJQKU.js} +3 -3
  37. package/cdn/chunks/{chunk.77JWQ5MT.js → chunk.F34KPGDS.js} +1 -1
  38. package/cdn/chunks/{chunk.Y2DCLNZQ.js → chunk.FXVCDQEN.js} +1 -1
  39. package/cdn/chunks/{chunk.6QTMZJGH.js → chunk.G7UC5QGP.js} +5 -5
  40. package/cdn/chunks/{chunk.JBUFTMYB.js → chunk.GCLAPOSZ.js} +1 -1
  41. package/cdn/chunks/{chunk.W2MICEQN.js → chunk.GN3AVMBZ.js} +1 -1
  42. package/cdn/chunks/chunk.H2OEFMQC.js +186 -0
  43. package/cdn/chunks/{chunk.FMPJ4AXA.js → chunk.H3Y633AF.js} +1 -1
  44. package/{dist/chunks/chunk.3TUFAITJ.js → cdn/chunks/chunk.HJU52GCK.js} +1 -1
  45. package/cdn/chunks/{chunk.UFCZPYZA.js → chunk.HMLKFYNH.js} +1 -1
  46. package/cdn/chunks/{chunk.JNDULVYM.js → chunk.HZJEKORW.js} +1 -1
  47. package/cdn/chunks/{chunk.TCGVOWNQ.js → chunk.IAOVYG7Z.js} +1 -1
  48. package/cdn/chunks/{chunk.FHOCNAJ4.js → chunk.IB463542.js} +1 -1
  49. package/cdn/chunks/chunk.IONY2GZF.js +72 -0
  50. package/cdn/chunks/chunk.ITHTXYNC.js +92 -0
  51. package/cdn/chunks/{chunk.M7QHADJH.js → chunk.IZ6KYT7R.js} +25 -14
  52. package/cdn/chunks/{chunk.4NC4QO64.js → chunk.J6J6XRPR.js} +1 -1
  53. package/cdn/chunks/{chunk.XPL6N3OJ.js → chunk.JLZQJQF4.js} +9 -12
  54. package/cdn/chunks/{chunk.FHTVGJJI.js → chunk.JXHXRRPX.js} +1 -1
  55. package/cdn/chunks/{chunk.7KCFANDH.js → chunk.KCPXZK3D.js} +1 -1
  56. package/cdn/chunks/chunk.KNY4ZIQ7.js +282 -0
  57. package/cdn/chunks/{chunk.ZLWLHLBC.js → chunk.LICWCBKN.js} +12 -0
  58. package/cdn/chunks/{chunk.Y4RIWPTX.js → chunk.LLZPEDQW.js} +1 -1
  59. package/cdn/chunks/{chunk.3JMBGIZN.js → chunk.LYPHJJYB.js} +77 -36
  60. package/cdn/chunks/{chunk.OIOL7U5V.js → chunk.MNE7AANP.js} +1 -1
  61. package/cdn/chunks/{chunk.CYMM2ZAV.js → chunk.NX5D5OTS.js} +9 -2
  62. package/cdn/chunks/chunk.O3K7DNLG.js +102 -0
  63. package/cdn/chunks/chunk.O577BA4U.js +23 -0
  64. package/cdn/chunks/{chunk.IS6JFFBR.js → chunk.OLIPJEPX.js} +1 -1
  65. package/cdn/chunks/{chunk.T4RXUUPV.js → chunk.OMBOQURT.js} +2 -2
  66. package/cdn/chunks/{chunk.45JVH3EU.js → chunk.OZVVCEKQ.js} +1 -1
  67. package/cdn/chunks/{chunk.ATHAYO6A.js → chunk.P5KRELMB.js} +60 -213
  68. package/cdn/chunks/{chunk.BNPGOQZ2.js → chunk.P7D7IUHT.js} +1 -1
  69. package/cdn/chunks/chunk.PQYUBPRU.js +676 -0
  70. package/cdn/chunks/{chunk.XSXBXWVS.js → chunk.QFP2EIRS.js} +1 -0
  71. package/cdn/chunks/{chunk.NSE76EM5.js → chunk.ROGVB4AO.js} +2 -2
  72. package/cdn/chunks/{chunk.RJROYRRA.js → chunk.RXUJBLKT.js} +1 -1
  73. package/cdn/chunks/{chunk.HNDRJ3LR.js → chunk.SE7W7XMK.js} +1 -1
  74. package/cdn/chunks/{chunk.XQAKSW3W.js → chunk.SF3YU6PZ.js} +3 -0
  75. package/cdn/chunks/{chunk.QVX3F6W3.js → chunk.T56ZOKTF.js} +1 -1
  76. package/cdn/chunks/{chunk.D34ULVGO.js → chunk.TAKMMVMG.js} +1 -1
  77. package/cdn/chunks/{chunk.FA2HQBM6.js → chunk.TENBZ64C.js} +27 -6
  78. package/cdn/chunks/{chunk.P5N74W74.js → chunk.THMGZ3JS.js} +1 -1
  79. package/cdn/chunks/{chunk.YQQNMFZF.js → chunk.TO65OMN5.js} +45 -36
  80. package/cdn/chunks/{chunk.6CF6SXDF.js → chunk.U5Q3HCRP.js} +1 -1
  81. package/cdn/chunks/{chunk.RPF6UDR4.js → chunk.US6UTTN5.js} +1 -1
  82. package/cdn/chunks/{chunk.3CJGMKTJ.js → chunk.V5TMX44U.js} +1 -1
  83. package/cdn/chunks/{chunk.3OPTPDM7.js → chunk.VGXDHXD4.js} +1 -1
  84. package/cdn/chunks/{chunk.XLX7QTXT.js → chunk.VZJGVIXG.js} +1 -0
  85. package/cdn/chunks/{chunk.NC6BC5GU.js → chunk.W2B6WXUI.js} +17 -1
  86. package/cdn/chunks/{chunk.XWKSA3TQ.js → chunk.W547AC5O.js} +1 -1
  87. package/cdn/chunks/{chunk.LNBAAP45.js → chunk.WE7BT7PI.js} +3 -3
  88. package/cdn/chunks/{chunk.CVV4WLBC.js → chunk.WMMK7OL4.js} +19 -12
  89. package/cdn/chunks/{chunk.A33BZOMA.js → chunk.WOKVCL7Q.js} +2 -2
  90. package/cdn/chunks/{chunk.77CWRZEL.js → chunk.WY2HI4TL.js} +1 -1
  91. package/cdn/chunks/{chunk.5BF76EO7.js → chunk.YA7ZX7VM.js} +1 -1
  92. package/cdn/chunks/{chunk.NVI4N3YH.js → chunk.YDBMOXIS.js} +1 -1
  93. package/cdn/chunks/chunk.YGAW4V4H.js +44 -0
  94. package/cdn/chunks/{chunk.DSKRAAOI.js → chunk.Z7VB7VAD.js} +1 -1
  95. package/cdn/chunks/{chunk.M5Z546V7.js → chunk.ZEPLEFIQ.js} +1 -1
  96. package/cdn/chunks/{chunk.YSKUVTPO.js → chunk.ZLZIVCPW.js} +1 -1
  97. package/cdn/chunks/{chunk.KELDA33H.js → chunk.ZTXQFGQX.js} +2 -2
  98. package/cdn/chunks/{chunk.APACKBZF.js → chunk.ZUJJYUHF.js} +1 -1
  99. package/cdn/chunks/{chunk.3PW6CC5R.js → chunk.ZVQQ7DON.js} +1 -1
  100. package/cdn/components/accordion/accordion.js +5 -5
  101. package/cdn/components/alert/alert.js +5 -5
  102. package/cdn/components/avatar/avatar.js +4 -4
  103. package/cdn/components/breadcrumb/breadcrumb.js +5 -5
  104. package/cdn/components/breadcrumb-item/breadcrumb-item.js +2 -2
  105. package/cdn/components/button/button.d.ts +1 -1
  106. package/cdn/components/button/button.js +7 -7
  107. package/cdn/components/button/button.styles.js +1 -1
  108. package/cdn/components/calendar/calendar.js +3 -3
  109. package/cdn/components/callout/callout.js +3 -3
  110. package/cdn/components/checkbox/checkbox.d.ts +6 -3
  111. package/cdn/components/checkbox/checkbox.js +11 -9
  112. package/cdn/components/checkbox/checkbox.styles.js +2 -2
  113. package/cdn/components/checkbox-button/checkbox-button.js +17 -6
  114. package/cdn/components/checkbox-card/checkbox-card.d.ts +25 -0
  115. package/cdn/components/checkbox-card/checkbox-card.js +27 -0
  116. package/cdn/components/checkbox-group/checkbox-group.d.ts +5 -3
  117. package/cdn/components/checkbox-group/checkbox-group.js +6 -6
  118. package/cdn/components/checkbox-group/checkbox-group.styles.js +2 -2
  119. package/cdn/components/combobox/combobox.js +10 -10
  120. package/cdn/components/combobox/combobox.styles.js +2 -2
  121. package/cdn/components/dialog/dialog.d.ts +11 -5
  122. package/cdn/components/dialog/dialog.js +6 -6
  123. package/cdn/components/dialog/dialog.styles.js +1 -1
  124. package/cdn/components/download-card/download-card.js +3 -3
  125. package/cdn/components/download-link/download-link.js +3 -3
  126. package/cdn/components/drawer/drawer.js +5 -5
  127. package/cdn/components/dropdown/dropdown.js +2 -2
  128. package/cdn/components/error-message-panel/error-message-panel.js +2 -2
  129. package/cdn/components/error-text/error-text.js +3 -3
  130. package/cdn/components/file-upload/file-upload.js +7 -7
  131. package/cdn/components/file-upload/file-upload.styles.js +2 -2
  132. package/cdn/components/file-upload-item/file-upload-item.js +3 -3
  133. package/cdn/components/filter-base/filter-base.js +6 -6
  134. package/cdn/components/filter-button/filter-button.js +5 -5
  135. package/cdn/components/filter-counter/filter-counter.js +25 -19
  136. package/cdn/components/filter-date/filter-date.js +10 -10
  137. package/cdn/components/filter-range/filter-range.js +26 -20
  138. package/cdn/components/filter-select/filter-select.js +25 -22
  139. package/cdn/components/footer/footer.js +3 -3
  140. package/cdn/components/footer/footer.styles.js +1 -1
  141. package/cdn/components/format-bytes/format-bytes.js +2 -2
  142. package/cdn/components/format-date/format-date.js +2 -2
  143. package/cdn/components/format-number/format-number.js +2 -2
  144. package/cdn/components/header/header.js +3 -3
  145. package/cdn/components/header/header.styles.js +1 -1
  146. package/cdn/components/header-search/header-search.js +8 -8
  147. package/cdn/components/icon/icon.js +3 -3
  148. package/cdn/components/icon/library.js +2 -2
  149. package/cdn/components/icon/library.system.js +1 -1
  150. package/cdn/components/icon-button/icon-button.js +3 -3
  151. package/cdn/components/input/input.d.ts +3 -7
  152. package/cdn/components/input/input.js +19 -13
  153. package/cdn/components/input/input.styles.js +2 -2
  154. package/cdn/components/input-date/input-date.d.ts +7 -2
  155. package/cdn/components/input-date/input-date.js +12 -12
  156. package/cdn/components/input-date/input-date.styles.js +3 -3
  157. package/cdn/components/input-mask/input-mask.js +8 -8
  158. package/cdn/components/input-mask/input-mask.styles.js +2 -2
  159. package/cdn/components/input-otp/input-otp.js +7 -7
  160. package/cdn/components/input-otp/input-otp.styles.js +2 -2
  161. package/cdn/components/input-phone/input-phone.js +13 -13
  162. package/cdn/components/input-phone/input-phone.styles.js +2 -2
  163. package/cdn/components/input-time/input-time.d.ts +121 -0
  164. package/cdn/components/input-time/input-time.js +50 -0
  165. package/cdn/components/input-time/input-time.styles.d.ts +2 -0
  166. package/cdn/components/input-time/input-time.styles.js +12 -0
  167. package/cdn/components/input-time/input-time.utils.d.ts +17 -0
  168. package/cdn/components/input-time/input-time.utils.js +13 -0
  169. package/cdn/components/menu-accordion/menu-accordion.js +5 -5
  170. package/cdn/components/menu-item/menu-item.js +3 -3
  171. package/cdn/components/navbar-link/navbar-link.js +4 -4
  172. package/cdn/components/navbar-menu/navbar-menu.js +5 -5
  173. package/cdn/components/option/option.js +5 -5
  174. package/cdn/components/pagination/pagination.js +23 -19
  175. package/cdn/components/pagination-button/pagination-button.js +3 -3
  176. package/cdn/components/pagination-button/pagination-button.styles.js +2 -2
  177. package/cdn/components/profile-button/profile-button.js +7 -7
  178. package/cdn/components/progress-bar/progress-bar.js +2 -2
  179. package/cdn/components/quote/quote.js +3 -3
  180. package/cdn/components/radio/radio.d.ts +6 -5
  181. package/cdn/components/radio/radio.js +7 -5
  182. package/cdn/components/radio/radio.styles.js +1 -1
  183. package/cdn/components/radio-button/radio-button.d.ts +1 -1
  184. package/cdn/components/radio-button/radio-button.js +9 -10
  185. package/cdn/components/radio-card/radio-card.d.ts +24 -0
  186. package/cdn/components/radio-card/radio-card.js +39 -0
  187. package/cdn/components/radio-group/radio-group.d.ts +3 -3
  188. package/cdn/components/radio-group/radio-group.js +6 -8
  189. package/cdn/components/radio-group/radio-group.styles.js +2 -2
  190. package/cdn/components/relative-time/relative-time.js +2 -2
  191. package/cdn/components/select/select.js +9 -9
  192. package/cdn/components/select/select.styles.js +2 -2
  193. package/cdn/components/skip-links/skip-links.js +2 -2
  194. package/cdn/components/spinner/spinner.js +2 -2
  195. package/cdn/components/split-panel/split-panel.js +5 -5
  196. package/cdn/components/step/step.js +5 -5
  197. package/cdn/components/switch/switch.d.ts +84 -0
  198. package/cdn/components/switch/switch.js +30 -0
  199. package/cdn/components/switch/switch.styles.d.ts +2 -0
  200. package/cdn/components/switch/switch.styles.js +9 -0
  201. package/cdn/components/tab/tab.js +5 -5
  202. package/cdn/components/tab-group/tab-group.js +5 -5
  203. package/cdn/components/table-action/table-action.js +2 -2
  204. package/cdn/components/table-body/table-body.js +1 -1
  205. package/cdn/components/table-caption/table-caption.js +2 -2
  206. package/cdn/components/table-header-cell/table-header-cell.js +3 -3
  207. package/cdn/components/table-header-row/table-header-row.js +14 -13
  208. package/cdn/components/table-of-contents/table-of-contents.js +2 -2
  209. package/cdn/components/table-row/table-row.js +12 -11
  210. package/cdn/components/tag/tag.js +5 -5
  211. package/cdn/components/textarea/textarea.js +7 -7
  212. package/cdn/components/textarea/textarea.styles.js +2 -2
  213. package/cdn/components/tooltip/tooltip.js +2 -2
  214. package/cdn/components/tree/tree.js +15 -13
  215. package/cdn/components/tree-item/tree-item.js +14 -12
  216. package/cdn/custom-elements.json +5241 -3804
  217. package/cdn/design-system.d.ts +6 -2
  218. package/cdn/design-system.js +338 -161
  219. package/cdn/internal/components/checkbox-box/checkbox-box.d.ts +27 -0
  220. package/cdn/internal/components/checkbox-box/checkbox-box.js +94 -0
  221. package/cdn/internal/components/checkbox-box/checkbox-box.styles.d.ts +2 -0
  222. package/cdn/internal/components/checkbox-box/checkbox-box.styles.js +98 -0
  223. package/cdn/internal/components/date-field/date-field.d.ts +1 -0
  224. package/cdn/internal/components/date-field/date-field.js +23 -9
  225. package/cdn/internal/components/form-control/form-control-layout.d.ts +1 -0
  226. package/cdn/internal/components/form-control/form-control-layout.js +4 -0
  227. package/cdn/internal/components/form-selectable-card/form-selectable-card-stories.d.ts +2 -0
  228. package/cdn/internal/components/form-selectable-card/form-selectable-card-stories.js +77 -0
  229. package/cdn/internal/components/form-selectable-card/form-selectable-card.d.ts +38 -0
  230. package/cdn/internal/components/form-selectable-card/form-selectable-card.js +182 -0
  231. package/cdn/internal/components/form-selectable-card/form-selectable-card.styles.d.ts +2 -0
  232. package/cdn/internal/components/form-selectable-card/form-selectable-card.styles.js +141 -0
  233. package/cdn/internal/components/form-toggle-button/form-toggle-button.d.ts +5 -1
  234. package/cdn/internal/components/form-toggle-button/form-toggle-button.js +29 -9
  235. package/cdn/internal/components/form-toggle-button/form-toggle-button.styles.js +7 -0
  236. package/cdn/internal/components/radio-icon/radio-icon.d.ts +22 -0
  237. package/cdn/internal/components/radio-icon/radio-icon.js +66 -0
  238. package/cdn/internal/components/radio-icon/radio-icon.styles.d.ts +2 -0
  239. package/cdn/internal/components/radio-icon/radio-icon.styles.js +86 -0
  240. package/cdn/styles/form-control.styles.js +17 -1
  241. package/cdn/themes/dsa-wc-theme.css +160 -5
  242. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  243. package/cdn/themes/dsa-wc-theme.styles.js +164 -5
  244. package/cdn/translations/en-gb.js +1 -1
  245. package/cdn/translations/en.js +1 -1
  246. package/cdn/translations/fr.js +1 -1
  247. package/cdn/utilities/date.js +1 -1
  248. package/cdn/utilities/icon-library.js +2 -2
  249. package/cdn/utilities/localize.d.ts +6 -0
  250. package/cdn/utilities/localize.js +1 -1
  251. package/cdn/vscode.html-custom-data.json +162 -7
  252. package/cdn/web-types.json +974 -147
  253. package/dist/chunks/{chunk.JCL6HX6O.js → chunk.2GRTPJX3.js} +1 -1
  254. package/dist/chunks/{chunk.CPCLGC5J.js → chunk.2O3M7HBZ.js} +1 -1
  255. package/dist/chunks/{chunk.XJMGXWLM.js → chunk.2W6FOXSH.js} +45 -36
  256. package/dist/chunks/{chunk.EQZ4YFRU.js → chunk.3B3226HJ.js} +1 -1
  257. package/dist/chunks/{chunk.RWGL6D5U.js → chunk.3EAWXV27.js} +1 -1
  258. package/dist/chunks/{chunk.UEWG3G4R.js → chunk.3HX6HRHC.js} +9 -2
  259. package/dist/chunks/{chunk.5P2EEOC5.js → chunk.3NNE7XGI.js} +2 -2
  260. package/dist/chunks/{chunk.FQB6S2KS.js → chunk.3SX7AERB.js} +1 -1
  261. package/dist/chunks/{chunk.L3LZ4MKX.js → chunk.4P7DDUA4.js} +3 -3
  262. package/dist/chunks/{chunk.WRPRKCVY.js → chunk.52V3WTR3.js} +5 -5
  263. package/dist/chunks/{chunk.LGA24XY2.js → chunk.54KX7M52.js} +1 -1
  264. package/dist/chunks/{chunk.I5HR7JYK.js → chunk.5EBCNG2J.js} +3 -0
  265. package/dist/chunks/{chunk.IZDRWFAB.js → chunk.5NUQTJJR.js} +1 -1
  266. package/dist/chunks/{chunk.KUYI27GJ.js → chunk.5NXRUN57.js} +84 -242
  267. package/dist/chunks/{chunk.IPZC55RV.js → chunk.6BXZEG5L.js} +3 -0
  268. package/dist/chunks/{chunk.BQQ2GUR6.js → chunk.6K4LF64W.js} +1 -1
  269. package/dist/chunks/{chunk.GGXJ2MP3.js → chunk.6KWCQDRD.js} +32 -12
  270. package/dist/chunks/{chunk.2EDNCADP.js → chunk.6SDBUBGE.js} +1 -0
  271. package/dist/chunks/{chunk.BP4NJFKE.js → chunk.6ZJSEOLO.js} +1 -1
  272. package/dist/chunks/{chunk.B6LMEZTV.js → chunk.77ECBNUM.js} +1 -1
  273. package/dist/chunks/{chunk.DUTPVTUZ.js → chunk.7KMMSAQN.js} +1 -1
  274. package/dist/chunks/chunk.7YIOE3D2.js +663 -0
  275. package/dist/chunks/{chunk.DDDHV2NU.js → chunk.AFRAGNLK.js} +3 -3
  276. package/dist/chunks/chunk.ANOLAL4B.js +90 -0
  277. package/dist/chunks/{chunk.CQHOJJEI.js → chunk.B2KV6DSI.js} +1 -1
  278. package/dist/chunks/{chunk.6JHM36KH.js → chunk.B4SMUSVU.js} +25 -14
  279. package/dist/chunks/{chunk.XD25ELCV.js → chunk.BCLTC7W4.js} +1 -1
  280. package/dist/chunks/{chunk.WQYBYKZ2.js → chunk.BNREFNJW.js} +4 -3
  281. package/dist/chunks/chunk.BQEHELQ5.js +90 -0
  282. package/dist/chunks/{chunk.P45DWAWT.js → chunk.CAYHSQZJ.js} +1 -1
  283. package/dist/chunks/{chunk.2XRDIFUO.js → chunk.CEGU6OTH.js} +1 -1
  284. package/dist/chunks/{chunk.UDJJFUZ3.js → chunk.CN6TUCPE.js} +2 -2
  285. package/dist/chunks/{chunk.QRCGXHRO.js → chunk.CQR34TNY.js} +1 -0
  286. package/dist/chunks/{chunk.VNFFOE7Z.js → chunk.CWDSCTUA.js} +1 -1
  287. package/dist/chunks/{chunk.DHDRABMZ.js → chunk.D6SKE3AF.js} +2 -2
  288. package/dist/chunks/{chunk.6ZAEF56K.js → chunk.DB3EDROT.js} +1 -1
  289. package/dist/chunks/{chunk.RZT42FVN.js → chunk.DIM7WDHO.js} +1 -1
  290. package/dist/chunks/{chunk.7DBNKQ7N.js → chunk.DLACE2NU.js} +2 -2
  291. package/dist/chunks/{chunk.W7TI3W77.js → chunk.DLE3F4GC.js} +1 -1
  292. package/dist/chunks/chunk.E45DVVIM.js +271 -0
  293. package/dist/chunks/{chunk.LB54GRRB.js → chunk.EAYW5L6J.js} +2 -2
  294. package/dist/chunks/{chunk.QDKQMUIQ.js → chunk.EIZK62ST.js} +17 -1
  295. package/dist/chunks/{chunk.T6UX2FVU.js → chunk.EK7OT2VJ.js} +4 -4
  296. package/dist/chunks/{chunk.FKXOTDTY.js → chunk.ERN34WYC.js} +5 -5
  297. package/dist/chunks/{chunk.3TJPAISV.js → chunk.FC2HFFUI.js} +1 -1
  298. package/dist/chunks/chunk.FK5HR2F4.js +100 -0
  299. package/dist/chunks/{chunk.XRZGSSHY.js → chunk.FWVIQUG4.js} +1 -1
  300. package/dist/chunks/{chunk.BDO6TPPP.js → chunk.G6JRMCFB.js} +32 -32
  301. package/dist/chunks/{chunk.UWGAOHHQ.js → chunk.GGBIEJ25.js} +3 -3
  302. package/dist/chunks/{chunk.JIWB4B3J.js → chunk.GW2MJTCT.js} +1 -1
  303. package/dist/chunks/{chunk.NHXG2KMS.js → chunk.HAYCQF2N.js} +1 -1
  304. package/dist/chunks/{chunk.3XIJ443Y.js → chunk.HEOHHRVV.js} +1 -13
  305. package/{cdn/chunks/chunk.3TUFAITJ.js → dist/chunks/chunk.HJU52GCK.js} +1 -1
  306. package/dist/chunks/{chunk.PUYBBM4K.js → chunk.HTBAICPA.js} +1 -1
  307. package/dist/chunks/{chunk.Y52TCF24.js → chunk.IDGKF6AP.js} +3 -3
  308. package/dist/chunks/{chunk.IPUOJRFA.js → chunk.IIYPN5OC.js} +1 -1
  309. package/dist/chunks/chunk.IONY2GZF.js +72 -0
  310. package/dist/chunks/chunk.ITAWMEY7.js +42 -0
  311. package/dist/chunks/{chunk.SYVX56PU.js → chunk.ITUK4PON.js} +1 -1
  312. package/dist/chunks/{chunk.2JIPPL3I.js → chunk.JEZOETYM.js} +27 -6
  313. package/dist/chunks/{chunk.VBW5RZBM.js → chunk.K3HEMTRQ.js} +1 -1
  314. package/dist/chunks/{chunk.2VH3OZ2T.js → chunk.K53YJ3XK.js} +1 -1
  315. package/dist/chunks/{chunk.2VBJKC24.js → chunk.KFUZ6JMQ.js} +1 -1
  316. package/dist/chunks/{chunk.XPSUKRU5.js → chunk.KQ224IDT.js} +1 -1
  317. package/dist/chunks/{chunk.IF24VKLH.js → chunk.L66AKAXM.js} +1 -1
  318. package/dist/chunks/{chunk.VT3IWNRD.js → chunk.LE5LHO5Y.js} +1 -1
  319. package/dist/chunks/{chunk.MJKJSMQX.js → chunk.LGVJZXUH.js} +9 -12
  320. package/dist/chunks/{chunk.47JHZBMB.js → chunk.M5QF4L4W.js} +1 -1
  321. package/dist/chunks/{chunk.WUOMKASN.js → chunk.MAENDYI7.js} +43 -53
  322. package/dist/chunks/{chunk.3OHVWJYG.js → chunk.NF5ELBI4.js} +2 -2
  323. package/dist/chunks/{chunk.3Z33EVFU.js → chunk.NPCMEZGE.js} +1 -1
  324. package/dist/chunks/chunk.NVQTI6CK.js +44 -0
  325. package/dist/chunks/{chunk.H3FSR35C.js → chunk.O4WGPUE5.js} +77 -36
  326. package/dist/chunks/chunk.ODXKNTKC.js +21 -0
  327. package/dist/chunks/{chunk.IZACKXPC.js → chunk.P3CATWXI.js} +1 -1
  328. package/dist/chunks/{chunk.LTCZARVI.js → chunk.P5DC3N5P.js} +9 -6
  329. package/dist/chunks/{chunk.AVHERTGT.js → chunk.PTFOYYGJ.js} +1 -1
  330. package/dist/chunks/chunk.PWVYG6XN.js +181 -0
  331. package/dist/chunks/{chunk.KN6RQWYN.js → chunk.QBHSEMUU.js} +10 -5
  332. package/dist/chunks/{chunk.ZSBVQKVM.js → chunk.SWP3OZUN.js} +1 -1
  333. package/dist/chunks/{chunk.KLKJ2LRK.js → chunk.T2OLM5TG.js} +1 -1
  334. package/dist/chunks/chunk.TZFYJ4KJ.js +311 -0
  335. package/dist/chunks/{chunk.QLA2JXR7.js → chunk.U7ZMMMJ3.js} +12 -0
  336. package/dist/chunks/{chunk.UNO3SMWX.js → chunk.UG7D663E.js} +1 -1
  337. package/dist/chunks/{chunk.O3AR4B4F.js → chunk.UL2XNE5X.js} +2 -2
  338. package/dist/chunks/{chunk.EP7LLKJN.js → chunk.V75T6QXR.js} +1 -1
  339. package/dist/chunks/chunk.VKIBAACD.js +226 -0
  340. package/dist/chunks/{chunk.FQMS24GI.js → chunk.WB2DWTAB.js} +1 -1
  341. package/dist/chunks/{chunk.F6UPK2KI.js → chunk.WIVRYVXD.js} +1 -1
  342. package/dist/chunks/{chunk.5DXVFMIN.js → chunk.WOJO2VFN.js} +1 -1
  343. package/dist/chunks/{chunk.6QAB5TYJ.js → chunk.WPIYFGT2.js} +1 -1
  344. package/dist/chunks/{chunk.ECZMLO4V.js → chunk.X6UZBREW.js} +1 -1
  345. package/dist/chunks/chunk.XDEXZL3R.js +149 -0
  346. package/dist/chunks/{chunk.LSZ7ATDZ.js → chunk.XMPGIWRA.js} +1 -1
  347. package/dist/chunks/{chunk.AH74EN4A.js → chunk.YOMZYBQL.js} +1 -1
  348. package/dist/chunks/{chunk.KFRR2I2P.js → chunk.YVOXMJ6Q.js} +1 -1
  349. package/dist/chunks/{chunk.Z7DBDDCZ.js → chunk.YZTXGQRN.js} +19 -12
  350. package/dist/chunks/{chunk.ZCWLSBSD.js → chunk.Z2YO6E64.js} +2 -2
  351. package/dist/components/accordion/accordion.js +5 -5
  352. package/dist/components/alert/alert.js +5 -5
  353. package/dist/components/avatar/avatar.js +4 -4
  354. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  355. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  356. package/dist/components/button/button.d.ts +1 -1
  357. package/dist/components/button/button.js +7 -7
  358. package/dist/components/button/button.styles.js +1 -1
  359. package/dist/components/calendar/calendar.js +3 -3
  360. package/dist/components/callout/callout.js +3 -3
  361. package/dist/components/checkbox/checkbox.d.ts +6 -3
  362. package/dist/components/checkbox/checkbox.js +10 -9
  363. package/dist/components/checkbox/checkbox.styles.js +2 -2
  364. package/dist/components/checkbox-button/checkbox-button.js +17 -6
  365. package/dist/components/checkbox-card/checkbox-card.d.ts +25 -0
  366. package/dist/components/checkbox-card/checkbox-card.js +21 -0
  367. package/dist/components/checkbox-group/checkbox-group.d.ts +5 -3
  368. package/dist/components/checkbox-group/checkbox-group.js +6 -6
  369. package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
  370. package/dist/components/combobox/combobox.js +10 -10
  371. package/dist/components/combobox/combobox.styles.js +2 -2
  372. package/dist/components/dialog/dialog.d.ts +11 -5
  373. package/dist/components/dialog/dialog.js +6 -6
  374. package/dist/components/dialog/dialog.styles.js +1 -1
  375. package/dist/components/download-card/download-card.js +3 -3
  376. package/dist/components/download-link/download-link.js +3 -3
  377. package/dist/components/drawer/drawer.js +5 -5
  378. package/dist/components/dropdown/dropdown.js +2 -2
  379. package/dist/components/error-message-panel/error-message-panel.js +2 -2
  380. package/dist/components/error-text/error-text.js +3 -3
  381. package/dist/components/file-upload/file-upload.js +7 -7
  382. package/dist/components/file-upload/file-upload.styles.js +2 -2
  383. package/dist/components/file-upload-item/file-upload-item.js +3 -3
  384. package/dist/components/filter-base/filter-base.js +6 -6
  385. package/dist/components/filter-button/filter-button.js +5 -5
  386. package/dist/components/filter-counter/filter-counter.js +25 -19
  387. package/dist/components/filter-date/filter-date.js +10 -10
  388. package/dist/components/filter-range/filter-range.js +26 -20
  389. package/dist/components/filter-select/filter-select.js +25 -22
  390. package/dist/components/footer/footer.js +3 -3
  391. package/dist/components/footer/footer.styles.js +1 -1
  392. package/dist/components/format-bytes/format-bytes.js +2 -2
  393. package/dist/components/format-date/format-date.js +2 -2
  394. package/dist/components/format-number/format-number.js +2 -2
  395. package/dist/components/header/header.js +3 -3
  396. package/dist/components/header/header.styles.js +1 -1
  397. package/dist/components/header-search/header-search.js +8 -8
  398. package/dist/components/icon/icon.js +3 -3
  399. package/dist/components/icon/library.js +2 -2
  400. package/dist/components/icon/library.system.js +1 -1
  401. package/dist/components/icon-button/icon-button.js +3 -3
  402. package/dist/components/input/input.d.ts +3 -7
  403. package/dist/components/input/input.js +19 -13
  404. package/dist/components/input/input.styles.js +2 -2
  405. package/dist/components/input-date/input-date.d.ts +7 -2
  406. package/dist/components/input-date/input-date.js +12 -12
  407. package/dist/components/input-date/input-date.styles.js +3 -3
  408. package/dist/components/input-mask/input-mask.js +8 -8
  409. package/dist/components/input-mask/input-mask.styles.js +2 -2
  410. package/dist/components/input-otp/input-otp.js +7 -7
  411. package/dist/components/input-otp/input-otp.styles.js +2 -2
  412. package/dist/components/input-phone/input-phone.js +13 -13
  413. package/dist/components/input-phone/input-phone.styles.js +2 -2
  414. package/dist/components/input-time/input-time.d.ts +121 -0
  415. package/dist/components/input-time/input-time.js +42 -0
  416. package/dist/components/input-time/input-time.styles.d.ts +2 -0
  417. package/dist/components/input-time/input-time.styles.js +10 -0
  418. package/dist/components/input-time/input-time.utils.d.ts +17 -0
  419. package/dist/components/input-time/input-time.utils.js +13 -0
  420. package/dist/components/menu-accordion/menu-accordion.js +5 -5
  421. package/dist/components/menu-item/menu-item.js +3 -3
  422. package/dist/components/navbar-link/navbar-link.js +4 -4
  423. package/dist/components/navbar-menu/navbar-menu.js +5 -5
  424. package/dist/components/option/option.js +5 -5
  425. package/dist/components/pagination/pagination.js +23 -19
  426. package/dist/components/pagination-button/pagination-button.js +3 -3
  427. package/dist/components/pagination-button/pagination-button.styles.js +2 -2
  428. package/dist/components/profile-button/profile-button.js +7 -7
  429. package/dist/components/progress-bar/progress-bar.js +2 -2
  430. package/dist/components/quote/quote.js +3 -3
  431. package/dist/components/radio/radio.d.ts +6 -5
  432. package/dist/components/radio/radio.js +6 -5
  433. package/dist/components/radio/radio.styles.js +1 -1
  434. package/dist/components/radio-button/radio-button.d.ts +1 -1
  435. package/dist/components/radio-button/radio-button.js +9 -10
  436. package/dist/components/radio-card/radio-card.d.ts +24 -0
  437. package/dist/components/radio-card/radio-card.js +33 -0
  438. package/dist/components/radio-group/radio-group.d.ts +3 -3
  439. package/dist/components/radio-group/radio-group.js +6 -7
  440. package/dist/components/radio-group/radio-group.styles.js +2 -2
  441. package/dist/components/relative-time/relative-time.js +2 -2
  442. package/dist/components/select/select.js +9 -9
  443. package/dist/components/select/select.styles.js +2 -2
  444. package/dist/components/skip-links/skip-links.js +2 -2
  445. package/dist/components/spinner/spinner.js +2 -2
  446. package/dist/components/split-panel/split-panel.js +5 -5
  447. package/dist/components/step/step.js +5 -5
  448. package/dist/components/switch/switch.d.ts +84 -0
  449. package/dist/components/switch/switch.js +23 -0
  450. package/dist/components/switch/switch.styles.d.ts +2 -0
  451. package/dist/components/switch/switch.styles.js +7 -0
  452. package/dist/components/tab/tab.js +5 -5
  453. package/dist/components/tab-group/tab-group.js +5 -5
  454. package/dist/components/table-action/table-action.js +2 -2
  455. package/dist/components/table-body/table-body.js +1 -1
  456. package/dist/components/table-caption/table-caption.js +2 -2
  457. package/dist/components/table-header-cell/table-header-cell.js +3 -3
  458. package/dist/components/table-header-row/table-header-row.js +14 -13
  459. package/dist/components/table-of-contents/table-of-contents.js +2 -2
  460. package/dist/components/table-row/table-row.js +12 -11
  461. package/dist/components/tag/tag.js +5 -5
  462. package/dist/components/textarea/textarea.js +7 -7
  463. package/dist/components/textarea/textarea.styles.js +2 -2
  464. package/dist/components/tooltip/tooltip.js +2 -2
  465. package/dist/components/tree/tree.js +14 -13
  466. package/dist/components/tree-item/tree-item.js +13 -12
  467. package/dist/custom-elements.json +5241 -3804
  468. package/dist/design-system.d.ts +6 -2
  469. package/dist/design-system.js +331 -158
  470. package/dist/internal/components/checkbox-box/checkbox-box.d.ts +27 -0
  471. package/dist/internal/components/checkbox-box/checkbox-box.js +94 -0
  472. package/dist/internal/components/checkbox-box/checkbox-box.styles.d.ts +2 -0
  473. package/dist/internal/components/checkbox-box/checkbox-box.styles.js +98 -0
  474. package/dist/internal/components/date-field/date-field.d.ts +1 -0
  475. package/dist/internal/components/date-field/date-field.js +23 -9
  476. package/dist/internal/components/form-control/form-control-layout.d.ts +1 -0
  477. package/dist/internal/components/form-control/form-control-layout.js +4 -0
  478. package/dist/internal/components/form-selectable-card/form-selectable-card-stories.d.ts +2 -0
  479. package/dist/internal/components/form-selectable-card/form-selectable-card-stories.js +77 -0
  480. package/dist/internal/components/form-selectable-card/form-selectable-card.d.ts +38 -0
  481. package/dist/internal/components/form-selectable-card/form-selectable-card.js +182 -0
  482. package/dist/internal/components/form-selectable-card/form-selectable-card.styles.d.ts +2 -0
  483. package/dist/internal/components/form-selectable-card/form-selectable-card.styles.js +141 -0
  484. package/dist/internal/components/form-toggle-button/form-toggle-button.d.ts +5 -1
  485. package/dist/internal/components/form-toggle-button/form-toggle-button.js +29 -9
  486. package/dist/internal/components/form-toggle-button/form-toggle-button.styles.js +7 -0
  487. package/dist/internal/components/radio-icon/radio-icon.d.ts +22 -0
  488. package/dist/internal/components/radio-icon/radio-icon.js +66 -0
  489. package/dist/internal/components/radio-icon/radio-icon.styles.d.ts +2 -0
  490. package/dist/internal/components/radio-icon/radio-icon.styles.js +86 -0
  491. package/dist/styles/form-control.styles.js +17 -1
  492. package/dist/themes/dsa-wc-theme.css +160 -5
  493. package/dist/themes/dsa-wc-theme.min.css +1 -1
  494. package/dist/themes/dsa-wc-theme.styles.js +164 -5
  495. package/dist/translations/en-gb.js +1 -1
  496. package/dist/translations/en.js +1 -1
  497. package/dist/translations/fr.js +1 -1
  498. package/dist/utilities/date.js +1 -1
  499. package/dist/utilities/icon-library.js +2 -2
  500. package/dist/utilities/localize.d.ts +6 -0
  501. package/dist/utilities/localize.js +1 -1
  502. package/dist/vscode.html-custom-data.json +162 -7
  503. package/dist/web-types.json +974 -147
  504. package/package.json +2 -2
  505. package/cdn/chunks/chunk.5LXQ3RKQ.js +0 -41
  506. package/cdn/chunks/chunk.N3WADQAB.js +0 -157
  507. package/cdn/chunks/chunk.ZIPOQO6F.js +0 -188
  508. package/dist/chunks/chunk.35CKPBLE.js +0 -155
  509. package/dist/chunks/chunk.6HR34L7E.js +0 -39
  510. package/dist/chunks/chunk.GDOUDNZH.js +0 -186
@@ -0,0 +1,27 @@
1
+ import type { CSSResultGroup } from 'lit';
2
+ import '../../../components/icon/icon';
3
+ import { ShoelaceElement } from '../../shoelace-element';
4
+ export declare class DSAInternalCheckboxBox extends ShoelaceElement {
5
+ static styles: CSSResultGroup;
6
+ /** Draws the checkbox in a checked state. */
7
+ checked: boolean;
8
+ /**
9
+ * Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
10
+ * all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
11
+ */
12
+ indeterminate: boolean;
13
+ /** The checkbox's size. */
14
+ size: 'small' | 'medium' | 'large';
15
+ /** Disables the checkbox. */
16
+ disabled: boolean;
17
+ /** Sets the checkbox in readonly. */
18
+ readonly: boolean;
19
+ /** Indicates whether the checkbox should be in error state */
20
+ error: boolean;
21
+ render(): import("lit").TemplateResult;
22
+ }
23
+ declare global {
24
+ interface HTMLElementTagNameMap {
25
+ 'dsa-internal-checkbox-box': DSAInternalCheckboxBox;
26
+ }
27
+ }
@@ -0,0 +1,94 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { customElement, property } from 'lit/decorators.js';
8
+ import { classMap } from 'lit/directives/class-map.js';
9
+ import { html } from 'lit/static-html.js';
10
+ import '../../../components/icon/icon';
11
+ import { ShoelaceElement } from '../../shoelace-element';
12
+ import styles from './checkbox-box.styles';
13
+ let DSAInternalCheckboxBox = class DSAInternalCheckboxBox extends ShoelaceElement {
14
+ constructor() {
15
+ super(...arguments);
16
+ /** Draws the checkbox in a checked state. */
17
+ this.checked = false;
18
+ /**
19
+ * Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
20
+ * all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
21
+ */
22
+ this.indeterminate = false;
23
+ /** The checkbox's size. */
24
+ this.size = 'medium';
25
+ /** Disables the checkbox. */
26
+ this.disabled = false;
27
+ /** Sets the checkbox in readonly. */
28
+ this.readonly = false;
29
+ /** Indicates whether the checkbox should be in error state */
30
+ this.error = false;
31
+ }
32
+ render() {
33
+ return html `
34
+ <span
35
+ part="control"
36
+ class=${classMap({
37
+ checkbox__control: true,
38
+ 'checkbox__control--checked': this.checked,
39
+ 'checkbox__control--indeterminate': this.indeterminate,
40
+ 'checkbox__control--disabled': this.disabled,
41
+ 'checkbox__control--readonly': this.readonly,
42
+ 'checkbox__control--error': this.error,
43
+ 'checkbox__control--small': this.size === 'small',
44
+ 'checkbox__control--medium': this.size === 'medium',
45
+ 'checkbox__control--large': this.size === 'large',
46
+ })}
47
+ >
48
+ ${this.checked
49
+ ? html `
50
+ <dsa-icon
51
+ part="checked-icon"
52
+ class="checkbox__checked-icon"
53
+ name="done"
54
+ library="system"
55
+ ></dsa-icon>
56
+ `
57
+ : ''}
58
+ ${!this.checked && this.indeterminate
59
+ ? html `
60
+ <dsa-icon
61
+ part="indeterminate-icon"
62
+ class="checkbox__indeterminate-icon"
63
+ name="horizontal_rule"
64
+ library="system"
65
+ ></dsa-icon>
66
+ `
67
+ : ''}
68
+ </span>
69
+ `;
70
+ }
71
+ };
72
+ DSAInternalCheckboxBox.styles = styles;
73
+ __decorate([
74
+ property({ type: Boolean, reflect: true })
75
+ ], DSAInternalCheckboxBox.prototype, "checked", void 0);
76
+ __decorate([
77
+ property({ type: Boolean, reflect: true })
78
+ ], DSAInternalCheckboxBox.prototype, "indeterminate", void 0);
79
+ __decorate([
80
+ property({ reflect: true })
81
+ ], DSAInternalCheckboxBox.prototype, "size", void 0);
82
+ __decorate([
83
+ property({ type: Boolean, reflect: true })
84
+ ], DSAInternalCheckboxBox.prototype, "disabled", void 0);
85
+ __decorate([
86
+ property({ type: Boolean, reflect: true })
87
+ ], DSAInternalCheckboxBox.prototype, "readonly", void 0);
88
+ __decorate([
89
+ property({ type: Boolean })
90
+ ], DSAInternalCheckboxBox.prototype, "error", void 0);
91
+ DSAInternalCheckboxBox = __decorate([
92
+ customElement('dsa-internal-checkbox-box')
93
+ ], DSAInternalCheckboxBox);
94
+ export { DSAInternalCheckboxBox };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,98 @@
1
+ import { css } from 'lit';
2
+ export default css `
3
+ :host {
4
+ display: contents;
5
+ }
6
+
7
+ :host::after {
8
+ content: '';
9
+ position: absolute;
10
+ inset: 0;
11
+ }
12
+
13
+ .checkbox__control--small {
14
+ --toggle-size: var(--dsa-wc-checkbox-size-small);
15
+ }
16
+
17
+ .checkbox__control--medium {
18
+ --toggle-size: var(--dsa-wc-checkbox-size);
19
+ }
20
+
21
+ .checkbox__control--large {
22
+ --toggle-size: var(--dsa-wc-checkbox-size-large);
23
+ }
24
+
25
+ .checkbox__control {
26
+ flex: 0 0 auto;
27
+ position: relative;
28
+ display: inline-flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: var(--toggle-size);
32
+ height: var(--toggle-size);
33
+ border: var(--dsa-wc-checkbox-border);
34
+ border-radius: var(--dsa-wc-checkbox-border-radius);
35
+ background-color: var(--dsa-wc-checkbox-background-color);
36
+ color: var(--dsa-wc-checkbox-icon-color);
37
+ transition: var(--dsa-wc-transition-fast) border-color,
38
+ var(--dsa-wc-transition-fast) background-color,
39
+ var(--dsa-wc-transition-fast) color,
40
+ var(--dsa-wc-transition-fast) box-shadow;
41
+ box-sizing: border-box;
42
+ }
43
+
44
+ .checkbox__control.checkbox__control--small {
45
+ border-radius: var(--dsa-wc-checkbox-border-radius-small);
46
+ }
47
+
48
+ .checkbox__checked-icon,
49
+ .checkbox__indeterminate-icon {
50
+ display: inline-flex;
51
+ width: var(--toggle-size);
52
+ height: var(--toggle-size);
53
+ }
54
+
55
+ /* Hover */
56
+ :host(:hover)
57
+ .checkbox__control:not(.checkbox__control--checked):not(
58
+ .checkbox__control--disabled
59
+ ):not(.checkbox__control--readonly) {
60
+ border-color: var(--dsa-wc-checkbox-color-hover);
61
+ }
62
+
63
+ /* Checked/indeterminate */
64
+ .checkbox__control--checked,
65
+ .checkbox__control--indeterminate {
66
+ border-color: var(--dsa-wc-checkbox-color-active);
67
+ background-color: var(--dsa-wc-checkbox-color-active);
68
+ }
69
+
70
+ /* Checked/indeterminate + hover */
71
+ :host(:hover)
72
+ .checkbox.checkbox__control--checked:not(.checkbox__control--disabled):not(
73
+ .checkbox__control--readonly
74
+ ),
75
+ :host(:hover)
76
+ .checkbox.checkbox__control--indeterminate:not(
77
+ .checkbox__control--disabled
78
+ ):not(.checkbox__control--readonly) {
79
+ border-color: var(--dsa-wc-checkbox-color-active);
80
+ background-color: var(--dsa-wc-checkbox-color-active);
81
+ }
82
+
83
+ /* Disabled */
84
+ .checkbox__control--disabled {
85
+ border-color: var(--dsa-wc-checkbox-color-disabled);
86
+ }
87
+ .checkbox__control--checked.checkbox__control--disabled,
88
+ .checkbox__control--indeterminate.checkbox__control--disabled {
89
+ background-color: var(--dsa-wc-checkbox-color-disabled);
90
+ }
91
+
92
+ /* Readonly */
93
+ .checkbox__control--readonly {
94
+ border-color: var(--dsa-wc-checkbox-border-color-readonly);
95
+ color: var(--dsa-wc-checkbox-color-readonly);
96
+ background-color: var(--dsa-wc-checkbox-background-color);
97
+ }
98
+ `;
@@ -26,6 +26,7 @@ export default class DSAInternalDateField extends ShoelaceElement implements Sho
26
26
  private dateOrder;
27
27
  private delimiter;
28
28
  private lastPressedKey;
29
+ private internalValueChange;
29
30
  /** The parent element accessible name */
30
31
  parentName: string;
31
32
  /** A description for accessibility */
@@ -53,6 +53,7 @@ let DSAInternalDateField = class DSAInternalDateField extends ShoelaceElement {
53
53
  ];
54
54
  this.delimiter = '/';
55
55
  this.lastPressedKey = '';
56
+ this.internalValueChange = false;
56
57
  /** The parent element accessible name */
57
58
  this.parentName = '';
58
59
  /** A description for accessibility */
@@ -132,10 +133,15 @@ let DSAInternalDateField = class DSAInternalDateField extends ShoelaceElement {
132
133
  });
133
134
  }
134
135
  handleBlur(event) {
136
+ this.handleChange();
135
137
  const currentTarget = event.currentTarget;
136
138
  // Wait for the potential newly focused element to be added
137
- setTimeout(() => (this.focusedInput = this.focusedInput.filter((input) => input !== currentTarget)), 0);
138
- this.handleChange();
139
+ setTimeout(() => {
140
+ this.focusedInput = this.focusedInput.filter((input) => input !== currentTarget);
141
+ if (this.focusedInput.length === 0) {
142
+ this.internalValueChange = false;
143
+ }
144
+ }, 0);
139
145
  }
140
146
  handleChange() {
141
147
  const previousValue = this.value;
@@ -146,16 +152,19 @@ let DSAInternalDateField = class DSAInternalDateField extends ShoelaceElement {
146
152
  if (this.selectedDay > this.dayInput.max) {
147
153
  this.selectedDay = this.dayInput.max;
148
154
  }
149
- if (selectedDay !== '' &&
150
- selectedMonth !== '' &&
151
- selectedYear !== '' &&
152
- isValidDate(tentativeDate)) {
153
- this.value = tentativeDate;
155
+ if (selectedDay === '' && selectedMonth === '' && selectedYear === '') {
156
+ this.setCustomValidity('');
157
+ this.value = '';
154
158
  }
155
- else {
159
+ else if (!isValidDate(tentativeDate)) {
156
160
  this.setCustomValidity(this.localize.term('invalidDate'));
157
161
  this.value = '';
158
162
  }
163
+ else {
164
+ this.setCustomValidity('');
165
+ this.value = tentativeDate;
166
+ }
167
+ this.internalValueChange = true;
159
168
  this.formControlController.updateValidity();
160
169
  if (this.value !== previousValue) {
161
170
  this.emit('dsa-change');
@@ -262,6 +271,10 @@ let DSAInternalDateField = class DSAInternalDateField extends ShoelaceElement {
262
271
  }
263
272
  handleValueChange() {
264
273
  return __awaiter(this, void 0, void 0, function* () {
274
+ if (this.internalValueChange) {
275
+ this.internalValueChange = false;
276
+ return;
277
+ }
265
278
  if (this.value === '') {
266
279
  this.selectedDay = '';
267
280
  this.selectedMonth = '';
@@ -273,6 +286,7 @@ let DSAInternalDateField = class DSAInternalDateField extends ShoelaceElement {
273
286
  this.selectedYear = `${new Date(this.value).getFullYear()}`.padStart(4, '0');
274
287
  }
275
288
  yield this.updateComplete;
289
+ this.setCustomValidity('');
276
290
  this.formControlController.updateValidity();
277
291
  });
278
292
  }
@@ -408,7 +422,7 @@ let DSAInternalDateField = class DSAInternalDateField extends ShoelaceElement {
408
422
  ?required=${this.required}
409
423
  min=${ifDefined(this.min)}
410
424
  max=${ifDefined(this.max)}
411
- .value=${live(`${this.selectedYear}-${this.selectedMonth}-${this.selectedDay}`)}
425
+ .value=${live(this.value)}
412
426
  tabindex="-1"
413
427
  aria-hidden="true"
414
428
  @invalid=${this.handleInvalid}
@@ -37,5 +37,6 @@ export declare class FormControlLayout extends ShoelaceElement {
37
37
  required: boolean;
38
38
  protected renderInput(): import("lit").TemplateResult<1>;
39
39
  protected renderCounter(): import("lit").TemplateResult<1>;
40
+ protected handleLabelClick(): void;
40
41
  render(): import("lit").TemplateResult<1>;
41
42
  }
@@ -55,6 +55,9 @@ export class FormControlLayout extends ShoelaceElement {
55
55
  renderCounter() {
56
56
  return html ``;
57
57
  }
58
+ handleLabelClick() {
59
+ // To be overridden by subclasses
60
+ }
58
61
  render() {
59
62
  const hasLabelSlot = this.hasSlotController.test('label');
60
63
  const hasHelpTextSlot = this.hasSlotController.test('help-text');
@@ -82,6 +85,7 @@ export class FormControlLayout extends ShoelaceElement {
82
85
  class='form-control__label'
83
86
  for="input"
84
87
  aria-hidden=${ifDefined(hasLabel ? undefined : 'true')}
88
+ @click=${this.handleLabelClick}
85
89
  >
86
90
  ${this.required
87
91
  ? html `<span class="form-control__label-required">*</span>`
@@ -0,0 +1,2 @@
1
+ import type { ArgTypes } from '@storybook/web-components';
2
+ export declare const getFormSelectableCardArgTypes: (tableCategory: string) => ArgTypes;
@@ -0,0 +1,77 @@
1
+ export const getFormSelectableCardArgTypes = (tableCategory) => {
2
+ return {
3
+ 'card_?disabled': {
4
+ name: 'disabled',
5
+ description: 'Disables the card',
6
+ table: {
7
+ type: { summary: 'boolean' },
8
+ defaultValue: { summary: 'false' },
9
+ category: tableCategory,
10
+ },
11
+ control: { type: 'boolean' },
12
+ },
13
+ 'card_?readonly': {
14
+ name: 'readonly',
15
+ description: 'Sets the card in readonly',
16
+ table: {
17
+ type: { summary: 'boolean' },
18
+ defaultValue: { summary: 'false' },
19
+ category: tableCategory,
20
+ },
21
+ control: { type: 'boolean' },
22
+ },
23
+ 'card_?error': {
24
+ name: 'error',
25
+ description: 'Sets the card in error',
26
+ table: {
27
+ type: { summary: 'boolean' },
28
+ defaultValue: { summary: 'false' },
29
+ category: tableCategory,
30
+ },
31
+ control: { type: 'boolean' },
32
+ },
33
+ card_value: {
34
+ name: 'value',
35
+ description: "The element's value. When selected, the parent group will receive this value",
36
+ table: {
37
+ type: { summary: 'string' },
38
+ category: tableCategory,
39
+ },
40
+ control: false,
41
+ },
42
+ card_layout: {
43
+ name: 'layout',
44
+ description: "The element's layout direction, either horizontal or vertical.",
45
+ table: {
46
+ type: { summary: "'horizontal' | 'vertical'" },
47
+ defaultValue: { summary: 'horizontal' },
48
+ category: tableCategory,
49
+ },
50
+ control: { type: 'select' },
51
+ options: ['horizontal', 'vertical'],
52
+ },
53
+ card_updateComplete: {
54
+ name: 'updateComplete',
55
+ description: 'A read-only promise that resolves when the component has finished updating',
56
+ control: false,
57
+ table: {
58
+ category: tableCategory,
59
+ },
60
+ },
61
+ slot_image: {
62
+ name: 'image',
63
+ description: '(Story) Add image slot',
64
+ table: {
65
+ category: 'story',
66
+ },
67
+ },
68
+ story_container_width: {
69
+ name: 'Container width',
70
+ description: '(Story) change the container width',
71
+ table: {
72
+ category: 'story',
73
+ },
74
+ control: { type: 'number' },
75
+ },
76
+ };
77
+ };
@@ -0,0 +1,38 @@
1
+ import type { CSSResultGroup } from 'lit';
2
+ import '../../../components/icon/icon';
3
+ import { ShoelaceElement } from '../../shoelace-element';
4
+ import '../checkbox-box/checkbox-box';
5
+ import '../radio-icon/radio-icon';
6
+ export declare class FormSelectableCard extends ShoelaceElement {
7
+ static styles: CSSResultGroup;
8
+ button: HTMLInputElement;
9
+ protected type: 'radio' | 'checkbox';
10
+ /**
11
+ * @internal The card's checked state. This is exposed as an "internal" attribute so we can reflect it, making
12
+ * it easier to style in card groups.
13
+ */
14
+ checked: boolean;
15
+ /** The input value. When selected, the parent group will receive this value. */
16
+ value: string;
17
+ /** Disables the card. */
18
+ disabled: boolean;
19
+ /** Indicates whether a parent checkbox-group has the disabled attribute with the value true */
20
+ parentDisabled: boolean;
21
+ /** Sets the card in readonly. */
22
+ readonly: boolean;
23
+ /** Indicates whether a parent checkbox-group has the readonly attribute with the value true */
24
+ parentReadonly: boolean;
25
+ /** Indicates whether the card should be in error state */
26
+ error: boolean;
27
+ /** The card layout orientation */
28
+ layout: 'horizontal' | 'vertical';
29
+ protected handleClick(): void;
30
+ private handleBlur;
31
+ private handleFocus;
32
+ handleDisabledChange(): void;
33
+ /** Sets focus on the radio button. */
34
+ focus(options?: FocusOptions): void;
35
+ /** Removes focus from the radio button. */
36
+ blur(): void;
37
+ render(): import("lit").TemplateResult;
38
+ }
@@ -0,0 +1,182 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { property, query } from 'lit/decorators.js';
8
+ import { classMap } from 'lit/directives/class-map.js';
9
+ import { ifDefined } from 'lit/directives/if-defined.js';
10
+ import { html } from 'lit/static-html.js';
11
+ import '../../../components/icon/icon';
12
+ import { ShoelaceElement } from '../../shoelace-element';
13
+ import { watch } from '../../watch';
14
+ import '../checkbox-box/checkbox-box';
15
+ import '../radio-icon/radio-icon';
16
+ import styles from './form-selectable-card.styles';
17
+ export class FormSelectableCard extends ShoelaceElement {
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * @internal The card's checked state. This is exposed as an "internal" attribute so we can reflect it, making
22
+ * it easier to style in card groups.
23
+ */
24
+ this.checked = false;
25
+ /** Disables the card. */
26
+ this.disabled = false;
27
+ /** Indicates whether a parent checkbox-group has the disabled attribute with the value true */
28
+ this.parentDisabled = false;
29
+ /** Sets the card in readonly. */
30
+ this.readonly = false;
31
+ /** Indicates whether a parent checkbox-group has the readonly attribute with the value true */
32
+ this.parentReadonly = false;
33
+ /** Indicates whether the card should be in error state */
34
+ this.error = false;
35
+ /** The card layout orientation */
36
+ this.layout = 'horizontal';
37
+ }
38
+ handleClick() {
39
+ // To be overridden by subclasses
40
+ }
41
+ handleBlur() {
42
+ this.emit('dsa-blur');
43
+ }
44
+ handleFocus() {
45
+ this.emit('dsa-focus');
46
+ }
47
+ handleDisabledChange() {
48
+ if (this.disabled ||
49
+ this.readonly ||
50
+ this.parentDisabled ||
51
+ this.parentReadonly) {
52
+ this.button.setAttribute('aria-disabled', 'true');
53
+ }
54
+ else {
55
+ this.button.removeAttribute('aria-disabled');
56
+ }
57
+ }
58
+ /** Sets focus on the radio button. */
59
+ focus(options) {
60
+ this.button.focus(options);
61
+ }
62
+ /** Removes focus from the radio button. */
63
+ blur() {
64
+ this.button.blur();
65
+ }
66
+ render() {
67
+ const isDisabled = this.disabled || this.parentDisabled;
68
+ const isReadonly = this.readonly || this.parentReadonly;
69
+ const isDeactivated = isDisabled || isReadonly;
70
+ return html `
71
+ <div part="base">
72
+ <button
73
+ part="${`button${this.checked ? ' selectable-card--checked' : ''}`}"
74
+ role=${this.type}
75
+ aria-checked="${this.checked}"
76
+ class=${classMap({
77
+ 'selectable-card': true,
78
+ 'selectable-card--vertical': this.layout === 'vertical',
79
+ 'selectable-card--horizontal': this.layout === 'horizontal',
80
+ 'selectable-card--on-base': true,
81
+ 'selectable-card--toggle': true,
82
+ 'selectable-card--medium': true,
83
+ 'selectable-card--checked': this.checked,
84
+ 'selectable-card--readonly': isReadonly,
85
+ 'selectable-card--disabled': isDisabled,
86
+ 'selectable-card--error': this.error,
87
+ 'selectable-card--checkbox': this.type === 'checkbox',
88
+ })}
89
+ ?disabled=${isDisabled}
90
+ aria-disabled=${ifDefined(isDeactivated ? 'true' : undefined)}
91
+ aria-invalid=${ifDefined(this.type === 'checkbox' && this.error ? 'true' : undefined)}
92
+ type="button"
93
+ value=${ifDefined(this.value)}
94
+ @blur=${this.handleBlur}
95
+ @focus=${this.handleFocus}
96
+ @click=${this.handleClick}
97
+ title="${this.innerText}"
98
+ >
99
+ ${this.type === 'radio'
100
+ ? html `
101
+ <dsa-internal-radio-icon
102
+ ?checked=${this.checked}
103
+ ?disabled=${isDisabled}
104
+ ?readonly=${isReadonly}
105
+ ?error=${this.error}
106
+ ></dsa-internal-radio-icon>
107
+ `
108
+ : html `
109
+ <dsa-internal-checkbox-box
110
+ ?checked=${this.checked}
111
+ ?disabled=${isDisabled}
112
+ ?readonly=${isReadonly}
113
+ ?error=${this.error}
114
+ ></dsa-internal-checkbox-box>
115
+ `}
116
+
117
+ <div class="selectable-card__content">
118
+ ${this.layout === 'vertical'
119
+ ? html `
120
+ <slot
121
+ name="image"
122
+ part="image"
123
+ class="selectable-card__image"
124
+ ></slot>
125
+ `
126
+ : ''}
127
+ <div class="selectable-card__text">
128
+ <slot part="label" class="selectable-card__label"></slot>
129
+ <slot
130
+ name="description"
131
+ part="description"
132
+ class="selectable-card__description"
133
+ ></slot>
134
+ </div>
135
+ ${this.layout === 'horizontal'
136
+ ? html `
137
+ <slot
138
+ name="image"
139
+ part="image"
140
+ class="selectable-card__image"
141
+ ></slot>
142
+ `
143
+ : ''}
144
+ </div>
145
+ </button>
146
+ </div>
147
+ `;
148
+ }
149
+ }
150
+ FormSelectableCard.styles = styles;
151
+ __decorate([
152
+ query('.selectable-card')
153
+ ], FormSelectableCard.prototype, "button", void 0);
154
+ __decorate([
155
+ property({ type: Boolean, reflect: true })
156
+ ], FormSelectableCard.prototype, "checked", void 0);
157
+ __decorate([
158
+ property()
159
+ ], FormSelectableCard.prototype, "value", void 0);
160
+ __decorate([
161
+ property({ type: Boolean, reflect: true })
162
+ ], FormSelectableCard.prototype, "disabled", void 0);
163
+ __decorate([
164
+ property({ type: Boolean })
165
+ ], FormSelectableCard.prototype, "parentDisabled", void 0);
166
+ __decorate([
167
+ property({ type: Boolean, reflect: true })
168
+ ], FormSelectableCard.prototype, "readonly", void 0);
169
+ __decorate([
170
+ property({ type: Boolean })
171
+ ], FormSelectableCard.prototype, "parentReadonly", void 0);
172
+ __decorate([
173
+ property({ type: Boolean })
174
+ ], FormSelectableCard.prototype, "error", void 0);
175
+ __decorate([
176
+ property()
177
+ ], FormSelectableCard.prototype, "layout", void 0);
178
+ __decorate([
179
+ watch(['disabled', 'readonly', 'parentDisabled', 'parentReadonly'], {
180
+ waitUntilFirstUpdate: true,
181
+ })
182
+ ], FormSelectableCard.prototype, "handleDisabledChange", null);
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;