@ds-autonomie/web-components 2.4.1 → 2.5.1

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 (512) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/cdn/chunks/{chunk.SXO3JE2C.js → chunk.2BQQJKFU.js} +20 -112
  3. package/cdn/chunks/{chunk.Y5RTMSTB.js → chunk.2S3446TB.js} +1 -1
  4. package/cdn/chunks/{chunk.EZ2CTTR3.js → chunk.3E3HJ2GB.js} +3 -3
  5. package/cdn/chunks/{chunk.ZCBARTO2.js → chunk.3PDDINNE.js} +6 -0
  6. package/cdn/chunks/{chunk.A5QRPK4Q.js → chunk.3XJTVFZ2.js} +1 -1
  7. package/cdn/chunks/{chunk.45DY5Z6P.js → chunk.3XMYYR4P.js} +1 -5
  8. package/cdn/chunks/{chunk.N7TSHDJG.js → chunk.3YELONZ5.js} +1 -1
  9. package/cdn/chunks/chunk.4OAG5UWA.js +72 -0
  10. package/cdn/chunks/{chunk.HBIJX2WM.js → chunk.4Q4LBN6D.js} +1 -1
  11. package/cdn/chunks/{chunk.YJBMFRB4.js → chunk.4UMO5YHQ.js} +1 -1
  12. package/cdn/chunks/{chunk.3OSWL542.js → chunk.53DHJKYL.js} +0 -6
  13. package/cdn/chunks/{chunk.EB3VB5VL.js → chunk.5B3X2KU4.js} +7 -4
  14. package/cdn/chunks/chunk.5QJ7KDER.js +124 -0
  15. package/cdn/chunks/chunk.6CVNT3XU.js +108 -0
  16. package/cdn/chunks/{chunk.5BQ2BGS6.js → chunk.6KSC4CRL.js} +1 -0
  17. package/cdn/chunks/{chunk.WJDOTH54.js → chunk.6SV5RDDG.js} +1 -1
  18. package/cdn/chunks/{chunk.5VZE6TSA.js → chunk.6UY5XC7A.js} +1 -1
  19. package/cdn/chunks/{chunk.MHOWVZXY.js → chunk.7CBNLWGC.js} +41 -155
  20. package/cdn/chunks/{chunk.CUFMKSEN.js → chunk.7ZJHGFQH.js} +9 -2
  21. package/cdn/chunks/chunk.A747OEHH.js +145 -0
  22. package/cdn/chunks/{chunk.OJFCPMJA.js → chunk.BBWKTDH3.js} +1 -1
  23. package/cdn/chunks/chunk.BDPH2MRN.js +234 -0
  24. package/cdn/chunks/{chunk.JO52YCNJ.js → chunk.BKSVKEYX.js} +1 -1
  25. package/cdn/chunks/{chunk.VARBZAJP.js → chunk.BMQ5WSY7.js} +2 -0
  26. package/cdn/chunks/{chunk.MCSZ2F65.js → chunk.BQ3SI4TM.js} +1 -1
  27. package/cdn/chunks/{chunk.5UVKMYSG.js → chunk.BQX4GGIU.js} +18 -12
  28. package/cdn/chunks/{chunk.H2OEFMQC.js → chunk.BWYI3OOJ.js} +0 -6
  29. package/cdn/chunks/chunk.CAWNJ57J.js +291 -0
  30. package/cdn/chunks/{chunk.NTOOFOWB.js → chunk.DBJLSCQP.js} +2 -2
  31. package/cdn/chunks/{chunk.SJM5UCFK.js → chunk.DRUKNJJ5.js} +1 -1
  32. package/cdn/chunks/{chunk.URME4YZI.js → chunk.E2ERJT5L.js} +4 -121
  33. package/cdn/chunks/{chunk.CMRQV2SO.js → chunk.EVV7CPIX.js} +3 -3
  34. package/cdn/chunks/{chunk.ZDF27RIQ.js → chunk.EYKHHWR5.js} +1 -1
  35. package/cdn/chunks/{chunk.GXQMOXKI.js → chunk.GVTFDL2C.js} +0 -4
  36. package/cdn/chunks/{chunk.GBGDDTEL.js → chunk.HOIWGDVX.js} +1 -1
  37. package/cdn/chunks/chunk.I6WQAXU3.js +85 -0
  38. package/cdn/chunks/{chunk.ICBLN3KB.js → chunk.IPKU2NK6.js} +29 -7
  39. package/cdn/chunks/{chunk.KSCPGWVT.js → chunk.JEOLRBU6.js} +1 -1
  40. package/cdn/chunks/{chunk.6FWACI3G.js → chunk.JOVZPGCQ.js} +1 -1
  41. package/cdn/chunks/{chunk.UM64ZD3C.js → chunk.JUCW3BPM.js} +1 -1
  42. package/cdn/chunks/{chunk.4ZEHBLJR.js → chunk.KNKNPTGU.js} +1 -1
  43. package/cdn/chunks/{chunk.WQ3NUYLG.js → chunk.KQJPZZKZ.js} +7 -8
  44. package/cdn/chunks/{chunk.WYTP4TFA.js → chunk.LEW43Y6P.js} +1 -1
  45. package/cdn/chunks/{chunk.PK4XXM66.js → chunk.LIJWOM2P.js} +1 -1
  46. package/cdn/chunks/chunk.LPB2VMCT.js +74 -0
  47. package/cdn/chunks/{chunk.EF2VOGBL.js → chunk.LYIECKOK.js} +1 -1
  48. package/cdn/chunks/{chunk.KLIZYLWG.js → chunk.M4YRRHEL.js} +1 -1
  49. package/cdn/chunks/{chunk.OFWHWMUH.js → chunk.MJMSFEEL.js} +1 -1
  50. package/cdn/chunks/{chunk.JD7YUYPB.js → chunk.MMT7DZQU.js} +53 -20
  51. package/cdn/chunks/{chunk.LFBIXLMF.js → chunk.MRBMS4RB.js} +10 -6
  52. package/cdn/chunks/{chunk.VI5JEKGK.js → chunk.N74GMZQD.js} +1 -1
  53. package/cdn/chunks/{chunk.2FOGPUI3.js → chunk.NMVBZ537.js} +1 -1
  54. package/cdn/chunks/{chunk.VRC57YIG.js → chunk.NNXRECFT.js} +1 -1
  55. package/cdn/chunks/chunk.NON7TU3E.js +15 -0
  56. package/cdn/chunks/{chunk.E7IRWRZH.js → chunk.NUMKSKYJ.js} +1 -1
  57. package/cdn/chunks/{chunk.FTI4C7U6.js → chunk.NYK3GS67.js} +1 -1
  58. package/cdn/chunks/{chunk.L3ZYNSI3.js → chunk.OCDDQJHV.js} +3 -3
  59. package/cdn/chunks/{chunk.BNLQUWBO.js → chunk.OQUR5UM4.js} +1 -1
  60. package/cdn/chunks/{chunk.LCA7FDI4.js → chunk.PQ4KTIXS.js} +4 -130
  61. package/cdn/chunks/{chunk.6HLUBEKO.js → chunk.PQNNELEM.js} +1 -1
  62. package/cdn/chunks/{chunk.OVBLP5E4.js → chunk.PRP4B2TV.js} +1 -1
  63. package/cdn/chunks/chunk.PT3QFRYN.js +336 -0
  64. package/cdn/chunks/{chunk.KYZIL6TB.js → chunk.PZQUQ6DG.js} +1 -1
  65. package/cdn/chunks/chunk.QCPGBCQ3.js +72 -0
  66. package/cdn/chunks/{chunk.AJFNFADL.js → chunk.QUA6RD7E.js} +1 -1
  67. package/cdn/chunks/{chunk.4XTAL3PC.js → chunk.QYS7Y562.js} +3 -3
  68. package/cdn/chunks/{chunk.QKLRW3JL.js → chunk.RHJUPBW2.js} +4 -4
  69. package/cdn/chunks/chunk.RNF5H43X.js +199 -0
  70. package/cdn/chunks/{chunk.P6NF7VUG.js → chunk.RRVYERI6.js} +1 -1
  71. package/cdn/chunks/{chunk.6XVWAOAW.js → chunk.SDRL7END.js} +1 -1
  72. package/cdn/chunks/{chunk.FAPQZI57.js → chunk.SMJWBG6U.js} +1 -1
  73. package/cdn/chunks/{chunk.E36IR3BP.js → chunk.SPK4CXKV.js} +1 -1
  74. package/cdn/chunks/{chunk.NMGNR4EL.js → chunk.SS3GSU3M.js} +1 -1
  75. package/cdn/chunks/{chunk.67KNPORK.js → chunk.SUXMTZZQ.js} +1 -1
  76. package/cdn/chunks/chunk.T4PQY3SD.js +194 -0
  77. package/cdn/chunks/{chunk.XS7VEXEG.js → chunk.T6APUNAB.js} +22 -114
  78. package/cdn/chunks/{chunk.VZJGVIXG.js → chunk.UJQUHHXT.js} +2 -0
  79. package/cdn/chunks/{chunk.2YVHHVLG.js → chunk.UORXHDBJ.js} +3 -2
  80. package/cdn/chunks/{chunk.OMPBUYUW.js → chunk.UYGSA2IW.js} +5 -5
  81. package/cdn/chunks/chunk.W6RA2ZKW.js +124 -0
  82. package/cdn/chunks/{chunk.AZBK27ET.js → chunk.WQLZJXIF.js} +1 -1
  83. package/cdn/chunks/{chunk.OSJ5I4FK.js → chunk.WWI5IYQY.js} +8 -3
  84. package/cdn/chunks/{chunk.SMWE3ICX.js → chunk.XGOXFBM5.js} +1 -1
  85. package/cdn/chunks/{chunk.JVTWZUNG.js → chunk.XODAGFNB.js} +1 -1
  86. package/cdn/chunks/{chunk.7YE2BWH2.js → chunk.XYXJQSTL.js} +1 -1
  87. package/cdn/chunks/{chunk.KOWSS3HP.js → chunk.Y2RQJPXD.js} +1 -1
  88. package/cdn/chunks/{chunk.KPS4A22J.js → chunk.Y4XSMWCI.js} +1 -1
  89. package/cdn/chunks/{chunk.PIFZYHAW.js → chunk.YAK3QGTM.js} +1 -1
  90. package/cdn/chunks/chunk.YGJ3KERC.js +290 -0
  91. package/cdn/chunks/chunk.YGZ44MNV.js +64 -0
  92. package/cdn/chunks/{chunk.RZUPGCMM.js → chunk.YSKD4LUA.js} +1 -5
  93. package/cdn/chunks/{chunk.K4B5TCNN.js → chunk.YX277NFA.js} +1 -1
  94. package/cdn/chunks/{chunk.XHB6RI7B.js → chunk.ZHNP2Z3B.js} +5 -5
  95. package/cdn/components/accordion/accordion.js +4 -4
  96. package/cdn/components/alert/alert.js +4 -4
  97. package/cdn/components/anchor-tag/anchor-tag.d.ts +2 -1
  98. package/cdn/components/anchor-tag/anchor-tag.js +1 -1
  99. package/cdn/components/avatar/avatar.js +2 -2
  100. package/cdn/components/breadcrumb/breadcrumb.js +4 -4
  101. package/cdn/components/breadcrumb-item/breadcrumb-item.js +2 -2
  102. package/cdn/components/button/button.js +5 -5
  103. package/cdn/components/calendar/calendar.js +2 -2
  104. package/cdn/components/callout/callout.js +2 -2
  105. package/cdn/components/card/card.d.ts +0 -2
  106. package/cdn/components/card/card.js +1 -1
  107. package/cdn/components/card-content/card-content.d.ts +51 -0
  108. package/cdn/components/card-content/card-content.js +28 -0
  109. package/cdn/components/card-content/card-content.styles.js +10 -0
  110. package/cdn/components/card-nav/card-nav.d.ts +23 -0
  111. package/cdn/components/card-nav/card-nav.js +15 -0
  112. package/cdn/components/{include/include.styles.js → card-nav/card-nav.styles.js} +3 -3
  113. package/cdn/components/card-nav-accordion/card-nav-accordion.d.ts +49 -0
  114. package/cdn/components/card-nav-accordion/card-nav-accordion.js +30 -0
  115. package/cdn/components/card-nav-accordion/card-nav-accordion.styles.js +10 -0
  116. package/cdn/components/card-nav-item/card-nav-item.d.ts +38 -0
  117. package/cdn/components/card-nav-item/card-nav-item.js +26 -0
  118. package/cdn/components/card-nav-item/card-nav-item.styles.js +10 -0
  119. package/cdn/components/checkbox/checkbox.js +5 -5
  120. package/cdn/components/checkbox-button/checkbox-button.js +4 -4
  121. package/cdn/components/checkbox-card/checkbox-card.js +4 -4
  122. package/cdn/components/checkbox-group/checkbox-group.js +3 -3
  123. package/cdn/components/combobox/combobox.js +6 -6
  124. package/cdn/components/dialog/dialog.js +4 -4
  125. package/cdn/components/download-card/download-card.js +2 -2
  126. package/cdn/components/download-link/download-link.js +2 -2
  127. package/cdn/components/drawer/drawer.js +4 -4
  128. package/cdn/components/dropdown/dropdown.d.ts +0 -5
  129. package/cdn/components/dropdown/dropdown.js +2 -2
  130. package/cdn/components/error-message-panel/error-message-panel.js +2 -2
  131. package/cdn/components/error-text/error-text.js +2 -2
  132. package/cdn/components/fieldset/fieldset.d.ts +39 -0
  133. package/cdn/components/fieldset/fieldset.js +17 -0
  134. package/cdn/components/fieldset/fieldset.styles.d.ts +2 -0
  135. package/cdn/components/fieldset/fieldset.styles.js +10 -0
  136. package/cdn/components/file-upload/file-upload.js +4 -4
  137. package/cdn/components/file-upload-item/file-upload-item.js +2 -2
  138. package/cdn/components/filter-base/filter-base.js +5 -5
  139. package/cdn/components/filter-button/filter-button.js +4 -4
  140. package/cdn/components/filter-counter/filter-counter.js +24 -21
  141. package/cdn/components/filter-date/filter-date.js +11 -11
  142. package/cdn/components/filter-range/filter-range.js +24 -21
  143. package/cdn/components/filter-select/filter-select.js +25 -22
  144. package/cdn/components/footer/footer.js +2 -2
  145. package/cdn/components/format-bytes/format-bytes.js +2 -2
  146. package/cdn/components/format-date/format-date.js +2 -2
  147. package/cdn/components/format-number/format-number.js +2 -2
  148. package/cdn/components/header/header.js +3 -3
  149. package/cdn/components/header/header.styles.js +1 -1
  150. package/cdn/components/header-search/header-search.js +6 -6
  151. package/cdn/components/icon/icon.js +2 -2
  152. package/cdn/components/icon-button/icon-button.js +2 -2
  153. package/cdn/components/input/input.d.ts +17 -81
  154. package/cdn/components/input/input.js +17 -14
  155. package/cdn/components/input-date/input-date.d.ts +4 -42
  156. package/cdn/components/input-date/input-date.js +11 -10
  157. package/cdn/components/input-date/input-date.styles.js +2 -2
  158. package/cdn/components/input-mask/input-mask.d.ts +3 -50
  159. package/cdn/components/input-mask/input-mask.js +5 -4
  160. package/cdn/components/input-native/input-native.d.ts +57 -0
  161. package/cdn/components/input-native/input-native.js +43 -0
  162. package/cdn/components/input-native/input-native.styles.d.ts +2 -0
  163. package/cdn/components/{input/input.styles.js → input-native/input-native.styles.js} +4 -3
  164. package/cdn/components/{input/input.utils.d.ts → input-native/input-native.utils.d.ts} +1 -1
  165. package/cdn/components/{input/input.utils.js → input-native/input-native.utils.js} +1 -1
  166. package/cdn/components/input-otp/input-otp.d.ts +6 -50
  167. package/cdn/components/input-otp/input-otp.js +4 -3
  168. package/cdn/components/input-phone/input-phone.d.ts +5 -36
  169. package/cdn/components/input-phone/input-phone.js +8 -7
  170. package/cdn/components/input-time/input-time.d.ts +8 -53
  171. package/cdn/components/input-time/input-time.js +7 -6
  172. package/cdn/components/input-time/input-time.styles.js +2 -2
  173. package/cdn/components/menu-accordion/menu-accordion.js +4 -4
  174. package/cdn/components/menu-item/menu-item.d.ts +1 -1
  175. package/cdn/components/menu-item/menu-item.js +5 -4
  176. package/cdn/components/menu-item/menu-item.styles.js +1 -1
  177. package/cdn/components/mutation-observer/mutation-observer.d.ts +1 -3
  178. package/cdn/components/mutation-observer/mutation-observer.js +1 -1
  179. package/cdn/components/navbar-link/navbar-link.js +2 -2
  180. package/cdn/components/navbar-menu/navbar-menu.js +4 -4
  181. package/cdn/components/option/option.js +4 -4
  182. package/cdn/components/pagination/pagination.js +18 -15
  183. package/cdn/components/profile-button/profile-button.js +5 -5
  184. package/cdn/components/progress-bar/progress-bar.js +2 -2
  185. package/cdn/components/quote/quote.js +2 -2
  186. package/cdn/components/radio/radio.js +3 -3
  187. package/cdn/components/radio-button/radio-button.js +2 -2
  188. package/cdn/components/radio-card/radio-card.js +4 -4
  189. package/cdn/components/radio-group/radio-group.js +2 -2
  190. package/cdn/components/relative-time/relative-time.d.ts +1 -1
  191. package/cdn/components/relative-time/relative-time.js +2 -2
  192. package/cdn/components/resize-observer/resize-observer.d.ts +1 -3
  193. package/cdn/components/select/select.js +5 -5
  194. package/cdn/components/skip-links/skip-links.js +2 -2
  195. package/cdn/components/spinner/spinner.js +2 -2
  196. package/cdn/components/split-panel/split-panel.js +4 -4
  197. package/cdn/components/step/step.js +4 -4
  198. package/cdn/components/switch/switch.js +4 -4
  199. package/cdn/components/tab/tab.js +4 -4
  200. package/cdn/components/tab-group/tab-group.d.ts +2 -0
  201. package/cdn/components/tab-group/tab-group.js +4 -4
  202. package/cdn/components/table/table.js +2 -2
  203. package/cdn/components/table/table.styles.js +1 -1
  204. package/cdn/components/table-action/table-action.js +2 -2
  205. package/cdn/components/table-body/table-body.js +3 -3
  206. package/cdn/components/table-caption/table-caption.js +2 -2
  207. package/cdn/components/table-container/table-container.js +2 -2
  208. package/cdn/components/table-head/table-head.js +3 -3
  209. package/cdn/components/table-header-cell/table-header-cell.js +4 -4
  210. package/cdn/components/table-header-cell/table-header-cell.styles.js +1 -1
  211. package/cdn/components/table-header-row/table-header-row.js +10 -10
  212. package/cdn/components/table-of-contents/table-of-contents.js +2 -2
  213. package/cdn/components/table-row/table-row.js +7 -7
  214. package/cdn/components/tag/tag.js +4 -4
  215. package/cdn/components/tag-button/tag-button.d.ts +53 -0
  216. package/cdn/components/tag-button/tag-button.js +18 -0
  217. package/cdn/components/tag-button/tag-button.styles.d.ts +2 -0
  218. package/cdn/components/tag-button/tag-button.styles.js +10 -0
  219. package/cdn/components/textarea/textarea.js +2 -2
  220. package/cdn/components/tooltip/tooltip.d.ts +2 -0
  221. package/cdn/components/tooltip/tooltip.js +2 -2
  222. package/cdn/components/tree/tree.js +10 -10
  223. package/cdn/components/tree-item/tree-item.js +8 -8
  224. package/cdn/custom-elements.json +7595 -8126
  225. package/cdn/design-system.d.ts +7 -2
  226. package/cdn/design-system.js +176 -148
  227. package/cdn/internal/components/checkbox-box/checkbox-box.styles.js +0 -6
  228. package/cdn/internal/components/date-field/date-field.d.ts +11 -0
  229. package/cdn/internal/components/date-field/date-field.js +23 -1
  230. package/cdn/internal/components/input-base/input-base.d.ts +118 -0
  231. package/cdn/internal/components/input-base/input-base.js +313 -0
  232. package/cdn/internal/components/input-base/input-base.styles.d.ts +2 -0
  233. package/cdn/internal/components/input-base/input-base.styles.js +302 -0
  234. package/cdn/internal/components/input-base/input-base.utils.d.ts +1 -0
  235. package/cdn/internal/components/input-base/input-base.utils.js +1 -0
  236. package/cdn/internal/components/radio-icon/radio-icon.styles.js +0 -6
  237. package/cdn/themes/dsa-wc-theme.css +94 -2
  238. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  239. package/cdn/themes/dsa-wc-theme.styles.js +100 -2
  240. package/cdn/translations/en-gb.js +1 -1
  241. package/cdn/translations/en.js +1 -1
  242. package/cdn/translations/fr.js +1 -1
  243. package/cdn/utilities/localize.d.ts +1 -0
  244. package/cdn/utilities/localize.js +1 -1
  245. package/cdn/vscode.html-custom-data.json +225 -355
  246. package/cdn/web-types.json +3580 -4067
  247. package/dist/chunks/{chunk.TKV7I7MM.js → chunk.2655IKKL.js} +9 -2
  248. package/dist/chunks/chunk.2EO2NJQJ.js +118 -0
  249. package/dist/chunks/{chunk.QEZ5FSIU.js → chunk.2GAMN72N.js} +1 -1
  250. package/dist/chunks/{chunk.DNLOBVBE.js → chunk.2JRGVS6D.js} +1 -1
  251. package/dist/chunks/chunk.3CWUZQRT.js +325 -0
  252. package/dist/chunks/{chunk.7K5DG6KV.js → chunk.3RMSYRZA.js} +1 -1
  253. package/dist/chunks/chunk.3XTO3LV5.js +62 -0
  254. package/dist/chunks/chunk.3YZI5GBX.js +72 -0
  255. package/dist/chunks/{chunk.KDEA34PP.js → chunk.4JZFGBJP.js} +1 -1
  256. package/dist/chunks/{chunk.OKUA77L4.js → chunk.4S7APMGY.js} +18 -12
  257. package/dist/chunks/{chunk.MWWI3AU2.js → chunk.4VHQEXSY.js} +1 -1
  258. package/dist/chunks/{chunk.PWVYG6XN.js → chunk.4ZAABSYS.js} +0 -6
  259. package/dist/chunks/{chunk.ZAZPAXHI.js → chunk.54XEUZ55.js} +1 -1
  260. package/dist/chunks/chunk.5KTLM3MD.js +106 -0
  261. package/dist/chunks/{chunk.JHA6OLMK.js → chunk.635JP52V.js} +3 -3
  262. package/dist/chunks/{chunk.O4HVYU6G.js → chunk.63BQQE4G.js} +27 -5
  263. package/dist/chunks/{chunk.AMTRQ7HP.js → chunk.6AKP5BRZ.js} +1 -1
  264. package/dist/chunks/{chunk.SRP6V7OW.js → chunk.6KMLQCBG.js} +1 -1
  265. package/dist/chunks/chunk.6MWXS55V.js +136 -0
  266. package/dist/chunks/{chunk.KENYJWWA.js → chunk.6NGHRQYD.js} +1 -1
  267. package/dist/chunks/{chunk.KGZXCKP2.js → chunk.6XCFILBM.js} +1 -1
  268. package/dist/chunks/{chunk.OWV6XZFR.js → chunk.7QLR3F26.js} +1 -1
  269. package/dist/chunks/{chunk.UKZA4PJB.js → chunk.AATHH5ZK.js} +1 -1
  270. package/dist/chunks/{chunk.X4HFQ4MT.js → chunk.AB7T3PSN.js} +1 -1
  271. package/dist/chunks/chunk.ADUUYLJY.js +79 -0
  272. package/dist/chunks/{chunk.XVFPRM26.js → chunk.AHHKOQL3.js} +1 -1
  273. package/dist/chunks/{chunk.JRJB2DFE.js → chunk.AJCLNOPZ.js} +1 -1
  274. package/dist/chunks/{chunk.4SVX6VCY.js → chunk.ARDX2RVR.js} +1 -1
  275. package/dist/chunks/{chunk.V4U5XMU7.js → chunk.B7LEFGX4.js} +1 -1
  276. package/dist/chunks/{chunk.P2LEUT2Q.js → chunk.BYB2ODNQ.js} +4 -121
  277. package/dist/chunks/{chunk.INFNQBQD.js → chunk.CPBWQ6BE.js} +1 -1
  278. package/dist/chunks/{chunk.6BOM4P42.js → chunk.DHCXNXX3.js} +5 -5
  279. package/dist/chunks/chunk.DJNQIAYV.js +283 -0
  280. package/dist/chunks/{chunk.7MGKJTDJ.js → chunk.DKIEKIV4.js} +4 -130
  281. package/dist/chunks/{chunk.OHDR6G6J.js → chunk.DMIXIORN.js} +3 -3
  282. package/dist/chunks/{chunk.SG42FXRA.js → chunk.DUPWIWDC.js} +41 -155
  283. package/dist/chunks/{chunk.Z2A5AEMU.js → chunk.DXRDCCL4.js} +1 -1
  284. package/dist/chunks/{chunk.IW4EYF6Z.js → chunk.DZVHKOGO.js} +1 -1
  285. package/dist/chunks/{chunk.QG62LWYX.js → chunk.EEK6ZGS2.js} +1 -4
  286. package/dist/chunks/{chunk.EWL56M5H.js → chunk.EQDAZLA2.js} +7 -4
  287. package/dist/chunks/{chunk.E7S4C6P7.js → chunk.ETG5DAHF.js} +1 -1
  288. package/dist/chunks/{chunk.SA7GMM2I.js → chunk.EWOJ3XVB.js} +3 -3
  289. package/dist/chunks/{chunk.6SDBUBGE.js → chunk.FKOYZI2V.js} +2 -0
  290. package/dist/chunks/{chunk.IHTWK22H.js → chunk.G5ZFFB2V.js} +5 -5
  291. package/dist/chunks/{chunk.XNVSET6H.js → chunk.I4XFUHWM.js} +1 -1
  292. package/dist/chunks/{chunk.U2RG7USD.js → chunk.IR5ZDNLY.js} +1 -1
  293. package/dist/chunks/chunk.J4QE6NJC.js +70 -0
  294. package/dist/chunks/{chunk.O4ZSTSXZ.js → chunk.JQS5RPAK.js} +1 -5
  295. package/dist/chunks/{chunk.GNJX6QSO.js → chunk.K4XU6L7E.js} +1 -1
  296. package/dist/chunks/{chunk.DKTT254G.js → chunk.KFBHQJJP.js} +6 -0
  297. package/dist/chunks/{chunk.M4H37WUH.js → chunk.L2B7WMWE.js} +8 -3
  298. package/dist/chunks/{chunk.GRNDTTXR.js → chunk.L7SZMI27.js} +1 -1
  299. package/dist/chunks/chunk.LGV7OXTA.js +186 -0
  300. package/dist/chunks/{chunk.NASETPCZ.js → chunk.LXS4P57X.js} +1 -1
  301. package/dist/chunks/{chunk.UCIFKWMI.js → chunk.MF7KW7MX.js} +1 -1
  302. package/dist/chunks/{chunk.P7SN3TMY.js → chunk.NJNQX6FX.js} +1 -1
  303. package/dist/chunks/{chunk.533C7JJH.js → chunk.NKOMMJMK.js} +10 -6
  304. package/dist/chunks/chunk.NZEV2R75.js +197 -0
  305. package/dist/chunks/{chunk.IXAKBOI4.js → chunk.ORWJR56M.js} +1 -1
  306. package/dist/chunks/{chunk.7XUPS5FG.js → chunk.PHSUFADX.js} +1 -0
  307. package/dist/chunks/chunk.Q2BCYSPM.js +70 -0
  308. package/dist/chunks/{chunk.PD6ETZGV.js → chunk.Q3II5ELV.js} +1 -1
  309. package/dist/chunks/{chunk.YWHYMKYI.js → chunk.QADAWCTI.js} +2 -0
  310. package/dist/chunks/chunk.QFO2VDJ3.js +286 -0
  311. package/dist/chunks/{chunk.TTZ6Y7GB.js → chunk.QGPBBIGJ.js} +1 -1
  312. package/dist/chunks/{chunk.XQDC25MI.js → chunk.QJIY2G7A.js} +1 -1
  313. package/dist/chunks/{chunk.H3X3D747.js → chunk.QLT366CP.js} +1 -5
  314. package/dist/chunks/{chunk.DFBKUH2U.js → chunk.RGHMS6RU.js} +1 -1
  315. package/dist/chunks/{chunk.2JCMUNW4.js → chunk.RURHQSLF.js} +1 -1
  316. package/dist/chunks/{chunk.LUPOBRAQ.js → chunk.SDT5BB26.js} +7 -8
  317. package/dist/chunks/{chunk.TXMAH3OK.js → chunk.SFD6GJDA.js} +53 -20
  318. package/dist/chunks/{chunk.ZRW5L2NC.js → chunk.SGKW2DOH.js} +3 -2
  319. package/dist/chunks/{chunk.IUPSCAN6.js → chunk.SGVMH2WK.js} +1 -1
  320. package/dist/chunks/{chunk.4URSPC26.js → chunk.SJN7BDOD.js} +1 -1
  321. package/dist/chunks/{chunk.5VC7IHJ2.js → chunk.STKBEBVL.js} +1 -1
  322. package/dist/chunks/{chunk.4VJTOIB4.js → chunk.SV6UZ7XX.js} +1 -1
  323. package/dist/chunks/{chunk.IFDJNZPC.js → chunk.SW6R5A3O.js} +1 -1
  324. package/dist/chunks/{chunk.H7ZLX7SO.js → chunk.TODRUEYV.js} +3 -3
  325. package/dist/chunks/chunk.TZVFQDBB.js +122 -0
  326. package/dist/chunks/chunk.ULPMZDTP.js +13 -0
  327. package/dist/chunks/{chunk.2BZBH3CX.js → chunk.URDP5HQR.js} +0 -6
  328. package/dist/chunks/{chunk.S6XG7G6X.js → chunk.VDYAE3MB.js} +2 -2
  329. package/dist/chunks/{chunk.XG7KR6BI.js → chunk.WDLYTTNO.js} +1 -1
  330. package/dist/chunks/{chunk.ZH3OZSYO.js → chunk.X6M22EYD.js} +22 -114
  331. package/dist/chunks/chunk.XAF7DDXJ.js +228 -0
  332. package/dist/chunks/{chunk.FC7AQRZS.js → chunk.XODWG3UJ.js} +1 -1
  333. package/dist/chunks/{chunk.GZEVQN6J.js → chunk.Y4CDJYQO.js} +20 -112
  334. package/dist/chunks/{chunk.RS4S7SAD.js → chunk.Y6XPKQ25.js} +1 -1
  335. package/dist/chunks/{chunk.7E57JVUE.js → chunk.YCRHX2XL.js} +1 -1
  336. package/dist/chunks/{chunk.JZYJ2V4F.js → chunk.YGRXSNFC.js} +1 -1
  337. package/dist/chunks/{chunk.MTOENDDR.js → chunk.YT4ZDRKX.js} +1 -1
  338. package/dist/chunks/{chunk.Y3I7GUNB.js → chunk.Z42XBNIN.js} +1 -1
  339. package/dist/chunks/{chunk.DISFQ7ZU.js → chunk.ZMMQOF24.js} +1 -1
  340. package/dist/components/accordion/accordion.js +4 -4
  341. package/dist/components/alert/alert.js +4 -4
  342. package/dist/components/anchor-tag/anchor-tag.d.ts +2 -1
  343. package/dist/components/anchor-tag/anchor-tag.js +1 -1
  344. package/dist/components/avatar/avatar.js +2 -2
  345. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  346. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  347. package/dist/components/button/button.js +5 -5
  348. package/dist/components/calendar/calendar.js +2 -2
  349. package/dist/components/callout/callout.js +2 -2
  350. package/dist/components/card/card.d.ts +0 -2
  351. package/dist/components/card/card.js +1 -1
  352. package/dist/components/card-content/card-content.d.ts +51 -0
  353. package/dist/components/card-content/card-content.js +22 -0
  354. package/dist/components/card-content/card-content.styles.d.ts +2 -0
  355. package/dist/components/card-content/card-content.styles.js +8 -0
  356. package/dist/components/card-nav/card-nav.d.ts +23 -0
  357. package/dist/components/card-nav/card-nav.js +12 -0
  358. package/dist/components/card-nav/card-nav.styles.d.ts +2 -0
  359. package/dist/components/card-nav/card-nav.styles.js +8 -0
  360. package/dist/components/card-nav-accordion/card-nav-accordion.d.ts +49 -0
  361. package/dist/components/card-nav-accordion/card-nav-accordion.js +25 -0
  362. package/dist/components/card-nav-accordion/card-nav-accordion.styles.d.ts +2 -0
  363. package/dist/components/card-nav-accordion/card-nav-accordion.styles.js +8 -0
  364. package/dist/components/card-nav-item/card-nav-item.d.ts +38 -0
  365. package/dist/components/card-nav-item/card-nav-item.js +21 -0
  366. package/dist/components/card-nav-item/card-nav-item.styles.d.ts +2 -0
  367. package/dist/components/card-nav-item/card-nav-item.styles.js +8 -0
  368. package/dist/components/checkbox/checkbox.js +5 -5
  369. package/dist/components/checkbox-button/checkbox-button.js +4 -4
  370. package/dist/components/checkbox-card/checkbox-card.js +4 -4
  371. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  372. package/dist/components/combobox/combobox.js +6 -6
  373. package/dist/components/dialog/dialog.js +4 -4
  374. package/dist/components/download-card/download-card.js +2 -2
  375. package/dist/components/download-link/download-link.js +2 -2
  376. package/dist/components/drawer/drawer.js +4 -4
  377. package/dist/components/dropdown/dropdown.d.ts +0 -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 +2 -2
  381. package/dist/components/fieldset/fieldset.d.ts +39 -0
  382. package/dist/components/fieldset/fieldset.js +13 -0
  383. package/dist/components/fieldset/fieldset.styles.d.ts +2 -0
  384. package/dist/components/fieldset/fieldset.styles.js +8 -0
  385. package/dist/components/file-upload/file-upload.js +4 -4
  386. package/dist/components/file-upload-item/file-upload-item.js +2 -2
  387. package/dist/components/filter-base/filter-base.js +5 -5
  388. package/dist/components/filter-button/filter-button.js +4 -4
  389. package/dist/components/filter-counter/filter-counter.js +23 -20
  390. package/dist/components/filter-date/filter-date.js +10 -10
  391. package/dist/components/filter-range/filter-range.js +23 -20
  392. package/dist/components/filter-select/filter-select.js +24 -21
  393. package/dist/components/footer/footer.js +2 -2
  394. package/dist/components/format-bytes/format-bytes.js +2 -2
  395. package/dist/components/format-date/format-date.js +2 -2
  396. package/dist/components/format-number/format-number.js +2 -2
  397. package/dist/components/header/header.js +3 -3
  398. package/dist/components/header/header.styles.js +1 -1
  399. package/dist/components/header-search/header-search.js +6 -6
  400. package/dist/components/icon/icon.js +2 -2
  401. package/dist/components/icon-button/icon-button.js +2 -2
  402. package/dist/components/input/input.d.ts +17 -81
  403. package/dist/components/input/input.js +16 -13
  404. package/dist/components/input-date/input-date.d.ts +4 -42
  405. package/dist/components/input-date/input-date.js +10 -9
  406. package/dist/components/input-date/input-date.styles.js +2 -2
  407. package/dist/components/input-mask/input-mask.d.ts +3 -50
  408. package/dist/components/input-mask/input-mask.js +5 -4
  409. package/dist/components/input-native/input-native.d.ts +57 -0
  410. package/dist/components/input-native/input-native.js +35 -0
  411. package/dist/components/input-native/input-native.styles.d.ts +2 -0
  412. package/dist/components/input-native/input-native.styles.js +10 -0
  413. package/dist/components/{input/input.utils.d.ts → input-native/input-native.utils.d.ts} +1 -1
  414. package/dist/components/{input/input.utils.js → input-native/input-native.utils.js} +1 -1
  415. package/dist/components/input-otp/input-otp.d.ts +6 -50
  416. package/dist/components/input-otp/input-otp.js +4 -3
  417. package/dist/components/input-phone/input-phone.d.ts +5 -36
  418. package/dist/components/input-phone/input-phone.js +8 -7
  419. package/dist/components/input-time/input-time.d.ts +8 -53
  420. package/dist/components/input-time/input-time.js +7 -6
  421. package/dist/components/input-time/input-time.styles.js +2 -2
  422. package/dist/components/menu-accordion/menu-accordion.js +4 -4
  423. package/dist/components/menu-item/menu-item.d.ts +1 -1
  424. package/dist/components/menu-item/menu-item.js +5 -4
  425. package/dist/components/menu-item/menu-item.styles.js +1 -1
  426. package/dist/components/mutation-observer/mutation-observer.d.ts +1 -3
  427. package/dist/components/mutation-observer/mutation-observer.js +1 -1
  428. package/dist/components/navbar-link/navbar-link.js +2 -2
  429. package/dist/components/navbar-menu/navbar-menu.js +4 -4
  430. package/dist/components/option/option.js +4 -4
  431. package/dist/components/pagination/pagination.js +17 -14
  432. package/dist/components/profile-button/profile-button.js +5 -5
  433. package/dist/components/progress-bar/progress-bar.js +2 -2
  434. package/dist/components/quote/quote.js +2 -2
  435. package/dist/components/radio/radio.js +3 -3
  436. package/dist/components/radio-button/radio-button.js +2 -2
  437. package/dist/components/radio-card/radio-card.js +4 -4
  438. package/dist/components/radio-group/radio-group.js +2 -2
  439. package/dist/components/relative-time/relative-time.d.ts +1 -1
  440. package/dist/components/relative-time/relative-time.js +2 -2
  441. package/dist/components/resize-observer/resize-observer.d.ts +1 -3
  442. package/dist/components/select/select.js +5 -5
  443. package/dist/components/skip-links/skip-links.js +2 -2
  444. package/dist/components/spinner/spinner.js +2 -2
  445. package/dist/components/split-panel/split-panel.js +4 -4
  446. package/dist/components/step/step.js +4 -4
  447. package/dist/components/switch/switch.js +4 -4
  448. package/dist/components/tab/tab.js +4 -4
  449. package/dist/components/tab-group/tab-group.d.ts +2 -0
  450. package/dist/components/tab-group/tab-group.js +4 -4
  451. package/dist/components/table/table.js +2 -2
  452. package/dist/components/table/table.styles.js +1 -1
  453. package/dist/components/table-action/table-action.js +2 -2
  454. package/dist/components/table-body/table-body.js +3 -3
  455. package/dist/components/table-caption/table-caption.js +2 -2
  456. package/dist/components/table-container/table-container.js +2 -2
  457. package/dist/components/table-head/table-head.js +3 -3
  458. package/dist/components/table-header-cell/table-header-cell.js +4 -4
  459. package/dist/components/table-header-cell/table-header-cell.styles.js +1 -1
  460. package/dist/components/table-header-row/table-header-row.js +10 -10
  461. package/dist/components/table-of-contents/table-of-contents.js +2 -2
  462. package/dist/components/table-row/table-row.js +7 -7
  463. package/dist/components/tag/tag.js +4 -4
  464. package/dist/components/tag-button/tag-button.d.ts +53 -0
  465. package/dist/components/tag-button/tag-button.js +12 -0
  466. package/dist/components/tag-button/tag-button.styles.d.ts +2 -0
  467. package/dist/components/tag-button/tag-button.styles.js +8 -0
  468. package/dist/components/textarea/textarea.js +2 -2
  469. package/dist/components/tooltip/tooltip.d.ts +2 -0
  470. package/dist/components/tooltip/tooltip.js +2 -2
  471. package/dist/components/tree/tree.js +10 -10
  472. package/dist/components/tree-item/tree-item.js +8 -8
  473. package/dist/custom-elements.json +7595 -8126
  474. package/dist/design-system.d.ts +7 -2
  475. package/dist/design-system.js +175 -147
  476. package/dist/internal/components/checkbox-box/checkbox-box.styles.js +0 -6
  477. package/dist/internal/components/date-field/date-field.d.ts +11 -0
  478. package/dist/internal/components/date-field/date-field.js +23 -1
  479. package/dist/internal/components/input-base/input-base.d.ts +118 -0
  480. package/dist/internal/components/input-base/input-base.js +313 -0
  481. package/dist/internal/components/input-base/input-base.styles.d.ts +2 -0
  482. package/dist/internal/components/input-base/input-base.styles.js +302 -0
  483. package/dist/internal/components/input-base/input-base.utils.d.ts +1 -0
  484. package/dist/internal/components/input-base/input-base.utils.js +1 -0
  485. package/dist/internal/components/radio-icon/radio-icon.styles.js +0 -6
  486. package/dist/themes/dsa-wc-theme.css +94 -2
  487. package/dist/themes/dsa-wc-theme.min.css +1 -1
  488. package/dist/themes/dsa-wc-theme.styles.js +100 -2
  489. package/dist/translations/en-gb.js +1 -1
  490. package/dist/translations/en.js +1 -1
  491. package/dist/translations/fr.js +1 -1
  492. package/dist/utilities/localize.d.ts +1 -0
  493. package/dist/utilities/localize.js +1 -1
  494. package/dist/vscode.html-custom-data.json +225 -355
  495. package/dist/web-types.json +3580 -4067
  496. package/package.json +17 -17
  497. package/cdn/chunks/chunk.7ITBH4NW.js +0 -687
  498. package/cdn/chunks/chunk.L7DPKZV6.js +0 -82
  499. package/cdn/chunks/chunk.VTPSYUIU.js +0 -19
  500. package/cdn/components/include/include.d.ts +0 -32
  501. package/cdn/components/include/include.js +0 -14
  502. package/dist/chunks/chunk.GQ4NIFUB.js +0 -674
  503. package/dist/chunks/chunk.MBQRU4CJ.js +0 -79
  504. package/dist/chunks/chunk.NNBOLKWI.js +0 -17
  505. package/dist/components/include/include.d.ts +0 -32
  506. package/dist/components/include/include.js +0 -12
  507. package/dist/components/include/include.styles.js +0 -8
  508. package/dist/components/input/input.styles.js +0 -9
  509. /package/cdn/components/{include/include.styles.d.ts → card-content/card-content.styles.d.ts} +0 -0
  510. /package/{dist/components/input/input.styles.d.ts → cdn/components/card-nav/card-nav.styles.d.ts} +0 -0
  511. /package/cdn/components/{input/input.styles.d.ts → card-nav-accordion/card-nav-accordion.styles.d.ts} +0 -0
  512. /package/{dist/components/include/include.styles.d.ts → cdn/components/card-nav-item/card-nav-item.styles.d.ts} +0 -0
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.HGR7A5FK.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.YWHYMKYI.js";
18
+ } from "./chunk.QADAWCTI.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.NOMN6DGD.js";
@@ -178,6 +178,13 @@ var DSATooltip = class extends ShoelaceElement {
178
178
  this.open = false;
179
179
  return await waitForEvent(this, "dsa-after-hide");
180
180
  }
