@ds-autonomie/web-components 2.17.0 → 2.19.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 (548) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/cdn/chunks/chunk.2EC2JS5U.js +60 -0
  3. package/cdn/chunks/{chunk.3G5TZAEL.js → chunk.2J6VNJAV.js} +2 -2
  4. package/cdn/chunks/chunk.2JTZGBMF.js +1 -0
  5. package/cdn/chunks/chunk.3D5VBTZM.js +6 -0
  6. package/cdn/chunks/chunk.3FMDB6AF.js +19 -0
  7. package/cdn/chunks/{chunk.SPZ3HJLD.js → chunk.3FYOZ6BI.js} +5 -5
  8. package/cdn/chunks/chunk.3URUFDPU.js +44 -0
  9. package/cdn/chunks/chunk.4A2SP2JA.js +68 -0
  10. package/cdn/chunks/{chunk.2RZZILUX.js → chunk.4IWXGSUM.js} +7 -7
  11. package/cdn/chunks/chunk.4NE2V6DW.js +9 -0
  12. package/cdn/chunks/chunk.4VP4RPNY.js +25 -0
  13. package/cdn/chunks/{chunk.QLA42ORC.js → chunk.535I3ZDX.js} +6 -6
  14. package/cdn/chunks/{chunk.ZPW2DSUP.js → chunk.5KCVCUSX.js} +1 -1
  15. package/cdn/chunks/{chunk.L7SDBPGB.js → chunk.5MXBS7CA.js} +1 -1
  16. package/cdn/chunks/chunk.5OGTGPR7.js +1 -0
  17. package/cdn/chunks/{chunk.S5TQGB4V.js → chunk.5PWPU25F.js} +1 -1
  18. package/cdn/chunks/{chunk.W25NCUPA.js → chunk.5V6ZBY2X.js} +7 -8
  19. package/cdn/chunks/{chunk.VE5CSYN4.js → chunk.67UP3FZD.js} +1 -1
  20. package/cdn/chunks/chunk.6HXGZFOB.js +68 -0
  21. package/cdn/chunks/{chunk.F5LRDLVV.js → chunk.77YRGKFQ.js} +1 -1
  22. package/cdn/chunks/{chunk.VO4NFG2W.js → chunk.7OMTHUFI.js} +1 -1
  23. package/cdn/chunks/{chunk.FHS54ZO7.js → chunk.7RWZ2YNR.js} +1 -1
  24. package/cdn/chunks/{chunk.N7EFYGZ6.js → chunk.7TKKYYU2.js} +13 -13
  25. package/cdn/chunks/{chunk.LFI7CMVX.js → chunk.7WZQFRLE.js} +1 -1
  26. package/cdn/chunks/chunk.7YNQVYS2.js +13 -0
  27. package/cdn/chunks/{chunk.D5S2YDML.js → chunk.7ZYAJWHQ.js} +1 -1
  28. package/cdn/chunks/{chunk.YXR5X3ZH.js → chunk.AB4OF3RS.js} +1 -1
  29. package/cdn/chunks/{chunk.CJZS4FSB.js → chunk.AGA6W4U2.js} +1 -1
  30. package/cdn/chunks/chunk.AGX2JVB6.js +1 -0
  31. package/cdn/chunks/{chunk.LSD5NIU2.js → chunk.AYT5ORA7.js} +1 -1
  32. package/cdn/chunks/{chunk.2MLSQPMY.js → chunk.AZVWRRFP.js} +1 -1
  33. package/cdn/chunks/{chunk.465G6RHI.js → chunk.BDRT5OOU.js} +1 -1
  34. package/cdn/chunks/{chunk.OTTGEQF6.js → chunk.BOCMAV5D.js} +1 -1
  35. package/cdn/chunks/{chunk.M2JVAL5G.js → chunk.BRP4WPSN.js} +5 -5
  36. package/cdn/chunks/{chunk.2S76L6WY.js → chunk.BXY7ZIT5.js} +5 -5
  37. package/cdn/chunks/{chunk.2DV64XU7.js → chunk.CCKFL63L.js} +1 -1
  38. package/cdn/chunks/{chunk.4HSGYXFW.js → chunk.CLIKZB5P.js} +8 -14
  39. package/cdn/chunks/chunk.CMPRHBFO.js +1 -0
  40. package/cdn/chunks/{chunk.QSJXNN7N.js → chunk.COMV5MJ5.js} +1 -1
  41. package/cdn/chunks/chunk.CWHPCCQQ.js +33 -0
  42. package/cdn/chunks/{chunk.LA5W25UC.js → chunk.CWT6MEMU.js} +1 -1
  43. package/cdn/chunks/{chunk.ILCY7FNR.js → chunk.DFIOQK4K.js} +1 -1
  44. package/cdn/chunks/chunk.DR6FOTG4.js +1 -0
  45. package/cdn/chunks/{chunk.A45JZ63N.js → chunk.DRNNBI43.js} +1 -1
  46. package/cdn/chunks/{chunk.V3N4CMN7.js → chunk.DY5MCIEV.js} +3 -3
  47. package/cdn/chunks/chunk.E2BYQFB7.js +11 -0
  48. package/cdn/chunks/{chunk.PZ6VFJYI.js → chunk.EAWHOXCM.js} +1 -1
  49. package/cdn/chunks/{chunk.ZPQE4HH4.js → chunk.EJ5DXQU3.js} +1 -9
  50. package/cdn/chunks/chunk.EZQSKUPG.js +20 -0
  51. package/cdn/chunks/{chunk.3HXQ2XPS.js → chunk.F4EQPWW4.js} +4 -4
  52. package/cdn/chunks/{chunk.A6MZKELV.js → chunk.F6YFQ3GB.js} +1 -2
  53. package/cdn/chunks/{chunk.MWGVWSH3.js → chunk.GDNVDKSZ.js} +2 -2
  54. package/cdn/chunks/chunk.GPW6JCHZ.js +13 -0
  55. package/cdn/chunks/{chunk.VE2TTZQA.js → chunk.GQ75QMJG.js} +12 -4
  56. package/cdn/chunks/{chunk.KC2NESXB.js → chunk.GVL377SN.js} +1 -1
  57. package/cdn/chunks/{chunk.JO6IBXF3.js → chunk.H6KRGKOT.js} +1 -1
  58. package/cdn/chunks/chunk.H7CICKO6.js +173 -0
  59. package/cdn/chunks/chunk.HEWKH2LT.js +44 -0
  60. package/cdn/chunks/{chunk.ZFWCNYR2.js → chunk.HGNNGE53.js} +1 -1
  61. package/cdn/chunks/chunk.HLG5HGVW.js +11 -0
  62. package/cdn/chunks/{chunk.2LF6OMUV.js → chunk.HW5UT2FF.js} +15 -15
  63. package/cdn/chunks/{chunk.NIH3WB32.js → chunk.IDTMD6WQ.js} +1 -1
  64. package/cdn/chunks/{chunk.GYURCDPD.js → chunk.IMDJ7GD2.js} +1 -1
  65. package/cdn/chunks/{chunk.3FHGJRJ3.js → chunk.IMVLXBHS.js} +9 -10
  66. package/cdn/chunks/{chunk.YRJIHG6T.js → chunk.IUOHXTHC.js} +1 -1
  67. package/cdn/chunks/{chunk.SLTCOGOD.js → chunk.IYPKQQOD.js} +1 -1
  68. package/cdn/chunks/chunk.J7MFL7JZ.js +11 -0
  69. package/cdn/chunks/{chunk.GEV6DKVB.js → chunk.JFLIH5L5.js} +2 -22
  70. package/cdn/chunks/{chunk.NEWNV55I.js → chunk.JFT7O46L.js} +1 -1
  71. package/cdn/chunks/chunk.JLB52ESL.js +130 -0
  72. package/cdn/chunks/chunk.KOU7YZ7Z.js +32 -0
  73. package/cdn/chunks/{chunk.3LUZLW6F.js → chunk.KSJJM4LY.js} +3 -3
  74. package/cdn/chunks/{chunk.YZK4IVQW.js → chunk.KTJAW66F.js} +1 -1
  75. package/cdn/chunks/{chunk.IKPDLLWM.js → chunk.KVPC6DC4.js} +1 -1
  76. package/cdn/chunks/{chunk.GHHMVWM2.js → chunk.KWBL3MII.js} +4 -4
  77. package/cdn/chunks/{chunk.YRQ4GUXM.js → chunk.KX5QV54N.js} +1 -1
  78. package/cdn/chunks/{chunk.GM4KTNXL.js → chunk.LBAIMDY3.js} +1 -1
  79. package/cdn/chunks/chunk.M7BLJVGV.js +28 -0
  80. package/cdn/chunks/chunk.MC7ZQO6Z.js +1 -0
  81. package/cdn/chunks/chunk.MN7GWB3J.js +66 -0
  82. package/cdn/chunks/{chunk.F3UE7567.js → chunk.MRVUEYXZ.js} +1 -1
  83. package/cdn/chunks/{chunk.LLKFUARE.js → chunk.OFITABL5.js} +10 -10
  84. package/cdn/chunks/{chunk.X4UXKXMO.js → chunk.PVV7WADS.js} +6 -6
  85. package/cdn/chunks/chunk.QEODND2O.js +8 -0
  86. package/cdn/chunks/chunk.QOIUR37X.js +1 -0
  87. package/cdn/chunks/chunk.QTD6NQFL.js +1 -0
  88. package/cdn/chunks/{chunk.FEXCFMDC.js → chunk.RMI7CBAO.js} +5 -5
  89. package/cdn/chunks/{chunk.AAEIE3M2.js → chunk.RNR6P3VA.js} +3 -4
  90. package/cdn/chunks/{chunk.QQLTDM2A.js → chunk.RTVNV4IL.js} +1 -1
  91. package/cdn/chunks/{chunk.ZKV4BJLY.js → chunk.S4UDOENW.js} +3 -3
  92. package/cdn/chunks/{chunk.UAGWSEWC.js → chunk.STCKZYIM.js} +6 -6
  93. package/cdn/chunks/chunk.THWI644G.js +54 -0
  94. package/cdn/chunks/{chunk.23NGYECZ.js → chunk.TPKY6SO3.js} +1 -1
  95. package/cdn/chunks/chunk.U6OE2WNY.js +51 -0
  96. package/cdn/chunks/{chunk.J5EBYKBM.js → chunk.UXV7IG5J.js} +1 -1
  97. package/cdn/chunks/{chunk.NE525Q3J.js → chunk.VMY3LI3D.js} +8 -8
  98. package/cdn/chunks/{chunk.PSXSWQCS.js → chunk.VOJKFSPN.js} +1 -1
  99. package/cdn/chunks/{chunk.H5XLHNHE.js → chunk.VVOUCVXZ.js} +1 -1
  100. package/cdn/chunks/{chunk.UWBADC7U.js → chunk.WMOV27WV.js} +5 -2
  101. package/cdn/chunks/chunk.WQIMDJJX.js +101 -0
  102. package/cdn/chunks/{chunk.OTNGFYHL.js → chunk.WWRGGVFZ.js} +1 -1
  103. package/cdn/chunks/{chunk.HO6LFH7Z.js → chunk.WXQKHJC3.js} +1 -1
  104. package/cdn/chunks/chunk.YBVIKP5F.js +41 -0
  105. package/cdn/chunks/chunk.YDZQVGSP.js +47 -0
  106. package/cdn/chunks/{chunk.D3BOAL4N.js → chunk.YWOAIOEZ.js} +1 -1
  107. package/cdn/chunks/chunk.YZO4H6DD.js +57 -0
  108. package/cdn/chunks/chunk.Z226LHQY.js +64 -0
  109. package/cdn/chunks/{chunk.2QOKOUSD.js → chunk.ZMEW7RFS.js} +1 -1
  110. package/cdn/components/accordion/accordion.js +1 -1
  111. package/cdn/components/accordion-group/accordion-group.js +1 -1
  112. package/cdn/components/alert/alert.js +1 -1
  113. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  114. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  115. package/cdn/components/button/button.js +1 -1
  116. package/cdn/components/calendar/calendar.js +1 -1
  117. package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
  118. package/cdn/components/checkbox/checkbox.js +1 -1
  119. package/cdn/components/checkbox/checkbox.styles.js +1 -1
  120. package/cdn/components/checkbox-button/checkbox-button.js +1 -1
  121. package/cdn/components/checkbox-card/checkbox-card.js +1 -1
  122. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  123. package/cdn/components/combobox/combobox.js +1 -1
  124. package/cdn/components/combobox/combobox.styles.js +1 -1
  125. package/cdn/components/copy-button/copy-button.js +1 -1
  126. package/cdn/components/dialog/dialog.js +1 -1
  127. package/cdn/components/drawer/drawer.js +1 -1
  128. package/cdn/components/dropdown/dropdown.js +1 -1
  129. package/cdn/components/error-message-panel/error-message-panel.js +1 -1
  130. package/cdn/components/file-upload/file-upload.js +1 -1
  131. package/cdn/components/filter-button/filter-button.js +1 -1
  132. package/cdn/components/filter-counter/filter-counter.js +1 -1
  133. package/cdn/components/filter-date/filter-date.js +1 -1
  134. package/cdn/components/filter-range/filter-range.js +1 -1
  135. package/cdn/components/filter-select/filter-select.js +1 -1
  136. package/cdn/components/footer/footer.js +1 -1
  137. package/cdn/components/format-bytes/format-bytes.js +1 -1
  138. package/cdn/components/format-date/format-date.js +1 -1
  139. package/cdn/components/format-number/format-number.js +1 -1
  140. package/cdn/components/header/header.d.ts +1 -0
  141. package/cdn/components/header/header.js +1 -1
  142. package/cdn/components/header-external-link/header-external-link.js +1 -1
  143. package/cdn/components/header-modern/header-modern.d.ts +1 -0
  144. package/cdn/components/header-modern/header-modern.js +1 -1
  145. package/cdn/components/header-search/header-search.d.ts +2 -0
  146. package/cdn/components/header-search/header-search.js +1 -1
  147. package/cdn/components/input/input.js +1 -1
  148. package/cdn/components/input-amount/input-amount.js +1 -1
  149. package/cdn/components/input-date/input-date.d.ts +3 -0
  150. package/cdn/components/input-date/input-date.js +1 -1
  151. package/cdn/components/input-mask/input-mask.js +1 -1
  152. package/cdn/components/input-native/input-native.js +1 -1
  153. package/cdn/components/input-phone/input-phone.js +1 -1
  154. package/cdn/components/input-time/input-time.js +1 -1
  155. package/cdn/components/menu-accordion/menu-accordion.js +1 -1
  156. package/cdn/components/menu-item/menu-item.js +1 -1
  157. package/cdn/components/menu-navigation/menu-navigation.d.ts +0 -4
  158. package/cdn/components/menu-navigation/menu-navigation.js +1 -1
  159. package/cdn/components/navbar/navbar.d.ts +0 -4
  160. package/cdn/components/navbar/navbar.js +1 -1
  161. package/cdn/components/navbar-link/navbar-link.js +1 -1
  162. package/cdn/components/navbar-menu/navbar-menu.js +1 -1
  163. package/cdn/components/option/option.d.ts +2 -0
  164. package/cdn/components/option/option.js +1 -1
  165. package/cdn/components/option/option.styles.js +1 -1
  166. package/cdn/components/pagination/pagination.js +1 -1
  167. package/cdn/components/profile-button/profile-button.js +1 -1
  168. package/cdn/components/progress-bar/progress-bar.js +1 -1
  169. package/cdn/components/radio/radio.js +1 -1
  170. package/cdn/components/radio/radio.styles.js +1 -1
  171. package/cdn/components/radio-button/radio-button.js +1 -1
  172. package/cdn/components/radio-card/radio-card.js +1 -1
  173. package/cdn/components/radio-group/radio-group.js +1 -1
  174. package/cdn/components/relative-time/relative-time.js +1 -1
  175. package/cdn/components/search/search.js +1 -1
  176. package/cdn/components/search/search.styles.js +1 -1
  177. package/cdn/components/select/select.d.ts +3 -1
  178. package/cdn/components/select/select.js +1 -1
  179. package/cdn/components/select/select.styles.js +1 -1
  180. package/cdn/components/sidenav/sidenav.d.ts +4 -1
  181. package/cdn/components/sidenav/sidenav.js +1 -1
  182. package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
  183. package/cdn/components/skip-link-item/skip-link-item.js +1 -1
  184. package/cdn/components/skip-links/skip-links.js +1 -1
  185. package/cdn/components/spinner/spinner.js +1 -1
  186. package/cdn/components/split-panel/split-panel.js +1 -1
  187. package/cdn/components/step/step.js +1 -1
  188. package/cdn/components/step/step.styles.js +1 -1
  189. package/cdn/components/stepper/stepper.d.ts +4 -1
  190. package/cdn/components/stepper/stepper.js +1 -1
  191. package/cdn/components/switch/switch.js +1 -1
  192. package/cdn/components/switch/switch.styles.js +1 -1
  193. package/cdn/components/tab/tab.d.ts +3 -0
  194. package/cdn/components/tab/tab.js +1 -1
  195. package/cdn/components/tab/tab.styles.js +1 -1
  196. package/cdn/components/tab-group/tab-group.d.ts +1 -0
  197. package/cdn/components/tab-group/tab-group.js +1 -1
  198. package/cdn/components/tab-group/tab-group.styles.js +1 -1
  199. package/cdn/components/tab-panel/tab-panel.js +1 -1
  200. package/cdn/components/table/table.d.ts +29 -0
  201. package/cdn/components/table/table.js +1 -1
  202. package/cdn/components/table-action/table-action.js +1 -1
  203. package/cdn/components/table-action/table-action.styles.js +1 -1
  204. package/cdn/components/table-body/table-body.js +1 -1
  205. package/cdn/components/table-caption/table-caption.js +1 -1
  206. package/cdn/components/table-caption/table-caption.styles.js +1 -1
  207. package/cdn/components/table-container/table-container.d.ts +2 -0
  208. package/cdn/components/table-container/table-container.js +1 -1
  209. package/cdn/components/table-container/table-container.styles.js +1 -1
  210. package/cdn/components/table-expanded-row/table-expanded-row.d.ts +1 -1
  211. package/cdn/components/table-head/table-head.js +1 -1
  212. package/cdn/components/table-header-cell/table-header-cell.js +1 -1
  213. package/cdn/components/table-header-cell/table-header-cell.styles.js +1 -1
  214. package/cdn/components/table-header-row/table-header-row.d.ts +2 -0
  215. package/cdn/components/table-header-row/table-header-row.js +1 -1
  216. package/cdn/components/table-header-row/table-header-row.styles.js +1 -1
  217. package/cdn/components/table-of-contents/table-of-contents.d.ts +4 -5
  218. package/cdn/components/table-of-contents/table-of-contents.js +1 -1
  219. package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
  220. package/cdn/components/table-row/table-row-base.styles.d.ts +2 -0
  221. package/cdn/components/table-row/table-row-base.styles.js +1 -0
  222. package/cdn/components/table-row/table-row.d.ts +22 -0
  223. package/cdn/components/table-row/table-row.js +1 -1
  224. package/cdn/components/table-row/table-row.styles.js +1 -1
  225. package/cdn/components/table-toolbar/table-toolbar.js +1 -1
  226. package/cdn/components/table-toolbar/table-toolbar.styles.js +1 -1
  227. package/cdn/components/tag/tag.js +1 -1
  228. package/cdn/components/tooltip/tooltip.js +1 -1
  229. package/cdn/components/tree/tree.d.ts +4 -4
  230. package/cdn/components/tree/tree.js +1 -1
  231. package/cdn/components/tree-item/tree-item.js +1 -1
  232. package/cdn/components/tree-item/tree-item.styles.js +1 -1
  233. package/cdn/custom-elements.json +1058 -122
  234. package/cdn/design-system.js +1 -1
  235. package/cdn/events/dsa-table-row-reordered.d.ts +14 -0
  236. package/cdn/events/dsa-table-row-reordered.js +1 -0
  237. package/cdn/events/events.d.ts +1 -0
  238. package/cdn/internal/components/date-field/date-field.styles.js +2 -2
  239. package/cdn/internal/components/form-selectable-card/form-selectable-card.js +3 -2
  240. package/cdn/internal/components/form-selectable-card/form-selectable-card.styles.js +4 -4
  241. package/cdn/internal/components/form-toggle-button/form-toggle-button.js +3 -2
  242. package/cdn/internal/components/form-toggle-button/form-toggle-button.styles.js +2 -2
  243. package/cdn/themes/dsa-wc-theme.css +20 -45
  244. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  245. package/cdn/themes/dsa-wc-theme.styles.js +20 -46
  246. package/cdn/translations/en-gb.js +1 -1
  247. package/cdn/translations/en.js +1 -1
  248. package/cdn/translations/fr.js +1 -1
  249. package/cdn/utilities/helpers.d.ts +2 -0
  250. package/cdn/utilities/helpers.js +1 -1
  251. package/cdn/utilities/localize.d.ts +2 -0
  252. package/cdn/utilities/localize.js +1 -1
  253. package/cdn/utilities/storybook.js +1 -1
  254. package/cdn/vscode.html-custom-data.json +60 -10
  255. package/cdn/web-types.json +537 -49
  256. package/dist/chunks/{chunk.TNZEC73D.js → chunk.2AMILV3O.js} +1 -1
  257. package/dist/chunks/{chunk.TZZRAR42.js → chunk.2GJ46J7Q.js} +1 -1
  258. package/dist/chunks/{chunk.C6UENJ2Y.js → chunk.2WW7OJZT.js} +1 -1
  259. package/dist/chunks/{chunk.3W6ROVW2.js → chunk.33P7XYHC.js} +32 -4
  260. package/dist/chunks/{chunk.WHHYA5VY.js → chunk.34HS7ICN.js} +4 -0
  261. package/dist/chunks/{chunk.SLXERY4H.js → chunk.4535HZ7L.js} +8 -4
  262. package/dist/chunks/{chunk.MGW4E3VW.js → chunk.47AQXN3U.js} +2 -2
  263. package/dist/chunks/{chunk.EXHYWKQB.js → chunk.4E2FKC3C.js} +1 -1
  264. package/dist/chunks/{chunk.MPV4OPIK.js → chunk.4K6WZ7K7.js} +9 -3
  265. package/dist/chunks/{chunk.2VZ4MMR5.js → chunk.4NY2E4AU.js} +14 -5
  266. package/dist/chunks/{chunk.X6SEIMM4.js → chunk.4VSGAJJL.js} +2 -2
  267. package/dist/chunks/{chunk.ANV74452.js → chunk.5R7OHVIP.js} +3 -3
  268. package/dist/chunks/{chunk.NMU6DWUH.js → chunk.5SH25FOL.js} +27 -6
  269. package/dist/chunks/{chunk.EXGB2DIR.js → chunk.5TBGCNJD.js} +46 -25
  270. package/dist/chunks/{chunk.TRVKPMDO.js → chunk.6BCJJGLC.js} +1 -1
  271. package/dist/chunks/{chunk.OKTHM7J2.js → chunk.6RXEQKWZ.js} +15 -45
  272. package/dist/chunks/{chunk.P2KNRWE5.js → chunk.72FKNFBS.js} +1 -1
  273. package/dist/chunks/{chunk.FF67XKLP.js → chunk.75USPA7U.js} +26 -18
  274. package/dist/chunks/{chunk.V5GAH4HU.js → chunk.7BBNETYY.js} +3 -3
  275. package/dist/chunks/{chunk.AFSUKPIV.js → chunk.7MY3WW7C.js} +5 -3
  276. package/dist/chunks/{chunk.BTEEMPDS.js → chunk.A42VA6HE.js} +8 -4
  277. package/dist/chunks/{chunk.73XRFTV7.js → chunk.B3QEXOQE.js} +2 -1
  278. package/dist/chunks/{chunk.ANOLAL4B.js → chunk.BUGXYS34.js} +1 -1
  279. package/dist/chunks/chunk.D5YUY5BG.js +608 -0
  280. package/dist/chunks/{chunk.5A6XLOZY.js → chunk.DN3K2GHZ.js} +1 -1
  281. package/dist/chunks/{chunk.SN5JW345.js → chunk.E6D32GY2.js} +20 -8
  282. package/dist/chunks/{chunk.TP5XEQ2O.js → chunk.ELOLGOFM.js} +1 -1
  283. package/dist/chunks/{chunk.M5X6QE4H.js → chunk.ERMNNF77.js} +1 -1
  284. package/dist/chunks/{chunk.ORFYYGB2.js → chunk.FBY2IM6R.js} +3 -3
  285. package/dist/chunks/{chunk.N2SYQR7M.js → chunk.FLI47BNN.js} +1 -1
  286. package/dist/chunks/{chunk.3WHBR6ML.js → chunk.FLRNIL37.js} +1 -1
  287. package/dist/chunks/chunk.FOZRSNGL.js +111 -0
  288. package/dist/chunks/{chunk.OAJEHJJO.js → chunk.FZFK3D6L.js} +1 -1
  289. package/dist/chunks/{chunk.CABJDFOO.js → chunk.GMHRN23H.js} +6 -6
  290. package/dist/chunks/{chunk.ZBTNV3E7.js → chunk.GSSDOCVR.js} +42 -14
  291. package/dist/chunks/{chunk.LQAWGV5K.js → chunk.GTO6NACR.js} +1 -1
  292. package/dist/chunks/{chunk.WRFA56CD.js → chunk.H26XMOUA.js} +1 -1
  293. package/dist/chunks/{chunk.LPQTWKYW.js → chunk.HKP752UH.js} +2 -1
  294. package/dist/chunks/{chunk.3RFVW3FP.js → chunk.HRZVG552.js} +2 -2
  295. package/dist/chunks/{chunk.PEWNJNAP.js → chunk.HYAC2WLH.js} +1 -1
  296. package/dist/chunks/{chunk.5FNJFIAP.js → chunk.IDBAIF3R.js} +8 -8
  297. package/dist/chunks/{chunk.DT6Y5ZUB.js → chunk.IMZ2EJ3J.js} +2 -2
  298. package/dist/chunks/{chunk.VA2ASBUR.js → chunk.JATRBE3H.js} +7 -7
  299. package/dist/chunks/{chunk.XGZ4IJ57.js → chunk.JTPMSU67.js} +51 -33
  300. package/dist/chunks/{chunk.JUOYMIGK.js → chunk.KD27MP6C.js} +5 -2
  301. package/dist/chunks/{chunk.5NUD3TZO.js → chunk.KD5YM72X.js} +12 -4
  302. package/dist/chunks/{chunk.A6WS4GML.js → chunk.KPVDLRVV.js} +2 -2
  303. package/dist/chunks/{chunk.QOW4B54V.js → chunk.KW762SFE.js} +8 -19
  304. package/dist/chunks/chunk.LH65ZIEN.js +412 -0
  305. package/dist/chunks/{chunk.7NJP4D2X.js → chunk.LLOSO7FC.js} +5 -5
  306. package/dist/chunks/{chunk.ZJEACN47.js → chunk.LT44CVRV.js} +1 -1
  307. package/dist/chunks/{chunk.6K3AZQXP.js → chunk.LYVWDO7O.js} +1 -1
  308. package/dist/chunks/{chunk.6JFNUOJL.js → chunk.M47KXEXM.js} +1 -1
  309. package/dist/chunks/{chunk.MXQ5RSBS.js → chunk.MDQDWJCR.js} +1 -2
  310. package/dist/chunks/{chunk.QBVIZ55Q.js → chunk.POR4SJ2I.js} +5 -5
  311. package/dist/chunks/{chunk.PGXKP7ME.js → chunk.PSWGNIVT.js} +18 -6
  312. package/dist/chunks/{chunk.FLRB45SF.js → chunk.PSYTLBRK.js} +12 -0
  313. package/dist/chunks/{chunk.2LWUWDHO.js → chunk.Q3SL7AWD.js} +3 -3
  314. package/dist/chunks/{chunk.AECIJYFZ.js → chunk.Q4BEX42U.js} +49 -33
  315. package/dist/chunks/{chunk.HPAWBSR5.js → chunk.Q7YCE4UA.js} +1 -1
  316. package/dist/chunks/{chunk.ABJLUGLR.js → chunk.QKUUHXNR.js} +65 -25
  317. package/dist/chunks/{chunk.VBUVNNMA.js → chunk.QUEYKUIS.js} +4 -4
  318. package/dist/chunks/{chunk.XJCHW2GZ.js → chunk.RG7MUNLM.js} +27 -17
  319. package/dist/chunks/{chunk.6NRREKDF.js → chunk.RK2WN36C.js} +1 -1
  320. package/dist/chunks/{chunk.ZZ67C4V2.js → chunk.RZRBWZ7K.js} +14 -5
  321. package/dist/chunks/{chunk.QZC7F7NX.js → chunk.SAKI57GG.js} +2 -2
  322. package/dist/chunks/{chunk.H7L4YNKB.js → chunk.SAQFLKP7.js} +40 -16
  323. package/dist/chunks/{chunk.UKH2D4DL.js → chunk.SGPAUD26.js} +32 -14
  324. package/dist/chunks/{chunk.7WQZIM7N.js → chunk.SGRSRDWP.js} +17 -9
  325. package/dist/chunks/{chunk.57DTA5ZP.js → chunk.SP2SVH7K.js} +3 -3
  326. package/dist/chunks/{chunk.UNDVQ2N3.js → chunk.SXFVCR7O.js} +2 -2
  327. package/dist/chunks/{chunk.2O3KAV2X.js → chunk.T6OAGTAP.js} +2 -2
  328. package/dist/chunks/{chunk.BO3GUSFS.js → chunk.TCW77JY3.js} +1 -1
  329. package/dist/chunks/{chunk.IAJLX5AF.js → chunk.TPO64PVN.js} +11 -5
  330. package/dist/chunks/{chunk.XDW2FM6B.js → chunk.TURUUPFG.js} +3 -3
  331. package/dist/chunks/{chunk.ZQ56PQ6F.js → chunk.U4W57NV6.js} +6 -3
  332. package/dist/chunks/{chunk.DMSUKPJE.js → chunk.UESIZCBP.js} +1 -1
  333. package/dist/chunks/{chunk.LZOGVU7B.js → chunk.UQ7ZIOBO.js} +1 -1
  334. package/dist/chunks/{chunk.SGKW2DOH.js → chunk.UXJPFBV5.js} +3 -3
  335. package/dist/chunks/{chunk.2K5QPKBA.js → chunk.V26NK6TM.js} +5 -4
  336. package/dist/chunks/{chunk.APWZSSG6.js → chunk.V2HQ7IVJ.js} +1 -1
  337. package/dist/chunks/{chunk.VHSA53PH.js → chunk.V3LWOWUB.js} +1 -1
  338. package/dist/chunks/{chunk.WDPZ4NSH.js → chunk.V4SDZV6L.js} +1 -1
  339. package/dist/chunks/{chunk.DC6KKJOX.js → chunk.VJMPU2K5.js} +65 -33
  340. package/dist/chunks/{chunk.HFTU6LUQ.js → chunk.VNGKMC5T.js} +1 -1
  341. package/dist/chunks/chunk.VO73SGIU.js +23 -0
  342. package/dist/chunks/{chunk.FQZVV2TO.js → chunk.VOKBXFKF.js} +8 -4
  343. package/dist/chunks/{chunk.2SQ6UBOQ.js → chunk.VPBDM3F2.js} +11 -4
  344. package/dist/chunks/{chunk.LZPAAWTZ.js → chunk.VPZ2H23V.js} +0 -20
  345. package/dist/chunks/{chunk.MXDGKTTH.js → chunk.VYX5ZSFI.js} +5 -5
  346. package/dist/chunks/{chunk.ACM36IFE.js → chunk.WAEFCPAX.js} +6 -6
  347. package/dist/chunks/{chunk.UHSLPBTG.js → chunk.WEPA3NJG.js} +1 -1
  348. package/dist/chunks/{chunk.JEWVIFAO.js → chunk.WJU4UHF5.js} +4 -1
  349. package/dist/chunks/{chunk.UEVTKGMG.js → chunk.WO56WJXU.js} +1 -9
  350. package/dist/chunks/{chunk.O3SPGNIU.js → chunk.WSQ2ZYD4.js} +9 -5
  351. package/dist/chunks/{chunk.LAPA4KOO.js → chunk.WYLT5ZNJ.js} +2 -2
  352. package/dist/chunks/{chunk.4NZ25HB6.js → chunk.XAYOMJ4X.js} +27 -17
  353. package/dist/chunks/{chunk.SOF3BQCV.js → chunk.XMBQRPGX.js} +10 -6
  354. package/dist/chunks/{chunk.YC2VYNCD.js → chunk.XTVVSORU.js} +1 -1
  355. package/dist/chunks/{chunk.6RDA3XLH.js → chunk.YF2V46J3.js} +9 -10
  356. package/dist/chunks/{chunk.HHVXZJUU.js → chunk.YI6BUIUL.js} +35 -4
  357. package/dist/chunks/{chunk.OW6RUTZA.js → chunk.YS4HYV3F.js} +3 -3
  358. package/dist/chunks/{chunk.FB4KLQQL.js → chunk.YYKAI7FO.js} +6 -12
  359. package/dist/chunks/{chunk.VKBTTWXW.js → chunk.ZFGRB56M.js} +94 -38
  360. package/dist/chunks/chunk.ZHPIA4F4.js +43 -0
  361. package/dist/chunks/{chunk.HBYJN6RA.js → chunk.ZS3JNRJE.js} +2 -2
  362. package/dist/chunks/{chunk.NCN4I6KX.js → chunk.ZYGCOBUE.js} +6 -6
  363. package/dist/components/accordion/accordion.js +2 -2
  364. package/dist/components/accordion-group/accordion-group.js +4 -4
  365. package/dist/components/alert/alert.js +2 -2
  366. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  367. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  368. package/dist/components/button/button.js +3 -3
  369. package/dist/components/calendar/calendar.js +2 -2
  370. package/dist/components/card-nav-accordion/card-nav-accordion.js +2 -2
  371. package/dist/components/checkbox/checkbox.js +4 -3
  372. package/dist/components/checkbox/checkbox.styles.js +1 -1
  373. package/dist/components/checkbox-button/checkbox-button.js +4 -3
  374. package/dist/components/checkbox-card/checkbox-card.js +3 -2
  375. package/dist/components/checkbox-group/checkbox-group.js +1 -1
  376. package/dist/components/combobox/combobox.js +9 -9
  377. package/dist/components/combobox/combobox.styles.js +1 -1
  378. package/dist/components/copy-button/copy-button.js +3 -3
  379. package/dist/components/dialog/dialog.js +2 -2
  380. package/dist/components/drawer/drawer.js +2 -2
  381. package/dist/components/dropdown/dropdown.js +2 -2
  382. package/dist/components/error-message-panel/error-message-panel.js +2 -2
  383. package/dist/components/file-upload/file-upload.js +3 -3
  384. package/dist/components/filter-button/filter-button.js +2 -2
  385. package/dist/components/filter-counter/filter-counter.js +13 -13
  386. package/dist/components/filter-date/filter-date.js +8 -8
  387. package/dist/components/filter-range/filter-range.js +13 -13
  388. package/dist/components/filter-select/filter-select.js +16 -16
  389. package/dist/components/footer/footer.js +2 -2
  390. package/dist/components/format-bytes/format-bytes.js +2 -2
  391. package/dist/components/format-date/format-date.js +2 -2
  392. package/dist/components/format-number/format-number.js +2 -2
  393. package/dist/components/header/header.d.ts +1 -0
  394. package/dist/components/header/header.js +3 -2
  395. package/dist/components/header-external-link/header-external-link.js +2 -1
  396. package/dist/components/header-modern/header-modern.d.ts +1 -0
  397. package/dist/components/header-modern/header-modern.js +3 -2
  398. package/dist/components/header-search/header-search.d.ts +2 -0
  399. package/dist/components/header-search/header-search.js +6 -6
  400. package/dist/components/input/input.js +8 -8
  401. package/dist/components/input-amount/input-amount.js +2 -2
  402. package/dist/components/input-date/input-date.d.ts +3 -0
  403. package/dist/components/input-date/input-date.js +4 -4
  404. package/dist/components/input-mask/input-mask.js +2 -2
  405. package/dist/components/input-native/input-native.js +2 -2
  406. package/dist/components/input-phone/input-phone.js +9 -8
  407. package/dist/components/input-time/input-time.js +2 -2
  408. package/dist/components/menu-accordion/menu-accordion.js +3 -3
  409. package/dist/components/menu-item/menu-item.js +3 -3
  410. package/dist/components/menu-navigation/menu-navigation.d.ts +0 -4
  411. package/dist/components/menu-navigation/menu-navigation.js +4 -4
  412. package/dist/components/navbar/navbar.d.ts +0 -4
  413. package/dist/components/navbar-link/navbar-link.js +4 -4
  414. package/dist/components/navbar-menu/navbar-menu.js +2 -2
  415. package/dist/components/option/option.d.ts +2 -0
  416. package/dist/components/option/option.js +4 -3
  417. package/dist/components/option/option.styles.js +1 -1
  418. package/dist/components/pagination/pagination.js +9 -9
  419. package/dist/components/profile-button/profile-button.js +3 -3
  420. package/dist/components/progress-bar/progress-bar.js +2 -2
  421. package/dist/components/radio/radio.js +3 -2
  422. package/dist/components/radio/radio.styles.js +1 -1
  423. package/dist/components/radio-button/radio-button.js +4 -3
  424. package/dist/components/radio-card/radio-card.js +4 -3
  425. package/dist/components/radio-group/radio-group.js +2 -1
  426. package/dist/components/relative-time/relative-time.js +2 -2
  427. package/dist/components/search/search.js +3 -3
  428. package/dist/components/search/search.styles.js +1 -1
  429. package/dist/components/select/select.d.ts +3 -1
  430. package/dist/components/select/select.js +5 -5
  431. package/dist/components/select/select.styles.js +1 -1
  432. package/dist/components/sidenav/sidenav.d.ts +4 -1
  433. package/dist/components/sidenav/sidenav.js +4 -4
  434. package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +4 -4
  435. package/dist/components/skip-link-item/skip-link-item.js +2 -1
  436. package/dist/components/skip-links/skip-links.js +2 -2
  437. package/dist/components/spinner/spinner.js +2 -2
  438. package/dist/components/split-panel/split-panel.js +2 -2
  439. package/dist/components/step/step.js +4 -3
  440. package/dist/components/step/step.styles.js +1 -1
  441. package/dist/components/stepper/stepper.d.ts +4 -1
  442. package/dist/components/stepper/stepper.js +1 -1
  443. package/dist/components/switch/switch.js +3 -3
  444. package/dist/components/switch/switch.styles.js +1 -1
  445. package/dist/components/tab/tab.d.ts +3 -0
  446. package/dist/components/tab/tab.js +4 -3
  447. package/dist/components/tab/tab.styles.js +1 -1
  448. package/dist/components/tab-group/tab-group.d.ts +1 -0
  449. package/dist/components/tab-group/tab-group.js +4 -3
  450. package/dist/components/tab-group/tab-group.styles.js +1 -1
  451. package/dist/components/tab-panel/tab-panel.js +2 -1
  452. package/dist/components/table/table.d.ts +29 -0
  453. package/dist/components/table/table.js +2 -1
  454. package/dist/components/table-action/table-action.js +5 -5
  455. package/dist/components/table-action/table-action.styles.js +1 -1
  456. package/dist/components/table-body/table-body.js +3 -2
  457. package/dist/components/table-caption/table-caption.js +3 -3
  458. package/dist/components/table-caption/table-caption.styles.js +1 -1
  459. package/dist/components/table-container/table-container.d.ts +2 -0
  460. package/dist/components/table-container/table-container.js +4 -3
  461. package/dist/components/table-container/table-container.styles.js +1 -1
  462. package/dist/components/table-expanded-row/table-expanded-row.d.ts +1 -1
  463. package/dist/components/table-head/table-head.js +3 -2
  464. package/dist/components/table-header-cell/table-header-cell.js +2 -2
  465. package/dist/components/table-header-cell/table-header-cell.styles.js +1 -1
  466. package/dist/components/table-header-row/table-header-row.d.ts +2 -0
  467. package/dist/components/table-header-row/table-header-row.js +12 -10
  468. package/dist/components/table-header-row/table-header-row.styles.js +2 -1
  469. package/dist/components/table-of-contents/table-of-contents.d.ts +4 -5
  470. package/dist/components/table-of-contents/table-of-contents.js +3 -3
  471. package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
  472. package/dist/components/table-row/table-row-base.styles.d.ts +2 -0
  473. package/dist/components/table-row/table-row-base.styles.js +8 -0
  474. package/dist/components/table-row/table-row.d.ts +22 -0
  475. package/dist/components/table-row/table-row.js +13 -6
  476. package/dist/components/table-row/table-row.styles.js +2 -1
  477. package/dist/components/table-toolbar/table-toolbar.js +2 -2
  478. package/dist/components/table-toolbar/table-toolbar.styles.js +1 -1
  479. package/dist/components/tag/tag.js +3 -3
  480. package/dist/components/tooltip/tooltip.js +2 -2
  481. package/dist/components/tree/tree.d.ts +4 -4
  482. package/dist/components/tree/tree.js +9 -8
  483. package/dist/components/tree-item/tree-item.js +8 -7
  484. package/dist/components/tree-item/tree-item.styles.js +1 -1
  485. package/dist/custom-elements.json +1058 -122
  486. package/dist/design-system.js +110 -109
  487. package/dist/events/dsa-table-row-reordered.d.ts +14 -0
  488. package/dist/events/dsa-table-row-reordered.js +1 -0
  489. package/dist/events/events.d.ts +1 -0
  490. package/dist/internal/components/date-field/date-field.styles.js +2 -2
  491. package/dist/internal/components/form-selectable-card/form-selectable-card.js +3 -2
  492. package/dist/internal/components/form-selectable-card/form-selectable-card.styles.js +4 -4
  493. package/dist/internal/components/form-toggle-button/form-toggle-button.js +3 -2
  494. package/dist/internal/components/form-toggle-button/form-toggle-button.styles.js +2 -2
  495. package/dist/themes/dsa-wc-theme.css +20 -45
  496. package/dist/themes/dsa-wc-theme.min.css +1 -1
  497. package/dist/themes/dsa-wc-theme.styles.js +20 -46
  498. package/dist/translations/en-gb.js +1 -1
  499. package/dist/translations/en.js +1 -1
  500. package/dist/translations/fr.js +1 -1
  501. package/dist/utilities/helpers.d.ts +2 -0
  502. package/dist/utilities/helpers.js +7 -3
  503. package/dist/utilities/localize.d.ts +2 -0
  504. package/dist/utilities/localize.js +1 -1
  505. package/dist/utilities/storybook.js +2 -2
  506. package/dist/vscode.html-custom-data.json +60 -10
  507. package/dist/web-types.json +537 -49
  508. package/package.json +1 -1
  509. package/cdn/chunks/chunk.2PN56GC6.js +0 -1
  510. package/cdn/chunks/chunk.2UUQJVQI.js +0 -1
  511. package/cdn/chunks/chunk.4RIUPE2O.js +0 -1
  512. package/cdn/chunks/chunk.63QVJAPP.js +0 -11
  513. package/cdn/chunks/chunk.6GAHBGOF.js +0 -47
  514. package/cdn/chunks/chunk.6TFK3HZG.js +0 -43
  515. package/cdn/chunks/chunk.ABNF7OWB.js +0 -11
  516. package/cdn/chunks/chunk.ADTGGBWH.js +0 -72
  517. package/cdn/chunks/chunk.AEBG7WOW.js +0 -20
  518. package/cdn/chunks/chunk.AKVKEBPE.js +0 -13
  519. package/cdn/chunks/chunk.BXV6H4J7.js +0 -1
  520. package/cdn/chunks/chunk.CBNY3KDR.js +0 -60
  521. package/cdn/chunks/chunk.DYSLQ6GC.js +0 -68
  522. package/cdn/chunks/chunk.EL4NZRIR.js +0 -26
  523. package/cdn/chunks/chunk.FGDBYD7N.js +0 -41
  524. package/cdn/chunks/chunk.GGGLGLGP.js +0 -38
  525. package/cdn/chunks/chunk.IJNUBDIJ.js +0 -1
  526. package/cdn/chunks/chunk.IOIBAXOU.js +0 -9
  527. package/cdn/chunks/chunk.IYKXS5B3.js +0 -66
  528. package/cdn/chunks/chunk.JNOQLPCE.js +0 -8
  529. package/cdn/chunks/chunk.JZMIS7DF.js +0 -7
  530. package/cdn/chunks/chunk.K6YUVAOE.js +0 -6
  531. package/cdn/chunks/chunk.LIYDVH7Q.js +0 -48
  532. package/cdn/chunks/chunk.MQFH5TMZ.js +0 -1
  533. package/cdn/chunks/chunk.N4VN25E6.js +0 -44
  534. package/cdn/chunks/chunk.QNAPY67H.js +0 -73
  535. package/cdn/chunks/chunk.QO3O2UNB.js +0 -68
  536. package/cdn/chunks/chunk.QVF2D4NC.js +0 -1
  537. package/cdn/chunks/chunk.RVQUT7ZY.js +0 -26
  538. package/cdn/chunks/chunk.SIT3GCR7.js +0 -173
  539. package/cdn/chunks/chunk.TFJB3OT3.js +0 -19
  540. package/cdn/chunks/chunk.UEYALIC7.js +0 -25
  541. package/cdn/chunks/chunk.W7AY6BP2.js +0 -130
  542. package/cdn/chunks/chunk.W7S553SV.js +0 -50
  543. package/cdn/chunks/chunk.WJLFKSRJ.js +0 -51
  544. package/cdn/chunks/chunk.X2G2BFIN.js +0 -1
  545. package/dist/chunks/chunk.7S4HUOC7.js +0 -206
  546. package/dist/chunks/chunk.GI3JNOHH.js +0 -58
  547. package/dist/chunks/chunk.HALYTFYA.js +0 -282
  548. package/dist/chunks/chunk.SHNAUO5J.js +0 -82