181
+ /** Automatically adds an accessible description to the trigger element */
182
+ handleDefaultSlotChange() {
183
+ const target = this.querySelector(
184
+ "dsa-button, dsa-icon-button"
185
+ );
186
+ target == null ? void 0 : target.setAttribute("description", this.content);
187
+ }
181
188
  render() {
182
189
  return html`
183
190
  <dsa-popup
@@ -199,7 +206,7 @@ var DSATooltip = class extends ShoelaceElement {
199
206
  arrow
200
207
  hover-bridge
201
208
  >
202
- <slot slot="anchor" aria-describedby="tooltip"></slot>
209
+ <slot slot="anchor" @slotchange=${this.handleDefaultSlotChange}></slot>
203
210
 
204
211
  <slot
205
212
  name="content"
@@ -0,0 +1,118 @@
1
+ import {
2
+ fieldset_styles_default
3
+ } from "./chunk.Q2BCYSPM.js";
4
+ import {
5
+ HasSlotController
6
+ } from "./chunk.YIY5RM53.js";
7
+ import {
8
+ watch
9
+ } from "./chunk.NOMN6DGD.js";
10
+ import {
11
+ a11yWarning
12
+ } from "./chunk.PWL7QCVG.js";
13
+ import {
14
+ ShoelaceElement
15
+ } from "./chunk.XZ5FE34T.js";
16
+ import {
17
+ __decorateClass
18
+ } from "./chunk.S3NI7NKU.js";
19
+
20
+ // src/components/fieldset/fieldset.ts
21
+ import { html } from "lit";
22
+ import { customElement, property, query } from "lit/decorators.js";
23
+ import { classMap } from "lit/directives/class-map.js";
24
+ var DSAFieldset = class extends ShoelaceElement {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.hasSlotController = new HasSlotController(
28
+ this,
29
+ "legend-title"
30
+ );
31
+ this.legendTitle = "";
32
+ this.variant = "base";
33
+ this.disabled = false;
34
+ this.horizontal = false;
35
+ }
36
+ updateChildrenDisabledState() {
37
+ var _a;
38
+ const children = (_a = this.defaultSlot) == null ? void 0 : _a.assignedElements();
39
+ children == null ? void 0 : children.forEach((child) => {
40
+ if ("disabled" in child) {
41
+ child.disabled = this.disabled;
42
+ }
43
+ });
44
+ }
45
+ handleSlotChange() {
46
+ this.updateChildrenDisabledState();
47
+ }
48
+ handleDisabledChange() {
49
+ this.updateChildrenDisabledState();
50
+ }
51
+ render() {
52
+ const hasLegendTitleSlot = this.hasSlotController.test("label");
53
+ const hasLegendTitle = this.legendTitle ? true : !!hasLegendTitleSlot;
54
+ if (!hasLegendTitle) {
55
+ a11yWarning(
56
+ "<dsa-fieldset> requires a legend-title attribute or a legend-title slot for accessibility"
57
+ );
58
+ }
59
+ return html`
60
+ <fieldset
61
+ role="group"
62
+ class=${classMap({
63
+ fieldset: true,
64
+ "fieldset--on-base": this.variant === "base",
65
+ "fieldset--on-layer": this.variant === "layer",
66
+ "fieldset--horizontal": this.horizontal,
67
+ "fieldset--vertical": !this.horizontal
68
+ })}
69
+ aria-labelledby="legend"
70
+ >
71
+ <div id="legend" class="fieldset__legend">
72
+ <div class="fieldset__first-line">
73
+ <slot name="legend-title" class="fieldset__legend-title"
74
+ >${this.legendTitle}</slot
75
+ >
76
+ <slot name="tooltip" class="fieldset__tooltip"></slot>
77
+ </div>
78
+ <slot name="legend-subtitle" class="fieldset__legend-subtitle">
79
+ ${this.legendSubtitle}
80
+ </slot>
81
+ </div>
82
+
83
+ <div class="fieldset__content">
84
+ <slot @slotchange=${this.handleSlotChange}></slot>
85
+ </div>
86
+ </fieldset>
87
+ `;
88
+ }
89
+ };
90
+ DSAFieldset.styles = fieldset_styles_default;
91
+ __decorateClass([
92
+ query("slot:not([name])")
93
+ ], DSAFieldset.prototype, "defaultSlot", 2);
94
+ __decorateClass([
95
+ property({ attribute: "legend-title" })
96
+ ], DSAFieldset.prototype, "legendTitle", 2);
97
+ __decorateClass([
98
+ property({ attribute: "legend-subtitle" })
99
+ ], DSAFieldset.prototype, "legendSubtitle", 2);
100
+ __decorateClass([
101
+ property({ reflect: true })
102
+ ], DSAFieldset.prototype, "variant", 2);
103
+ __decorateClass([
104
+ property({ type: Boolean, reflect: true })
105
+ ], DSAFieldset.prototype, "disabled", 2);
106
+ __decorateClass([
107
+ property({ type: Boolean })
108
+ ], DSAFieldset.prototype, "horizontal", 2);
109
+ __decorateClass([
110
+ watch("disabled")
111
+ ], DSAFieldset.prototype, "handleDisabledChange", 1);
112
+ DSAFieldset = __decorateClass([
113
+ customElement("dsa-fieldset")
114
+ ], DSAFieldset);
115
+
116
+ export {
117
+ DSAFieldset
118
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.YWHYMKYI.js";
3
+ } from "./chunk.QADAWCTI.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.XZ5FE34T.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk.HGR7A5FK.js";
25
25
  import {
26
26
  LocalizeController
27
- } from "./chunk.YWHYMKYI.js";
27
+ } from "./chunk.QADAWCTI.js";
28
28
  import {
29
29
  watch
30
30
  } from "./chunk.NOMN6DGD.js";
@@ -0,0 +1,325 @@
1
+ import {
2
+ getOverridenIconDetails,
3
+ isInvalidAmountKey,
4
+ isPrefixIconOverriden,
5
+ numberToFrAmount,
6
+ parseFrAmount,
7
+ roundToStep
8
+ } from "./chunk.DXRDCCL4.js";
9
+ import {
10
+ InputBase
11
+ } from "./chunk.QFO2VDJ3.js";
12
+ import {
13
+ input_native_styles_default
14
+ } from "./chunk.ULPMZDTP.js";
15
+ import {
16
+ LocalizeController
17
+ } from "./chunk.QADAWCTI.js";
18
+ import {
19
+ ifDefinedAndNotEmpty
20
+ } from "./chunk.ZQJVCRB2.js";
21
+ import {
22
+ __decorateClass
23
+ } from "./chunk.S3NI7NKU.js";
24
+
25
+ // src/components/input-native/input-native.ts
26
+ import { html } from "lit";
27
+ import { customElement, query } from "lit/decorators.js";
28
+ import { classMap } from "lit/directives/class-map.js";
29
+ import { ifDefined } from "lit/directives/if-defined.js";
30
+ import { live } from "lit/directives/live.js";
31
+ import Big from "big.js";
32
+ var DSAInputNative = class extends InputBase {
33
+ constructor() {
34
+ super(...arguments);
35
+ this.localize = new LocalizeController(this);
36
+ }
37
+ /** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */
38
+ get valueAsNumber() {
39
+ var _a;
40
+ if (this.type === "amount") {
41
+ return parseFloat(this.value.replace(",", "."));
42
+ } else {
43
+ return (_a = this.input.valueAsNumber) != null ? _a : parseFloat(this.value);
44
+ }
45
+ }
46
+ set valueAsNumber(newValue) {
47
+ super.valueAsNumber = newValue;
48
+ }
49
+ handleChange() {
50
+ if (this.type === "amount") {
51
+ this.handleAmountChange();
52
+ this.value = this.input.value.replace(",", ".");
53
+ } else {
54
+ this.value = this.input.value;
55
+ }
56
+ this.emit("dsa-change");
57
+ }
58
+ handleAmountChange() {
59
+ if (this.input.value === "" || this.input.value === "-") {
60
+ this.input.value = "";
61
+ return;
62
+ }
63
+ const parsedValue = parseFrAmount(this.input.value);
64
+ const parsedMin = parseFloat(`${this.min}`);
65
+ const parsedMax = parseFloat(`${this.max}`);
66
+ this.input.value = numberToFrAmount(
67
+ roundToStep(parsedValue, this.getSafeStep())
68
+ );
69
+ if (!isNaN(parsedMin) && parsedValue < parsedMin) {
70
+ this.input.value = numberToFrAmount(this.min);
71
+ }
72
+ if (!isNaN(parsedMax) && parsedValue > parsedMax) {
73
+ this.input.value = numberToFrAmount(this.max);
74
+ }
75
+ }
76
+ handleInput() {
77
+ if (this.type === "amount") {
78
+ this.value = this.input.value.replace(",", ".");
79
+ } else {
80
+ this.value = this.input.value;
81
+ }
82
+ this.formControlController.updateValidity();
83
+ this.emit("dsa-input");
84
+ }
85
+ handleKeyDown(event) {
86
+ const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
87
+ if (this.type === "amount") {
88
+ this.handleAmountKeydown(event);
89
+ }
90
+ if (event.key === "Enter" && !hasModifier) {
91
+ setTimeout(() => {
92
+ if (!event.defaultPrevented && !event.isComposing) {
93
+ this.formControlController.submit();
94
+ }
95
+ });
96
+ }
97
+ }
98
+ handleAmountKeydown(event) {
99
+ if (event.key === "Dead") {
100
+ this.input.blur();
101
+ setTimeout(() => this.input.focus());
102
+ }
103
+ if (isInvalidAmountKey(event) || event.key === "-" && this.input.selectionStart !== null && this.input.selectionStart > 0 || event.key === "," && this.input.value.includes(",")) {
104
+ event.preventDefault();
105
+ return;
106
+ }
107
+ if (event.key === "ArrowDown") {
108
+ this.stepDown();
109
+ }
110
+ if (event.key === "ArrowUp") {
111
+ this.stepUp();
112
+ }
113
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
114
+ const inputEvent = new Event("input", { bubbles: true });
115
+ const changeEvent = new Event("change", { bubbles: true });
116
+ this.input.dispatchEvent(inputEvent);
117
+ this.input.dispatchEvent(changeEvent);
118
+ }
119
+ }
120
+ getSafeStep() {
121
+ if (this.step === "any") {
122
+ return this.step;
123
+ }
124
+ const parsedStep = parseFloat(`${this.step}`);
125
+ if (isNaN(parsedStep) || parsedStep === 0) {
126
+ return 1;
127
+ } else {
128
+ return parsedStep;
129
+ }
130
+ }
131
+ handlePasswordToggle() {
132
+ this.passwordVisible = !this.passwordVisible;
133
+ }
134
+ adjustAmountValue(direction) {
135
+ const safeStep = this.getSafeStep();
136
+ const numberStep = new Big(safeStep === "any" ? 1 : safeStep);
137
+ const parsedValue = new Big(parseFrAmount(this.input.value));
138
+ const newValue = direction === "up" ? parsedValue.plus(numberStep).toNumber() : parsedValue.minus(numberStep).toNumber();
139
+ this.input.value = numberToFrAmount(newValue);
140
+ this.value = this.input.value.replace(",", ".");
141
+ }
142
+ /** Increments the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
143
+ stepUp(stepNumber) {
144
+ switch (this.type) {
145
+ case "amount":
146
+ this.adjustAmountValue("up");
147
+ return;
148
+ default:
149
+ this.input.stepUp(stepNumber);
150
+ if (this.value !== this.input.value) {
151
+ this.value = this.input.value;
152
+ }
153
+ }
154
+ }
155
+ /** Decrements the value of a numeric or time input type by the value of the step attribute, multiplied by an optional number parameter. */
156
+ stepDown(stepNumber) {
157
+ switch (this.type) {
158
+ case "amount":
159
+ this.adjustAmountValue("down");
160
+ return;
161
+ default:
162
+ this.input.stepDown(stepNumber);
163
+ if (this.value !== this.input.value) {
164
+ this.value = this.input.value;
165
+ }
166
+ }
167
+ }
168
+ /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
169
+ checkValidity() {
170
+ if (this.type === "amount") {
171
+ return this.input.checkValidity() && this.checkAmountValidity();
172
+ }
173
+ return this.input.checkValidity();
174
+ }
175
+ /** Checks for validity and shows the browser's validation message if the control is invalid. */
176
+ reportValidity() {
177
+ if (this.type === "amount") {
178
+ return this.input.reportValidity() && this.checkAmountValidity();
179
+ }
180
+ return this.input.reportValidity();
181
+ }
182
+ checkAmountValidity() {
183
+ if (this.value === "") {
184
+ return true;
185
+ }
186
+ const parsedValue = parseFloat(this.value);
187
+ const parsedMin = parseFloat(`${this.min}`);
188
+ const parsedMax = parseFloat(`${this.max}`);
189
+ const safeStep = this.getSafeStep();
190
+ return !isNaN(parsedValue) && (isNaN(parsedMin) || parsedValue >= parsedMin) && (isNaN(parsedMax) || parsedValue <= parsedMax) && (safeStep === "any" || roundToStep(parsedValue, safeStep) === parsedValue);
191
+ }
192
+ renderInput() {
193
+ const hasLabelSlot = this.hasSlotController.test("label");
194
+ const overridenPrefixIcon = isPrefixIconOverriden(this.type) ? getOverridenIconDetails(this.type) : void 0;
195
+ const hasPrefixIcon = overridenPrefixIcon !== void 0 || this.hasSlotController.test("prefix");
196
+ const hasSuffixIcon = this.hasSlotController.test("suffix");
197
+ const hasLabel = this.label ? true : !!hasLabelSlot;
198
+ const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
199
+ const hasHideIcon = this.type === "password" && !this.disabled;
200
+ let nativeType;
201
+ if (this.type === "password" && this.passwordVisible || this.type === "amount") {
202
+ nativeType = "text";
203
+ } else {
204
+ nativeType = this.type;
205
+ }
206
+ return html`
207
+ <div
208
+ part="base"
209
+ class=${classMap({
210
+ input: true,
211
+ // Sizes
212
+ "input--small": this.size === "small",
213
+ "input--medium": this.size === "medium",
214
+ "input--large": this.size === "large",
215
+ // States
216
+ "input--error": this.error,
217
+ "input--on-layer": this.variant === "layer",
218
+ "input--on-base": this.variant === "base",
219
+ "input--disabled": this.disabled,
220
+ "input--readonly": this.readonly,
221
+ "input--focused": this.hasFocus,
222
+ "input--empty": !this.value,
223
+ "form-control--has-prefix-icon": hasPrefixIcon
224
+ })}
225
+ >
226
+ ${overridenPrefixIcon ? html`<dsa-icon
227
+ name=${overridenPrefixIcon.iconName}
228
+ class="input__prefix"
229
+ library="system"
230
+ ></dsa-icon>` : html` <slot
231
+ name="prefix"
232
+ part="prefix"
233
+ id="input__prefix"
234
+ class="input__prefix"
235
+ ></slot>`}
236
+
237
+ <input
238
+ part="input"
239
+ id="input"
240
+ class="input__control"
241
+ type=${nativeType}
242
+ title=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
243
+ name=${ifDefinedAndNotEmpty(this.name)}
244
+ ?disabled=${this.disabled}
245
+ ?readonly=${this.readonly}
246
+ ?required=${this.required}
247
+ placeholder=${ifDefined(this.placeholder)}
248
+ minlength=${ifDefined(this.minlength)}
249
+ maxlength=${ifDefined(this.maxlength)}
250
+ min=${ifDefined(this.min)}
251
+ max=${ifDefined(this.max)}
252
+ step=${ifDefined(this.step)}
253
+ .value=${live(
254
+ this.type === "amount" ? numberToFrAmount(this.value) : this.value
255
+ )}
256
+ autocapitalize=${ifDefined(this.autocapitalize)}
257
+ autocomplete=${ifDefined(this.autocomplete)}
258
+ autocorrect=${ifDefined(this.autocorrect)}
259
+ ?autofocus=${this.autofocus}
260
+ spellcheck=${this.spellcheck}
261
+ pattern=${ifDefined(this.pattern)}
262
+ enterkeyhint=${ifDefined(this.enterkeyhint)}
263
+ inputmode=${ifDefined(this.inputmode)}
264
+ aria-label=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
265
+ aria-describedby=${this.getDescriptionIds()}
266
+ aria-invalid=${ifDefined(this.error ? "true" : void 0)}
267
+ @change=${this.handleChange}
268
+ @input=${this.handleInput}
269
+ @invalid=${this.handleInvalid}
270
+ @keydown=${this.handleKeyDown}
271
+ @focus=${this.handleFocus}
272
+ @blur=${this.handleBlur}
273
+ />
274
+
275
+ ${hasSuffixIcon ? html`<slot
276
+ name="suffix"
277
+ id="input__suffix"
278
+ class="input__suffix"
279
+ ></slot>` : ""}
280
+ ${hasClearIcon ? html`
281
+ <dsa-icon-button
282
+ part="clear-button"
283
+ class="input__action-button"
284
+ name="clear"
285
+ label=${this.localize.term("clearEntry")}
286
+ @click=${this.handleClearClick}
287
+ library="system"
288
+ ></dsa-icon-button>
289
+ ` : ""}
290
+ ${hasHideIcon ? html`<dsa-icon-button
291
+ part="password-toggle-button"
292
+ class="input__action-button"
293
+ label=${this.localize.term(
294
+ this.passwordVisible ? "hidePassword" : "showPassword"
295
+ )}
296
+ name=${this.passwordVisible ? "visibility_off" : "visibility"}
297
+ @click=${this.handlePasswordToggle}
298
+ library="system"
299
+ ></dsa-icon-button>` : ""}
300
+ </div>
301
+ `;
302
+ }
303
+ renderCounter() {
304
+ const counterText = this.maxlength && this.counter ? `${this.value.length}/${this.maxlength}` : void 0;
305
+ return counterText !== void 0 ? html`<span
306
+ id="counter"
307
+ class=${classMap({
308
+ "form-control__counter": true,
309
+ "form-control__counter--animated": this.value.length === this.maxlength
310
+ })}
311
+ >${counterText}</span
312
+ >` : html``;
313
+ }
314
+ };
315
+ DSAInputNative.styles = input_native_styles_default;
316
+ __decorateClass([
317
+ query("input")
318
+ ], DSAInputNative.prototype, "input", 2);
319
+ DSAInputNative = __decorateClass([
320
+ customElement("dsa-input-native")
321
+ ], DSAInputNative);
322
+
323
+ export {
324
+ DSAInputNative
325
+ };
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.YIY5RM53.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.YWHYMKYI.js";
9
+ } from "./chunk.QADAWCTI.js";
10
10
  import {
11
11
  ShoelaceElement
12
12
  } from "./chunk.XZ5FE34T.js";
@@ -0,0 +1,62 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/card-nav-item/card-nav-item.styles.ts
6
+ import { css } from "lit";
7
+ var card_nav_item_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ :host {
11
+ display: block;
12
+ --card-nav-item-border-width: 1px;
13
+ --card-nav-item-padding: 0.75rem 0.5rem 0.75rem 1rem;
14
+ --card-nav-item-font: var(--dsa-font-medium-bold);
15
+ }
16
+
17
+ .card-nav-item {
18
+ display: block;
19
+ background: var(--dsa-wc-card-nav-background-color);
20
+ width: 100%;
21
+ border: unset;
22
+ cursor: pointer;
23
+ padding: 0;
24
+ text-decoration: none;
25
+ }
26
+ .card-nav-item:hover,
27
+ .card-nav-item:focus {
28
+ background: var(--dsa-wc-card-nav-background-color-hover);
29
+ }
30
+ .card-nav-item:focus-visible {
31
+ outline: var(--dsa-wc-focus-ring);
32
+ outline-offset: -1px;
33
+ }
34
+
35
+ .card-nav-item__body {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: space-between;
39
+ border-bottom: var(--card-nav-item-border-width) solid
40
+ var(--dsa-wc-card-nav-border-color);
41
+ color: var(--dsa-wc-card-nav-color);
42
+ padding: var(--card-nav-item-padding);
43
+ font: var(--card-nav-item-font);
44
+ height: 3.75rem;
45
+ text-align: start;
46
+ }
47
+ .card-nav-item:hover .card-nav-item__body,
48
+ .card-nav-item:focus .card-nav-item__body {
49
+ border-color: var(--dsa-wc-card-nav-border-color-hover);
50
+ }
51
+
52
+ .card-nav-item__icon {
53
+ flex-shrink: 0;
54
+ padding: var(--dsa-spacing-8);
55
+ width: 1.25rem;
56
+ height: 1.25rem;
57
+ }
58
+ `;
59
+
60
+ export {
61
+ card_nav_item_styles_default
62
+ };
@@ -0,0 +1,72 @@
1
+ import {
2
+ card_nav_styles_default
3
+ } from "./chunk.J4QE6NJC.js";
4
+ import {
5
+ HasSlotController
6
+ } from "./chunk.YIY5RM53.js";
7
+ import {
8
+ ifDefinedAndNotEmpty
9
+ } from "./chunk.ZQJVCRB2.js";
10
+ import {
11
+ ShoelaceElement
12
+ } from "./chunk.XZ5FE34T.js";
13
+ import {
14
+ __decorateClass
15
+ } from "./chunk.S3NI7NKU.js";
16
+
17
+ // src/components/card-nav/card-nav.ts
18
+ import { html } from "lit";
19
+ import { customElement } from "lit/decorators.js";
20
+ var DSACardNav = class extends ShoelaceElement {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.hasSlotController = new HasSlotController(
24
+ this,
25
+ "[default]",
26
+ "media",
27
+ "title-icon",
28
+ "title",
29
+ "subtitle"
30
+ );
31
+ }
32
+ render() {
33
+ return html`
34
+ <div part="base" class="card-nav">
35
+ <slot name="media" part="media" class="card-nav__media"></slot>
36
+ <div class="card-nav__title-block">
37
+ <slot
38
+ name="title-icon"
39
+ class=${ifDefinedAndNotEmpty(
40
+ this.hasSlotController.test("title-icon") ? "card-nav__title_icon" : void 0
41
+ )}
42
+ ></slot>
43
+ <div class="title-block-text">
44
+ <slot
45
+ name="title"
46
+ class=${ifDefinedAndNotEmpty(
47
+ this.hasSlotController.test("title") ? "title" : void 0
48
+ )}
49
+ ></slot>
50
+ <slot
51
+ name="subtitle"
52
+ class=${ifDefinedAndNotEmpty(
53
+ this.hasSlotController.test("subtitle") ? "subtitle" : void 0
54
+ )}
55
+ ></slot>
56
+ </div>
57
+ </div>
58
+ <div class="card-nav__content" role="list">
59
+ <slot></slot>
60
+ </div>
61
+ </div>
62
+ `;
63
+ }
64
+ };
65
+ DSACardNav.styles = card_nav_styles_default;
66
+ DSACardNav = __decorateClass([
67
+ customElement("dsa-card-nav")
68
+ ], DSACardNav);
69
+
70
+ export {
71
+ DSACardNav
72
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.3SMOVUNI.js";
4
4
  import {
5
5
  FilterBase
6
- } from "./chunk.MWWI3AU2.js";
6
+ } from "./chunk.4VHQEXSY.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.NOMN6DGD.js";
@@ -147,18 +147,24 @@ var DSACheckboxGroup = class extends ShoelaceElement {
147
147
  }