@@ -1,4 +1,4 @@
1
- import{a as x}from"./chunk.QLA42ORC.js";import{a as y}from"./chunk.FX5UP23Z.js";import{a as v}from"./chunk.NJBAMERR.js";import{a as $}from"./chunk.SWEIVB73.js";import{a as d}from"./chunk.ELL45QD3.js";import{a as g}from"./chunk.63UE4VAO.js";import{a as f}from"./chunk.NIRNX67K.js";import{c as b}from"./chunk.GM4KTNXL.js";import{a as m}from"./chunk.2RF4WD6T.js";import{d as n}from"./chunk.ZBHHLRFH.js";import{a as u,b as r,c,d as l,f as p}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var e=class extends p{constructor(){super(...arguments);this.localize=new b(this);this.hasSlotController=new d(this,"help-text");this.hasFocus=!1;this.size="medium";this.variant="base";this.value="";this.helpText="";this.error=!1;this.errorMessage=""}handleChange(){this.value=this.input.value,this.emit("dsa-change")}handleInput(){this.value=this.input.value,this.emit("dsa-input")}handleInputFocus(){this.hasFocus=!0,this.emit("dsa-focus")}handleInputBlur(){this.hasFocus=!1,this.emit("dsa-blur")}handleClearClick(t){this.value="",this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change"),this.input.focus(),t.stopPropagation()}handleKeyDown(t){t.stopPropagation();let a=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!a&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.handleSubmitClick()})}handleSubmitClick(){this.emit("dsa-submit")}getDescriptionIds(){let t=this.hasSlotController.test("help-text"),a=this.helpText?!0:!!t,s=[];return this.error&&(s=[...s,"error-text"]),a&&(s=[...s,"help-text"]),s.join(" ")}render(){var a,s,h;let t=(()=>{switch(this.size){case"small":return"large";case"large":return"2xlarge";default:return"xlarge"}})();return o`
1
+ import{a as x}from"./chunk.535I3ZDX.js";import{a as v}from"./chunk.FX5UP23Z.js";import{a as y}from"./chunk.NJBAMERR.js";import{a as $}from"./chunk.SWEIVB73.js";import{a as d}from"./chunk.ELL45QD3.js";import{a as g}from"./chunk.63UE4VAO.js";import{a as f}from"./chunk.NIRNX67K.js";import{c as b}from"./chunk.LBAIMDY3.js";import{a as m}from"./chunk.2RF4WD6T.js";import{d as n}from"./chunk.ZBHHLRFH.js";import{a as u,b as s,c,d as l,f as p}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var e=class extends p{constructor(){super(...arguments);this.localize=new b(this);this.hasSlotController=new d(this,"help-text");this.hasFocus=!1;this.size="medium";this.variant="base";this.value="";this.helpText="";this.error=!1;this.errorMessage=""}handleChange(){this.value!==this.input.value&&(this.value=this.input.value),this.emit("dsa-change")}handleInput(){this.value!==this.input.value&&(this.value=this.input.value),this.emit("dsa-input")}handleInputFocus(){this.hasFocus||(this.hasFocus=!0),this.emit("dsa-focus")}handleInputBlur(){this.hasFocus&&(this.hasFocus=!1),this.emit("dsa-blur")}handleClearClick(t){if(this.value===""){t.stopPropagation();return}this.value="",this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change"),this.input.focus(),t.stopPropagation()}handleKeyDown(t){t.stopPropagation();let a=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!a&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.handleSubmitClick()})}handleSubmitClick(){this.emit("dsa-submit")}getDescriptionIds(){let t=this.hasSlotController.test("help-text"),a=this.helpText?!0:!!t,r=[];return this.error&&(r=[...r,"error-text"]),a&&(r=[...r,"help-text"]),r.join(" ")}render(){var a,r,h;let t=(()=>{switch(this.size){case"small":return"large";case"large":return"2xlarge";default:return"xlarge"}})();return o`
2
2
  <div
3
3
  class=${n({"search-bar":!0,"search-bar--error":this.error,"search-bar--small":this.size==="small","search-bar--medium":this.size==="medium","search-bar--large":this.size==="large","search-bar--on-layer":this.variant==="layer","search-bar--on-base":this.variant==="base","search-bar--on-floating":this.variant==="floating"})}
4
4
  >
@@ -10,11 +10,11 @@ import{a as x}from"./chunk.QLA42ORC.js";import{a as y}from"./chunk.FX5UP23Z.js";
10
10
  class="input__control"
11
11
  type="search"
12
12
  placeholder=${(a=this.placeholder)!=null?a:this.localize.term("search")}
13
- aria-label=${(s=this.accessibleName)!=null?s:this.localize.term("search")}
13
+ aria-label=${(r=this.accessibleName)!=null?r:this.localize.term("search")}
14
14
  aria-describedby=${f(this.getDescriptionIds())}
15
15
  aria-invalid=${m(this.error?"true":void 0)}
16
16
  title=${(h=this.accessibleName)!=null?h:this.localize.term("search")}
17
- .value=${y(this.value)}
17
+ .value=${v(this.value)}
18
18
  @change=${this.handleChange}
19
19
  @input=${this.handleInput}
20
20
  @focus=${this.handleInputFocus}
@@ -53,4 +53,4 @@ import{a as x}from"./chunk.QLA42ORC.js";import{a as y}from"./chunk.FX5UP23Z.js";
53
53
 
54
54
  ${this.error&&this.errorMessage!==""?$(this.errorMessage,this.variant):""}
55
55
  </div>
56
- `}};e.styles=x,e.dependencies={"dsa-icon-button":g,"dsa-error-text":v},i([l(".input__control")],e.prototype,"input",2),i([l("#submit-button")],e.prototype,"submitButton",2),i([l("#clear-button")],e.prototype,"clearButton",2),i([c()],e.prototype,"hasFocus",2),i([r({reflect:!0})],e.prototype,"size",2),i([r({reflect:!0})],e.prototype,"variant",2),i([r()],e.prototype,"value",2),i([r({attribute:"help-text"})],e.prototype,"helpText",2),i([r({type:Boolean})],e.prototype,"error",2),i([r({attribute:"error-message",converter:{fromAttribute:t=>t?t.split("|"):"",toAttribute:t=>typeof t=="string"?t:t.join("|")}})],e.prototype,"errorMessage",2),i([r({attribute:"accessible-name"})],e.prototype,"accessibleName",2),i([r()],e.prototype,"placeholder",2),e=i([u("dsa-search")],e);export{e as a};
56
+ `}};e.styles=x,e.dependencies={"dsa-icon-button":g,"dsa-error-text":y},i([l(".input__control")],e.prototype,"input",2),i([l("#submit-button")],e.prototype,"submitButton",2),i([l("#clear-button")],e.prototype,"clearButton",2),i([c()],e.prototype,"hasFocus",2),i([s({reflect:!0})],e.prototype,"size",2),i([s({reflect:!0})],e.prototype,"variant",2),i([s()],e.prototype,"value",2),i([s({attribute:"help-text"})],e.prototype,"helpText",2),i([s({type:Boolean})],e.prototype,"error",2),i([s({attribute:"error-message",converter:{fromAttribute:t=>t?t.split("|"):"",toAttribute:t=>typeof t=="string"?t:t.join("|")}})],e.prototype,"errorMessage",2),i([s({attribute:"accessible-name"})],e.prototype,"accessibleName",2),i([s()],e.prototype,"placeholder",2),e=i([u("dsa-search")],e);export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as w}from"./chunk.5B4NN6DN.js";import{a as b}from"./chunk.CUYQOZPJ.js";import{a as p}from"./chunk.KLRPP4NQ.js";import{a as r,b as h,c as d}from"./chunk.HHVNQNCC.js";import{a as l,c as u}from"./chunk.TV2TMO2H.js";import{a as v}from"./chunk.B4KFHYLS.js";import{c as g}from"./chunk.GM4KTNXL.js";import{d as f}from"./chunk.ZBHHLRFH.js";import{a}from"./chunk.BWEPOOQP.js";import{a as m,b as s,d as n,f as y}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends y{constructor(){super(...arguments);this.localize=new g(this);this.content="";this.placement="top";this.disabled=!1;this.distance=8;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleDocumentKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.show()}handleDocumentKeyDown(e){e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=h(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=h(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("dsa-show"),document.addEventListener("keydown",this.handleDocumentKeyDown),await d(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:o}=u(this,"tooltip.show",{dir:this.localize.dir()});await r(this.popup.popup,e,o),this.popup.reposition(),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),document.removeEventListener("keydown",this.handleDocumentKeyDown),await d(this.body);let{keyframes:e,options:o}=u(this,"tooltip.hide",{dir:this.localize.dir()});await r(this.popup.popup,e,o),this.popup.active=!1,this.body.hidden=!0,this.emit("dsa-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,await p(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await p(this,"dsa-after-hide")}handleDefaultSlotChange(){let e=this.querySelector("dsa-button, dsa-icon-button, .tag__trigger");e==null||e.setAttribute("description",this.content),e||v("The target element of the tooltip (in its default slot) must be a dsa-button or dsa-icon-button.")}render(){return c`
1
+ import{a as w}from"./chunk.5B4NN6DN.js";import{a as b}from"./chunk.CUYQOZPJ.js";import{a as p}from"./chunk.KLRPP4NQ.js";import{a as r,b as h,c as d}from"./chunk.HHVNQNCC.js";import{a as l,c as u}from"./chunk.TV2TMO2H.js";import{a as v}from"./chunk.B4KFHYLS.js";import{c as g}from"./chunk.LBAIMDY3.js";import{d as f}from"./chunk.ZBHHLRFH.js";import{a}from"./chunk.BWEPOOQP.js";import{a as m,b as s,d as n,f as y}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends y{constructor(){super(...arguments);this.localize=new g(this);this.content="";this.placement="top";this.disabled=!1;this.distance=8;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleDocumentKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.show()}handleDocumentKeyDown(e){e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=h(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=h(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("dsa-show"),document.addEventListener("keydown",this.handleDocumentKeyDown),await d(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:o}=u(this,"tooltip.show",{dir:this.localize.dir()});await r(this.popup.popup,e,o),this.popup.reposition(),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),document.removeEventListener("keydown",this.handleDocumentKeyDown),await d(this.body);let{keyframes:e,options:o}=u(this,"tooltip.hide",{dir:this.localize.dir()});await r(this.popup.popup,e,o),this.popup.active=!1,this.body.hidden=!0,this.emit("dsa-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,await p(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await p(this,"dsa-after-hide")}handleDefaultSlotChange(){let e=this.querySelector("dsa-button, dsa-icon-button, .tag__trigger");e==null||e.setAttribute("description",this.content),e||v("The target element of the tooltip (in its default slot) must be a dsa-button or dsa-icon-button.")}render(){return c`
2
2
  <dsa-popup
3
3
  part="base"
4
4
  exportparts="
@@ -1 +1 @@
1
- import{a as i,b as s}from"./chunk.HJGLYEWV.js";var a={$code:"fr",$name:"Fran\xE7ais",$dir:"ltr",carousel:"Carrousel",clearEntry:"Effacer l'entr\xE9e",close:"Fermer",copy:"Copier",youAreHere:"Vous \xEAtes ici :",countryCallingCode:"Indicatif t\xE9l\xE9phonique international",currentValue:"Valeur actuelle",goToSlide:(e,r)=>`Aller \xE0 la diapositive ${e} de ${r}`,hidePassword:"Masquer le mot de passe",loading:"Chargement",nextSlide:"Diapositive suivante",previousSlide:"Diapositive pr\xE9c\xE9dente",progress:"Progr\xE8s",remove:"Retirer",resize:"Redimensionner",scrollToEnd:"Faire d\xE9filer jusqu'\xE0 la fin",scrollToStart:"Faire d\xE9filer jusqu'au d\xE9but",selectAColorFromTheScreen:"S\xE9lectionnez une couleur \xE0 l'\xE9cran",selectATime:"S\xE9lectionnez une heure",showPassword:"Montrer le mot de passe",slideNum:e=>`Diapositive ${e}`,toggleColorFormat:"Changer le format de couleur",noMatchFound:"Aucune correspondance trouv\xE9e",optionsLoading:"Chargement des options",optionsError:"Une erreur est survenue",step:"\xC9tape",stepActive:"\xC9tape active",stepCompleted:"\xC9tape valid\xE9e",stepInProgress:"\xC9tape en cours",stepError:"\xC9tape en erreur",skipLinksAriaLabel:"Liens d'acc\xE8s rapide",errorMessagePanelCodePrefix:"Code d'erreur: ",fileSelect:(e,r)=>e?"Choisir un dossier":r?"Choisir des fichiers":"Choisir un fichier",fileDropHere:e=>e?"Glissez et d\xE9posez vos fichiers ici":"Glissez et d\xE9posez votre fichier ici",onlySingleFileAllowed:"Un seul fichier est autoris\xE9",fileTypeNotAccepted:e=>e.length>1?"Les fichiers suivants ne sont pas du format attendu : ":"Le fichier suivant n'est pas du format attendu : ",fileSizeExceeded:e=>e.length>1?"Les fichiers suivants d\xE9passent la taille maximale autoris\xE9e : ":"Le fichier suivant d\xE9passe la taille maximale autoris\xE9e : ",clearFile:e=>`Retirer le fichier : ${e}`,uploadFileProgressBar:"Barre de progression pour le t\xE9l\xE9chargement de fichiers",pagination:"Pagination",paginationResults:(e,r,n,t)=>`${e}-${r} sur ${n} ${t!=null?t:"r\xE9sultats"}`,paginationResultsAriaLabel:(e,r,n,t)=>`Affichage de ${e} \xE0 ${r} sur ${n} ${t!=null?t:"r\xE9sultats"}`,linesPerPage:"Lignes par page",page:"page",ofTotal:e=>`sur ${e}`,previousPage:"Page pr\xE9c\xE9dente",nextPage:"Page suivante",results:"r\xE9sultats",cnsa:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",spa:"Service public de l'autonomie",cnsaGoToHomepage:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, aller \xE0 la page d'accueil",spaGoToHomepage:"Service public de l'autonomie, aller \xE0 la page d'accueil",search:"Rechercher",cancel:"Annuler",showTableActionsAnnouncement:"Une barre d'actions est d\xE9sormais disponible au-dessus du tableau.",selectAllTableRows:"S\xE9lectionner toutes les lignes du tableau",selectRow:"S\xE9lectionner la ligne",showExpandedTableRowHeader:"Afficher les d\xE9tails des lignes du tableau",showExpandedTableRow:"Afficher d\xE9tails",hideExpandedTableRow:"Masquer d\xE9tails",cnsaFooterLogoLabel:"Service public de l'autonomie",openAll:"Tout ouvrir",closeAll:"Tout fermer",numberSelected:(e,r)=>`${e} s\xE9lectionn\xE9${r==="feminine"?"e":""}${e>1?"s":""}`,deselectAll:"Tout d\xE9s\xE9lectionner",selectAll:"Tout s\xE9lectionner",seeAll:e=>`Voir tout (${e})`,seeMore:"Voir plus",columns:"Colonnes",increase:"Augmenter",decrease:"Diminuer",reinitialize:"R\xE9initialiser",validate:"Valider",filterReset:"R\xE9initialiser",filterSubmit:"Valider",valuesSelected:"valeurs s\xE9lectionn\xE9es",optionsAvailable:"options disponibles",selectValue:e=>`S\xE9lectionner ${e?"des valeurs":"une valeur"}`,lessThan:"inf\xE9rieur \xE0",moreThan:"sup\xE9rieur \xE0",min:"Min",max:"Max",clearButton:"Effacer valeur",hours:e=>`${e} Heure${Number(e)>1?"s":""}`,minutes:e=>`${e} Minute${Number(e)>1?"s":""}`,seconds:e=>`${e} Seconde${Number(e)>1?"s":""}`,milliseconds:e=>`${e} Milliseconde${Number(e)>1?"s":""}`,selectedTime:"Heure s\xE9lectionn\xE9e :",day:"Jour",month:"Mois",year:"Ann\xE9e",dayPlaceholder:"JJ",monthPlaceholder:"MM",yearPlaceholder:"AAAA",selectedDate:"Date s\xE9lectionn\xE9e : ",selectedDates:"Dates s\xE9lectionn\xE9es : ",enhancedMonth:e=>{switch(e){case 1:return"1 - Janvier";case 2:return"2 - F\xE9vrier";case 3:return"3 - Mars";case 4:return"4 - Avril";case 5:return"5 - Mai";case 6:return"6 - Juin";case 7:return"7 - Juillet";case 8:return"8 - Ao\xFBt";case 9:return"9 - Septembre";case 10:return"10 - Octobre";case 11:return"11 - Novembre";case 12:return"12 - D\xE9cembre";default:return""}},monthSelect:"S\xE9lectionner le mois",nextMonthButton:"Mois suivant",nextYearButton:"Ann\xE9e suivante",picker:"Choisir une date",pickerRange:"Choisir une plage de dates",previousMonthButton:"Mois pr\xE9c\xE9dent",previousYearButton:"Ann\xE9e pr\xE9c\xE9dente",todayButton:"Afficher la date du jour",yearSelect:"S\xE9lectionner l'ann\xE9e",startDate:"Date de d\xE9but",endDate:"Date de fin",invalidDate:"Date non valide",invalidStartDate:"Date de d\xE9but non valide",invalidEndDate:"Date de fin non valide",tableOfContents:"Sommaire :",userMenu:"Menu utilisateur",switchOn:"Activ\xE9",switchOff:"D\xE9sactiv\xE9",sidenav:"Navigation lat\xE9rale",toggleSidenav:"D\xE9velopper/R\xE9duire la navigation lat\xE9rale",copied:"Texte copi\xE9 dans le presse-papiers",copyError:"Echec de la copie",info:"Information",warning:"Attention",error:"Erreur",success:"Succ\xE8s",fr_FR:"France",fr_GP:"Guadeloupe, Saint-Barth\xE9lemy et Saint-Martin",fr_GF:"Guyane",fr_MQ:"Martinique",fr_NC:"Nouvelle-Cal\xE9donie",fr_PF:"Polyn\xE9sie fran\xE7aise",fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"R\xE9union et Mayotte",fr_WF:"Wallis-et-Futuna"};i(a);var c=a;var o=class extends s{};var l={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copy:"Copy",youAreHere:"You are here:",countryCallingCode:"Country calling code",currentValue:"Current value",goToSlide:(e,r)=>`Go to slide ${e} of ${r}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectATime:"Select a time",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format",noMatchFound:"No match found",optionsLoading:"Options loading",optionsError:"An error has occurred",step:"Step",stepActive:"Active step",stepCompleted:"Step completed",stepInProgress:"Step in progress",stepError:"Step in error",skipLinksAriaLabel:"Skip links",errorMessagePanelCodePrefix:"Error code: ",fileSelect:(e,r)=>e?"Select a directory":r?"Choose files":"Choose a file",fileDropHere:e=>e?"Drag and drop your files here":"Drag and drop your file here",onlySingleFileAllowed:"Only a single file is allowed",fileTypeNotAccepted:e=>e.length>1?"The following files are not of the expected format: ":"The following file is not of the expected format: ",fileSizeExceeded:e=>e.length>1?"The following files exceed the maximum allowed size: ":"The following file exceeds the maximum allowed size: ",clearFile:e=>`Remove file : ${e}`,uploadFileProgressBar:"Upload file progress bar",pagination:"Pagination",paginationResults:(e,r,n,t)=>`${e}-${r} of ${n} ${t!=null?t:"results"}`,paginationResultsAriaLabel:(e,r,n,t)=>`Showing ${e} to ${r} of ${n} ${t!=null?t:"results"}`,linesPerPage:"Lines per page",page:"page",ofTotal:e=>`of ${e}`,previousPage:"Previous page",nextPage:"Next page",results:"results",cnsa:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",spa:"Service public de l'autonomie",cnsaGoToHomepage:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, go to homepage",spaGoToHomepage:"Service public de l'autonomie, go to homepage",search:"Search",cancel:"Cancel",showTableActionsAnnouncement:"An action bar is now available above the table",selectAllTableRows:"Select all table rows",selectRow:"Select row",showExpandedTableRowHeader:"Show details of table rows",showExpandedTableRow:"Show details",hideExpandedTableRow:"Hide details",cnsaFooterLogoLabel:"Service public de l'autonomie",openAll:"Open all",closeAll:"Close all",numberSelected:e=>`${e} selected`,deselectAll:"Deselect all",selectAll:"Select all",seeAll:e=>`See all (${e})`,seeMore:"See more",columns:"Columns",increase:"Increase",decrease:"Decrease",reinitialize:"Reinitialize",validate:"Validate",filterReset:"Reinitialize",filterSubmit:"Validate",valuesSelected:"values selected",optionsAvailable:"options available",selectValue:e=>`Select ${e?"values":"a value"}`,lessThan:"less than",moreThan:"more than",min:"Min",max:"Max",clearButton:"Clear value",hours:e=>`${e} Hour${Number(e)>1?"s":""}`,minutes:e=>`${e} Minute${Number(e)>1?"s":""}`,seconds:e=>`${e} Second${Number(e)>1?"s":""}`,milliseconds:e=>`${e} Millisecond${Number(e)>1?"s":""}`,selectedTime:"Selected time :",day:"Day",month:"Month",year:"Year",dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY",selectedDate:"Selected date : ",selectedDates:"Selected dates : ",enhancedMonth:e=>{switch(e){case 1:return"1 - January";case 2:return"2 - February";case 3:return"3 - March";case 4:return"4 - April";case 5:return"5 - May";case 6:return"6 - June";case 7:return"7 - July";case 8:return"8 - August";case 9:return"9 - September";case 10:return"10 - October";case 11:return"11 - November";case 12:return"12 - December";default:return""}},monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",pickerRange:"Choose a date range",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year",startDate:"Start date",endDate:"End date",invalidDate:"Invalid date",invalidStartDate:"Invalid start date",invalidEndDate:"Invalide end date",tableOfContents:"Table of contents :",userMenu:"User Menu",switchOn:"On",switchOff:"Off",sidenav:"Side navigation",toggleSidenav:"Toggle side navigation",copied:"Copied",copyError:"Copy error",info:"Information",warning:"Warning",error:"Error",success:"Success",fr_FR:"France",fr_GP:"Guadeloupe",fr_GF:"Guiana",fr_MQ:"Martinique",fr_NC:"New Caledonia",fr_PF:"French Polynesia",fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"R\xE9union and Mayotte",fr_WF:"Wallis and Futuna"};i(l);var S=l;export{S as a,c as b,o as c};
1
+ import{a as i,b as s}from"./chunk.HJGLYEWV.js";var o={$code:"fr",$name:"Fran\xE7ais",$dir:"ltr",carousel:"Carrousel",clearEntry:"Effacer l'entr\xE9e",close:"Fermer",copy:"Copier",youAreHere:"Vous \xEAtes ici :",countryCallingCode:"Indicatif t\xE9l\xE9phonique international",currentValue:"Valeur actuelle",goToSlide:(e,r)=>`Aller \xE0 la diapositive ${e} de ${r}`,hidePassword:"Masquer le mot de passe",loading:"Chargement",nextSlide:"Diapositive suivante",previousSlide:"Diapositive pr\xE9c\xE9dente",progress:"Progr\xE8s",remove:"Retirer",resize:"Redimensionner",scrollToEnd:"Faire d\xE9filer jusqu'\xE0 la fin",scrollToStart:"Faire d\xE9filer jusqu'au d\xE9but",selectAColorFromTheScreen:"S\xE9lectionnez une couleur \xE0 l'\xE9cran",selectATime:"S\xE9lectionnez une heure",showPassword:"Montrer le mot de passe",slideNum:e=>`Diapositive ${e}`,toggleColorFormat:"Changer le format de couleur",noMatchFound:"Aucune correspondance trouv\xE9e",optionsLoading:"Chargement des options",optionsError:"Une erreur est survenue",step:"\xC9tape",stepActive:"\xC9tape active",stepCompleted:"\xC9tape valid\xE9e",stepInProgress:"\xC9tape en cours",stepError:"\xC9tape en erreur",skipLinksAriaLabel:"Liens d'acc\xE8s rapide",errorMessagePanelCodePrefix:"Code d'erreur: ",fileSelect:(e,r)=>e?"Choisir un dossier":r?"Choisir des fichiers":"Choisir un fichier",fileDropHere:e=>e?"Glissez et d\xE9posez vos fichiers ici":"Glissez et d\xE9posez votre fichier ici",onlySingleFileAllowed:"Un seul fichier est autoris\xE9",fileTypeNotAccepted:e=>e.length>1?"Les fichiers suivants ne sont pas du format attendu : ":"Le fichier suivant n'est pas du format attendu : ",fileSizeExceeded:e=>e.length>1?"Les fichiers suivants d\xE9passent la taille maximale autoris\xE9e : ":"Le fichier suivant d\xE9passe la taille maximale autoris\xE9e : ",clearFile:e=>`Retirer le fichier : ${e}`,uploadFileProgressBar:"Barre de progression pour le t\xE9l\xE9chargement de fichiers",pagination:"Pagination",paginationResults:(e,r,n,t)=>`${e}-${r} sur ${n} ${t!=null?t:"r\xE9sultats"}`,paginationResultsAriaLabel:(e,r,n,t)=>`Affichage de ${e} \xE0 ${r} sur ${n} ${t!=null?t:"r\xE9sultats"}`,linesPerPage:"Lignes par page",page:"page",ofTotal:e=>`sur ${e}`,previousPage:"Page pr\xE9c\xE9dente",nextPage:"Page suivante",results:"r\xE9sultats",cnsa:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",spa:"Service public de l'autonomie",cnsaGoToHomepage:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, aller \xE0 la page d'accueil",spaGoToHomepage:"Service public de l'autonomie, aller \xE0 la page d'accueil",search:"Rechercher",cancel:"Annuler",showTableActionsAnnouncement:"Une barre d'actions est d\xE9sormais disponible au-dessus du tableau.",selectAllTableRows:"S\xE9lectionner toutes les lignes du tableau",selectRow:"S\xE9lectionner la ligne",showExpandedTableRowHeader:"Afficher les d\xE9tails des lignes du tableau",showExpandedTableRow:"Afficher d\xE9tails",hideExpandedTableRow:"Masquer d\xE9tails",reorderTableRowsHeader:"R\xE9organiser les lignes du tableau. Activez le mode formulaire pour utiliser les boutons de r\xE9organisation. Utilisez la touche ESPACE ou ENTR\xC9E sur les boutons pour activer la r\xE9organisation. Utilisez les fl\xE8ches HAUT et BAS pour r\xE9organiser la ligne. Utilisez la touche ESPACE ou ENTR\xC9E pour valider la nouvelle position de la ligne. Quittez le mode formulaire pour naviguer entre les autres \xE9l\xE9ments du tableau.",startReorderTableRow:"R\xE9organiser la ligne",cnsaFooterLogoLabel:"Service public de l'autonomie",openAll:"Tout ouvrir",closeAll:"Tout fermer",numberSelected:(e,r)=>`${e} s\xE9lectionn\xE9${r==="feminine"?"e":""}${e>1?"s":""}`,deselectAll:"Tout d\xE9s\xE9lectionner",selectAll:"Tout s\xE9lectionner",seeAll:e=>`Voir tout (${e})`,seeMore:"Voir plus",columns:"Colonnes",increase:"Augmenter",decrease:"Diminuer",reinitialize:"R\xE9initialiser",validate:"Valider",filterReset:"R\xE9initialiser",filterSubmit:"Valider",valuesSelected:"valeurs s\xE9lectionn\xE9es",optionsAvailable:"options disponibles",selectValue:e=>`S\xE9lectionner ${e?"des valeurs":"une valeur"}`,lessThan:"inf\xE9rieur \xE0",moreThan:"sup\xE9rieur \xE0",min:"Min",max:"Max",clearButton:"Effacer valeur",hours:e=>`${e} Heure${Number(e)>1?"s":""}`,minutes:e=>`${e} Minute${Number(e)>1?"s":""}`,seconds:e=>`${e} Seconde${Number(e)>1?"s":""}`,milliseconds:e=>`${e} Milliseconde${Number(e)>1?"s":""}`,selectedTime:"Heure s\xE9lectionn\xE9e :",day:"Jour",month:"Mois",year:"Ann\xE9e",dayPlaceholder:"JJ",monthPlaceholder:"MM",yearPlaceholder:"AAAA",selectedDate:"Date s\xE9lectionn\xE9e : ",selectedDates:"Dates s\xE9lectionn\xE9es : ",enhancedMonth:e=>{switch(e){case 1:return"1 - Janvier";case 2:return"2 - F\xE9vrier";case 3:return"3 - Mars";case 4:return"4 - Avril";case 5:return"5 - Mai";case 6:return"6 - Juin";case 7:return"7 - Juillet";case 8:return"8 - Ao\xFBt";case 9:return"9 - Septembre";case 10:return"10 - Octobre";case 11:return"11 - Novembre";case 12:return"12 - D\xE9cembre";default:return""}},monthSelect:"S\xE9lectionner le mois",nextMonthButton:"Mois suivant",nextYearButton:"Ann\xE9e suivante",picker:"Choisir une date",pickerRange:"Choisir une plage de dates",previousMonthButton:"Mois pr\xE9c\xE9dent",previousYearButton:"Ann\xE9e pr\xE9c\xE9dente",todayButton:"Afficher la date du jour",yearSelect:"S\xE9lectionner l'ann\xE9e",startDate:"Date de d\xE9but",endDate:"Date de fin",invalidDate:"Date non valide",invalidStartDate:"Date de d\xE9but non valide",invalidEndDate:"Date de fin non valide",tableOfContents:"Sommaire :",userMenu:"Menu utilisateur",switchOn:"Activ\xE9",switchOff:"D\xE9sactiv\xE9",sidenav:"Navigation lat\xE9rale",toggleSidenav:"D\xE9velopper/R\xE9duire la navigation lat\xE9rale",copied:"Texte copi\xE9 dans le presse-papiers",copyError:"Echec de la copie",info:"Information",warning:"Attention",error:"Erreur",success:"Succ\xE8s",fr_FR:"France",fr_GP:"Guadeloupe, Saint-Barth\xE9lemy et Saint-Martin",fr_GF:"Guyane",fr_MQ:"Martinique",fr_NC:"Nouvelle-Cal\xE9donie",fr_PF:"Polyn\xE9sie fran\xE7aise",fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"R\xE9union et Mayotte",fr_WF:"Wallis-et-Futuna"};i(o);var d=o;var a=class extends s{};var l={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copy:"Copy",youAreHere:"You are here:",countryCallingCode:"Country calling code",currentValue:"Current value",goToSlide:(e,r)=>`Go to slide ${e} of ${r}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectATime:"Select a time",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format",noMatchFound:"No match found",optionsLoading:"Options loading",optionsError:"An error has occurred",step:"Step",stepActive:"Active step",stepCompleted:"Step completed",stepInProgress:"Step in progress",stepError:"Step in error",skipLinksAriaLabel:"Skip links",errorMessagePanelCodePrefix:"Error code: ",fileSelect:(e,r)=>e?"Select a directory":r?"Choose files":"Choose a file",fileDropHere:e=>e?"Drag and drop your files here":"Drag and drop your file here",onlySingleFileAllowed:"Only a single file is allowed",fileTypeNotAccepted:e=>e.length>1?"The following files are not of the expected format: ":"The following file is not of the expected format: ",fileSizeExceeded:e=>e.length>1?"The following files exceed the maximum allowed size: ":"The following file exceeds the maximum allowed size: ",clearFile:e=>`Remove file : ${e}`,uploadFileProgressBar:"Upload file progress bar",pagination:"Pagination",paginationResults:(e,r,n,t)=>`${e}-${r} of ${n} ${t!=null?t:"results"}`,paginationResultsAriaLabel:(e,r,n,t)=>`Showing ${e} to ${r} of ${n} ${t!=null?t:"results"}`,linesPerPage:"Lines per page",page:"page",ofTotal:e=>`of ${e}`,previousPage:"Previous page",nextPage:"Next page",results:"results",cnsa:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie",spa:"Service public de l'autonomie",cnsaGoToHomepage:"CNSA Caisse Nationale de solidarit\xE9 pour l'autonomie, go to homepage",spaGoToHomepage:"Service public de l'autonomie, go to homepage",search:"Search",cancel:"Cancel",showTableActionsAnnouncement:"An action bar is now available above the table",selectAllTableRows:"Select all table rows",selectRow:"Select row",showExpandedTableRowHeader:"Show details of table rows",showExpandedTableRow:"Show details",hideExpandedTableRow:"Hide details",reorderTableRowsHeader:"Reorder table rows. Activate form mode to use the rearrange buttons. Press the SPACE or ENTER key on the buttons to activate rearranging. Use the UP and DOWN arrow keys to rearrange the row. Press the SPACE or ENTER key to confirm the new row position. Exit form mode to navigate between other table elements.",startReorderTableRow:"Reorder row",cnsaFooterLogoLabel:"Service public de l'autonomie",openAll:"Open all",closeAll:"Close all",numberSelected:e=>`${e} selected`,deselectAll:"Deselect all",selectAll:"Select all",seeAll:e=>`See all (${e})`,seeMore:"See more",columns:"Columns",increase:"Increase",decrease:"Decrease",reinitialize:"Reinitialize",validate:"Validate",filterReset:"Reinitialize",filterSubmit:"Validate",valuesSelected:"values selected",optionsAvailable:"options available",selectValue:e=>`Select ${e?"values":"a value"}`,lessThan:"less than",moreThan:"more than",min:"Min",max:"Max",clearButton:"Clear value",hours:e=>`${e} Hour${Number(e)>1?"s":""}`,minutes:e=>`${e} Minute${Number(e)>1?"s":""}`,seconds:e=>`${e} Second${Number(e)>1?"s":""}`,milliseconds:e=>`${e} Millisecond${Number(e)>1?"s":""}`,selectedTime:"Selected time :",day:"Day",month:"Month",year:"Year",dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY",selectedDate:"Selected date : ",selectedDates:"Selected dates : ",enhancedMonth:e=>{switch(e){case 1:return"1 - January";case 2:return"2 - February";case 3:return"3 - March";case 4:return"4 - April";case 5:return"5 - May";case 6:return"6 - June";case 7:return"7 - July";case 8:return"8 - August";case 9:return"9 - September";case 10:return"10 - October";case 11:return"11 - November";case 12:return"12 - December";default:return""}},monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",pickerRange:"Choose a date range",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year",startDate:"Start date",endDate:"End date",invalidDate:"Invalid date",invalidStartDate:"Invalid start date",invalidEndDate:"Invalide end date",tableOfContents:"Table of contents :",userMenu:"User Menu",switchOn:"On",switchOff:"Off",sidenav:"Side navigation",toggleSidenav:"Toggle side navigation",copied:"Copied",copyError:"Copy error",info:"Information",warning:"Warning",error:"Error",success:"Success",fr_FR:"France",fr_GP:"Guadeloupe",fr_GF:"Guiana",fr_MQ:"Martinique",fr_NC:"New Caledonia",fr_PF:"French Polynesia",fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"R\xE9union and Mayotte",fr_WF:"Wallis and Futuna"};i(l);var v=l;export{v as a,d as b,a as c};
@@ -0,0 +1,28 @@
1
+ import{a as A}from"./chunk.OFITABL5.js";import{a as S}from"./chunk.FNWVRCNG.js";import{b as o,c as s}from"./chunk.QTD6NQFL.js";import{a as f}from"./chunk.PIG773U2.js";import{a as p}from"./chunk.ELL45QD3.js";import{c as m}from"./chunk.LBAIMDY3.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as h,b as c}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var a=class extends S{constructor(){super(...arguments);this.hasSlotController=new p(this,"toolbar");this.localize=new m(this);this.showTableActions=!1}getActionBarAndToolbar(){return{actionBar:this.querySelector("dsa-table-action"),toolbar:this.querySelector("dsa-table-toolbar")}}getLoadingTargets(){return[this.querySelector("dsa-table-caption"),this.querySelector("dsa-table-head"),this.querySelector("dsa-table-body"),this.querySelector("dsa-pagination")]}connectedCallback(){super.connectedCallback(),this.handleTableSelection=this.handleTableSelection.bind(this),this.handleTableActionsClose=this.handleTableActionsClose.bind(this),this.addEventListener("dsa-table-row-all-selected",this.handleTableSelection),this.addEventListener("dsa-table-row-selected",this.handleTableSelection),this.addEventListener("dsa-table-actions-close",this.handleTableActionsClose)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dsa-table-row-all-selected",this.handleTableSelection),this.removeEventListener("dsa-table-row-selected",this.handleTableSelection),this.removeEventListener("dsa-table-actions-close",this.handleTableActionsClose)}handleTableActionsClose(){this.showTableActions=!1;let t=this.querySelector("dsa-table-action"),e=this.querySelector("dsa-table-header-row");t&&e&&t.deselectAllOnClose&&([...this.querySelectorAll("dsa-table-row")].forEach(d=>{d.selected&&(d.selected=!1)}),e.checkbox.checked&&(e.checkbox.checked=!1),e.checkbox.indeterminate&&(e.checkbox.indeterminate=!1),e.selected&&(e.selected=!1))}handleTableSelection(t){this.showTableActions=t.detail.selectedRows.length>0}handleCaptionSlotChange(){this.linkCaptionAndTable()}handleTableSlotChange(){this.linkCaptionAndTable()}linkCaptionAndTable(){let t=this.querySelector("dsa-table-caption"),e=this.querySelector("dsa-table");if(!t||!e||t.id||e.getAttribute("aria-labelledby"))return;let n=Math.floor(Math.random()*999999999).toString();o(t,"id",n),o(e,"aria-labelledby",n)}handleShowTableActions(){let{actionBar:t,toolbar:e}=this.getActionBarAndToolbar();t!==null&&(this.showTableActions?o(t,"show","true"):s(t,"show")),e!==null&&(this.showTableActions?(o(e,"tabindex","-1"),o(e,"aria-hidden","true")):(s(e,"tabindex"),s(e,"aria-hidden")))}handleLoading(){let t=this.getLoadingTargets();this.loading?t.forEach(e=>{e&&o(e,"loading","true")}):t.forEach(e=>{e&&s(e,"loading")})}handleSkeletonEffectChange(){this.getLoadingTargets().forEach(e=>{e&&o(e,"skeleton-effect",this.skeletonEffect)})}render(){var n;let t=this.hasSlotController.test("toolbar"),e=this.hasSlotController.test("action");return r`
2
+ <slot
3
+ part="caption"
4
+ class="slot-caption"
5
+ name="caption"
6
+ @slotchange=${this.handleCaptionSlotChange}
7
+ ></slot>
8
+ <slot class="slot-export" part="export" name="export"></slot>
9
+ <div
10
+ part="bar-container"
11
+ class=${b({"bar-container":!0,"bar-container--has-toolbar":t,"bar-container--has-action":e})}
12
+ >
13
+ <slot class="slot-toolbar" part="toolbar" name="toolbar"></slot>
14
+ <slot class="slot-action" part="action" name="action"></slot>
15
+ </div>
16
+ <slot
17
+ class="slot-table"
18
+ part="table"
19
+ name="table"
20
+ @slotchange=${this.handleTableSlotChange}
21
+ ></slot>
22
+ <slot class="slot-pagination" part="pagination" name="pagination"></slot>
23
+ <dsa-visually-hidden aria-live="polite" aria-atomic="true">
24
+ ${this.showTableActions?r`<span
25
+ >${(n=this.actionsAnnouncement)!=null?n:this.localize.term("showTableActionsAnnouncement")}</span
26
+ >`:""}
27
+ </dsa-visually-hidden>
28
+ `}};a.styles=A,a.dependencies={"dsa-visually-hidden":f},l([c({attribute:"show-table-actions",reflect:!0,type:Boolean})],a.prototype,"showTableActions",2),l([c({attribute:"actions-announcement",type:String})],a.prototype,"actionsAnnouncement",2),l([i("showTableActions")],a.prototype,"handleShowTableActions",1),l([i("loading")],a.prototype,"handleLoading",1),l([i("skeletonEffect")],a.prototype,"handleSkeletonEffectChange",1),a=l([h("dsa-table-container")],a);export{a};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk.RU4YXLMR.js";import{a as m}from"./chunk.QOIUR37X.js";import{a as h}from"./chunk.FNWVRCNG.js";import{a as o}from"./chunk.BWEPOOQP.js";import{a as n,b as i}from"./chunk.KBZ32KWP.js";import{a as s}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";var e=class extends h{constructor(){super(...arguments);this.role="rowgroup"}handleDefaultSlotChange(){let t=this.parentElement;t instanceof m&&(customElements.get("dsa-table")?(t.handleRowExpandable(),t.handleRowSelectable(),t.handleRowReorderable(),t.handleHeaderCellsCount(),t.handleSizeChange()):customElements.whenDefined("dsa-table").then(()=>{this.handleDefaultSlotChange()}))}getAllRows(){return[...this.querySelectorAll("dsa-table-row")]}getAllCells(){return[...this.querySelectorAll("dsa-table-cell")]}handleLoading(){this.setAttribute("aria-busy",this.loading.toString()),this.getAllRows().forEach(l=>this.loading?l.setAttribute("loading","true"):l.removeAttribute("loading")),this.getAllCells().forEach(l=>this.loading?l.setAttribute("loading","true"):l.removeAttribute("loading"))}handleSkeletonEffectChange(){this.getAllCells().forEach(r=>r.setAttribute("skeleton-effect",this.skeletonEffect))}render(){return s` <slot @slotchange=${this.handleDefaultSlotChange}></slot> `}};e.styles=c,a([i({reflect:!0})],e.prototype,"role",2),a([o("loading")],e.prototype,"handleLoading",1),a([o("skeletonEffect")],e.prototype,"handleSkeletonEffectChange",1),e=a([n("dsa-table-body")],e);export{e as a};
@@ -0,0 +1,66 @@
1
+ import{a as _}from"./chunk.JPOWE7L2.js";import{a as q}from"./chunk.S2RTEOQU.js";import{b as y,c as v}from"./chunk.QTD6NQFL.js";import{a as T}from"./chunk.PIG773U2.js";import{a as M}from"./chunk.NJBAMERR.js";import{a as w}from"./chunk.SWEIVB73.js";import{a as x}from"./chunk.ELL45QD3.js";import{b as E,c as I,d as k,e as B}from"./chunk.FWTZS7LK.js";import{a as b}from"./chunk.B4KFHYLS.js";import{d as R}from"./chunk.ZBHHLRFH.js";import{a as m}from"./chunk.BWEPOOQP.js";import{a as C,b as l,c as f,d as p,f as V}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var a=class extends V{constructor(){super(...arguments);this.formControlController=new E(this);this.hasSlotController=new x(this,"help-text","label");this.customValidityMessage="";this.customValidityError="";this.hasRadioButtons=!1;this.hasRadioCards=!1;this.readonlyRadioButtonValue=new Map;this.defaultValue="";this.label="";this.helpText="";this.description="";this.name="option";this.value="";this.deselectable=!1;this.form="";this.required=!1;this.disabled=!1;this.readonly=!1;this.horizontal=!1;this.error=!1;this.errorMessage="";this.hideLabel=!1}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?B:t?k:I}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){let t=[...this.querySelectorAll("dsa-radio, dsa-radio-button, dsa-radio-card")];return this.hasRadioButtons=t.some(e=>e.tagName.toLowerCase()==="dsa-radio-button"),this.hasRadioCards=t.some(e=>e.tagName.toLowerCase()==="dsa-radio-card"),t}handleRadioClick(t){let e=t.target.closest("dsa-radio, dsa-radio-button, dsa-radio-card");if(!e||e.disabled||e.readonly||this.disabled||this.readonly)return;let i=this.getAllRadios(),o=this.value;e.value!==o?(this.value=e.value,this.updateCheckedRadio()):this.deselectable&&(this.value="",i.forEach(n=>{n.checked=!1})),this.value!==o&&this.emit("dsa-change"),this.emit("dsa-input")}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key)||this.disabled||this.readonly)return;let e=this.getAllRadios(),i=e.filter(d=>!this.disabled&&!d.disabled&&(!d.readonly||d.checked)),o=i.length;if(o===0)return;let n=i.findIndex(d=>d.matches(":focus")),h=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,u=this.value,r=n+h;if(r=q(r,o),e.forEach(d=>{if(d.checked&&(d.checked=!1),this.hasRadioButtons||this.hasRadioCards){let g=d.button;g.tabIndex!==-1&&(g.tabIndex=-1)}else d.tabIndex!==-1&&(d.tabIndex=-1)}),h===0?(i[r].checked=this.deselectable?i[r].value!==u:!0,this.value=i[r].checked?i[r].value:""):(this.value=i[r].readonly||i[n].readonly&&i[n].checked?this.value:i[r].value,i[r].checked=this.value===i[r].value),!this.hasRadioButtons&&!this.hasRadioCards)i[r].tabIndex=0,i[r].focus();else{let d=i[r];d.button.tabIndex=0,d.button.focus()}this.value!==u&&(this.emit("dsa-change"),this.emit("dsa-input")),t.preventDefault()}handleLabelClick(){this.focus()}handleSlotChange(){if(customElements.get("dsa-radio")||customElements.get("dsa-radio-button")||customElements.get("dsa-radio-card")){let t=this.getAllRadios();this.readonlyRadioButtonValue.clear(),t.forEach(e=>{e.error!==this.error&&(e.error=this.error),this.required?y(e,"aria-required","true"):v(e,"aria-required"),(this.hasRadioButtons||this.hasRadioCards)&&e.readonly&&this.readonlyRadioButtonValue.set(e.value,!0),e.parentDisabled!==this.disabled&&(e.parentDisabled=this.disabled),e.parentReadonly!==this.readonly&&(e.parentReadonly=this.readonly)}),this.updateCheckedRadio()}else customElements.whenDefined("dsa-radio").then(()=>this.handleSlotChange()),customElements.whenDefined("dsa-radio-button").then(()=>this.handleSlotChange()),customElements.whenDefined("dsa-radio-card").then(()=>this.handleSlotChange())}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),setTimeout(()=>{this.focus()},0)}updateCheckedRadio(){this.getAllRadios().forEach(e=>{var o;let i=e.value===this.value;if(e.checked!==i&&(e.checked=i),!this.value&&this.required?y(e,"aria-invalid","true"):v(e,"aria-invalid"),this.hasRadioButtons||this.hasRadioCards){let n=e,h=(o=this.readonlyRadioButtonValue.get(this.value))!=null?o:n.readonly;n.readonly!==h&&(n.readonly=h)}}),this.updateTabIndexes(),this.formControlController.setValidity(this.validity.valid)}getDescriptionIds(){let t=[];return this.error&&(t=["error-text"]),t=[...t,"help-text","description"],t.join(" ")}updateTabIndexes(){let t=this.getAllRadios(),e=t.findIndex(o=>!o.disabled&&(!o.readonly||o.checked)),i=this.value!==""&&t.some(o=>o.value===this.value);t.forEach((o,n)=>{if(this.disabled){o.tabIndex=-1;return}let h=o.checked&&!o.disabled||!i&&n===e&&!this.readonly;if(this.hasRadioButtons||this.hasRadioCards){let u=o;customElements.whenDefined(this.hasRadioButtons?"dsa-radio-button":"dsa-radio-card").then(()=>{let r=h?0:-1;u.button.tabIndex!==r&&(u.button.tabIndex=r)})}else{let u=h?0:-1;o.tabIndex!==u&&(o.tabIndex=u)}})}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}handleErrorChange(){this.getAllRadios().forEach(t=>{t.error!==this.error&&(t.error=this.error)})}handleDisabledChange(){this.getAllRadios().forEach(t=>{t.parentDisabled!==this.disabled&&(t.parentDisabled=this.disabled)})}handleReadonlyChange(){this.getAllRadios().forEach(t=>{t.parentReadonly!==this.readonly&&(t.parentReadonly=this.readonly)}),this.updateTabIndexes()}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.error=!1,this.customValidityError=this.customValidityMessage!==""?this.customValidityMessage:t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){let e=this.getAllRadios(),i=e.find(h=>h.checked),o=e.find(h=>!h.disabled),n=i||o;n&&n.focus(t)}render(){let t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,o=this.helpText?!0:!!e;return i||b("<dsa-radio-group> requires a label attribute or a label slot for accessibility"),this.error&&!this.errorMessage&&b("<dsa-radio-group> requires an error-message attribute for accessibility when the error attribute is set"),c`
2
+ <fieldset
3
+ part="form-control"
4
+ class=${R({"form-control":!0,"form-control--error":this.error,"form-control--medium":!0,"form-control--radio-group":!0,"form-control--has-label":i,"form-control--has-help-text":o,"form-control--has-buttons":this.hasRadioButtons,"form-control--has-cards":this.hasRadioCards,"form-control--options-horizontal":!!this.horizontal})}
5
+ role="radiogroup"
6
+ aria-labelledby="label ${this.getDescriptionIds()}"
7
+ aria-invalid=${this.error}
8
+ >
9
+ ${this.hideLabel?c`<dsa-visually-hidden id="label"
10
+ ><slot name="label">${this.label}</slot></dsa-visually-hidden
11
+ >`:c`
12
+ <span
13
+ part="form-control-label"
14
+ id="label"
15
+ class="form-control__label"
16
+ aria-hidden=${i?"false":"true"}
17
+ @click=${this.handleLabelClick}
18
+ >
19
+ ${this.required?c`<span class="form-control__label-required">*</span>`:""}
20
+ <slot name="label">${this.label}</slot>
21
+ </span>
22
+ `}
23
+
24
+ <slot name="tooltip" class="form-control__tooltip"></slot>
25
+
26
+ <div
27
+ part="form-control-input"
28
+ class="form-control-input form-control__field"
29
+ >
30
+ <dsa-visually-hidden>
31
+ <label class="radio-group__validation">
32
+ <input
33
+ type="text"
34
+ class="radio-group__validation-input"
35
+ ?required=${this.required}
36
+ tabindex="-1"
37
+ hidden
38
+ @invalid=${this.handleInvalid}
39
+ />
40
+ </label>
41
+ </dsa-visually-hidden>
42
+
43
+ <slot
44
+ @click=${this.handleRadioClick}
45
+ @keydown=${this.handleKeyDown}
46
+ @slotchange=${this.handleSlotChange}
47
+ class="form-control__options"
48
+ ></slot>
49
+ </div>
50
+ <slot
51
+ name="help-text"
52
+ part="form-control-help-text"
53
+ id="help-text"
54
+ class="form-control__help-text"
55
+ >
56
+ ${this.helpText}
57
+ </slot>
58
+
59
+ ${this.error?w(this.customValidityError!==""?this.customValidityError:this.errorMessage):""}
60
+ ${this.description!==""?c`
61
+ <p id="description" class="form-control__description">
62
+ ${this.description}
63
+ </p>
64
+ `:""}
65
+ </fieldset>
66
+ `}};a.styles=_,a.dependencies={"dsa-error-text":M,"dsa-visually-hidden":T},s([p("slot:not([name])")],a.prototype,"defaultSlot",2),s([p(".radio-group__validation-input")],a.prototype,"validationInput",2),s([f()],a.prototype,"hasRadioButtons",2),s([f()],a.prototype,"hasRadioCards",2),s([f()],a.prototype,"readonlyRadioButtonValue",2),s([f()],a.prototype,"defaultValue",2),s([l()],a.prototype,"label",2),s([l({attribute:"help-text"})],a.prototype,"helpText",2),s([l({attribute:"description"})],a.prototype,"description",2),s([l()],a.prototype,"name",2),s([l({reflect:!0})],a.prototype,"value",2),s([l({type:Boolean,reflect:!0})],a.prototype,"deselectable",2),s([l({reflect:!0})],a.prototype,"form",2),s([l({type:Boolean,reflect:!0})],a.prototype,"required",2),s([l({type:Boolean,reflect:!0})],a.prototype,"disabled",2),s([l({type:Boolean,reflect:!0})],a.prototype,"readonly",2),s([l({type:Boolean})],a.prototype,"horizontal",2),s([l({type:Boolean})],a.prototype,"error",2),s([l({attribute:"error-message",converter:{fromAttribute:t=>t?t.split("|"):"",toAttribute:t=>typeof t=="string"?t:t.join("|")}})],a.prototype,"errorMessage",2),s([l({type:Boolean,attribute:"hide-label"})],a.prototype,"hideLabel",2),s([m("value")],a.prototype,"handleValueChange",1),s([m("error")],a.prototype,"handleErrorChange",1),s([m("disabled")],a.prototype,"handleDisabledChange",1),s([m("readonly")],a.prototype,"handleReadonlyChange",1),a=s([C("dsa-radio-group")],a);export{a};
@@ -1,4 +1,4 @@
1
- import{a as I}from"./chunk.YRQ4GUXM.js";import{a as L}from"./chunk.XVTFPCEL.js";import{a as d,c as h}from"./chunk.TV2TMO2H.js";import{c as w}from"./chunk.GM4KTNXL.js";import{c as g}from"./chunk.KD3BHBHK.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as y,b as i,c as p,d as n,f}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var t=class extends f{constructor(){super(...arguments);this.localize=new w(this);this.isCopying=!1;this.status="rest";this.value="";this.from="";this.disabled=!1;this.copyLabel="";this.successLabel="";this.errorLabel="";this.tooltipPlacement="top";this.hoist=!1;this.size="medium"}async handleCopy(){if(this.disabled||this.isCopying)return;this.isCopying=!0;let e=this.value;if(this.from){let o=this.getRootNode(),a=this.from.includes("."),r=this.from.includes("[")&&this.from.includes("]"),l=this.from,c="";a?[l,c]=this.from.trim().split("."):r&&([l,c]=this.from.trim().replace(/\]$/,"").split("["));let m="getElementById"in o?o.getElementById(l):null;m?r?e=m.getAttribute(c)||"":a?e=m[c]||"":e=m.textContent||"":(this.showStatus("error"),this.emit("dsa-error"))}if(!e)this.showStatus("error"),this.emit("dsa-error");else try{await navigator.clipboard.writeText(e),this.showStatus("success"),this.emit("dsa-copy",{detail:{value:e}})}catch(o){this.showStatus("error"),this.emit("dsa-error")}}async showStatus(e){let o=this.successLabel||this.localize.term("copied"),a=this.errorLabel||this.localize.term("copyError"),r=e==="success"?this.successIcon:this.errorIcon,l=h(this,"copy.in",{dir:"ltr"}),c=h(this,"copy.out",{dir:"ltr"});this.tooltip.content=e==="success"?o:a,await this.copyIcon.animate(c.keyframes,c.options).finished,this.copyIcon.hidden=!0,this.status=e,r.hidden=!1,await r.animate(l.keyframes,l.options).finished,this.isCopying=!1}async resetStatus(){if(this.status!=="rest"){let e=this.copyLabel||this.localize.term("copy"),o=this.status==="success"?this.successIcon:this.errorIcon,a=h(this,"copy.in",{dir:"ltr"}),r=h(this,"copy.out",{dir:"ltr"});await o.animate(r.keyframes,r.options).finished,o.hidden=!0,this.status="rest",this.copyIcon.hidden=!1,await this.copyIcon.animate(a.keyframes,a.options).finished,this.tooltip.content=e}}render(){let e=this.copyLabel||this.localize.term("copy");return u`
1
+ import{a as I}from"./chunk.KX5QV54N.js";import{a as L}from"./chunk.XVTFPCEL.js";import{a as d,c as h}from"./chunk.TV2TMO2H.js";import{c as w}from"./chunk.LBAIMDY3.js";import{c as g}from"./chunk.KD3BHBHK.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as y,b as i,c as p,d as n,f}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{f as s}from"./chunk.IZ2HVRME.js";var t=class extends f{constructor(){super(...arguments);this.localize=new w(this);this.isCopying=!1;this.status="rest";this.value="";this.from="";this.disabled=!1;this.copyLabel="";this.successLabel="";this.errorLabel="";this.tooltipPlacement="top";this.hoist=!1;this.size="medium"}async handleCopy(){if(this.disabled||this.isCopying)return;this.isCopying=!0;let e=this.value;if(this.from){let o=this.getRootNode(),a=this.from.includes("."),r=this.from.includes("[")&&this.from.includes("]"),l=this.from,c="";a?[l,c]=this.from.trim().split("."):r&&([l,c]=this.from.trim().replace(/\]$/,"").split("["));let m="getElementById"in o?o.getElementById(l):null;m?r?e=m.getAttribute(c)||"":a?e=m[c]||"":e=m.textContent||"":(this.showStatus("error"),this.emit("dsa-error"))}if(!e)this.showStatus("error"),this.emit("dsa-error");else try{await navigator.clipboard.writeText(e),this.showStatus("success"),this.emit("dsa-copy",{detail:{value:e}})}catch(o){this.showStatus("error"),this.emit("dsa-error")}}async showStatus(e){let o=this.successLabel||this.localize.term("copied"),a=this.errorLabel||this.localize.term("copyError"),r=e==="success"?this.successIcon:this.errorIcon,l=h(this,"copy.in",{dir:"ltr"}),c=h(this,"copy.out",{dir:"ltr"});this.tooltip.content=e==="success"?o:a,await this.copyIcon.animate(c.keyframes,c.options).finished,this.copyIcon.hidden=!0,this.status=e,r.hidden=!1,await r.animate(l.keyframes,l.options).finished,this.isCopying=!1}async resetStatus(){if(this.status!=="rest"){let e=this.copyLabel||this.localize.term("copy"),o=this.status==="success"?this.successIcon:this.errorIcon,a=h(this,"copy.in",{dir:"ltr"}),r=h(this,"copy.out",{dir:"ltr"});await o.animate(r.keyframes,r.options).finished,o.hidden=!0,this.status="rest",this.copyIcon.hidden=!1,await this.copyIcon.animate(a.keyframes,a.options).finished,this.tooltip.content=e}}render(){let e=this.copyLabel||this.localize.term("copy");return u`
2
2
  <dsa-tooltip
3
3
  class=${b({"copy-button":!0,"copy-button--success":this.status==="success","copy-button--error":this.status==="error","copy-button--disabled":this.disabled,"copy-button--small":this.size==="small","copy-button--medium":this.size==="medium","copy-button--large":this.size==="large"})}
4
4
  content=${e}
@@ -1,4 +1,4 @@
1
- import{a as t}from"./chunk.UMC4I57R.js";import{a}from"./chunk.6G2FNLAV.js";var i=a`
1
+ import{a as t}from"./chunk.UMC4I57R.js";import{a}from"./chunk.6G2FNLAV.js";var r=a`
2
2
  ${t}
3
3
 
4
4
  :host {
@@ -15,20 +15,20 @@ import{a as t}from"./chunk.UMC4I57R.js";import{a}from"./chunk.6G2FNLAV.js";var i
15
15
  min-width: 100%;
16
16
  }
17
17
 
18
- [part~='caption']::slotted(*) {
18
+ .slot-caption::slotted(*) {
19
19
  grid-area: caption;
20
20
  }
21
21
 
22
- [part~='export']::slotted(*) {
22
+ .slot-export::slotted(*) {
23
23
  grid-area: export;
24
24
  margin-top: var(--dsa-spacing-12);
25
25
  }
26
26
 
27
- [part~='table']::slotted(*) {
27
+ .slot-table::slotted(*) {
28
28
  grid-area: table;
29
29
  }
30
30
 
31
- [part~='bar-container'] {
31
+ .bar-container {
32
32
  grid-area: bar;
33
33
  position: relative;
34
34
  }
@@ -43,16 +43,16 @@ import{a as t}from"./chunk.UMC4I57R.js";import{a}from"./chunk.6G2FNLAV.js";var i
43
43
  z-index: 10;
44
44
  }
45
45
 
46
- .bar-container--has-toolbar [part~='action']::slotted(*) {
46
+ .bar-container--has-toolbar .slot-action::slotted(*) {
47
47
  position: absolute;
48
- bottom: 0px;
49
- left: 0px;
48
+ bottom: 0;
49
+ left: 0;
50
50
  }
51
51
 
52
- [part~='pagination']::slotted(*) {
52
+ .slot-pagination::slotted(*) {
53
53
  grid-area: pagination;
54
54
  display: block;
55
55
  padding: var(--dsa-spacing-12) var(--dsa-spacing-8);
56
56
  margin-top: var(--dsa-spacing-12);
57
57
  }
58
- `;export{i as a};
58
+ `;export{r as a};
@@ -1,4 +1,4 @@
1
- import{a as T}from"./chunk.FX5UP23Z.js";import{a as K}from"./chunk.U4TME7DS.js";import{d as I,f as p,g as H}from"./chunk.IFSGAJQ4.js";import{b as N}from"./chunk.FWTZS7LK.js";import{a as O}from"./chunk.NIRNX67K.js";import{c as L}from"./chunk.GM4KTNXL.js";import{a as l}from"./chunk.2RF4WD6T.js";import{a as v}from"./chunk.BWEPOOQP.js";import{a as V,b as s,c as u,d as f,f as _}from"./chunk.KBZ32KWP.js";import{a as M}from"./chunk.6G2FNLAV.js";import{a as w}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var P=M`
1
+ import{a as T}from"./chunk.FX5UP23Z.js";import{a as K}from"./chunk.U4TME7DS.js";import{d as I,f as p,g as H}from"./chunk.IFSGAJQ4.js";import{b as N}from"./chunk.FWTZS7LK.js";import{a as O}from"./chunk.NIRNX67K.js";import{c as L}from"./chunk.LBAIMDY3.js";import{a as l}from"./chunk.2RF4WD6T.js";import{a as v}from"./chunk.BWEPOOQP.js";import{a as V,b as s,c as u,d as y,f as _}from"./chunk.KBZ32KWP.js";import{a as M}from"./chunk.6G2FNLAV.js";import{a as w}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";var P=M`
2
2
  .input-date__value-input {
3
3
  position: absolute;
4
4
  top: 0;
@@ -17,8 +17,8 @@ import{a as T}from"./chunk.FX5UP23Z.js";import{a as K}from"./chunk.U4TME7DS.js";
17
17
  /* Reset styles for input[type="number"] */
18
18
  input[type='number'] {
19
19
  -moz-appearance: textfield;
20
- -webkit-appearance: none;
21
- appearance: none;
20
+ -webkit-appearance: textfield;
21
+ appearance: textfield;
22
22
  border: none;
23
23
  outline: none;
24
24
  background: none;
@@ -67,7 +67,7 @@ import{a as T}from"./chunk.FX5UP23Z.js";import{a as K}from"./chunk.U4TME7DS.js";
67
67
  #description {
68
68
  display: none;
69
69
  }
70
- `;function Y(c){let k=c.metaKey||c.ctrlKey,t=/^[0-9]$/.test(c.key),e=!k&&!t;return!!(!["Escape","Backspace","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Delete","Enter","PageDown","PageUp","Home","End"].includes(c.key)&&e)}var i=class extends _{constructor(){super(...arguments);this.formControlController=new N(this,{assumeInteractionOn:["dsa-blur","dsa-input","dsa-change"]});this.localize=new L(this);this.focusedInput=[];this.selectedDay="";this.selectedMonth="";this.selectedYear="";this.dateOrder=["day","month","year"];this.delimiter="/";this.lastPressedKey="";this.internalValueChange=!1;this.previousTentativeDate="";this.parentName="";this.description="";this.name="";this.value="";this.defaultValue="";this.disabled=!1;this.error=!1;this.readonly=!1;this.form="";this.required=!1}get valueAsDate(){var t,e;return(e=(t=this.hiddenInput)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(t=this.hiddenInput.valueAsNumber)!=null?t:parseFloat(this.value)}set valueAsNumber(t){this.hiddenInput.valueAsNumber=t,this.value=this.hiddenInput.value}get validity(){return this.hiddenInput.validity}get validationMessage(){return this.hiddenInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleLangChange()}updateDateOrder(){var e,a;let t=new Intl.DateTimeFormat(this.currentLocale,{year:"numeric",month:"2-digit",day:"2-digit"});this.dateOrder=t.formatToParts(new Date).map(r=>r.type).filter(r=>["day","month","year"].includes(r)),this.delimiter=(a=(e=t.formatToParts(new Date).find(r=>r.type==="literal"))==null?void 0:e.value)!=null?a:"/"}getSpinbuttonOrder(){return this.dateOrder.map(t=>{switch(t){case"day":default:return this.dayInput;case"month":return this.monthInput;case"year":return this.yearInput}})}handleBlur(t){this.handleChange();let e=t.currentTarget;setTimeout(()=>{this.focusedInput=this.focusedInput.filter(a=>a!==e),this.focusedInput.length===0&&(this.internalValueChange=!1)},0)}handleChange(){let t=this.value,e=this.dayInput.value,a=this.monthInput.value,r=this.yearInput.value,o=`${r}-${a}-${e}`,h=e!==""&&a!==""&&r!=="",d=e===""&&a===""&&r==="";d?(this.setCustomValidity(""),this.value=""):I(o)?(this.setCustomValidity(""),this.value=o):(this.setCustomValidity(this.localize.term("invalidDate")),this.value=""),this.internalValueChange=!0,this.formControlController.updateValidity(),I(o)||this.formControlController.emitInvalidEvent(event),(this.value!==t||o!==this.previousTentativeDate&&(h||d))&&(this.emit("dsa-change"),this.previousTentativeDate=o)}handleFocus(t){this.focusedInput.length===0&&this.emit("dsa-focus"),this.focusedInput=[...this.focusedInput,t.currentTarget]}handleHiddenInputFocus(){this.getSpinbuttonOrder()[0].focus()}handleSpinbuttonClick(t){t.currentTarget.select()}handleSpinbuttonKeydown(t){let e=t.currentTarget;this.lastPressedKey=t.key,t.key==="Dead"&&(e.blur(),setTimeout(()=>e.focus())),Y(t)&&t.preventDefault(),t.key==="ArrowLeft"&&(t.preventDefault(),this.focusPreviousSpinbutton(e)),t.key==="ArrowRight"&&(t.preventDefault(),this.focusNextSpinbutton(e)),(t.key==="ArrowUp"||t.key==="ArrowDown")&&setTimeout(()=>e.select()),t.key==="Enter"&&this.handleChange()}handleSpinbuttonInput(t){t.stopPropagation();let e=t.currentTarget;switch(Number(e.value)>Number(e.max)&&(e.value=e.value.slice(-1),t.preventDefault(),this.focusNextSpinbutton(e)),e.value!==""&&(e.value=parseInt(e.value).toString(),e.value=e.value.padStart(e===this.yearInput?4:2,"0")),t.currentTarget){case this.dayInput:this.selectedDay=e.value;break;case this.monthInput:this.selectedMonth=e.value;break;case this.yearInput:this.selectedYear=e.value;break}!["ArrowUp","ArrowDown"].includes(this.lastPressedKey)&&+`${e.value}0`>Number(e.max)&&this.focusNextSpinbutton(e),this.setCustomValidity(""),this.emit("dsa-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}focusNextSpinbutton(t){let e=this.getSpinbuttonOrder(),a=e.findIndex(r=>r===t);a+1<e.length&&(e[a+1].focus(),setTimeout(()=>{e[a+1].select()},0))}focusPreviousSpinbutton(t){let e=this.getSpinbuttonOrder(),a=e.findIndex(r=>r===t);a>0&&(e[a-1].focus(),setTimeout(()=>{e[a-1].select()},0))}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){if(this.internalValueChange){this.internalValueChange=!1;return}this.value===""?(this.selectedDay="",this.selectedMonth="",this.selectedYear=""):(this.selectedDay=`${p(this.value).getDate()}`.padStart(2,"0"),this.selectedMonth=`${p(this.value).getMonth()+1}`.padStart(2,"0"),this.selectedYear=`${p(this.value).getFullYear()}`.padStart(4,"0")),await this.updateComplete,this.setCustomValidity(""),this.formControlController.updateValidity()}handleLangChange(){this.currentLocale=this.lang||this.localize.lang(),this.updateDateOrder()}handleFocusChange(){this.focusedInput.length===0&&this.emit("dsa-blur")}focus(t){let e=this.getSpinbuttonOrder()[0];e.focus(t),setTimeout(()=>{e.select()},0)}blur(){var t;(t=this.focusedInput[0])==null||t.blur()}stepUp(t){this.hiddenInput.stepUp(t),this.value!==this.hiddenInput.value&&(this.value=this.hiddenInput.value)}stepDown(t){this.hiddenInput.stepDown(t),this.value!==this.hiddenInput.value&&(this.value=this.hiddenInput.value)}checkValidity(){return this.hiddenInput.checkValidity()}clear(){this.selectedDay="",this.selectedMonth="",this.selectedYear="",this.value=""}getForm(){return this.formControlController.getForm()}reportValidity(){return this.hiddenInput.reportValidity()}setCustomValidity(t){this.hiddenInput.setCustomValidity(t),this.formControlController.updateValidity()}renderSpinbutton(t){var x,E;let e="",a="",r=1,o,h,d,b=p((x=this.min)!=null?x:""),g=p((E=this.max)!=null?E:""),m=this.min?b.getFullYear():1900,y=this.max?g.getFullYear():2500,C=m===y?b.getMonth()+1:1,$=m===y?g.getMonth()+1:12,z=m===y&&C===$?b.getDate():1,U=m===y&&C===$?g.getDate():H(Number(this.selectedMonth),Number(this.selectedYear));switch(t){case"day":e="input-date__day",a=this.localize.term("day"),r=z,o=U,h=this.localize.term("dayPlaceholder"),d=this.selectedDay;break;case"month":e="input-date__month",a=this.localize.term("month"),r=C,o=$,h=this.localize.term("monthPlaceholder"),d=this.selectedMonth;break;case"year":e="input-date__year",a=this.localize.term("year"),r=m,o=y,h=this.localize.term("yearPlaceholder"),d=this.selectedYear;break}return w`
70
+ `;function Y(c){let k=c.metaKey||c.ctrlKey,t=/^[0-9]$/.test(c.key),e=!k&&!t;return!!(!["Escape","Backspace","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Delete","Enter","PageDown","PageUp","Home","End"].includes(c.key)&&e)}var i=class extends _{constructor(){super(...arguments);this.formControlController=new N(this,{assumeInteractionOn:["dsa-blur","dsa-input","dsa-change"]});this.localize=new L(this);this.focusedInput=[];this.selectedDay="";this.selectedMonth="";this.selectedYear="";this.dateOrder=["day","month","year"];this.delimiter="/";this.lastPressedKey="";this.internalValueChange=!1;this.previousTentativeDate="";this.parentName="";this.description="";this.name="";this.value="";this.defaultValue="";this.disabled=!1;this.error=!1;this.readonly=!1;this.form="";this.required=!1}get valueAsDate(){var t,e;return(e=(t=this.hiddenInput)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(t=this.hiddenInput.valueAsNumber)!=null?t:parseFloat(this.value)}set valueAsNumber(t){this.hiddenInput.valueAsNumber=t,this.value=this.hiddenInput.value}get validity(){return this.hiddenInput.validity}get validationMessage(){return this.hiddenInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleLangChange()}updateDateOrder(){var e,n;let t=new Intl.DateTimeFormat(this.currentLocale,{year:"numeric",month:"2-digit",day:"2-digit"});this.dateOrder=t.formatToParts(new Date).map(r=>r.type).filter(r=>["day","month","year"].includes(r)),this.delimiter=(n=(e=t.formatToParts(new Date).find(r=>r.type==="literal"))==null?void 0:e.value)!=null?n:"/"}getSpinbuttonOrder(){return this.dateOrder.map(t=>{switch(t){case"day":default:return this.dayInput;case"month":return this.monthInput;case"year":return this.yearInput}})}handleBlur(t){this.handleChange();let e=t.currentTarget;setTimeout(()=>{this.focusedInput=this.focusedInput.filter(n=>n!==e),this.focusedInput.length===0&&(this.internalValueChange=!1)},0)}handleChange(){let t=this.value,e=this.dayInput.value,n=this.monthInput.value,r=this.yearInput.value,o=`${r}-${n}-${e}`,h=e!==""&&n!==""&&r!=="",d=e===""&&n===""&&r==="";d?(this.setCustomValidity(""),this.value=""):I(o)?(this.setCustomValidity(""),this.value=o):(this.setCustomValidity(this.localize.term("invalidDate")),this.value=""),this.internalValueChange=!0,this.formControlController.updateValidity(),I(o)||this.formControlController.emitInvalidEvent(event),(this.value!==t||o!==this.previousTentativeDate&&(h||d))&&(this.emit("dsa-change"),this.previousTentativeDate=o)}handleFocus(t){this.focusedInput.length===0&&this.emit("dsa-focus"),this.focusedInput=[...this.focusedInput,t.currentTarget]}handleHiddenInputFocus(){this.getSpinbuttonOrder()[0].focus()}handleSpinbuttonClick(t){t.currentTarget.select()}handleSpinbuttonKeydown(t){let e=t.currentTarget;this.lastPressedKey=t.key,t.key==="Dead"&&(e.blur(),setTimeout(()=>e.focus())),Y(t)&&t.preventDefault(),t.key==="ArrowLeft"&&(t.preventDefault(),this.focusPreviousSpinbutton(e)),t.key==="ArrowRight"&&(t.preventDefault(),this.focusNextSpinbutton(e)),(t.key==="ArrowUp"||t.key==="ArrowDown")&&setTimeout(()=>e.select()),t.key==="Enter"&&this.handleChange()}handleSpinbuttonInput(t){t.stopPropagation();let e=t.currentTarget;switch(Number(e.value)>Number(e.max)&&(e.value=e.value.slice(-1),t.preventDefault(),this.focusNextSpinbutton(e)),e.value!==""&&(e.value=parseInt(e.value).toString(),e.value=e.value.padStart(e===this.yearInput?4:2,"0")),t.currentTarget){case this.dayInput:this.selectedDay=e.value;break;case this.monthInput:this.selectedMonth=e.value;break;case this.yearInput:this.selectedYear=e.value;break}!["ArrowUp","ArrowDown"].includes(this.lastPressedKey)&&+`${e.value}0`>Number(e.max)&&this.focusNextSpinbutton(e),this.setCustomValidity(""),this.emit("dsa-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}focusNextSpinbutton(t){let e=this.getSpinbuttonOrder(),n=e.findIndex(r=>r===t);n+1<e.length&&(e[n+1].focus(),setTimeout(()=>{e[n+1].select()},0))}focusPreviousSpinbutton(t){let e=this.getSpinbuttonOrder(),n=e.findIndex(r=>r===t);n>0&&(e[n-1].focus(),setTimeout(()=>{e[n-1].select()},0))}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){if(this.internalValueChange){this.internalValueChange=!1;return}this.value===""?(this.selectedDay="",this.selectedMonth="",this.selectedYear=""):(this.selectedDay=`${p(this.value).getDate()}`.padStart(2,"0"),this.selectedMonth=`${p(this.value).getMonth()+1}`.padStart(2,"0"),this.selectedYear=`${p(this.value).getFullYear()}`.padStart(4,"0")),await this.updateComplete,this.setCustomValidity(""),this.formControlController.updateValidity()}handleLangChange(){this.currentLocale=this.lang||this.localize.lang(),this.updateDateOrder()}handleFocusChange(){this.focusedInput.length===0&&this.emit("dsa-blur")}focus(t){let e=this.getSpinbuttonOrder()[0];e.focus(t),setTimeout(()=>{e.select()},0)}blur(){var t;(t=this.focusedInput[0])==null||t.blur()}stepUp(t){this.hiddenInput.stepUp(t),this.value!==this.hiddenInput.value&&(this.value=this.hiddenInput.value)}stepDown(t){this.hiddenInput.stepDown(t),this.value!==this.hiddenInput.value&&(this.value=this.hiddenInput.value)}checkValidity(){return this.hiddenInput.checkValidity()}clear(){this.selectedDay="",this.selectedMonth="",this.selectedYear="",this.value=""}getForm(){return this.formControlController.getForm()}reportValidity(){return this.hiddenInput.reportValidity()}setCustomValidity(t){this.hiddenInput.setCustomValidity(t),this.formControlController.updateValidity()}renderSpinbutton(t){var x,E;let e="",n="",r=1,o,h,d,b=p((x=this.min)!=null?x:""),g=p((E=this.max)!=null?E:""),m=this.min?b.getFullYear():1900,f=this.max?g.getFullYear():2500,C=m===f?b.getMonth()+1:1,$=m===f?g.getMonth()+1:12,z=m===f&&C===$?b.getDate():1,U=m===f&&C===$?g.getDate():H(Number(this.selectedMonth),Number(this.selectedYear));switch(t){case"day":e="input-date__day",n=this.localize.term("day"),r=z,o=U,h=this.localize.term("dayPlaceholder"),d=this.selectedDay;break;case"month":e="input-date__month",n=this.localize.term("month"),r=C,o=$,h=this.localize.term("monthPlaceholder"),d=this.selectedMonth;break;case"year":e="input-date__year",n=this.localize.term("year"),r=m,o=f,h=this.localize.term("yearPlaceholder"),d=this.selectedYear;break}return w`
71
71
  <input
72
72
  type="number"
73
73
  class=${e}
@@ -75,7 +75,7 @@ import{a as T}from"./chunk.FX5UP23Z.js";import{a as K}from"./chunk.U4TME7DS.js";
75
75
  ?readonly=${this.readonly}
76
76
  aria-disabled=${l(this.readonly?"true":void 0)}
77
77
  ?required=${this.required}
78
- aria-label=${`${a} - ${this.parentName}`}
78
+ aria-label=${`${n} - ${this.parentName}`}
79
79
  aria-describedby="description"
80
80
  aria-invalid=${l(this.error?"true":void 0)}
81
81
  min=${r}
@@ -118,4 +118,4 @@ import{a as T}from"./chunk.FX5UP23Z.js";import{a as K}from"./chunk.U4TME7DS.js";
118
118
  @focus=${this.handleHiddenInputFocus}
119
119
  />
120
120
  <p id="description">${this.description}</p>
121
- `}};i.styles=P,n([f(".input-date__value-input")],i.prototype,"hiddenInput",2),n([f(".input-date__day")],i.prototype,"dayInput",2),n([f(".input-date__month")],i.prototype,"monthInput",2),n([f(".input-date__year")],i.prototype,"yearInput",2),n([u()],i.prototype,"focusedInput",2),n([u()],i.prototype,"currentLocale",2),n([u()],i.prototype,"selectedDay",2),n([u()],i.prototype,"selectedMonth",2),n([u()],i.prototype,"selectedYear",2),n([u()],i.prototype,"dateOrder",2),n([u()],i.prototype,"delimiter",2),n([u()],i.prototype,"lastPressedKey",2),n([s({attribute:"parent-name"})],i.prototype,"parentName",2),n([s()],i.prototype,"description",2),n([s()],i.prototype,"name",2),n([s()],i.prototype,"value",2),n([K()],i.prototype,"defaultValue",2),n([s({type:Boolean,reflect:!0})],i.prototype,"disabled",2),n([s()],i.prototype,"lang",2),n([s({type:Boolean})],i.prototype,"error",2),n([s({type:Boolean,reflect:!0})],i.prototype,"readonly",2),n([s({reflect:!0})],i.prototype,"form",2),n([s({type:Boolean,reflect:!0})],i.prototype,"required",2),n([s()],i.prototype,"min",2),n([s()],i.prototype,"max",2),n([s()],i.prototype,"step",2),n([s({type:Boolean})],i.prototype,"autofocus",2),n([s()],i.prototype,"enterkeyhint",2),n([v("disabled",{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),n([v("value")],i.prototype,"handleValueChange",1),n([v("lang",{waitUntilFirstUpdate:!0})],i.prototype,"handleLangChange",1),n([v("focusedInput",{waitUntilFirstUpdate:!0})],i.prototype,"handleFocusChange",1),i=n([V("dsa-internal-date-field")],i);export{i as a};
121
+ `}};i.styles=P,a([y(".input-date__value-input")],i.prototype,"hiddenInput",2),a([y(".input-date__day")],i.prototype,"dayInput",2),a([y(".input-date__month")],i.prototype,"monthInput",2),a([y(".input-date__year")],i.prototype,"yearInput",2),a([u()],i.prototype,"focusedInput",2),a([u()],i.prototype,"currentLocale",2),a([u()],i.prototype,"selectedDay",2),a([u()],i.prototype,"selectedMonth",2),a([u()],i.prototype,"selectedYear",2),a([u()],i.prototype,"dateOrder",2),a([u()],i.prototype,"delimiter",2),a([u()],i.prototype,"lastPressedKey",2),a([s({attribute:"parent-name"})],i.prototype,"parentName",2),a([s()],i.prototype,"description",2),a([s()],i.prototype,"name",2),a([s()],i.prototype,"value",2),a([K()],i.prototype,"defaultValue",2),a([s({type:Boolean,reflect:!0})],i.prototype,"disabled",2),a([s()],i.prototype,"lang",2),a([s({type:Boolean})],i.prototype,"error",2),a([s({type:Boolean,reflect:!0})],i.prototype,"readonly",2),a([s({reflect:!0})],i.prototype,"form",2),a([s({type:Boolean,reflect:!0})],i.prototype,"required",2),a([s()],i.prototype,"min",2),a([s()],i.prototype,"max",2),a([s()],i.prototype,"step",2),a([s({type:Boolean})],i.prototype,"autofocus",2),a([s()],i.prototype,"enterkeyhint",2),a([v("disabled",{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),a([v("value")],i.prototype,"handleValueChange",1),a([v("lang",{waitUntilFirstUpdate:!0})],i.prototype,"handleLangChange",1),a([v("focusedInput",{waitUntilFirstUpdate:!0})],i.prototype,"handleFocusChange",1),i=a([V("dsa-internal-date-field")],i);export{i as a};
@@ -0,0 +1,8 @@
1
+ import{a as m}from"./chunk.YQPLXJOH.js";import{d}from"./chunk.ZBHHLRFH.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as n,b as s,d as h,f as c}from"./chunk.KBZ32KWP.js";import{a as p}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var r="dsa-step",e=class extends c{constructor(){super(...arguments);this.allSteps=[];this.hideLabel=!1;this.vertical=!1}connectedCallback(){super.connectedCallback()}refreshAllSteps(){this.allSteps=this.defaultSlot?this.defaultSlot.assignedElements({flatten:!0}).filter(l=>l.tagName.toLowerCase()===r).map(l=>l):[]}applyStepProps(l){l.forEach((a,f)=>{let o=this.hideLabel?void 0:f;a.index!==o&&(a.index=o),a.vertical!==this.vertical&&(a.vertical=this.vertical)})}handleDefaultSlotChange(){this.refreshAllSteps(),customElements.get(r)?this.applyStepProps(this.allSteps):customElements.whenDefined(r).then(()=>{this.refreshAllSteps(),this.applyStepProps(this.allSteps)})}handleHideLabelChange(){this.applyStepProps(this.allSteps)}handleVerticalChange(){this.applyStepProps(this.allSteps)}render(){return p`
2
+ <div
3
+ role="list"
4
+ class=${d({stepper:!0,stepper__vertical:this.vertical})}
5
+ >
6
+ <slot @slotchange=${this.handleDefaultSlotChange}> </slot>
7
+ </div>
8
+ `}};e.styles=m,t([h("slot")],e.prototype,"defaultSlot",2),t([s({type:Boolean,attribute:"hide-label"})],e.prototype,"hideLabel",2),t([s({type:Boolean})],e.prototype,"vertical",2),t([i("hideLabel",{waitUntilFirstUpdate:!0})],e.prototype,"handleHideLabelChange",1),t([i("vertical",{waitUntilFirstUpdate:!0})],e.prototype,"handleVerticalChange",1),e=t([n("dsa-stepper")],e);export{e as a};
@@ -0,0 +1 @@
1
+ import{a as S}from"./chunk.V75PDQVT.js";import{b as s,c as d}from"./chunk.QTD6NQFL.js";import{a as w}from"./chunk.BWEPOOQP.js";import{a as f,b as R,f as m}from"./chunk.KBZ32KWP.js";import{a as v}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var l=class extends m{constructor(){super(...arguments);this.suppressHoverClass="reordering-no-hover";this.draggingRow=null;this.dropTargetRow=null;this.rearrangingRow=null;this.role="table";this.size="medium";this.alignment="left"}connectedCallback(){super.connectedCallback(),this.handleRowSelect=this.handleRowSelect.bind(this),this.handleAllRowsSelect=this.handleAllRowsSelect.bind(this),this.handleRowReorderToggle=this.handleRowReorderToggle.bind(this),this.handleRowReorderMove=this.handleRowReorderMove.bind(this),this.handleRowReorderDragStart=this.handleRowReorderDragStart.bind(this),this.handleRowReorderDragEnd=this.handleRowReorderDragEnd.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleWindowDragOver=this.handleWindowDragOver.bind(this),this.handleDrop=this.handleDrop.bind(this),this.handleMouseMoveAfterReorder=this.handleMouseMoveAfterReorder.bind(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeRowSelectionListeners(),this.removeRowReorderListeners(),this.enableRowHover(),this.clearReorderState()}async firstUpdated(){if(!this.selectable)return;let t=this.querySelector(this.selectorHeaderRow);if(t){await t.updateComplete;let e=[...this.querySelectorAll(this.selectorAllRows)];if(t!=null&&t.selected)e.forEach(r=>r.selected=t.selected);else{let o=e.filter(i=>i.selected).length,a=o===e.length;t.checkbox.checked=o>0&&a,t.checkbox.indeterminate=o>0&&!a}}}addRowSelectionListeners(){this.addEventListener("dsa-table-row-change-selection",this.handleRowSelect),this.addEventListener("dsa-table-row-all-change-selection",this.handleAllRowsSelect)}removeRowSelectionListeners(){this.removeEventListener("dsa-table-row-change-selection",this.handleRowSelect),this.removeEventListener("dsa-table-row-all-change-selection",this.handleAllRowsSelect)}addRowReorderListeners(){this.addEventListener("dsa-table-row-reorder-toggle",this.handleRowReorderToggle),this.addEventListener("dsa-table-row-reorder-move",this.handleRowReorderMove),this.addEventListener("dsa-table-row-reorder-drag-start",this.handleRowReorderDragStart),this.addEventListener("dsa-table-row-reorder-drag-end",this.handleRowReorderDragEnd),this.addEventListener("dragover",this.handleDragOver),this.addEventListener("drop",this.handleDrop),window.addEventListener("dragover",this.handleWindowDragOver,!0)}removeRowReorderListeners(){this.removeEventListener("dsa-table-row-reorder-toggle",this.handleRowReorderToggle),this.removeEventListener("dsa-table-row-reorder-move",this.handleRowReorderMove),this.removeEventListener("dsa-table-row-reorder-drag-start",this.handleRowReorderDragStart),this.removeEventListener("dsa-table-row-reorder-drag-end",this.handleRowReorderDragEnd),this.removeEventListener("dragover",this.handleDragOver),this.removeEventListener("drop",this.handleDrop),window.removeEventListener("dragover",this.handleWindowDragOver,!0)}clearDropTarget(){this.dropTargetRow&&(d(this.dropTargetRow,"drop-target"),d(this.dropTargetRow,"drop-target-position"),this.dropTargetRow=null)}clearReorderState(){this.rearrangingRow&&(this.rearrangingRow.rearranging=!1,this.rearrangingRow=null),this.draggingRow&&(d(this.draggingRow,"dragging"),this.draggingRow=null),this.dropTargetRow&&this.clearDropTarget()}handleWindowDragOver(t){!this.reorderable||!this.draggingRow||t.composedPath().includes(this)||this.clearDropTarget()}getRows(){return[...this.querySelectorAll(this.selectorAllRows)]}getRowBlock(t){let e=t.nextElementSibling,r=e!=null&&e.matches(this.selectorAllExpandedRows)?e:null;return{row:t,expandedRow:r}}getNodeAfterRowBlock(t){var r;let{expandedRow:e}=this.getRowBlock(t);return(r=e==null?void 0:e.nextSibling)!=null?r:t.nextSibling}moveRowToIndex(t,e,r){var b,u;let o=this.getRows(),a=o.indexOf(t);if(a<0)return;let i=o.length-1,h=Math.max(0,Math.min(e,i));if(h===a)return;let c=o[h],{expandedRow:g}=this.getRowBlock(t),E=a<h?this.getNodeAfterRowBlock(c):c;(b=t.parentNode)==null||b.insertBefore(t,E),g&&((u=t.parentNode)==null||u.insertBefore(g,t.nextSibling));let p=this.getRows(),A=p.indexOf(t);this.disableRowHoverUntilMouseMove(),this.emit("dsa-table-row-reordered",{detail:{movedRow:t,oldIndex:a,newIndex:A,rows:p,source:r}})}handleMouseMoveAfterReorder(){this.enableRowHover()}disableRowHoverUntilMouseMove(){this.getRows().forEach(t=>{t.classList.contains(this.suppressHoverClass)||t.classList.add(this.suppressHoverClass)}),window.removeEventListener("mousemove",this.handleMouseMoveAfterReorder),window.addEventListener("mousemove",this.handleMouseMoveAfterReorder,{once:!0})}enableRowHover(){this.getRows().forEach(t=>{t.classList.contains(this.suppressHoverClass)&&t.classList.remove(this.suppressHoverClass)}),window.removeEventListener("mousemove",this.handleMouseMoveAfterReorder)}findRowFromEvent(t){let e=t.composedPath().find(r=>{var o;return r instanceof HTMLElement&&((o=r.matches)==null?void 0:o.call(r,this.selectorAllRows))});return e!=null?e:null}handleRowReorderToggle(t){var o;if(!this.reorderable)return;let{row:e}=t.detail;t.stopPropagation();let r=this.rearrangingRow!==e;this.rearrangingRow&&(this.rearrangingRow.rearranging=!1),this.rearrangingRow=r?e:null,e.rearranging=r,(o=e.reorderButton)==null||o.focus()}handleRowReorderMove(t){var h;if(!this.reorderable)return;let{row:e,direction:r}=t.detail;if(t.stopPropagation(),this.rearrangingRow!==e)return;let o=this.getRows(),a=o.indexOf(e);if(a<0)return;let i=r==="up"?Math.max(0,a-1):Math.min(o.length-1,a+1);this.moveRowToIndex(e,i,"keyboard"),(h=e.reorderButton)==null||h.focus()}handleRowReorderDragStart(t){if(!this.reorderable)return;let{row:e}=t.detail;t.stopPropagation(),this.draggingRow=e,s(e,"dragging","true"),this.rearrangingRow&&this.rearrangingRow!==e&&(this.rearrangingRow.rearranging=!1),this.rearrangingRow=e}handleRowReorderDragEnd(){this.clearReorderState()}handleDragOver(t){if(!this.reorderable||!this.draggingRow)return;let e=this.findRowFromEvent(t);if(!e||e===this.draggingRow){this.clearDropTarget();return}t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"),this.dropTargetRow&&this.dropTargetRow!==e&&(d(this.dropTargetRow,"drop-target"),d(this.dropTargetRow,"drop-target-position")),this.dropTargetRow!==e&&(this.dropTargetRow=e,s(e,"drop-target","true"));let r=e.getBoundingClientRect(),a=t.clientY>r.top+r.height/2?"after":"before";e.getAttribute("drop-target-position")!==a&&s(e,"drop-target-position",a)}handleDrop(t){var g;if(!this.reorderable||!this.draggingRow)return;let e=this.findRowFromEvent(t);if(t.preventDefault(),!e||e===this.draggingRow){this.clearReorderState();return}let r=this.getRows(),o=r.indexOf(this.draggingRow),a=r.indexOf(e);if(o<0||a<0){this.clearReorderState();return}let i=e.getBoundingClientRect(),h=t.clientY>i.top+i.height/2,c=a+(h?1:0);o<c&&(c-=1),this.moveRowToIndex(this.draggingRow,c,"pointer"),(g=this.draggingRow.reorderButton)==null||g.focus(),this.clearReorderState()}handleAllRowsSelect(){let t=this.querySelector(this.selectorHeaderRow);if(t===null)return;let e=[...this.querySelectorAll(this.selectorAllRows)];e.forEach(o=>o.selected=t.selected);let r=e.filter(o=>o.selected);this.emit("dsa-table-row-all-selected",{detail:{selectedRows:r}})}handleRowSelect(t){let{target:e}=t,r=[...this.querySelectorAll(this.selectorAllRows)],o=r.filter(c=>c.selected),a=o.length,i=this.querySelector(this.selectorHeaderRow),h=a===r.length;i!==null&&(i.checkbox.checked=a>0&&h,i.checkbox.indeterminate=a>0&&!h),this.emit("dsa-table-row-selected",{detail:{selectedRow:e,selectedRows:o}})}handleRowExpandable(){[...this.querySelectorAll(this.selectorAllRows)].forEach(e=>{this.expandable?s(e,"expandable","true"):d(e,"expandable")})}handleHeaderRowExpandable(){let t=this.querySelector(this.selectorHeaderRow);t!==null&&(this.expandable?s(t,"expandable","true"):d(t,"expandable"))}handleRowReorderable(){[...this.querySelectorAll(this.selectorAllRows)].forEach(e=>{this.reorderable?(s(e,"reorderable","true"),s(e,"draggable","true")):(d(e,"reorderable"),d(e,"draggable"),e.rearranging=!1)})}handleHeaderRowReorderable(){let t=this.querySelector(this.selectorHeaderRow);t&&(this.reorderable?s(t,"reorderable","true"):d(t,"reorderable"))}handleRowSelectable(){[...this.querySelectorAll(this.selectorAllRows)].forEach((e,r)=>{this.selectable===!0&&e.getAttribute("selection-name")===""?s(e,"selection-name",`row-${r}`):this.selectable||s(e,"selection-name","")})}handleHeaderRowSelectable(){let t=this.querySelector(this.selectorHeaderRow);t&&s(t,"selection-name",this.selectable?"header":"")}handleSizeChange(){[...this.querySelectorAll(this.selectorAllRows),...this.querySelectorAll(this.selectorHeaderRow)].forEach(e=>{s(e,"size",this.size)})}handleExpandableChange(){this.handleRowExpandable(),this.handleHeaderRowExpandable()}handleHeaderCellsCount(){let e=[...this.querySelectorAll(this.selectorHeaderCell)].length+ +!!this.expandable+ +!!this.selectable+ +!!this.reorderable;[...this.querySelectorAll(this.selectorAllExpandedRows)].forEach(a=>{s(a,"colspan",String(e))}),[...this.querySelectorAll(this.selectorAllSingleCellRows)].forEach(a=>{s(a,"colspan",String(e))})}handleSortableChange(){this.querySelectorAll(this.selectorHeaderCell).forEach(e=>{this.sortable?s(e,"sortable","true"):d(e,"sortable")})}handleSelectableChange(){this.selectable?this.addRowSelectionListeners():this.removeRowSelectionListeners(),this.handleRowSelectable(),this.handleHeaderRowSelectable()}handleReorderableChange(){this.reorderable?this.addRowReorderListeners():(this.removeRowReorderListeners(),this.clearReorderState()),this.handleRowReorderable(),this.handleHeaderRowReorderable()}handleAlignmentChange(){this.querySelectorAll(this.selectorHeaderCell).forEach(e=>{s(e,"alignment",this.alignment)})}render(){return v` <slot></slot> `}get selectorHeaderCell(){return"dsa-table-header-cell"}get selectorHeaderRow(){return"dsa-table-header-row"}get selectorAllRows(){return"dsa-table-row"}get selectorAllExpandedRows(){return"dsa-table-expanded-row"}get selectorAllSingleCellRows(){return"dsa-table-single-cell-row"}};l.styles=S,n([R({reflect:!0})],l.prototype,"role",2),n([R({reflect:!0})],l.prototype,"size",2),n([R({type:Boolean,reflect:!0})],l.prototype,"sortable",2),n([R({type:Boolean,reflect:!0})],l.prototype,"selectable",2),n([R({type:Boolean,reflect:!0})],l.prototype,"expandable",2),n([R({type:Boolean,reflect:!0})],l.prototype,"reorderable",2),n([R()],l.prototype,"alignment",2),n([w("size",{waitUntilFirstUpdate:!0})],l.prototype,"handleSizeChange",1),n([w("expandable")],l.prototype,"handleExpandableChange",1),n([w(["expandable","selectable","reorderable"])],l.prototype,"handleHeaderCellsCount",1),n([w("sortable")],l.prototype,"handleSortableChange",1),n([w("selectable")],l.prototype,"handleSelectableChange",1),n([w("reorderable")],l.prototype,"handleReorderableChange",1),n([w("alignment",{waitUntilFirstUpdate:!0})],l.prototype,"handleAlignmentChange",1),l=n([f("dsa-table")],l);export{l as a};
@@ -0,0 +1 @@
1
+ function o(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/œ/g,"oe").replace(/-/g," ").toLowerCase().replace(/\s+/g," ").trim()}function s(t,e,r){t.getAttribute(e)!==r&&t.setAttribute(e,r)}function a(t,e){t.hasAttribute(e)&&t.removeAttribute(e)}function c(){return navigator.userAgentData?navigator.userAgentData.platform==="macOS":/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)}export{o as a,s as b,a as c,c as d};
@@ -1,4 +1,4 @@
1
- import{a as h}from"./chunk.ELL45QD3.js";import{a as p}from"./chunk.LIC3WRPD.js";import{a as g}from"./chunk.B4KFHYLS.js";import{b as c}from"./chunk.FDMPUSVV.js";import{c as u}from"./chunk.KD3BHBHK.js";import{a}from"./chunk.2RF4WD6T.js";import{d as i}from"./chunk.ZBHHLRFH.js";import{a as s}from"./chunk.BWEPOOQP.js";import{b as e,d,f as b}from"./chunk.KBZ32KWP.js";import{a as n}from"./chunk.6G2FNLAV.js";import{f as o}from"./chunk.IZ2HVRME.js";var k=n`
1
+ import{b as k,c as v}from"./chunk.QTD6NQFL.js";import{a as h}from"./chunk.ELL45QD3.js";import{a as p}from"./chunk.LIC3WRPD.js";import{a as g}from"./chunk.B4KFHYLS.js";import{b as c}from"./chunk.FDMPUSVV.js";import{c as u}from"./chunk.KD3BHBHK.js";import{a}from"./chunk.2RF4WD6T.js";import{d as i}from"./chunk.ZBHHLRFH.js";import{a as s}from"./chunk.BWEPOOQP.js";import{b as e,d,f as b}from"./chunk.KBZ32KWP.js";import{a as n}from"./chunk.6G2FNLAV.js";import{f as o}from"./chunk.IZ2HVRME.js";var m=n`
2
2
  ${p}
3
3
 
4
4
  .button__prefix,
@@ -59,14 +59,14 @@ import{a as h}from"./chunk.ELL45QD3.js";import{a as p}from"./chunk.LIC3WRPD.js";
59
59
  border-color: var(--dsa-wc-toggle-button-checked-border-color);
60
60
  color: var(--dsa-wc-toggle-button-checked-color);
61
61
  }
62
- .button--toggle:hover.button--checked {
62
+ .button--toggle.button--checked:hover {
63
63
  background-color: var(
64
64
  --dsa-wc-toggle-button-checked-hover-background-color
65
65
  );
66
66
  border-color: var(--dsa-wc-toggle-button-checked-hover-border-color);
67
67
  color: var(--dsa-wc-toggle-button-checked-hover-color);
68
68
  }
69
- .button--toggle:active.button--checked {
69
+ .button--toggle.button--checked:active {
70
70
  background-color: var(
71
71
  --dsa-wc-toggle-button-checked-active-background-color
72
72
  );
@@ -141,7 +141,7 @@ import{a as h}from"./chunk.ELL45QD3.js";import{a as p}from"./chunk.LIC3WRPD.js";
141
141
  .button--checkbox.button--large:not(.button--checked) .button__label {
142
142
  padding-right: 24px;
143
143
  }
144
- `;var t=class extends b{constructor(){super(...arguments);this.hasSlotController=new h(this,"[default]");this.checked=!1;this.parentDisabled=!1;this.disabled=!1;this.size="medium";this.parentReadonly=!1;this.readonly=!1;this.error=!1}handleClick(){}handleBlur(){this.emit("dsa-blur")}handleFocus(){this.emit("dsa-focus")}handleDeactivatedChange(){this.readonly||this.parentReadonly?this.button.setAttribute("aria-disabled","true"):this.button.removeAttribute("aria-disabled")}focus(r){this.button.focus(r)}blur(){this.button.blur()}render(){let r=this.disabled||this.parentDisabled,l=this.readonly||this.parentReadonly;return this.hasSlotController.test("[default]")||g(`<dsa-${this.type}-card> requires an accessible name in the default slot for accessibility`),c`
144
+ `;var t=class extends b{constructor(){super(...arguments);this.hasSlotController=new h(this,"[default]");this.checked=!1;this.parentDisabled=!1;this.disabled=!1;this.size="medium";this.parentReadonly=!1;this.readonly=!1;this.error=!1}handleClick(){}handleBlur(){this.emit("dsa-blur")}handleFocus(){this.emit("dsa-focus")}handleDeactivatedChange(){this.readonly||this.parentReadonly?k(this.button,"aria-disabled","true"):v(this.button,"aria-disabled")}focus(r){this.button.focus(r)}blur(){this.button.blur()}render(){let r=this.disabled||this.parentDisabled,l=this.readonly||this.parentReadonly;return this.hasSlotController.test("[default]")||g(`<dsa-${this.type}-card> requires an accessible name in the default slot for accessibility`),c`
145
145
  <div part="base">
146
146
  <button
147
147
  part="${`button${this.checked?" button--checked":""}`}"
@@ -171,4 +171,4 @@ import{a as h}from"./chunk.ELL45QD3.js";import{a as p}from"./chunk.LIC3WRPD.js";
171
171
  ></dsa-icon>`:""}
172
172
  </button>
173
173
  </div>
174
- `}};t.styles=k,t.dependencies={"dsa-icon":u},o([d(".button")],t.prototype,"button",2),o([e({type:Boolean,reflect:!0})],t.prototype,"checked",2),o([e()],t.prototype,"value",2),o([e({type:Boolean})],t.prototype,"parentDisabled",2),o([e({type:Boolean,reflect:!0})],t.prototype,"disabled",2),o([e({reflect:!0})],t.prototype,"size",2),o([e({type:Boolean})],t.prototype,"parentReadonly",2),o([e({type:Boolean,reflect:!0})],t.prototype,"readonly",2),o([e({type:Boolean})],t.prototype,"error",2),o([s(["disabled","readonly","parentDisabled","parentReadonly"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDeactivatedChange",1);export{t as a};
174
+ `}};t.styles=m,t.dependencies={"dsa-icon":u},o([d(".button")],t.prototype,"button",2),o([e({type:Boolean,reflect:!0})],t.prototype,"checked",2),o([e()],t.prototype,"value",2),o([e({type:Boolean})],t.prototype,"parentDisabled",2),o([e({type:Boolean,reflect:!0})],t.prototype,"disabled",2),o([e({reflect:!0})],t.prototype,"size",2),o([e({type:Boolean})],t.prototype,"parentReadonly",2),o([e({type:Boolean,reflect:!0})],t.prototype,"readonly",2),o([e({type:Boolean})],t.prototype,"error",2),o([s(["disabled","readonly","parentDisabled","parentReadonly"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDeactivatedChange",1);export{t as a};
@@ -1,8 +1,7 @@
1
- import{b as n}from"./chunk.WJET3UGX.js";import{a as p}from"./chunk.SPZ3HJLD.js";import{a as m}from"./chunk.MMVWNVZX.js";import{b as f}from"./chunk.IMXEAMW3.js";import{c as d}from"./chunk.KD3BHBHK.js";import{d as h}from"./chunk.ZBHHLRFH.js";import{a as u}from"./chunk.BWEPOOQP.js";import{a,b as e,c as s,d as l}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends m{constructor(){super(...arguments);this.nextSortDirection=this.getNextSortDirection();this.isHovered=!1;this.isFocused=!1;this.textContent="";this.role="columnheader";this.sortable=!1;this.alignment="left";this.sortDirection="none"}handleSort(){let o=this.getNextSortDirection();this.emit("dsa-table-header-cell-sort",{detail:{oldSortDirection:this.sortDirection,sortDirection:o}}),this.sortDirection=o,this.isHovered=!1}getNextSortDirection(){let c=n.findIndex(g=>g===this.sortDirection)+1;return n[c]===void 0&&(c=0),n[c]}handleMouseOver(){this.isHovered=!0}handleMouseOut(){this.isHovered=!1}handleFocus(){this.isFocused=!0}handleBlur(){this.isFocused=!1}handleSlotChange(){var o;this.textContent=(o=this.innerText)!=null?o:""}handleSortableChange(){this.sortable?this.setAttribute("aria-sort",this.sortDirection):this.removeAttribute("aria-sort")}handleSortDirectionChange(){this.sortable&&(this.setAttribute("aria-sort",this.sortDirection),this.nextSortDirection=this.getNextSortDirection())}click(){this.button.click()}focus(o){this.button.focus(o)}blur(){this.button.blur()}render(){if(this.loading)return r`<dsa-skeleton effect=${this.skeletonEffect}></dsa-skeleton>`;if(this.sortable){let o=(this.isHovered||this.isFocused)&&this.sortDirection==="none"?this.nextSortDirection:this.sortDirection;return r`
1
+ import{b as n}from"./chunk.WJET3UGX.js";import{a as p}from"./chunk.3FYOZ6BI.js";import{a as m}from"./chunk.MMVWNVZX.js";import{b as f}from"./chunk.IMXEAMW3.js";import{c as d}from"./chunk.KD3BHBHK.js";import{d as h}from"./chunk.ZBHHLRFH.js";import{a as u}from"./chunk.BWEPOOQP.js";import{a,b as e,c as s,d as l}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var t=class extends m{constructor(){super(...arguments);this.nextSortDirection=this.getNextSortDirection();this.isHovered=!1;this.isFocused=!1;this.textContent="";this.role="columnheader";this.sortable=!1;this.alignment="left";this.sortDirection="none"}handleSort(){let o=this.getNextSortDirection();this.emit("dsa-table-header-cell-sort",{detail:{oldSortDirection:this.sortDirection,sortDirection:o}}),this.sortDirection=o,this.isHovered=!1}getNextSortDirection(){let c=n.findIndex(g=>g===this.sortDirection)+1;return n[c]===void 0&&(c=0),n[c]}handleMouseOver(){this.isHovered=!0}handleMouseOut(){this.isHovered=!1}handleFocus(){this.isFocused=!0}handleBlur(){this.isFocused=!1}handleSlotChange(){var o;this.textContent=(o=this.innerText)!=null?o:""}handleSortableChange(){this.sortable?this.setAttribute("aria-sort",this.sortDirection):this.removeAttribute("aria-sort")}handleSortDirectionChange(){this.sortable&&(this.setAttribute("aria-sort",this.sortDirection),this.nextSortDirection=this.getNextSortDirection())}click(){this.button.click()}focus(o){this.button.focus(o)}blur(){this.button.blur()}render(){if(this.loading)return r`<dsa-skeleton effect=${this.skeletonEffect}></dsa-skeleton>`;if(this.sortable){let o=(this.isHovered||this.isFocused)&&this.sortDirection==="none"?this.nextSortDirection:this.sortDirection;return r`
2
2
  <button
3
3
  type="button"
4
- part="sort-button"
5
- class=${h({"sort-button--align-right":this.alignment==="right","sort-button--align-left":this.alignment==="left"})}
4
+ class=${h({"sort-button":!0,"sort-button--align-right":this.alignment==="right","sort-button--align-left":this.alignment==="left"})}
6
5
  @click=${this.handleSort}
7
6
  @mouseover=${this.handleMouseOver}
8
7
  @mouseout=${this.handleMouseOut}
@@ -16,4 +15,4 @@ import{b as n}from"./chunk.WJET3UGX.js";import{a as p}from"./chunk.SPZ3HJLD.js";
16
15
  library="system"
17
16
  ></dsa-icon>
18
17
  </button>
19
- `}return r` <slot></slot> `}};t.styles=p,t.dependencies={"dsa-icon":d,"dsa-skeleton":f},i([l('[part~="sort-button"]')],t.prototype,"button",2),i([s()],t.prototype,"nextSortDirection",2),i([s()],t.prototype,"isHovered",2),i([s()],t.prototype,"isFocused",2),i([s()],t.prototype,"textContent",2),i([e({reflect:!0})],t.prototype,"role",2),i([e({type:Boolean,reflect:!0})],t.prototype,"sortable",2),i([e()],t.prototype,"alignment",2),i([e({attribute:"sort-direction",reflect:!0})],t.prototype,"sortDirection",2),i([u("sortable")],t.prototype,"handleSortableChange",1),i([u("sortDirection",{waitUntilFirstUpdate:!0})],t.prototype,"handleSortDirectionChange",1),t=i([a("dsa-table-header-cell")],t);export{t as a};
18
+ `}return r` <slot></slot> `}};t.styles=p,t.dependencies={"dsa-icon":d,"dsa-skeleton":f},i([l(".sort-button")],t.prototype,"button",2),i([s()],t.prototype,"nextSortDirection",2),i([s()],t.prototype,"isHovered",2),i([s()],t.prototype,"isFocused",2),i([s()],t.prototype,"textContent",2),i([e({reflect:!0})],t.prototype,"role",2),i([e({type:Boolean,reflect:!0})],t.prototype,"sortable",2),i([e()],t.prototype,"alignment",2),i([e({attribute:"sort-direction",reflect:!0})],t.prototype,"sortDirection",2),i([u("sortable")],t.prototype,"handleSortableChange",1),i([u("sortDirection",{waitUntilFirstUpdate:!0})],t.prototype,"handleSortDirectionChange",1),t=i([a("dsa-table-header-cell")],t);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as b}from"./chunk.CEKPJB4F.js";import{a as u}from"./chunk.YRQ4GUXM.js";import{a as m,b as p}from"./chunk.ELL45QD3.js";import{a as o,b as r}from"./chunk.FDMPUSVV.js";import{a as f}from"./chunk.NIRNX67K.js";import{a as s}from"./chunk.2RF4WD6T.js";import{d}from"./chunk.ZBHHLRFH.js";import{a as c}from"./chunk.BWEPOOQP.js";import{a as n,b as l,d as a,f as h}from"./chunk.KBZ32KWP.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends h{constructor(){super(...arguments);this.hasSlotController=new m(this,"prefix");this.type="button";this.size="medium";this.disabled=!1;this.href="";this.rel="noreferrer noopener";this.collapsed=!1}connectedCallback(){super.connectedCallback(),this.handleHostClick=this.handleHostClick.bind(this),this.addEventListener("click",this.handleHostClick),this.hasAttribute("role")||this.setAttribute("role","listitem")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick)}handleDefaultSlotChange(){let i=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=i;return}i!==this.cachedTextLabel&&(this.cachedTextLabel=i,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleHostClick(i){this.disabled&&(i.preventDefault(),i.stopImmediatePropagation())}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}getTextLabel(){return p(this.defaultSlot)}focus(i){this.menuItem.focus(i)}blur(){this.menuItem.blur()}click(){this.menuItem.click()}render(){let i=this.type==="link"?o`a`:o`button`;return this.collapsed&&!this.hasSlotController.test("prefix")?r``:r`
1
+ import{a as b}from"./chunk.CEKPJB4F.js";import{a as u}from"./chunk.KX5QV54N.js";import{a as m,b as p}from"./chunk.ELL45QD3.js";import{a as o,b as r}from"./chunk.FDMPUSVV.js";import{a as f}from"./chunk.NIRNX67K.js";import{a as s}from"./chunk.2RF4WD6T.js";import{d}from"./chunk.ZBHHLRFH.js";import{a as c}from"./chunk.BWEPOOQP.js";import{a as n,b as l,d as a,f as h}from"./chunk.KBZ32KWP.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends h{constructor(){super(...arguments);this.hasSlotController=new m(this,"prefix");this.type="button";this.size="medium";this.disabled=!1;this.href="";this.rel="noreferrer noopener";this.collapsed=!1}connectedCallback(){super.connectedCallback(),this.handleHostClick=this.handleHostClick.bind(this),this.addEventListener("click",this.handleHostClick),this.hasAttribute("role")||this.setAttribute("role","listitem")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick)}handleDefaultSlotChange(){let i=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=i;return}i!==this.cachedTextLabel&&(this.cachedTextLabel=i,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleHostClick(i){this.disabled&&(i.preventDefault(),i.stopImmediatePropagation())}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}getTextLabel(){return p(this.defaultSlot)}focus(i){this.menuItem.focus(i)}blur(){this.menuItem.blur()}click(){this.menuItem.click()}render(){let i=this.type==="link"?o`a`:o`button`;return this.collapsed&&!this.hasSlotController.test("prefix")?r``:r`
2
2
  <dsa-tooltip placement="right" hoist ?disabled=${!this.collapsed}>
3
3
  <${i}
4
4
  part="base"
@@ -26,7 +26,7 @@ import{a}from"./chunk.UMC4I57R.js";import{a as i}from"./chunk.6G2FNLAV.js";var e
26
26
  visibility: visible;
27
27
  }
28
28
 
29
- [part~='action'] {
29
+ .action {
30
30
  flex: 1;
31
31
  display: flex;
32
32
  flex-direction: row;
@@ -34,10 +34,10 @@ import{a}from"./chunk.UMC4I57R.js";import{a as i}from"./chunk.6G2FNLAV.js";var e
34
34
  justify-content: flex-end;
35
35
  }
36
36
 
37
- [part~='label']::slotted(*) {
37
+ .label::slotted(*) {
38
38
  margin: 0;
39
39
  font: var(--dsa-font-body-m-normal);
40
- color: white;
40
+ color: var(--dsa-color-text-on-contrasted-primary);
41
41
  }
42
42
 
43
43
  dsa-divider {