148
148
  }
149
149
  handleSlotChange() {
150
- const allCheckboxes = this.getAllCheckboxes();
151
- allCheckboxes.forEach((checkbox) => {
152
- checkbox.checked = this.value.includes(checkbox.value);
153
- checkbox.parentDisabled = this.disabled;
154
- checkbox.parentReadonly = this.readonly;
155
- });
156
- this.hasCheckboxButtons = allCheckboxes.some(
157
- (checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-button"
158
- );
159
- this.hasCheckboxCards = allCheckboxes.some(
160
- (checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-card"
161
- );
150
+ if (customElements.get("dsa-checkbox") || customElements.get("dsa-checkbox-button") || customElements.get("dsa-checkbox-card")) {
151
+ const allCheckboxes = this.getAllCheckboxes();
152
+ allCheckboxes.forEach((checkbox) => {
153
+ checkbox.checked = this.value.includes(checkbox.value);
154
+ checkbox.parentDisabled = this.disabled;
155
+ checkbox.parentReadonly = this.readonly;
156
+ });
157
+ this.hasCheckboxButtons = allCheckboxes.some(
158
+ (checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-button"
159
+ );
160
+ this.hasCheckboxCards = allCheckboxes.some(
161
+ (checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-card"
162
+ );
163
+ } else {
164
+ customElements.whenDefined("dsa-checkbox").then(() => this.handleSlotChange());
165
+ customElements.whenDefined("dsa-checkbox-button").then(() => this.handleSlotChange());
166
+ customElements.whenDefined("dsa-checkbox-card").then(() => this.handleSlotChange());
167
+ }
162
168
  }
163
169
  handleInvalid(event) {
164
170
  this.formControlController.setValidity(false);